text: !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){var n=[],i=t.document,o=n.slice,r=n.concat,a=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d={},h=function(t,e){return new h.fn.init(t,e)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,g=/-([\da-z])/gi,v=function(t,e){return e.toUpperCase()};function m(t){var e=!!t&&"length"in t&&t.length,n=h.type(t);return"function"!==n&&!h.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}h.fn=h.prototype={jquery:"2.2.4",constructor:h,selector:"",length:0,toArray:function(){return o.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:o.call(this)},pushStack:function(t){var e=h.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return h.each(this,t)},map:function(t){return this.pushStack(h.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var t,e,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(i=t[e])&&(u&&i&&(h.isPlainObject(i)||(o=h.isArray(i)))?(o?(o=!1,r=n&&h.isArray(n)?n:[]):r=n&&h.isPlainObject(n)?n:{},a[e]=h.extend(u,r,i)):void 0!==i&&(a[e]=i));return a},h.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===h.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!h.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==h.type(t)||t.nodeType||h.isWindow(t))return!1;if(t.constructor&&!c.call(t,"constructor")&&!c.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||c.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=h.trim(t))&&(1===t.indexOf("use strict")?((e=i.createElement("script")).text=t,i.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(p,"ms-").replace(g,v)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(m(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(f,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(m(Object(t))?h.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:s.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,a=!n;o<r;o++)!e(t[o],o)!==a&&i.push(t[o]);return i},map:function(t,e,n){var i,o,a=0,s=[];if(m(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return r.apply([],s)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),h.isFunction(t))return i=o.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||h.guid++,r},now:Date.now,support:d}),"function"==typeof Symbol&&(h.fn[Symbol.iterator]=n[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){l["[object "+e+"]"]=e.toLowerCase()});var y=function(t){var e,n,i,o,r,a,s,l,u,c,d,h,f,p,g,v,m,y,b,x="sizzle"+1*new Date,w=t.document,k=0,C=0,T=rt(),S=rt(),M=rt(),A=function(t,e){return t===e&&(d=!0),0},P=1<<31,D={}.hasOwnProperty,_=[],I=_.pop,O=_.push,E=_.push,L=_.slice,F=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W="\\["+R+"*("+z+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+R+"*\\]",H=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",q=new RegExp(R+"+","g"),j=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),V=new RegExp("^"+R+"*,"+R+"*"),B=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),$=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),X=new RegExp(H),Y=new RegExp("^"+z+"$"),Q={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,tt=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),nt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},it=function(){h()};try{E.apply(_=L.call(w.childNodes),w.childNodes)}catch(t){E={apply:_.length?function(t,e){O.apply(t,L.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,i,o){var r,s,u,c,d,p,m,y,k=e&&e.ownerDocument,C=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==C&&9!==C&&11!==C)return i;if(!o&&((e?e.ownerDocument||e:w)!==f&&h(e),e=e||f,g)){if(11!==C&&(p=J.exec(t)))if(r=p[1]){if(9===C){if(!(u=e.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(k&&(u=k.getElementById(r))&&b(e,u)&&u.id===r)return i.push(u),i}else{if(p[2])return E.apply(i,e.getElementsByTagName(t)),i;if((r=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return E.apply(i,e.getElementsByClassName(r)),i}if(n.qsa&&!M[t+" "]&&(!v||!v.test(t))){if(1!==C)k=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(tt,"\\$&"):e.setAttribute("id",c=x),s=(m=a(t)).length,d=Y.test(c)?"#"+c:"[id='"+c+"']";s--;)m[s]=d+" "+gt(m[s]);y=m.join(","),k=K.test(t)&&ft(e.parentNode)||e}if(y)try{return E.apply(i,k.querySelectorAll(y)),i}catch(t){}finally{c===x&&e.removeAttribute("id")}}}return l(t.replace(j,"$1"),e,i,o)}function rt(){var t=[];return function e(n,o){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function at(t){return t[x]=!0,t}function st(t){var e=f.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=e}function ut(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||P)-(~t.sourceIndex||P);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ht(t){return at(function(e){return e=+e,at(function(n,i){for(var o,r=t([],n.length,e),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function ft(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}for(e in n=ot.support={},r=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},h=ot.setDocument=function(t){var e,o,a=t?t.ownerDocument||t:w;return a!==f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,g=!r(f),(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",it,!1):o.attachEvent&&o.attachEvent("onunload",it)),n.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=st(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=st(function(t){return p.appendChild(t).id=x,!f.getElementsByName||!f.getElementsByName(x).length}),n.getById?(i.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}},i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}}):(delete i.find.ID,i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),i.find.TAG=n.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=Z.test(f.querySelectorAll))&&(st(function(t){p.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+x+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]")}),st(function(t){var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+R+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Z.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&st(function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),m.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=Z.test(p.compareDocumentPosition),b=e||Z.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===f||t.ownerDocument===w&&b(w,t)?-1:e===f||e.ownerDocument===w&&b(w,e)?1:c?F(c,t)-F(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!o||!r)return t===f?-1:e===f?1:o?-1:r?1:c?F(c,t)-F(c,e):0;if(o===r)return ut(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ut(a[i],s[i]):a[i]===w?-1:s[i]===w?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&h(t),e=e.replace($,"='$1']"),n.matchesSelector&&g&&!M[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==f&&h(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==f&&h(t);var o=i.attrHandle[e.toLowerCase()],r=o&&D.call(i.attrHandle,e.toLowerCase())?o(t,e,!g):void 0;return void 0!==r?r:n.attributes||!g?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,i=[],o=0,r=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(A),d){for(;e=t[r++];)e===t[r]&&(o=i.push(r));for(;o--;)t.splice(i[o],1)}return c=null,t},o=ot.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(i=ot.selectors={cacheLength:50,createPseudo:at,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&X.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&T(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var o=ot.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,g=r!==a?"nextSibling":"previousSibling",v=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(r){for(;g;){for(h=e;h=h[g];)if(s?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&y){for(b=(f=(u=(c=(d=(h=v)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===k&&u[1])&&u[2],h=f&&v.childNodes[f];h=++f&&h&&h[g]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[k,f,b];break}}else if(y&&(b=f=(u=(c=(d=(h=e)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===k&&u[1]),!1===b)for(;(h=++f&&h&&h[g]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++b||(y&&((c=(d=h[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[k,b]),h!==e)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return o[x]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,n){for(var i,r=o(t,e),a=r.length;a--;)t[i=F(t,r[a])]=!(n[i]=r[a])}):function(t){return o(t,0,n)}):o}},pseudos:{not:at(function(t){var e=[],n=[],i=s(t.replace(j,"$1"));return i[x]?at(function(t,e,n,o){for(var r,a=i(t,null,o,[]),s=t.length;s--;)(r=a[s])&&(t[s]=!(e[s]=r))}):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}}),has:at(function(t){return function(e){return ot(t,e).length>0}}),contains:at(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||e.innerText||o(e)).indexOf(t)>-1}}),lang:at(function(t){return Y.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return U.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:ht(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=dt(e);function pt(){}function gt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function vt(t,e,n){var i=e.dir,o=n&&"parentNode"===i,r=C++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r)}:function(e,n,a){var s,l,u,c=[k,r];if(a){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,a))return!0}else for(;e=e[i];)if(1===e.nodeType||o){if((s=(l=(u=e[x]||(e[x]={}))[e.uniqueID]||(u[e.uniqueID]={}))[i])&&s[0]===k&&s[1]===r)return c[2]=s[2];if(l[i]=c,c[2]=t(e,n,a))return!0}}}function mt(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function yt(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),u&&e.push(s)));return a}function bt(t,e,n,i,o,r){return i&&!i[x]&&(i=bt(i)),o&&!o[x]&&(o=bt(o,r)),at(function(r,a,s,l){var u,c,d,h=[],f=[],p=a.length,g=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)ot(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),v=!t||!r&&e?g:yt(g,h,t,s,l),m=n?o||(r?t:p||i)?[]:a:v;if(n&&n(v,m,s,l),i)for(u=yt(m,f),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(m[f[c]]=!(v[f[c]]=d));if(r){if(o||t){if(o){for(u=[],c=m.length;c--;)(d=m[c])&&u.push(v[c]=d);o(null,m=[],u,l)}for(c=m.length;c--;)(d=m[c])&&(u=o?F(r,d):h[c])>-1&&(r[u]=!(a[u]=d))}}else m=yt(m===a?m.splice(p,m.length):m),o?o(null,a,m,l):E.apply(a,m)})}function xt(t){for(var e,n,o,r=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=vt(function(t){return t===e},s,!0),d=vt(function(t){return F(e,t)>-1},s,!0),h=[function(t,n,i){var o=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,o}];l<r;l++)if(n=i.relative[t[l].type])h=[vt(mt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[x]){for(o=++l;o<r&&!i.relative[t[o].type];o++);return bt(l>1&&mt(h),l>1&&gt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(j,"$1"),n,l<o&&xt(t.slice(l,o)),o<r&&xt(t=t.slice(o)),o<r&&gt(t))}h.push(n)}return mt(h)}return pt.prototype=i.filters=i.pseudos,i.setFilters=new pt,a=ot.tokenize=function(t,e){var n,o,r,a,s,l,u,c=S[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){for(a in n&&!(o=V.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=B.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace(j," ")}),s=s.slice(n.length)),i.filter)!(o=Q[a].exec(s))||u[a]&&!(o=u[a](o))||(n=o.shift(),r.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return e?s.length:s?ot.error(t):S(t,l).slice(0)},s=ot.compile=function(t,e){var n,o=[],r=[],s=M[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=xt(e[n]))[x]?o.push(s):r.push(s);(s=M(t,function(t,e){var n=e.length>0,o=t.length>0,r=function(r,a,s,l,c){var d,p,v,m=0,y="0",b=r&&[],x=[],w=u,C=r||o&&i.find.TAG("*",c),T=k+=null==w?1:Math.random()||.1,S=C.length;for(c&&(u=a===f||a||c);y!==S&&null!=(d=C[y]);y++){if(o&&d){for(p=0,a||d.ownerDocument===f||(h(d),s=!g);v=t[p++];)if(v(d,a||f,s)){l.push(d);break}c&&(k=T)}n&&((d=!v&&d)&&m--,r&&b.push(d))}if(m+=y,n&&y!==m){for(p=0;v=e[p++];)v(b,x,a,s);if(r){if(m>0)for(;y--;)b[y]||x[y]||(x[y]=I.call(l));x=yt(x)}E.apply(l,x),c&&!r&&x.length>0&&m+e.length>1&&ot.uniqueSort(l)}return c&&(k=T,u=w),b};return n?at(r):r}(r,o))).selector=t}return s},l=ot.select=function(t,e,o,r){var l,u,c,d,h,f="function"==typeof t&&t,p=!r&&a(t=f.selector||t);if(o=o||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&n.getById&&9===e.nodeType&&g&&i.relative[u[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return o;f&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(l=Q.needsContext.test(t)?0:u.length;l--&&!i.relative[d=(c=u[l]).type];)if((h=i.find[d])&&(r=h(c.matches[0].replace(et,nt),K.test(u[0].type)&&ft(e.parentNode)||e))){if(u.splice(l,1),!(t=r.length&&gt(u)))return E.apply(o,r),o;break}}return(f||s(t,p))(r,e,!g,o,!e||K.test(t)&&ft(e.parentNode)||e),o},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!d,h(),n.sortDetached=st(function(t){return 1&t.compareDocumentPosition(f.createElement("div"))}),st(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&st(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),st(function(t){return null==t.getAttribute("disabled")})||lt(N,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),ot}(t);h.find=y,h.expr=y.selectors,h.expr[":"]=h.expr.pseudos,h.uniqueSort=h.unique=y.uniqueSort,h.text=y.getText,h.isXMLDoc=y.isXML,h.contains=y.contains;var b=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&h(t).is(n))break;i.push(t)}return i},x=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},w=h.expr.match.needsContext,k=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;function T(t,e,n){if(h.isFunction(e))return h.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return h.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(C.test(e))return h.filter(e,t,n);e=h.filter(e,t)}return h.grep(t,function(t){return s.call(e,t)>-1!==n})}h.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?h.find.matchesSelector(i,t)?[i]:[]:h.find.matches(t,h.grep(e,function(t){return 1===t.nodeType}))},h.fn.extend({find:function(t){var e,n=this.length,i=[],o=this;if("string"!=typeof t)return this.pushStack(h(t).filter(function(){for(e=0;e<n;e++)if(h.contains(o[e],this))return!0}));for(e=0;e<n;e++)h.find(t,o[e],i);return(i=this.pushStack(n>1?h.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(T(this,t||[],!1))},not:function(t){return this.pushStack(T(this,t||[],!0))},is:function(t){return!!T(this,"string"==typeof t&&w.test(t)?h(t):t||[],!1).length}});var S,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(h.fn.init=function(t,e,n){var o,r;if(!t)return this;if(n=n||S,"string"==typeof t){if(!(o="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!o[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(o[1]){if(h.merge(this,h.parseHTML(o[1],(e=e instanceof h?e[0]:e)&&e.nodeType?e.ownerDocument||e:i,!0)),k.test(o[1])&&h.isPlainObject(e))for(o in e)h.isFunction(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return(r=i.getElementById(o[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=i,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):h.isFunction(t)?void 0!==n.ready?n.ready(t):t(h):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),h.makeArray(t,this))}).prototype=h.fn,S=h(i);var A=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function D(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}h.fn.extend({has:function(t){var e=h(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(h.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,r=[],a=w.test(t)||"string"!=typeof t?h(t,e||this.context):0;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?h.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?s.call(h(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),h.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return b(t,"parentNode")},parentsUntil:function(t,e,n){return b(t,"parentNode",n)},next:function(t){return D(t,"nextSibling")},prev:function(t){return D(t,"previousSibling")},nextAll:function(t){return b(t,"nextSibling")},prevAll:function(t){return b(t,"previousSibling")},nextUntil:function(t,e,n){return b(t,"nextSibling",n)},prevUntil:function(t,e,n){return b(t,"previousSibling",n)},siblings:function(t){return x((t.parentNode||{}).firstChild,t)},children:function(t){return x(t.firstChild)},contents:function(t){return t.contentDocument||h.merge([],t.childNodes)}},function(t,e){h.fn[t]=function(n,i){var o=h.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=h.filter(i,o)),this.length>1&&(P[t]||h.uniqueSort(o),A.test(t)&&o.reverse()),this.pushStack(o)}});var _,I=/\S+/g;function O(){i.removeEventListener("DOMContentLoaded",O),t.removeEventListener("load",O),h.ready()}h.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return h.each(t.match(I)||[],function(t,n){e[n]=!0}),e}(t):h.extend({},t);var e,n,i,o,r=[],a=[],s=-1,l=function(){for(o=t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},u={add:function(){return r&&(n&&!e&&(s=r.length-1,a.push(n)),function e(n){h.each(n,function(n,i){h.isFunction(i)?t.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==h.type(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return h.each(arguments,function(t,e){for(var n;(n=h.inArray(e,r,n))>-1;)r.splice(n,1),n<=s&&s--}),this},has:function(t){return t?h.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=a=[],n||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},h.extend({Deferred:function(t){var e=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return h.Deferred(function(n){h.each(e,function(e,r){var a=h.isFunction(t[e])&&t[e];o[r[1]](function(){var t=a&&a.apply(this,arguments);t&&h.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?h.extend(t,i):i}},o={};return i.pipe=i.then,h.each(e,function(t,r){var a=r[2],s=r[3];i[r[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,r=0,a=o.call(arguments),s=a.length,l=1!==s||t&&h.isFunction(t.promise)?s:0,u=1===l?t:h.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?o.call(arguments):r,i===e?u.notifyWith(n,i):--l||u.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)a[r]&&h.isFunction(a[r].promise)?a[r].promise().progress(c(r,n,e)).done(c(r,i,a)).fail(u.reject):--l;return l||u.resolveWith(i,a),u.promise()}}),h.fn.ready=function(t){return h.ready.promise().done(t),this},h.extend({isReady:!1,readyWait:1,holdReady:function(t){t?h.readyWait++:h.ready(!0)},ready:function(t){(!0===t?--h.readyWait:h.isReady)||(h.isReady=!0,!0!==t&&--h.readyWait>0||(_.resolveWith(i,[h]),h.fn.triggerHandler&&(h(i).triggerHandler("ready"),h(i).off("ready"))))}}),h.ready.promise=function(e){return _||(_=h.Deferred(),"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?t.setTimeout(h.ready):(i.addEventListener("DOMContentLoaded",O),t.addEventListener("load",O))),_.promise(e)},h.ready.promise();var E=function(t,e,n,i,o,r,a){var s=0,l=t.length,u=null==n;if("object"===h.type(n))for(s in o=!0,n)E(t,e,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,h.isFunction(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(h(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return o?t:u?e.call(t):l?e(t[0],n):r},L=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function F(){this.expando=h.expando+F.uid++}F.uid=1,F.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!L(t))return{};var e=t[this.expando];return e||(e={},L(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[e]=n;else for(i in e)o[i]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,h.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,o,r=t[this.expando];if(void 0!==r){if(void 0===e)this.register(t);else{h.isArray(e)?i=e.concat(e.map(h.camelCase)):(o=h.camelCase(e),i=e in r?[e,o]:(i=o)in r?[i]:i.match(I)||[]),n=i.length;for(;n--;)delete r[i[n]]}(void 0===e||h.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!h.isEmptyObject(e)}};var N=new F,R=new F,z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,W=/[A-Z]/g;function H(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(W,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:z.test(n)?h.parseJSON(n):n)}catch(t){}R.set(t,e,n)}else n=void 0;return n}h.extend({hasData:function(t){return R.hasData(t)||N.hasData(t)},data:function(t,e,n){return R.access(t,e,n)},removeData:function(t,e){R.remove(t,e)},_data:function(t,e,n){return N.access(t,e,n)},_removeData:function(t,e){N.remove(t,e)}}),h.fn.extend({data:function(t,e){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(o=R.get(r),1===r.nodeType&&!N.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=h.camelCase(i.slice(5)),H(r,i,o[i]));N.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){R.set(this,t)}):E(this,function(e){var n,i;if(r&&void 0===e)return void 0!==(n=R.get(r,t)||R.get(r,t.replace(W,"-$&").toLowerCase()))?n:(i=h.camelCase(t),void 0!==(n=R.get(r,i))?n:void 0!==(n=H(r,i,void 0))?n:void 0);i=h.camelCase(t),this.each(function(){var n=R.get(this,i);R.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&R.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){R.remove(this,t)})}}),h.extend({queue:function(t,e,n){var i;if(t)return i=N.get(t,e=(e||"fx")+"queue"),n&&(!i||h.isArray(n)?i=N.access(t,e,h.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){var n=h.queue(t,e=e||"fx"),i=n.length,o=n.shift(),r=h._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){h.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return N.get(t,n)||N.access(t,n,{empty:h.Callbacks("once memory").add(function(){N.remove(t,[e+"queue",n])})})}}),h.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?h.queue(this[0],t):void 0===e?this:this.each(function(){var n=h.queue(this,t,e);h._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&h.dequeue(this,t)})},dequeue:function(t){return this.each(function(){h.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=h.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=N.get(r[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,j=new RegExp("^(?:([+-])=|)("+q+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],B=function(t,e){return"none"===h.css(t=e||t,"display")||!h.contains(t.ownerDocument,t)};function $(t,e,n,i){var o,r=1,a=20,s=i?function(){return i.cur()}:function(){return h.css(t,e,"")},l=s(),u=n&&n[3]||(h.cssNumber[e]?"":"px"),c=(h.cssNumber[e]||"px"!==u&&+l)&&j.exec(h.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{h.style(t,e,(c/=r=r||".5")+u)}while(r!==(r=s()/l)&&1!==r&&--a)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Q=/^$|\/(?:java|ecma)script/i,U={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function G(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&h.nodeName(t,e)?h.merge([t],n):n}function Z(t,e){for(var n=0,i=t.length;n<i;n++)N.set(t[n],"globalEval",!e||N.get(e[n],"globalEval"))}U.optgroup=U.option,U.tbody=U.tfoot=U.colgroup=U.caption=U.thead,U.th=U.td;var J,K,tt=/<|&#?\w+;/;function et(t,e,n,i,o){for(var r,a,s,l,u,c,d=e.createDocumentFragment(),f=[],p=0,g=t.length;p<g;p++)if((r=t[p])||0===r)if("object"===h.type(r))h.merge(f,r.nodeType?[r]:r);else if(tt.test(r)){for(a=a||d.appendChild(e.createElement("div")),s=(Y.exec(r)||["",""])[1].toLowerCase(),a.innerHTML=(l=U[s]||U._default)[1]+h.htmlPrefilter(r)+l[2],c=l[0];c--;)a=a.lastChild;h.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(e.createTextNode(r));for(d.textContent="",p=0;r=f[p++];)if(i&&h.inArray(r,i)>-1)o&&o.push(r);else if(u=h.contains(r.ownerDocument,r),a=G(d.appendChild(r),"script"),u&&Z(a),n)for(c=0;r=a[c++];)Q.test(r.type||"")&&n.push(r);return d}J=i.createDocumentFragment().appendChild(i.createElement("div")),(K=i.createElement("input")).setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),J.appendChild(K),d.checkClone=J.cloneNode(!0).cloneNode(!0).lastChild.checked,J.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!J.cloneNode(!0).lastChild.defaultValue;var nt=/^key/,it=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;function rt(){return!0}function at(){return!1}function st(){try{return i.activeElement}catch(t){}}function lt(t,e,n,i,o,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)lt(t,s,n,i,e[s],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=at;else if(!o)return t;return 1===r&&(a=o,(o=function(t){return h().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=h.guid++)),t.each(function(){h.event.add(this,e,o,i,n)})}h.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,u,c,d,f,p,g,v,m=N.get(t);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=h.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return"undefined"!=typeof h&&h.event.triggered!==e.type?h.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(I)||[""]).length;u--;)p=v=(s=ot.exec(e[u])||[])[1],g=(s[2]||"").split(".").sort(),p&&(d=h.event.special[p]||{},d=h.event.special[p=(o?d.delegateType:d.bindType)||p]||{},c=h.extend({type:p,origType:v,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&h.expr.match.needsContext.test(o),namespace:g.join(".")},r),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,g,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),h.event.global[p]=!0)},remove:function(t,e,n,i,o){var r,a,s,l,u,c,d,f,p,g,v,m=N.hasData(t)&&N.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(I)||[""]).length;u--;)if(p=v=(s=ot.exec(e[u])||[])[1],g=(s[2]||"").split(".").sort(),p){for(d=h.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=f.length;r--;)c=f[r],!o&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(t,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,g,m.handle)||h.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)h.event.remove(t,p+e[u],n,i,!0);h.isEmptyObject(l)&&N.remove(t,"handle events")}},dispatch:function(t){t=h.event.fix(t);var e,n,i,r,a,s,l=o.call(arguments),u=(N.get(this,"events")||{})[t.type]||[],c=h.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=h.event.handlers.call(this,t,u),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(a.namespace)||(t.handleObj=a,t.data=a.data,void 0!==(i=((h.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,l))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,r,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<s;n++)void 0===i[o=(r=e[n]).selector+" "]&&(i[o]=r.needsContext?h(o,this).index(l)>-1:h.find(o,this,null,[l]).length),i[o]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,o,r,a=e.button;return null==t.pageX&&null!=e.clientX&&(r=(n=t.target.ownerDocument||i).body,t.pageX=e.clientX+((o=n.documentElement)&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[h.expando])return t;var e,n,o,r=t.type,a=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=it.test(r)?this.mouseHooks:nt.test(r)?this.keyHooks:{}),o=s.props?this.props.concat(s.props):this.props,t=new h.Event(a),e=o.length;e--;)t[n=o[e]]=a[n];return t.target||(t.target=i),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,a):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==st()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===st()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h.nodeName(this,"input"))return this.click(),!1},_default:function(t){return h.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},h.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},h.Event=function(t,e){if(!(this instanceof h.Event))return new h.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?rt:at):this.type=t,e&&h.extend(this,e),this.timeStamp=t&&t.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:at,isPropagationStopped:at,isImmediatePropagationStopped:at,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=rt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=rt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=rt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){h.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,o=t.handleObj;return i&&(i===this||h.contains(this,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),h.fn.extend({on:function(t,e,n,i){return lt(this,t,e,n,i)},one:function(t,e,n,i){return lt(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,h(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=at),this.each(function(){h.event.remove(this,t,n,e)})}});var ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ct=/<script|<style|<link/i,dt=/checked\s*(?:[^=]|=\s*.checked.)/i,ht=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pt(t,e){return h.nodeName(t,"table")&&h.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function gt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function vt(t){var e=ht.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function mt(t,e){var n,i,o,r,a,s,l,u;if(1===e.nodeType){if(N.hasData(t)&&(r=N.access(t),a=N.set(e,r),u=r.events))for(o in delete a.handle,a.events={},u)for(n=0,i=u[o].length;n<i;n++)h.event.add(e,o,u[o][n]);R.hasData(t)&&(s=R.access(t),l=h.extend({},s),R.set(e,l))}}function yt(t,e,n,i){e=r.apply([],e);var o,a,s,l,u,c,f=0,p=t.length,g=p-1,v=e[0],m=h.isFunction(v);if(m||p>1&&"string"==typeof v&&!d.checkClone&&dt.test(v))return t.each(function(o){var r=t.eq(o);m&&(e[0]=v.call(this,o,r.html())),yt(r,e,n,i)});if(p&&(a=(o=et(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(l=(s=h.map(G(o,"script"),gt)).length;f<p;f++)u=o,f!==g&&(u=h.clone(u,!0,!0),l&&h.merge(s,G(u,"script"))),n.call(t[f],u,f);if(l)for(c=s[s.length-1].ownerDocument,h.map(s,vt),f=0;f<l;f++)Q.test((u=s[f]).type||"")&&!N.access(u,"globalEval")&&h.contains(c,u)&&(u.src?h._evalUrl&&h._evalUrl(u.src):h.globalEval(u.textContent.replace(ft,"")))}return t}function bt(t,e,n){for(var i,o=e?h.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||h.cleanData(G(i)),i.parentNode&&(n&&h.contains(i.ownerDocument,i)&&Z(G(i,"script")),i.parentNode.removeChild(i));return t}h.extend({htmlPrefilter:function(t){return t.replace(ut,"<$1></$2>")},clone:function(t,e,n){var i,o,r,a,s,l,u,c=t.cloneNode(!0),f=h.contains(t.ownerDocument,t);if(!(d.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||h.isXMLDoc(t)))for(a=G(c),i=0,o=(r=G(t)).length;i<o;i++)s=r[i],"input"===(u=(l=a[i]).nodeName.toLowerCase())&&X.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(e)if(n)for(r=r||G(t),a=a||G(c),i=0,o=r.length;i<o;i++)mt(r[i],a[i]);else mt(t,c);return(a=G(c,"script")).length>0&&Z(a,!f&&G(t,"script")),c},cleanData:function(t){for(var e,n,i,o=h.event.special,r=0;void 0!==(n=t[r]);r++)if(L(n)){if(e=n[N.expando]){if(e.events)for(i in e.events)o[i]?h.event.remove(n,i):h.removeEvent(n,i,e.handle);n[N.expando]=void 0}n[R.expando]&&(n[R.expando]=void 0)}}}),h.fn.extend({domManip:yt,detach:function(t){return bt(this,t,!0)},remove:function(t){return bt(this,t)},text:function(t){return E(this,function(t){return void 0===t?h.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return yt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pt(this,t).appendChild(t)})},prepend:function(){return yt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=pt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return yt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return yt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(h.cleanData(G(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return h.clone(this,t,e)})},html:function(t){return E(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ct.test(t)&&!U[(Y.exec(t)||["",""])[1].toLowerCase()]){t=h.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(h.cleanData(G(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return yt(this,arguments,function(e){var n=this.parentNode;h.inArray(this,t)<0&&(h.cleanData(G(this)),n&&n.replaceChild(e,this))},t)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){h.fn[t]=function(t){for(var n,i=[],o=h(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),h(o[s])[e](n),a.apply(i,n.get());return this.pushStack(i)}});var xt,wt={HTML:"block",BODY:"block"};function kt(t,e){var n=h(e.createElement(t)).appendTo(e.body),i=h.css(n[0],"display");return n.detach(),i}function Ct(t){var e=i,n=wt[t];return n||("none"!==(n=kt(t,e))&&n||((e=(xt=(xt||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=kt(t,e),xt.detach()),wt[t]=n),n}var Tt=/^margin/,St=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),Mt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},At=function(t,e,n,i){var o,r,a={};for(r in e)a[r]=t.style[r],t.style[r]=e[r];for(r in o=n.apply(t,i||[]),e)t.style[r]=a[r];return o},Pt=i.documentElement;function Dt(t,e,n){var i,o,r,a,s=t.style;return""!==(a=(n=n||Mt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==a||h.contains(t.ownerDocument,t)||(a=h.style(t,e)),n&&!d.pixelMarginRight()&&St.test(a)&&Tt.test(e)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r),void 0!==a?a+"":a}function _t(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){var e,n,o,r,a=i.createElement("div"),s=i.createElement("div");function l(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Pt.appendChild(a);var i=t.getComputedStyle(s);e="1%"!==i.top,r="2px"===i.marginLeft,n="4px"===i.width,s.style.marginRight="50%",o="4px"===i.marginRight,Pt.removeChild(a)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),h.extend(d,{pixelPosition:function(){return l(),e},boxSizingReliable:function(){return null==n&&l(),n},pixelMarginRight:function(){return null==n&&l(),o},reliableMarginLeft:function(){return null==n&&l(),r},reliableMarginRight:function(){var e,n=s.appendChild(i.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Pt.appendChild(a),e=!parseFloat(t.getComputedStyle(n).marginRight),Pt.removeChild(a),s.removeChild(n),e}}))}();var It=/^(none|table(?!-c[ea]).+)/,Ot={position:"absolute",visibility:"hidden",display:"block"},Et={letterSpacing:"0",fontWeight:"400"},Lt=["Webkit","O","Moz","ms"],Ft=i.createElement("div").style;function Nt(t){if(t in Ft)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Lt.length;n--;)if((t=Lt[n]+e)in Ft)return t}function Rt(t,e,n){var i=j.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function zt(t,e,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,a=0;r<4;r+=2)"margin"===n&&(a+=h.css(t,n+V[r],!0,o)),i?("content"===n&&(a-=h.css(t,"padding"+V[r],!0,o)),"margin"!==n&&(a-=h.css(t,"border"+V[r]+"Width",!0,o))):(a+=h.css(t,"padding"+V[r],!0,o),"padding"!==n&&(a+=h.css(t,"border"+V[r]+"Width",!0,o)));return a}function Wt(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,r=Mt(t),a="border-box"===h.css(t,"boxSizing",!1,r);if(o<=0||null==o){if(((o=Dt(t,e,r))<0||null==o)&&(o=t.style[e]),St.test(o))return o;i=a&&(d.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+zt(t,e,n||(a?"border":"content"),i,r)+"px"}function Ht(t,e){for(var n,i,o,r=[],a=0,s=t.length;a<s;a++)(i=t[a]).style&&(r[a]=N.get(i,"olddisplay"),n=i.style.display,e?(r[a]||"none"!==n||(i.style.display=""),""===i.style.display&&B(i)&&(r[a]=N.access(i,"olddisplay",Ct(i.nodeName)))):(o=B(i),"none"===n&&o||N.set(i,"olddisplay",o?n:h.css(i,"display"))));for(a=0;a<s;a++)(i=t[a]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?r[a]||"":"none"));return t}function qt(t,e,n,i,o){return new qt.prototype.init(t,e,n,i,o)}h.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Dt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=h.camelCase(e),l=t.style;if(e=h.cssProps[s]||(h.cssProps[s]=Nt(s)||s),a=h.cssHooks[e]||h.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:l[e];"string"==(r=typeof n)&&(o=j.exec(n))&&o[1]&&(n=$(t,e,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(h.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l[e]=n))}},css:function(t,e,n,i){var o,r,a,s=h.camelCase(e);return e=h.cssProps[s]||(h.cssProps[s]=Nt(s)||s),(a=h.cssHooks[e]||h.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Dt(t,e,i)),"normal"===o&&e in Et&&(o=Et[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),h.each(["height","width"],function(t,e){h.cssHooks[e]={get:function(t,n,i){if(n)return It.test(h.css(t,"display"))&&0===t.offsetWidth?At(t,Ot,function(){return Wt(t,e,i)}):Wt(t,e,i)},set:function(t,n,i){var o,r=i&&Mt(t),a=i&&zt(t,e,i,"border-box"===h.css(t,"boxSizing",!1,r),r);return a&&(o=j.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=h.css(t,e)),Rt(0,n,a)}}}),h.cssHooks.marginLeft=_t(d.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Dt(t,"marginLeft"))||t.getBoundingClientRect().left-At(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),h.cssHooks.marginRight=_t(d.reliableMarginRight,function(t,e){if(e)return At(t,{display:"inline-block"},Dt,[t,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(t,e){h.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+V[i]+e]=r[i]||r[i-2]||r[0];return o}},Tt.test(t)||(h.cssHooks[t+e].set=Rt)}),h.fn.extend({css:function(t,e){return E(this,function(t,e,n){var i,o,r={},a=0;if(h.isArray(e)){for(i=Mt(t),o=e.length;a<o;a++)r[e[a]]=h.css(t,e[a],!1,i);return r}return void 0!==n?h.style(t,e,n):h.css(t,e)},t,e,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){B(this)?h(this).show():h(this).hide()})}}),h.Tween=qt,(qt.prototype={constructor:qt,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||h.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(h.cssNumber[n]?"":"px")},cur:function(){var t=qt.propHooks[this.prop];return t&&t.get?t.get(this):qt.propHooks._default.get(this)},run:function(t){var e,n=qt.propHooks[this.prop];return this.pos=e=this.options.duration?h.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):qt.propHooks._default.set(this),this}}).init.prototype=qt.prototype,(qt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=h.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){h.fx.step[t.prop]?h.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[h.cssProps[t.prop]]&&!h.cssHooks[t.prop]?t.elem[t.prop]=t.now:h.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=qt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},h.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},h.fx=qt.prototype.init,h.fx.step={};var jt,Vt,Bt=/^(?:toggle|show|hide)$/,$t=/queueHooks$/;function Xt(){return t.setTimeout(function(){jt=void 0}),jt=h.now()}function Yt(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=V[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function Qt(t,e,n){for(var i,o=(Ut.tweeners[e]||[]).concat(Ut.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,e,t))return i}function Ut(t,e,n){var i,o,r=0,a=Ut.prefilters.length,s=h.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=jt||Xt(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),r=0,a=u.tweens.length;r<a;r++)u.tweens[r].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:h.extend({},e),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},n),originalProperties:e,originalOptions:n,startTime:jt||Xt(),duration:n.duration,tweens:[],createTween:function(e,n){var i=h.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(function(t,e){var n,i,o,r,a;for(n in t)if(o=e[i=h.camelCase(n)],h.isArray(r=t[n])&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(a=h.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(c,u.opts.specialEasing);r<a;r++)if(i=Ut.prefilters[r].call(u,t,c,u.opts))return h.isFunction(i.stop)&&(h._queueHooks(u.elem,u.opts.queue).stop=h.proxy(i.stop,i)),i;return h.map(c,Qt,u),h.isFunction(u.opts.start)&&u.opts.start.call(t,u),h.fx.timer(h.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}h.Animation=h.extend(Ut,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return $(n.elem,t,j.exec(e),n),n}]},tweener:function(t,e){h.isFunction(t)?(e=t,t=["*"]):t=t.match(I);for(var n,i=0,o=t.length;i<o;i++)(Ut.tweeners[n=t[i]]=Ut.tweeners[n]||[]).unshift(e)},prefilters:[function(t,e,n){var i,o,r,a,s,l,u,c=this,d={},f=t.style,p=t.nodeType&&B(t),g=N.get(t,"fxshow");for(i in n.queue||(null==(s=h._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,h.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(u=h.css(t,"display"))?N.get(t,"olddisplay")||Ct(t.nodeName):u)&&"none"===h.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),e)if(Bt.exec(o=e[i])){if(delete e[i],r=r||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;p=!0}d[i]=g&&g[i]||h.style(t,i)}else u=void 0;if(h.isEmptyObject(d))"inline"===("none"===u?Ct(t.nodeName):u)&&(f.display=u);else for(i in g?"hidden"in g&&(p=g.hidden):g=N.access(t,"fxshow",{}),r&&(g.hidden=!p),p?h(t).show():c.done(function(){h(t).hide()}),c.done(function(){var e;for(e in N.remove(t,"fxshow"),d)h.style(t,e,d[e])}),d)a=Qt(p?g[i]:0,i,c),i in g||(g[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],prefilter:function(t,e){e?Ut.prefilters.unshift(t):Ut.prefilters.push(t)}}),h.speed=function(t,e,n){var i=t&&"object"==typeof t?h.extend({},t):{complete:n||!n&&e||h.isFunction(t)&&t,duration:t,easing:n&&e||e&&!h.isFunction(e)&&e};return i.duration=h.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in h.fx.speeds?h.fx.speeds[i.duration]:h.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){h.isFunction(i.old)&&i.old.call(this),i.queue&&h.dequeue(this,i.queue)},i},h.fn.extend({fadeTo:function(t,e,n,i){return this.filter(B).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=h.isEmptyObject(t),r=h.speed(e,n,i),a=function(){var e=Ut(this,h.extend({},t),r);(o||N.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=h.timers,a=N.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&$t.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||h.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=N.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=h.timers,a=i?i.length:0;for(n.finish=!0,h.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(t,e){var n=h.fn[e];h.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(Yt(e,!0),t,i,o)}}),h.each({slideDown:Yt("show"),slideUp:Yt("hide"),slideToggle:Yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){h.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),h.timers=[],h.fx.tick=function(){var t,e=0,n=h.timers;for(jt=h.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||h.fx.stop(),jt=void 0},h.fx.timer=function(t){h.timers.push(t),t()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Vt||(Vt=t.setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){t.clearInterval(Vt),Vt=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,n){return e=h.fx&&h.fx.speeds[e]||e,this.queue(n=n||"fx",function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}})},function(){var t=i.createElement("input"),e=i.createElement("select"),n=e.appendChild(i.createElement("option"));t.type="checkbox",d.checkOn=""!==t.value,d.optSelected=n.selected,e.disabled=!0,d.optDisabled=!n.disabled,(t=i.createElement("input")).value="t",t.type="radio",d.radioValue="t"===t.value}();var Gt,Zt=h.expr.attrHandle;h.fn.extend({attr:function(t,e){return E(this,h.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){h.removeAttr(this,t)})}}),h.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof t.getAttribute?h.prop(t,e,n):(1===r&&h.isXMLDoc(t)||(e=e.toLowerCase(),o=h.attrHooks[e]||(h.expr.match.bool.test(e)?Gt:void 0)),void 0!==n?null===n?void h.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=h.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!d.radioValue&&"radio"===e&&h.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,o=0,r=e&&e.match(I);if(r&&1===t.nodeType)for(;n=r[o++];)i=h.propFix[n]||n,h.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),Gt={set:function(t,e,n){return!1===e?h.removeAttr(t,n):t.setAttribute(n,n),n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Zt[e]||h.find.attr;Zt[e]=function(t,e,i){var o,r;return i||(r=Zt[e],Zt[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,Zt[e]=r),o}});var Jt=/^(?:input|select|textarea|button)$/i,Kt=/^(?:a|area)$/i;h.fn.extend({prop:function(t,e){return E(this,h.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[h.propFix[t]||t]})}}),h.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&h.isXMLDoc(t)||(o=h.propHooks[e=h.propFix[e]||e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=h.find.attr(t,"tabindex");return e?parseInt(e,10):Jt.test(t.nodeName)||Kt.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(h.propHooks.selected={get:function(t){return null},set:function(t){}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});var te=/[\t\r\n\f]/g;function ee(t){return t.getAttribute&&t.getAttribute("class")||""}h.fn.extend({addClass:function(t){var e,n,i,o,r,a,s,l=0;if(h.isFunction(t))return this.each(function(e){h(this).addClass(t.call(this,e,ee(this)))});if("string"==typeof t&&t)for(e=t.match(I)||[];n=this[l++];)if(o=ee(n),i=1===n.nodeType&&(" "+o+" ").replace(te," ")){for(a=0;r=e[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(s=h.trim(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,r,a,s,l=0;if(h.isFunction(t))return this.each(function(e){h(this).removeClass(t.call(this,e,ee(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(I)||[];n=this[l++];)if(o=ee(n),i=1===n.nodeType&&(" "+o+" ").replace(te," ")){for(a=0;r=e[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(s=h.trim(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):h.isFunction(t)?this.each(function(n){h(this).toggleClass(t.call(this,n,ee(this),e),e)}):this.each(function(){var e,i,o,r;if("string"===n)for(i=0,o=h(this),r=t.match(I)||[];e=r[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ee(this))&&N.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":N.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ee(n)+" ").replace(te," ").indexOf(e)>-1)return!0;return!1}});var ne=/\r/g,ie=/[\x20\t\r\n\f]+/g;h.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=h.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,h(this).val()):t)?o="":"number"==typeof o?o+="":h.isArray(o)&&(o=h.map(o,function(t){return null==t?"":t+""})),(e=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=h.valHooks[o.type]||h.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ne,""):null==n?"":n:void 0}}),h.extend({valHooks:{option:{get:function(t){var e=h.find.attr(t,"value");return null!=e?e:h.trim(h.text(t)).replace(ie," ")}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||o<0,a=r?null:[],s=r?o+1:i.length,l=o<0?s:r?o:0;l<s;l++)if(((n=i[l]).selected||l===o)&&(d.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){if(e=h(n).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var n,i,o=t.options,r=h.makeArray(e),a=o.length;a--;)((i=o[a]).selected=h.inArray(h.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(t,e){if(h.isArray(e))return t.checked=h.inArray(h(t).val(),e)>-1}},d.checkOn||(h.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var oe=/^(?:focusinfocus|focusoutblur)$/;h.extend(h.event,{trigger:function(e,n,o,r){var a,s,l,u,d,f,p,g=[o||i],v=c.call(e,"type")?e.type:e,m=c.call(e,"namespace")?e.namespace.split("."):[];if(s=l=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!oe.test(v+h.event.triggered)&&(v.indexOf(".")>-1&&(v=(m=v.split(".")).shift(),m.sort()),d=v.indexOf(":")<0&&"on"+v,(e=e[h.expando]?e:new h.Event(v,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),n=null==n?[e]:h.makeArray(n,[e]),p=h.event.special[v]||{},r||!p.trigger||!1!==p.trigger.apply(o,n))){if(!r&&!p.noBubble&&!h.isWindow(o)){for(oe.test((u=p.delegateType||v)+v)||(s=s.parentNode);s;s=s.parentNode)g.push(s),l=s;l===(o.ownerDocument||i)&&g.push(l.defaultView||l.parentWindow||t)}for(a=0;(s=g[a++])&&!e.isPropagationStopped();)e.type=a>1?u:p.bindType||v,(f=(N.get(s,"events")||{})[e.type]&&N.get(s,"handle"))&&f.apply(s,n),(f=d&&s[d])&&f.apply&&L(s)&&(e.result=f.apply(s,n),!1===e.result&&e.preventDefault());return e.type=v,r||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),n)||!L(o)||d&&h.isFunction(o[v])&&!h.isWindow(o)&&((l=o[d])&&(o[d]=null),h.event.triggered=v,o[v](),h.event.triggered=void 0,l&&(o[d]=l)),e.result}},simulate:function(t,e,n){var i=h.extend(new h.Event,n,{type:t,isSimulated:!0});h.event.trigger(i,null,e)}}),h.fn.extend({trigger:function(t,e){return this.each(function(){h.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return h.event.trigger(t,e,n,!0)}}),h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){h.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),h.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),d.focusin="onfocusin"in t,d.focusin||h.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){h.event.simulate(e,t.target,h.event.fix(t))};h.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=N.access(i,e);o||i.addEventListener(t,n,!0),N.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=N.access(i,e)-1;o?N.access(i,e,o):(i.removeEventListener(t,n,!0),N.remove(i,e))}}});var re=t.location,ae=h.now(),se=/\?/;h.parseJSON=function(t){return JSON.parse(t+"")},h.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+e),n};var le=/#.*$/,ue=/([?&])_=[^&]*/,ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,de=/^(?:GET|HEAD)$/,he=/^\/\//,fe={},pe={},ge="*/".concat("*"),ve=i.createElement("a");function me(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(I)||[];if(h.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function ye(t,e,n,i){var o={},r=t===pe;function a(s){var l;return o[s]=!0,h.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),l}return a(e.dataTypes[0])||!o["*"]&&a("*")}function be(t,e){var n,i,o=h.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&h.extend(!0,t,i),t}ve.href=re.href,h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:re.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(re.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?be(be(t,h.ajaxSettings),e):be(h.ajaxSettings,t)},ajaxPrefilter:me(fe),ajaxTransport:me(pe),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0);var o,r,a,s,l,u,c,d,f=h.ajaxSetup({},n=n||{}),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?h(p):h.event,v=h.Deferred(),m=h.Callbacks("once memory"),y=f.statusCode||{},b={},x={},w=0,k="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!s)for(s={};e=ce.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=x[n]=x[n]||t,b[t]=e),this},overrideMimeType:function(t){return w||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)y[e]=[y[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||k;return o&&o.abort(e),T(0,e),this}};if(v.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,f.url=((e||f.url||re.href)+"").replace(le,"").replace(he,re.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=h.trim(f.dataType||"*").toLowerCase().match(I)||[""],null==f.crossDomain){u=i.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=ve.protocol+"//"+ve.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=h.param(f.data,f.traditional)),ye(fe,f,n,C),2===w)return C;for(d in(c=h.event&&f.global)&&0==h.active++&&h.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!de.test(f.type),r=f.url,f.hasContent||(f.data&&(r=f.url+=(se.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=ue.test(r)?r.replace(ue,"$1_="+ae++):r+(se.test(r)?"&":"?")+"_="+ae++)),f.ifModified&&(h.lastModified[r]&&C.setRequestHeader("If-Modified-Since",h.lastModified[r]),h.etag[r]&&C.setRequestHeader("If-None-Match",h.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+ge+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||2===w))return C.abort();for(d in k="abort",{success:1,error:1,complete:1})C[d](f[d]);if(o=ye(pe,f,n,C)){if(C.readyState=1,c&&g.trigger("ajaxSend",[C,f]),2===w)return C;f.async&&f.timeout>0&&(l=t.setTimeout(function(){C.abort("timeout")},f.timeout));try{w=1,o.send(b,T)}catch(t){if(!(w<2))throw t;T(-1,t)}}else T(-1,"No Transport");function T(e,n,i,s){var u,d,b,x,k,T=n;2!==w&&(w=2,l&&t.clearTimeout(l),o=void 0,a=s||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(x=function(t,e,n){for(var i,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,C,i)),x=function(t,e,n,i){var o,r,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=u[l+" "+r]||u["* "+r]))for(o in u)if((s=o.split(" "))[1]===r&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(f,x,C,u),u?(f.ifModified&&((k=C.getResponseHeader("Last-Modified"))&&(h.lastModified[r]=k),(k=C.getResponseHeader("etag"))&&(h.etag[r]=k)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=x.state,d=x.data,u=!(b=x.error))):(b=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(n||T)+"",u?v.resolveWith(p,[d,T,C]):v.rejectWith(p,[C,T,b]),C.statusCode(y),y=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[C,f,u?d:b]),m.fireWith(p,[C,T]),c&&(g.trigger("ajaxComplete",[C,f]),--h.active||h.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return h.get(t,e,n,"json")},getScript:function(t,e){return h.get(t,void 0,e,"script")}}),h.each(["get","post"],function(t,e){h[e]=function(t,n,i,o){return h.isFunction(n)&&(o=o||i,i=n,n=void 0),h.ajax(h.extend({url:t,type:e,dataType:o,data:n,success:i},h.isPlainObject(t)&&t))}}),h._evalUrl=function(t){return h.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(t){var e;return h.isFunction(t)?this.each(function(e){h(this).wrapAll(t.call(this,e))}):(this[0]&&(e=h(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return h.isFunction(t)?this.each(function(e){h(this).wrapInner(t.call(this,e))}):this.each(function(){var e=h(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=h.isFunction(t);return this.each(function(n){h(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(t){return!h.expr.filters.visible(t)},h.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var xe=/%20/g,we=/\[\]$/,ke=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;function Se(t,e,n,i){var o;if(h.isArray(e))h.each(e,function(e,o){n||we.test(t)?i(t,o):Se(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)});else if(n||"object"!==h.type(e))i(t,e);else for(o in e)Se(t+"["+o+"]",e[o],n,i)}h.param=function(t,e){var n,i=[],o=function(t,e){e=h.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(t)||t.jquery&&!h.isPlainObject(t))h.each(t,function(){o(this.name,this.value)});else for(n in t)Se(n,t[n],e,o);return i.join("&").replace(xe,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=h.prop(this,"elements");return t?h.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!h(this).is(":disabled")&&Te.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!X.test(t))}).map(function(t,e){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(t){return{name:e.name,value:t.replace(ke,"\r\n")}}):{name:e.name,value:n.replace(ke,"\r\n")}}).get()}}),h.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Me={0:200,1223:204},Ae=h.ajaxSettings.xhr();d.cors=!!Ae&&"withCredentials"in Ae,d.ajax=Ae=!!Ae,h.ajaxTransport(function(e){var n,i;if(d.cors||Ae&&!e.crossDomain)return{send:function(o,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Me[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return h.globalEval(t),t}}}),h.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),h.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(o,r){e=h("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),i.head.appendChild(e[0])},abort:function(){n&&n()}}});var Pe=[],De=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Pe.pop()||h.expando+"_"+ae++;return this[t]=!0,t}}),h.ajaxPrefilter("json jsonp",function(e,n,i){var o,r,a,s=!1!==e.jsonp&&(De.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&De.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=h.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(De,"$1"+o):!1!==e.jsonp&&(e.url+=(se.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||h.error(o+" was not called"),a[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){a=arguments},i.always(function(){void 0===r?h(t).removeProp(o):t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,Pe.push(o)),a&&h.isFunction(r)&&r(a[0]),a=r=void 0}),"script"}),h.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||i;var o=k.exec(t),r=!n&&[];return o?[e.createElement(o[1])]:(o=et([t],e,r),r&&r.length&&h(r).remove(),h.merge([],o.childNodes))};var _e=h.fn.load;function Ie(t){return h.isWindow(t)?t:9===t.nodeType&&t.defaultView}h.fn.load=function(t,e,n){if("string"!=typeof t&&_e)return _e.apply(this,arguments);var i,o,r,a=this,s=t.indexOf(" ");return s>-1&&(i=h.trim(t.slice(s)),t=t.slice(0,s)),h.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&h.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(i?h("<div>").append(h.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){h.fn[e]=function(t){return this.on(e,t)}}),h.expr.filters.animated=function(t){return h.grep(h.timers,function(e){return t===e.elem}).length},h.offset={setOffset:function(t,e,n){var i,o,r,a,s,l,u=h.css(t,"position"),c=h(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),r=h.css(t,"top"),l=h.css(t,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(a=(i=c.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),h.isFunction(e)&&(e=e.call(t,n,h.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+o),"using"in e?e.using.call(t,d):c.css(d)}},h.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){h.offset.setOffset(this,t,e)});var e,n,i=this[0],o={top:0,left:0},r=i&&i.ownerDocument;return r?h.contains(e=r.documentElement,i)?(o=i.getBoundingClientRect(),n=Ie(r),{top:o.top+n.pageYOffset-e.clientTop,left:o.left+n.pageXOffset-e.clientLeft}):o:void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===h.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),h.nodeName(t[0],"html")||(i=t.offset()),i.top+=h.css(t[0],"borderTopWidth",!0),i.left+=h.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-h.css(n,"marginTop",!0),left:e.left-i.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===h.css(t,"position");)t=t.offsetParent;return t||Pt})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;h.fn[t]=function(i){return E(this,function(t,i,o){var r=Ie(t);if(void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o},t,i,arguments.length)}}),h.each(["top","left"],function(t,e){h.cssHooks[e]=_t(d.pixelPosition,function(t,n){if(n)return n=Dt(t,e),St.test(n)?h(t).position()[e]+"px":n})}),h.each({Height:"height",Width:"width"},function(t,e){h.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){h.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return E(this,function(e,n,i){var o;return h.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?h.css(e,n,a):h.style(e,n,i,a)},e,r?i:void 0,r,null)}})}),h.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return h});var Oe=t.jQuery,Ee=t.$;return h.noConflict=function(e){return t.$===h&&(t.$=Ee),e&&t.jQuery===h&&(t.jQuery=Oe),h},e||(t.jQuery=t.$=h),h}),function(t,e,n,i){"use strict";var o,r=["","webkit","Moz","MS","ms","o"],a=e.createElement("div"),s="function",l=Math.round,u=Math.abs,c=Date.now;function d(t,e,n){return setTimeout(y(t,n),e)}function h(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function p(e,n,i){var o="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,o,i),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===i||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==i&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var g=p(function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===i)&&(t[o[r]]=e[o[r]]),r++;return t},"extend","Use `assign`."),v=p(function(t,e){return g(t,e,!0)},"merge","Use `assign`.");function m(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&o(i,n)}function y(t,e){return function(){return t.apply(e,arguments)}}function b(t,e){return typeof t==s?t.apply(e&&e[0]||i,e):t}function x(t,e){return t===i?e:t}function w(t,e,n){f(S(e),function(e){t.addEventListener(e,n,!1)})}function k(t,e,n){f(S(e),function(e){t.removeEventListener(e,n,!1)})}function C(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function T(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function M(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function A(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var a=e?t[r][e]:t[r];M(o,a)<0&&i.push(t[r]),o[r]=a,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function D(t,e){for(var n,o,a=e[0].toUpperCase()+e.slice(1),s=0;s<r.length;){if((o=(n=r[s])?n+a:e)in t)return o;s++}return i}var _=1;function I(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var O="ontouchstart"in t,E=D(t,"PointerEvent")!==i,L=O&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F=25,N=1,R=4,z=8,W=1,H=2,q=4,j=8,V=16,B=H|q,$=j|V,X=B|$,Y=["x","y"],Q=["clientX","clientY"];function U(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){b(t.options.enable,[t])&&n.handler(e)},this.init()}function G(t,e,n){var o=n.pointers.length,r=n.changedPointers.length,a=e&N&&o-r==0,s=e&(R|z)&&o-r==0;n.isFirst=!!a,n.isFinal=!!s,a&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,o=e.pointers,r=o.length;n.firstInput||(n.firstInput=Z(e)),r>1&&!n.firstMultiple?n.firstMultiple=Z(e):1===r&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,d=e.center=J(o);e.timeStamp=c(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=nt(l,d),e.distance=et(l,d),function(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==N&&r.eventType!==R||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}(n,e),e.offsetDirection=tt(e.deltaX,e.deltaY);var h,f,p=K(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=u(p.x)>u(p.y)?p.x:p.y,e.scale=s?(h=s.pointers,et((f=o)[0],f[1],Q)/et(h[0],h[1],Q)):1,e.rotation=s?function(t,e){return nt(o[1],o[0],Q)+nt(t[1],t[0],Q)}(s.pointers):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,o,r,a,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=z&&(l>F||s.velocity===i)){var c=e.deltaX-s.deltaX,d=e.deltaY-s.deltaY,h=K(l,c,d);o=h.x,r=h.y,n=u(h.x)>u(h.y)?h.x:h.y,a=tt(c,d),t.lastInterval=e}else n=s.velocity,o=s.velocityX,r=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=a}(n,e);var g=t.element;C(e.srcEvent.target,g)&&(g=e.srcEvent.target),e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Z(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:l(t.pointers[n].clientX),clientY:l(t.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:e,center:J(e),deltaX:t.deltaX,deltaY:t.deltaY}}function J(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:l(n/e),y:l(i/e)}}function K(t,e,n){return{x:e/t||0,y:n/t||0}}function tt(t,e){return t===e?W:u(t)>=u(e)?t<0?H:q:e<0?j:V}function et(t,e,n){n||(n=Y);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function nt(t,e,n){return n||(n=Y),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}U.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(I(this.element),this.evWin,this.domHandler)}};var it={mousedown:N,mousemove:2,mouseup:R},ot="mousedown",rt="mousemove mouseup";function at(){this.evEl=ot,this.evWin=rt,this.pressed=!1,U.apply(this,arguments)}m(at,U,{handler:function(t){var e=it[t.type];e&N&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=R),this.pressed&&(e&R&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var st={pointerdown:N,pointermove:2,pointerup:R,pointercancel:z,pointerout:z},lt={2:"touch",3:"pen",4:"mouse",5:"kinect"},ut="pointerdown",ct="pointermove pointerup pointercancel";function dt(){this.evEl=ut,this.evWin=ct,U.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ut="MSPointerDown",ct="MSPointerMove MSPointerUp MSPointerCancel"),m(dt,U,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=st[i],r=lt[t.pointerType]||t.pointerType,a="touch"==r,s=M(e,t.pointerId,"pointerId");o&N&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):o&(R|z)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(s,1))}});var ht={touchstart:N,touchmove:2,touchend:R,touchcancel:z},ft="touchstart",pt="touchstart touchmove touchend touchcancel";function gt(){this.evTarget=ft,this.evWin=pt,this.started=!1,U.apply(this,arguments)}m(gt,U,{handler:function(t){var e=ht[t.type];if(e===N&&(this.started=!0),this.started){var n=(function(t,e){var n=A(t.touches),i=A(t.changedTouches);return e&(R|z)&&(n=P(n.concat(i),"identifier",!0)),[n,i]}).call(this,t,e);e&(R|z)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var vt={touchstart:N,touchmove:2,touchend:R,touchcancel:z},mt="touchstart touchmove touchend touchcancel";function yt(){this.evTarget=mt,this.targetIds={},U.apply(this,arguments)}m(yt,U,{handler:function(t){var e=vt[t.type],n=(function(t,e){var n=A(t.touches),i=this.targetIds;if(e&(2|N)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,a=A(t.changedTouches),s=[],l=this.target;if(r=n.filter(function(t){return C(t.target,l)}),e===N)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<a.length;)i[a[o].identifier]&&s.push(a[o]),e&(R|z)&&delete i[a[o].identifier],o++;return s.length?[P(r.concat(s),"identifier",!0),s]:void 0}).call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var bt=2500;function xt(){U.apply(this,arguments);var t=y(this.handler,this);this.touch=new yt(this.manager,t),this.mouse=new at(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function wt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},bt)}}m(xt,U,{handler:function(t,e,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(t,e){t&N?(this.primaryTouch=e.changedPointers[0].identifier,wt.call(this,e)):t&(R|z)&&wt.call(this,e)}).call(this,e,n);else if(i&&(function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(e-o.x),a=Math.abs(n-o.y);if(r<=25&&a<=25)return!0}return!1}).call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var kt=D(a.style,"touchAction"),Ct=kt!==i,Tt=function(){if(!Ct)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){e[i]=!n||t.CSS.supports("touch-action",i)}),e}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){"compute"==t&&(t=this.compute()),Ct&&this.manager.element.style&&Tt[t]&&(this.manager.element.style[kt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,function(e){b(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(T(t,"none"))return"none";var e=T(t,"pan-x"),n=T(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":T(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=T(i,"none")&&!Tt.none,r=T(i,"pan-y")&&!Tt["pan-y"],a=T(i,"pan-x")&&!Tt["pan-x"];if(o&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!a||!r)return o||r&&n&B||a&&n&$?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Mt=1,At=2,Pt=4,Dt=8,_t=Dt,It=16;function Ot(t){this.options=o({},this.defaults,t||{}),this.id=_++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=Mt,this.simultaneous={},this.requireFail=[]}function Et(t){return t&It?"cancel":t&Dt?"end":t&Pt?"move":t&At?"start":""}function Lt(t){return t==V?"down":t==j?"up":t==H?"left":t==q?"right":""}function Ft(t,e){var n=e.manager;return n?n.get(t):t}function Nt(){Ot.apply(this,arguments)}function Rt(){Nt.apply(this,arguments),this.pX=null,this.pY=null}function zt(){Nt.apply(this,arguments)}function Wt(){Ot.apply(this,arguments),this._timer=null,this._input=null}function Ht(){Nt.apply(this,arguments)}function qt(){Nt.apply(this,arguments)}function jt(){Ot.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Vt(t,e){return(e=e||{}).recognizers=x(e.recognizers,Vt.defaults.preset),new Bt(t,e)}function Bt(t,e){var n;this.options=o({},Vt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(E?dt:L?yt:O?xt:at))(n,G),this.touchAction=new St(this,this.options.touchAction),$t(this,!0),f(this.options.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 $t(t,e){var n,i=t.element;i.style&&(f(t.options.cssProps,function(o,r){n=D(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}Ot.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(h(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ft(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return h(t,"dropRecognizeWith",this)?this:(t=Ft(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(h(t,"requireFailure",this))return this;var e=this.requireFail;return-1===M(e,t=Ft(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this))return this;t=Ft(t,this);var e=M(this.requireFail,t);return e>-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){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<Dt&&i(e.options.event+Et(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=Dt&&i(e.options.event+Et(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Mt)))return!1;t++}return!0},recognize:function(t){var e=o({},t);if(!b(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(_t|It|32)&&(this.state=Mt),this.state=this.process(e),this.state&(At|Pt|Dt|It)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},m(Nt,Ot,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(At|Pt),o=this.attrTest(t);return i&&(n&z||!o)?e|It:i||o?n&R?e|Dt:e&At?e|Pt:At:32}}),m(Rt,Nt,{defaults:{event:"pan",threshold:10,pointers:1,direction:X},getTouchAction:function(){var t=this.options.direction,e=[];return t&B&&e.push("pan-y"),t&$&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,a=t.deltaY;return o&e.direction||(e.direction&B?(o=0===r?W:r<0?H:q,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===a?W:a<0?j:V,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return Nt.prototype.attrTest.call(this,t)&&(this.state&At||!(this.state&At)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Lt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),m(zt,Nt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&At)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),m(Wt,Ot,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(R|z)&&!o)this.reset();else if(t.eventType&N)this.reset(),this._timer=d(function(){this.state=_t,this.tryEmit()},e.time,this);else if(t.eventType&R)return _t;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===_t&&(t&&t.eventType&R?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),m(Ht,Nt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&At)}}),m(qt,Nt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:B|$,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(B|$)?e=t.overallVelocity:n&B?e=t.overallVelocityX:n&$&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&t.eventType&R},emit:function(t){var e=Lt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),m(jt,Ot,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&N&&0===this.count)return this.failTimeout();if(i&&o&&n){if(t.eventType!=R)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||et(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=d(function(){this.state=_t,this.tryEmit()},e.interval,this),At):_t}return 32},failTimeout:function(){return this._timer=d(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==_t&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Vt.VERSION="2.0.7",Vt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ht,{enable:!1}],[zt,{enable:!1},["rotate"]],[qt,{direction:B}],[Rt,{direction:B},["swipe"]],[jt],[jt,{event:"doubletap",taps:2},["tap"]],[Wt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Bt.prototype={set:function(t){return o(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&_t)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&n.state&(At|Pt|Dt)&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof Ot)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(h(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(h(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=M(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==i&&e!==i){var n=this.handlers;return f(S(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==i){var n=this.handlers;return f(S(t),function(t){e?n[t]&&n[t].splice(M(n[t],e),1):delete n[t]}),this}},emit:function(t,n){this.options.domEvents&&function(t,n){var i=e.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}(t,n);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){n.type=t,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<i.length;)i[o](n),o++}},destroy:function(){this.element&&$t(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Vt,{INPUT_START:N,INPUT_MOVE:2,INPUT_END:R,INPUT_CANCEL:z,STATE_POSSIBLE:Mt,STATE_BEGAN:At,STATE_CHANGED:Pt,STATE_ENDED:Dt,STATE_RECOGNIZED:_t,STATE_CANCELLED:It,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:H,DIRECTION_RIGHT:q,DIRECTION_UP:j,DIRECTION_DOWN:V,DIRECTION_HORIZONTAL:B,DIRECTION_VERTICAL:$,DIRECTION_ALL:X,Manager:Bt,Input:U,TouchAction:St,TouchInput:yt,MouseInput:at,PointerEventInput:dt,TouchMouseInput:xt,SingleTouchInput:gt,Recognizer:Ot,AttrRecognizer:Nt,Tap:jt,Pan:Rt,Swipe:qt,Pinch:zt,Rotate:Ht,Press:Wt,on:w,off:k,each:f,merge:v,extend:g,assign:o,inherit:m,bindFn:y,prefixed:D}),("undefined"!=typeof t?t:"undefined"!=typeof self?self:{}).Hammer=Vt,"function"==typeof define&&define.amd?define(function(){return Vt}):"undefined"!=typeof module&&module.exports?module.exports=Vt:t.Hammer=Vt}(window,document);var _createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}"undefined"==typeof jQuery&&("function"==typeof require?jQuery=$=require("jquery"):jQuery=$),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=t(require("jquery")):t(jQuery)}(function(t){t.easing.jswing=t.easing.swing;var e=Math.pow,n=Math.sqrt,i=Math.sin,o=Math.cos,r=Math.PI,a=1.70158,s=1.525*a,l=2*r/3,u=2*r/4.5;function c(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375}t.extend(t.easing,{def:"easeOutQuad",swing:function(e){return t.easing[t.easing.def](e)},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-e(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-e(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-e(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-e(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-e(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-e(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-e(-2*t+2,5)/2},easeInSine:function(t){return 1-o(t*r/2)},easeOutSine:function(t){return i(t*r/2)},easeInOutSine:function(t){return-(o(r*t)-1)/2},easeInExpo:function(t){return 0===t?0:e(2,10*t-10)},easeOutExpo:function(t){return 1===t?1:1-e(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:t<.5?e(2,20*t-10)/2:(2-e(2,-20*t+10))/2},easeInCirc:function(t){return 1-n(1-e(t,2))},easeOutCirc:function(t){return n(1-e(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-n(1-e(2*t,2)))/2:(n(1-e(-2*t+2,2))+1)/2},easeInElastic:function(t){return 0===t?0:1===t?1:-e(2,10*t-10)*i((10*t-10.75)*l)},easeOutElastic:function(t){return 0===t?0:1===t?1:e(2,-10*t)*i((10*t-.75)*l)+1},easeInOutElastic:function(t){return 0===t?0:1===t?1:t<.5?-e(2,20*t-10)*i((20*t-11.125)*u)/2:e(2,-20*t+10)*i((20*t-11.125)*u)/2+1},easeInBack:function(t){return 2.70158*t*t*t-a*t*t},easeOutBack:function(t){return 1+2.70158*e(t-1,3)+a*e(t-1,2)},easeInOutBack:function(t){return t<.5?e(2*t,2)*(7.189819*t-s)/2:(e(2*t-2,2)*((s+1)*(2*t-2)+s)+2)/2},easeInBounce:function(t){return 1-c(1-t)},easeOutBounce:c,easeInOutBounce:function(t){return t<.5?(1-c(1-2*t))/2:(1+c(2*t-1))/2}})}),jQuery.extend(jQuery.easing,{easeInOutMaterial:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e+n:i/4*((e-=2)*e*e+2)+n}}),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(t){function e(t){var e=t.length,i=n.type(t);return"function"!==i&&!n.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}if(!t.jQuery){var n=function(t,e){return new n.fn.init(t,e)};n.isWindow=function(t){return null!=t&&t==t.window},n.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?o[a.call(t)]||"object":typeof t},n.isArray=Array.isArray||function(t){return"array"===n.type(t)},n.isPlainObject=function(t){var e;if(!t||"object"!==n.type(t)||t.nodeType||n.isWindow(t))return!1;try{if(t.constructor&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||r.call(t,e)},n.each=function(t,n,i){var o=0,r=t.length,a=e(t);if(i){if(a)for(;r>o&&!1!==n.apply(t[o],i);o++);else for(o in t)if(!1===n.apply(t[o],i))break}else if(a)for(;r>o&&!1!==n.call(t[o],o,t[o]);o++);else for(o in t)if(!1===n.call(t[o],o,t[o]))break;return t},n.data=function(t,e,o){if(void 0===o){var r=(a=t[n.expando])&&i[a];if(void 0===e)return r;if(r&&e in r)return r[e]}else if(void 0!==e){var a=t[n.expando]||(t[n.expando]=++n.uuid);return i[a]=i[a]||{},i[a][e]=o,o}},n.removeData=function(t,e){var o=t[n.expando],r=o&&i[o];r&&n.each(e,function(t,e){delete r[e]})},n.extend=function(){var t,e,i,o,r,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(r=arguments[l]))for(o in r)t=s[o],s!==(i=r[o])&&(c&&i&&(n.isPlainObject(i)||(e=n.isArray(i)))?(e?(e=!1,a=t&&n.isArray(t)?t:[]):a=t&&n.isPlainObject(t)?t:{},s[o]=n.extend(c,a,i)):void 0!==i&&(s[o]=i));return s},n.queue=function(t,i,o){if(t){var r=n.data(t,i=(i||"fx")+"queue");return o?(!r||n.isArray(o)?r=n.data(t,i,function(t,n){var i=[];return null!=t&&(e(Object(t))?function(t,e){for(var n=+e.length,i=0,o=t.length;n>i;)t[o++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[o++]=e[i++];t.length=o}(i,"string"==typeof t?[t]:t):[].push.call(i,t)),i}(o)):r.push(o),r):r||[]}},n.dequeue=function(t,e){n.each(t.nodeType?[t]:t,function(t,i){var o=n.queue(i,e=e||"fx"),r=o.shift();"inprogress"===r&&(r=o.shift()),r&&("fx"===e&&o.unshift("inprogress"),r.call(i,function(){n.dequeue(i,e)}))})},n.fn=n.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),i=this.offset(),o=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:n(t).offset();return i.top-=parseFloat(e.style.marginTop)||0,i.left-=parseFloat(e.style.marginLeft)||0,t.style&&(o.top+=parseFloat(t.style.borderTopWidth)||0,o.left+=parseFloat(t.style.borderLeftWidth)||0),{top:i.top-o.top,left:i.left-o.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var o={},r=o.hasOwnProperty,a=o.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)o["[object "+s[l]+"]"]=s[l].toLowerCase();n.fn.init.prototype=n.fn,t.Velocity={Utilities:n}}}(window),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):t()}(function(){return function(t,e,n,i){function o(t){return f.isWrapped(t)?t=[].slice.call(t):f.isNode(t)&&(t=[t]),t}function r(t){var e=c.data(t,"velocity");return null===e?i:e}function a(t,n,i,o){function r(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((r(e,n)*t+a(e,n))*t+s(e))*t}function u(t,e,n){return 3*r(e,n)*t*t+2*a(e,n)*t+s(e)}function c(e,n){for(var o=0;h>o;++o){var r=u(n,t,i);if(0===r)return n;n-=(l(n,t,i)-e)/r}return n}function d(e,n,o){var r,a,s=0;do{(r=l(a=n+(o-n)/2,t,i)-e)>0?o=a:n=a}while(Math.abs(r)>f&&++s<p);return a}var h=4,f=1e-7,p=10,g="Float32Array"in e;if(4!==arguments.length)return!1;for(var v=0;4>v;++v)if("number"!=typeof arguments[v]||isNaN(arguments[v])||!isFinite(arguments[v]))return!1;t=Math.min(t,1),i=Math.min(i,1),t=Math.max(t,0),i=Math.max(i,0);var m=g?new Float32Array(11):new Array(11),y=!1,b=function(e){return y||(y=!0,(t!=n||i!=o)&&function(){for(var e=0;11>e;++e)m[e]=l(.1*e,t,i)}()),t===n&&i===o?e:0===e?0:1===e?1:l(function(e){for(var n=0,o=1;10!=o&&m[o]<=e;++o)n+=.1;var r=n+(e-m[--o])/(m[o+1]-m[o])*.1,a=u(r,t,i);return a>=.001?c(e,r):0==a?r:d(e,n,n+.1)}(e),n,o)};b.getControlPoints=function(){return[{x:t,y:n},{x:i,y:o}]};var x="generateBezier("+[t,n,i,o]+")";return b.toString=function(){return x},b}function s(t,e){var n=t;return f.isString(t)?m.Easings[t]||(n=!1):n=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)&&a.apply(null,t),!1===n&&(n=m.Easings[m.defaults.easing]?m.defaults.easing:v),n}function l(t){if(t){var e=(new Date).getTime(),n=m.State.calls.length;n>1e4&&(m.State.calls=function(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var o=t[e];o&&i.push(o)}return i}(m.State.calls));for(var o=0;n>o;o++)if(m.State.calls[o]){var a=m.State.calls[o],s=a[0],d=a[2],h=a[3],p=!!h,g=null;h||(h=m.State.calls[o][3]=e-16);for(var v=Math.min((e-h)/d.duration,1),y=0,x=s.length;x>y;y++){var k=s[y],C=k.element;if(r(C)){var T=!1;for(var S in d.display!==i&&null!==d.display&&"none"!==d.display&&("flex"===d.display&&c.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(t,e){b.setPropertyValue(C,"display",e)}),b.setPropertyValue(C,"display",d.display)),d.visibility!==i&&"hidden"!==d.visibility&&b.setPropertyValue(C,"visibility",d.visibility),k)if("element"!==S){var M,A=k[S],P=f.isString(A.easing)?m.Easings[A.easing]:A.easing;if(1===v)M=A.endValue;else{var D=A.endValue-A.startValue;if(M=A.startValue+D*P(v,d,D),!p&&M===A.currentValue)continue}if(A.currentValue=M,"tween"===S)g=M;else{if(b.Hooks.registered[S]){var _=b.Hooks.getRoot(S),I=r(C).rootPropertyValueCache[_];I&&(A.rootPropertyValue=I)}var O=b.setPropertyValue(C,S,A.currentValue+(0===parseFloat(M)?"":A.unitType),A.rootPropertyValue,A.scrollData);b.Hooks.registered[S]&&(r(C).rootPropertyValueCache[_]=b.Normalizations.registered[_]?b.Normalizations.registered[_]("extract",null,O[1]):O[1]),"transform"===O[0]&&(T=!0)}}d.mobileHA&&r(C).transformCache.translate3d===i&&(r(C).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&b.flushTransformCache(C)}}d.display!==i&&"none"!==d.display&&(m.State.calls[o][2].display=!1),d.visibility!==i&&"hidden"!==d.visibility&&(m.State.calls[o][2].visibility=!1),d.progress&&d.progress.call(a[1],a[1],v,Math.max(0,h+d.duration-e),h,g),1===v&&u(o)}}m.State.isTicking&&w(l)}function u(t,e){if(!m.State.calls[t])return!1;for(var n=m.State.calls[t][0],o=m.State.calls[t][1],a=m.State.calls[t][2],s=m.State.calls[t][4],l=!1,u=0,d=n.length;d>u;u++){var h=n[u].element;if(e||a.loop||("none"===a.display&&b.setPropertyValue(h,"display",a.display),"hidden"===a.visibility&&b.setPropertyValue(h,"visibility",a.visibility)),!0!==a.loop&&(c.queue(h)[1]===i||!/\.velocityQueueEntryFlag/i.test(c.queue(h)[1]))&&r(h)){r(h).isAnimating=!1,r(h).rootPropertyValueCache={};var f=!1;c.each(b.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,o=r(h).transformCache[e];r(h).transformCache[e]!==i&&new RegExp("^\\("+n+"[^.]").test(o)&&(f=!0,delete r(h).transformCache[e])}),a.mobileHA&&(f=!0,delete r(h).transformCache.translate3d),f&&b.flushTransformCache(h),b.Values.removeClass(h,"velocity-animating")}if(!e&&a.complete&&!a.loop&&u===d-1)try{a.complete.call(o,o)}catch(t){setTimeout(function(){throw t},1)}s&&!0!==a.loop&&s(o),r(h)&&!0===a.loop&&!e&&(c.each(r(h).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(h,"reverse",{loop:!0,delay:a.delay})),!1!==a.queue&&c.dequeue(h,a.queue)}m.State.calls[t]=!1;for(var p=0,g=m.State.calls.length;g>p;p++)if(!1!==m.State.calls[p]){l=!0;break}!1===l&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}var c,d=function(){if(n.documentMode)return n.documentMode;for(var t=7;t>4;t--){var e=n.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return i}(),h=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-t)),t=i+n,setTimeout(function(){e(i+n)},n)}}(),f={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==i&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>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}},p=!1;if(t.fn&&t.fn.jquery?(c=t,p=!0):c=e.Velocity.Utilities,8>=d&&!p)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=d)){var g=400,v="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:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:c,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:g,easing:v,begin:i,complete:i,progress:i,display:i,visibility:i,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!==i?(m.State.scrollAnchor=e,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=n.documentElement||n.body.parentNode||n.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,n,i){var o={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:o.v,dv:t(o)}}function n(n,i){var o={dx:n.v,dv:t(n)},r=e(n,.5*i,o),a=e(n,.5*i,r),s=e(n,i,a),l=1/6*(o.dv+2*(r.dv+a.dv)+s.dv);return n.x=n.x+1/6*(o.dx+2*(r.dx+a.dx)+s.dx)*i,n.v=n.v+l*i,n}return function t(e,i,o){var r,a,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0;for(e=parseFloat(e)||500,i=parseFloat(i)||20,o=o||null,l.tension=e,l.friction=i,a=(r=null!==o)?(c=t(e,i))/o*.016:.016;s=n(s||l,a),u.push(1+s.x),c+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return r?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]]=a.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<b.Lists.colors.length;t++)b.Hooks.templates[b.Lists.colors[t]]=["Red Green Blue Alpha","color"===b.Lists.colors[t]?"0 0 0 1":"255 255 255 1"];var e,n,i;if(d)for(e in b.Hooks.templates){i=(n=b.Hooks.templates[e])[0].split(" ");var o=n[1].match(b.RegEx.valueSplit);"Color"===i[0]&&(i.push(i.shift()),o.push(o.shift()),b.Hooks.templates[e]=[i.join(" "),o.join(" ")])}for(e in b.Hooks.templates)for(var t in i=(n=b.Hooks.templates[e])[0].split(" "))b.Hooks.registered[e+i[t]]=[e,t]},getRoot:function(t){var e=b.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return b.RegEx.valueUnwrap.test(e)&&(e=e.match(b.RegEx.valueUnwrap)[1]),b.Values.isCSSNullValue(e)&&(e=b.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=b.Hooks.registered[t];if(n){var i=n[1];return(e=b.Hooks.cleanRootPropertyValue(n[0],e)).toString().match(b.RegEx.valueSplit)[i]}return e},injectValue:function(t,e,n){var i=b.Hooks.registered[t];if(i){var o,r=i[1];return(o=(n=b.Hooks.cleanRootPropertyValue(i[0],n)).toString().match(b.RegEx.valueSplit))[r]=e,o.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var i;return b.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(i=n.toString().match(b.RegEx.valueUnwrap))?i[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return m.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var o=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=o?o[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(8>=d)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){9>=d||m.State.isGingerbread||(b.Lists.transformsBase=b.Lists.transformsBase.concat(b.Lists.transforms3D));for(var t=0;t<b.Lists.transformsBase.length;t++)!function(){var e=b.Lists.transformsBase[t];b.Normalizations.registered[e]=function(t,n,o){switch(t){case"name":return"transform";case"extract":return r(n)===i||r(n).transformCache[e]===i?/^scale/i.test(e)?1:0:r(n).transformCache[e].replace(/[()]/g,"");case"inject":var a=!1;switch(e.substr(0,e.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":m.State.isAndroid&&r(n).transformCache[e]===i&&1>o&&(o=1),a=!/(\d)$/i.test(o);break;case"skew":a=!/(deg|\d)$/i.test(o);break;case"rotate":a=!/(deg|\d)$/i.test(o)}return a||(r(n).transformCache[e]="("+o+")"),r(n).transformCache[e]}}}();for(t=0;t<b.Lists.colors.length;t++)!function(){var e=b.Lists.colors[t];b.Normalizations.registered[e]=function(t,n,o){switch(t){case"name":return e;case"extract":var r;if(b.RegEx.wrappedValueAlreadyExtracted.test(o))r=o;else{var a,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(o)?a=s[o]!==i?s[o]:s.black:b.RegEx.isHex.test(o)?a="rgb("+b.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(a=s.black),r=(a||o).toString().match(b.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=d||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=d?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(8>=d?"rgb":"rgba")+"("+o.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"],n=0,i=e.length;i>n;n++){var o;if(o=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),f.isString(m.State.prefixElement.style[o]))return m.State.prefixMatches[t]=o,[o,!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,n,i){return e+e+n+n+i+i}),(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,n,o,a){function s(t,n){function o(){h&&b.setPropertyValue(t,"display","none")}var l=0;if(8>=d)l=c.css(t,n);else{var u,h=!1;if(/^(width|height)$/.test(n)&&0===b.getPropertyValue(t,"display")&&(h=!0,b.setPropertyValue(t,"display",b.Values.getDisplayType(t))),!a){if("height"===n&&"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 o(),f}if("width"===n&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var p=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 o(),p}}u=r(t)===i?e.getComputedStyle(t,null):r(t).computedStyle?r(t).computedStyle:r(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===n&&(n="borderTopColor"),(""===(l=9===d&&"filter"===n?u.getPropertyValue(n):u[n])||null===l)&&(l=t.style[n]),o()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var g=s(t,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(n))&&(l=c(t).position()[n]+"px")}return l}var l;if(b.Hooks.registered[n]){var u=n,h=b.Hooks.getRoot(u);o===i&&(o=b.getPropertyValue(t,b.Names.prefixCheck(h)[0])),b.Normalizations.registered[h]&&(o=b.Normalizations.registered[h]("extract",t,o)),l=b.Hooks.extractValue(u,o)}else if(b.Normalizations.registered[n]){var f,p;"transform"!==(f=b.Normalizations.registered[n]("name",t))&&(p=s(t,b.Names.prefixCheck(f)[0]),b.Values.isCSSNullValue(p)&&b.Hooks.templates[n]&&(p=b.Hooks.templates[n][1])),l=b.Normalizations.registered[n]("extract",t,p)}if(!/^[\d-]/.test(l))if(r(t)&&r(t).isSVG&&b.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=t.getBBox()[n]}catch(t){l=0}else l=t.getAttribute(n);else l=s(t,b.Names.prefixCheck(n)[0]);return b.Values.isCSSNullValue(l)&&(l=0),m.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(t,n,i,o,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=i:"Left"===a.direction?e.scrollTo(i,a.alternateValue):e.scrollTo(a.alternateValue,i);else if(b.Normalizations.registered[n]&&"transform"===b.Normalizations.registered[n]("name",t))b.Normalizations.registered[n]("inject",t,i),s="transform",i=r(t).transformCache[n];else{if(b.Hooks.registered[n]){var l=n,u=b.Hooks.getRoot(n);o=o||b.getPropertyValue(t,u),i=b.Hooks.injectValue(l,i,o),n=u}if(b.Normalizations.registered[n]&&(i=b.Normalizations.registered[n]("inject",t,i),n=b.Normalizations.registered[n]("name",t)),s=b.Names.prefixCheck(n)[0],8>=d)try{t.style[s]=i}catch(t){m.debug&&console.log("Browser does not support ["+i+"] for ["+s+"]")}else r(t)&&r(t).isSVG&&b.Names.SVGAttribute(n)?t.setAttribute(n,i):t.style[s]=i;m.debug>=2&&console.log("Set "+n+" ("+s+"): "+i)}return[s,i]},flushTransformCache:function(t){function e(e){return parseFloat(b.getPropertyValue(t,e))}var n="";if((d||m.State.isAndroid&&!m.State.isChrome)&&r(t).isSVG){var i={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(r(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),i[t]&&(n+=t+"("+i[t].join(" ")+") ",delete i[t])})}else{var o,a;c.each(r(t).transformCache,function(e){return o=r(t).transformCache[e],"transformPerspective"===e?(a=o,!0):(9===d&&"rotateZ"===e&&(e="rotate"),void(n+=e+o+" "))}),a&&(n="perspective"+a+" "+n)}b.setPropertyValue(t,"transform",n)}};b.Hooks.register(),b.Normalizations.register(),m.hook=function(t,e,n){var a=i;return t=o(t),c.each(t,function(t,o){if(r(o)===i&&m.init(o),n===i)a===i&&(a=m.CSS.getPropertyValue(o,e));else{var s=m.CSS.setPropertyValue(o,e,n);"transform"===s[0]&&m.CSS.flushTransformCache(o),a=s}}),a};var x=function(){function t(){return d?A.promise||null:h}function a(){function t(t){function h(t,e){var n=i,o=i,r=i;return f.isArray(t)?(n=t[0],!f.isArray(t[1])&&/^[\d-]/.test(t[1])||f.isFunction(t[1])||b.RegEx.isHex.test(t[1])?r=t[1]:(f.isString(t[1])&&!b.RegEx.isHex.test(t[1])||f.isArray(t[1]))&&(o=e?t[1]:s(t[1],u.duration),t[2]!==i&&(r=t[2]))):n=t,e||(o=o||u.easing),f.isFunction(n)&&(n=n.call(a,T,C)),f.isFunction(r)&&(r=r.call(a,T,C)),[n||0,o,r]}function p(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n||(n=b.Values.getUnitType(t)),[i,n]}function g(){var t={myParent:a.parentNode||n.body,position:b.getPropertyValue(a,"position"),fontSize:b.getPropertyValue(a,"fontSize")},i=t.position===L.lastPosition&&t.myParent===L.lastParent,o=t.fontSize===L.lastFontSize;L.lastParent=t.myParent,L.lastPosition=t.position,L.lastFontSize=t.fontSize;var s=100,l={};if(o&&i)l.emToPx=L.lastEmToPx,l.percentToPxWidth=L.lastPercentToPxWidth,l.percentToPxHeight=L.lastPercentToPxHeight;else{var u=r(a).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.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=L.lastPercentToPxWidth=(parseFloat(b.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(b.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=L.lastEmToPx=(parseFloat(b.getPropertyValue(u,"paddingLeft"))||1)/s,t.myParent.removeChild(u)}return null===L.remToPx&&(L.remToPx=parseFloat(b.getPropertyValue(n.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(e.innerWidth)/100,L.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=L.remToPx,l.vwToPx=L.vwToPx,l.vhToPx=L.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(u.begin&&0===T)try{u.begin.call(v,v)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===M){var x,k,S,P=/^x$/i.test(u.axis)?"Left":"Top",D=parseFloat(u.offset)||0;u.container?f.isWrapped(u.container)||f.isNode(u.container)?(u.container=u.container[0]||u.container,S=(x=u.container["scroll"+P])+c(a).position()[P.toLowerCase()]+D):u.container=null:(x=m.State.scrollAnchor[m.State["scrollProperty"+P]],k=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===P?"Top":"Left")]],S=c(a).offset()[P.toLowerCase()]+D),d={scroll:{rootPropertyValue:!1,startValue:x,currentValue:x,endValue:S,unitType:"",easing:u.easing,scrollData:{container:u.container,direction:P,alternateValue:k}},element:a},m.debug&&console.log("tweensContainer (scroll): ",d.scroll,a)}else if("reverse"===M){if(!r(a).tweensContainer)return void c.dequeue(a,u.queue);"none"===r(a).opts.display&&(r(a).opts.display="auto"),"hidden"===r(a).opts.visibility&&(r(a).opts.visibility="visible"),r(a).opts.loop=!1,r(a).opts.begin=null,r(a).opts.complete=null,w.easing||delete u.easing,w.duration||delete u.duration,u=c.extend({},r(a).opts,u);var _=c.extend(!0,{},r(a).tweensContainer);for(var I in _)if("element"!==I){var O=_[I].startValue;_[I].startValue=_[I].currentValue=_[I].endValue,_[I].endValue=O,f.isEmptyObject(w)||(_[I].easing=u.easing),m.debug&&console.log("reverse tweensContainer ("+I+"): "+JSON.stringify(_[I]),a)}d=_}else if("start"===M){for(var E in r(a).tweensContainer&&!0===r(a).isAnimating&&(_=r(a).tweensContainer),c.each(y,function(t,e){if(RegExp("^"+b.Lists.colors.join("$|^")+"$").test(t)){var n=h(e,!0),o=n[0],r=n[1],a=n[2];if(b.RegEx.isHex.test(o)){for(var s=["Red","Green","Blue"],l=b.Values.hexToRgb(o),u=a?b.Values.hexToRgb(a):i,c=0;c<s.length;c++){var d=[l[c]];r&&d.push(r),u!==i&&d.push(u[c]),y[t+s[c]]=d}delete y[t]}}}),y){var N=h(y[E]),R=N[0],z=N[1],W=N[2];E=b.Names.camelCase(E);var H=b.Hooks.getRoot(E),q=!1;if(r(a).isSVG||"tween"===H||!1!==b.Names.prefixCheck(H)[1]||b.Normalizations.registered[H]!==i){(u.display!==i&&null!==u.display&&"none"!==u.display||u.visibility!==i&&"hidden"!==u.visibility)&&/opacity|filter/.test(E)&&!W&&0!==R&&(W=0),u._cacheValues&&_&&_[E]?(W===i&&(W=_[E].endValue+_[E].unitType),q=r(a).rootPropertyValueCache[H]):b.Hooks.registered[E]?W===i?(q=b.getPropertyValue(a,H),W=b.getPropertyValue(a,E,q)):q=b.Hooks.templates[H][1]:W===i&&(W=b.getPropertyValue(a,E));var j,V,B,$=!1;if(W=(j=p(E,W))[0],B=j[1],R=(j=p(E,R))[0].replace(/^([+-\/*])=/,function(t,e){return $=e,""}),V=j[1],W=parseFloat(W)||0,R=parseFloat(R)||0,"%"===V&&(/^(fontSize|lineHeight)$/.test(E)?(R/=100,V="em"):/^scale/.test(E)?(R/=100,V=""):/(Red|Green|Blue)$/i.test(E)&&(R=R/100*255,V="")),/[\/*]/.test($))V=B;else if(B!==V&&0!==W)if(0===R)V=B;else{o=o||g();var X=/margin|padding|left|right|width|text|word|letter/i.test(E)||/X$/.test(E)||"x"===E?"x":"y";switch(B){case"%":W*="x"===X?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:W*=o[B+"ToPx"]}switch(V){case"%":W*=1/("x"===X?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:W*=1/o[V+"ToPx"]}}switch($){case"+":R=W+R;break;case"-":R=W-R;break;case"*":R*=W;break;case"/":R=W/R}d[E]={rootPropertyValue:q,startValue:W,currentValue:W,endValue:R,unitType:V,easing:z},m.debug&&console.log("tweensContainer ("+E+"): "+JSON.stringify(d[E]),a)}else m.debug&&console.log("Skipping ["+H+"] due to a lack of browser support.")}d.element=a}d.element&&(b.Values.addClass(a,"velocity-animating"),F.push(d),""===u.queue&&(r(a).tweensContainer=d,r(a).opts=u),r(a).isAnimating=!0,T===C-1?(m.State.calls.push([F,v,u,null,A.resolver]),!1===m.State.isTicking&&(m.State.isTicking=!0,l())):T++)}var o,a=this,u=c.extend({},m.defaults,w),d={};switch(r(a)===i&&m.init(a),parseFloat(u.delay)&&!1!==u.queue&&c.queue(a,u.queue,function(t){m.velocityQueueEntryFlag=!0,r(a).delayTimer={setTimeout:setTimeout(t,parseFloat(u.delay)),next:t}}),u.duration.toString().toLowerCase()){case"fast":u.duration=200;break;case"normal":u.duration=g;break;case"slow":u.duration=600;break;default:u.duration=parseFloat(u.duration)||1}!1!==m.mock&&(!0===m.mock?u.duration=u.delay=1:(u.duration*=parseFloat(m.mock)||1,u.delay*=parseFloat(m.mock)||1)),u.easing=s(u.easing,u.duration),u.begin&&!f.isFunction(u.begin)&&(u.begin=null),u.progress&&!f.isFunction(u.progress)&&(u.progress=null),u.complete&&!f.isFunction(u.complete)&&(u.complete=null),u.display!==i&&null!==u.display&&(u.display=u.display.toString().toLowerCase(),"auto"===u.display&&(u.display=m.CSS.Values.getDisplayType(a))),u.visibility!==i&&null!==u.visibility&&(u.visibility=u.visibility.toString().toLowerCase()),u.mobileHA=u.mobileHA&&m.State.isMobile&&!m.State.isGingerbread,!1===u.queue?u.delay?setTimeout(t,u.delay):t():c.queue(a,u.queue,function(e,n){return!0===n?(A.promise&&A.resolver(v),!0):(m.velocityQueueEntryFlag=!0,void t())}),""!==u.queue&&"fx"!==u.queue||"inprogress"===c.queue(a)[0]||c.dequeue(a)}var d,h,p,v,y,w,k=arguments[0]&&(arguments[0].p||c.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||f.isString(arguments[0].properties));if(f.isWrapped(this)?(d=!1,p=0,v=this,h=this):(d=!0,p=1,v=k?arguments[0].elements||arguments[0].e:arguments[0]),v=o(v)){k?(y=arguments[0].properties||arguments[0].p,w=arguments[0].options||arguments[0].o):(y=arguments[p],w=arguments[p+1]);var C=v.length,T=0;if(!/^(stop|finish)$/i.test(y)&&!c.isPlainObject(w)){w={};for(var S=p+1;S<arguments.length;S++)f.isArray(arguments[S])||!/^(fast|normal|slow)$/i.test(arguments[S])&&!/^\d/.test(arguments[S])?f.isString(arguments[S])||f.isArray(arguments[S])?w.easing=arguments[S]:f.isFunction(arguments[S])&&(w.complete=arguments[S]):w.duration=arguments[S]}var M,A={promise:null,resolver:null,rejecter:null};switch(d&&m.Promise&&(A.promise=new m.Promise(function(t,e){A.resolver=t,A.rejecter=e})),y){case"scroll":M="scroll";break;case"reverse":M="reverse";break;case"finish":case"stop":c.each(v,function(t,e){r(e)&&r(e).delayTimer&&(clearTimeout(r(e).delayTimer.setTimeout),r(e).delayTimer.next&&r(e).delayTimer.next(),delete r(e).delayTimer)});var P=[];return c.each(m.State.calls,function(t,e){e&&c.each(e[1],function(n,o){var a=w===i?"":w;return!0!==a&&e[2].queue!==a&&(w!==i||!1!==e[2].queue)||void c.each(v,function(n,i){i===o&&((!0===w||f.isString(w))&&(c.each(c.queue(i,f.isString(w)?w:""),function(t,e){f.isFunction(e)&&e(null,!0)}),c.queue(i,f.isString(w)?w:"",[])),"stop"===y?(r(i)&&r(i).tweensContainer&&!1!==a&&c.each(r(i).tweensContainer,function(t,e){e.endValue=e.currentValue}),P.push(t)):"finish"===y&&(e[2].duration=1))})})}),"stop"===y&&(c.each(P,function(t,e){u(e,!0)}),A.promise&&A.resolver(v)),t();default:if(!c.isPlainObject(y)||f.isEmptyObject(y)){if(f.isString(y)&&m.Redirects[y]){var D=(E=c.extend({},w)).duration,_=E.delay||0;return!0===E.backwards&&(v=c.extend(!0,[],v).reverse()),c.each(v,function(t,e){parseFloat(E.stagger)?E.delay=_+parseFloat(E.stagger)*t:f.isFunction(E.stagger)&&(E.delay=_+E.stagger.call(e,t,C)),E.drag&&(E.duration=parseFloat(D)||(/^(callout|transition)/.test(y)?1e3:g),E.duration=Math.max(E.duration*(E.backwards?1-t/C:(t+1)/C),.75*E.duration,200)),m.Redirects[y].call(e,e,E||{},t,C,v,A.promise?A:i)}),t()}var I="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return A.promise?A.rejecter(new Error(I)):console.log(I),t()}M="start"}var O,E,L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},F=[];if(c.each(v,function(t,e){f.isNode(e)&&a.call(e)}),(E=c.extend({},m.defaults,w)).loop=parseInt(E.loop),O=2*E.loop-1,E.loop)for(var N=0;O>N;N++){var R={delay:E.delay,progress:E.progress};N===O-1&&(R.display=E.display,R.visibility=E.visibility,R.complete=E.complete),x(v,"reverse",R)}return t()}};(m=c.extend(x,m)).animate=x;var w=e.requestAnimationFrame||h;return m.State.isMobile||n.hidden===i||n.addEventListener("visibilitychange",function(){n.hidden?(w=function(t){return setTimeout(function(){t(!0)},16)},l()):w=e.requestAnimationFrame||h}),t.Velocity=m,t!==e&&(t.fn.velocity=x,t.fn.velocity.defaults=m.defaults),c.each(["Down","Up"],function(t,e){m.Redirects["slide"+e]=function(t,n,o,r,a,s){var l=c.extend({},n),u=l.begin,d=l.complete,h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===i&&(l.display="Down"===e?"inline"===m.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var n in u&&u.call(a,a),h){f[n]=t.style[n];var i=m.CSS.getPropertyValue(t,n);h[n]="Down"===e?[i,0]:[0,i]}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(a,a),s&&s.resolver(a)},m(t,h,l)}}),c.each(["In","Out"],function(t,e){m.Redirects["fade"+e]=function(t,n,o,r,a,s){var l=c.extend({},n),u={opacity:"In"===e?1:0},d=l.complete;l.complete=o!==r-1?l.begin=null:function(){d&&d.call(a,a),s&&s.resolver(a)},l.display===i&&(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,n,i){"use strict";function o(t,e,n){return setTimeout(c(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(a(t,n[e],n),!0)}function a(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function s(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===i)&&(t[o[r]]=e[o[r]]),r++;return t}function l(t,e){return s(t,e,!0)}function u(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&s(i,n)}function c(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==K?t.apply(e&&e[0]||i,e):t}function h(t,e){return t===i?e:t}function f(t,e,n){a(m(e),function(e){t.addEventListener(e,n,!1)})}function p(t,e,n){a(m(e),function(e){t.removeEventListener(e,n,!1)})}function g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function y(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function x(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var a=e?t[r][e]:t[r];y(o,a)<0&&i.push(t[r]),o[r]=a,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function w(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),a=0;a<Z.length;){if((o=(n=Z[a])?n+r:e)in t)return o;a++}return i}function k(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function C(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function T(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&ct&&0==i-o,a=e&(dt|ht)&&0==i-o;n.isFirst=!!r,n.isFinal=!!a,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=M(e)),o>1&&!n.firstMultiple?n.firstMultiple=M(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,a=n.firstMultiple,s=a?a.center:r.center,l=e.center=A(i);e.timeStamp=nt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=_(s,l),e.distance=D(s,l),function(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};(e.eventType===ct||r.eventType===dt)&&(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}(n,e),e.offsetDirection=P(e.deltaX,e.deltaY),e.scale=a?function(t,e){return D(i[0],i[1],kt)/D(t[0],t[1],kt)}(a.pointers):1,e.rotation=a?function(t,e){return _(i[1],i[0],kt)-_(t[1],t[0],kt)}(a.pointers):0,S(n,e);var u=t.element;g(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function S(t,e){var n,o,r,a,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=ht&&(l>ut||s.velocity===i)){var u=s.deltaX-e.deltaX,c=s.deltaY-e.deltaY,d={x:u/l||0,y:c/l||0};o=d.x,r=d.y,n=et(d.x)>et(d.y)?d.x:d.y,a=P(u,c),t.lastInterval=e}else n=s.velocity,o=s.velocityX,r=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=a}function M(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:tt(t.pointers[n].clientX),clientY:tt(t.pointers[n].clientY)},n++;return{timeStamp:nt(),pointers:e,center:A(e),deltaX:t.deltaX,deltaY:t.deltaY}}function A(t){var e=t.length;if(1===e)return{x:tt(t[0].clientX),y:tt(t[0].clientY)};for(var n=0,i=0,o=0;e>o;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:tt(n/e),y:tt(i/e)}}function P(t,e){return t===e?ft:et(t)>=et(e)?t>0?pt:gt:e>0?vt:mt}function D(t,e,n){n||(n=wt);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function _(t,e,n){return n||(n=wt),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}function I(){this.evEl=Tt,this.evWin=St,this.allow=!0,this.pressed=!1,C.apply(this,arguments)}function O(){this.evEl=Pt,this.evWin=Dt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function E(){this.evTarget=It,this.evWin=Ot,this.started=!1,C.apply(this,arguments)}function L(){this.evTarget=Lt,this.targetIds={},C.apply(this,arguments)}function F(){C.apply(this,arguments);var t=c(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new I(this.manager,t)}function N(t,e){this.manager=t,this.set(e)}function R(t){this.id=it++,this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=h(this.options.enable,!0),this.state=jt,this.simultaneous={},this.requireFail=[]}function z(t){return t==mt?"down":t==vt?"up":t==pt?"left":t==gt?"right":""}function W(t,e){var n=e.manager;return n?n.get(t):t}function H(){R.apply(this,arguments)}function q(){H.apply(this,arguments),this.pX=null,this.pY=null}function j(){H.apply(this,arguments)}function V(){R.apply(this,arguments),this._timer=null,this._input=null}function B(){H.apply(this,arguments)}function $(){H.apply(this,arguments)}function X(){R.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=h(e.recognizers,Y.defaults.preset),new Q(t,e)}function Q(t,e){this.options=l(e=e||{},Y.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){return new(t.options.inputClass||(rt?O:at?L:ot?F:I))(t,T)}(this),this.touchAction=new N(this,this.options.touchAction),U(this,!0),a(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 U(t,e){var n=t.element;a(t.options.cssProps,function(t,i){n.style[w(n.style,i)]=e?t:""})}function G(t,n){var i=e.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}var Z=["","webkit","moz","MS","ms","o"],J=e.createElement("div"),K="function",tt=Math.round,et=Math.abs,nt=Date.now,it=1,ot="ontouchstart"in t,rt=w(t,"PointerEvent")!==i,at=ot&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),st="touch",lt="mouse",ut=25,ct=1,dt=4,ht=8,ft=1,pt=2,gt=4,vt=8,mt=16,yt=pt|gt,bt=vt|mt,xt=yt|bt,wt=["x","y"],kt=["clientX","clientY"];C.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(k(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(k(this.element),this.evWin,this.domHandler)}};var Ct={mousedown:ct,mousemove:2,mouseup:dt},Tt="mousedown",St="mousemove mouseup";u(I,C,{handler:function(t){var e=Ct[t.type];e&ct&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=dt),this.pressed&&this.allow&&(e&dt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:lt,srcEvent:t}))}});var Mt={pointerdown:ct,pointermove:2,pointerup:dt,pointercancel:ht,pointerout:ht},At={2:st,3:"pen",4:lt,5:"kinect"},Pt="pointerdown",Dt="pointermove pointerup pointercancel";t.MSPointerEvent&&(Pt="MSPointerDown",Dt="MSPointerMove MSPointerUp MSPointerCancel"),u(O,C,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=Mt[i],r=At[t.pointerType]||t.pointerType,a=r==st,s=y(e,t.pointerId,"pointerId");o&ct&&(0===t.button||a)?0>s&&(e.push(t),s=e.length-1):o&(dt|ht)&&(n=!0),0>s||(e[s]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(s,1))}});var _t={touchstart:ct,touchmove:2,touchend:dt,touchcancel:ht},It="touchstart",Ot="touchstart touchmove touchend touchcancel";u(E,C,{handler:function(t){var e=_t[t.type];if(e===ct&&(this.started=!0),this.started){var n=(function(t,e){var n=b(t.touches),i=b(t.changedTouches);return e&(dt|ht)&&(n=x(n.concat(i),"identifier",!0)),[n,i]}).call(this,t,e);e&(dt|ht)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:st,srcEvent:t})}}});var Et={touchstart:ct,touchmove:2,touchend:dt,touchcancel:ht},Lt="touchstart touchmove touchend touchcancel";u(L,C,{handler:function(t){var e=Et[t.type],n=(function(t,e){var n=b(t.touches),i=this.targetIds;if(e&(2|ct)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,a=b(t.changedTouches),s=[],l=this.target;if(r=n.filter(function(t){return g(t.target,l)}),e===ct)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<a.length;)i[a[o].identifier]&&s.push(a[o]),e&(dt|ht)&&delete i[a[o].identifier],o++;return s.length?[x(r.concat(s),"identifier",!0),s]:void 0}).call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:st,srcEvent:t})}}),u(F,C,{handler:function(t,e,n){var i=n.pointerType==lt;if(n.pointerType==st)this.mouse.allow=!1;else if(i&&!this.mouse.allow)return;e&(dt|ht)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ft=w(J.style,"touchAction"),Nt=Ft!==i,Rt="compute",zt="manipulation",Wt="none",Ht="pan-x",qt="pan-y";N.prototype={set:function(t){t==Rt&&(t=this.compute()),Nt&&(this.manager.element.style[Ft]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return a(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(v(t,Wt))return Wt;var e=v(t,Ht),n=v(t,qt);return e&&n?Ht+" "+qt:e||n?e?Ht:qt:v(t,zt)?zt:"auto"}(t.join(" "))},preventDefaults:function(t){if(!Nt){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,o=v(i,Wt),r=v(i,qt),a=v(i,Ht);return o||r&&n&yt||a&&n&bt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var jt=1,Vt=2,Bt=4,$t=8,Xt=$t,Yt=16;R.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=W(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)?this:(t=W(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return-1===y(e,t=W(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=W(t,this);var e=y(this.requireFail,t);return e>-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){n.manager.emit(n.options.event+(e?i&Yt?"cancel":i&$t?"end":i&Bt?"move":i&Vt?"start":"":""),t)}var n=this,i=this.state;$t>i&&e(!0),e(),i>=$t&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|jt)))return!1;t++}return!0},recognize:function(t){var e=s({},t);return d(this.options.enable,[this,e])?(this.state&(Xt|Yt|32)&&(this.state=jt),this.state=this.process(e),void(this.state&(Vt|Bt|$t|Yt)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},u(H,R,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(Vt|Bt),o=this.attrTest(t);return i&&(n&ht||!o)?e|Yt:i||o?n&dt?e|$t:e&Vt?e|Bt:Vt:32}}),u(q,H,{defaults:{event:"pan",threshold:10,pointers:1,direction:xt},getTouchAction:function(){var t=this.options.direction,e=[];return t&yt&&e.push(qt),t&bt&&e.push(Ht),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,a=t.deltaY;return o&e.direction||(e.direction&yt?(o=0===r?ft:0>r?pt:gt,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===a?ft:0>a?vt:mt,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return H.prototype.attrTest.call(this,t)&&(this.state&Vt||!(this.state&Vt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=z(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),u(j,H,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Vt)},emit:function(t){this._super.emit.call(this,t),1!==t.scale&&this.manager.emit(this.options.event+(t.scale<1?"in":"out"),t)}}),u(V,R,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(dt|ht)&&!r)this.reset();else if(t.eventType&ct)this.reset(),this._timer=o(function(){this.state=Xt,this.tryEmit()},e.time,this);else if(t.eventType&dt)return Xt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Xt&&(t&&t.eventType&dt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=nt(),this.manager.emit(this.options.event,this._input)))}}),u(B,H,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Vt)}}),u($,H,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:yt|bt,pointers:1},getTouchAction:function(){return q.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(yt|bt)?e=t.velocity:n&yt?e=t.velocityX:n&bt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&et(e)>this.options.velocity&&t.eventType&dt},emit:function(t){var e=z(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(X,R,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[zt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&ct&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=dt)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||D(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=o(function(){this.state=Xt,this.tryEmit()},e.interval,this),Vt):Xt}return 32},failTimeout:function(){return this._timer=o(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Xt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Y.VERSION="2.0.4",Y.defaults={domEvents:!1,touchAction:Rt,enable:!0,inputTarget:null,inputClass:null,preset:[[B,{enable:!1}],[j,{enable:!1},["rotate"]],[$,{direction:yt}],[q,{direction:yt},["swipe"]],[X],[X,{event:"doubletap",taps:2},["tap"]],[V]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Q.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Xt)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&n.state&(Vt|Bt|$t)&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof R)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(r(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(r(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var n=this.handlers;return a(m(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return a(m(t),function(t){e?n[t].splice(y(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&G(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&U(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(Y,{INPUT_START:ct,INPUT_MOVE:2,INPUT_END:dt,INPUT_CANCEL:ht,STATE_POSSIBLE:jt,STATE_BEGAN:Vt,STATE_CHANGED:Bt,STATE_ENDED:$t,STATE_RECOGNIZED:Xt,STATE_CANCELLED:Yt,STATE_FAILED:32,DIRECTION_NONE:ft,DIRECTION_LEFT:pt,DIRECTION_RIGHT:gt,DIRECTION_UP:vt,DIRECTION_DOWN:mt,DIRECTION_HORIZONTAL:yt,DIRECTION_VERTICAL:bt,DIRECTION_ALL:xt,Manager:Q,Input:C,TouchAction:N,TouchInput:L,MouseInput:I,PointerEventInput:O,TouchMouseInput:F,SingleTouchInput:E,Recognizer:R,AttrRecognizer:H,Tap:X,Pan:q,Swipe:$,Pinch:j,Rotate:B,Press:V,on:f,off:p,each:a,merge:l,extend:s,inherit:u,bindFn:c,prefixed:w}),typeof define==K&&define.amd?define(function(){return Y}):"undefined"!=typeof module&&module.exports?module.exports=Y:t.Hammer=Y}(window,document),function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(t,e){var n;t.fn.hammer=function(n){return this.each(function(){!function(n,i){var o=t(n);o.data("hammer")||o.data("hammer",new e(o[0],i))}(this,n)})},e.Manager.prototype.emit=(n=e.Manager.prototype.emit,function(e,i){n.call(this,e,i),t(this.element).trigger({type:e,gesture:i})})}),function(t){t.Package?Materialize={}:t.Materialize={}}(window),"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=Materialize),exports.default=Materialize),function(t){for(var e=0,n=["webkit","moz"],i=t.requestAnimationFrame,o=t.cancelAnimationFrame,r=n.length;--r>=0&&!i;)i=t[n[r]+"RequestAnimationFrame"],o=t[n[r]+"CancelRequestAnimationFrame"];i&&o||(i=function(t){var n=+Date.now(),i=Math.max(e+16,n);return setTimeout(function(){t(e=i)},i-n)},o=clearTimeout),t.requestAnimationFrame=i,t.cancelAnimationFrame=o}(window),Materialize.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},Materialize.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),Materialize.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")},Materialize.elementOrParentIsFixed=function(t){var e=$(t),n=!1;return e.add(e.parents()).each(function(){if("fixed"===$(this).css("position"))return n=!0,!1}),n};var Vel,getTime=Date.now||function(){return(new Date).getTime()};Materialize.throttle=function(t,e,n){var i,o,r,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:getTime(),a=null,r=t.apply(i,o),i=o=null};return function(){var u=getTime();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0?(clearTimeout(a),a=null,s=u,r=t.apply(i,o),i=o=null):a||!1===n.trailing||(a=setTimeout(l,c)),r}},Vel=jQuery?jQuery.Velocity:$?$.Velocity:Velocity,Materialize.Vel=Vel||Velocity,function(t){t.fn.collapsible=function(e,n){var i=e;return e=t.extend({accordion:void 0,onOpen:void 0,onClose:void 0},e),this.each(function(){var o=t(this),r=t(this).find("> li > .collapsible-header"),a=o.data("collapsible");function s(n,i){i||n.toggleClass("active"),e.accordion||"accordion"===a||void 0===a?function(e){r=o.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","")}}),r.not(e).removeClass("active").parent().removeClass("active"),r.not(e).parent().children(".collapsible-body").stop(!0,!1).each(function(){t(this).is(":visible")&&t(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height",""),l(t(this).siblings(".collapsible-header"))}})})}(n):function(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","")}})}(n),l(n)}function l(t){t.hasClass("active")?"function"==typeof e.onOpen&&e.onOpen.call(this,t.parent()):"function"==typeof e.onClose&&e.onClose.call(this,t.parent())}function u(t){return t.closest("li > .collapsible-header")}function c(){o.off("click.collapse","> li > .collapsible-header")}if("destroy"!==i)if(n>=0&&n<r.length){var d=r.eq(n);d.length&&("open"===i||"close"===i&&d.hasClass("active"))&&s(d)}else c(),o.on("click.collapse","> li > .collapsible-header",function(e){var n=t(e.target);u(n).length>0&&(n=u(n)),s(n)}),e.accordion||"accordion"===a||void 0===a?s(r.filter(".active").first(),!0):r.filter(".active").each(function(){s(t(this),!0)});else c()})},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 n={inDuration:300,outDuration:225,constrainWidth:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};return"open"===e?(this.each(function(){t(this).trigger("open")}),!1):"close"===e?(this.each(function(){t(this).trigger("close")}),!1):void this.each(function(){var i=t(this),o=t.extend({},n,e),r=!1,a=t("#"+i.attr("data-activates"));function s(){void 0!==i.data("induration")&&(o.inDuration=i.data("induration")),void 0!==i.data("outduration")&&(o.outDuration=i.data("outduration")),void 0!==i.data("constrainwidth")&&(o.constrainWidth=i.data("constrainwidth")),void 0!==i.data("hover")&&(o.hover=i.data("hover")),void 0!==i.data("gutter")&&(o.gutter=i.data("gutter")),void 0!==i.data("beloworigin")&&(o.belowOrigin=i.data("beloworigin")),void 0!==i.data("alignment")&&(o.alignment=i.data("alignment")),void 0!==i.data("stoppropagation")&&(o.stopPropagation=i.data("stoppropagation"))}function l(e){"focus"===e&&(r=!0),s(),a.addClass("active"),i.addClass("active");var n=i[0].getBoundingClientRect().width;!0===o.constrainWidth?a.css("width",n):a.css("white-space","nowrap");var l=window.innerHeight,c=i.innerHeight(),d=i.offset().left,h=i.offset().top-t(window).scrollTop(),f=o.alignment,p=0,g=0,v=0;!0===o.belowOrigin&&(v=c);var m=0,y=0,b=i.parent();b.is("body")||(b[0].scrollHeight>b[0].clientHeight&&(m=b[0].scrollTop),b[0].scrollWidth>b[0].clientWidth&&(y=b[0].scrollLeft)),d+a.innerWidth()>t(window).width()?f="right":d-a.innerWidth()+i.innerWidth()<0&&(f="left"),h+a.innerHeight()>l&&(h+c-a.innerHeight()<0?a.css("max-height",l-h-v):(v||(v+=c),v-=a.innerHeight())),"left"===f?(p=o.gutter,g=i.position().left+p):"right"===f&&(a.stop(!0,!0).css({opacity:0,left:0}),g=i.position().left+n-a.width()+(p=-o.gutter)),a.css({position:"absolute",top:i.position().top+v+m,left:g+y}),a.slideDown({queue:!1,duration:o.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:o.inDuration,easing:"easeOutSine"}),setTimeout(function(){t(document).on("click."+a.attr("id"),function(e){u(),t(document).off("click."+a.attr("id"))})},0)}function u(){r=!1,a.fadeOut(o.outDuration),a.removeClass("active"),i.removeClass("active"),t(document).off("click."+a.attr("id")),setTimeout(function(){a.css("max-height","")},o.outDuration)}if(s(),i.after(a),o.hover){var c=!1;i.off("click."+i.attr("id")),i.on("mouseenter",function(t){!1===c&&(l(),c=!0)}),i.on("mouseleave",function(e){t(e.toElement||e.relatedTarget).closest(".dropdown-content").is(a)||(a.stop(!0,!0),u(),c=!1)}),a.on("mouseleave",function(e){t(e.toElement||e.relatedTarget).closest(".dropdown-button").is(i)||(a.stop(!0,!0),u(),c=!1)})}else i.off("click."+i.attr("id")),i.on("click."+i.attr("id"),function(e){r||(i[0]!=e.currentTarget||i.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?i.hasClass("active")&&(u(),t(document).off("click."+a.attr("id"))):(e.preventDefault(),o.stopPropagation&&e.stopPropagation(),l("click")))});i.on("open",function(t,e){l(e)}),i.on("close",u)})},t(document).ready(function(){t(".dropdown-button").dropdown()})}(jQuery),function(t,e){"use strict";var n={opacity:.5,inDuration:250,outDuration:250,ready:void 0,complete:void 0,dismissible:!0,startingTop:"4%",endingTop:"10%"},i=function(){function i(e,n){_classCallCheck(this,i),e[0].M_Modal&&e[0].M_Modal.destroy(),this.$el=e,this.options=t.extend({},i.defaults,n),this.isOpen=!1,this.$el[0].M_Modal=this,this.id=e.attr("id"),this.openingTrigger=void 0,this.$overlay=t('<div class="modal-overlay"></div>'),i._increment++,i._count++,this.$overlay[0].style.zIndex=1e3+2*i._increment,this.$el[0].style.zIndex=1e3+2*i._increment+1,this.setupEventHandlers()}return _createClass(i,[{key:"getInstance",value:function(){return this}},{key:"destroy",value:function(){this.removeEventHandlers(),this.$el[0].removeAttribute("style"),this.$overlay[0].parentNode&&this.$overlay[0].parentNode.removeChild(this.$overlay[0]),this.$el[0].M_Modal=void 0,i._count--}},{key:"setupEventHandlers",value:function(){this.handleOverlayClickBound=this.handleOverlayClick.bind(this),this.handleModalCloseClickBound=this.handleModalCloseClick.bind(this),1===i._count&&document.body.addEventListener("click",this.handleTriggerClick),this.$overlay[0].addEventListener("click",this.handleOverlayClickBound),this.$el[0].addEventListener("click",this.handleModalCloseClickBound)}},{key:"removeEventHandlers",value:function(){0===i._count&&document.body.removeEventListener("click",this.handleTriggerClick),this.$overlay[0].removeEventListener("click",this.handleOverlayClickBound),this.$el[0].removeEventListener("click",this.handleModalCloseClickBound)}},{key:"handleTriggerClick",value:function(e){var n=t(e.target).closest(".modal-trigger");if(e.target&&n.length){var i=n[0].getAttribute("href");i=i?i.slice(1):n[0].getAttribute("data-target");var o=document.getElementById(i).M_Modal;o&&o.open(n),e.preventDefault()}}},{key:"handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"handleModalCloseClick",value:function(e){var n=t(e.target).closest(".modal-close");e.target&&n.length&&this.close()}},{key:"handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"animateIn",value:function(){var n=this;t.extend(this.$el[0].style,{display:"block",opacity:0}),t.extend(this.$overlay[0].style,{display:"block",opacity:0}),e(this.$overlay[0],{opacity:this.options.opacity},{duration:this.options.inDuration,queue:!1,ease:"easeOutCubic"});var i={duration:this.options.inDuration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.options.ready&&n.options.ready.call(n,n.$el,n.openingTrigger)}};this.$el[0].classList.contains("bottom-sheet")?e(this.$el[0],{bottom:0,opacity:1},i):(e.hook(this.$el[0],"scaleX",.7),this.$el[0].style.top=this.options.startingTop,e(this.$el[0],{top:this.options.endingTop,opacity:1,scaleX:1},i))}},{key:"animateOut",value:function(){var t=this;e(this.$overlay[0],{opacity:0},{duration:this.options.outDuration,queue:!1,ease:"easeOutQuart"});var n={duration:this.options.outDuration,queue:!1,ease:"easeOutCubic",complete:function(){t.$el[0].style.display="none","function"==typeof t.options.complete&&t.options.complete.call(t,t.$el),t.$overlay[0].parentNode.removeChild(t.$overlay[0])}};this.$el[0].classList.contains("bottom-sheet")?e(this.$el[0],{bottom:"-100%",opacity:0},n):e(this.$el[0],{top:this.options.startingTop,opacity:0,scaleX:.7},n)}},{key:"open",value:function(t){if(!this.isOpen){this.isOpen=!0;var e=document.body;return e.style.overflow="hidden",this.$el[0].classList.add("open"),e.appendChild(this.$overlay[0]),this.openingTrigger=t||void 0,this.options.dismissible&&(this.handleKeydownBound=this.handleKeydown.bind(this),document.addEventListener("keydown",this.handleKeydownBound)),this.animateIn(),this}}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,this.$el[0].classList.remove("open"),document.body.style.overflow="",this.options.dismissible&&document.removeEventListener("keydown",this.handleKeydownBound),this.animateOut(),this}}],[{key:"init",value:function(e,n){var o=[];return e.each(function(){o.push(new i(t(this),n))}),o}},{key:"defaults",get:function(){return n}}]),i}();i._increment=0,i._count=0,Materialize.Modal=i,t.fn.modal=function(e){return i.prototype[e]?"get"===e.slice(0,3)?this.first()[0].M_Modal[e]():this.each(function(){this.M_Modal[e]()}):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.modal"):(i.init(this,arguments[0]),this)}}(jQuery,Materialize.Vel),function(t){t.fn.materialbox=function(){return this.each(function(){if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var e,n,i=!1,o=!0,r=200,a=t(this),s=t("<div></div>").addClass("material-placeholder"),l=a.attr("style");a.wrap(s),a.on("click",function(){var r=a.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,c=a.width(),d=a.height();if(!1===o)return u(),!1;if(i&&!0===o)return u(),!1;for(o=!1,a.addClass("active"),i=!0,r.css({width:r[0].getBoundingClientRect().width,height:r[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),e=void 0,n=r[0].parentNode;null!==n&&!t(n).is(document);){var h=t(n);"visible"!==h.css("overflow")&&(h.css("overflow","visible"),e=void 0===e?h:e.add(h)),n=n.parentNode}a.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}).data("width",c).data("height",d);var f=t('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){!0===o&&u()});a.before(f);var p=f[0].getBoundingClientRect();if(f.css({width:s,height:l,left:-1*p.left,top:-1*p.top}),f.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==a.data("caption")){var g=t('<div class="materialbox-caption"></div>');g.text(a.data("caption")),t("body").append(g),g.css({display:"inline"}),g.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var v=0,m=0;c/s>d/l?(v=.9*s,m=.9*s*(d/c)):(v=.9*l*(c/d),m=.9*l),a.hasClass("responsive-img")?a.velocity({"max-width":v,width:c},{duration:0,queue:!1,complete:function(){a.css({left:0,top:0}).velocity({height:m,width:v,left:t(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-m/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){o=!0}})}}):a.css("left",0).css("top",0).velocity({height:m,width:v,left:t(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-m/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){o=!0}}),t(window).on("scroll.materialbox",function(){i&&u()}),t(window).on("resize.materialbox",function(){i&&u()}),t(document).on("keyup.materialbox",function(t){27===t.keyCode&&!0===o&&i&&u()})})}function u(){o=!1;var n=a.parent(".material-placeholder"),s=(window,window,a.data("width")),u=a.data("height");a.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t(window).off("scroll.materialbox"),t(document).off("keyup.materialbox"),t(window).off("resize.materialbox"),t("#materialbox-overlay").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){i=!1,t(this).remove()}}),a.velocity({width:s,height:u,left:0,top:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){n.css({height:"",width:"",position:"",top:"",left:""}),a.removeAttr("style"),a.attr("style",l),a.removeClass("active"),o=!0,e&&e.css("overflow","")}}),t(".materialbox-caption").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}})},t(document).ready(function(){t(".materialboxed").materialbox()})}(jQuery),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(n){var i=t(this);function o(n){var o;o=e<601?i.height()>0?i.height():i.children("img").height():i.height()>0?i.height():500;var r=i.children("img").first(),a=r.height()-o,s=i.offset().top+o,l=i.offset().top,u=t(window).scrollTop(),c=window.innerHeight,d=Math.round(a*((u+c-l)/(o+c)));n&&r.css("display","block"),s>u&&l<u+c&&r.css("transform","translate3D(-50%,"+d+"px, 0)")}i.addClass("parallax"),i.children("img").one("load",function(){o(!0)}).each(function(){this.complete&&t(this).trigger("load")}),t(window).scroll(function(){e=t(window).width(),o(!1)}),t(window).resize(function(){e=t(window).width(),o(!1)})})}}(jQuery),function(t){var e={init:function(e){e=t.extend({onShow:null,swipeable:!1,responsiveThreshold:1/0},e);var n=Materialize.objectSelectorString(t(this));return this.each(function(i){var o,r,a,s,l=n+i,u=t(this),c=t(window).width(),d=u.find("li.tab a"),h=u.width(),f=t(),p=Math.max(h,u[0].scrollWidth)/d.length,g=0,v=0,m=!1,y=function(t){return Math.ceil(h-t.position().left-t[0].getBoundingClientRect().width-u.scrollLeft())},b=function(t){return Math.floor(t.position().left+u.scrollLeft())},x=function(t){g-t>=0?(s.velocity({right:y(o)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({left:b(o)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(s.velocity({left:b(o)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({right:y(o)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90}))};e.swipeable&&c>e.responsiveThreshold&&(e.swipeable=!1),0===(o=t(d.filter('[href="'+location.hash+'"]'))).length&&(o=t(this).find("li.tab a.active").first()),0===o.length&&(o=t(this).find("li.tab a").first()),o.addClass("active"),(g=d.index(o))<0&&(g=0),void 0!==o[0]&&(r=t(o[0].hash)).addClass("active"),u.find(".indicator").length||u.append('<li class="indicator"></li>'),s=u.find(".indicator"),u.append(s),u.is(":visible")&&setTimeout(function(){s.css({right:y(o)}),s.css({left:b(o)})},0),t(window).off("resize.tabs-"+l).on("resize.tabs-"+l,function(){h=u.width(),p=Math.max(h,u[0].scrollWidth)/d.length,g<0&&(g=0),0!==p&&0!==h&&(s.css({right:y(o)}),s.css({left:b(o)}))}),e.swipeable?(d.each(function(){var e=t(Materialize.escapeHash(this.hash));e.addClass("carousel-item"),f=f.add(e)}),a=f.wrapAll('<div class="tabs-content carousel"></div>'),f.css("display",""),t(".tabs-content.carousel").carousel({fullWidth:!0,noWrap:!0,onCycleTo:function(t){if(!m){var n=g;g=a.index(t),o.removeClass("active"),(o=d.eq(g)).addClass("active"),x(n),"function"==typeof e.onShow&&e.onShow.call(u[0],r)}}})):d.not(o).each(function(){t(Materialize.escapeHash(this.hash)).hide()}),u.off("click.tabs").on("click.tabs","a",function(n){if(t(this).parent().hasClass("disabled"))n.preventDefault();else if(!t(this).attr("target")){m=!0,h=u.width(),p=Math.max(h,u[0].scrollWidth)/d.length,o.removeClass("active");var i=r;o=t(this),r=t(Materialize.escapeHash(this.hash)),d=u.find("li.tab a"),o.position(),o.addClass("active"),v=g,(g=d.index(t(this)))<0&&(g=0),e.swipeable?f.length&&f.carousel("set",g,function(){"function"==typeof e.onShow&&e.onShow.call(u[0],r)}):(void 0!==r&&(r.show(),r.addClass("active"),"function"==typeof e.onShow&&e.onShow.call(this,r)),void 0===i||i.is(r)||(i.hide(),i.removeClass("active"))),setTimeout(function(){m=!1},300),x(v),n.preventDefault()}})})},select_tab:function(t){this.find('a[href="#'+t+'"]').trigger("click")}};t.fn.tabs=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.tabs"):e.init.apply(this,arguments)},t(document).ready(function(){t("ul.tabs").tabs()})}(jQuery),function(t){t.fn.tooltip=function(n){return"remove"===n?(this.each(function(){t("#"+t(this).attr("data-tooltip-id")).remove(),t(this).removeAttr("data-tooltip-id"),t(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(n=t.extend({delay:350,tooltip:"",position:"bottom",html:!1},n),this.each(function(){var i,o,r,a,s,l,u=Materialize.guid(),c=t(this);c.attr("data-tooltip-id")&&t("#"+c.attr("data-tooltip-id")).remove(),c.attr("data-tooltip-id",u);var d,h=function(){i=c.attr("data-html")?"true"===c.attr("data-html"):n.html,o=void 0===(o=c.attr("data-delay"))||""===o?n.delay:o,r=void 0===(r=c.attr("data-position"))||""===r?n.position:r,a=void 0===(a=c.attr("data-tooltip"))||""===a?n.tooltip:a};h(),d=t('<div class="material-tooltip"></div>'),a=i?t("<span></span>").html(a):t("<span></span>").text(a),d.append(a).appendTo(t("body")).attr("id",u),(l=t('<div class="backdrop"></div>')).appendTo(d),s=d,c.off("mouseenter.tooltip mouseleave.tooltip");var f,p=!1;c.on({"mouseenter.tooltip":function(t){f=setTimeout(function(){h(),p=!0,s.velocity("stop"),l.velocity("stop"),s.css({visibility:"visible",left:"0px",top:"0px"});var t,n,i,o,a,u,d=c.outerWidth(),f=c.outerHeight(),g=s.outerHeight(),v=s.outerWidth(),m="0px",y="0px",b=l[0].offsetWidth,x=l[0].offsetHeight;"top"===r?(o=c.offset().top-g-5,a=c.offset().left+d/2-v/2,u=e(a,o,v,g),m="-10px",l.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:g,marginLeft:v/2-b/2})):"left"===r?(o=c.offset().top+f/2-g/2,a=c.offset().left-v-5,u=e(a,o,v,g),y="-10px",l.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:g/2,marginLeft:v})):"right"===r?(o=c.offset().top+f/2-g/2,a=c.offset().left+d+5,u=e(a,o,v,g),y="+10px",l.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:g/2,marginLeft:"0px"})):(o=c.offset().top+c.outerHeight()+5,a=c.offset().left+d/2-v/2,u=e(a,o,v,g),m="+10px",l.css({top:0,left:0,marginLeft:v/2-b/2})),s.css({top:u.y,left:u.x}),t=Math.SQRT2*v/parseInt(b),n=Math.SQRT2*g/parseInt(x),i=Math.max(t,n),s.velocity({translateY:m,translateX:y},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),l.css({visibility:"visible"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:i,scaleY:i},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})},o)},"mouseleave.tooltip":function(){p=!1,clearTimeout(f),setTimeout(function(){!0!==p&&(s.velocity({opacity:0,translateY:0,translateX:0},{duration:225,queue:!1}),l.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){l.css({visibility:"hidden"}),s.css({visibility:"hidden"}),p=!1}}))},225)}})}))};var e=function(e,n,i,o){var r=e,a=n;return r<0?r=4:r+i>window.innerWidth&&(r-=r+i-window.innerWidth),a<0?a=4:a+o>window.innerHeight+t(window).scrollTop&&(a-=a+o-window.innerHeight),{x:r,y:a}};t(document).ready(function(){t(".tooltipped").tooltip()})}(jQuery),function(t){"use strict";var e=e||{},n=document.querySelectorAll.bind(document);function i(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}var o={duration:750,show:function(t,e){if(2===t.button)return!1;var n=e||this,r=document.createElement("div");r.className="waves-ripple",n.appendChild(r);var a,s,l,u,c,d,h=(u={top:0,left:0},s=(c=(a=n)&&a.ownerDocument).documentElement,"undefined"!=typeof a.getBoundingClientRect&&(u=a.getBoundingClientRect()),l=null!==(d=c)&&d===d.window?c:9===c.nodeType&&c.defaultView,{top:u.top+l.pageYOffset-s.clientTop,left:u.left+l.pageXOffset-s.clientLeft}),f=t.pageY-h.top,p=t.pageX-h.left,g="scale("+n.clientWidth/100*10+")";"touches"in t&&(f=t.touches[0].pageY-h.top,p=t.touches[0].pageX-h.left),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",g),r.setAttribute("data-x",p),r.setAttribute("data-y",f);var v={top:f+"px",left:p+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",i(v)),r.className=r.className.replace("waves-notransition",""),v["-webkit-transform"]=g,v["-moz-transform"]=g,v["-ms-transform"]=g,v["-o-transform"]=g,v.transform=g,v.opacity="1",v["-webkit-transition-duration"]=o.duration+"ms",v["-moz-transition-duration"]=o.duration+"ms",v["-o-transition-duration"]=o.duration+"ms",v["transition-duration"]=o.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)",r.setAttribute("style",i(v))},hide:function(t){r.touchup(t);var e=this,n=null,a=e.getElementsByClassName("waves-ripple");if(!(a.length>0))return!1;var s=(n=a[a.length-1]).getAttribute("data-x"),l=n.getAttribute("data-y"),u=n.getAttribute("data-scale"),c=350-(Date.now()-Number(n.getAttribute("data-hold")));c<0&&(c=0),setTimeout(function(){n.setAttribute("style",i({top:l+"px",left:s+"px",opacity:"0","-webkit-transition-duration":o.duration+"ms","-moz-transition-duration":o.duration+"ms","-o-transition-duration":o.duration+"ms","transition-duration":o.duration+"ms","-webkit-transform":u,"-moz-transform":u,"-ms-transform":u,"-o-transform":u,transform:u})),setTimeout(function(){try{e.removeChild(n)}catch(t){return!1}},o.duration)},c)},wrapInput:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var o=document.createElement("i");o.className=n.className+" waves-input-wrapper";var r=n.getAttribute("style");r||(r=""),o.setAttribute("style",r),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(o,n),o.appendChild(n)}}}},r={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?r.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){r.touches>0&&(r.touches-=1)},500):"mousedown"===t.type&&r.touches>0&&(e=!1),e},touchup:function(t){r.allowEvent(t)}};function a(e){var n=function(t){if(!1===r.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentNode;){if(!(n instanceof SVGElement)&&-1!==n.className.indexOf("waves-effect")){e=n;break}n=n.parentNode}return e}(e);null!==n&&(o.show(e,n),"ontouchstart"in t&&(n.addEventListener("touchend",o.hide,!1),n.addEventListener("touchcancel",o.hide,!1)),n.addEventListener("mouseup",o.hide,!1),n.addEventListener("mouseleave",o.hide,!1),n.addEventListener("dragend",o.hide,!1))}e.displayEffect=function(e){"duration"in(e=e||{})&&(o.duration=e.duration),o.wrapInput(n(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",a,!1),document.body.addEventListener("mousedown",a,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(o.wrapInput([e]),e=e.parentNode),"ontouchstart"in t&&e.addEventListener("touchstart",a,!1),e.addEventListener("mousedown",a,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",function(){e.displayEffect()},!1)}(window),function(t,e){"use strict";var n={displayLength:1/0,inDuration:300,outDuration:375,className:void 0,completeCallback:void 0,activationPercent:.8},i=function(){function i(e,n,o,r){if(_classCallCheck(this,i),e){this.options={displayLength:n,className:o,completeCallback:r},this.options=t.extend({},i.defaults,this.options),this.message=e,this.panning=!1,this.timeRemaining=this.options.displayLength,0===i._toasts.length&&i._createContainer(),i._toasts.push(this);var a=this.createToast();a.M_Toast=this,this.el=a,this._animateIn(),this.setTimer()}}return _createClass(i,[{key:"createToast",value:function(){var e=document.createElement("div");if(e.classList.add("toast"),this.options.className){var n,o=this.options.className.split(" "),r=void 0;for(r=0,n=o.length;r<n;r++)e.classList.add(o[r])}return("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message instanceof jQuery?t(e).append(this.message):e.innerHTML=this.message,i._container.appendChild(e),e}},{key:"_animateIn",value:function(){e(this.el,{top:0,opacity:1},{duration:300,easing:"easeOutCubic",queue:!1})}},{key:"setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.remove()},20))}},{key:"remove",value:function(){var t=this;window.clearInterval(this.counterInterval);var n=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+n+"px)",this.el.style.opacity=0),e(this.el,{opacity:0,marginTop:"-40px"},{duration:this.options.outDuration,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.el.parentNode.removeChild(t.el),i._toasts.splice(i._toasts.indexOf(t),1),0===i._toasts.length&&i._removeContainer()}})}}],[{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",i._onDragStart),t.addEventListener("touchmove",i._onDragMove),t.addEventListener("touchend",i._onDragEnd),t.addEventListener("mousedown",i._onDragStart),document.addEventListener("mousemove",i._onDragMove),document.addEventListener("mouseup",i._onDragEnd),document.body.appendChild(t),i._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",i._onDragMove),document.removeEventListener("mouseup",i._onDragEnd),i._container.parentNode.removeChild(i._container),i._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&t(e.target).closest(".toast").length){var n=t(e.target).closest(".toast")[0].M_Toast;n.panning=!0,i._draggedToast=n,n.el.classList.add("panning"),n.el.style.transition="",n.startingXPos=i._xPos(e),n.time=Date.now(),n.xPos=i._xPos(e)}}},{key:"_onDragMove",value:function(t){if(i._draggedToast){t.preventDefault();var e=i._draggedToast;e.deltaX=Math.abs(e.xPos-i._xPos(t)),e.xPos=i._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now();var n=e.xPos-e.startingXPos,o=e.el.offsetWidth*e.options.activationPercent;e.el.style.transform="translateX("+n+"px)",e.el.style.opacity=1-Math.abs(n/o)}}},{key:"_onDragEnd",value:function(t){if(i._draggedToast){var e=i._draggedToast;e.panning=!1,e.el.classList.remove("panning");var n=e.el.offsetWidth*e.options.activationPercent;Math.abs(e.xPos-e.startingXPos)>n||e.velocityX>1?(e.wasSwiped=!0,e.remove()):(e.el.style.transition="transform .2s, opacity .2s",e.el.style.transform="",e.el.style.opacity=""),i._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"removeAll",value:function(){for(var t in i._toasts)i._toasts[t].remove()}},{key:"defaults",get:function(){return n}}]),i}();i._toasts=[],i._container=null,i._draggedToast=null,Materialize.Toast=i,Materialize.toast=function(t,e,n,o){return new i(t,e,n,o)}}(jQuery,Materialize.Vel),function(t){var e={init:function(e){e=t.extend({menuWidth:300,edge:"left",closeOnClick:!1,draggable:!0,onOpen:null,onClose:null},e),t(this).each(function(){var n=t(this),i=n.attr("data-activates"),o=t("#"+i);300!=e.menuWidth&&o.css("width",e.menuWidth);var r=t('.drag-target[data-sidenav="'+i+'"]');e.draggable?(r.length&&r.remove(),r=t('<div class="drag-target"></div>').attr("data-sidenav",i),t("body").append(r)):r=t(),"left"==e.edge?(o.css("transform","translateX(-100%)"),r.css({left:0})):(o.addClass("right-aligned").css("transform","translateX(100%)"),r.css({right:0})),o.hasClass("fixed")&&window.innerWidth>992&&o.css("transform","translateX(0)"),o.hasClass("fixed")&&t(window).resize(function(){window.innerWidth>992?0!==t("#sidenav-overlay").length&&s?a(!0):o.css("transform","translateX(0%)"):!1===s&&o.css("transform","left"===e.edge?"translateX(-100%)":"translateX(100%)")}),!0===e.closeOnClick&&o.on("click.itemclick","a:not(.collapsible-header)",function(){window.innerWidth>992&&o.hasClass("fixed")||a()});var a=function(n){s=!1,t("body").css({overflow:"",width:""}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(r.css({width:"",right:"",left:"0"}),o.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(o.removeAttr("style"),o.css("width",e.menuWidth))}})):(r.css({width:"",right:"0",left:""}),o.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(o.removeAttr("style"),o.css("width",e.menuWidth))}})),"function"==typeof e.onClose&&e.onClose.call(this,o)},s=!1;e.draggable&&(r.on("click",function(){s&&a()}),r.hammer({prevent_default:!1}).on("pan",function(n){if("touch"==n.gesture.pointerType){var i=n.gesture.center.x;if(0===i&&0===n.gesture.center.y)return;var r,l=t("body"),u=t("#sidenav-overlay"),c=l.innerWidth();if(l.css("overflow","hidden"),l.width(c),0===u.length&&((u=t('<div id="sidenav-overlay"></div>')).css("opacity",0).click(function(){a()}),"function"==typeof e.onOpen&&e.onOpen.call(this,o),t("body").append(u)),"left"===e.edge&&(i>e.menuWidth?i=e.menuWidth:i<0&&(i=0)),"left"===e.edge)i<e.menuWidth/2?s=!1:i>=e.menuWidth/2&&(s=!0),o.css("transform","translateX("+(i-e.menuWidth)+"px)");else{i<window.innerWidth-e.menuWidth/2?s=!0:i>=window.innerWidth-e.menuWidth/2&&(s=!1);var d=i-e.menuWidth/2;d<0&&(d=0),o.css("transform","translateX("+d+"px)")}"left"===e.edge?u.velocity({opacity:r=i/e.menuWidth},{duration:10,queue:!1,easing:"easeOutQuad"}):(r=Math.abs((i-window.innerWidth)/e.menuWidth),u.velocity({opacity:r},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(n){if("touch"==n.gesture.pointerType){var i=t("#sidenav-overlay"),a=n.gesture.velocityX,l=n.gesture.center.x,u=l-e.menuWidth,c=l-e.menuWidth/2;u>0&&(u=0),c<0&&(c=0),"left"===e.edge?s&&a<=.3||a<-.5?(0!==u&&o.velocity({translateX:[0,u]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),r.css({width:"50%",right:0,left:""}),s=!0):(!s||a>.3)&&(t("body").css({overflow:"",width:""}),o.velocity({translateX:[-1*e.menuWidth-10,u]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){"function"==typeof e.onClose&&e.onClose.call(this,o),t(this).remove()}}),r.css({width:"10px",right:"",left:0})):s&&a>=-.3||a>.5?(0!==c&&o.velocity({translateX:[0,c]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),r.css({width:"50%",right:"",left:0}),s=!0):(!s||a<-.3)&&(t("body").css({overflow:"",width:""}),o.velocity({translateX:[e.menuWidth+10,c]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){"function"==typeof e.onClose&&e.onClose.call(this,o),t(this).remove()}}),r.css({width:"10px",right:0,left:""}))}})),n.off("click.sidenav").on("click.sidenav",function(){if(!0===s)s=!1,a();else{var n=t("body"),i=t('<div id="sidenav-overlay"></div>'),l=n.innerWidth();n.css("overflow","hidden"),n.width(l),t("body").append(r),"left"===e.edge?(r.css({width:"50%",right:0,left:""}),o.velocity({translateX:[0,-1*e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(r.css({width:"50%",right:"",left:0}),o.velocity({translateX:[0,e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})),i.css("opacity",0).click(function(){s=!1,a(),i.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}),t("body").append(i),i.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){s=!0}}),"function"==typeof e.onOpen&&e.onOpen.call(this,o)}return!1})})},destroy:function(){var e=t("#sidenav-overlay"),n=t('.drag-target[data-sidenav="'+t(this).attr("data-activates")+'"]');e.trigger("click"),n.remove(),t(this).off("click"),e.remove()},show:function(){this.trigger("click")},hide:function(){t("#sidenav-overlay").trigger("click")}};t.fn.sideNav=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sideNav"):e.init.apply(this,arguments)}}(jQuery),function(t){var e=t(window),n=[],i=[],o=!1,r=0,a={top:0,right:0,bottom:0,left:0};function s(){e.trigger("scrollSpy:winSize")}t.scrollSpy=function(s,l){l=t.extend({throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},l);var u=[];(s=t(s)).each(function(e,i){n.push(t(i)),t(i).data("scrollSpy:id",e),t('a[href="#'+t(i).attr("id")+'"]').click(function(e){e.preventDefault();var n=t(Materialize.escapeHash(this.hash)).offset().top+1;t("html, body").animate({scrollTop:n-l.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),a.top=l.offsetTop||0,a.right=l.offsetRight||0,a.bottom=l.offsetBottom||0,a.left=l.offsetLeft||0;var c=Materialize.throttle(function(){!function(o){++r;var s=e.scrollTop(),l=e.scrollLeft(),u=l+e.width(),c=s+e.height(),d=function(e,i,o,r){var a=t();return t.each(n,function(t,n){if(n.height()>0){var s=n.offset().top,l=n.offset().left,u=l+n.width(),c=s+n.height();!(l>i||u<r||s>o||c<e)&&a.push(n)}}),a}(s+a.top+o||200,u+a.right,c+a.bottom,l+a.left);t.each(d,function(t,e){"number"!=typeof e.data("scrollSpy:ticks")&&e.triggerHandler("scrollSpy:enter"),e.data("scrollSpy:ticks",r)}),t.each(i,function(t,e){var n=e.data("scrollSpy:ticks");"number"==typeof n&&n!==r&&(e.triggerHandler("scrollSpy:exit"),e.data("scrollSpy:ticks",null))}),i=d}(l.scrollOffset)},l.throttle||100),d=function(){t(document).ready(c)};return o||(e.on("scroll",d),e.on("resize",d),o=!0),setTimeout(d,0),s.on("scrollSpy:enter",function(){u=t.grep(u,function(t){return 0!=t.height()});var e=t(this);u[0]?(t(l.getActiveElement(u[0].attr("id"))).removeClass(l.activeClass),e.data("scrollSpy:id")<u[0].data("scrollSpy:id")?u.unshift(t(this)):u.push(t(this))):u.push(t(this)),t(l.getActiveElement(u[0].attr("id"))).addClass(l.activeClass)}),s.on("scrollSpy:exit",function(){if((u=t.grep(u,function(t){return 0!=t.height()}))[0]){t(l.getActiveElement(u[0].attr("id"))).removeClass(l.activeClass);var e=t(this);(u=t.grep(u,function(t){return t.attr("id")!=e.attr("id")}))[0]&&t(l.getActiveElement(u[0].attr("id"))).addClass(l.activeClass)}}),s},t.winSizeSpy=function(n){return t.winSizeSpy=function(){return e},n=n||{throttle:100},e.on("resize",Materialize.throttle(s,n.throttle||100))},t.fn.scrollSpy=function(e){return t.scrollSpy(t(this),e)}}(jQuery),function(t){t(document).ready(function(){Materialize.updateTextFields=function(){t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(e,n){var i=t(this);t(n).val().length>0||t(n).is(":focus")||n.autofocus||void 0!==i.attr("placeholder")?i.siblings("label").addClass("active"):t(n)[0].validity?i.siblings("label").toggleClass("active",!0===t(n)[0].validity.badInput):i.siblings("label").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(n){var i=t(n.target);i.is("form")&&(i.find(e).removeClass("valid").removeClass("invalid"),i.find(e).each(function(){""===t(this).attr("value")&&t(this).siblings("label").removeClass("active")}),i.find("select.initialized").each(function(){var t=i.find("option[selected]").text();i.siblings("input.select-dropdown").val(t)}))}),t(document).on("focus",e,function(){t(this).siblings("label, .prefix").addClass("active")}),t(document).on("blur",e,function(){var e=t(this),n=".prefix";0===e.val().length&&!0!==e[0].validity.badInput&&void 0===e.attr("placeholder")&&(n+=", label"),e.siblings(n).removeClass("active"),validate_field(e)}),window.validate_field=function(t){var e=void 0!==t.attr("data-length"),n=parseInt(t.attr("data-length")),i=t.val().length;0!==t.val().length||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&i<=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},t(document).on("keyup.radio","input[type=radio], input[type=checkbox]",function(e){if(9===e.which)return t(this).addClass("tabbed"),void t(this).one("blur",function(e){t(this).removeClass("tabbed")})});var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n)),t(".materialize-textarea").each(function(){var e=t(this);e.data("original-height",e.height()),e.data("previous-length",e.val().length)}),t("body").on("keyup keydown autoresize",".materialize-textarea",function(){!function(e){var i=e.css("font-family"),o=e.css("font-size"),r=e.css("line-height"),a=e.css("padding");o&&n.css("font-size",o),i&&n.css("font-family",i),r&&n.css("line-height",r),a&&n.css("padding",a),e.data("original-height")||e.data("original-height",e.height()),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e.val()+"\n");var s=n.html().replace(/\n/g,"<br>");n.html(s),e.is(":visible")?n.css("width",e.width()):n.css("width",t(window).width()/2),e.data("original-height")<=n.height()?e.css("height",n.height()):e.val().length<e.data("previous-length")&&e.css("height",e.data("original-height")),e.data("previous-length",e.val().length)}(t(this))}),t(document).on("change",'.file-field input[type="file"]',function(){for(var e=t(this).closest(".file-field").find("input.file-path"),n=t(this)[0].files,i=[],o=0;o<n.length;o++)i.push(n[o].name);e.val(i.join(", ")),e.trigger("change")});var i="input[type=range]",o=!1;t(i).each(function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)});var r=function(t){var e=parseInt(t.parent().css("padding-left"));t.velocity({height:"30px",width:"30px",top:"-30px",marginLeft:-7+e+"px"},{duration:300,easing:"easeOutExpo"})},a=function(t){var e=t.width()-15,n=parseFloat(t.attr("max")),i=parseFloat(t.attr("min"));return(parseFloat(t.val())-i)/(n-i)*e};t(document).on("change",i,function(e){var n=t(this).siblings(".thumb");n.find(".value").html(t(this).val()),n.hasClass("active")||r(n);var i=a(t(this));n.addClass("active").css("left",i)}),t(document).on("mousedown touchstart",i,function(e){var n=t(this).siblings(".thumb");if(n.length<=0&&(n=t('<span class="thumb"><span class="value"></span></span>'),t(this).after(n)),n.find(".value").html(t(this).val()),o=!0,t(this).addClass("active"),n.hasClass("active")||r(n),"input"!==e.type){var i=a(t(this));n.addClass("active").css("left",i)}}),t(document).on("mouseup touchend",".range-field",function(){o=!1,t(this).removeClass("active")}),t(document).on("input mousemove touchmove",".range-field",function(e){var n=t(this).children(".thumb"),s=t(this).find(i);if(o){n.hasClass("active")||r(n);var l=a(s);n.addClass("active").css("left",l),n.find(".value").html(n.siblings(i).val())}}),t(document).on("mouseout touchleave",".range-field",function(){if(!o){var e=t(this).children(".thumb"),n=7+parseInt(t(this).css("padding-left"))+"px";e.hasClass("active")&&e.velocity({height:"0",width:"0",top:"10px",marginLeft:n},{duration:100}),e.removeClass("active")}}),t.fn.autocomplete=function(e){return e=t.extend({data:{},limit:1/0,onAutocomplete:null,minLength:1},e),this.each(function(){var n,i=t(this),o=e.data,r=0,a=-1,s=i.closest(".input-field");if(t.isEmptyObject(o))i.off("keyup.autocomplete focus.autocomplete");else{var l,u=t('<ul class="autocomplete-content dropdown-content"></ul>');s.length?(l=s.children(".autocomplete-content.dropdown-content").first()).length||s.append(u):(l=i.next(".autocomplete-content.dropdown-content")).length||i.after(u),l.length&&(u=l);var c=function(){u.empty(),a=-1,u.find(".active").removeClass("active"),n=void 0};i.off("blur.autocomplete").on("blur.autocomplete",function(){c()}),i.off("keyup.autocomplete focus.autocomplete").on("keyup.autocomplete focus.autocomplete",function(a){r=0;var s=i.val().toLowerCase();if(13!==a.which&&38!==a.which&&40!==a.which){if(n!==s&&(c(),s.length>=e.minLength))for(var l in o)if(o.hasOwnProperty(l)&&-1!==l.toLowerCase().indexOf(s)){if(r>=e.limit)break;var d=t("<li></li>");d.append(o[l]?'<img src="'+o[l]+'" class="right circle"><span>'+l+"</span>":"<span>"+l+"</span>"),u.append(d),h=s,p=(f=d).find("img"),v=(g=f.text().toLowerCase().indexOf(""+h.toLowerCase()))+h.length-1,m=f.text().slice(0,g),y=f.text().slice(g,v+1),b=f.text().slice(v+1),f.html("<span>"+m+"<span class='highlight'>"+y+"</span>"+b+"</span>"),p.length&&f.prepend(p),r++}var h,f,p,g,v,m,y,b;n=s}}),i.off("keydown.autocomplete").on("keydown.autocomplete",function(t){var e,n=t.which,i=u.children("li").length,o=u.children(".active").first();13===n&&a>=0?(e=u.children("li").eq(a)).length&&(e.trigger("mousedown.autocomplete"),t.preventDefault()):38!==n&&40!==n||(t.preventDefault(),38===n&&a>0&&a--,40===n&&a<i-1&&a++,o.removeClass("active"),a>=0&&u.children("li").eq(a).addClass("active"))}),u.off("mousedown.autocomplete touchstart.autocomplete").on("mousedown.autocomplete touchstart.autocomplete","li",function(){var n=t(this).text().trim();i.val(n),i.trigger("change"),c(),"function"==typeof e.onAutocomplete&&e.onAutocomplete.call(this,n)})}})}}),t.fn.material_select=function(e){function n(t,e,n){var i=t.indexOf(e),o=-1===i;return o?t.push(e):t.splice(i,1),n.siblings("ul.dropdown-content").find("li:not(.optgroup)").eq(e).toggleClass("active"),n.find("option").eq(e).prop("selected",o),function(t,e){for(var n="",i=0,o=t.length;i<o;i++){var r=e.find("option").eq(t[i]).text();n+=0===i?r:", "+r}""===n&&(n=e.find("option:disabled").eq(0).text()),e.siblings("input.select-dropdown").val(n)}(t,n),o}t(this).each(function(){var i=t(this);if(!i.hasClass("browser-default")){var o=!!i.attr("multiple"),r=i.attr("data-select-id");if(r&&(i.parent().find("span.caret").remove(),i.parent().find("input").remove(),i.unwrap(),t("ul#select-options-"+r).remove()),"destroy"===e)return i.removeAttr("data-select-id").removeClass("initialized"),void t(window).off("click.select");var a=Materialize.guid();i.attr("data-select-id",a);var s=t('<div class="select-wrapper"></div>');s.addClass(i.attr("class")),i.is(":disabled")&&s.addClass("disabled");var l=t('<ul id="select-options-'+a+'" class="dropdown-content select-dropdown '+(o?"multiple-select-dropdown":"")+'"></ul>'),u=i.children("option, optgroup"),c=[],d=!1,h=i.find("option:selected").html()||i.find("option:first").html()||"",f=function(e,n,i){var r=n.is(":disabled")?"disabled ":"",a="optgroup-option"===i?"optgroup-option ":"",s=o?'<input type="checkbox"'+r+"/><label></label>":"",u=n.data("icon"),c=n.attr("class");if(u){var d="";return c&&(d=' class="'+c+'"'),l.append(t('<li class="'+r+a+'"><img alt="" src="'+u+'"'+d+"><span>"+s+n.html()+"</span></li>")),!0}l.append(t('<li class="'+r+a+'"><span>'+s+n.html()+"</span></li>"))};u.length&&u.each(function(){if(t(this).is("option"))o?f(0,t(this),"multiple"):f(0,t(this));else if(t(this).is("optgroup")){var e=t(this).children("option");l.append(t('<li class="optgroup"><span>'+t(this).attr("label")+"</span></li>")),e.each(function(){f(0,t(this),"optgroup-option")})}}),l.find("li:not(.optgroup)").each(function(r){t(this).click(function(a){if(!t(this).hasClass("disabled")&&!t(this).hasClass("optgroup")){var s=!0;o?(t('input[type="checkbox"]',this).prop("checked",function(t,e){return!e}),s=n(c,r,i),v.trigger("focus")):(l.find("li").removeClass("active"),t(this).toggleClass("active"),v.val(t(this).text())),m(l,t(this)),i.find("option").eq(r).prop("selected",s),i.trigger("change"),"undefined"!=typeof e&&e()}a.stopPropagation()})}),i.wrap(s);var p=t('<span class="caret">&#9660;</span>'),g=h.replace(/"/g,"&quot;"),v=t('<input type="text" class="select-dropdown" readonly="true" '+(i.is(":disabled")?"disabled":"")+' data-activates="select-options-'+a+'" value="'+g+'"/>');i.before(v),v.before(p),v.after(l),i.is(":disabled")||v.dropdown({hover:!1}),i.attr("tabindex")&&t(v[0]).attr("tabindex",i.attr("tabindex")),i.addClass("initialized"),v.on({focus:function(){if(t("ul.select-dropdown").not(l[0]).is(":visible")&&(t("input.select-dropdown").trigger("close"),t(window).off("click.select")),!l.is(":visible")){t(this).trigger("open",["focus"]);var e=t(this).val();o&&e.indexOf(",")>=0&&(e=e.split(",")[0]);var n=l.find("li").filter(function(){return t(this).text().toLowerCase()===e.toLowerCase()})[0];m(l,n,!0),t(window).off("click.select").on("click.select",function(){o&&(d||v.trigger("close")),t(window).off("click.select")})}},click:function(t){t.stopPropagation()}}),v.on("blur",function(){o||(t(this).trigger("close"),t(window).off("click.select")),l.find("li.selected").removeClass("selected")}),l.hover(function(){d=!0},function(){d=!1}),o&&i.find("option:selected:not(:disabled)").each(function(){var t=this.index;n(c,t,i),l.find("li:not(.optgroup)").eq(t).find(":checkbox").prop("checked",!0)});var m=function(e,n,i){if(n){e.find("li.selected").removeClass("selected");var r=t(n);r.addClass("selected"),o&&!i||l.scrollTo(r)}},y=[];v.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 n=String.fromCharCode(e.which).toLowerCase();if(n&&-1===[9,13,27,38,40].indexOf(e.which)){y.push(n);var i=y.join(""),r=l.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(i)})[0];r&&m(l,r)}if(13==e.which){var a=l.find("li.selected:not(.disabled)")[0];a&&(t(a).trigger("click"),o||v.trigger("close"))}40==e.which&&(r=l.find("li.selected").length?l.find("li.selected").next("li:not(.disabled)")[0]:l.find("li:not(.disabled)")[0],m(l,r)),27==e.which&&v.trigger("close"),38==e.which&&(r=l.find("li.selected").prev("li:not(.disabled)")[0])&&m(l,r),setTimeout(function(){y=[]},1e3)}}else v.trigger("open");else v.trigger("close")})}})}}(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 n,i,o,r=t(this),a=r.find("ul.slides").first(),s=a.find("> li"),l=a.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=a.find(".active").index())!=t&&(n=s.eq(l),$caption=n.find(".caption"),n.removeClass("active"),n.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&&i.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&&i.eq(t).addClass("active"))}-1!=l&&(n=s.eq(l)),r.hasClass("fullscreen")||(r.height(e.indicators?e.height+40:e.height),a.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&&(i=t('<ul class="indicators"></ul>'),s.each(function(n){var r=t('<li class="indicator-item"></li>');r.click(function(){c(a.parent().find(t(this)).index()),clearInterval(o),o=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,c(l)},e.transition+e.interval)}),i.append(r)}),r.append(i),i=r.find("ul.indicators").find("li.indicator-item")),n?n.show():(s.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),n=s.eq(l=0),e.indicators&&i.eq(l).addClass("active")),n.find("img").each(function(){n.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})}),o=setInterval(function(){c((l=a.find(".active").index())+1)},e.transition+e.interval);var d=!1,h=!1;r.hammer({prevent_default:!1}).on("pan",function(t){if("touch"===t.gesture.pointerType){clearInterval(o);var e,n=t.gesture.direction,i=t.gesture.deltaX,l=t.gesture.velocityX,u=t.gesture.velocityY;$curr_slide=a.find(".active"),Math.abs(l)>Math.abs(u)&&$curr_slide.velocity({translateX:i},{duration:50,queue:!1,easing:"easeOutQuad"}),4===n&&(i>r.innerWidth()/2||l<-.65)?h=!0:2===n&&(i<-1*r.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"})),h&&(0===(e=$curr_slide.prev()).length&&(e=s.last()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(t){"touch"===t.gesture.pointerType&&($curr_slide=a.find(".active"),curr_index=a.find(".active").index(),!h&&!d||s.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):d?(c(curr_index+1),$curr_slide.velocity({translateX:-1*r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):h&&(c(curr_index-1),$curr_slide.velocity({translateX:r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),d=!1,h=!1,clearInterval(o),o=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,c(l)},e.transition+e.interval))}),r.on("sliderPause",function(){clearInterval(o)}),r.on("sliderStart",function(){clearInterval(o),o=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,c(l)},e.transition+e.interval)}),r.on("sliderNext",function(){c((l=a.find(".active").index())+1)}),r.on("sliderPrev",function(){c((l=a.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(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" 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){if(t(this).find("> .card-reveal").length){var n=t(e.target).closest(".card");void 0===n.data("initialOverflow")&&n.data("initialOverflow",void 0===n.css("overflow")?"":n.css("overflow")),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"}),n.css("overflow",n.data("initialOverflow"))}}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&(n.css("overflow","hidden"),t(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))}})})}(jQuery),function(t){var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{}};t(document).ready(function(){t(document).on("click",".chip .close",function(e){t(this).closest(".chips").attr("data-initialized")||t(this).closest(".chip").remove()})}),t.fn.material_chip=function(n){var i=this;if(this.$el=t(this),this.$document=t(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===n)return this.$el.data("chips");var o=t.extend({},e,n);i.hasAutocomplete=!t.isEmptyObject(o.autocompleteOptions.data),this.init=function(){var e=0;i.$el.each(function(){var n=t(this),r=Materialize.guid();i.chipId=r,o.data&&o.data instanceof Array||(o.data=[]),n.data("chips",o.data),n.attr("data-index",e),n.attr("data-initialized",!0),n.hasClass(i.SELS.CHIPS)||n.addClass("chips"),i.chips(n,r),e++})},this.handleEvents=function(){var e=i.SELS;i.$document.off("click.chips-focus",e.CHIPS).on("click.chips-focus",e.CHIPS,function(n){t(n.target).find(e.INPUT).focus()}),i.$document.off("click.chips-select",e.CHIP).on("click.chips-select",e.CHIP,function(n){var o=t(n.target);if(o.length){var r=o.hasClass("selected"),a=o.closest(e.CHIPS);t(e.CHIP).removeClass("selected"),r||i.selectChip(o.index(),a)}}),i.$document.off("keydown.chips").on("keydown.chips",function(n){if(!t(n.target).is("input, textarea")){var o,r=i.$document.find(e.CHIP+e.SELECTED_CHIP),a=r.closest(e.CHIPS),s=r.siblings(e.CHIP).length;if(r.length)if(8===n.which||46===n.which){n.preventDefault(),o=r.index(),i.deleteChip(o,a);var l=null;o+1<s?l=o:o!==s&&o+1!==s||(l=s-1),l<0&&(l=null),null!==l&&i.selectChip(l,a),s||a.find("input").focus()}else if(37===n.which){if((o=r.index()-1)<0)return;t(e.CHIP).removeClass("selected"),i.selectChip(o,a)}else if(39===n.which){if(o=r.index()+1,t(e.CHIP).removeClass("selected"),o>s)return void a.find("input").focus();i.selectChip(o,a)}}}),i.$document.off("focusin.chips",e.CHIPS+" "+e.INPUT).on("focusin.chips",e.CHIPS+" "+e.INPUT,function(n){var i=t(n.target).closest(e.CHIPS);i.addClass("focus"),i.siblings("label, .prefix").addClass("active"),t(e.CHIP).removeClass("selected")}),i.$document.off("focusout.chips",e.CHIPS+" "+e.INPUT).on("focusout.chips",e.CHIPS+" "+e.INPUT,function(n){var i=t(n.target).closest(e.CHIPS);i.removeClass("focus"),void 0!==i.data("chips")&&i.data("chips").length||i.siblings("label").removeClass("active"),i.siblings(".prefix").removeClass("active")}),i.$document.off("keydown.chips-add",e.CHIPS+" "+e.INPUT).on("keydown.chips-add",e.CHIPS+" "+e.INPUT,function(n){var o=t(n.target),r=o.closest(e.CHIPS),a=r.children(e.CHIP).length;if(13===n.which){if(i.hasAutocomplete&&r.find(".autocomplete-content.dropdown-content").length&&r.find(".autocomplete-content.dropdown-content").children().length)return;return n.preventDefault(),i.addChip({tag:o.val()},r),void o.val("")}if((8===n.keyCode||37===n.keyCode)&&""===o.val()&&a)return n.preventDefault(),i.selectChip(a-1,r),void o.blur()}),i.$document.off("click.chips-delete",e.CHIPS+" "+e.DELETE).on("click.chips-delete",e.CHIPS+" "+e.DELETE,function(n){var o=t(n.target),r=o.closest(e.CHIPS),a=o.closest(e.CHIP);n.stopPropagation(),i.deleteChip(a.index(),r),r.find("input").focus()})},this.chips=function(e,n){e.empty(),e.data("chips").forEach(function(t){e.append(i.renderChip(t))}),e.append(t('<input id="'+n+'" class="input" placeholder="">')),i.setPlaceholder(e);var r=e.next("label");r.length&&(r.attr("for",n),void 0!==e.data("chips")&&e.data("chips").length&&r.addClass("active"));var a=t("#"+n);i.hasAutocomplete&&(o.autocompleteOptions.onAutocomplete=function(t){i.addChip({tag:t},e),a.val(""),a.focus()},a.autocomplete(o.autocompleteOptions))},this.renderChip=function(e){if(e.tag){var n=t('<div class="chip"></div>');return n.text(e.tag),e.image&&n.prepend(t("<img />").attr("src",e.image)),n.append(t('<i class="material-icons close">close</i>')),n}},this.setPlaceholder=function(t){void 0!==t.data("chips")&&!t.data("chips").length&&o.placeholder?t.find("input").prop("placeholder",o.placeholder):(void 0===t.data("chips")||t.data("chips").length)&&o.secondaryPlaceholder&&t.find("input").prop("placeholder",o.secondaryPlaceholder)},this.isValid=function(t,e){for(var n=t.data("chips"),i=!1,o=0;o<n.length;o++)if(n[o].tag===e.tag)return void(i=!0);return""!==e.tag&&!i},this.addChip=function(t,e){if(i.isValid(e,t)){for(var n=i.renderChip(t),o=[],r=e.data("chips"),a=0;a<r.length;a++)o.push(r[a]);o.push(t),e.data("chips",o),n.insertBefore(e.find("input")),e.trigger("chip.add",t),i.setPlaceholder(e)}},this.deleteChip=function(t,e){var n=e.data("chips")[t];e.find(".chip").eq(t).remove();for(var o=[],r=e.data("chips"),a=0;a<r.length;a++)a!==t&&o.push(r[a]);e.data("chips",o),e.trigger("chip.delete",n),i.setPlaceholder(e)},this.selectChip=function(t,e){var n=e.find(".chip").eq(t);n&&!1===n.hasClass("selected")&&(n.addClass("selected"),e.trigger("chip.select",e.data("chips")[t]))},this.getChipsElement=function(t,e){return e.eq(t)},this.init(),this.handleEvents()}}(jQuery),function(t){t.fn.pushpin=function(e){return"remove"===e?(this.each(function(){(id=t(this).data("pushpin-id"))&&(t(window).off("scroll."+id),t(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(e=t.extend({top:0,bottom:1/0,offset:0},e),$index=0,this.each(function(){var n=Materialize.guid(),i=t(this),o=t(this).offset().top;function r(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function a(n,i){n.each(function(){e.top<=i&&e.bottom>=i&&!t(this).hasClass("pinned")&&(r(t(this)),t(this).css("top",e.offset),t(this).addClass("pinned")),i<e.top&&!t(this).hasClass("pin-top")&&(r(t(this)),t(this).css("top",0),t(this).addClass("pin-top")),i>e.bottom&&!t(this).hasClass("pin-bottom")&&(r(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",e.bottom-o))})}t(this).data("pushpin-id",n),a(i,t(window).scrollTop()),t(window).on("scroll."+n,function(){var n=t(window).scrollTop()+e.offset;a(i,n)})}))}}(jQuery),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(n){var i=t(this);e(i)}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(e){var i=t(this);n(i)}),t(document).on("click.fabClickToggle",".fixed-action-btn.click-to-toggle > a",function(i){var o=t(this).parent();o.hasClass("active")?n(o):e(o)}),t(document).on("click.fabToolbar",".fixed-action-btn.toolbar > a",function(e){var n=t(this).parent();i(n)})}),t.fn.extend({openFAB:function(){e(t(this))},closeFAB:function(){n(t(this))},openToolbar:function(){i(t(this))},closeToolbar:function(){o(t(this))}});var e=function(e){var n=e;if(!1===n.hasClass("active")){var i,o;!0===n.hasClass("horizontal")?o=40:i=40,n.addClass("active"),n.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:i+"px",translateX:o+"px"},{duration:0});var r=0;n.find("ul .btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:r}),r+=40})}},n=function(t){var e,n,i=t;!0===i.hasClass("horizontal")?n=40:e=40,i.removeClass("active"),i.find("ul .btn-floating").velocity("stop",!0),i.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:e+"px",translateX:n+"px"},{duration:80})},i=function(e){if("true"!==e.attr("data-open")){var n,i,r,a=window.innerWidth,s=window.innerHeight,l=e[0].getBoundingClientRect(),u=e.find("> a").first(),c=e.find("> ul").first(),d=t('<div class="fab-backdrop"></div>'),h=u.css("background-color");u.append(d),n=l.left-a/2+l.width/2,i=s-l.bottom,r=a/d.width(),e.attr("data-origin-bottom",l.bottom),e.attr("data-origin-left",l.left),e.attr("data-origin-width",l.width),e.addClass("active"),e.attr("data-open",!0),e.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+n+"px)",transition:"none"}),u.css({transform:"translateY("+-i+"px)",transition:"none"}),d.css({"background-color":h}),setTimeout(function(){e.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),u.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){e.css({overflow:"hidden","background-color":h}),d.css({transform:"scale("+r+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),c.find("> li > a").css({opacity:1}),t(window).on("scroll.fabToolbarClose",function(){o(e),t(window).off("scroll.fabToolbarClose"),t(document).off("click.fabToolbarClose")}),t(document).on("click.fabToolbarClose",function(n){t(n.target).closest(c).length||(o(e),t(window).off("scroll.fabToolbarClose"),t(document).off("click.fabToolbarClose"))})},100)},0)}},o=function(t){if("true"===t.attr("data-open")){var e,n,i=window.innerWidth,o=window.innerHeight,r=t.attr("data-origin-width"),a=t.attr("data-origin-bottom"),s=t.attr("data-origin-left"),l=t.find("> .btn-floating").first(),u=t.find("> ul").first(),c=t.find(".fab-backdrop"),d=l.css("background-color");e=s-i/2+r/2,n=o-a,c.width(),t.removeClass("active"),t.attr("data-open",!1),t.css({"background-color":"transparent",transition:"none"}),l.css({transition:"none"}),c.css({transform:"scale(0)","background-color":d}),u.find("> li > a").css({opacity:""}),setTimeout(function(){c.remove(),t.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-e+"px,0,0)"}),l.css({overflow:"",transform:"translate3d(0,"+n+"px,0)"}),setTimeout(function(){t.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),l.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}}(jQuery),function(t){Materialize.fadeInImage=function(e){var n;if("string"==typeof e)n=t(e);else{if("object"!=typeof e)return;n=e}n.css({opacity:0}),t(n).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(n).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,n){n.start=100;var i=e/100,o=150-(100-e)/1.75;o<100&&(o=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+i+")brightness("+o+"%)",filter:"grayscale("+i+")brightness("+o+"%)"})}})},Materialize.showStaggeredList=function(e){var n;if("string"==typeof e)n=t(e);else{if("object"!=typeof e)return;n=e}var i=0;n.find("li").velocity({translateX:"-100px"},{duration:0}),n.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,n=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).on("pan",function(i){if("touch"===i.gesture.pointerType){var o=t(this),r=i.gesture.direction,a=i.gesture.deltaX,s=i.gesture.velocityX;o.velocity({translateX:a},{duration:50,queue:!1,easing:"easeOutQuad"}),4===r&&(a>o.innerWidth()/2||s<-.75)&&(e=!0),2===r&&(a<-1*o.innerWidth()/2||s>.75)&&(n=!0)}}).on("panend",function(i){if(Math.abs(i.gesture.deltaX)<t(this).innerWidth()/2&&(n=!1,e=!1),"touch"===i.gesture.pointerType){var o,r=t(this);e||n?(o=e?r.innerWidth():-1*r.innerWidth(),r.velocity({translateX:o},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){r.css("border","none"),r.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){r.remove()}})}})):r.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"}),e=!1,n=!1}})})})}(jQuery),function(t){var e=!1;Materialize.scrollFire=function(t){var n=Materialize.throttle(function(){!function(){for(var e=window.pageYOffset+window.innerHeight,n=0;n<t.length;n++){var i=t[n],o=i.offset,r=i.callback,a=document.querySelector(i.selector);null!==a&&e>a.getBoundingClientRect().top+window.pageYOffset+o&&!0!==i.done&&("function"==typeof r?r.call(this,a):"string"==typeof r&&new Function(r)(a),i.done=!0)}}()},t.throttle||100);e||(window.addEventListener("scroll",n),window.addEventListener("resize",n),e=!0),setTimeout(n,0)}}(jQuery),Materialize.Picker=function(t){var e=t(window),n=t(document),i=t(document.documentElement);function o(e,s,u,c){if(!e)return o;var d=!1,h={id:e.id||"P"+Math.abs(~~(Math.random()*new Date))},f=u?t.extend(!0,{},u.defaults,c):c||{},p=t.extend({},o.klasses(),f.klass),g=t(e),v=function(){return this.start()},m=v.prototype={constructor:v,$node:g,start:function(){return h&&h.start?m:(h.methods={},h.start=!0,h.open=!1,h.type=e.type,e.autofocus=e==l(),e.readOnly=!f.editable,e.id=e.id||h.id,"text"!=e.type&&(e.type="text"),m.component=new u(m,f),m.$root=t(o._.node("div",y(),p.picker,'id="'+e.id+'_root" tabindex="0"')),m.$root.on({keydown:b,focusin:function(t){m.$root.removeClass(p.focused),t.stopPropagation()},"mousedown click":function(e){var n=e.target;n!=m.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(n).is("input, select, textarea, button, option")||(e.preventDefault(),m.$root.eq(0).focus()))}}).on({focus:function(){g.addClass(p.target)},blur:function(){g.removeClass(p.target)}}).on("focus.toOpen",x).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),n=e.data(),i=e.hasClass(p.navDisabled)||e.hasClass(p.disabled),o=l();o=o&&(o.type||o.href)&&o,(i||o&&!t.contains(m.$root[0],o))&&m.$root.eq(0).focus(),!i&&n.nav?m.set("highlight",m.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(m.set("select",n.pick),f.closeOnSelect&&m.close(!0)):n.clear?(m.clear(),f.closeOnSelect&&m.close(!0)):n.close&&m.close(!0)}),a(m.$root[0],"hidden",!0),f.formatSubmit&&(!0===f.hiddenName?(r=e.name,e.name=""):r=(r=["string"==typeof f.hiddenPrefix?f.hiddenPrefix:"","string"==typeof f.hiddenSuffix?f.hiddenSuffix:"_submit"])[0]+e.name+r[1],m._hidden=t('<input type=hidden name="'+r+'"'+(g.data("value")||e.value?' value="'+m.get("select",f.formatSubmit)+'"':"")+">")[0],g.on("change."+h.id,function(){m._hidden.value=e.value?m.get("select",f.formatSubmit):""}),f.container?t(f.container).append(m._hidden):g.before(m._hidden)),g.data(s,m).addClass(p.input).attr("tabindex",-1).val(g.data("value")?m.get("select",f.format):e.value),f.editable||g.on("focus."+h.id+" click."+h.id,function(t){t.preventDefault(),m.$root.eq(0).focus()}).on("keydown."+h.id,b),a(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"}),f.container?t(f.container).append(m.$root):g.before(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}),(n=m.$root.children()[0]).currentStyle?i=n.currentStyle.position:window.getComputedStyle&&(i=getComputedStyle(n).position),d="fixed"==i,e.autofocus&&m.open(),m.trigger("start").trigger("render"));var n,i,r},render:function(t){return t?m.$root.html(y()):m.$root.find("."+p.box).html(m.component.nodes(h.open)),m.trigger("render")},stop:function(){return h.start?(m.close(),m._hidden&&m._hidden.parentNode.removeChild(m._hidden),m.$root.remove(),g.removeClass(p.input).removeData(s),setTimeout(function(){g.off("."+h.id)},0),e.type=h.type,e.readOnly=!1,m.trigger("stop"),h.methods={},h.start=!1,m):m},open:function(s){return h.open?m:(g.addClass(p.active),a(e,"expanded",!0),setTimeout(function(){m.$root.addClass(p.opened),a(m.$root[0],"hidden",!1)},0),!1!==s&&(h.open=!0,d&&i.css("overflow","hidden").css("padding-right","+="+r()),m.$root.eq(0).focus(),n.on("click."+h.id+" focusin."+h.id,function(t){var n=t.target;n!=e&&n!=document&&3!=t.which&&m.close(n===m.$root.children()[0])}).on("keydown."+h.id,function(e){var n=e.keyCode,i=m.component.key[n],r=e.target;27==n?m.close(!0):r!=m.$root[0]||!i&&13!=n?t.contains(m.$root[0],r)&&13==n&&(e.preventDefault(),r.click()):(e.preventDefault(),i?o._.trigger(m.component.key.go,m,[o._.trigger(i)]):m.$root.find("."+p.highlighted).hasClass(p.disabled)||(m.set("select",m.component.item.highlight),f.closeOnSelect&&m.close(!0)))})),m.trigger("open"))},close:function(t){return t&&(m.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){m.$root.on("focus.toOpen",x)},0)),g.removeClass(p.active),a(e,"expanded",!1),setTimeout(function(){m.$root.removeClass(p.opened+" "+p.focused),a(m.$root[0],"hidden",!0)},0),h.open?(h.open=!1,d&&i.css("overflow","").css("padding-right","-="+r()),n.off("."+h.id),m.trigger("close")):m},clear:function(t){return m.set("clear",null,t)},set:function(e,n,i){var o,r,a=t.isPlainObject(e),s=a?e:{};if(i=a&&t.isPlainObject(n)?n:i||{},e){for(o in a||(s[e]=n),s)r=s[o],o in m.component.item&&(void 0===r&&(r=null),m.component.set(o,r,i)),"select"!=o&&"clear"!=o||g.val("clear"==o?"":m.get(o,f.format)).trigger("change");m.render()}return i.muted?m:m.trigger("set",s)},get:function(t,n){if(null!=h[t=t||"value"])return h[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 n){var i=m.component.get(t);return i?o._.trigger(m.component.formats.toString,m.component,[n,i]):""}return m.component.get(t)}},on:function(e,n,i){var o,r,a=t.isPlainObject(e),s=a?e:{};if(e)for(o in a||(s[e]=n),s)r=s[o],i&&(o="_"+o),h.methods[o]=h.methods[o]||[],h.methods[o].push(r);return m},off:function(){var t,e,n=arguments;for(t=0,namesCount=n.length;t<namesCount;t+=1)(e=n[t])in h.methods&&delete h.methods[e];return m},trigger:function(t,e){var n=function(t){var n=h.methods[t];n&&n.map(function(t){o._.trigger(t,m,[e])})};return n("_"+t),n(t),m}};function y(){return o._.node("div",o._.node("div",o._.node("div",o._.node("div",m.component.nodes(h.open),p.box),p.wrap),p.frame),p.holder)}function b(t){var e=t.keyCode,n=/^(8|46)$/.test(e);if(27==e)return m.close(),!1;(32==e||n||!h.open&&m.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?m.clear().close():m.open())}function x(t){t.stopPropagation(),"focus"==t.type&&m.$root.addClass(p.focused),m.open()}return new v}function r(){if(i.height()<=e.height())return 0;var n=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),o=n[0].offsetWidth;n.css("overflow","scroll");var r=t('<div style="width:100%" />').appendTo(n)[0].offsetWidth;return n.remove(),o-r}function a(e,n,i){if(t.isPlainObject(n))for(var o in n)s(e,o,n[o]);else s(e,n,i)}function s(t,e,n){t.setAttribute(("role"==e?"":"aria-")+e,n)}function l(){try{return document.activeElement}catch(t){}}return o.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"}},o._={group:function(t){for(var e,n="",i=o._.trigger(t.min,t);i<=o._.trigger(t.max,t,[i]);i+=t.i)e=o._.trigger(t.item,t,[i]),n+=o._.node(t.node,e[0],e[1],e[2]);return n},node:function(e,n,i,o){return n?(n=t.isArray(n)?n.join(""):n,"<"+e+(i=i?' class="'+i+'"':"")+(o=o?" "+o:"")+">"+n+"</"+e+">"):""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):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,n){for(var i in t.isPlainObject(e)||(e={attribute:n}),n="",e)n+=null==e[i]?"":("role"==i?"":"aria-")+i+'="'+e[i]+'"';return n}},o.extend=function(e,n){t.fn[e]=function(i,r){var a=this.data(e);return"picker"==i?a:a&&"string"==typeof i?o._.trigger(a[i],a,[r]):this.each(function(){t(this).data(e)||new o(this,e,n,i)})},t.fn[e].defaults=n.defaults},o}(jQuery),function(t,e){var n,i=t._;function o(t,e){var n,i=this,o=t.$node[0],r=o.value,a=t.$node.data("value"),s=a||r,l=a?e.formatSubmit:e.format,u=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=e,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(e.disable||[]).slice(0),i.item.enable=-(!0===(n=i.item.disable)[0]?n.shift():-1),i.set("min",e.min).set("max",e.max).set("now"),s?i.set("select",s,{format:l}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return u()?-1:1},37:function(){return u()?1:-1},go:function(t){var e=i.item.highlight,n=new Date(e.year,e.month,e.date+t);i.set("highlight",n,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var n=this.value;n&&(t.set("highlight",[t.get("view").year,n,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var n=this.value;n&&(t.set("highlight",[n,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}o.prototype.set=function(t,e,n){var i=this,o=i.item;return null===e?("clear"==t&&(t="select"),o[t]=e,i):(o["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(o){return e=i[o](t,e,n)}).pop(),"select"==t?i.set("highlight",o.select,n):"highlight"==t?i.set("view",o.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&i.disabled(o.select)&&i.set("select",o.select,n),o.highlight&&i.disabled(o.highlight)&&i.set("highlight",o.highlight,n)),i)},o.prototype.get=function(t){return this.item[t]},o.prototype.create=function(t,n,o){var r;return(n=void 0===n?t:n)==-1/0||n==1/0?r=n:e.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:e.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:this.create().obj):n=i.isInteger(n)||i.isDate(n)?this.normalize(new Date(n),o):this.now(t,n,o),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},o.prototype.createRange=function(t,n){var o=this,r=function(t){return!0===t||e.isArray(t)||i.isDate(t)?o.create(t):t};return i.isInteger(t)||(t=r(t)),i.isInteger(n)||(n=r(n)),i.isInteger(t)&&e.isPlainObject(n)?t=[n.year,n.month,n.date+t]:i.isInteger(n)&&e.isPlainObject(t)&&(n=[t.year,t.month,t.date+n]),{from:r(t),to:r(n)}},o.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},o.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)},o.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},o.prototype.navigate=function(t,n,i){var o,r,a,s,l=e.isArray(n),u=e.isPlainObject(n),c=this.item.view;if(l||u){for(u?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),i&&i.nav&&c&&c.month!==a&&(r=c.year,a=c.month),r=(o=new Date(r,a+(i&&i.nav?i.nav:0),1)).getFullYear(),a=o.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},o.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},o.prototype.measure=function(t,e){return e?"string"==typeof e?e=this.parse(t,e):i.isInteger(e)&&(e=this.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},o.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},o.prototype.validate=function(t,n,o){var r,a,s,l,u=this,c=n,d=o&&o.interval?o.interval:1,h=-1===u.item.enable,f=u.item.min,p=u.item.max,g=h&&u.item.disable.filter(function(t){if(e.isArray(t)){var o=u.create(t).pick;o<n.pick?r=!0:o>n.pick&&(a=!0)}return i.isInteger(t)}).length;if((!o||!o.nav)&&(!h&&u.disabled(n)||h&&u.disabled(n)&&(g||r||a)||!h&&(n.pick<=f.pick||n.pick>=p.pick)))for(h&&!g&&(!a&&d>0||!r&&d<0)&&(d*=-1);u.disabled(n)&&(Math.abs(d)>1&&(n.month<c.month||n.month>c.month)&&(n=c,d=d>0?1:-1),n.pick<=f.pick?(s=!0,d=1,n=u.create([f.year,f.month,f.date+(n.pick===f.pick?0:-1)])):n.pick>=p.pick&&(l=!0,d=-1,n=u.create([p.year,p.month,p.date+(n.pick===p.pick?0:1)])),!s||!l);)n=u.create([n.year,n.month,n.date+d]);return n},o.prototype.disabled=function(t){var n=this,o=n.item.disable.filter(function(o){return i.isInteger(o)?t.day===(n.settings.firstDay?o:o-1)%7:e.isArray(o)||i.isDate(o)?t.pick===n.create(o).pick:e.isPlainObject(o)?n.withinRange(o,t):void 0});return o=o.length&&!o.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===n.item.enable?!o:o||t.pick<n.item.min.pick||t.pick>n.item.max.pick},o.prototype.parse=function(t,e,n){var o=this,r={};return e&&"string"==typeof e?(n&&n.format||((n=n||{}).format=o.settings.format),o.formats.toArray(n.format).map(function(t){var n=o.formats[t],a=n?i.trigger(n,o,[e,r]):t.replace(/^!/,"").length;n&&(r[t]=e.substr(0,a)),e=e.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):e},o.prototype.formats=function(){function t(t,e,n){var i=t.match(/\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)+1),i.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?i.digits(t):e.date},dd:function(t,e){return t?2:i.lead(e.date)},ddd:function(t,n){return t?e(t):this.settings.weekdaysShort[n.day]},dddd:function(t,n){return t?e(t):this.settings.weekdaysFull[n.day]},m:function(t,e){return t?i.digits(t):e.month+1},mm:function(t,e){return t?2:i.lead(e.month+1)},mmm:function(e,n){var i=this.settings.monthsShort;return e?t(e,i,n):i[n.month]},mmmm:function(e,n){var i=this.settings.monthsFull;return e?t(e,i,n):i[n.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 n=this;return n.formats.toArray(t).map(function(t){return i.trigger(n.formats[t],n,[0,e])||t.replace(/^!/,"")}).join("")}}}(),o.prototype.isDateExact=function(t,n){return i.isInteger(t)&&i.isInteger(n)||"boolean"==typeof t&&"boolean"==typeof n?t===n:(i.isDate(t)||e.isArray(t))&&(i.isDate(n)||e.isArray(n))?this.create(t).pick===this.create(n).pick:!(!e.isPlainObject(t)||!e.isPlainObject(n))&&this.isDateExact(t.from,n.from)&&this.isDateExact(t.to,n.to)},o.prototype.isDateOverlap=function(t,n){var o=this.settings.firstDay?1:0;return i.isInteger(t)&&(i.isDate(n)||e.isArray(n))?(t=t%7+o)===this.create(n).day+1:i.isInteger(n)&&(i.isDate(t)||e.isArray(t))?(n=n%7+o)===this.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(n))&&this.overlapRanges(t,n)},o.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},o.prototype.deactivate=function(t,n){var o=this,r=o.item.disable.slice(0);return"flip"==n?o.flipEnable():!1===n?(o.flipEnable(1),r=[]):!0===n?(o.flipEnable(-1),r=[]):n.map(function(t){for(var n,a=0;a<r.length;a+=1)if(o.isDateExact(t,r[a])){n=!0;break}n||(i.isInteger(t)||i.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&r.push(t)}),r},o.prototype.activate=function(t,n){var o=this,r=o.item.disable,a=r.length;return"flip"==n?o.flipEnable():!0===n?(o.flipEnable(1),r=[]):!1===n?(o.flipEnable(-1),r=[]):n.map(function(t){var n,s,l,u;for(l=0;l<a;l+=1){if(o.isDateExact(s=r[l],t)){n=r[l]=null,u=!0;break}if(o.isDateOverlap(s,t)){e.isPlainObject(t)?(t.inverted=!0,n=t):e.isArray(t)?(n=t)[3]||n.push("inverted"):i.isDate(t)&&(n=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(n)for(l=0;l<a;l+=1)if(o.isDateExact(r[l],t)){r[l]=null;break}if(u)for(l=0;l<a;l+=1)if(o.isDateOverlap(r[l],t)){r[l]=null;break}n&&r.push(n)}),r.filter(function(t){return null!=t})},o.prototype.nodes=function(t){var e,n,o=this,r=o.settings,a=o.item,s=a.now,l=a.select,u=a.highlight,c=a.view,d=a.disable,h=a.min,f=a.max,p=(e=(r.showWeekdaysFull?r.weekdaysFull:r.weekdaysLetter).slice(0),n=r.weekdaysFull.slice(0),r.firstDay&&(e.push(e.shift()),n.push(n.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(t){return[e[t],r.klass.weekdays,'scope=col title="'+n[t]+'"']}})))),g=function(t){return i.node("div"," ",r.klass["nav"+(t?"Next":"Prev")]+(t&&c.year>=f.year&&c.month>=f.month||!t&&c.year<=h.year&&c.month<=h.month?" "+r.klass.navDisabled:""),"data-nav="+(t||-1)+" "+i.ariaAttr({role:"button",controls:o.$node[0].id+"_table"})+' title="'+(t?r.labelMonthNext:r.labelMonthPrev)+'"')},v=function(e){var n=r.showMonthsShort?r.monthsShort:r.monthsFull;return"short_months"==e&&(n=r.monthsShort),r.selectMonths&&void 0==e?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(t){return[n[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==h.year&&t<h.month||c.year==f.year&&t>f.month?" disabled":"")]}}),r.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelMonthSelect+'"'):"short_months"==e?null!=l?n[l.month]:n[c.month]:i.node("div",n[c.month],r.klass.month)},m=function(e){var n=c.year,a=!0===r.selectYears?5:~~(r.selectYears/2);if(a){var s=h.year,u=f.year,d=n-a,p=n+a;if(s>d&&(p+=s-d,d=s),u<p){var g=d-s,v=p-u;d-=g>v?v:g,p=u}if(r.selectYears&&void 0==e)return i.node("select",i.group({min:d,max:p,i:1,node:"option",item:function(t){return[t,0,"value="+t+(n==t?" selected":"")]}}),r.klass.selectYear+" browser-default",(t?"":"disabled")+" "+i.ariaAttr({controls:o.$node[0].id+"_table"})+' title="'+r.labelYearSelect+'"')}return"raw"===e&&null!=l?i.node("div",l.year):i.node("div",n,r.klass.year)};return createDayLabel=function(){return null!=l?l.date:s.date},createWeekdayLabel=function(){return r.weekdaysShort[null!=l?l.day:s.day]},i.node("div",i.node("div",m("raw"),r.klass.year_display)+i.node("span",createWeekdayLabel()+", ","picker__weekday-display")+i.node("span",v("short_months")+" ",r.klass.month_display)+i.node("span",createDayLabel(),r.klass.day_display),r.klass.date_display)+i.node("div",i.node("div",i.node("div",v()+m()+g()+g(1),r.klass.header)+i.node("table",p+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(t){var e=r.firstDay&&0===o.create([c.year,c.month,1]).day?-7:0;return[i.group({min:7*t-c.day+e+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=o.create([c.year,c.month,t+(r.firstDay?1:0)]);var e,n=l&&l.pick==t.pick,a=u&&u.pick==t.pick,p=d&&o.disabled(t)||t.pick<h.pick||t.pick>f.pick,g=i.trigger(o.formats.toString,o,[r.format,t]);return[i.node("div",t.date,(e=[r.klass.day],e.push(c.month==t.month?r.klass.infocus:r.klass.outfocus),s.pick==t.pick&&e.push(r.klass.now),n&&e.push(r.klass.selected),a&&e.push(r.klass.highlighted),p&&e.push(r.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+i.ariaAttr({role:"gridcell",label:g,selected:!(!n||o.$node.val()!==g)||null,activedescendant:!!a||null,disabled:!!p||null})+" "+(p?"":'tabindex="0"')),"",i.ariaAttr({role:"presentation"})]}})]}})),r.klass.table,'id="'+o.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:o.$node[0].id,readonly:!0})),r.klass.calendar_container)+i.node("div",i.node("button",r.today,"btn-flat picker__today waves-effect","type=button data-pick="+s.pick+(t&&!o.disabled(s)?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.clear,"btn-flat picker__clear waves-effect","type=button data-clear=1"+(t?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id}))+i.node("button",r.close,"btn-flat picker__close waves-effect","type=button data-close=true "+(t?"":" disabled")+" "+i.ariaAttr({controls:o.$node[0].id})),r.klass.footer),"picker__container__wrapper")},o.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:"Ok",closeOnSelect:!1,format:"d mmmm, yyyy",klass:{table:(n=t.klasses().picker+"__")+"table",header:n+"header",date_display:n+"date-display",day_display:n+"day-display",month_display:n+"month-display",year_display:n+"year-display",calendar_container:n+"calendar-container",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}},t.extend("pickadate",o)}(Materialize.Picker,jQuery),function(t){var e,n,i,o=t(window),r=t(document),a="http://www.w3.org/2000/svg",s="SVGAngle"in window&&((n=document.createElement("div")).innerHTML="<svg/>",e=(n.firstChild&&n.firstChild.namespaceURI)==a,n.innerHTML="",e),l="transition"in(i=document.createElement("div").style)||"WebkitTransition"in i||"MozTransition"in i||"msTransition"in i||"OTransition"in i,u="ontouchstart"in window,c="mousedown"+(u?" touchstart":""),d="mousemove.clockpicker"+(u?" touchmove.clockpicker":""),h="mouseup.clockpicker"+(u?" touchend.clockpicker":""),f=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null;function p(t){return document.createElementNS(a,t)}function g(t){return(t<10?"0":"")+t}var v=0,m=135,y=105,b=70,x=20,w=2*m,k=l?350:1,C=['<div class="clockpicker picker">','<div class="picker__holder">','<div class="picker__frame">','<div class="picker__wrap">','<div class="picker__box">','<div class="picker__date-display">','<div class="clockpicker-display">','<div class="clockpicker-display-column">','<span class="clockpicker-span-hours text-primary"></span>',":",'<span class="clockpicker-span-minutes"></span>',"</div>",'<div class="clockpicker-display-column clockpicker-display-am-pm">','<div class="clockpicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="picker__container__wrapper">','<div class="picker__calendar-container">','<div class="clockpicker-plate">','<div class="clockpicker-canvas"></div>','<div class="clockpicker-dial clockpicker-hours"></div>','<div class="clockpicker-dial clockpicker-minutes clockpicker-dial-out"></div>',"</div>",'<div class="clockpicker-am-pm-block">',"</div>","</div>",'<div class="picker__footer">',"</div>","</div>","</div>","</div>","</div>","</div>","</div>"].join("");function T(e,n){var i=t(C),o=i.find(".clockpicker-plate"),a=i.find(".picker__holder"),l=i.find(".clockpicker-hours"),u=i.find(".clockpicker-minutes"),f=i.find(".clockpicker-am-pm-block"),T="INPUT"===e.prop("tagName"),M=T?e:e.find("input"),A=t("label[for="+M.attr("id")+"]"),P=this;this.id="cp"+(++v+""),this.element=e,this.holder=a,this.options=n,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=T,this.input=M,this.label=A,this.popover=i,this.plate=o,this.hoursView=l,this.minutesView=u,this.amPmBlock=f,this.spanHours=i.find(".clockpicker-span-hours"),this.spanMinutes=i.find(".clockpicker-span-minutes"),this.spanAmPm=i.find(".clockpicker-span-am-pm"),this.footer=i.find(".picker__footer"),this.amOrPm="PM",n.twelvehour&&(n.ampmclickable?(this.spanAmPm.empty(),t('<div id="click-am">AM</div>').on("click",function(){P.spanAmPm.children("#click-am").addClass("text-primary"),P.spanAmPm.children("#click-pm").removeClass("text-primary"),P.amOrPm="AM"}).appendTo(this.spanAmPm),t('<div id="click-pm">PM</div>').on("click",function(){P.spanAmPm.children("#click-pm").addClass("text-primary"),P.spanAmPm.children("#click-am").removeClass("text-primary"),P.amOrPm="PM"}).appendTo(this.spanAmPm)):(this.spanAmPm.empty(),t('<div id="click-am">AM</div>').appendTo(this.spanAmPm),t('<div id="click-pm">PM</div>').appendTo(this.spanAmPm))),t('<button type="button" class="btn-flat picker__clear" tabindex="'+(n.twelvehour?"3":"1")+'">'+n.cleartext+"</button>").click(t.proxy(this.clear,this)).appendTo(this.footer),t('<button type="button" class="btn-flat picker__close" tabindex="'+(n.twelvehour?"3":"1")+'">'+n.canceltext+"</button>").click(t.proxy(this.hide,this)).appendTo(this.footer),t('<button type="button" class="btn-flat picker__close" tabindex="'+(n.twelvehour?"3":"1")+'">'+n.donetext+"</button>").click(t.proxy(this.done,this)).appendTo(this.footer),this.spanHours.click(t.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(t.proxy(this.toggleView,this,"minutes")),M.on("focus.clockpicker click.clockpicker",t.proxy(this.show,this));var D,_,I,O,E=t('<div class="clockpicker-tick"></div>');if(n.twelvehour)for(D=1;D<13;D+=1)_=E.clone(),I=D/6*Math.PI,O=y,_.css({left:m+Math.sin(I)*O-x,top:m-Math.cos(I)*O-x}),_.html(0===D?"00":D),l.append(_),_.on(c,L);else for(D=0;D<24;D+=1)_=E.clone(),I=D/6*Math.PI,O=D>0&&D<13?b:y,_.css({left:m+Math.sin(I)*O-x,top:m-Math.cos(I)*O-x}),_.html(0===D?"00":D),l.append(_),_.on(c,L);for(D=0;D<60;D+=5)_=E.clone(),I=D/30*Math.PI,_.css({left:m+Math.sin(I)*y-x,top:m-Math.cos(I)*y-x}),_.html(g(D)),u.append(_),_.on(c,L);function L(t,e){var i=o.offset(),a=/^touch/.test(t.type),s=i.left+m,l=i.top+m,u=(a?t.originalEvent.touches[0]:t).pageX-s,c=(a?t.originalEvent.touches[0]:t).pageY-l,f=Math.sqrt(u*u+c*c),p=!1;if(!e||!(f<y-x||f>y+x)){t.preventDefault();var g=setTimeout(function(){P.popover.addClass("clockpicker-moving")},200);P.setHand(u,c,!e,!0),r.off(d).on(d,function(t){t.preventDefault();var e=/^touch/.test(t.type),n=(e?t.originalEvent.touches[0]:t).pageX-s,i=(e?t.originalEvent.touches[0]:t).pageY-l;(p||n!==u||i!==c)&&(p=!0,P.setHand(n,i,!1,!0))}),r.off(h).on(h,function(t){r.off(h),t.preventDefault();var i=/^touch/.test(t.type),a=(i?t.originalEvent.changedTouches[0]:t).pageX-s,f=(i?t.originalEvent.changedTouches[0]:t).pageY-l;(e||p)&&a===u&&f===c&&P.setHand(a,f),"hours"===P.currentView?P.toggleView("minutes",k/2):n.autoclose&&(P.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){P.done()},k/2)),o.prepend(F),clearTimeout(g),P.popover.removeClass("clockpicker-moving"),r.off(d)})}}if(o.on(c,function(e){0===t(e.target).closest(".clockpicker-tick").length&&L(e,!0)}),s){var F=i.find(".clockpicker-canvas"),N=p("svg");N.setAttribute("class","clockpicker-svg"),N.setAttribute("width",w),N.setAttribute("height",w);var R=p("g");R.setAttribute("transform","translate("+m+","+m+")");var z=p("circle");z.setAttribute("class","clockpicker-canvas-bearing"),z.setAttribute("cx",0),z.setAttribute("cy",0),z.setAttribute("r",4);var W=p("line");W.setAttribute("x1",0),W.setAttribute("y1",0);var H=p("circle");H.setAttribute("class","clockpicker-canvas-bg"),H.setAttribute("r",x),R.appendChild(W),R.appendChild(H),R.appendChild(z),N.appendChild(R),F.append(N),this.hand=W,this.bg=H,this.bearing=z,this.g=R,this.canvas=F}S(this.options.init)}function S(t){t&&"function"==typeof t&&t()}T.DEFAULTS={default:"",fromnow:0,donetext:"Ok",cleartext:"Clear",canceltext:"Cancel",autoclose:!1,ampmclickable:!0,darktheme:!1,twelvehour:!0,vibrate:!0},T.prototype.toggle=function(){this[this.isShown?"hide":"show"]()},T.prototype.locate=function(){var t=this.element,e=this.popover;t.offset(),t.outerWidth(),t.outerHeight(),e.show()},T.prototype.show=function(e){if(!this.isShown){S(this.options.beforeShow),t(":input").each(function(){t(this).attr("tabindex",-1)});var n=this;this.input.blur(),this.popover.addClass("picker--opened"),this.input.addClass("picker__input picker__input--active"),t(document.body).css("overflow","hidden");var i=((this.input.prop("value")||this.options.default||"")+"").split(":");if(this.options.twelvehour&&"undefined"!=typeof i[1]&&(this.amOrPm=i[1].indexOf("AM")>0?"AM":"PM",i[1]=i[1].replace("AM","").replace("PM","")),"now"===i[0]){var a=new Date(+new Date+this.options.fromnow);i=[a.getHours(),a.getMinutes()],this.options.twelvehour&&(this.amOrPm=i[0]>=12&&i[0]<24?"PM":"AM")}if(this.hours=+i[0]||0,this.minutes=+i[1]||0,this.spanHours.html(this.hours),this.spanMinutes.html(g(this.minutes)),!this.isAppended){var s=document.querySelector(this.options.container);this.options.container&&s?s.appendChild(this.popover[0]):this.popover.insertAfter(this.input),this.options.twelvehour&&("PM"===this.amOrPm?(this.spanAmPm.children("#click-pm").addClass("text-primary"),this.spanAmPm.children("#click-am").removeClass("text-primary")):(this.spanAmPm.children("#click-am").addClass("text-primary"),this.spanAmPm.children("#click-pm").removeClass("text-primary"))),o.on("resize.clockpicker"+this.id,function(){n.isShown&&n.locate()}),this.isAppended=!0}this.toggleView("hours"),this.locate(),this.isShown=!0,r.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,function(e){var i=t(e.target);0===i.closest(n.popover.find(".picker__wrap")).length&&0===i.closest(n.input).length&&n.hide()}),r.on("keyup.clockpicker."+this.id,function(t){27===t.keyCode&&n.hide()}),S(this.options.afterShow)}},T.prototype.hide=function(){S(this.options.beforeHide),this.input.removeClass("picker__input picker__input--active"),this.popover.removeClass("picker--opened"),t(document.body).css("overflow","visible"),this.isShown=!1,t(":input").each(function(e){t(this).attr("tabindex",e+1)}),r.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id),r.off("keyup.clockpicker."+this.id),this.popover.hide(),S(this.options.afterHide)},T.prototype.toggleView=function(e,n){var i=!1;"minutes"===e&&"visible"===t(this.hoursView).css("visibility")&&(S(this.options.beforeHourSelect),i=!0);var o="hours"===e,r=o?this.hoursView:this.minutesView,a=o?this.minutesView:this.hoursView;this.currentView=e,this.spanHours.toggleClass("text-primary",o),this.spanMinutes.toggleClass("text-primary",!o),a.addClass("clockpicker-dial-out"),r.css("visibility","visible").removeClass("clockpicker-dial-out"),this.resetClock(n),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){a.css("visibility","hidden")},k),i&&S(this.options.afterHourSelect)},T.prototype.resetClock=function(t){var e=this.currentView,n=this[e],i="hours"===e,o=n*(Math.PI/(i?6:30)),r=i&&n>0&&n<13?b:y,a=Math.sin(o)*r,l=-Math.cos(o)*r,u=this;s&&t?(u.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){u.canvas.removeClass("clockpicker-canvas-out"),u.setHand(a,l)},t)):this.setHand(a,l)},T.prototype.setHand=function(e,n,i,o){var r,a=Math.atan2(e,-n),l="hours"===this.currentView,u=Math.PI/(l||i?6:30),c=Math.sqrt(e*e+n*n),d=this.options,h=l&&c<(y+b)/2,p=h?b:y;if(d.twelvehour&&(p=y),a<0&&(a=2*Math.PI+a),a=(r=Math.round(a/u))*u,d.twelvehour?l?0===r&&(r=12):(i&&(r*=5),60===r&&(r=0)):l?(12===r&&(r=0),r=h?0===r?12:r:0===r?0:r+12):(i&&(r*=5),60===r&&(r=0)),this[this.currentView]!==r&&f&&this.options.vibrate&&(this.vibrateTimer||(navigator[f](10),this.vibrateTimer=setTimeout(t.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=r,l?this.spanHours.html(r):this.spanMinutes.html(g(r)),s){var v=Math.sin(a)*(p-x),m=-Math.cos(a)*(p-x),w=Math.sin(a)*p,k=-Math.cos(a)*p;this.hand.setAttribute("x2",v),this.hand.setAttribute("y2",m),this.bg.setAttribute("cx",w),this.bg.setAttribute("cy",k)}else this[l?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var e=t(this);e.toggleClass("active",r===+e.html())})},T.prototype.done=function(){S(this.options.beforeDone),this.hide(),this.label.addClass("active");var t=this.input.prop("value"),e=g(this.hours)+":"+g(this.minutes);this.options.twelvehour&&(e+=this.amOrPm),this.input.prop("value",e),e!==t&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur"),S(this.options.afterDone)},T.prototype.clear=function(){this.hide(),this.label.removeClass("active");var t=this.input.prop("value");this.input.prop("value",""),""!==t&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur")},T.prototype.remove=function(){this.element.removeData("clockpicker"),this.input.off("focus.clockpicker click.clockpicker"),this.isShown&&this.hide(),this.isAppended&&(o.off("resize.clockpicker"+this.id),this.popover.remove())},t.fn.pickatime=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=t(this),o=i.data("clockpicker");if(o)"function"==typeof o[e]&&o[e].apply(o,n);else{var r=t.extend({},T.DEFAULTS,i.data(),"object"==typeof e&&e);i.data("clockpicker",new T(i,r))}})}}(jQuery),function(t){function e(){var e=+t(this).attr("data-length"),n=+t(this).val().length,i=n<=e;t(this).parent().find('span[class="character-counter"]').html(n+"/"+e),function(t,e){var n=e.hasClass("invalid");t&&n?e.removeClass("invalid"):t||n||(e.removeClass("valid"),e.addClass("invalid"))}(i,t(this))}function n(){t(this).parent().find('span[class="character-counter"]').html("")}t.fn.characterCounter=function(){return this.each(function(){var i=t(this);i.parent().find('span[class="character-counter"]').length||void 0!==i.attr("data-length")&&(i.on("input",e),i.on("focus",e),i.on("blur",n),function(e){var n=e.parent().find('span[class="character-counter"]');n.length||(n=t("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),e.parent().append(n))}(i))})},t(document).ready(function(){t("input, textarea").characterCounter()})}(jQuery),function(t){var e={init:function(e){e=t.extend({duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},e);var n=Materialize.objectSelectorString(t(this));return this.each(function(i){var o,r,a,s,l,u,c,d,h,f,p,g,v,m,b,x,w,k,C,T=t('<ul class="indicators"></ul>'),S=null,M=null,A=t(this),P=A.find(".carousel-item").length>1,D=(A.attr("data-indicators")||e.indicators)&&P,_=A.attr("data-no-wrap")||e.noWrap||!P,I=A.attr("data-namespace")||n+i;A.attr("data-namespace",I);var O=function(e){var n=A.find(".carousel-item.active").length?A.find(".carousel-item.active").first():A.find(".carousel-item").first(),i=n.find("img").first();if(i.length)if(i[0].complete)if(i.height()>0)A.css("height",i.height());else{var o=i[0].naturalWidth,r=i[0].naturalHeight,a=A.width()/o*r;A.css("height",a)}else i.on("load",function(){A.css("height",t(this).height())});else if(!e){var s=n.height();A.css("height",s)}};if(e.fullWidth&&(e.dist=0,O(),D&&A.find(".carousel-fixed-item").addClass("with-indicators")),A.hasClass("initialized"))return t(window).trigger("resize"),A.trigger("carouselNext",[1e-6]),!0;function E(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function L(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function F(t){return t>=d?t%d:t<0?F(d+t%d):t}function N(n){var i,u,h,f,p,g,v;A.hasClass("scrolling")||A.addClass("scrolling"),null!=S&&window.clearTimeout(S),S=window.setTimeout(function(){A.removeClass("scrolling")},e.duration);var y=l;if(s="number"==typeof n?n:s,l=Math.floor((s+c/2)/c),p=-(f=(h=s-l*c)<0?1:-1)*h*2/c,u=d>>1,e.fullWidth?v="translateX(0)":(v="translateX("+(A[0].clientWidth-r)/2+"px) ",v+="translateY("+(A[0].clientHeight-a)/2+"px)"),D){var b=l%d,x=T.find(".indicator-item.active");x.index()!==b&&(x.removeClass("active"),T.find(".indicator-item").eq(b).addClass("active"))}for((!_||l>=0&&l<d)&&(g=o[F(l)],t(g).hasClass("active")||(A.find(".carousel-item").removeClass("active"),t(g).addClass("active")),g.style[m]=v+" translateX("+-h/2+"px) translateX("+f*e.shift*p*i+"px) translateZ("+e.dist*p+"px)",g.style.zIndex=0,tweenedOpacity=e.fullWidth?1:1-.2*p,g.style.opacity=tweenedOpacity,g.style.display="block"),i=1;i<=u;++i)e.fullWidth?(zTranslation=e.dist,tweenedOpacity=i===u&&h<0?1-p:1):(zTranslation=e.dist*(2*i+p*f),tweenedOpacity=1-.2*(2*i+p*f)),(!_||l+i<d)&&((g=o[F(l+i)]).style[m]=v+" translateX("+(e.shift+(c*i-h)/2)+"px) translateZ("+zTranslation+"px)",g.style.zIndex=-i,g.style.opacity=tweenedOpacity,g.style.display="block"),e.fullWidth?(zTranslation=e.dist,tweenedOpacity=i===u&&h>0?1-p:1):(zTranslation=e.dist*(2*i-p*f),tweenedOpacity=1-.2*(2*i-p*f)),(!_||l-i>=0)&&((g=o[F(l-i)]).style[m]=v+" translateX("+((-c*i-h)/2-e.shift)+"px) translateZ("+zTranslation+"px)",g.style.zIndex=-i,g.style.opacity=tweenedOpacity,g.style.display="block");if((!_||l>=0&&l<d)&&((g=o[F(l)]).style[m]=v+" translateX("+-h/2+"px) translateX("+f*e.shift*p+"px) translateZ("+e.dist*p+"px)",g.style.zIndex=0,tweenedOpacity=e.fullWidth?1:1-.2*p,g.style.opacity=tweenedOpacity,g.style.display="block"),y!==l&&"function"==typeof e.onCycleTo){var w=A.find(".carousel-item").eq(F(l));e.onCycleTo.call(this,w,k)}"function"==typeof M&&(M.call(this,w,k),M=null)}function R(){var t,e,n;e=(t=Date.now())-x,x=t,n=s-b,b=s,v=1e3*n/(1+e)*.8+.2*v}function z(){var t,n;p&&(t=Date.now()-x,(n=p*Math.exp(-t/e.duration))>2||n<-2?(N(g-n),requestAnimationFrame(z)):N(g))}function W(t){var e=l%d-t;_||(e<0?Math.abs(e+d)<Math.abs(e)&&(e+=d):e>0&&Math.abs(e-d)<e&&(e-=d)),e<0?A.trigger("carouselNext",[Math.abs(e)]):e>0&&A.trigger("carouselPrev",[e])}function H(e){"mousedown"===e.type&&t(e.target).is("img")&&e.preventDefault(),u=!0,k=!1,C=!1,h=E(e),f=L(e),v=p=0,b=s,x=Date.now(),clearInterval(w),w=setInterval(R,100)}function q(t){var e,n;if(u)if(e=E(t),y=L(t),n=h-e,Math.abs(f-y)<30&&!C)(n>2||n<-2)&&(k=!0,h=e,N(s+n));else{if(k)return t.preventDefault(),t.stopPropagation(),!1;C=!0}if(k)return t.preventDefault(),t.stopPropagation(),!1}function j(t){if(u)return u=!1,clearInterval(w),g=s,(v>10||v<-10)&&(g=s+(p=.9*v)),g=Math.round(g/c)*c,_&&(g>=c*(d-1)?g=c*(d-1):g<0&&(g=0)),p=g-s,x=Date.now(),requestAnimationFrame(z),k&&(t.preventDefault(),t.stopPropagation()),!1}A.addClass("initialized"),u=!1,s=g=0,o=[],r=A.find(".carousel-item").first().innerWidth(),a=A.find(".carousel-item").first().innerHeight(),c=2*r+e.padding,A.find(".carousel-item").each(function(e){if(o.push(t(this)[0]),D){var n=t('<li class="indicator-item"></li>');0===e&&n.addClass("active"),n.click(function(e){e.stopPropagation(),W(t(this).index())}),T.append(n)}}),D&&A.append(T),d=o.length,m="transform",["webkit","Moz","O","ms"].every(function(t){var e=t+"Transform";return"undefined"==typeof document.body.style[e]||(m=e,!1)});var V=Materialize.throttle(function(){e.fullWidth?(r=A.find(".carousel-item").first().innerWidth(),A.find(".carousel-item.active").height(),c=2*r+e.padding,g=s=2*l*r,O(!0)):N()},200);t(window).off("resize.carousel-"+I).on("resize.carousel-"+I,V),"undefined"!=typeof window.ontouchstart&&(A.on("touchstart.carousel",H),A.on("touchmove.carousel",q),A.on("touchend.carousel",j)),A.on("mousedown.carousel",H),A.on("mousemove.carousel",q),A.on("mouseup.carousel",j),A.on("mouseleave.carousel",j),A.on("click.carousel",function(n){if(k)return n.preventDefault(),n.stopPropagation(),!1;if(!e.fullWidth){var i=t(n.target).closest(".carousel-item").index();0!=F(l)-i&&(n.preventDefault(),n.stopPropagation()),W(i)}}),N(s),t(this).on("carouselNext",function(t,e,n){void 0===e&&(e=1),"function"==typeof n&&(M=n),g=c*Math.round(s/c)+c*e,s!==g&&(p=g-s,x=Date.now(),requestAnimationFrame(z))}),t(this).on("carouselPrev",function(t,e,n){void 0===e&&(e=1),"function"==typeof n&&(M=n),g=c*Math.round(s/c)-c*e,s!==g&&(p=g-s,x=Date.now(),requestAnimationFrame(z))}),t(this).on("carouselSet",function(t,e,n){void 0===e&&(e=0),"function"==typeof n&&(M=n),W(e)})})},next:function(e,n){t(this).trigger("carouselNext",[e,n])},prev:function(e,n){t(this).trigger("carouselPrev",[e,n])},set:function(e,n){t(this).trigger("carouselSet",[e,n])},destroy:function(){var e=t(this).attr("data-namespace");t(this).removeAttr("data-namespace"),t(this).removeClass("initialized"),t(this).find(".indicators").remove(),t(this).off("carouselNext carouselPrev carouselSet"),t(window).off("resize.carousel-"+e),"undefined"!=typeof window.ontouchstart&&t(this).off("touchstart.carousel touchmove.carousel touchend.carousel"),t(this).off("mousedown.carousel mousemove.carousel mouseup.carousel mouseleave.carousel click.carousel")}};t.fn.carousel=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.carousel"):e.init.apply(this,arguments)}}(jQuery),function(t){var e={init:function(e){return this.each(function(){var n=t("#"+t(this).attr("data-activates")),i=(t("body"),t(this)),o=i.parent(".tap-target-wrapper"),r=o.find(".tap-target-wave"),a=o.find(".tap-target-origin"),s=i.find(".tap-target-content");o.length||(o=i.wrap(t('<div class="tap-target-wrapper"></div>')).parent()),s.length||(s=t('<div class="tap-target-content"></div>'),i.append(s)),r.length||(r=t('<div class="tap-target-wave"></div>'),a.length||((a=n.clone(!0,!0)).addClass("tap-target-origin"),a.removeAttr("id"),a.removeAttr("style"),r.append(a)),o.append(r));var l=function(){o.is(".open")&&(o.removeClass("open"),a.off("click.tapTarget"),t(document).off("click.tapTarget"),t(window).off("resize.tapTarget"))},u=function(){var e="fixed"===n.css("position");if(!e)for(var a=n.parents(),l=0;l<a.length&&!(e="fixed"==t(a[l]).css("position"));l++);var u=n.outerWidth(),c=n.outerHeight(),d=e?n.offset().top-t(document).scrollTop():n.offset().top,h=e?n.offset().left-t(document).scrollLeft():n.offset().left,f=t(window).width(),p=t(window).height(),g=f/2,v=p/2,m=h<=g,y=h>g,b=d<=v,x=d>v,w=h>=.25*f&&h<=.75*f,k=i.outerWidth(),C=i.outerHeight(),T=d+c/2-C/2,S=h+u/2-k/2,M=e?"fixed":"absolute",A=w?k:k/2+u,P=C/2,D=b?C/2:0,_=m&&!w?k/2-u:0,I=u,O=x?"bottom":"top",E=2*u,L=E,F=C/2-L/2,N=k/2-E/2,R={};R.top=b?T:"",R.right=y?f-S-k:"",R.bottom=x?p-T-C:"",R.left=m?S:"",R.position=M,o.css(R),s.css({width:A,height:P,top:D,right:0,bottom:0,left:_,padding:I,verticalAlign:O}),r.css({top:F,left:N,width:E,height:L})};"open"==e&&(u(),o.is(".open")||(o.addClass("open"),setTimeout(function(){a.off("click.tapTarget").on("click.tapTarget",function(t){l(),a.off("click.tapTarget")}),t(document).off("click.tapTarget").on("click.tapTarget",function(e){l(),t(document).off("click.tapTarget")});var e=Materialize.throttle(function(){u()},200);t(window).off("resize.tapTarget").on("resize.tapTarget",e)},0))),"close"==e&&l()})},open:function(){},close:function(){}};t.fn.tapTarget=function(n){if(e[n]||"object"==typeof n)return e.init.apply(this,arguments);t.error("Method "+n+" does not exist on jQuery.tap-target")}}(jQuery),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function t(e,n,i){function o(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return o(e[a][1][t]||t)},c,c.exports,t,e,n,i)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,e,n){},{}],2:[function(t,e,n){function i(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3})$/i);if(i)for(i=i[1],o=0;o<e.length;o++)e[o]=parseInt(i[o]+i[o],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i))for(i=i[1],o=0;o<e.length;o++)e[o]=parseInt(i.slice(2*o,2*o+2),16);else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=d[i[1]]))return}for(var o=0;o<e.length;o++)e[o]=u(e[o],0,255);return n=n||0==n?u(n,0,1):1,e[3]=n,e}}function o(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[u(parseInt(e[1]),0,360),u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function r(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[u(parseInt(e[1]),0,360),u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function a(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function s(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function l(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var d=t(6);e.exports={getRgba:i,getHsla:o,getRgb:function(t){var e=i(t);return e&&e.slice(0,3)},getHsl:function(t){var e=o(t);return e&&e.slice(0,3)},getHwb:r,getAlpha:function(t){var e=i(t);return e?e[3]:(e=o(t))?e[3]:(e=r(t))?e[3]:void 0},hexString:function(t){return"#"+c(t[0])+c(t[1])+c(t[2])},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?a(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:a,percentString:function(t,e){return e<1||t[3]&&t[3]<1?s(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:s,hslString:function(t,e){return e<1||t[3]&&t[3]<1?l(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:l,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return h[t.slice(0,3)]}};var h={};for(var f in d)h[d[f]]=f},{6:6}],3:[function(t,e,n){var i=t(5),o=t(2),r=function(t){return t instanceof r?t:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=o.getRgba(t))?this.setValues("rgb",e):(e=o.getHsla(t))?this.setValues("hsl",e):(e=o.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new r(t);var e};r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,o=void 0===e?.5:e,r=2*o-1,a=n.alpha()-i.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*o+i.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new r,i=this.values,o=n.values;for(var a in i)i.hasOwnProperty(a)&&("[object Array]"===(e={}.toString.call(t=i[a]))?o[a]=t.slice(0):"[object Number]"===e?o[a]=t:console.error("unexpected color value:",t));return n}},r.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},r.prototype.setValues=function(t,e){var n,o,r=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===t)l=e;else if(e.length)r[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)r[t][n]=e[t.charAt(n)];l=e.a}else if(void 0!==e[a[t][0]]){var u=a[t];for(n=0;n<t.length;n++)r[t][n]=e[u[n]];l=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===t)return!1;for(n=0;n<t.length;n++)o=Math.max(0,Math.min(s[t][n],r[t][n])),r[t][n]=Math.round(o);for(var c in a)c!==t&&(r[c]=i[t][c](r[t]));return!0},r.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},r.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:n===i[e]?this:(i[e]=n,this.setValues(t,i),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{2:2,5:5}],4:[function(t,e,n){function i(t){var e,n,i=t[0]/255,o=t[1]/255,r=t[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a;return s==a?e=0:i==s?e=(o-r)/l:o==s?e=2+(r-i)/l:r==s&&(e=4+(i-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]}function o(t){var e,n,i=t[0],o=t[1],r=t[2],a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a;return n=0==s?0:l/s*1e3/10,s==a?e=0:i==s?e=(o-r)/l:o==s?e=2+(r-i)/l:r==s&&(e=4+(i-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,s/255*1e3/10]}function a(t){var e=t[0],n=t[1],o=t[2];return[i(t)[0],1/255*Math.min(e,Math.min(n,o))*100,100*(o=1-1/255*Math.max(e,Math.max(n,o)))]}function s(t){var e,n=t[0]/255,i=t[1]/255,o=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-o)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]}function l(t){return S[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function c(t){var e=u(t),n=e[0],i=e[1],o=e[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function d(t){var e,n,i,o,r,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var u=0;u<3;u++)(i=a+1/3*-(u-1))<0&&i++,i>1&&i--,o[u]=255*(r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e);return o}function h(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,o=Math.floor(e)%6,r=e-Math.floor(e),a=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}}function f(t){var e,n,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),n=1-l,i=6*a-(e=Math.floor(6*a)),0!=(1&e)&&(i=1-i),o=s+i*(n-s),e){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function p(t){var e=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-i)+i)),255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]}function v(t){var e,n,i,o=t[0]/100,r=t[1]/100,a=t[2]/100;return n=-.9689*o+1.8758*r+.0415*a,i=.0557*o+-.204*r+1.057*a,e=(e=3.2406*o+-1.5372*r+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]}function m(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function y(t){var e,n,i,o,r=t[0],a=t[1],s=t[2];return r<=8?o=(n=100*r/903.3)/100*7.787+16/116:(n=100*Math.pow((r+16)/116,3),o=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),n,i=i/108.883<=.008859?i=108.883*(o-s/200-16/116)/7.787:108.883*Math.pow(o-s/200,3)]}function x(t){var e,n=t[0],i=t[1],o=t[2];return(e=360*Math.atan2(o,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+o*o),e]}function w(t){return v(y(t))}function k(t){var e,n=t[1];return e=t[2]/360*2*Math.PI,[t[0],n*Math.cos(e),n*Math.sin(e)]}function C(t){return T[t]}e.exports={rgb2hsl:i,rgb2hsv:o,rgb2hwb:a,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return x(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[1]/100,n=t[2]/100;return 0===n?[0,0,0]:[t[0],2*(e*=(n*=2)<=1?n:2-n)/(n+e)*100,(n+e)/2*100]},hsl2hwb:function(t){return a(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,i=t[1]/100,o=t[2]/100;return e=i*o,[t[0],100*(e=(e/=(n=(2-i)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return a(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return i(f(t))},hwb2hsv:function(t){return o(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return i(p(t))},cmyk2hsv:function(t){return o(p(t))},cmyk2hwb:function(t){return a(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return i(C(t))},keyword2hsv:function(t){return o(C(t))},keyword2hwb:function(t){return a(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return x(m(t))},lab2xyz:y,lab2rgb:w,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return w(k(t))}};var T={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},S={};for(var M in T)S[JSON.stringify(T[M])]=M},{}],5:[function(t,e,n){var i=t(4),o=function(){return new u};for(var r in i){o[r+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(r);var a=/(\w+)2(\w+)/.exec(r),s=a[1],l=a[2];(o[s]=o[s]||{})[l]=o[r]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var o=0;o<n.length;o++)n[o]=Math.round(n[o]);return n}}(r)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space;e=o[n][t](this.convs[n]),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=o},{4:4}],6:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.platform=t(48),t(31)(i),t(22)(i),t(23)(i),t(24)(i),t(30)(i),t(33)(i),t(32)(i),t(35)(i),t(54)(i),t(52)(i),t(53)(i),t(55)(i),t(56)(i),t(57)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var o=[];o.push(t(49)(i),t(50)(i),t(51)(i)),i.plugins.register(o),i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.canvasHelpers=i.helpers.canvas},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,35:35,40:40,45:45,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t){t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return t.length>0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(t){t.controllers.bar=t.DatasetController.extend({dataElementType:o.Rectangle,initialize:function(){var e,n=this;t.DatasetController.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0},update:function(t){var e,n,i=this,o=i.getMeta().data;for(i._ruler=i.getRuler(),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t)},updateElement:function(t,e,n){var i=this,o=i.chart,a=i.getMeta(),s=i.getDataset(),l=t.custom||{},u=o.options.elements.rectangle;t._xScale=i.getScaleForId(a.xAxisID),t._yScale=i.getScaleForId(a.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:s.label,label:o.data.labels[e],borderSkipped:l.borderSkipped?l.borderSkipped:u.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:r.valueAtIndexOrDefault(s.backgroundColor,e,u.backgroundColor),borderColor:l.borderColor?l.borderColor:r.valueAtIndexOrDefault(s.borderColor,e,u.borderColor),borderWidth:l.borderWidth?l.borderWidth:r.valueAtIndexOrDefault(s.borderWidth,e,u.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,o=t._model,r=i.getValueScale(),a=r.getBasePixel(),s=r.isHorizontal(),l=i._ruler||i.getRuler(),u=i.calculateBarValuePixels(i.index,e),c=i.calculateBarIndexPixels(i.index,e,l);o.horizontal=s,o.base=n?a:u.base,o.x=s?n?a:u.head:c.center,o.y=s?c.center:n?a:u.head,o.height=s?c.size:void 0,o.width=s?void 0:c.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(t){var e,n,i=this.chart,o=this.getIndexScale().options.stacked,r=void 0===t?i.data.datasets.length:t+1,a=[];for(e=0;e<r;++e)(n=i.getDatasetMeta(e)).bar&&i.isDatasetVisible(e)&&(!1===o||!0===o&&-1===a.indexOf(n.stack)||void 0===o&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a.length},getStackIndex:function(t){return this.getStackCount(t)-1},getRuler:function(){var t,e,n=this,i=n.getIndexScale(),o=n.getStackCount(),r=n.index,a=[],s=i.isHorizontal(),l=s?i.left:i.top,u=l+(s?i.width:i.height);for(t=0,e=n.getMeta().data.length;t<e;++t)a.push(i.getPixelForValue(null,t,r));return{pixels:a,start:l,end:u,stackCount:o,scale:i}},calculateBarValuePixels:function(t,e){var n,i,o,r,a,s,l=this,u=l.chart,c=l.getMeta(),d=l.getValueScale(),h=u.data.datasets,f=d.getRightValue(h[t].data[e]),p=d.options.stacked,g=c.stack,v=0;if(p||void 0===p&&void 0!==g)for(n=0;n<t;++n)(i=u.getDatasetMeta(n)).bar&&i.stack===g&&i.controller.getValueScaleId()===d.id&&u.isDatasetVisible(n)&&(o=d.getRightValue(h[n].data[e]),(f<0&&o<0||f>=0&&o>0)&&(v+=o));return r=d.getPixelForValue(v),{size:s=((a=d.getPixelForValue(v+f))-r)/2,base:r,head:a,center:a+s/2}},calculateBarIndexPixels:function(t,e,n){var i,o,a,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(i=h>p?h-p:g-h,o=h<g?g-h:h-p):(e>0&&(i=(h-d[e-1])/2,e===f-1&&(o=i)),e<f-1&&(o=(d[e+1]-h)/2,0===e&&(i=o))),l=(s=((a=i*u.categoryPercentage)+o*u.categoryPercentage)/n.stackCount)*u.barPercentage,h-=a,h+=s*c,{size:l=Math.min(r.valueOrDefault(u.barThickness,l),r.valueOrDefault(u.maxBarThickness,1/0)),base:h+=(s-l)/2,head:h+l,center:h+l/2}},draw:function(){var t=this,e=t.chart,n=t.getValueScale(),i=t.getMeta().data,o=t.getDataset(),a=i.length,s=0;for(r.canvas.clipArea(e.ctx,e.chartArea);s<a;++s)isNaN(n.getRightValue(o.data[s]))||i[s].draw();r.canvas.unclipArea(e.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},o=t._model;o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:r.valueAtIndexOrDefault(e.hoverBackgroundColor,n,r.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:r.valueAtIndexOrDefault(e.hoverBorderColor,n,r.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:r.valueAtIndexOrDefault(e.hoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},o=t._model,a=this.chart.options.elements.rectangle;o.backgroundColor=i.backgroundColor?i.backgroundColor:r.valueAtIndexOrDefault(e.backgroundColor,n,a.backgroundColor),o.borderColor=i.borderColor?i.borderColor:r.valueAtIndexOrDefault(e.borderColor,n,a.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:r.valueAtIndexOrDefault(e.borderWidth,n,a.borderWidth)}}),t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": ("+t.xLabel+", "+t.yLabel+", "+e.datasets[t.datasetIndex].data[t.index].r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:o.Point,update:function(t){var e=this,n=e.getMeta().data;r.each(n,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,o=i.getMeta(),r=t.custom||{},a=i.getScaleForId(o.xAxisID),s=i.getScaleForId(o.yAxisID),l=i._resolveElementOptions(t,e),u=i.getDataset().data[e],c=i.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof u?u:NaN,e,c),h=n?s.getBasePixel():s.getPixelForValue(u,e,c);t._xScale=a,t._yScale=s,t._options=l,t._datasetIndex=c,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:r.skip||isNaN(d)||isNaN(h),x:d,y:h},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options;e.backgroundColor=r.valueOrDefault(n.hoverBackgroundColor,r.getHoverColor(n.backgroundColor)),e.borderColor=r.valueOrDefault(n.hoverBorderColor,r.getHoverColor(n.borderColor)),e.borderWidth=r.valueOrDefault(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},removeHoverStyle:function(t){var e=t._model,n=t._options;e.backgroundColor=n.backgroundColor,e.borderColor=n.borderColor,e.borderWidth=n.borderWidth,e.radius=n.radius},_resolveElementOptions:function(t,e){var n,i,o,a=this,s=a.chart,l=s.data.datasets[a.index],u=t.custom||{},c=s.options.elements.point,d=r.options.resolve,h=l.data[e],f={},p={chart:s,dataIndex:e,dataset:l,datasetIndex:a.index},g=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(n=0,i=g.length;n<i;++n)f[o=g[n]]=d([u[o],l[o],c[o]],p,e);return f.radius=d([u.radius,h?h.r:void 0,l.radius,c.radius],p,e),f}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,o=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)e.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),o[r]&&e.push(o[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var o=t.getDatasetMeta(0),a=e.datasets[0],s=o.data[i],l=s&&s.custom||{},u=r.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,o,r=e.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return r.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}}),i._set("pie",r.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(t){t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:o.Arc,linkScales:r.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e=this,n=e.chart,i=n.chartArea,o=n.options,a=o.elements.arc,s=i.right-i.left-a.borderWidth,l=i.bottom-i.top-a.borderWidth,u=Math.min(s,l),c={x:0,y:0},d=e.getMeta(),h=o.cutoutPercentage,f=o.circumference;if(f<2*Math.PI){var p=o.rotation%(2*Math.PI),g=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},y=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,b=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,x=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,w=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,k=h/100,C={x:x?-1:Math.min(v.x*(v.x<0?1:k),m.x*(m.x<0?1:k)),y:w?-1:Math.min(v.y*(v.y<0?1:k),m.y*(m.y<0?1:k))},T={x:y?1:Math.max(v.x*(v.x>0?1:k),m.x*(m.x>0?1:k)),y:b?1:Math.max(v.y*(v.y>0?1:k),m.y*(m.y>0?1:k))},S={width:.5*(T.x-C.x),height:.5*(T.y-C.y)};u=Math.min(s/S.width,l/S.height),c={x:-.5*(T.x+C.x),y:-.5*(T.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),r.each(d.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,o=i.chart,a=o.chartArea,s=o.options,l=s.animation,u=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=s.rotation,h=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI));r.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+o.offsetX,y:c+o.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:n&&l.animateScale?0:i.outerRadius,innerRadius:n&&l.animateScale?0:i.innerRadius,label:(0,r.valueAtIndexOrDefault)(f.label,e,o.data.labels[e])}});var g=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(g.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return r.each(n.data,function(n,o){t=e.data[o],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,o=this.index,r=t.length,a=0;a<r;a++)e=t[a]._model?t[a]._model.borderWidth:0,i=(n=t[a]._chart?t[a]._chart.config.data.datasets[o].hoverBorderWidth:0)>(i=e>i?e:i)?n:i;return i}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return r.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function(t){var n,i,o,a=this,s=a.getMeta(),l=s.dataset,u=s.data||[],c=a.chart.options,d=c.elements.line,h=a.getScaleForId(s.yAxisID),f=a.getDataset(),p=e(f,c);for(p&&(o=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=a.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:o.tension?o.tension:r.valueOrDefault(f.lineTension,d.tension),backgroundColor:o.backgroundColor?o.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:f.borderWidth||d.borderWidth,borderColor:o.borderColor?o.borderColor:f.borderColor||d.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:o.borderDash?o.borderDash:f.borderDash||d.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:o.fill?o.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:o.steppedLine?o.steppedLine:r.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:r.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n<i;++n)a.updateElement(u[n],n,t);for(p&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,i=u.length;n<i;++n)u[n].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),o=t.custom||{};return o.backgroundColor?n=o.backgroundColor:i.pointBackgroundColor?n=r.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),o=t.custom||{};return o.borderColor?n=o.borderColor:i.pointBorderColor?n=r.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),o=t.custom||{};return isNaN(o.borderWidth)?!isNaN(i.pointBorderWidth)||r.isArray(i.pointBorderWidth)?n=r.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=o.borderWidth,n},updateElement:function(t,e,n){var i,o,a=this,s=a.getMeta(),l=t.custom||{},u=a.getDataset(),c=a.index,d=u.data[e],h=a.getScaleForId(s.yAxisID),f=a.getScaleForId(s.xAxisID),p=a.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),i=f.getPixelForValue("object"==typeof d?d:NaN,e,c),o=n?h.getBasePixel():a.calculatePointY(d,e,c),t._xScale=f,t._yScale=h,t._datasetIndex=c,t._index=e,t._model={x:i,y:o,skip:l.skip||isNaN(i)||isNaN(o),radius:l.radius||r.valueAtIndexOrDefault(u.pointRadius,e,p.radius),pointStyle:l.pointStyle||r.valueAtIndexOrDefault(u.pointStyle,e,p.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||r.valueAtIndexOrDefault(u.pointHitRadius,e,p.hitRadius)}},calculatePointY:function(t,e,n){var i,o,r,a=this,s=a.chart,l=a.getMeta(),u=a.getScaleForId(l.yAxisID),c=0,d=0;if(u.options.stacked){for(i=0;i<n;i++)if(o=s.data.datasets[i],"line"===(r=s.getDatasetMeta(i)).type&&r.yAxisID===u.id&&s.isDatasetVisible(i)){var h=Number(u.getRightValue(o.data[e]));h<0?d+=h||0:c+=h||0}var f=Number(u.getRightValue(t));return u.getPixelForValue(f<0?d+f:c+f)}return u.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,n){return Math.max(Math.min(t,n),e)}var e,n,i,o,a=this,s=a.getMeta(),l=a.chart.chartArea,u=s.data||[];if(s.dataset._model.spanGaps&&(u=u.filter(function(t){return!t._model.skip})),"monotone"===s.dataset._model.cubicInterpolationMode)r.splineCurveMonotone(u);else for(e=0,n=u.length;e<n;++e)i=u[e]._model,o=r.splineCurve(r.previousItem(u,e)._model,i,r.nextItem(u,e)._model,s.dataset._model.tension),i.controlPointPreviousX=o.previous.x,i.controlPointPreviousY=o.previous.y,i.controlPointNextX=o.next.x,i.controlPointNextY=o.next.y;if(a.chart.options.elements.line.capBezierPoints)for(e=0,n=u.length;e<n;++e)(i=u[e]._model).controlPointPreviousX=t(i.controlPointPreviousX,l.left,l.right),i.controlPointPreviousY=t(i.controlPointPreviousY,l.top,l.bottom),i.controlPointNextX=t(i.controlPointNextX,l.left,l.right),i.controlPointNextY=t(i.controlPointNextY,l.top,l.bottom)},draw:function(){var t=this,n=t.chart,i=t.getMeta(),o=i.data||[],a=n.chartArea,s=o.length,l=0;for(r.canvas.clipArea(n.ctx,a),e(t.getDataset(),n.options)&&i.dataset.draw(),r.canvas.unclipArea(n.ctx);l<s;++l)o[l].draw(a)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},o=t._model;o.radius=i.hoverRadius||r.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor||r.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,r.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor||r.valueAtIndexOrDefault(e.pointHoverBorderColor,n,r.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth||r.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,o=t.custom||{},a=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),a.radius=o.radius||r.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),a.backgroundColor=e.getPointBackgroundColor(t,i),a.borderColor=e.getPointBorderColor(t,i),a.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,o=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)e.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),o[r]&&e.push(o[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var o=t.getDatasetMeta(0),a=e.datasets[0],s=o.data[i].custom||{},l=r.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(a.backgroundColor,i,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(a.borderColor,i,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(a.borderWidth,i,u.borderWidth),hidden:isNaN(a.data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,o,r=e.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r].hidden=!o.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(t){t.controllers.polarArea=t.DatasetController.extend({dataElementType:o.Arc,linkScales:r.noop,update:function(t){var e=this,n=e.chart,i=n.chartArea,o=e.getMeta(),a=n.options,s=a.elements.arc,l=Math.min(i.right-i.left,i.bottom-i.top);n.outerRadius=Math.max((l-s.borderWidth/2)/2,0),n.innerRadius=Math.max(a.cutoutPercentage?n.outerRadius/100*a.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),e.outerRadius=n.outerRadius-n.radiusLength*e.index,e.innerRadius=e.outerRadius-n.radiusLength,o.count=e.countVisibleElements(),r.each(o.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){for(var i=this,o=i.chart,a=i.getDataset(),s=o.options,l=s.animation,u=o.scale,c=o.data.labels,d=i.calculateCircumference(a.data[e]),h=u.xCenter,f=u.yCenter,p=0,g=i.getMeta(),v=0;v<e;++v)isNaN(a.data[v])||g.data[v].hidden||++p;var m=s.startAngle,y=t.hidden?0:u.getDistanceFromCenterForValue(a.data[e]),b=m+d*p,x=b+(t.hidden?0:d),w=l.animateScale?0:u.getDistanceFromCenterForValue(a.data[e]);r.extend(t,{_datasetIndex:i.index,_index:e,_scale:u,_model:{x:h,y:f,innerRadius:0,outerRadius:n?w:y,startAngle:n&&l.animateRotate?m:b,endAngle:n&&l.animateRotate?m:x,label:r.valueAtIndexOrDefault(c,e,c[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return r.each(e.data,function(e,i){isNaN(t.data[i])||e.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:r.noop,update:function(t){var e=this,n=e.getMeta(),i=n.data,o=n.dataset.custom||{},a=e.getDataset(),s=e.chart.options.elements.line,l=e.chart.scale;void 0!==a.tension&&void 0===a.lineTension&&(a.lineTension=a.tension),r.extend(n.dataset,{_datasetIndex:e.index,_scale:l,_children:i,_loop:!0,_model:{tension:o.tension?o.tension:r.valueOrDefault(a.lineTension,s.tension),backgroundColor:o.backgroundColor?o.backgroundColor:a.backgroundColor||s.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:a.borderWidth||s.borderWidth,borderColor:o.borderColor?o.borderColor:a.borderColor||s.borderColor,fill:o.fill?o.fill:void 0!==a.fill?a.fill:s.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:a.borderCapStyle||s.borderCapStyle,borderDash:o.borderDash?o.borderDash:a.borderDash||s.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:a.borderDashOffset||s.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:a.borderJoinStyle||s.borderJoinStyle}}),n.dataset.pivot(),r.each(i,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,o=t.custom||{},a=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,a.data[e]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),r.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:o.tension?o.tension:r.valueOrDefault(a.lineTension,i.chart.options.elements.line.tension),radius:o.radius?o.radius:r.valueAtIndexOrDefault(a.pointRadius,e,l.radius),backgroundColor:o.backgroundColor?o.backgroundColor:r.valueAtIndexOrDefault(a.pointBackgroundColor,e,l.backgroundColor),borderColor:o.borderColor?o.borderColor:r.valueAtIndexOrDefault(a.pointBorderColor,e,l.borderColor),borderWidth:o.borderWidth?o.borderWidth:r.valueAtIndexOrDefault(a.pointBorderWidth,e,l.borderWidth),pointStyle:o.pointStyle?o.pointStyle:r.valueAtIndexOrDefault(a.pointStyle,e,l.pointStyle),hitRadius:o.hitRadius?o.hitRadius:r.valueAtIndexOrDefault(a.pointHitRadius,e,l.hitRadius)}}),t._model.skip=o.skip?o.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();r.each(e.data,function(n,i){var o=n._model,a=r.splineCurve(r.previousItem(e.data,i,!0)._model,o,r.nextItem(e.data,i,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(a.previous.x,t.right),t.left),o.controlPointPreviousY=Math.max(Math.min(a.previous.y,t.bottom),t.top),o.controlPointNextX=Math.max(Math.min(a.next.x,t.right),t.left),o.controlPointNextY=Math.max(Math.min(a.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,o=t._model;o.radius=n.hoverRadius?n.hoverRadius:r.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:r.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,r.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor?n.hoverBorderColor:r.valueAtIndexOrDefault(e.pointHoverBorderColor,i,r.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:r.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,o=t._model,a=this.chart.options.elements.point;o.radius=n.radius?n.radius:r.valueAtIndexOrDefault(e.pointRadius,i,a.radius),o.backgroundColor=n.backgroundColor?n.backgroundColor:r.valueAtIndexOrDefault(e.pointBackgroundColor,i,a.backgroundColor),o.borderColor=n.borderColor?n.borderColor:r.valueAtIndexOrDefault(e.pointBorderColor,i,a.borderColor),o.borderWidth=n.borderWidth?n.borderWidth:r.valueAtIndexOrDefault(e.pointBorderWidth,i,a.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=o.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var o,r,a=this.animations;for(e.chart=t,i||(t.animating=!0),o=0,r=a.length;o<r;++o)if(a[o].chart===t)return void(a[o]=e);a.push(e),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=r.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;t.dropFrames>1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,o=0;o<i.length;)n=(e=i[o]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[n,e],n),r.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(28),a=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=o.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},o.extend(t.prototype,{construct:function(n,i){var r=this;i=e(i);var s=a.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;r.id=o.uid(),r.ctx=s,r.canvas=l,r.config=i,r.width=c,r.height=u,r.aspectRatio=u?c/u:null,r.options=i.options,r._bufferedRender=!1,r.chart=r,r.controller=r,t.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(t){r.config.data=t}}),s&&l?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),o.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return o.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(o.getMaximumWidth(i))),l=Math.max(0,Math.floor(r?a/r:o.getMaximumHeight(i)));if((e.width!==a||e.height!==l)&&(i.width=e.width=a,i.height=e.height=l,i.style.width=a+"px",i.style.height=l+"px",o.retinaScale(e,n.devicePixelRatio),!t)){var u={width:a,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;o.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),o.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,i=e.options,r=e.scales={},a=[];i.scales&&(a=a.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),i.scale&&a.push({options:i.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),o.each(a,function(i){var a=i.options,s=o.valueOrDefault(a.type,i.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(a.position)!==n(i.dposition)&&(a.position=i.dposition);var u=new l({id:a.id,options:a,ctx:e.ctx,chart:e});r[u.id]=u,u.mergeTicksOptions(),i.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return o.each(e.data.datasets,function(o,r){var a=e.getDatasetMeta(r),s=o.type||e.config.type;if(a.type&&a.type!==s&&(e.destroyDatasetMeta(r),a=e.getDatasetMeta(r)),a.type=s,n.push(a.type),a.controller)a.controller.updateIndex(r);else{var l=t.controllers[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(e,r),i.push(a.controller)}},e),i},resetElements:function(){var t=this;o.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();o.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),o.each(n,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e<n;++e)t.updateDataset(e);s.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,n=e.getDatasetMeta(t),i={meta:n,index:t};!1!==s.notify(e,"beforeDatasetUpdate",[i])&&(n.controller.update(),s.notify(e,"afterDatasetUpdate",[i]))},render:function(e){var n=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var i=e.duration,r=e.lazy;if(!1!==s.notify(n,"beforeRender")){var a=n.options.animation,l=function(t){s.notify(n,"afterRender"),o.callback(a&&a.onComplete,[t],n)};if(a&&(void 0!==i&&0!==i||void 0===i&&0!==a.duration)){var u=new t.Animation({numSteps:(i||a.duration)/16.66,easing:e.easing||a.easing,render:function(t,e){var n=e.currentStep,i=n/e.numSteps;t.draw((0,o.easing.effects[e.easing])(i),i,n)},onAnimationProgress:a.onProgress,onAnimationComplete:l});t.animationService.addAnimation(n,u,i,r)}else n.draw(),l(new t.Animation({numSteps:0,chart:n}));return n}},draw:function(t){var e=this;e.clear(),o.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==s.notify(e,"beforeDraw",[t])&&(o.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),s.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=this,n=0,i=(e.data.datasets||[]).length;n<i;++n)e.isDatasetVisible(n)&&e.getDatasetMeta(n).controller.transition(t);e.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==s.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;n>=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),o={meta:i,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[o])&&(i.controller.draw(e),s.notify(n,"afterDatasetDraw",[o]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==s.notify(e,"beforeTooltipDraw",[i])&&(n.draw(),s.notify(e,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return r.modes.single(this,t)},getElementsAtEvent:function(t){return r.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return r.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=r.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return r.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],i=n._meta&&n._meta[e];i&&(i.controller.destroy(),delete n._meta[e])},destroy:function(){var e,n,i=this,r=i.canvas;for(i.stop(),e=0,n=i.data.datasets.length;e<n;++e)i.destroyDatasetMeta(e);r&&(i.unbindEvents(),o.canvas.clear(i),a.releaseContext(i.ctx),i.canvas=null,i.ctx=null),s.notify(i,"destroy"),delete t.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};o.each(t.options.events,function(i){a.addEventListener(t,i,n),e[i]=n}),t.options.responsive&&(a.addEventListener(t,"resize",n=function(){t.resize()}),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,o.each(e,function(e,n){a.removeEventListener(t,n,e)}))},updateHoverStyle:function(t,e,n){var i,o,r,a=n?"setHoverStyle":"removeHoverStyle";for(o=0,r=t.length;o<r;++o)(i=t[o])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==s.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);i|=n&&n.handleEvent(t),s.notify(e,"afterEvent",[t]);var o=e._bufferedRequest;return o?e.render(o):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],n.active="mouseout"===t.type?[]:n.getElementsAtEventForMode(t,r.mode,r),o.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),e=!o.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),t.Controller=t}},{25:25,28:28,45:45,48:48}],24:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){function e(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),o.forEach(function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),r=o.apply(this,e);return i.each(t._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),r}})}))}function n(t,e){var n=t._chartjs;if(n){var i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(o.forEach(function(e){delete t[e]}),delete t._chartjs)}}var o=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),o=n.getDataset().data||[],r=i.data;for(t=0,e=o.length;t<e;++t)r[t]=r[t]||n.createMetaData(t);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,i=t.getDataset(),o=i.data||(i.data=[]);t._data!==o&&(t._data&&n(t._data,t),e(o,t),t._data=o),t.resyncElements()},update:i.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,o=0;o<i;++o)n[o].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],o=t._index,r=t.custom||{},a=i.valueAtIndexOrDefault,s=t._model;s.backgroundColor=r.backgroundColor?r.backgroundColor:a(n.backgroundColor,o,e.backgroundColor),s.borderColor=r.borderColor?r.borderColor:a(n.borderColor,o,e.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:a(n.borderWidth,o,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},r=i.valueAtIndexOrDefault,a=i.getHoverColor,s=t._model;s.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:r(e.hoverBackgroundColor,n,a(s.backgroundColor)),s.borderColor=o.hoverBorderColor?o.hoverBorderColor:r(e.hoverBorderColor,n,a(s.borderColor)),s.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:r(e.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var t=this,e=t.getMeta(),n=t.getDataset().data,i=e.data.length,o=n.length;o<i?e.data.splice(o,i-o):o>i&&t.insertElements(i,o-i)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=i.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";function i(t,e,n,i){var r,a,s,l,u,c,d,h,f,p=Object.keys(n);for(r=0,a=p.length;r<a;++r)if(c=n[s=p[r]],e.hasOwnProperty(s)||(e[s]=c),(l=e[s])!==c&&"_"!==s[0]){if(t.hasOwnProperty(s)||(t[s]=l),(d=typeof c)==typeof(u=t[s]))if("string"===d){if((h=o(u)).valid&&(f=o(c)).valid){e[s]=f.mix(h,i).rgbString();continue}}else if("number"===d&&isFinite(u)&&isFinite(c)){e[s]=u+(c-u)*i;continue}e[s]=c}}var o=t(3),r=t(45),a=function(t){r.extend(this,t),this.initialize.apply(this,arguments)};r.extend(a.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=r.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,o=e._start,r=e._view;return n&&1!==t?(r||(r=e._view={}),o||(o=e._start={}),i(o,r,n,t),e):(e._view=n,e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return r.isNumber(this._model.x)&&r.isNumber(this._model.y)}}),a.extend=r.inherits,e.exports=a},{3:3,45:45}],27:[function(t,e,n){"use strict";var i=t(3),o=t(25),r=t(45);e.exports=function(t){function e(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function n(t){return void 0!==t&&null!==t&&"none"!==t}function a(t,i,o){var r=document.defaultView,a=t.parentNode,s=r.getComputedStyle(t)[i],l=r.getComputedStyle(a)[i],u=n(s),c=n(l),d=Number.POSITIVE_INFINITY;return u||c?Math.min(u?e(s,t,o):d,c?e(l,a,o):d):"none"}r.configMerge=function(){return r.merge(r.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,n,i,o){var a=n[e]||{},s=i[e];"scales"===e?n[e]=r.scaleMerge(a,s):"scale"===e?n[e]=r.merge(a,[t.scaleService.getScaleDefaults(s.type),s]):r._merger(e,n,i,o)}})},r.scaleMerge=function(){return r.merge(r.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,n,i,o){if("xAxes"===e||"yAxes"===e){var a,s,l,u=i[e].length;for(n[e]||(n[e]=[]),a=0;a<u;++a)s=r.valueOrDefault((l=i[e][a]).type,"xAxes"===e?"category":"linear"),a>=n[e].length&&n[e].push({}),r.merge(n[e][a],!n[e][a].type||l.type&&l.type!==n[e][a].type?[t.scaleService.getScaleDefaults(s),l]:l)}else r._merger(e,n,i,o)}})},r.where=function(t,e){if(r.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return r.each(t,function(t){e(t)&&n.push(t)}),n},r.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,o=t.length;i<o;++i)if(e.call(n,t[i],i,t))return i;return-1},r.findNextWhere=function(t,e,n){r.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<t.length;i++){var o=t[i];if(e(o))return o}},r.findPreviousWhere=function(t,e,n){r.isNullOrUndef(n)&&(n=t.length);for(var i=n-1;i>=0;i--){var o=t[i];if(e(o))return o}},r.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},r.almostEquals=function(t,e,n){return Math.abs(t-e)<n},r.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&n+e>t},r.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},r.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},r.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},r.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},r.toRadians=function(t){return t*(Math.PI/180)},r.toDegrees=function(t){return t*(180/Math.PI)},r.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:o}},r.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},r.aliasPixel=function(t){return t%2==0?0:.5},r.splineCurve=function(t,e,n,i){var o=t.skip?e:t,r=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),u=s/(s+l),c=l/(s+l),d=i*(u=isNaN(u)?0:u),h=i*(c=isNaN(c)?0:c);return{previous:{x:r.x-d*(a.x-o.x),y:r.y-d*(a.y-o.y)},next:{x:r.x+h*(a.x-o.x),y:r.y+h*(a.y-o.y)}}},r.EPSILON=Number.EPSILON||1e-14,r.splineCurveMonotone=function(t){var e,n,i,o,a,s,l,u,c,d=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=d.length;for(e=0;e<h;++e)if(!(i=d[e]).model.skip){if(n=e>0?d[e-1]:null,(o=e<h-1?d[e+1]:null)&&!o.model.skip){var f=o.model.x-i.model.x;i.deltaK=0!==f?(o.model.y-i.model.y)/f:0}i.mK=!n||n.model.skip?i.deltaK:!o||o.model.skip?n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?0:(n.deltaK+i.deltaK)/2}for(e=0;e<h-1;++e)o=d[e+1],(i=d[e]).model.skip||o.model.skip||(r.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=o.mK=0:(a=i.mK/i.deltaK,s=o.mK/i.deltaK,(u=Math.pow(a,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(u),i.mK=a*l*i.deltaK,o.mK=s*l*i.deltaK)));for(e=0;e<h;++e)(i=d[e]).model.skip||(n=e>0?d[e-1]:null,o=e<h-1?d[e+1]:null,n&&!n.model.skip&&(i.model.controlPointPreviousX=i.model.x-(c=(i.model.x-n.model.x)/3),i.model.controlPointPreviousY=i.model.y-c*i.mK),o&&!o.model.skip&&(i.model.controlPointNextX=i.model.x+(c=(o.model.x-i.model.x)/3),i.model.controlPointNextY=i.model.y+c*i.mK))},r.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},r.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},r.niceNum=function(t,e){var n=Math.floor(r.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},r.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},r.getRelativePosition=function(t,e){var n,i,o=t.originalEvent||t,a=t.currentTarget||t.srcElement,s=a.getBoundingClientRect(),l=o.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=o.clientX,i=o.clientY);var u=parseFloat(r.getStyle(a,"padding-left")),c=parseFloat(r.getStyle(a,"padding-top")),d=parseFloat(r.getStyle(a,"padding-right")),h=parseFloat(r.getStyle(a,"padding-bottom")),f=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/(s.right-s.left-u-d)*a.width/e.currentDevicePixelRatio),y:i=Math.round((i-s.top-c)/f*a.height/e.currentDevicePixelRatio)}},r.getConstraintWidth=function(t){return a(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return a(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(r.getStyle(e,"padding-left"),10),i=parseInt(r.getStyle(e,"padding-right"),10),o=e.clientWidth-n-i,a=r.getConstraintWidth(t);return isNaN(a)?o:Math.min(o,a)},r.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(r.getStyle(e,"padding-top"),10),i=parseInt(r.getStyle(e,"padding-bottom"),10),o=e.clientHeight-n-i,a=r.getConstraintHeight(t);return isNaN(a)?o:Math.min(o,a)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,o=t.height,r=t.width;i.height=o*n,i.width=r*n,t.ctx.scale(n,n),i.style.height=o+"px",i.style.width=r+"px"}},r.fontString=function(t,e,n){return e+" "+t+"px "+n},r.longestText=function(t,e,n,i){var o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},a=i.garbageCollect=[],i.font=e),t.font=e;var s=0;r.each(n,function(e){void 0!==e&&null!==e&&!0!==r.isArray(e)?s=r.measureText(t,o,a,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,o,a,s,e))})});var l=a.length/2;if(l>n.length){for(var u=0;u<l;u++)delete o[a[u]];a.splice(0,l)}return s},r.measureText=function(t,e,n,i,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.color=i?function(t){return t instanceof CanvasGradient&&(t=o.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function i(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function o(t,e){var n,i,o,r,a;for(i=0,r=t.data.datasets.length;i<r;++i)if(t.isDatasetVisible(i))for(o=0,a=(n=t.getDatasetMeta(i)).data.length;o<a;++o){var s=n.data[o];s._view.skip||e(s)}}function r(t,e){var n=[];return o(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function a(t,e,n,i){var r=Number.POSITIVE_INFINITY,a=[];return o(t,function(t){if(!n||t.inRange(e.x,e.y)){var o=t.getCenterPoint(),s=i(e,o);s<r?(a=[t],r=s):s===r&&a.push(t)}}),a}function s(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){var o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function l(t,e,n){var o=i(e,t);n.axis=n.axis||"x";var l=s(n.axis),u=n.intersect?r(t,o):a(t,o,!1,l),c=[];return u.length?(t.data.datasets.forEach(function(e,n){if(t.isDatasetVisible(n)){var i=t.getDatasetMeta(n).data[u[0]._index];i&&!i._view.skip&&c.push(i)}}),c):[]}var u=t(45);e.exports={modes:{single:function(t,e){var n=i(e,t),r=[];return o(t,function(t){if(t.inRange(n.x,n.y))return r.push(t),r}),r.slice(0,1)},label:l,index:l,dataset:function(t,e,n){var o=i(e,t);n.axis=n.axis||"xy";var l=s(n.axis),u=n.intersect?r(t,o):a(t,o,!1,l);return u.length>0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){return r(t,i(e,t))},nearest:function(t,e,n){var o=i(e,t);n.axis=n.axis||"xy";var r=s(n.axis),l=a(t,o,n.intersect,r);return l.length>1&&l.sort(function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n}),l.slice(0,1)},x:function(t,e,n){var r=i(e,t),a=[],s=!1;return o(t,function(t){t.inXRange(r.x)&&a.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(t,e,n){var r=i(e,t),a=[],s=!1;return o(t,function(t){t.inYRange(r.y)&&a.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,o=e?t:n;return i.weight===o.weight?i._tmpIndex_-o._tmpIndex_:i.weight-o.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,o=["fullWidth","position","weight"],r=o.length,a=0;a<r;++a)n.hasOwnProperty(i=o[a])&&(e[i]=n[i])},update:function(t,o,r){function a(t){var e=i.findNextWhere(S,function(e){return e.box===t});if(e)if(t.isHorizontal()){var n={left:Math.max(_,M),right:Math.max(I,A),top:0,bottom:0};t.update(t.fullWidth?y:C,b/2,n)}else t.update(e.minSize.width,T)}function s(t){t.isHorizontal()?(t.left=t.fullWidth?u:_,t.right=t.fullWidth?o-c:_+C,t.top=W,t.bottom=W+t.height,W=t.bottom):(t.left=z,t.right=z+t.width,t.top=O,t.bottom=O+T,z=t.right)}if(t){var l=i.options.toPadding((t.options.layout||{}).padding),u=l.left,c=l.right,d=l.top,h=l.bottom,f=e(t.boxes,"left"),p=e(t.boxes,"right"),g=e(t.boxes,"top"),v=e(t.boxes,"bottom"),m=e(t.boxes,"chartArea");n(f,!0),n(p,!1),n(g,!0),n(v,!1);var y=o-u-c,b=r-d-h,x=b/2,w=(o-y/2)/(f.length+p.length),k=(r-x)/(g.length+v.length),C=y,T=b,S=[];i.each(f.concat(p,g,v),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?y:C,k),T-=e.height):(e=t.update(w,x),C-=e.width),S.push({horizontal:n,minSize:e,box:t})});var M=0,A=0,P=0,D=0;i.each(g.concat(v),function(t){if(t.getPadding){var e=t.getPadding();M=Math.max(M,e.left),A=Math.max(A,e.right)}}),i.each(f.concat(p),function(t){if(t.getPadding){var e=t.getPadding();P=Math.max(P,e.top),D=Math.max(D,e.bottom)}});var _=u,I=c,O=d,E=h;i.each(f.concat(p),a),i.each(f,function(t){_+=t.width}),i.each(p,function(t){I+=t.width}),i.each(g.concat(v),a),i.each(g,function(t){O+=t.height}),i.each(v,function(t){E+=t.height}),i.each(f.concat(p),function(t){var e=i.findNextWhere(S,function(e){return e.box===t});e&&t.update(e.minSize.width,T,{left:0,right:0,top:O,bottom:E})}),_=u,I=c,O=d,E=h,i.each(f,function(t){_+=t.width}),i.each(p,function(t){I+=t.width}),i.each(g,function(t){O+=t.height}),i.each(v,function(t){E+=t.height});var L=Math.max(M-_,0);_+=L,I+=Math.max(A-I,0);var F=Math.max(P-O,0);O+=F,E+=Math.max(D-E,0);var N=r-O-E,R=o-_-I;R===C&&N===T||(i.each(f,function(t){t.height=N}),i.each(p,function(t){t.height=N}),i.each(g,function(t){t.fullWidth||(t.width=R)}),i.each(v,function(t){t.fullWidth||(t.width=R)}),T=N,C=R);var z=u+L,W=d+F;i.each(f.concat(g),s),z+=C,W+=T,i.each(p,s),i.each(v,s),t.chartArea={left:_,top:O,right:_+C,bottom:O+T},i.each(m,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(C,T)})}}}}},{45:45}],31:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{plugins:{}}),e.exports=function(t){t.plugins={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,o,r,a,s,l=this.descriptors(t),u=l.length;for(i=0;i<u;++i)if("function"==typeof(s=(r=(o=l[i]).plugin)[e])&&((a=[t].concat(n||[])).push(o.options),!1===s.apply(r,a)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],o=[],a=t&&t.config||{},s=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(t){if(-1===n.indexOf(t)){var e=t.id,a=s[e];!1!==a&&(!0===a&&(a=r.clone(i.global.plugins[e])),n.push(t),o.push({plugin:t,options:a||{}}))}}),e.descriptors=o,e.id=this._cacheId,o}},t.pluginService=t.plugins,t.PluginBase=o.extend({})}},{25:25,26:26,45:45}],32:[function(t,e,n){"use strict";function i(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(t[e].label);return i}function o(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}var r=t(25),a=t(26),s=t(45),l=t(34);r._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:l.formatters.values,minor:{},major:{}}}),e.exports=function(t){function e(t,e,n){return s.isArray(e)?s.longestText(t,n,e):t.measureText(e).width}function n(t){var e=s.valueOrDefault,n=r.global,i=e(t.fontSize,n.defaultFontSize),o=e(t.fontStyle,n.defaultFontStyle),a=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:o,family:a,font:s.fontString(i,o,a)}}function l(t){return s.options.toLineHeight(s.valueOrDefault(t.lineHeight,1.2),s.valueOrDefault(t.fontSize,r.global.defaultFontSize))}t.Scale=a.extend({getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){s.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,o,r,a,l,u,c=this;for(c.beforeUpdate(),c.maxWidth=t,c.maxHeight=e,c.margins=s.extend({left:0,right:0,top:0,bottom:0},n),c.longestTextCache=c.longestTextCache||{},c.beforeSetDimensions(),c.setDimensions(),c.afterSetDimensions(),c.beforeDataLimits(),c.determineDataLimits(),c.afterDataLimits(),c.beforeBuildTicks(),l=c.buildTicks()||[],c.afterBuildTicks(),c.beforeTickToLabelConversion(),r=c.convertTicksToLabels(l)||c.ticks,c.afterTickToLabelConversion(),c.ticks=r,i=0,o=r.length;i<o;++i)a=r[i],(u=l[i])?u.label=a:l.push(u={label:a,major:!1});return c._ticks=l,c.beforeCalculateTickRotation(),c.calculateTickRotation(),c.afterCalculateTickRotation(),c.beforeFit(),c.fit(),c.afterFit(),c.afterUpdate(),c.minSize},afterUpdate:function(){s.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){s.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){s.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){s.callback(this.options.beforeDataLimits,[this])},determineDataLimits:s.noop,afterDataLimits:function(){s.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){s.callback(this.options.beforeBuildTicks,[this])},buildTicks:s.noop,afterBuildTicks:function(){s.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){s.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){s.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){s.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,o=t.options.ticks,r=i(t._ticks),a=n(o);e.font=a.font;var l=o.minRotation||0;if(r.length&&t.options.display&&t.isHorizontal())for(var u,c=s.longestText(e,a.font,r,t.longestTextCache),d=c,h=t.getPixelForTick(1)-t.getPixelForTick(0)-6;d>h&&l<o.maxRotation;){var f=s.toRadians(l);if(u=Math.cos(f),Math.sin(f)*c>t.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,o=t.minSize={width:0,height:0},r=i(t._ticks),a=t.options,u=a.ticks,c=a.scaleLabel,d=a.gridLines,h=a.display,f=t.isHorizontal(),p=n(u),g=a.gridLines.tickMarkLength;if(o.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,o.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?o.height+=v:o.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,r,t.longestTextCache),y=s.numberOfLabelLines(r),b=.5*p.size,x=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var w=s.toRadians(t.labelRotation),k=Math.cos(w),C=Math.sin(w)*m+p.size*y+b*(y-1)+b;o.height=Math.min(t.maxHeight,o.height+C+x),t.ctx.font=p.font;var T=e(t.ctx,r[0],p.font),S=e(t.ctx,r[r.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===a.position?k*T+3:k*b+3,t.paddingRight="bottom"===a.position?k*b+3:k*S+3):(t.paddingLeft=T/2+3,t.paddingRight=S/2+3)}else u.mirror?m=0:m+=x+b,o.width=Math.min(t.maxWidth,o.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=o.width,t.height=o.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),o=i*t+e.paddingLeft;return n&&(o+=i/2),e.left+Math.round(o)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*((e.height-(e.paddingTop+e.paddingBottom))/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;return e.isHorizontal()?e.left+Math.round((e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft)+(e.isFullWidth()?e.margins.left:0):e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,o,r=this,a=r.isHorizontal(),l=r.options.ticks.minor,u=t.length,c=s.toRadians(r.labelRotation),d=Math.cos(c),h=r.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),a&&(e=!1,(h+l.autoSkipPadding)*u>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(r.width-(r.paddingLeft+r.paddingRight)))),o&&u>o&&(e=Math.max(e,Math.floor(u/o)))),n=0;n<u;n++)i=t[n],(e>1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1&&delete i.label,f.push(i);return f},draw:function(t){var e=this,i=e.options;if(i.display){var a=e.ctx,u=r.global,c=i.ticks.minor,d=i.ticks.major||c,h=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=s.valueOrDefault(d.fontColor,u.defaultFontColor),x=n(d),w=h.drawTicks?h.tickMarkLength:0,k=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),T=s.options.toPadding(f.padding),S=s.toRadians(e.labelRotation),M=[],A="right"===i.position?e.left:e.right-w,P="right"===i.position?e.left+w:e.right,D="bottom"===i.position?e.top:e.bottom-w,_="bottom"===i.position?e.top+w:e.bottom;if(s.each(v,function(n,r){if(!s.isNullOrUndef(n.label)){var a,l,d,f,m=n.label;r===e.zeroLineIndex&&i.offset===h.offsetGridLines?(a=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(a=s.valueAtIndexOrDefault(h.lineWidth,r),l=s.valueAtIndexOrDefault(h.color,r),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var y,b,x,k,C,T,I,O,E,L,F="middle",N="middle",R=c.padding;if(g){var z=w+R;"bottom"===i.position?(N=p?"middle":"top",F=p?"right":"center",L=e.top+z):(N=p?"middle":"bottom",F=p?"left":"center",L=e.bottom-z);var W=o(e,r,h.offsetGridLines&&v.length>1);W<e.left&&(l="rgba(0,0,0,0)"),W+=s.aliasPixel(a),E=e.getPixelForTick(r)+c.labelOffset,y=x=C=I=W,b=D,k=_,T=t.top,O=t.bottom}else{var H,q="left"===i.position;c.mirror?(F=q?"left":"right",H=R):(F=q?"right":"left",H=w+R),E=q?e.right-H:e.left+H;var j=o(e,r,h.offsetGridLines&&v.length>1);j<e.top&&(l="rgba(0,0,0,0)"),j+=s.aliasPixel(a),L=e.getPixelForTick(r)+c.labelOffset,y=A,x=P,C=t.left,I=t.right,b=k=T=O=j}M.push({tx1:y,ty1:b,tx2:x,ty2:k,x1:C,y1:T,x2:I,y2:O,labelX:E,labelY:L,glWidth:a,glColor:l,glBorderDash:d,glBorderDashOffset:f,rotation:-1*S,label:m,major:n.major,textBaseline:N,textAlign:F})}}),s.each(M,function(t){if(h.display&&(a.save(),a.lineWidth=t.glWidth,a.strokeStyle=t.glColor,a.setLineDash&&(a.setLineDash(t.glBorderDash),a.lineDashOffset=t.glBorderDashOffset),a.beginPath(),h.drawTicks&&(a.moveTo(t.tx1,t.ty1),a.lineTo(t.tx2,t.ty2)),h.drawOnChartArea&&(a.moveTo(t.x1,t.y1),a.lineTo(t.x2,t.y2)),a.stroke(),a.restore()),c.display){a.save(),a.translate(t.labelX,t.labelY),a.rotate(t.rotation),a.font=t.major?x.font:y.font,a.fillStyle=t.major?b:m,a.textBaseline=t.textBaseline,a.textAlign=t.textAlign;var e=t.label;if(s.isArray(e))for(var n=0,i=0;n<e.length;++n)a.fillText(""+e[n],0,i),i+=1.5*y.size;else a.fillText(e,0,0);a.restore()}}),f.display){var I,O,E=0,L=l(f)/2;if(g)I=e.left+(e.right-e.left)/2,O="bottom"===i.position?e.bottom-L-T.bottom:e.top+L+T.top;else{var F="left"===i.position;I=F?e.left+L+T.top:e.right-L-T.top,O=e.top+(e.bottom-e.top)/2,E=F?-.5*Math.PI:.5*Math.PI}a.save(),a.translate(I,O),a.rotate(E),a.textAlign="center",a.textBaseline="middle",a.fillStyle=k,a.font=C.font,a.fillText(f.labelString,0,0),a.restore()}if(h.drawBorder){a.lineWidth=s.valueAtIndexOrDefault(h.lineWidth,0),a.strokeStyle=s.valueAtIndexOrDefault(h.color,0);var N=e.left,R=e.right,z=e.top,W=e.bottom,H=s.aliasPixel(a.lineWidth);g?(z=W="top"===i.position?e.bottom:e.top,z+=H,W+=H):(N=R="left"===i.position?e.right:e.left,N+=H,R+=H),a.beginPath(),a.moveTo(N,z),a.lineTo(R,W),a.stroke()}}}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),o=t(45);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=o.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?o.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var n=this;n.defaults.hasOwnProperty(t)&&(n.defaults[t]=o.extend(n.defaults[t],e))},addScalesToLayout:function(e){o.each(e.scales,function(n){n.fullWidth=n.options.fullWidth,n.position=n.options.position,n.weight=n.options.weight,t.layoutService.addBox(e,n)})}}}},{25:25,45:45}],34:[function(t,e,n){"use strict";var i=t(45);e.exports={generators:{linear:function(t,e){var n,o=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var r=i.niceNum(e.max-e.min,!1);n=i.niceNum(r/(t.maxTicks-1),!0)}var a=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(a=t.min,s=t.max);var l=(s-a)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),o.push(void 0!==t.min?t.min:a);for(var u=1;u<l;++u)o.push(a+u*n);return o.push(void 0!==t.max?t.max:s),o},logarithmic:function(t,e){var n,o,r=[],a=i.valueOrDefault,s=a(t.min,Math.pow(10,Math.floor(i.log10(e.min)))),l=Math.floor(i.log10(e.max)),u=Math.ceil(e.max/Math.pow(10,l));0===s?(n=Math.floor(i.log10(e.minNotZero)),o=Math.floor(e.minNotZero/Math.pow(10,n)),r.push(s),s=o*Math.pow(10,n)):(n=Math.floor(i.log10(s)),o=Math.floor(s/Math.pow(10,n)));do{r.push(s),10==++o&&(o=1,++n),s=o*Math.pow(10,n)}while(n<l||n===l&&o<u);var c=a(t.max,s);return r.push(c),r}},formatters:{values:function(t){return i.isArray(t)?t:""+t},linear:function(t,e,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var r=i.log10(Math.abs(o)),a="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),a=t.toFixed(s)}else a="0";return a},logarithmic:function(t,e,n){var o=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:r.noop,title:function(t,e){var n="",i=e.labels,o=i?i.length:0;if(t.length>0){var r=t[0];r.xLabel?n=r.xLabel:o>0&&r.index<o&&(n=i[r.index])}return n},afterTitle:r.noop,beforeBody:r.noop,beforeLabel:r.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),n+t.yLabel},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:r.noop,afterBody:r.noop,beforeFooter:r.noop,footer:r.noop,afterFooter:r.noop}}}),e.exports=function(t){function e(t,e){var n=r.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(r.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function a(t){var e=t._xScale,n=t._yScale||t._scale,i=t._index,o=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(i,o):"",yLabel:n?n.getLabelForIndex(i,o):"",index:i,datasetIndex:o,x:t._model.x,y:t._model.y}}function s(t){var e=i.global,n=r.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}t.Tooltip=o.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options.callbacks,i=e.beforeTitle.apply(t,arguments),o=e.title.apply(t,arguments),r=e.afterTitle.apply(t,arguments),a=[];return n(a=n(a=n(a,i),o),r)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,o=i._options.callbacks,a=[];return r.each(t,function(t){var r={before:[],lines:[],after:[]};n(r.before,o.beforeLabel.call(i,t,e)),n(r.lines,o.label.call(i,t,e)),n(r.after,o.afterLabel.call(i,t,e)),a.push(r)}),a},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),o=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),a=[];return n(a=n(a=n(a,i),o),r)},update:function(e){var n,i,o=this,l=o._options,u=o._model,c=o._model=s(l),d=o._active,h=o._data,f={xAlign:u.xAlign,yAlign:u.yAlign},p={x:u.x,y:u.y},g={width:u.width,height:u.height},v={x:u.caretX,y:u.caretY};if(d.length){c.opacity=1;var m=[],y=[];v=t.Tooltip.positioners[l.position].call(o,d,o._eventPosition);var b=[];for(n=0,i=d.length;n<i;++n)b.push(a(d[n]));l.filter&&(b=b.filter(function(t){return l.filter(t,h)})),l.itemSort&&(b=b.sort(function(t,e){return l.itemSort(t,e,h)})),r.each(b,function(t){m.push(l.callbacks.labelColor.call(o,t,o._chart)),y.push(l.callbacks.labelTextColor.call(o,t,o._chart))}),c.title=o.getTitle(b,h),c.beforeBody=o.getBeforeBody(b,h),c.body=o.getBody(b,h),c.afterBody=o.getAfterBody(b,h),c.footer=o.getFooter(b,h),c.x=Math.round(v.x),c.y=Math.round(v.y),c.caretPadding=l.caretPadding,c.labelColors=m,c.labelTextColors=y,c.dataPoints=b,p=function(t,e,n){var i=t.x,o=t.y,r=t.caretPadding,a=n.xAlign,s=n.yAlign,l=t.caretSize+r,u=t.cornerRadius+r;return"right"===a?i-=e.width:"center"===a&&(i-=e.width/2),"top"===s?o+=l:o-="bottom"===s?e.height+l:e.height/2,"center"===s?"left"===a?i+=l:"right"===a&&(i-=l):"left"===a?i-=u:"right"===a&&(i+=u),{x:i,y:o}}(c,g=function(t,e){var n=t._chart.ctx,i=2*e.yPadding,o=0,a=e.body,s=a.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=e.beforeBody.length+e.afterBody.length;var l=e.title.length,u=e.footer.length,c=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize;i+=l*c,i+=l?(l-1)*e.titleSpacing:0,i+=l?e.titleMarginBottom:0,i+=s*d,i+=s?(s-1)*e.bodySpacing:0,i+=u?e.footerMarginTop:0,i+=u*h,i+=u?(u-1)*e.footerSpacing:0;var f=0,p=function(t){o=Math.max(o,n.measureText(t).width+f)};return n.font=r.fontString(c,e._titleFontStyle,e._titleFontFamily),r.each(e.title,p),n.font=r.fontString(d,e._bodyFontStyle,e._bodyFontFamily),r.each(e.beforeBody.concat(e.afterBody),p),f=e.displayColors?d+2:0,r.each(a,function(t){r.each(t.before,p),r.each(t.lines,p),r.each(t.after,p)}),f=0,n.font=r.fontString(h,e._footerFontStyle,e._footerFontFamily),r.each(e.footer,p),{width:o+=2*e.xPadding,height:i}}(this,c),f=function(t,e){var n=t._model,i=t._chart,o=t._chart.chartArea,r="center",a="center";n.y<e.height?a="top":n.y>i.height-e.height&&(a="bottom");var s,l,u,c,d,h=(o.left+o.right)/2,f=(o.top+o.bottom)/2;"center"===a?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(r="left",u(n.x)&&(r="center",a=d(n.y))):l(n.x)&&(r="right",c(n.x)&&(r="center",a=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:r,yAlign:p.yAlign?p.yAlign:a}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,o._model=c,e&&l.custom&&l.custom.call(o,c),o},drawCaret:function(t,e){var n=this._chart.ctx,i=this.getCaretPosition(t,e,this._view);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var i,o,r,a,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(o=(i=f)-u,r=i,a=s+u,l=s-u):(o=(i=f+g)+u,r=i,a=s-u,l=s+u);else if("left"===d?(i=(o=f+c+u)-u,r=o+u):"right"===d?(i=(o=f+g-c-u)-u,r=o+u):(i=(o=f+g/2)-u,r=o+u),"top"===h)s=(a=p)-u,l=a;else{s=(a=p+v)+u,l=a;var m=r;r=i,i=m}return{x1:i,x2:o,x3:r,y1:a,y2:s,y3:l}},drawTitle:function(t,n,i,o){var a=n.title;if(a.length){i.textAlign=n._titleAlign,i.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(i.fillStyle=e(n.titleFontColor,o),i.font=r.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=a.length;s<l;++s)i.fillText(a[s],t.x,t.y),t.y+=u+c,s+1===a.length&&(t.y+=n.titleMarginBottom-c)}},drawBody:function(t,n,i,o){var a=n.bodyFontSize,s=n.bodySpacing,l=n.body;i.textAlign=n._bodyAlign,i.textBaseline="top",i.font=r.fontString(a,n._bodyFontStyle,n._bodyFontFamily);var u=0,c=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+s};i.fillStyle=e(n.bodyFontColor,o),r.each(n.beforeBody,c);var d=n.displayColors;u=d?a+2:0,r.each(l,function(s,l){var u=e(n.labelTextColors[l],o);i.fillStyle=u,r.each(s.before,c),r.each(s.lines,function(r){d&&(i.fillStyle=e(n.legendColorBackground,o),i.fillRect(t.x,t.y,a,a),i.lineWidth=1,i.strokeStyle=e(n.labelColors[l].borderColor,o),i.strokeRect(t.x,t.y,a,a),i.fillStyle=e(n.labelColors[l].backgroundColor,o),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=u),c(r)}),r.each(s.after,c)}),u=0,r.each(n.afterBody,c),t.y-=s},drawFooter:function(t,n,i,o){var a=n.footer;a.length&&(t.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=e(n.footerFontColor,o),i.font=r.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),r.each(a,function(e){i.fillText(e,t.x,t.y),t.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,n,i,o,r){i.fillStyle=e(n.backgroundColor,r),i.strokeStyle=e(n.borderColor,r),i.lineWidth=n.borderWidth;var a=n.xAlign,s=n.yAlign,l=t.x,u=t.y,c=o.width,d=o.height,h=n.cornerRadius;i.beginPath(),i.moveTo(l+h,u),"top"===s&&this.drawCaret(t,o),i.lineTo(l+c-h,u),i.quadraticCurveTo(l+c,u,l+c,u+h),"center"===s&&"right"===a&&this.drawCaret(t,o),i.lineTo(l+c,u+d-h),i.quadraticCurveTo(l+c,u+d,l+c-h,u+d),"bottom"===s&&this.drawCaret(t,o),i.lineTo(l+h,u+d),i.quadraticCurveTo(l,u+d,l,u+d-h),"center"===s&&"left"===a&&this.drawCaret(t,o),i.lineTo(l,u+h),i.quadraticCurveTo(l,u,l+h,u),i.closePath(),i.fill(),n.borderWidth>0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity;this._options.enabled&&(e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length)&&(this.drawBackground(i,e,t,n,o),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,o),this.drawBody(i,e,t,o),this.drawFooter(i,e,t,o))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],e._active="mouseout"===t.type?[]:e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!r.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var o=e._model;e.update(!0),e.pivot(),i|=o.x!==e._model.x||o.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,o+=s.y,++r}}return{x:Math.round(i/r),y:Math.round(o/r)}},nearest:function(t,e){var n,i,o,a=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){var u=t[n];if(u&&u.hasValue()){var c=u.getCenterPoint(),d=r.distanceBetweenPoints(e,c);d<l&&(l=d,o=u)}}if(o){var h=o.tooltipPosition();a=h.x,s=h.y}return{x:a,y:s}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=o.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var i=r.getAngleFromPoint(n,{x:t,y:e}),o=i.angle,a=i.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;o<s;)o+=2*Math.PI;return o>=s&&o<=l&&a>=n.innerRadius&&a<=n.outerRadius}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45),a=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=o.extend({draw:function(){var t,e,n,i,o=this,s=o._view,l=o._chart.ctx,u=s.spanGaps,c=o._children.slice(),d=a.elements.line,h=-1;for(o._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||a.defaultColor,l.beginPath(),h=-1,t=0;t<c.length;++t)e=c[t],n=r.previousItem(c,t),i=e._view,0===t?i.skip||(l.moveTo(i.x,i.y),h=t):(n=-1===h?n:c[h],i.skip||(h!==t-1&&!u||-1===h?l.moveTo(i.x,i.y):r.canvas.lineTo(l,n._view,e._view),h=t));l.stroke(),l.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";function i(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}var o=t(25),r=t(26),a=t(45),s=o.global.defaultColor;o._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:s,borderColor:s,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=r.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:i,inXRange:i,inYRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,r=e.pointStyle,l=e.radius,u=e.x,c=e.y,d=a.color,h=0;e.skip||(i.strokeStyle=e.borderColor||s,i.lineWidth=a.valueOrDefault(e.borderWidth,o.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||s,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?h=(u-n.x)/(t.left-n.x):1.01*t.right<n.x?h=(n.x-u)/(n.x-t.right):n.y<t.top?h=(c-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(h=(n.y-c)/(n.y-t.bottom)),h=Math.round(100*h)/100,i.strokeStyle=d(i.strokeStyle).alpha(h).rgbString(),i.fillStyle=d(i.fillStyle).alpha(h).rgbString()),a.canvas.drawPoint(i,r,l,u,c))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";function i(t){return void 0!==t._view.width}function o(t){var e,n,o,r,a=t._view;if(i(t)){var s=a.width/2;e=a.x-s,n=a.x+s,o=Math.min(a.y,a.base),r=Math.max(a.y,a.base)}else{var l=a.height/2;e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),o=a.y-l,r=a.y+l}return{left:e,top:o,right:n,bottom:r}}var r=t(25),a=t(26);r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=a.extend({draw:function(){function t(t){return m[(y+t)%4]}var e,n,i,o,r,a,s,l=this._chart.ctx,u=this._view,c=u.borderWidth;if(u.horizontal?(i=u.y-u.height/2,o=u.y+u.height/2,r=(n=u.x)>(e=u.base)?1:-1,a=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,r=1,a=(o=u.base)>(i=u.y)?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(i-o)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*r:0),p=n+("right"!==s?-h*r:0),g=i+("top"!==s?h*a:0),v=o+("bottom"!==s?-h*a:0);f!==p&&(i=g,o=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,o],[e,i],[n,i],[n,o]],y=["bottom","left","top","right"].indexOf(s,0);-1===y&&(y=0);var b=t(0);l.moveTo(b[0],b[1]);for(var x=1;x<4;x++)b=t(x),l.lineTo(b[0],b[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=o(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var r=o(n);return i(n)?t>=r.left&&t<=r.right:e>=r.top&&e<=r.bottom},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var i=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,o,r){if(r){var a=Math.min(r,i/2),s=Math.min(r,o/2);t.moveTo(e+a,n),t.lineTo(e+i-a,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+o-s),t.quadraticCurveTo(e+i,n+o,e+i-a,n+o),t.lineTo(e+a,n+o),t.quadraticCurveTo(e,n+o,e,n+o-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+a,n)}else t.rect(e,n,i,o)},drawPoint:function(t,e,n,i,o){var r,a,s,l,u,c;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,o,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(a=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-a/2,o+u/3),t.lineTo(i+a/2,o+u/3),t.lineTo(i,o-2*u/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,o-c,2*c,2*c),t.strokeRect(i-c,o-c,2*c,2*c);break;case"rectRounded":var d=n/Math.SQRT2,h=i-d,f=o-d,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,h,f,p,p,n/2),t.closePath(),t.fill();break;case"rectRot":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,o),t.lineTo(i,o+c),t.lineTo(i+c,o),t.lineTo(i,o-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,o+n),t.lineTo(i,o-n),t.moveTo(i-n,o),t.lineTo(i+n,o),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,o-l),t.lineTo(i+s,o+l),t.moveTo(i-s,o+l),t.lineTo(i+s,o-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,o+n),t.lineTo(i,o-n),t.moveTo(i-n,o),t.lineTo(i+n,o),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,o-l),t.lineTo(i+s,o+l),t.moveTo(i-s,o+l),t.lineTo(i+s,o-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,o),t.lineTo(i+n,o),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,o),t.lineTo(i+n,o),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,o-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},i.clear=n.clear,i.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,o){var r,a,s;if(i.isArray(t))if(a=t.length,o)for(r=a-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<a;r++)e.call(n,t[r],r);else if(i.isObject(t))for(a=(s=Object.keys(t)).length,r=0;r<a;r++)e.call(n,t[s[r]],s[r])},arrayEquals:function(t,e){var n,o,r,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,o=t.length;n<o;++n)if(a=e[n],(r=t[n])instanceof Array&&a instanceof Array){if(!i.arrayEquals(r,a))return!1}else if(r!==a)return!1;return!0},clone:function(t){if(i.isArray(t))return t.map(i.clone);if(i.isObject(t)){for(var e={},n=Object.keys(t),o=n.length,r=0;r<o;++r)e[n[r]]=i.clone(t[n[r]]);return e}return t},_merger:function(t,e,n,o){var r=e[t],a=n[t];i.isObject(r)&&i.isObject(a)?i.merge(r,a,o):e[t]=i.clone(a)},_mergerIf:function(t,e,n){var o=e[t],r=n[t];i.isObject(o)&&i.isObject(r)?i.mergeIf(o,r):e.hasOwnProperty(t)||(e[t]=i.clone(r))},merge:function(t,e,n){var o,r,a,s,l,u=i.isArray(e)?e:[e],c=u.length;if(!i.isObject(t))return t;for(o=(n=n||{}).merger||i._merger,r=0;r<c;++r)if(i.isObject(e=u[r]))for(l=0,s=(a=Object.keys(e)).length;l<s;++l)o(a[l],t,e,n);return t},mergeIf:function(t,e){return i.merge(t,e,{merger:i._mergerIf})},extend:function(t){for(var e=1,n=arguments.length;e<n;++e)i.each(arguments[e],function(e,n){t[n]=e});return t},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n}};e.exports=i,i.callCallback=i.callback,i.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},i.getValueOrDefault=i.valueOrDefault,i.getValueAtIndexOrDefault=i.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var i=t(42),o={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-o.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*o.easeInBounce(2*t):.5*o.easeOutBounce(2*t-1)+.5}};e.exports={effects:o},i.easingEffects=o},{42:42}],44:[function(t,e,n){"use strict";var i=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,o,r;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,o=+t.bottom||0,r=+t.left||0):e=n=o=r=+t||0,{top:e,right:n,bottom:o,left:r,height:e+o,width:r+n}},resolve:function(t,e,n){var o,r,a;for(o=0,r=t.length;o<r;++o)if(void 0!==(a=t[o])&&(void 0!==e&&"function"==typeof a&&(a=a(e)),void 0!==n&&i.isArray(a)&&(a=a[n]),void 0!==a))return a}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";function i(t,e){var n=s.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function o(t,e,n){t.addEventListener(e,n,p)}function r(t,e,n){t.removeEventListener(e,n,p)}function a(t,e,n,i,o){return{type:t,chart:e,native:o||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}var s=t(45),l="$chartjs",u="chartjs-",c=u+"render-monitor",d=u+"render-animation",h=["animationstart","webkitAnimationStart"],f={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},p=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+d+"{"+t+"}@keyframes "+d+"{"+t+"}."+c+"{-webkit-animation:"+d+" 0.001s;animation:"+d+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,o=t.getAttribute("height"),r=t.getAttribute("width");if(t[l]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var a=i(t,"width");void 0!==a&&(t.width=a)}if(null===o||""===o)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=i(t,"height");void 0!==a&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[l]){var n=e[l].initial;["height","width"].forEach(function(t){var i=n[t];s.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),s.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[l]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var r=n[l]||(n[l]={});o(i,e,(r.proxies||(r.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=f[t.type]||t.type,i=s.getRelativePosition(t,e);return a(n,e,i.x,i.y,t)}(e,t))})}else!function(t,e,n){var i=t[l]||(t[l]={}),r=i.resizer=function(t){var e=document.createElement("div"),n=u+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=i,e.className=n,e.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var r=e.childNodes[0],a=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){e._reset(),t()};return o(r,"scroll",s.bind(r,"expand")),o(a,"scroll",s.bind(a,"shrink")),e}(function(t,e){var n=!1,i=[];return function(){i=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,s.requestAnimFrame.call(window,function(){n=!1,t.apply(e,i)}))}}(function(){if(i.resizer)return e(a("resize",n))}));!function(t,e){var n=t[l]||(t[l]={}),i=n.renderProxy=function(t){t.animationName===d&&e()};s.each(h,function(e){o(t,e,i)}),n.reflow=!!t.offsetParent,t.classList.add(c)}(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}})}(i,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var o=((n[l]||{}).proxies||{})[t.id+"_"+e];o&&r(i,e,o)}else!function(t){var e=t[l]||{},n=e.resizer;delete e.resizer,function(t){var e=t[l]||{},n=e.renderProxy;n&&(s.each(h,function(e){r(t,e,n)}),delete e.renderProxy),t.classList.remove(c)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}(i)}},s.addEvent=o,s.removeEvent=r},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),o=t(46),r=t(47);e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r._enabled?r:o)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var i,o=t._model||{},r=o.fill;if(void 0===r&&(r=!!o.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},o=t.fill,r=null;if(isFinite(o))return null;if("start"===o?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===o?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePosition?r=i.getBasePosition():i.getBasePixel&&(r=i.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return{x:(e=i.isHorizontal())?r:null,y:e?null:r}}return null}function n(t,e,n){var i,o=t[e].fill,r=[e];if(!n)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!isFinite(o))return o;if(!(i=t[o]))return!1;if(i.visible)return o;r.push(o),o=i.fill}return!1}function a(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,o){var a;if(i&&o){for(t.moveTo(e[0].x,e[0].y),a=1;a<i;++a)r.canvas.lineTo(t,e[a-1],e[a]);for(t.lineTo(n[o-1].x,n[o-1].y),a=o-1;a>0;--a)r.canvas.lineTo(t,n[a],n[a-1],!0)}}function u(t,e,n,i,o,r){var a,u,c,d,h,f,p,g=e.length,v=i.spanGaps,m=[],y=[],b=0,x=0;for(t.beginPath(),a=0,u=g+!!r;a<u;++a)h=n(d=e[c=a%g]._view,c,i),f=s(d),p=s(h),f&&p?(b=m.push(d),x=y.push(h)):b&&x&&(v?(f&&m.push(d),p&&y.push(h)):(l(t,m,y,b,x),b=x=0,m=[],y=[]));l(t,m,y,b,x),t.closePath(),t.fillStyle=o,t.fill()}var c={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),o=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=o.length||0;return r?function(t,e){return e<r&&o[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};return{id:"filler",afterDatasetsUpdate:function(i,r){var s,l,u,c,d=(i.data.datasets||[]).length,h=r.propagate,f=[];for(l=0;l<d;++l)c=null,(u=(s=i.getDatasetMeta(l)).dataset)&&u._model&&u instanceof o.Line&&(c={visible:i.isDatasetVisible(l),fill:t(u,l,d),chart:i,el:u}),s.$filler=c,f.push(c);for(l=0;l<d;++l)(c=f[l])&&(c.fill=n(f,l,h),c.boundary=e(c),c.mapper=a(c))},beforeDatasetDraw:function(t,e){var n=e.meta.$filler;if(n){var o=t.ctx,a=n.el,s=a._view,l=a._children||[],c=n.mapper,d=s.backgroundColor||i.global.defaultColor;c&&d&&l.length&&(r.canvas.clipArea(o,t.chartArea),u(o,l,c,s,d,a._loop),r.canvas.unclipArea(o))}}}}},{25:25,40:40,45:45}],50:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,o=i.getDatasetMeta(n);o.hidden=null===o.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return r.isArray(e.datasets)?e.datasets.map(function(e,n){return{text:e.label,fillStyle:r.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});a.configure(e,i,n),a.addBox(e,i),e.legend=i}var a=t.layoutService,s=r.noop;return t.Legend=o.extend({initialize:function(t){r.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=r.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,o=n.labels,a=n.display,s=t.ctx,l=i.global,u=r.valueOrDefault,c=u(o.fontSize,l.defaultFontSize),d=u(o.fontStyle,l.defaultFontStyle),h=u(o.fontFamily,l.defaultFontFamily),f=r.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=a?10:0):(g.width=a?10:0,g.height=t.maxHeight),a)if(s.font=f,v){var m=t.lineWidths=[0],y=t.legendItems.length?c+o.padding:0;s.textAlign="left",s.textBaseline="top",r.each(t.legendItems,function(n,i){var r=e(o,c)+c/2+s.measureText(n.text).width;m[m.length-1]+r+o.padding>=t.width&&(y+=c+o.padding,m[m.length]=t.left),p[i]={left:0,top:0,width:r,height:c},m[m.length-1]+=r+o.padding}),g.height+=y}else{var b=o.padding,x=t.columnWidths=[],w=o.padding,k=0,C=0,T=c+b;r.each(t.legendItems,function(t,n){var i=e(o,c)+c/2+s.measureText(t.text).width;C+T>g.height&&(w+=k+o.padding,x.push(k),k=0,C=0),k=Math.max(k,i),C+=T,p[n]={left:0,top:0,width:i,height:c}}),w+=k,x.push(k),g.width+=w}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,o=n.labels,a=i.global,s=a.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=r.valueOrDefault,f=h(o.fontColor,a.defaultFontColor),p=h(o.fontSize,a.defaultFontSize),g=h(o.fontStyle,a.defaultFontStyle),v=h(o.fontFamily,a.defaultFontFamily),m=r.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var y=e(o,p),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){d.save(),d.fillStyle=h(i.fillStyle,a.defaultColor),d.lineCap=h(i.lineCap,s.borderCapStyle),d.lineDashOffset=h(i.lineDashOffset,s.borderDashOffset),d.lineJoin=h(i.lineJoin,s.borderJoinStyle),d.lineWidth=h(i.lineWidth,s.borderWidth),d.strokeStyle=h(i.strokeStyle,a.defaultColor);var o=0===h(i.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2;r.canvas.drawPoint(d,i.pointStyle,l,t+u,e+u)}else o||d.strokeRect(t,e,y,p),d.fillRect(t,e,y,p);d.restore()}},w=t.isHorizontal();c=w?{x:t.left+(l-u[0])/2,y:t.top+o.padding,line:0}:{x:t.left+o.padding,y:t.top+o.padding,line:0};var k=p+o.padding;r.each(t.legendItems,function(e,n){var i=d.measureText(e.text).width,r=y+p/2+i,a=c.x,s=c.y;w?a+r>=l&&(s=c.y+=k,c.line++,a=c.x=t.left+(l-u[c.line])/2):s+k>t.bottom&&(a=c.x=a+t.columnWidths[c.line]+o.padding,s=c.y=t.top+o.padding,c.line++),x(a,s,e),b[n].left=a,b[n].top=s,function(t,e,n,i){var o=p/2,r=y+o+t,a=s+o;d.fillText(n.text,r,a),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(r,a),d.lineTo(r+i,a),d.stroke())}(a,0,e,i),w?c.x+=r+o.padding:c.y+=k})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,o=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,a=t.y;if(r>=e.left&&r<=e.right&&a>=e.top&&a<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(r>=u.left&&r<=u.left+u.width&&a>=u.top&&a<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),o=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),o=!0;break}}}return o}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,o=t.legend;e?(r.mergeIf(e,i.global.legend),o?(a.configure(t,o,e),o.options=e):n(t,e)):o&&(a.removeBox(t,o),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,i){var o=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,o,i),n.addBox(e,o),e.titleBlock=o}var n=t.layoutService,a=r.noop;return t.Title=o.extend({initialize:function(t){r.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:a,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:a,beforeSetDimensions:a,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:a,beforeBuildLabels:a,buildLabels:a,afterBuildLabels:a,beforeFit:a,fit:function(){var t=this,e=t.options,n=e.display,o=(0,r.valueOrDefault)(e.fontSize,i.global.defaultFontSize),a=t.minSize,s=r.isArray(e.text)?e.text.length:1,l=r.options.toLineHeight(e.lineHeight,o),u=n?s*l+2*e.padding:0;t.isHorizontal()?(a.width=t.maxWidth,a.height=u):(a.width=u,a.height=t.maxHeight),t.width=a.width,t.height=a.height},afterFit:a,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=r.valueOrDefault,o=t.options,a=i.global;if(o.display){var s,l,u,c=n(o.fontSize,a.defaultFontSize),d=n(o.fontStyle,a.defaultFontStyle),h=n(o.fontFamily,a.defaultFontFamily),f=r.fontString(c,d,h),p=r.options.toLineHeight(o.lineHeight,c),g=p/2+o.padding,v=0,m=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(o.fontColor,a.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=m+g,s=x-y):(l="left"===o.position?y+g:x-g,u=m+(b-m)/2,s=b-m,v=Math.PI*("left"===o.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var w=o.text;if(r.isArray(w))for(var k=0,C=0;C<w.length;++C)e.fillText(w[C],0,k,s),k+=p;else e.fillText(w,0,0,s);e.restore()}}}),{id:"title",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(o){var a=o.options.title,s=o.titleBlock;a?(r.mergeIf(a,i.global.title),s?(n.configure(o,s,a),s.options=a):e(o,a)):s&&(t.layoutService.removeBox(o,s),delete o.titleBlock)}}}},{25:25,26:26,45:45}],52:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,o=n.isHorizontal();return i.yLabels&&!o?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,o=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(o?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var a=i.getLabels().indexOf(t=n||t);e=-1!==a?a:e}if(i.isHorizontal()){var s=i.width/r,l=s*(e-i.minIndex);return o&&(l+=s/2),i.left+Math.round(l)}var u=i.height/r,c=u*(e-i.minIndex);return o&&(c+=u/2),i.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),o=e.isHorizontal(),r=(o?e.width:e.height)/i;return t-=o?e.left:e.top,n&&(t-=r/2),(t<=0?0:Math.round(t/r))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],53:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return a?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,r=i.data.datasets,a=e.isHorizontal();e.min=null,e.max=null;var s=n.stacked;if(void 0===s&&o.each(r,function(e,n){if(!s){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(s=!0)}}),n.stacked||s){var l={};o.each(r,function(r,a){var s=i.getDatasetMeta(a),u=[s.type,void 0===n.stacked&&void 0===s.stack?a:"",s.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var c=l[u].positiveValues,d=l[u].negativeValues;i.isDatasetVisible(a)&&t(s)&&o.each(r.data,function(t,i){var o=+e.getRightValue(t);isNaN(o)||s.data[i].hidden||(c[i]=c[i]||0,d[i]=d[i]||0,n.relativePoints?c[i]=100:o<0?d[i]+=o:c[i]+=o)})}),o.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),i=o.min(n),r=o.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)})}else o.each(r,function(n,r){var a=i.getDatasetMeta(r);i.isDatasetVisible(r)&&t(a)&&o.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||a.data[n].hidden||(null===e.min?e.min=i:i<e.min&&(e.min=i),null===e.max?e.max=i:i>e.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var r=o.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*r)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,o=+n.getRightValue(t),r=n.end-i;return n.isHorizontal()?(e=n.left+n.width/r*(o-i),Math.round(e)):(e=n.bottom-n.height/r*(o-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal();return e.start+(n?t-e.left:e.bottom-t)/(n?e.width:e.height)*(e.end-e.start)},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var i=t(45),o=t(34);e.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=i.sign(t.min),o=i.sign(t.max);n<0&&o<0?t.max=0:n>0&&o>0&&(t.min=0)}var r=void 0!==e.min||void 0!==e.suggestedMin,a=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(t.min=null===t.min?e.suggestedMin:Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(t.max=null===t.max?e.suggestedMax:Math.max(t.max,e.suggestedMax)),r!==a&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:i.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=o.generators.linear(r,t);t.handleDirectionalChanges(),t.max=i.max(a),t.min=i.min(a),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var i=t(45),o=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:o.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,o=n.ticks,r=e.chart,a=r.data.datasets,s=i.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&i.each(a,function(e,n){if(!u){var i=r.getDatasetMeta(n);r.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(u=!0)}}),n.stacked||u){var c={};i.each(a,function(o,a){var s=r.getDatasetMeta(a),l=[s.type,void 0===n.stacked&&void 0===s.stack?a:"",s.stack].join(".");r.isDatasetVisible(a)&&t(s)&&(void 0===c[l]&&(c[l]=[]),i.each(o.data,function(t,i){var o=c[l],r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(o[i]=o[i]||0,n.relativePoints?o[i]=100:o[i]+=r)}))}),i.each(c,function(t){var n=i.min(t),o=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?o:Math.max(e.max,o)})}else i.each(a,function(n,o){var a=r.getDatasetMeta(o);r.isDatasetVisible(o)&&t(a)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||a.data[n].hidden||(null===e.min?e.min=i:i<e.min&&(e.min=i),null===e.max?e.max=i:i>e.max&&(e.max=i),0!==i&&(null===e.minNotZero||i<e.minNotZero)&&(e.minNotZero=i))})});e.min=s(o.min,e.min),e.max=s(o.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(i.log10(e.min))-1),e.max=Math.pow(10,Math.floor(i.log10(e.max))+1)):(e.min=1,e.max=10))},buildTicks:function(){var t=this,e=t.options.ticks,n=t.ticks=o.generators.logarithmic({min:e.min,max:e.max},t);t.isHorizontal()||n.reverse(),t.max=i.max(n),t.min=i.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var e,n,o,r=this,a=r.start,s=+r.getRightValue(t),l=r.options.ticks;return r.isHorizontal()?(o=i.log10(r.end)-i.log10(a),n=0===s?r.left:r.left+(e=r.width)/o*(i.log10(s)-i.log10(a))):(e=r.height,0!==a||l.reverse?0===r.end&&l.reverse?(o=i.log10(r.start)-i.log10(r.minNotZero),n=s===r.end?r.top:s===r.minNotZero?r.top+.02*e:r.top+.02*e+.98*e/o*(i.log10(s)-i.log10(r.minNotZero))):0===s?n=l.reverse?r.top:r.bottom:(o=i.log10(r.end)-i.log10(a),n=r.bottom-(e=r.height)/o*(i.log10(s)-i.log10(a))):(o=i.log10(r.end)-i.log10(r.minNotZero),n=s===a?r.bottom:s===r.minNotZero?r.bottom-.02*e:r.bottom-.02*e-.98*e/o*(i.log10(s)-i.log10(r.minNotZero)))),n},getValueForPixel:function(t){var e,n,o=this,r=i.log10(o.end)-i.log10(o.start);return o.isHorizontal()?(n=o.width,e=o.start*Math.pow(10,(t-o.left)*r/n)):(n=o.height,e=Math.pow(10,(o.bottom-t)*r/n)/o.start),e}});t.scaleService.registerScaleType("logarithmic",n,e)}},{34:34,45:45}],56:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(34);e.exports=function(t){function e(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function n(t){var e=t.options.pointLabels,n=o.valueOrDefault(e.fontSize,p.defaultFontSize),i=o.valueOrDefault(e.fontStyle,p.defaultFontStyle),r=o.valueOrDefault(e.fontFamily,p.defaultFontFamily);return{size:n,style:i,family:r,font:o.fontString(n,i,r)}}function a(t,e,n){return o.isArray(n)?{w:o.longestText(t,t.font,n),h:n.length*e+1.5*(n.length-1)*e}:{w:t.measureText(n).width,h:e}}function s(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,i){if(o.isArray(e))for(var r=n.y,a=1.5*i,s=0;s<e.length;++s)t.fillText(e[s],n.x,r),r+=a;else t.fillText(e,n.x,n.y)}function c(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function d(t){var i=t.ctx,r=o.valueOrDefault,a=t.options,s=a.angleLines,d=a.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(a.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(v.x,v.y),i.stroke(),i.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),y=r(d.fontColor,p.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(g),x=o.toDegrees(b);i.textAlign=l(x),c(x,t._pointLabelSizes[g],m),u(i,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,i,r){var a=t.ctx;if(a.strokeStyle=o.valueAtIndexOrDefault(n.color,r-1),a.lineWidth=o.valueAtIndexOrDefault(n.lineWidth,r-1),t.options.gridLines.circular)a.beginPath(),a.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),a.closePath(),a.stroke();else{var s=e(t);if(0===s)return;a.beginPath();var l=t.getPointPosition(0,i);a.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=t.getPointPosition(u,i),a.lineTo(l.x,l.y);a.closePath(),a.stroke()}}function f(t){return o.isNumber(t)?t:0}var p=i.global,g={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:r.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},v=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var i=o.min([t.height,t.width]),r=o.valueOrDefault(n.fontSize,p.defaultFontSize);t.drawingArea=e.display?i/2-(r/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;o.each(e.data.datasets,function(r,a){if(e.isDatasetVisible(a)){var s=e.getDatasetMeta(a);o.each(r.data,function(e,o){var r=+t.getRightValue(e);isNaN(r)||s.data[o].hidden||(n=Math.min(r,n),i=Math.max(r,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=o.valueOrDefault(t.fontSize,p.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?function(t){var i,r,l,u=n(t),c=Math.min(t.height/2,t.width/2),d={r:t.width,l:0,t:t.height,b:0},h={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;i<f;i++){l=t.getPointPosition(i,c),r=a(t.ctx,u.size,t.pointLabels[i]||""),t._pointLabelSizes[i]=r;var p=t.getIndexAngle(i),g=o.toDegrees(p)%360,v=s(g,l.x,r.w,0,180),m=s(g,l.y,r.h,90,270);v.start<d.l&&(d.l=v.start,h.l=p),v.end>d.r&&(d.r=v.end,h.r=p),m.start<d.t&&(d.t=m.start,h.t=p),m.end>d.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=this,o=e.l/Math.sin(n.l),r=Math.max(e.r-i.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),s=-Math.max(e.b-i.height,0)/Math.cos(n.b);o=f(o),r=f(r),a=f(a),s=f(s),i.drawingArea=Math.min(Math.round(t-(o+r)/2),Math.round(t-(a+s)/2)),i.setCenterPoint(o,r,a,s)},setCenterPoint:function(t,e,n,i){var o=this,r=n+o.drawingArea,a=o.height-i-o.drawingArea;o.xCenter=Math.round((t+o.drawingArea+(o.width-e-o.drawingArea))/2+o.left),o.yCenter=Math.round((r+a)/2+o.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,i=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(i)*e)+n.xCenter,y:Math.round(Math.sin(i)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,r=o.valueOrDefault;if(e.display){var a=t.ctx,s=this.getIndexAngle(0),l=r(i.fontSize,p.defaultFontSize),u=r(i.fontStyle,p.defaultFontStyle),c=r(i.fontFamily,p.defaultFontFamily),f=o.fontString(l,u,c);o.each(t.ticks,function(e,o){if(o>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[o]);if(n.display&&0!==o&&h(t,n,u,o),i.display){var c=r(i.fontColor,p.defaultFontColor);if(a.font=f,a.save(),a.translate(t.xCenter,t.yCenter),a.rotate(s),i.showLabelBackdrop){var d=a.measureText(e).width;a.fillStyle=i.backdropColor,a.fillRect(-d/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,d+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}a.textAlign="center",a.textBaseline="middle",a.fillStyle=c,a.fillText(e,0,-u),a.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function i(t,e){return t-e}function o(t){var e,n,i,o={},r=[];for(e=0,n=t.length;e<n;++e)o[i=t[e]]||(o[i]=!0,r.push(i));return r}function r(t,e,n,i){var o=function(t,e,n){for(var i,o,r,a=0,s=t.length-1;a>=0&&a<=s;){if(r=t[i=a+s>>1],!(o=t[i-1]||null))return{lo:null,hi:r};if(r[e]<n)a=i+1;else{if(!(o[e]>n))return{lo:o,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=o.lo?o.hi?o.lo:t[t.length-2]:t[0],a=o.lo?o.hi?o.hi:t[t.length-1]:t[1],s=a[e]-r[e];return r[i]+(a[i]-r[i])*(s?(n-r[e])/s:0)}function a(t,e){var n=e.parser,i=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof i?c(t,i):(t instanceof c||(t=c(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function s(t,e){if(h.isNullOrUndef(t))return null;var n=e.options.time,i=a(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function l(t){for(var e=v.indexOf(t)+1,n=v.length;e<n;++e)if(g[v[e]].common)return v[e]}function u(t,e,n,i,o){var a,s,l=0,u=0;return o.offset&&e.length&&(o.time.min||(s=e[0],l=(r(t,"time",a=e.length>1?e[1]:i,"pos")-r(t,"time",s,"pos"))/2),o.time.max||(a=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(r(t,"time",a,"pos")-r(t,"time",s,"pos"))/2)),{left:l,right:u}}var c=t(1);c="function"==typeof c?c:window.moment;var d=t(25),h=t(45),f=Number.MIN_SAFE_INTEGER||-9007199254740991,p=Number.MAX_SAFE_INTEGER||9007199254740991,g={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},v=Object.keys(g);e.exports=function(t){var e=t.Scale.extend({initialize:function(){if(!c)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),t.Scale.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),t.Scale.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),t.Scale.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var t,e,n,r,a,l,u=this,d=u.chart,g=u.options.time,v=p,m=f,y=[],b=[],x=[];for(t=0,n=d.data.labels.length;t<n;++t)x.push(s(d.data.labels[t],u));for(t=0,n=(d.data.datasets||[]).length;t<n;++t)if(d.isDatasetVisible(t))if(h.isObject((a=d.data.datasets[t].data)[0]))for(b[t]=[],e=0,r=a.length;e<r;++e)l=s(a[e],u),y.push(l),b[t][e]=l;else y.push.apply(y,x),b[t]=x.slice(0);else b[t]=[];x.length&&(x=o(x).sort(i),v=Math.min(v,x[0]),m=Math.max(m,x[x.length-1])),y.length&&(y=o(y).sort(i),v=Math.min(v,y[0]),m=Math.max(m,y[y.length-1])),v=s(g.min,u)||v,m=s(g.max,u)||m,v=v===p?+c().startOf("day"):v,m=m===f?+c().endOf("day")+1:m,u.min=Math.min(v,m),u.max=Math.max(v+1,m),u._horizontal=u.isHorizontal(),u._table=[],u._timestamps={data:y,datasets:b,labels:x}},buildTicks:function(){var t,e,n,i=this,o=i.min,r=i.max,a=i.options,d=a.time,f=[],m=[];switch(a.ticks.source){case"data":f=i._timestamps.data;break;case"labels":f=i._timestamps.labels;break;case"auto":default:f=function(t,e,n,i){var o,r=i.time,a=r.unit||function(t,e,n,i){var o,r,a=v.length;for(o=v.indexOf(t);o<a-1;++o)if((r=g[v[o]]).common&&Math.ceil((n-e)/((r.steps?r.steps[r.steps.length-1]:p)*r.size))<=i)return v[o];return v[a-1]}(r.minUnit,t,e,n),s=l(a),u=h.valueOrDefault(r.stepSize,r.unitStepSize),d="week"===a&&r.isoWeekday,f=i.ticks.major.enabled,m=g[a],y=c(t),b=c(e),x=[];for(u||(u=function(t,e,n,i){var o,r,a,s=e-t,l=g[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/((i||1)*u));for(o=0,r=c.length;o<r&&(a=c[o],!(Math.ceil(s/(u*a))<=i));++o);return a}(t,e,a,n)),d&&(y=y.isoWeekday(d),b=b.isoWeekday(d)),y=y.startOf(d?"day":a),(b=b.startOf(d?"day":a))<e&&b.add(1,a),o=c(y),f&&s&&!d&&!r.round&&(o.startOf(s),o.add(~~((y-o)/(m.size*u))*u,a));o<b;o.add(u,a))x.push(+o);return x.push(+o),x}(o,r,i.getLabelCapacity(o),a)}for("ticks"===a.bounds&&f.length&&(o=f[0],r=f[f.length-1]),o=s(d.min,i)||o,r=s(d.max,i)||r,t=0,e=f.length;t<e;++t)(n=f[t])>=o&&n<=r&&m.push(n);return i.min=o,i.max=r,i._unit=d.unit||function(t,e,n,i){var o,r,a=c.duration(c(i).diff(c(n)));for(o=v.length-1;o>=v.indexOf(e);o--)if(g[r=v[o]].common&&a.as(r)>=t.length)return r;return v[e?v.indexOf(e):0]}(m,d.minUnit,i.min,i.max),i._majorUnit=l(i._unit),i._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var o,r,a,s,l,u=[],c=[e];for(o=0,r=t.length;o<r;++o)(s=t[o])>e&&s<n&&c.push(s);for(c.push(n),o=0,r=c.length;o<r;++o)l=c[o+1],s=c[o],void 0!==(a=c[o-1])&&void 0!==l&&Math.round((l+a)/2)===s||u.push({time:s,pos:o/(r-1)});return u}(i._timestamps.data,o,r,a.distribution),i._offsets=u(i._table,m,o,r,a),function(t,e){var n,i,o,r,a=[];for(n=0,i=t.length;n<i;++n)o=t[n],r=!!e&&o===+c(o).startOf(e),a.push({value:o,major:r});return a}(m,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,o=n.options.time,r=i.labels&&t<i.labels.length?i.labels[t]:"",s=i.datasets[e].data[t];return h.isObject(s)&&(r=n.getRightValue(s)),o.tooltipFormat&&(r=a(r,o).format(o.tooltipFormat)),r},tickFormatFunction:function(t,e,n,i){var o=this,r=o.options,a=t.valueOf(),s=r.time.displayFormats,l=s[o._unit],u=o._majorUnit,c=s[u],d=t.clone().startOf(u).valueOf(),f=r.ticks.major,p=f.enabled&&u&&c&&a===d,g=t.format(i||(p?c:l)),v=p?f:r.ticks.minor,m=h.valueOrDefault(v.callback,v.userCallback);return m?m(g,e,n):g},convertTicksToLabels:function(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(this.tickFormatFunction(c(t[e].value),e,t));return i},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,o=r(e._table,"time",t,"pos");return i+n*(e._offsets.left+o)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=this,o=null;if(void 0!==e&&void 0!==n&&(o=i._timestamps.datasets[n][e]),null===o&&(o=s(t,i)),null!==o)return i.getPixelForOffset(o)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=r(e._table,"pos",(n?(t-(e._horizontal?e.left:e.top))/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,"time");return c(i)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=h.toRadians(e.maxRotation),o=Math.cos(i),r=Math.sin(i);return n*o+h.valueOrDefault(e.fontSize,d.global.defaultFontSize)*r},getLabelCapacity:function(t){var e=this,n=e.options.time.displayFormats.millisecond,i=e.tickFormatFunction(c(t),0,[],n),o=e.getLabelWidth(i),r=e.isHorizontal()?e.width:e.height;return Math.floor(r/o)}});t.scaleService.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{1:1,25:25,45:45}]},{},[7])(7)}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;(e=(e=(e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).d3||(e.d3={})).layout||(e.layout={})).cloud=t()}}(function(){return function t(e,n,i){function o(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return o(e[a][1][t]||t)},c,c.exports,t,e,n,i)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,e,n){var i=t("d3-dispatch").dispatch,o=Math.PI/180,r=64,a=2048;function s(t){return t.text}function l(){return"serif"}function u(){return"normal"}function c(t){return Math.sqrt(t.value)}function d(){return 30*(~~(6*Math.random())-3)}function h(){return 1}function f(t,e,n,i){if(!e.sprite){var s=t.context,l=t.ratio;s.clearRect(0,0,(r<<5)/l,a/l);var u=0,c=0,d=0,h=n.length;for(--i;++i<h;){e=n[i],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/l)+"px "+e.font;var f=s.measureText(e.text+"m").width*l,p=e.size<<1;if(e.rotate){var g=Math.sin(e.rotate*o),v=Math.cos(e.rotate*o),m=f*v,y=f*g,b=p*v,x=p*g;f=Math.max(Math.abs(m+x),Math.abs(m-x))+31>>5<<5,p=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else f=f+31>>5<<5;if(p>d&&(d=p),u+f>=r<<5&&(u=0,c+=d,d=0),c+p>=a)break;s.translate((u+(f>>1))/l,(c+(p>>1))/l),e.rotate&&s.rotate(e.rotate*o),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=f,e.height=p,e.xoff=u,e.yoff=c,e.x1=f>>1,e.y1=p>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,u+=f}for(var w=s.getImageData(0,0,(r<<5)/l,a/l).data,k=[];--i>=0;)if((e=n[i]).hasText){for(var C=(f=e.width)>>5,T=(p=e.y1-e.y0,0);T<p*C;T++)k[T]=0;if(null==(u=e.xoff))return;c=e.yoff;for(var S=0,M=-1,A=0;A<p;A++){for(T=0;T<f;T++){var P=w[(c+A)*(r<<5)+(u+T)<<2]?1<<31-T%32:0;k[C*A+(T>>5)]|=P,S|=P}S?M=A:(e.y0++,p--,A--,c++)}e.y1=e.y0+M,e.sprite=k.slice(0,(e.y1-e.y0)*C)}}}function p(t,e,n){for(var i,o=t.sprite,r=t.width>>5,a=t.x-(r<<4),s=127&a,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*(n>>=5)+(a>>5),d=0;d<u;d++){i=0;for(var h=0;h<=r;h++)if((i<<l|(h<r?(i=o[d*r+h])>>>s:0))&e[c+h])return!0;c+=n}return!1}function g(t,e){var n=t[0],i=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function v(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function m(){return document.createElement("canvas")}function y(t){return"function"==typeof t?t:function(){return t}}e.exports=function(){var t=[256,256],e=s,n=l,o=c,x=u,w=u,k=d,C=h,T=v,S=[],M=1/0,A=i("word","end"),P=null,D=Math.random,_={},I=m;function O(e,n,i){for(var o,r,a,s,l,u=n.x,c=n.y,d=Math.sqrt(t[0]*t[0]+t[1]*t[1]),h=T(t),f=D()<.5?1:-1,g=-f;(o=h(g+=f))&&(r=~~o[0],a=~~o[1],!(Math.min(Math.abs(r),Math.abs(a))>=d));)if(n.x=u+r,n.y=c+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||i&&p(n,e,t[0])||i&&!((s=n).x+s.x1>(l=i)[0].x&&s.x+s.x0<l[1].x&&s.y+s.y1>l[0].y&&s.y+s.y0<l[1].y))){for(var v,m=n.sprite,y=n.width>>5,b=t[0]>>5,x=n.x-(y<<4),w=127&x,k=32-w,C=n.y1-n.y0,S=(n.y+n.y0)*b+(x>>5),M=0;M<C;M++){v=0;for(var A=0;A<=y;A++)e[S+A]|=v<<k|(A<y?(v=m[M*y+A])>>>w:0);S+=b}return delete n.sprite,!0}return!1}return _.canvas=function(t){return arguments.length?(I=y(t),_):I},_.start=function(){var i=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(r<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(I()),s=function(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}((t[0]>>5)*t[1]),l=null,u=S.length,c=-1,d=[],h=S.map(function(t,i){return t.text=e.call(this,t,i),t.font=n.call(this,t,i),t.style=x.call(this,t,i),t.weight=w.call(this,t,i),t.rotate=k.call(this,t,i),t.size=~~o.call(this,t,i),t.padding=C.call(this,t,i),t}).sort(function(t,e){return e.size-t.size});return P&&clearInterval(P),P=setInterval(p,0),p(),_;function p(){for(var e=Date.now();Date.now()-e<M&&++c<u&&P;){var n=h[c];n.x=t[0]*(D()+.5)>>1,n.y=t[1]*(D()+.5)>>1,f(i,n,h,c),n.hasText&&O(s,n,l)&&(d.push(n),A.call("word",_,n),l?g(l,n):l=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}c>=u&&(_.stop(),A.call("end",_,d,l))}},_.stop=function(){return P&&(clearInterval(P),P=null),_},_.timeInterval=function(t){return arguments.length?(M=null==t?1/0:t,_):M},_.words=function(t){return arguments.length?(S=t,_):S},_.size=function(e){return arguments.length?(t=[+e[0],+e[1]],_):t},_.font=function(t){return arguments.length?(n=y(t),_):n},_.fontStyle=function(t){return arguments.length?(x=y(t),_):x},_.fontWeight=function(t){return arguments.length?(w=y(t),_):w},_.rotate=function(t){return arguments.length?(k=y(t),_):k},_.text=function(t){return arguments.length?(e=y(t),_):e},_.spiral=function(t){return arguments.length?(T=b[t]||t,_):T},_.fontSize=function(t){return arguments.length?(o=y(t),_):o},_.padding=function(t){return arguments.length?(C=y(t),_):C},_.random=function(t){return arguments.length?(D=t,_):D},_.on=function(){var t=A.on.apply(A,arguments);return t===A?_:t},_};var b={archimedean:v,rectangular:function(t){var e=4*t[0]/t[1],n=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:n+=e;break;case 1:i+=4;break;case 2:n-=e;break;default:i-=4}return[n,i]}}}},{"d3-dispatch":2}],2:[function(t,e,n){!function(t){"use strict";var e={value:function(){}};function n(){for(var t,e=0,n=arguments.length,o={};e<n;++e){if(!(t=arguments[e]+"")||t in o)throw new Error("illegal type: "+t);o[t]=[]}return new i(o)}function i(t){this._=t}function o(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function r(t,n,i){for(var o=0,r=t.length;o<r;++o)if(t[o].name===n){t[o]=e,t=t.slice(0,o).concat(t.slice(o+1));break}return null!=i&&t.push({name:n,value:i}),t}i.prototype=n.prototype={constructor:i,on:function(t,e){var n,i,a=this._,s=(i=a,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),l=-1,u=s.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++l<u;)if(n=(t=s[l]).type)a[n]=r(a[n],t.name,e);else if(null==e)for(n in a)a[n]=r(a[n],t.name,null);return this}for(;++l<u;)if((n=(t=s[l]).type)&&(n=o(a[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=0,n=(i=this._[t]).length;r<n;++r)i[r].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,r=i.length;o<r;++o)i[o].value.apply(e,n)}},t.dispatch=n,Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&"undefined"!=typeof e?n:this.d3=this.d3||{})},{}]},{},[1])(1)});