All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gwt.material.design.client.resources.js.materialize-0.97.5.min.js Maven / Gradle / Ivy

There is a newer version: 2.8.3
Show newest version
var jQuery,Vel;void 0===jQuery&&(jQuery="function"==typeof require?$=require("jQuery"):$);jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,a){return jQuery.easing[jQuery.easing.def](t,e,i,n,a)},easeInQuad:function(t,e,i,n,a){return n*(e/=a)*e+i},easeOutQuad:function(t,e,i,n,a){return-n*(e/=a)*(e-2)+i},easeInOutQuad:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,a){return n*(e/=a)*e*e+i},easeOutCubic:function(t,e,i,n,a){return n*((e=e/a-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,a){return n*(e/=a)*e*e*e+i},easeOutQuart:function(t,e,i,n,a){return-n*((e=e/a-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,a){return n*(e/=a)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,a){return n*((e=e/a-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,a){return-n*Math.cos(e/a*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,a){return n*Math.sin(e/a*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,a){return-n/2*(Math.cos(Math.PI*e/a)-1)+i},easeInExpo:function(t,e,i,n,a){return 0==e?i:n*Math.pow(2,10*(e/a-1))+i},easeOutExpo:function(t,e,i,n,a){return e==a?i+n:n*(1-Math.pow(2,-10*e/a))+i},easeInOutExpo:function(t,e,i,n,a){return 0==e?i:e==a?i+n:(e/=a/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},easeInCirc:function(t,e,i,n,a){return-n*(Math.sqrt(1-(e/=a)*e)-1)+i},easeOutCirc:function(t,e,i,n,a){return n*Math.sqrt(1-(e=e/a-1)*e)+i},easeInOutCirc:function(t,e,i,n,a){return(e/=a/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,a){var o=1.70158,r=0,s=n;if(0==e)return i;if(1==(e/=a))return i+n;if(r||(r=.3*a),s0&&e-1 in t))}if(!t.jQuery){var i=function(t,e){return new i.fn.init(t,e)};i.isWindow=function(t){return null!=t&&t==t.window},i.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[r.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||o.call(t,e)},i.each=function(t,i,n){var a=0,o=t.length,r=e(t);if(n){if(r)for(;o>a&&!1!==i.apply(t[a],n);a++);else for(a in t)if(!1===i.apply(t[a],n))break}else if(r)for(;o>a&&!1!==i.call(t[a],a,t[a]);a++);else for(a in t)if(!1===i.call(t[a],a,t[a]))break;return t},i.data=function(t,e,a){if(void 0===a){var o=(r=t[i.expando])&&n[r];if(void 0===e)return o;if(o&&e in o)return o[e]}else if(void 0!==e){var r=t[i.expando]||(t[i.expando]=++i.uuid);return n[r]=n[r]||{},n[r][e]=a,a}},i.removeData=function(t,e){var a=t[i.expando],o=a&&n[a];o&&i.each(e,function(t,e){delete o[e]})},i.extend=function(){var t,e,n,a,o,r,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==i.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(o=arguments[l]))for(a in o)t=s[a],s!==(n=o[a])&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,r=t&&i.isArray(t)?t:[]):r=t&&i.isPlainObject(t)?t:{},s[a]=i.extend(c,r,n)):void 0!==n&&(s[a]=n));return s},i.queue=function(t,n,a){if(t){n=(n||"fx")+"queue";var o=i.data(t,n);return a?(!o||i.isArray(a)?o=i.data(t,n,function(t,i){var n=i||[];return null!=t&&(e(Object(t))?function(t,e){for(var i=+e.length,n=0,a=t.length;i>n;)t[a++]=e[n++];if(i!=i)for(;void 0!==e[n];)t[a++]=e[n++];t.length=a}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}(a)):o.push(a),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var a=i.queue(n,e),o=a.shift();"inprogress"===o&&(o=a.shift()),o&&("fx"===e&&a.unshift("inprogress"),o.call(n,function(){i.dequeue(n,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),n=this.offset(),a=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:i(t).offset();return n.top-=parseFloat(e.style.marginTop)||0,n.left-=parseFloat(e.style.marginLeft)||0,t.style&&(a.top+=parseFloat(t.style.borderTopWidth)||0,a.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-a.top,left:n.left-a.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var a={},o=a.hasOwnProperty,r=a.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;la;++a){var o=u(i,t,n);if(0===o)return i;i-=(l(i,t,n)-e)/o}return i}function d(e,i,a){var o,r,s=0;do{(o=l(r=i+(a-i)/2,t,n)-e)>0?a=r:i=r}while(Math.abs(o)>v&&++se;++e)x[e]=l(e*y,t,n)}()}var f=4,h=.001,v=1e-7,g=10,m=11,y=1/(m-1),b="Float32Array"in e;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var x=b?new Float32Array(m):new Array(m),C=!1,k=function(e){return C||p(),t===i&&n===a?e:0===e?0:1===e?1:l(function(e){for(var i=0,a=1,o=m-1;a!=o&&x[a]<=e;++a)i+=y;var r=i+(e-x[--a])/(x[a+1]-x[a])*y,s=u(r,t,n);return s>=h?c(e,r):0==s?r:d(e,i,i+y)}(e),i,a)};k.getControlPoints=function(){return[{x:t,y:i},{x:n,y:a}]};var T="generateBezier("+[t,i,n,a]+")";return k.toString=function(){return T},k}function s(t,e){var i=t;return f.isString(t)?m.Easings[t]||(i=!1):i=f.isArray(t)&&1===t.length?function(t){return function(e){return Math.round(e*t)*(1/t)}}.apply(null,t):f.isArray(t)&&2===t.length?y.apply(null,t.concat([e])):!(!f.isArray(t)||4!==t.length)&&r.apply(null,t),!1===i&&(i=m.Easings[m.defaults.easing]?m.defaults.easing:g),i}function l(t){if(t){var e=(new Date).getTime(),i=m.State.calls.length;i>1e4&&(m.State.calls=function(t){for(var e=-1,i=t?t.length:0,n=[];++ea;a++)if(m.State.calls[a]){var r=m.State.calls[a],s=r[0],d=r[2],p=r[3],h=!!p,v=null;p||(p=m.State.calls[a][3]=e-16);for(var g=Math.min((e-p)/d.duration,1),y=0,w=s.length;w>y;y++){var C=s[y],k=C.element;if(o(k)){var T=!1;if(d.display!==n&&null!==d.display&&"none"!==d.display){if("flex"===d.display){c.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(t,e){b.setPropertyValue(k,"display",e)})}b.setPropertyValue(k,"display",d.display)}for(var S in d.visibility!==n&&"hidden"!==d.visibility&&b.setPropertyValue(k,"visibility",d.visibility),C)if("element"!==S){var O,P=C[S],E=f.isString(P.easing)?m.Easings[P.easing]:P.easing;if(1===g)O=P.endValue;else{var A=P.endValue-P.startValue;if(O=P.startValue+A*E(g,d,A),!h&&O===P.currentValue)continue}if(P.currentValue=O,"tween"===S)v=O;else{if(b.Hooks.registered[S]){var q=b.Hooks.getRoot(S),M=o(k).rootPropertyValueCache[q];M&&(P.rootPropertyValue=M)}var _=b.setPropertyValue(k,S,P.currentValue+(0===parseFloat(O)?"":P.unitType),P.rootPropertyValue,P.scrollData);b.Hooks.registered[S]&&(o(k).rootPropertyValueCache[q]=b.Normalizations.registered[q]?b.Normalizations.registered[q]("extract",null,_[1]):_[1]),"transform"===_[0]&&(T=!0)}}d.mobileHA&&o(k).transformCache.translate3d===n&&(o(k).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&b.flushTransformCache(k)}}d.display!==n&&"none"!==d.display&&(m.State.calls[a][2].display=!1),d.visibility!==n&&"hidden"!==d.visibility&&(m.State.calls[a][2].visibility=!1),d.progress&&d.progress.call(r[1],r[1],g,Math.max(0,p+d.duration-e),p,v),1===g&&u(a)}}m.State.isTicking&&x(l)}function u(t,e){if(!m.State.calls[t])return!1;for(var i=m.State.calls[t][0],a=m.State.calls[t][1],r=m.State.calls[t][2],s=m.State.calls[t][4],l=!1,u=0,d=i.length;d>u;u++){var p=i[u].element;if(e||r.loop||("none"===r.display&&b.setPropertyValue(p,"display",r.display),"hidden"===r.visibility&&b.setPropertyValue(p,"visibility",r.visibility)),!0!==r.loop&&(c.queue(p)[1]===n||!/\.velocityQueueEntryFlag/i.test(c.queue(p)[1]))&&o(p)){o(p).isAnimating=!1,o(p).rootPropertyValueCache={};var f=!1;c.each(b.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,a=o(p).transformCache[e];o(p).transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(a)&&(f=!0,delete o(p).transformCache[e])}),r.mobileHA&&(f=!0,delete o(p).transformCache.translate3d),f&&b.flushTransformCache(p),b.Values.removeClass(p,"velocity-animating")}if(!e&&r.complete&&!r.loop&&u===d-1)try{r.complete.call(a,a)}catch(t){setTimeout(function(){throw t},1)}s&&!0!==r.loop&&s(a),o(p)&&!0===r.loop&&!e&&(c.each(o(p).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),m(p,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&c.dequeue(p,r.queue)}m.State.calls[t]=!1;for(var h=0,v=m.State.calls.length;v>h;h++)if(!1!==m.State.calls[h]){l=!0;break}!1===l&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}var c,d=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},h=!1;if(t.fn&&t.fn.jquery?(c=t,h=!0):c=e.Velocity.Utilities,8>=d&&!h)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=d)){var v=400,g="swing",m={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:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:c,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:g,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){c.data(t,"velocity",{isSVG:f.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==n?(m.State.scrollAnchor=e,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop");var y=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var a={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}}function i(i,n){var a={dx:i.v,dv:t(i)},o=e(i,.5*n,a),r=e(i,.5*n,o),s=e(i,n,r),l=1/6*(a.dx+2*(o.dx+r.dx)+s.dx),u=1/6*(a.dv+2*(o.dv+r.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function t(e,n,a){var o,r,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0;for(e=parseFloat(e)||500,n=parseFloat(n)||20,a=a||null,l.tension=e,l.friction=n,(o=null!==a)?r=(c=t(e,n))/a*.016:r=.016;s=i(s||l,r),u.push(1+s.x),c+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return o?function(t){return u[t*(u.length-1)|0]}:c}}();m.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},c.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(t,e){m.Easings[e[0]]=r.apply(null,e[1])});var b=m.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 t=0;t=d)switch(t){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return n?n[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){9>=d||m.State.isGingerbread||(b.Lists.transformsBase=b.Lists.transformsBase.concat(b.Lists.transforms3D));for(var t=0;ta&&(a=1),r=!/(\d)$/i.test(a);break;case"skew":r=!/(deg|\d)$/i.test(a);break;case"rotate":r=!/(deg|\d)$/i.test(a)}return r||(o(i).transformCache[e]="("+a+")"),o(i).transformCache[e]}}}();for(t=0;t=d||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=d?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=d?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(d||m.State.isAndroid&&!m.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(m.State.prefixMatches[t])return[m.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,n=e.length;n>i;i++){var a;if(a=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),f.isString(m.State.prefixElement.style[a]))return m.State.prefixMatches[t]=a,[a,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.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(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,i,a,r){function s(t,i){function a(){p&&b.setPropertyValue(t,"display","none")}var l=0;if(8>=d)l=c.css(t,i);else{var u,p=!1;if(/^(width|height)$/.test(i)&&0===b.getPropertyValue(t,"display")&&(p=!0,b.setPropertyValue(t,"display",b.Values.getDisplayType(t))),!r){if("height"===i&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var f=t.offsetHeight-(parseFloat(b.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(b.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(b.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(b.getPropertyValue(t,"paddingBottom"))||0);return a(),f}if("width"===i&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var h=t.offsetWidth-(parseFloat(b.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(b.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(b.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(b.getPropertyValue(t,"paddingRight"))||0);return a(),h}}u=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),(""===(l=9===d&&"filter"===i?u.getPropertyValue(i):u[i])||null===l)&&(l=t.style[i]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var v=s(t,"position");("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(l=c(t).position()[i]+"px")}return l}var l;if(b.Hooks.registered[i]){var u=i,p=b.Hooks.getRoot(u);a===n&&(a=b.getPropertyValue(t,b.Names.prefixCheck(p)[0])),b.Normalizations.registered[p]&&(a=b.Normalizations.registered[p]("extract",t,a)),l=b.Hooks.extractValue(u,a)}else if(b.Normalizations.registered[i]){var f,h;"transform"!==(f=b.Normalizations.registered[i]("name",t))&&(h=s(t,b.Names.prefixCheck(f)[0]),b.Values.isCSSNullValue(h)&&b.Hooks.templates[i]&&(h=b.Hooks.templates[i][1])),l=b.Normalizations.registered[i]("extract",t,h)}if(!/^[\d-]/.test(l))if(o(t)&&o(t).isSVG&&b.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=t.getBBox()[i]}catch(t){l=0}else l=t.getAttribute(i);else l=s(t,b.Names.prefixCheck(i)[0]);return b.Values.isCSSNullValue(l)&&(l=0),m.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,n,a,r){var s=i;if("scroll"===i)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?e.scrollTo(n,r.alternateValue):e.scrollTo(r.alternateValue,n);else if(b.Normalizations.registered[i]&&"transform"===b.Normalizations.registered[i]("name",t))b.Normalizations.registered[i]("inject",t,n),s="transform",n=o(t).transformCache[i];else{if(b.Hooks.registered[i]){var l=i,u=b.Hooks.getRoot(i);a=a||b.getPropertyValue(t,u),n=b.Hooks.injectValue(l,n,a),i=u}if(b.Normalizations.registered[i]&&(n=b.Normalizations.registered[i]("inject",t,n),i=b.Normalizations.registered[i]("name",t)),s=b.Names.prefixCheck(i)[0],8>=d)try{t.style[s]=n}catch(t){m.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else o(t)&&o(t).isSVG&&b.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[s]=n;m.debug>=2&&console.log("Set "+i+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(t){function e(e){return parseFloat(b.getPropertyValue(t,e))}var i="";if((d||m.State.isAndroid&&!m.State.isChrome)&&o(t).isSVG){var n={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};c.each(o(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),n[t]&&(i+=t+"("+n[t].join(" ")+") ",delete n[t])})}else{var a,r;c.each(o(t).transformCache,function(e){return a=o(t).transformCache[e],"transformPerspective"===e?(r=a,!0):(9===d&&"rotateZ"===e&&(e="rotate"),void(i+=e+a+" "))}),r&&(i="perspective"+r+" "+i)}b.setPropertyValue(t,"transform",i)}};b.Hooks.register(),b.Normalizations.register(),m.hook=function(t,e,i){var r=n;return t=a(t),c.each(t,function(t,a){if(o(a)===n&&m.init(a),i===n)r===n&&(r=m.CSS.getPropertyValue(a,e));else{var s=m.CSS.setPropertyValue(a,e,i);"transform"===s[0]&&m.CSS.flushTransformCache(a),r=s}}),r};var w=function(){function t(){return d?P.promise||null:p}function r(){function t(t){function p(t,e){var i=n,a=n,o=n;return f.isArray(t)?(i=t[0],!f.isArray(t[1])&&/^[\d-]/.test(t[1])||f.isFunction(t[1])||b.RegEx.isHex.test(t[1])?o=t[1]:(f.isString(t[1])&&!b.RegEx.isHex.test(t[1])||f.isArray(t[1]))&&(a=e?t[1]:s(t[1],u.duration),t[2]!==n&&(o=t[2]))):i=t,e||(a=a||u.easing),f.isFunction(i)&&(i=i.call(r,T,k)),f.isFunction(o)&&(o=o.call(r,T,k)),[i||0,a,o]}function h(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=b.Values.getUnitType(t)),[n,i]}function v(){var t={myParent:r.parentNode||i.body,position:b.getPropertyValue(r,"position"),fontSize:b.getPropertyValue(r,"fontSize")},n=t.position===V.lastPosition&&t.myParent===V.lastParent,a=t.fontSize===V.lastFontSize;V.lastParent=t.myParent,V.lastPosition=t.position,V.lastFontSize=t.fontSize;var s=100,l={};if(a&&n)l.emToPx=V.lastEmToPx,l.percentToPxWidth=V.lastPercentToPxWidth,l.percentToPxHeight=V.lastPercentToPxHeight;else{var u=o(r).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");m.init(u),t.myParent.appendChild(u),c.each(["overflow","overflowX","overflowY"],function(t,e){m.CSS.setPropertyValue(u,e,"hidden")}),m.CSS.setPropertyValue(u,"position",t.position),m.CSS.setPropertyValue(u,"fontSize",t.fontSize),m.CSS.setPropertyValue(u,"boxSizing","content-box"),c.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){m.CSS.setPropertyValue(u,e,s+"%")}),m.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=V.lastPercentToPxWidth=(parseFloat(b.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=V.lastPercentToPxHeight=(parseFloat(b.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=V.lastEmToPx=(parseFloat(b.getPropertyValue(u,"paddingLeft"))||1)/s,t.myParent.removeChild(u)}return null===V.remToPx&&(V.remToPx=parseFloat(b.getPropertyValue(i.body,"fontSize"))||16),null===V.vwToPx&&(V.vwToPx=parseFloat(e.innerWidth)/100,V.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=V.remToPx,l.vwToPx=V.vwToPx,l.vhToPx=V.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),r),l}if(u.begin&&0===T)try{u.begin.call(g,g)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===O){var w,C,S,E=/^x$/i.test(u.axis)?"Left":"Top",A=parseFloat(u.offset)||0;u.container?f.isWrapped(u.container)||f.isNode(u.container)?(u.container=u.container[0]||u.container,S=(w=u.container["scroll"+E])+c(r).position()[E.toLowerCase()]+A):u.container=null:(w=m.State.scrollAnchor[m.State["scrollProperty"+E]],C=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===E?"Top":"Left")]],S=c(r).offset()[E.toLowerCase()]+A),d={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:S,unitType:"",easing:u.easing,scrollData:{container:u.container,direction:E,alternateValue:C}},element:r},m.debug&&console.log("tweensContainer (scroll): ",d.scroll,r)}else if("reverse"===O){if(!o(r).tweensContainer)return void c.dequeue(r,u.queue);"none"===o(r).opts.display&&(o(r).opts.display="auto"),"hidden"===o(r).opts.visibility&&(o(r).opts.visibility="visible"),o(r).opts.loop=!1,o(r).opts.begin=null,o(r).opts.complete=null,x.easing||delete u.easing,x.duration||delete u.duration,u=c.extend({},o(r).opts,u);var q=c.extend(!0,{},o(r).tweensContainer);for(var M in q)if("element"!==M){var _=q[M].startValue;q[M].startValue=q[M].currentValue=q[M].endValue,q[M].endValue=_,f.isEmptyObject(x)||(q[M].easing=u.easing),m.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(q[M]),r)}d=q}else if("start"===O){for(var I in o(r).tweensContainer&&!0===o(r).isAnimating&&(q=o(r).tweensContainer),c.each(y,function(t,e){if(RegExp("^"+b.Lists.colors.join("$|^")+"$").test(t)){var i=p(e,!0),a=i[0],o=i[1],r=i[2];if(b.RegEx.isHex.test(a)){for(var s=["Red","Green","Blue"],l=b.Values.hexToRgb(a),u=r?b.Values.hexToRgb(r):n,c=0;cD;D++){var z={delay:I.delay,progress:I.progress};D===_-1&&(z.display=I.display,z.visibility=I.visibility,z.complete=I.complete),w(g,"reverse",z)}return t()}};(m=c.extend(w,m)).animate=w;var x=e.requestAnimationFrame||p;return m.State.isMobile||i.hidden===n||i.addEventListener("visibilitychange",function(){i.hidden?(x=function(t){return setTimeout(function(){t(!0)},16)},l()):x=e.requestAnimationFrame||p}),t.Velocity=m,t!==e&&(t.fn.velocity=w,t.fn.velocity.defaults=m.defaults),c.each(["Down","Up"],function(t,e){m.Redirects["slide"+e]=function(t,i,a,o,r,s){var l=c.extend({},i),u=l.begin,d=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===n&&(l.display="Down"===e?"inline"===m.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var i in u&&u.call(r,r),p){f[i]=t.style[i];var n=m.CSS.getPropertyValue(t,i);p[i]="Down"===e?[n,0]:[0,n]}f.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in f)t.style[e]=f[e];d&&d.call(r,r),s&&s.resolver(r)},m(t,p,l)}}),c.each(["In","Out"],function(t,e){m.Redirects["fade"+e]=function(t,i,a,o,r,s){var l=c.extend({},i),u={opacity:"In"===e?1:0},d=l.complete;l.complete=a!==o-1?l.begin=null:function(){d&&d.call(r,r),s&&s.resolver(r)},l.display===n&&(l.display="In"===e?"auto":"none"),m(this,u,l)}}),m}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)})),function(t,e,i,n){"use strict";function a(t,e,i){return setTimeout(c(t,i),e)}function o(t,e,i){return!!Array.isArray(t)&&(r(t,i[e],i),!0)}function r(t,e,i){var a;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(a=0;a-1}function m(t){return t.trim().split(/\s+/g)}function y(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]}):n.sort()),n}function x(t,e){for(var i,a,o=e[0].toUpperCase()+e.slice(1),r=0;r1&&!i.firstMultiple?i.firstMultiple=O(e):1===a&&(i.firstMultiple=!1);var o=i.firstInput,r=i.firstMultiple,s=r?r.center:o.center,l=e.center=P(n);e.timeStamp=it(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=q(s,l),e.distance=A(s,l),function(t,e){var i=e.center,n=t.offsetDelta||{},a=t.prevDelta||{},o=t.prevInput||{};(e.eventType===ct||o.eventType===pt)&&(a=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=a.x+(i.x-n.x),e.deltaY=a.y+(i.y-n.y)}(i,e),e.offsetDirection=E(e.deltaX,e.deltaY),e.scale=r?function(t,e){return A(e[0],e[1],kt)/A(t[0],t[1],kt)}(r.pointers,n):1,e.rotation=r?function(t,e){return q(e[1],e[0],kt)-q(t[1],t[0],kt)}(r.pointers,n):0,S(i,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function S(t,e){var i,a,o,r,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=ft&&(l>ut||s.velocity===n)){var u=s.deltaX-e.deltaX,c=s.deltaY-e.deltaY,d=function(t,e,i){return{x:e/t||0,y:i/t||0}}(l,u,c);a=d.x,o=d.y,i=et(d.x)>et(d.y)?d.x:d.y,r=E(u,c),t.lastInterval=e}else i=s.velocity,a=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=a,e.velocityY=o,e.direction=r}function O(t){for(var e=[],i=0;ia;)i+=t[a].clientX,n+=t[a].clientY,a++;return{x:tt(i/e),y:tt(n/e)}}function E(t,e){return t===e?ht:et(t)>=et(e)?t>0?vt:gt:e>0?mt:yt}function A(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return Math.sqrt(n*n+a*a)}function q(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return 180*Math.atan2(a,n)/Math.PI}function M(){this.evEl=St,this.evWin=Ot,this.allow=!0,this.pressed=!1,k.apply(this,arguments)}function _(){this.evEl=At,this.evWin=qt,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function I(){this.evTarget=_t,this.evWin=It,this.started=!1,k.apply(this,arguments)}function V(){this.evTarget=jt,this.targetIds={},k.apply(this,arguments)}function j(){k.apply(this,arguments);var t=c(this.handler,this);this.touch=new V(this.manager,t),this.mouse=new M(this.manager,t)}function D(t,e){this.manager=t,this.set(e)}function z(t){this.id=nt++,this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=p(this.options.enable,!0),this.state=Rt,this.simultaneous={},this.requireFail=[]}function L(t){return t==yt?"down":t==mt?"up":t==vt?"left":t==gt?"right":""}function Q(t,e){var i=e.manager;return i?i.get(t):t}function N(){z.apply(this,arguments)}function F(){N.apply(this,arguments),this.pX=null,this.pY=null}function W(){N.apply(this,arguments)}function $(){z.apply(this,arguments),this._timer=null,this._input=null}function R(){N.apply(this,arguments)}function X(){N.apply(this,arguments)}function H(){z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Y(t,e){return(e=e||{}).recognizers=p(e.recognizers,Y.defaults.preset),new B(t,e)}function B(t,e){e=e||{},this.options=l(e,Y.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(ot?_:rt?V:at?j:M))(t,T)}(this),this.touchAction=new D(this,this.options.touchAction),G(this,!0),r(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function G(t,e){var i=t.element;r(t.options.cssProps,function(t,n){i.style[x(i.style,n)]=e?t:""})}function U(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var Z=["","webkit","moz","MS","ms","o"],J=e.createElement("div"),K="function",tt=Math.round,et=Math.abs,it=Date.now,nt=1,at="ontouchstart"in t,ot=x(t,"PointerEvent")!==n,rt=at&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),st="touch",lt="mouse",ut=25,ct=1,dt=2,pt=4,ft=8,ht=1,vt=2,gt=4,mt=8,yt=16,bt=vt|gt,wt=mt|yt,xt=bt|wt,Ct=["x","y"],kt=["clientX","clientY"];k.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(C(this.element),this.evWin,this.domHandler)}};var Tt={mousedown:ct,mousemove:dt,mouseup:pt},St="mousedown",Ot="mousemove mouseup";u(M,k,{handler:function(t){var e=Tt[t.type];e&ct&&0===t.button&&(this.pressed=!0),e&dt&&1!==t.which&&(e=pt),this.pressed&&this.allow&&(e&pt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:lt,srcEvent:t}))}});var Pt={pointerdown:ct,pointermove:dt,pointerup:pt,pointercancel:ft,pointerout:ft},Et={2:st,3:"pen",4:lt,5:"kinect"},At="pointerdown",qt="pointermove pointerup pointercancel";t.MSPointerEvent&&(At="MSPointerDown",qt="MSPointerMove MSPointerUp MSPointerCancel"),u(_,k,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),a=Pt[n],o=Et[t.pointerType]||t.pointerType,r=o==st,s=y(e,t.pointerId,"pointerId");a&ct&&(0===t.button||r)?0>s&&(e.push(t),s=e.length-1):a&(pt|ft)&&(i=!0),0>s||(e[s]=t,this.callback(this.manager,a,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))}});var Mt={touchstart:ct,touchmove:dt,touchend:pt,touchcancel:ft},_t="touchstart",It="touchstart touchmove touchend touchcancel";u(I,k,{handler:function(t){var e=Mt[t.type];if(e===ct&&(this.started=!0),this.started){var i=function(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(pt|ft)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);e&(pt|ft)&&0==i[0].length-i[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:st,srcEvent:t})}}});var Vt={touchstart:ct,touchmove:dt,touchend:pt,touchcancel:ft},jt="touchstart touchmove touchend touchcancel";u(V,k,{handler:function(t){var e=Vt[t.type],i=function(t,e){var i=b(t.touches),n=this.targetIds;if(e&(ct|dt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,o,r=b(t.changedTouches),s=[],l=this.target;if(o=i.filter(function(t){return v(t.target,l)}),e===ct)for(a=0;a-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(i.options.event+(e?function(t){return t&Gt?"cancel":t&Yt?"end":t&Ht?"move":t&Xt?"start":""}(n):""),t)}var i=this,n=this.state;Yt>n&&e(!0),e(),n>=Yt&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;to?vt:gt,i=o!=this.pX,n=Math.abs(t.deltaX)):(a=0===r?ht:0>r?mt:yt,i=r!=this.pY,n=Math.abs(t.deltaY))),t.direction=a,i&&n>e.threshold&&a&e.direction},attrTest:function(t){return N.prototype.attrTest.call(this,t)&&(this.state&Xt||!(this.state&Xt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=L(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),u(W,N,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ft]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Xt)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),u($,z,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Qt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(pt|ft)&&!o)this.reset();else if(t.eventType&ct)this.reset(),this._timer=a(function(){this.state=Bt,this.tryEmit()},e.time,this);else if(t.eventType&pt)return Bt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Bt&&(t&&t.eventType&pt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=it(),this.manager.emit(this.options.event,this._input)))}}),u(R,N,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ft]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Xt)}}),u(X,N,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:bt|wt,pointers:1},getTouchAction:function(){return F.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(bt|wt)?e=t.velocity:i&bt?e=t.velocityX:i&wt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&et(e)>this.options.velocity&&t.eventType&pt},emit:function(t){var e=L(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(H,z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Nt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance li > .collapsible-header"),a=i.data("collapsible");function o(e){n=i.find("> li > .collapsible-header"),e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}),n.not(e).removeClass("active").parent().removeClass("active"),n.not(e).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function r(e){e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function s(t){return t.closest("li > .collapsible-header")}i.off("click.collapse","> li > .collapsible-header"),n.off("click.collapse"),i.on("click.collapse","> li > .collapsible-header",function(i){var n=t(this),l=t(i.target);s(l).length>0&&(l=s(l)),l.toggleClass("active"),e.accordion||"accordion"===a||void 0===a?o(l):(r(l),n.hasClass("active")&&r(n))});n=i.find("> li > .collapsible-header");e.accordion||"accordion"===a||void 0===a?o(n.filter(".active").first()):n.filter(".active").each(function(){r(t(this))})})},t(document).ready(function(){t(".collapsible").collapsible()})}(jQuery),function(t){t.fn.scrollTo=function(e){return t(this).scrollTop(t(this).scrollTop()-t(this).offset().top+t(e).offset().top),this},t.fn.dropdown=function(e){var i={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left"};this.each(function(){var n=t(this),a=t.extend({},i,e),o=!1,r=t("#"+n.attr("data-activates"));function s(){void 0!==n.data("induration")&&(a.inDuration=n.data("inDuration")),void 0!==n.data("outduration")&&(a.outDuration=n.data("outDuration")),void 0!==n.data("constrainwidth")&&(a.constrain_width=n.data("constrainwidth")),void 0!==n.data("hover")&&(a.hover=n.data("hover")),void 0!==n.data("gutter")&&(a.gutter=n.data("gutter")),void 0!==n.data("beloworigin")&&(a.belowOrigin=n.data("beloworigin")),void 0!==n.data("alignment")&&(a.alignment=n.data("alignment"))}function l(e){"focus"===e&&(o=!0),s(),r.addClass("active"),n.addClass("active"),!0===a.constrain_width?r.css("width",n.outerWidth()):r.css("white-space","nowrap");var i,l=window.innerHeight,u=n.innerHeight(),c=n.offset().left,d=n.offset().top-t(window).scrollTop(),p=a.alignment,f=0;if(!0===a.belowOrigin&&(f=u),c+r.innerWidth()>t(window).width()?p="right":c-r.innerWidth()+n.innerWidth()<0&&(p="left"),d+r.innerHeight()>l)if(d+u-r.innerHeight()<0){var h=l-d-f;r.css("max-height",h)}else f||(f+=u),f-=r.innerHeight();if("left"===p)i=a.gutter,leftPosition=n.position().left+i;else if("right"===p){var v=n.position().left+n.outerWidth()-r.outerWidth();i=-a.gutter,leftPosition=v+i}r.css({position:"absolute",top:n.position().top+f,left:leftPosition}),r.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:a.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:a.inDuration,easing:"easeOutSine"})}function u(){o=!1,r.fadeOut(a.outDuration),r.removeClass("active"),n.removeClass("active"),setTimeout(function(){r.css("max-height","")},a.outDuration)}if(s(),n.after(r),a.hover){var c=!1;n.unbind("click."+n.attr("id")),n.on("mouseenter",function(t){!1===c&&(l(),c=!0)}),n.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-content").is(r)||(r.stop(!0,!0),u(),c=!1)}),r.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-button").is(n)||(r.stop(!0,!0),u(),c=!1)})}else n.unbind("click."+n.attr("id")),n.bind("click."+n.attr("id"),function(e){o||(n[0]!=e.currentTarget||n.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?n.hasClass("active")&&(u(),t(document).unbind("click."+r.attr("id")+" touchstart."+r.attr("id"))):(e.preventDefault(),l("click")),r.hasClass("active")&&t(document).bind("click."+r.attr("id")+" touchstart."+r.attr("id"),function(e){r.is(e.target)||n.is(e.target)||n.find(e.target).length||(u(),t(document).unbind("click."+r.attr("id")+" touchstart."+r.attr("id")))}))});n.on("open",function(t,e){l(e)}),n.on("close",u)})},t(document).ready(function(){t(".dropdown-button").dropdown()})}(jQuery),function(t){var e=new Array,i=0;t.fn.extend({openModal:function(n){t("body").css("overflow","hidden");var a={opacity:.5,in_duration:350,out_duration:250,ready:void 0,complete:void 0,dismissible:!0,starting_top:"4%"},o="materialize-lean-overlay-"+ ++i,r=t(this),s=t('
'),l=0==e.length?1:e[e.length-1]+1;e.push(l),s.attr("id",o).css("z-index",1e3+2*l),r.data("overlay-id",o).css("z-index",1e3+2*l+1),r.data("stack-ordinal",l),t("body").append(s),r.trigger("modal-overlay-attached",o),(n=t.extend(a,n)).dismissible&&(s.click(function(){r.closeModal(n)}),t(document).on("keyup.leanModal"+o,function(t){27===t.keyCode&&r.closeModal(n)})),r.find(".modal-close").on("click.close",function(t){r.closeModal(n)}),s.css({display:"block",opacity:0}),r.css({display:"block",opacity:0}),s.velocity({opacity:n.opacity},{duration:n.in_duration,queue:!1,ease:"easeOutCubic"}),r.data("associated-overlay",s[0]),r.hasClass("bottom-sheet")?r.velocity({bottom:"0",opacity:1},{duration:n.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.ready&&n.ready()}}):(t.Velocity.hook(r,"scaleX",.7),r.css({top:n.starting_top}),r.velocity({top:"10%",opacity:1,scaleX:"1"},{duration:n.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.ready&&n.ready()}}))}}),t.fn.extend({closeModal:function(i){var n={out_duration:250,complete:void 0},a=t(this),o=a.data("stack-ordinal"),r=a.data("overlay-id"),s=t("#"+r);i=t.extend(n,i),t("body").css("overflow",""),a.find(".modal-close").off("click.close"),t(document).off("keyup.leanModal"+r),s.velocity({opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutQuart"}),a.hasClass("bottom-sheet")?a.velocity({bottom:"-100%",opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutCubic",complete:function(){s.css({display:"none"}),"function"==typeof i.complete&&i.complete(),s.remove(),e.splice(e.indexOf(o),1)}}):a.velocity({top:i.starting_top,opacity:0,scaleX:.7},{duration:i.out_duration,complete:function(){t(this).css("display","none"),"function"==typeof i.complete&&i.complete(),s.remove(),e.splice(e.indexOf(o),1)}})}}),t.fn.extend({leanModal:function(e){return this.each(function(){var i=t.extend({starting_top:"4%"},e);t(this).click(function(e){i.starting_top=(t(this).offset().top-t(window).scrollTop())/1.15;var n=t(this).attr("href")||"#"+t(this).data("target");t(n).openModal(i),e.preventDefault()})})}})}(jQuery),function(t){t.fn.materialbox=function(){return this.each(function(){if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var e,i,n=!1,a=!0,o=200,r=t(this),s=t("
").addClass("material-placeholder");r.wrap(s),r.on("click",function(){var o=r.parent(".material-placeholder"),s=window.innerWidth,u=window.innerHeight,c=r.width(),d=r.height();if(!1===a)return l(),!1;if(n&&!0===a)return l(),!1;a=!1,r.addClass("active"),n=!0,o.css({width:o[0].getBoundingClientRect().width,height:o[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),e=void 0,i=o[0].parentNode;for(;null!==i&&!t(i).is(document);){var p=t(i);"hidden"===p.css("overflow")&&(p.css("overflow","visible"),e=void 0===e?p:e.add(p)),i=i.parentNode}r.css({position:"absolute","z-index":1e3}).data("width",c).data("height",d);var f=t('
').css({opacity:0}).click(function(){!0===a&&l()});if(t("body").append(f),f.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==r.data("caption")){var h=t('
');h.text(r.data("caption")),t("body").append(h),h.css({display:"inline"}),h.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var v=0,g=0;c/s>d/u?(v=.9*s,g=.9*s*(d/c)):(v=.9*u*(c/d),g=.9*u),r.hasClass("responsive-img")?r.velocity({"max-width":v,width:c},{duration:0,queue:!1,complete:function(){r.css({left:0,top:0}).velocity({height:g,width:v,left:t(document).scrollLeft()+s/2-r.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+u/2-r.parent(".material-placeholder").offset().top-g/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){a=!0}})}}):r.css("left",0).css("top",0).velocity({height:g,width:v,left:t(document).scrollLeft()+s/2-r.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+u/2-r.parent(".material-placeholder").offset().top-g/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){a=!0}})}),t(window).scroll(function(){n&&l()}),t(document).keyup(function(t){27===t.keyCode&&!0===a&&n&&l()})}function l(){a=!1;var i=r.parent(".material-placeholder"),s=(window.innerWidth,window.innerHeight,r.data("width")),l=r.data("height");r.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t("#materialbox-overlay").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){n=!1,t(this).remove()}}),r.velocity({width:s,height:l,left:0,top:0},{duration:o,queue:!1,easing:"easeOutQuad"}),t(".materialbox-caption").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){i.css({height:"",width:"",position:"",top:"",left:""}),r.css({height:"",top:"",left:"",width:"","max-width":"",position:"","z-index":""}),r.removeClass("active"),a=!0,t(this).remove(),e.css("overflow","")}})}})},t(document).ready(function(){t(".materialboxed").materialbox()})}(jQuery),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(i){var n=t(this);function a(i){var a;a=e<601?n.height()>0?n.height():n.children("img").height():n.height()>0?n.height():500;var o=n.children("img").first(),r=o.height()-a,s=n.offset().top+a,l=n.offset().top,u=t(window).scrollTop(),c=window.innerHeight,d=(u+c-l)/(a+c),p=Math.round(r*d);i&&o.css("display","block"),s>u&&l
');var l=e.find(".indicator");e.is(":visible")&&(l.css({right:o-(s+1)*r}),l.css({left:s*r})),t(window).resize(function(){o=e.width(),r=e.find("li").first().outerWidth(),s<0&&(s=0),0!==r&&0!==o&&(l.css({right:o-(s+1)*r}),l.css({left:s*r}))}),a.not(i).each(function(){t(this.hash).hide()}),e.on("click","a",function(u){if(t(this).parent().hasClass("disabled"))u.preventDefault();else{o=e.width(),r=e.find("li").first().outerWidth(),i.removeClass("active"),n.hide(),i=t(this),n=t(this.hash),a=e.find("li.tab a"),i.addClass("active");var c=s;(s=a.index(t(this)))<0&&(s=0),n.show(),s-c>=0?(l.velocity({right:o-(s+1)*r},{duration:300,queue:!1,easing:"easeOutQuad"}),l.velocity({left:s*r},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(l.velocity({left:s*r},{duration:300,queue:!1,easing:"easeOutQuad"}),l.velocity({right:o-(s+1)*r},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})),u.preventDefault()}})})},select_tab:function(t){this.find('a[href="\\#'+t+'"]').trigger("click")}};t.fn.tabs=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)},t(document).ready(function(){t("ul.tabs").tabs()})}(jQuery),function(t){t.fn.tooltip=function(i){return"remove"===i?(this.each(function(){t("#"+t(this).attr("data-tooltip-id")).remove(),t(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(i=t.extend({delay:350},i),this.each(function(){var n=Materialize.guid(),a=t(this);a.attr("data-tooltip-id",n);var o=t("").text(a.attr("data-tooltip")),r=t("
");r.addClass("material-tooltip").append(o).appendTo(t("body")).attr("id",n);var s=t("
").addClass("backdrop");s.appendTo(r),s.css({top:0,left:0}),a.off("mouseenter.tooltip mouseleave.tooltip");var l,u=!1;a.on({"mouseenter.tooltip":function(t){var n=a.attr("data-delay");n=void 0===n||""===n?i.delay:n,l=setTimeout(function(){u=!0,r.velocity("stop"),s.velocity("stop"),r.css({display:"block",left:"0px",top:"0px"}),r.children("span").text(a.attr("data-tooltip"));var t,i,n,o=a.outerWidth(),l=a.outerHeight(),c=a.attr("data-position"),d=r.outerHeight(),p=r.outerWidth(),f="0px",h="0px",v=8;"top"===c?(t=a.offset().top-d-5,i=a.offset().left+o/2-p/2,n=e(i,t,p,d),f="-10px",s.css({borderRadius:"14px 14px 0 0",transformOrigin:"50% 90%",marginTop:d,marginLeft:p/2-s.width()/2})):"left"===c?(t=a.offset().top+l/2-d/2,i=a.offset().left-p-5,n=e(i,t,p,d),h="-10px",s.css({width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:d/2,marginLeft:p})):"right"===c?(t=a.offset().top+l/2-d/2,i=a.offset().left+o+5,n=e(i,t,p,d),h="+10px",s.css({width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:d/2,marginLeft:"0px"})):(t=a.offset().top+a.outerHeight()+5,i=a.offset().left+o/2-p/2,n=e(i,t,p,d),f="+10px",s.css({marginLeft:p/2-s.width()/2})),r.css({top:n.y,left:n.x}),(v=p/8)<8&&(v=8),"right"!==c&&"left"!==c||(v=p/10)<6&&(v=6),r.velocity({marginTop:f,marginLeft:h},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),s.css({display:"block"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scale:v},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})},n)},"mouseleave.tooltip":function(){u=!1,clearTimeout(l),setTimeout(function(){1!=u&&(r.velocity({opacity:0,marginTop:0,marginLeft:0},{duration:225,queue:!1}),s.velocity({opacity:0,scale:1},{duration:225,queue:!1,complete:function(){s.css("display","none"),r.css("display","none"),u=!1}}))},225)}})}))};var e=function(e,i,n,a){var o=e,r=i;return o<0?o=4:o+n>window.innerWidth&&(o-=o+n-window.innerWidth),r<0?r=4:r+a>window.innerHeight+t(window).scrollTop&&(r-=r+a-window.innerHeight),{x:o,y:r}};t(document).ready(function(){t(".tooltipped").tooltip()})}(jQuery),function(t){"use strict";var e=e||{},i=document.querySelectorAll.bind(document);function n(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}var a={duration:750,show:function(t,e){if(2===t.button)return!1;var i=e||this,o=document.createElement("div");o.className="waves-ripple",i.appendChild(o);var r,s,l,u,c,d=(u={top:0,left:0},c=(r=i)&&r.ownerDocument,s=c.documentElement,void 0!==r.getBoundingClientRect&&(u=r.getBoundingClientRect()),l=function(t){return null!==(e=t)&&e===e.window?t:9===t.nodeType&&t.defaultView;var e}(c),{top:u.top+l.pageYOffset-s.clientTop,left:u.left+l.pageXOffset-s.clientLeft}),p=t.pageY-d.top,f=t.pageX-d.left,h="scale("+i.clientWidth/100*10+")";"touches"in t&&(p=t.touches[0].pageY-d.top,f=t.touches[0].pageX-d.left),o.setAttribute("data-hold",Date.now()),o.setAttribute("data-scale",h),o.setAttribute("data-x",f),o.setAttribute("data-y",p);var v={top:p+"px",left:f+"px"};o.className=o.className+" waves-notransition",o.setAttribute("style",n(v)),o.className=o.className.replace("waves-notransition",""),v["-webkit-transform"]=h,v["-moz-transform"]=h,v["-ms-transform"]=h,v["-o-transform"]=h,v.transform=h,v.opacity="1",v["-webkit-transition-duration"]=a.duration+"ms",v["-moz-transition-duration"]=a.duration+"ms",v["-o-transition-duration"]=a.duration+"ms",v["transition-duration"]=a.duration+"ms",v["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",v["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",v["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",v["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",o.setAttribute("style",n(v))},hide:function(t){o.touchup(t);var e=this,i=(e.clientWidth,null),r=e.getElementsByClassName("waves-ripple");if(!(r.length>0))return!1;var s=(i=r[r.length-1]).getAttribute("data-x"),l=i.getAttribute("data-y"),u=i.getAttribute("data-scale"),c=350-(Date.now()-Number(i.getAttribute("data-hold")));c<0&&(c=0),setTimeout(function(){var t={top:l+"px",left:s+"px",opacity:"0","-webkit-transition-duration":a.duration+"ms","-moz-transition-duration":a.duration+"ms","-o-transition-duration":a.duration+"ms","transition-duration":a.duration+"ms","-webkit-transform":u,"-moz-transform":u,"-ms-transform":u,"-o-transform":u,transform:u};i.setAttribute("style",n(t)),setTimeout(function(){try{e.removeChild(i)}catch(t){return!1}},a.duration)},c)},wrapInput:function(t){for(var e=0;e0&&(o.touches-=1)},500):"mousedown"===t.type&&o.touches>0&&(e=!1),e},touchup:function(t){o.allowEvent(t)}};function r(e){var i=function(t){if(!1===o.allowEvent(t))return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentElement;){if(!(i instanceof SVGElement||-1===i.className.indexOf("waves-effect"))){e=i;break}if(i.classList.contains("waves-effect")){e=i;break}i=i.parentElement}return e}(e);null!==i&&(a.show(e,i),"ontouchstart"in t&&(i.addEventListener("touchend",a.hide,!1),i.addEventListener("touchcancel",a.hide,!1)),i.addEventListener("mouseup",a.hide,!1),i.addEventListener("mouseleave",a.hide,!1))}e.displayEffect=function(e){"duration"in(e=e||{})&&(a.duration=e.duration),a.wrapInput(i(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",r,!1),document.body.addEventListener("mousedown",r,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(a.wrapInput([e]),e=e.parentElement),"ontouchstart"in t&&e.addEventListener("touchstart",r,!1),e.addEventListener("mousedown",r,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",function(){e.displayEffect()},!1)}(window),Materialize.toast=function(t,e,i,n){i=i||"";var a=document.getElementById("toast-container");null===a&&((a=document.createElement("div")).id="toast-container",document.body.appendChild(a));var o=function(t){var e=document.createElement("div");if(e.classList.add("toast"),i)for(var a=i.split(" "),o=0,r=a.length;o80?Vel(e,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),e.parentNode.removeChild(e)}}):(e.classList.remove("panning"),Vel(e,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),e}(t);t&&a.appendChild(o),o.style.top="35px",o.style.opacity=0,Vel(o,{top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var r=e,s=setInterval(function(){null===o.parentNode&&window.clearInterval(s),o.classList.contains("panning")||(r-=20),r<=0&&(Vel(o,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(s))},20)},function(t){var e={init:function(e){e=t.extend({menuWidth:240,edge:"left",closeOnClick:!1},e),t(this).each(function(){var i=t(this),n=t("#"+i.attr("data-activates"));240!=e.menuWidth&&n.css("width",e.menuWidth);var a=t('
');function o(o,s){i.trigger("side-nav-closing"),!1,r=!1,t("body").css("overflow",""),s?t("#sidenav-overlay").remove():t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(a.css({width:"",right:"",left:"0"}),s?(n.css("left",-1*(e.menuWidth+10)+"px"),!0===o&&n.css("width",e.menuWidth),i.trigger("side-nav-closed")):n.velocity({left:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===o&&n.css("width",e.menuWidth),i.trigger("side-nav-closed")}})):(a.css({width:"",right:"0",left:""}),s?(enu_id.css("right",-1*(e.menuWidth+10)+"px"),!0===o&&n.css("width",e.menuWidth),i.trigger("side-nav-closed")):n.velocity({right:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===o&&n.css("width",e.menuWidth),i.trigger("side-nav-closed")}}))}t("body").append(a),"left"==e.edge?(n.css("left",-1*(e.menuWidth+10)),a.css({left:0})):(n.addClass("right-aligned").css("right",-1*(e.menuWidth+10)).css("left",""),a.css({right:0})),n.hasClass("fixed")&&window.innerWidth>992&&n.css("left",0),n.hasClass("fixed")&&t(window).resize(function(){window.innerWidth>992?0!==t("#sidenav-overlay").css("opacity")&&r?o(!0):(n.css("left",""),n.css("width",e.menuWidth)):!1===r&&("left"===e.edge?n.css("left",-1*(e.menuWidth+10)):n.css("right",-1*(e.menuWidth+10)))}),!0===e.closeOnClick&&n.on("click.itemclick","a:not(.collapsible-header)",function(){o()});var r=!1;a.on("click",function(){o()}),a.hammer({prevent_default:!1}).bind("pan",function(a){if("touch"==a.gesture.pointerType){a.gesture.direction;var s,l=a.gesture.center.x;a.gesture.center.y,a.gesture.velocityX;if(t("body").css("overflow","hidden"),0===t("#sidenav-overlay").length){var u=t('
');u.css("opacity",0).click(function(){o()}),t("body").append(u)}if("left"===e.edge&&(l>e.menuWidth?l=e.menuWidth:l<0&&(l=0)),"left"===e.edge)l=e.menuWidth/2&&(r=!0,i.trigger("side-nav-opened")),n.css("left",l-e.menuWidth);else{l=window.innerWidth-e.menuWidth/2&&(r=!1,i.trigger("side-nav-closed"));var c=-1*(l-e.menuWidth/2);c>0&&(c=0),n.css("right",c)}"left"===e.edge?(s=l/e.menuWidth,t("#sidenav-overlay").velocity({opacity:s},{duration:50,queue:!1,easing:"easeOutQuad"})):(s=Math.abs((l-window.innerWidth)/e.menuWidth),t("#sidenav-overlay").velocity({opacity:s},{duration:50,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(i){if("touch"==i.gesture.pointerType){var o=i.gesture.velocityX;!1,"left"===e.edge?r&&o<=.3||o<-.5?(n.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),a.css({width:"50%",right:0,left:""})):(!r||o>.3)&&(t("body").css("overflow",""),n.velocity({left:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),a.css({width:"10px",right:"",left:0})):r&&o>=-.3||o>.5?(n.velocity({right:0},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),a.css({width:"50%",right:"",left:0})):(!r||o<-.3)&&(t("body").css("overflow",""),n.velocity({right:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),a.css({width:"10px",right:0,left:""}))}});var s=function(s){i.trigger("side-nav-opening"),t("body").css("overflow","hidden"),t("body").append(a),"left"===e.edge?(a.css({width:"50%",right:0,left:""}),s?n.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"}):n.css("left","0")):(a.css({width:"50%",right:"",left:0}),s?n.velocity({right:0},{duration:300,queue:!1,easing:"easeOutQuad"}):n.css("right","0"),n.css("left",""));var l=t('
');l.css("opacity",0).click(function(){r=!1,!1,o(),s?l.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}):l.remove()}),t("body").append(l),i.trigger("side-nav-overlay-attached"),s?l.velocity({display:"block"},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){r=!0,!1,i.trigger("side-nav-opened")}}):(l.css("display","block"),r=!0,!1,i.trigger("side-nav-opened"))},l=function(t){r=!1,!1,o(!1,!t)};i.click(function(){return!0===r?l(!0):s(!0),!1}),i.on("menu-out",s),i.on("menu-in",l)})},show:function(){this.trigger("click")},hide:function(){t("#sidenav-overlay").trigger("click")},menuOut:function(){this.trigger("menu-out")},menuIn:function(){this.trigger("menu-in")}};t.fn.sideNav=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sideNav"):e.init.apply(this,arguments)}}(jQuery),function(t){var e=t(window),i=[],n=[],a=!1,o=0,r={top:0,right:0,bottom:0,left:0};function s(){++o;var a=e.scrollTop(),s=e.scrollLeft(),l=s+e.width(),u=a+e.height(),c=function(e,n,a,o){var r=t();return t.each(i,function(t,i){if(i.height()>0){var s=i.offset().top,l=i.offset().left,u=l+i.width(),c=s+i.height();!(l>n||ua||c0||i.autofocus||void 0!==t(this).attr("placeholder")||!0===t(i)[0].validity.badInput?t(this).siblings("label, i").addClass("active"):t(this).siblings("label, i").removeClass("active")})};var e="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";t(document).on("change",e,function(){0===t(this).val().length&&void 0===t(this).attr("placeholder")||t(this).siblings("label").addClass("active"),validate_field(t(this))}),t(document).ready(function(){Materialize.updateTextFields()}),t(document).on("reset",function(i){var n=t(i.target);n.is("form")&&(n.find(e).removeClass("valid").removeClass("invalid"),n.find(e).each(function(){""===t(this).attr("value")&&t(this).siblings("label, i").removeClass("active")}),n.find("select.initialized").each(function(){var t=n.find("option[selected]").text();n.siblings("input.select-dropdown").val(t)}))}),t(document).on("focus",e,function(){t(this).siblings("label, i").addClass("active")}),t(document).on("blur",e,function(){var e=t(this);0===e.val().length&&!0!==e[0].validity.badInput&&void 0===e.attr("placeholder")&&e.siblings("label, i").removeClass("active"),0===e.val().length&&!0!==e[0].validity.badInput&&void 0!==e.attr("placeholder")&&e.siblings("i").removeClass("active"),validate_field(e)}),window.validate_field=function(t){var e=void 0!==t.attr("length"),i=parseInt(t.attr("length")),n=t.val().length;0===t.val().length&&!1===t[0].validity.badInput?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")&&e&&n<=i||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))};var i=t(".hiddendiv").first();i.length||(i=t('
'),t("body").append(i));function n(e){var n=e.css("font-family"),a=e.css("font-size");a&&i.css("font-size",a),n&&i.css("font-family",n),"off"===e.attr("wrap")&&i.css("overflow-wrap","normal").css("white-space","pre"),i.text(e.val()+"\n");var o=i.html().replace(/\n/g,"
");i.html(o),e.is(":visible")?i.css("width",e.width()):i.css("width",t(window).width()/2),e.css("height",i.height())}t(".materialize-textarea").each(function(){var e=t(this);e.val().length&&n(e)}),t("body").on("keyup keydown autoresize",".materialize-textarea",function(){n(t(this))}),t(document).on("change",'.file-field input[type="file"]',function(){for(var e=t(this).closest(".file-field").find("input.file-path"),i=t(this)[0].files,n=[],a=0;a');t(this).after(e)});t(document).on("change",o,function(e){t(this).siblings(".thumb").find(".value").html(t(this).val())}),t(document).on("input mousedown touchstart",o,function(e){var i=t(this).siblings(".thumb"),n=t(this).outerWidth();i.length<=0&&(i=t(''),t(this).after(i)),i.find(".value").html(t(this).val()),r=!0,t(this).addClass("active"),i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),"input"!==e.type&&((a=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left)<0?a=0:a>n&&(a=n),i.addClass("active").css("left",a)),i.find(".value").html(t(this).val())}),t(document).on("mouseup touchend",".range-field",function(){r=!1,t(this).removeClass("active")}),t(document).on("mousemove touchmove",".range-field",function(e){var i,n=t(this).children(".thumb");if(r){n.hasClass("active")||n.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),i=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left;var a=t(this).outerWidth();i<0?i=0:i>a&&(i=a),n.addClass("active").css("left",i),n.find(".value").html(n.siblings(o).val())}}),t(document).on("mouseout touchleave",".range-field",function(){if(!r){var e=t(this).children(".thumb");e.hasClass("active")&&e.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100}),e.removeClass("active")}})}),t.fn.material_select=function(e){function i(t,e,i){var n=t.indexOf(e),a=-1===n;return a?t.push(e):t.splice(n,1),i.siblings("ul.dropdown-content").find("li").eq(e).toggleClass("active"),i.find("option").eq(e).prop("selected",a),function(t,e){for(var i="",n=0,a=t.length;n
');s.addClass(n.attr("class"));var l=t(''),u=n.children("option, optgroup"),c=[],d=!1,p=n.find("option:selected").html()||n.find("option:first").html()||"",f=function(e,i,n){var a=i.is(":disabled")?"disabled ":"",o=i.data("icon"),r=i.attr("class");if(o){var s="";return r&&(s=' class="'+r+'"'),"multiple"===n?l.append(t('
  • "+i.html()+"
  • ")):l.append(t('
  • "+i.html()+"
  • ")),!0}"multiple"===n?l.append(t('
  • "+i.html()+"
  • ")):l.append(t('
  • '+i.html()+"
  • "))};u.length&&u.each(function(){if(t(this).is("option"))a?f(0,t(this),"multiple"):f(0,t(this));else if(t(this).is("optgroup")){var e=t(this).children("option");l.append(t('
  • '+t(this).attr("label")+"
  • ")),e.each(function(){f(0,t(this))})}}),l.find("li:not(.optgroup)").each(function(o){t(this).click(function(r){if(!t(this).hasClass("disabled")&&!t(this).hasClass("optgroup")){var s=!0;a?(t('input[type="checkbox"]',this).prop("checked",function(t,e){return!e}),s=i(c,t(this).index(),n),g.trigger("focus")):(l.find("li").removeClass("active"),t(this).toggleClass("active"),g.val(t(this).text())),activateOption(l,t(this)),n.find("option").eq(o).prop("selected",s),n.trigger("change"),void 0!==e&&e()}r.stopPropagation()})}),n.wrap(s);var h=t('');n.is(":disabled")&&h.addClass("disabled");var v=p.replace(/"/g,"""),g=t('');n.before(g),g.before(h),g.after(l),n.is(":disabled")||g.dropdown({hover:!1,closeOnClick:!1}),n.attr("tabindex")&&t(g[0]).attr("tabindex",n.attr("tabindex")),n.addClass("initialized"),g.on({focus:function(){if(t("ul.select-dropdown").not(l[0]).is(":visible")&&t("input.select-dropdown").trigger("close"),!l.is(":visible")){t(this).trigger("open",["focus"]);var e=t(this).val(),i=l.find("li").filter(function(){return t(this).text().toLowerCase()===e.toLowerCase()})[0];activateOption(l,i)}},click:function(t){t.stopPropagation()}}),g.on("blur",function(){a||t(this).trigger("close"),l.find("li.selected").removeClass("selected")}),l.hover(function(){d=!0},function(){d=!1}),t(window).on({click:function(){a&&(d||g.trigger("close"))}}),a&&n.find("option:selected:not(:disabled)").each(function(){var e=t(this).index();i(c,e,n),l.find("li").eq(e).find(":checkbox").prop("checked",!0)}),activateOption=function(e,i){if(i){e.find("li.selected").removeClass("selected");var n=t(i);n.addClass("selected"),l.scrollTo(n)}};var m=[];g.on("keydown",function(e){if(9!=e.which)if(40!=e.which||l.is(":visible")){if(13!=e.which||l.is(":visible")){e.preventDefault();var i=String.fromCharCode(e.which).toLowerCase();if(i&&-1===[9,13,27,38,40].indexOf(e.which)){m.push(i);var n=m.join(""),o=l.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(n)})[0];o&&activateOption(l,o)}if(13==e.which){var r=l.find("li.selected:not(.disabled)")[0];r&&(t(r).trigger("click"),a||g.trigger("close"))}40==e.which&&(o=l.find("li.selected").length?l.find("li.selected").next("li:not(.disabled)")[0]:l.find("li:not(.disabled)")[0],activateOption(l,o)),27==e.which&&g.trigger("close"),38==e.which&&(o=l.find("li.selected").prev("li:not(.disabled)")[0])&&activateOption(l,o),setTimeout(function(){m=[]},1e3)}}else g.trigger("open");else g.trigger("close")})}else n.data("select-id",null).removeClass("initialized")}})}}(jQuery),function(t){var e={init:function(e){return e=t.extend({indicators:!0,height:400,transition:500,interval:6e3},e),this.each(function(){var i,n,a,o=t(this),r=o.find("ul.slides").first(),s=r.find("li"),l=r.find(".active").index();function u(t,e){t.hasClass("center-align")?t.velocity({opacity:0,translateY:-100},{duration:e,queue:!1}):t.hasClass("right-align")?t.velocity({opacity:0,translateX:100},{duration:e,queue:!1}):t.hasClass("left-align")&&t.velocity({opacity:0,translateX:-100},{duration:e,queue:!1})}function c(t){t>=s.length?t=0:t<0&&(t=s.length-1),(l=r.find(".active").index())!=t&&(i=s.eq(l),$caption=i.find(".caption"),i.removeClass("active"),i.velocity({opacity:0},{duration:e.transition,queue:!1,easing:"easeOutQuad",complete:function(){s.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),u($caption,e.transition),e.indicators&&n.eq(l).removeClass("active"),s.eq(t).velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,delay:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).addClass("active"),e.indicators&&n.eq(t).addClass("active"))}-1!=l&&(i=s.eq(l)),o.hasClass("fullscreen")||(e.indicators?o.height(e.height+40):o.height(e.height),r.height(e.height)),s.find(".caption").each(function(){u(t(this),0)}),s.find("img").each(function(){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(this).attr("src")!==e&&(t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src",e))}),e.indicators&&(n=t(''),s.each(function(i){var o=t('
  • ');o.click(function(){c(r.parent().find(t(this)).index()),clearInterval(a),a=setInterval(function(){l=r.find(".active").index(),s.length==l+1?l=0:l+=1,c(l)},e.transition+e.interval)}),n.append(o)}),o.append(n),n=o.find("ul.indicators").find("li.indicator-item")),i?i.show():(s.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),l=0,i=s.eq(l),e.indicators&&n.eq(l).addClass("active")),i.find("img").each(function(){i.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})}),a=setInterval(function(){c((l=r.find(".active").index())+1)},e.transition+e.interval);var d=!1,p=!1;o.hammer({prevent_default:!1}).bind("pan",function(t){if("touch"===t.gesture.pointerType){clearInterval(a);var e,i=t.gesture.direction,n=t.gesture.deltaX,l=t.gesture.velocityX;$curr_slide=r.find(".active"),$curr_slide.velocity({translateX:n},{duration:50,queue:!1,easing:"easeOutQuad"}),4===i&&(n>o.innerWidth()/2||l<-.65)?p=!0:2===i&&(n<-1*o.innerWidth()/2||l>.65)&&(d=!0),d&&(0===(e=$curr_slide.next()).length&&(e=s.first()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),p&&(0===(e=$curr_slide.prev()).length&&(e=s.last()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(t){"touch"===t.gesture.pointerType&&($curr_slide=r.find(".active"),!1,curr_index=r.find(".active").index(),p||d?d?(c(curr_index+1),$curr_slide.velocity({translateX:-1*o.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):p&&(c(curr_index-1),$curr_slide.velocity({translateX:o.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}),d=!1,p=!1,clearInterval(a),a=setInterval(function(){l=r.find(".active").index(),s.length==l+1?l=0:l+=1,c(l)},e.transition+e.interval))}),o.on("sliderPause",function(){clearInterval(a)}),o.on("sliderStart",function(){clearInterval(a),a=setInterval(function(){l=r.find(".active").index(),s.length==l+1?l=0:l+=1,c(l)},e.transition+e.interval)}),o.on("sliderNext",function(){c((l=r.find(".active").index())+1)}),o.on("sliderPrev",function(){c((l=r.find(".active").index())-1)})})},pause:function(){t(this).trigger("sliderPause")},start:function(){t(this).trigger("sliderStart")},next:function(){t(this).trigger("sliderNext")},prev:function(){t(this).trigger("sliderPrev")}};t.fn.slider=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)}}(jQuery),function(t){t(document).ready(function(){t(document).on("click.card",".card",function(e){t(this).find("> .card-reveal").length&&(t(e.target).is(t(".card-reveal .card-title"))||t(e.target).is(t(".card-reveal .card-title i"))?t(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){t(this).css({display:"none"})}}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&(t(e.target).closest(".card").css("overflow","hidden"),t(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))),t(".card-reveal").closest(".card").css("overflow","hidden")})})}(jQuery),function(t){t(document).ready(function(){t(document).on("click.chip",".chip .material-icons",function(e){t(this).parent().remove()})})}(jQuery),function(t){t(document).ready(function(){t.fn.pushpin=function(e){var i={top:0,bottom:1/0,offset:0};return e=t.extend(i,e),$index=0,this.each(function(){var i=Materialize.guid(),n=t(this),a=t(this).offset().top;function o(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function r(i,n){i.each(function(){e.top<=n&&e.bottom>=n&&!t(this).hasClass("pinned")&&(o(t(this)),t(this).css("top",e.offset),t(this).addClass("pinned")),ne.bottom&&!t(this).hasClass("pin-bottom")&&(o(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",e.bottom-a))})}r(n,t(window).scrollTop()),t(window).on("scroll."+i,function(){var i=t(window).scrollTop()+e.offset;r(n,i)})})}})}(jQuery),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",function(i){var n=t(this);e(n)}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",function(e){var n=t(this);i(n)}),t(document).on("click.fixedActionBtn",".fixed-action-btn.click-to-toggle > a",function(n){var a=t(this).parent();a.hasClass("active")?i(a):e(a)})}),t.fn.extend({openFAB:function(){e(t(this))},closeFAB:function(){i(t(this))}});var e=function(e){if($this=e,!1===$this.hasClass("active")){var i,n;!0===$this.hasClass("horizontal")?n=40:i=40,$this.addClass("active"),$this.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:i+"px",translateX:n+"px"},{duration:0});var a=0;$this.find("ul .btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:a}),a+=40})}},i=function(t){var e,i;$this=t,!0===$this.hasClass("horizontal")?i=40:e=40,$this.removeClass("active");$this.find("ul .btn-floating").velocity("stop",!0),$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:e+"px",translateX:i+"px"},{duration:80})}}(jQuery),function(t){Materialize.fadeInImage=function(e){var i=t(e);i.css({opacity:0}),t(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(i).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,i){i.start=100;var n=e/100,a=150-(100-e)/1.75;a<100&&(a=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+n+")brightness("+a+"%)",filter:"grayscale("+n+")brightness("+a+"%)"})}})},Materialize.showStaggeredList=function(e){var i=0;t(e).find("li").velocity({translateX:"-100px"},{duration:0}),t(e).find("li").each(function(){t(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:i,easing:[60,10]}),i+=120})},t(document).ready(function(){var e=!1,i=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).bind("pan",function(n){if("touch"===n.gesture.pointerType){var a=t(this),o=n.gesture.direction,r=n.gesture.deltaX,s=n.gesture.velocityX;a.velocity({translateX:r},{duration:50,queue:!1,easing:"easeOutQuad"}),4===o&&(r>a.innerWidth()/2||s<-.75)&&(e=!0),2===o&&(r<-1*a.innerWidth()/2||s>.75)&&(i=!0)}}).bind("panend",function(n){if(Math.abs(n.gesture.deltaX)l.getBoundingClientRect().top+window.pageYOffset+r&&!0!==a.done&&(new Function(s)(),a.done=!0)}}},100)},function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):this.Picker=t(jQuery)}(function(t){var e=t(window),i=t(document),n=t(document.documentElement);function a(e,s,u,c){if(!e)return a;var d=!1,p={id:e.id||"P"+Math.abs(~~(Math.random()*new Date))},f=u?t.extend(!0,{},u.defaults,c):c||{},h=t.extend({},a.klasses(),f.klass),v=t(e),g=function(){return this.start()},m=g.prototype={constructor:g,$node:v,start:function(){return p&&p.start?m:(p.methods={},p.start=!0,p.open=!1,p.type=e.type,e.autofocus=e==l(),e.readOnly=!f.editable,e.id=e.id||p.id,"text"!=e.type&&(e.type="text"),m.component=new u(m,f),m.$root=t(a._.node("div",y(),h.picker,'id="'+e.id+'_root" tabindex="0"')),m.$root.on({keydown:b,focusin:function(t){m.$root.removeClass(h.focused),t.stopPropagation()},"mousedown click":function(e){var i=e.target;i!=m.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(i).is("input, select, textarea, button, option")||(e.preventDefault(),m.$root[0].focus()))}}).on({focus:function(){v.addClass(h.target)},blur:function(){v.removeClass(h.target)}}).on("focus.toOpen",w).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),i=e.data(),n=e.hasClass(h.navDisabled)||e.hasClass(h.disabled),a=l();a=a&&(a.type||a.href),(n||a&&!t.contains(m.$root[0],a))&&m.$root[0].focus(),!n&&i.nav?m.set("highlight",m.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?m.set("select",i.pick):i.clear?m.clear().close(!0):i.close&&m.close(!0)}),r(m.$root[0],"hidden",!0),f.formatSubmit&&function(){var i;!0===f.hiddenName?(i=e.name,e.name=""):i=(i=["string"==typeof f.hiddenPrefix?f.hiddenPrefix:"","string"==typeof f.hiddenSuffix?f.hiddenSuffix:"_submit"])[0]+e.name+i[1];m._hidden=t('")[0],v.on("change."+p.id,function(){m._hidden.value=e.value?m.get("select",f.formatSubmit):""}),f.container?t(f.container).append(m._hidden):v.after(m._hidden)}(),function(){v.data(s,m).addClass(h.input).attr("tabindex",-1).val(v.data("value")?m.get("select",f.format):e.value),f.editable||v.on("focus."+p.id+" click."+p.id,function(t){t.preventDefault(),m.$root[0].focus()}).on("keydown."+p.id,b);r(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"}),document.querySelector("#"+e.id).addEventListener("pointerdown",function(t){t.target&&t.target.setPointerCapture&&t.target.setPointerCapture(t.pointerId)})}(),f.container?t(f.container).append(m.$root):v.after(m.$root),m.on({start:m.component.onStart,render:m.component.onRender,stop:m.component.onStop,open:m.component.onOpen,close:m.component.onClose,set:m.component.onSet}).on({start:f.onStart,render:f.onRender,stop:f.onStop,open:f.onOpen,close:f.onClose,set:f.onSet}),d=function(t){var e;t.currentStyle?e=t.currentStyle.position:window.getComputedStyle&&(e=getComputedStyle(t).position);return"fixed"==e}(m.$root.children()[0]),e.autofocus&&m.open(),m.trigger("start").trigger("render"))},render:function(t){return t?m.$root.html(y()):m.$root.find("."+h.box).html(m.component.nodes(p.open)),m.trigger("render")},stop:function(){return p.start?(m.close(),m._hidden&&m._hidden.parentNode.removeChild(m._hidden),m.$root.remove(),v.removeClass(h.input).removeData(s),setTimeout(function(){v.off("."+p.id)},0),e.type=p.type,e.readOnly=!1,m.trigger("stop"),p.methods={},p.start=!1,m):m},open:function(s){return p.open?m:(v.addClass(h.active),r(e,"expanded",!0),setTimeout(function(){m.$root.addClass(h.opened),r(m.$root[0],"hidden",!1)},0),!1!==s&&(p.open=!0,d&&n.css("overflow","hidden").css("padding-right","+="+o()),m.$root[0].focus(),i.on("click."+p.id+" focusin."+p.id,function(t){var i=t.target;i!=e&&i!=document&&3!=t.which&&m.close(i===m.$root.children()[0])}).on("keydown."+p.id,function(e){var i=e.keyCode,n=m.component.key[i],o=e.target;27==i?m.close(!0):o!=m.$root[0]||!n&&13!=i?t.contains(m.$root[0],o)&&13==i&&(e.preventDefault(),o.click()):(e.preventDefault(),n?a._.trigger(m.component.key.go,m,[a._.trigger(n)]):m.$root.find("."+h.highlighted).hasClass(h.disabled)||m.set("select",m.component.item.highlight).close())})),m.trigger("open"))},close:function(t){return t&&(m.$root.off("focus.toOpen")[0].focus(),setTimeout(function(){m.$root.on("focus.toOpen",w)},0)),v.removeClass(h.active),r(e,"expanded",!1),setTimeout(function(){m.$root.removeClass(h.opened+" "+h.focused),r(m.$root[0],"hidden",!0)},0),p.open?(p.open=!1,d&&n.css("overflow","").css("padding-right","-="+o()),i.off("."+p.id),m.trigger("close")):m},clear:function(t){return m.set("clear",null,t)},set:function(e,i,n){var a,o,r=t.isPlainObject(e),s=r?e:{};if(n=r&&t.isPlainObject(i)?i:n||{},e){for(a in r||(s[e]=i),s)o=s[a],a in m.component.item&&(void 0===o&&(o=null),m.component.set(a,o,n)),"select"!=a&&"clear"!=a||v.val("clear"==a?"":m.get(a,f.format)).trigger("change");m.render()}return n.muted?m:m.trigger("set",s)},get:function(t,i){if(null!=p[t=t||"value"])return p[t];if("valueSubmit"==t){if(m._hidden)return m._hidden.value;t="value"}if("value"==t)return e.value;if(t in m.component.item){if("string"==typeof i){var n=m.component.get(t);return n?a._.trigger(m.component.formats.toString,m.component,[i,n]):""}return m.component.get(t)}},on:function(e,i,n){var a,o,r=t.isPlainObject(e),s=r?e:{};if(e)for(a in r||(s[e]=i),s)o=s[a],n&&(a="_"+a),p.methods[a]=p.methods[a]||[],p.methods[a].push(o);return m},off:function(){var t,e,i=arguments;for(t=0,namesCount=i.length;t').appendTo("body"),a=i[0].offsetWidth;i.css("overflow","scroll");var o=t('
    ').appendTo(i)[0].offsetWidth;return i.remove(),a-o}function r(e,i,n){if(t.isPlainObject(i))for(var a in i)s(e,a,i[a]);else s(e,i,n)}function s(t,e,i){t.setAttribute(("role"==e?"":"aria-")+e,i)}function l(){try{return document.activeElement}catch(t){}}return a.klasses=function(t){return{picker:t=t||"picker",opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},a._={group:function(t){for(var e,i="",n=a._.trigger(t.min,t);n<=a._.trigger(t.max,t,[n]);n+=t.i)e=a._.trigger(t.item,t,[n]),i+=a._.node(t.node,e[0],e[1],e[2]);return i},node:function(e,i,n,a){return i?"<"+e+(n=n?' class="'+n+'"':"")+(a=a?" "+a:"")+">"+(i=t.isArray(i)?i.join(""):i)+"":""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,i){return"function"==typeof t?t.apply(e,i||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1==0},ariaAttr:function(e,i){t.isPlainObject(e)||(e={attribute:i});for(var n in i="",e){var a=("role"==n?"":"aria-")+n,o=e[n];i+=null==o?"":a+'="'+e[n]+'"'}return i}},a.extend=function(e,i){t.fn[e]=function(n,o){var r=this.data(e);return"picker"==n?r:r&&"string"==typeof n?a._.trigger(r[n],r,[o]):this.each(function(){t(this).data(e)||new a(this,e,i,n)})},t.fn[e].defaults=i.defaults},a}),function(t){"function"==typeof define&&define.amd?define(["picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,e){var i,n=t._;function a(t,e){var i,n=this,a=t.$node[0],o=a.value,r=t.$node.data("value"),s=r||o,l=r?e.formatSubmit:e.format,u=function(){return a.currentStyle?"rtl"==a.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};n.settings=e,n.$node=t.$node,n.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"},n.item={},n.item.clear=null,n.item.disable=(e.disable||[]).slice(0),n.item.enable=-(!0===(i=n.item.disable)[0]?i.shift():-1),n.set("min",e.min).set("max",e.max).set("now"),s?n.set("select",s,{format:l}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return u()?-1:1},37:function(){return u()?1:-1},go:function(t){var e=n.item.highlight,i=new Date(e.year,e.month,e.date+t);n.set("highlight",i,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var i=this.value;i&&(t.set("highlight",[t.get("view").year,i,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var i=this.value;i&&(t.set("highlight",[i,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var i="";n.disabled(n.get("now"))&&(i=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+i+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}a.prototype.set=function(t,e,i){var n=this,a=n.item;return null===e?("clear"==t&&(t="select"),a[t]=e,n):(a["enable"==t?"disable":"flip"==t?"enable":t]=n.queue[t].split(" ").map(function(a){return e=n[a](t,e,i)}).pop(),"select"==t?n.set("highlight",a.select,i):"highlight"==t?n.set("view",a.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(a.select&&n.disabled(a.select)&&n.set("select",a.select,i),a.highlight&&n.disabled(a.highlight)&&n.set("highlight",a.highlight,i)),n)},a.prototype.get=function(t){return this.item[t]},a.prototype.create=function(t,i,a){var o;return(i=void 0===i?t:i)==-1/0||i==1/0?o=i:e.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=n.isDate(i)?i:this.create().obj):i=n.isInteger(i)||n.isDate(i)?this.normalize(new Date(i),a):this.now(t,i,a),{year:o||i.getFullYear(),month:o||i.getMonth(),date:o||i.getDate(),day:o||i.getDay(),obj:o||i,pick:o||i.getTime()}},a.prototype.createRange=function(t,i){var a=this,o=function(t){return!0===t||e.isArray(t)||n.isDate(t)?a.create(t):t};return n.isInteger(t)||(t=o(t)),n.isInteger(i)||(i=o(i)),n.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:n.isInteger(i)&&e.isPlainObject(t)&&(i=[t.year,t.month,t.date+i]),{from:o(t),to:o(i)}},a.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},a.prototype.overlapRanges=function(t,e){return t=this.createRange(t.from,t.to),e=this.createRange(e.from,e.to),this.withinRange(t,e.from)||this.withinRange(t,e.to)||this.withinRange(e,t.from)||this.withinRange(e,t.to)},a.prototype.now=function(t,e,i){return e=new Date,i&&i.rel&&e.setDate(e.getDate()+i.rel),this.normalize(e,i)},a.prototype.navigate=function(t,i,n){var a,o,r,s,l=e.isArray(i),u=e.isPlainObject(i),c=this.item.view;if(l||u){for(u?(o=i.year,r=i.month,s=i.date):(o=+i[0],r=+i[1],s=+i[2]),n&&n.nav&&c&&c.month!==r&&(o=c.year,r=c.month),o=(a=new Date(o,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=a.getMonth();new Date(o,r,s).getMonth()!==r;)s-=1;i=[o,r,s]}return i},a.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},a.prototype.measure=function(t,e){return e?"string"==typeof e?e=this.parse(t,e):n.isInteger(e)&&(e=this.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},a.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},a.prototype.validate=function(t,i,a){var o,r,s,l,u=this,c=i,d=a&&a.interval?a.interval:1,p=-1===u.item.enable,f=u.item.min,h=u.item.max,v=p&&u.item.disable.filter(function(t){if(e.isArray(t)){var a=u.create(t).pick;ai.pick&&(r=!0)}return n.isInteger(t)}).length;if((!a||!a.nav)&&(!p&&u.disabled(i)||p&&u.disabled(i)&&(v||o||r)||!p&&(i.pick<=f.pick||i.pick>=h.pick)))for(p&&!v&&(!r&&d>0||!o&&d<0)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.monthc.month)&&(i=c,d=d>0?1:-1),i.pick<=f.pick?(s=!0,d=1,i=u.create([f.year,f.month,f.date+(i.pick===f.pick?0:-1)])):i.pick>=h.pick&&(l=!0,d=-1,i=u.create([h.year,h.month,h.date+(i.pick===h.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},a.prototype.disabled=function(t){var i=this,a=i.item.disable.filter(function(a){return n.isInteger(a)?t.day===(i.settings.firstDay?a:a-1)%7:e.isArray(a)||n.isDate(a)?t.pick===i.create(a).pick:e.isPlainObject(a)?i.withinRange(a,t):void 0});return a=a.length&&!a.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!a:a||t.picki.item.max.pick},a.prototype.parse=function(t,e,i){var a=this,o={};return e&&"string"==typeof e?(i&&i.format||((i=i||{}).format=a.settings.format),a.formats.toArray(i.format).map(function(t){var i=a.formats[t],r=i?n.trigger(i,a,[e,o]):t.replace(/^!/,"").length;i&&(o[t]=e.substr(0,r)),e=e.substr(r)}),[o.yyyy||o.yy,+(o.mm||o.m)-1,o.dd||o.d]):e},a.prototype.formats=function(){function t(t,e,i){var n=t.match(/\w+/)[0];return i.mm||i.m||(i.m=e.indexOf(n)+1),n.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?n.digits(t):e.date},dd:function(t,e){return t?2:n.lead(e.date)},ddd:function(t,i){return t?e(t):this.settings.weekdaysShort[i.day]},dddd:function(t,i){return t?e(t):this.settings.weekdaysFull[i.day]},m:function(t,e){return t?n.digits(t):e.month+1},mm:function(t,e){return t?2:n.lead(e.month+1)},mmm:function(e,i){var n=this.settings.monthsShort;return e?t(e,n,i):n[i.month]},mmmm:function(e,i){var n=this.settings.monthsFull;return e?t(e,n,i):n[i.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var i=this;return i.formats.toArray(t).map(function(t){return n.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")}).join("")}}}(),a.prototype.isDateExact=function(t,i){return n.isInteger(t)&&n.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(n.isDate(t)||e.isArray(t))&&(n.isDate(i)||e.isArray(i))?this.create(t).pick===this.create(i).pick:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&(this.isDateExact(t.from,i.from)&&this.isDateExact(t.to,i.to))},a.prototype.isDateOverlap=function(t,i){var a=this.settings.firstDay?1:0;return n.isInteger(t)&&(n.isDate(i)||e.isArray(i))?(t=t%7+a)===this.create(i).day+1:n.isInteger(i)&&(n.isDate(t)||e.isArray(t))?(i=i%7+a)===this.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&this.overlapRanges(t,i)},a.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},a.prototype.deactivate=function(t,i){var a=this,o=a.item.disable.slice(0);return"flip"==i?a.flipEnable():!1===i?(a.flipEnable(1),o=[]):!0===i?(a.flipEnable(-1),o=[]):i.map(function(t){for(var i,r=0;r=f.year&&c.month>=f.month||!t&&c.year<=p.year&&c.month<=p.month?" "+o.klass.navDisabled:""),"data-nav="+(t||-1)+" "+n.ariaAttr({role:"button",controls:a.$node[0].id+"_table"})+' title="'+(t?o.labelMonthNext:o.labelMonthPrev)+'"')},g=function(e){var i=o.showMonthsShort?o.monthsShort:o.monthsFull;return"short_months"==e&&(i=o.monthsShort),o.selectMonths&&null==e?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(t){return[i[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==p.year&&tf.month?" disabled":"")]}}),o.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:a.$node[0].id+"_table"})+' title="'+o.labelMonthSelect+'"'):"short_months"==e?null!=l?n.node("div",i[l.month]):n.node("div",i[c.month]):n.node("div",i[c.month],o.klass.month)},m=function(e){var i=c.year,r=!0===o.selectYears?5:~~(o.selectYears/2);if(r){var s=p.year,l=f.year,u=i-r,d=i+r;if(s>u&&(d+=s-u,u=s),lv?v:h,d=l}if(o.selectYears&&null==e)return n.node("select",n.group({min:u,max:d,i:1,node:"option",item:function(t){return[t,0,"value="+t+(i==t?" selected":"")]}}),o.klass.selectYear+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:a.$node[0].id+"_table"})+' title="'+o.labelYearSelect+'"')}return"raw"==e?n.node("div",i):n.node("div",i,o.klass.year)};return createDayLabel=function(){return null!=l?n.node("div",l.date):n.node("div",s.date)},createWeekdayLabel=function(){var t;return t=null!=l?l.day:s.day,o.weekdaysFull[t]},n.node("div",n.node("div",createWeekdayLabel(),"picker__weekday-display")+n.node("div",g("short_months"),o.klass.month_display)+n.node("div",createDayLabel(),o.klass.day_display)+n.node("div",m("raw"),o.klass.year_display),o.klass.date_display)+n.node("div",n.node("div",(o.selectYears,g()+m()+v()+v(1)),o.klass.header)+n.node("table",h+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(t){var e=o.firstDay&&0===a.create([c.year,c.month,1]).day?-7:0;return[n.group({min:7*t-c.day+e+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=a.create([c.year,c.month,t+(o.firstDay?1:0)]);var e,i=l&&l.pick==t.pick,r=u&&u.pick==t.pick,h=d&&a.disabled(t)||t.pickf.pick,v=n.trigger(a.formats.toString,a,[o.format,t]);return[n.node("div",t.date,(e=[o.klass.day],e.push(c.month==t.month?o.klass.infocus:o.klass.outfocus),s.pick==t.pick&&e.push(o.klass.now),i&&e.push(o.klass.selected),r&&e.push(o.klass.highlighted),h&&e.push(o.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+n.ariaAttr({role:"gridcell",label:v,selected:!(!i||a.$node.val()!==v)||null,activedescendant:!!r||null,disabled:!!h||null})),"",n.ariaAttr({role:"presentation"})]}})]}})),o.klass.table,'id="'+a.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:a.$node[0].id,readonly:!0})),o.klass.calendar_container)+n.node("div",n.node("button",o.today,"btn-flat picker__today","type=button data-pick="+s.pick+(t&&!a.disabled(s)?"":" disabled")+" "+n.ariaAttr({controls:a.$node[0].id}))+n.node("button",o.clear,"btn-flat picker__clear","type=button data-clear=1"+(t?"":" disabled")+" "+n.ariaAttr({controls:a.$node[0].id}))+n.node("button",o.close,"btn-flat picker__close","type=button data-close=true "+(t?"":" disabled")+" "+n.ariaAttr({controls:a.$node[0].id})),o.klass.footer)},a.defaults={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:"Close",format:"d mmmm, yyyy",klass:{table:(i=t.klasses().picker+"__")+"table",header:i+"header",date_display:i+"date-display",day_display:i+"day-display",month_display:i+"month-display",year_display:i+"year-display",calendar_container:i+"calendar-container",navPrev:i+"nav--prev",navNext:i+"nav--next",navDisabled:i+"nav--disabled",month:i+"month",year:i+"year",selectMonth:i+"select--month",selectYear:i+"select--year",weekdays:i+"weekday",day:i+"day",disabled:i+"day--disabled",selected:i+"day--selected",highlighted:i+"day--highlighted",now:i+"day--today",infocus:i+"day--infocus",outfocus:i+"day--outfocus",footer:i+"footer",buttonClear:i+"button--clear",buttonToday:i+"button--today",buttonClose:i+"button--close"}},t.extend("pickadate",a)}),function(t){function e(){var e=+t(this).attr("length"),i=+t(this).val().length,n=i<=e;t(this).parent().find('span[class="character-counter"]').html(i+"/"+e),function(t,e){var i=e.hasClass("invalid");t&&i?e.removeClass("invalid"):t||i||(e.removeClass("valid"),e.addClass("invalid"))}(n,t(this))}function i(){t(this).parent().find('span[class="character-counter"]').html("")}t.fn.characterCounter=function(){return this.each(function(){var n,a;void 0!==t(this).attr("length")&&(t(this).on("input",e),t(this).on("focus",e),t(this).on("blur",i),n=t(this),a=t("").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),n.parent().append(a))})},t(document).ready(function(){t("input, textarea").characterCounter()})}(jQuery),function(t){var e={init:function(e){return e=t.extend({time_constant:200,dist:-100,shift:0,padding:0,full_width:!1},e),this.each(function(){var i,n,a,o,r,s,l,u,c,d,p,f,h,v,g,m,b,w=t(this);if(w.hasClass("initialized"))return!0;function x(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function C(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function k(t){return t>=s?t%s:t<0?k(s+t%s):t}function T(t){var o,l,u,c,d,p,h;for(n="number"==typeof t?t:n,a=Math.floor((n+r/2)/r),d=-(c=(u=n-a*r)<0?1:-1)*u*2/r,e.full_width?h="translateX(0)":(h="translateX("+(w[0].clientWidth-item_width)/2+"px) ",h+="translateY("+(w[0].clientHeight-item_width)/2+"px)"),(p=i[k(a)]).style[f]=h+" translateX("+-u/2+"px) translateX("+c*e.shift*d*o+"px) translateZ("+e.dist*d+"px)",p.style.zIndex=0,e.full_width?tweenedOpacity=1:tweenedOpacity=1-.2*d,p.style.opacity=tweenedOpacity,l=s>>1,o=1;o<=l;++o)e.full_width?(zTranslation=e.dist,tweenedOpacity=o===l&&u<0?1-d:1):(zTranslation=e.dist*(2*o+d*c),tweenedOpacity=1-.2*(2*o+d*c)),(p=i[k(a+o)]).style[f]=h+" translateX("+(e.shift+(r*o-u)/2)+"px) translateZ("+zTranslation+"px)",p.style.zIndex=-o,p.style.opacity=tweenedOpacity,e.full_width?(zTranslation=e.dist,tweenedOpacity=o===l&&u>0?1-d:1):(zTranslation=e.dist*(2*o-d*c),tweenedOpacity=1-.2*(2*o-d*c)),(p=i[k(a-o)]).style[f]=h+" translateX("+(-e.shift+(-r*o-u)/2)+"px) translateZ("+zTranslation+"px)",p.style.zIndex=-o,p.style.opacity=tweenedOpacity;(p=i[k(a)]).style[f]=h+" translateX("+-u/2+"px) translateX("+c*e.shift*d+"px) translateZ("+e.dist*d+"px)",p.style.zIndex=0,e.full_width?tweenedOpacity=1:tweenedOpacity=1-.2*d,p.style.opacity=tweenedOpacity}function S(){var t,e,i;e=(t=Date.now())-v,v=t,i=n-h,h=n,p=.8*(1e3*i/(1+e))+.2*p}function O(){var t,i;c&&(t=Date.now()-v,(i=c*Math.exp(-t/e.time_constant))>2||i<-2?(T(d-i),requestAnimationFrame(O)):T(d))}function P(i){if(m)return i.preventDefault(),i.stopPropagation(),!1;if(!e.full_width){var n=t(i.target).closest(".carousel-item").index(),o=a%s-n;o<0?Math.abs(o+s)0&&Math.abs(o-s)0&&t(this).trigger("carouselPrev",[o])}}function E(t){o=!0,m=!1,b=!1,l=x(t),u=C(t),p=c=0,h=n,v=Date.now(),clearInterval(g),g=setInterval(S,100)}function A(t){var e,i;if(o)if(e=x(t),y=C(t),i=l-e,Math.abs(u-y)<30&&!b)(i>2||i<-2)&&(m=!0,l=e,T(n+i));else{if(m)return t.preventDefault(),t.stopPropagation(),!1;b=!0}if(m)return t.preventDefault(),t.stopPropagation(),!1}function q(t){return o=!1,clearInterval(g),d=n,(p>10||p<-10)&&(d=n+(c=.9*p)),d=Math.round(d/r)*r,c=d-n,v=Date.now(),requestAnimationFrame(O),t.preventDefault(),t.stopPropagation(),!1}e.full_width&&(e.dist=0,imageHeight=w.find(".carousel-item img").first().load(function(){w.css("height",t(this).height())})),w.addClass("initialized"),o=!1,n=d=0,i=[],item_width=w.find(".carousel-item").first().innerWidth(),r=2*item_width+e.padding,w.find(".carousel-item").each(function(){i.push(t(this)[0])}),s=i.length,f="transform",["webkit","Moz","O","ms"].every(function(t){var e=t+"Transform";return void 0===document.body.style[e]||(f=e,!1)}),window.onresize=T,void 0!==window.ontouchstart&&(w[0].addEventListener("touchstart",E),w[0].addEventListener("touchmove",A),w[0].addEventListener("touchend",q)),w[0].addEventListener("mousedown",E),w[0].addEventListener("mousemove",A),w[0].addEventListener("mouseup",q),w[0].addEventListener("click",P),T(n),t(this).on("carouselNext",function(t,e){void 0===e&&(e=1),n!==(d=n+r*e)&&(c=d-n,v=Date.now(),requestAnimationFrame(O))}),t(this).on("carouselPrev",function(t,e){void 0===e&&(e=1),n!==(d=n-r*e)&&(c=d-n,v=Date.now(),requestAnimationFrame(O))})})},next:function(e){t(this).trigger("carouselNext",[e])},prev:function(e){t(this).trigger("carouselPrev",[e])}};t.fn.carousel=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.carousel"):e.init.apply(this,arguments)}}(jQuery);



    © 2015 - 2024 Weber Informatics LLC | Privacy Policy