PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
wyz-toolkit
/
classes
/
user-dashboard
/
js
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}}(function(){return function t(e,i,n){function a(o,s){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[o]={exports:{}};e[o][0].call(d.exports,function(t){var i=e[o][1][t];return a(i||t)},d,d.exports,t,e,i,n)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(t,e,i){var n=t(5);function a(t){if(t){var e=[0,0,0],i=1,a=t.match(/^#([a-fA-F0-9]{3})$/);if(a){a=a[1];for(var r=0;r<e.length;r++)e[r]=parseInt(a[r]+a[r],16)}else if(a=t.match(/^#([a-fA-F0-9]{6})$/)){a=a[1];for(r=0;r<e.length;r++)e[r]=parseInt(a.slice(2*r,2*r+2),16)}else if(a=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<e.length;r++)e[r]=parseInt(a[r+1]);i=parseFloat(a[4])}else if(a=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<e.length;r++)e[r]=Math.round(2.55*parseFloat(a[r+1]));i=parseFloat(a[4])}else if(a=t.match(/(\w+)/)){if("transparent"==a[1])return[0,0,0,0];if(!(e=n[a[1]]))return}for(r=0;r<e.length;r++)e[r]=d(e[r],0,255);return i=i||0==i?d(i,0,1):1,e[3]=i,e}}function r(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(i)?1:i,0,1)]}}}function o(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(i)?1:i,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(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 u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,i){return Math.min(Math.max(e,t),i)}function h(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}e.exports={getRgba:a,getHsla:r,getRgb:function(t){var e=a(t);return e&&e.slice(0,3)},getHsl:function(t){var e=r(t);return e&&e.slice(0,3)},getHwb:o,getAlpha:function(t){var e=a(t);{if(e)return e[3];if(e=r(t))return e[3];if(e=o(t))return e[3]}},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+i+"%, "+n+"%, "+a+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return c[t.slice(0,3)]}};var c={};for(var f in n)c[n[f]]=f},{5:5}],2:[function(t,e,i){var n=t(4),a=t(1),r=function(t){if(t instanceof r)return t;if(!(this instanceof r))return new r(t);var e;if(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},"string"==typeof t)if(e=a.getRgba(t))this.setValues("rgb",e);else if(e=a.getHsla(t))this.setValues("hsl",e);else{if(!(e=a.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(void 0!==(e=t).r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};r.prototype={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 a.hexString(this.values.rgb)},rgbString:function(){return a.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return a.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return a.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return a.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return a.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return a.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return a.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=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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,i=(e[0]+t)%360;return e[0]=i<0?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,n=t,a=void 0===e?.5:e,r=2*a-1,o=i.alpha()-n.alpha(),s=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,l=1-s;return this.rgb(s*i.red()+l*n.red(),s*i.green()+l*n.green(),s*i.blue()+l*n.blue()).alpha(i.alpha()*a+n.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new r,n=this.values,a=i.values;for(var o in n)n.hasOwnProperty(o)&&(t=n[o],"[object Array]"===(e={}.toString.call(t))?a[o]=t.slice(0):"[object Number]"===e?a[o]=t:console.error("unexpected color value:",t));return i}},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,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},r.prototype.setValues=function(t,e){var i,a,r=this.values,o=this.spaces,s=this.maxes,l=1;if("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(i=0;i<t.length;i++)r[t][i]=e[t.charAt(i)];l=e.a}else if(void 0!==e[o[t][0]]){var u=o[t];for(i=0;i<t.length;i++)r[t][i]=e[u[i]];l=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===t)return!1;for(i=0;i<t.length;i++)a=Math.max(0,Math.min(s[t][i],r[t][i])),r[t][i]=Math.round(a);for(var d in o)d!==t&&(r[d]=n[t][d](r[t]));return!0},r.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},r.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:i===n[e]?this:(n[e]=i,this.setValues(t,n),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{1:1,4:4}],3:[function(t,e,i){function n(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o;return s==o?e=0:n==s?e=(a-r)/l:a==s?e=2+(r-n)/l:r==s&&(e=4+(n-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(o+s)/2,[e,100*(s==o?0:i<=.5?l/(s+o):l/(2-s-o)),100*i]}function a(t){var e,i,n=t[0],a=t[1],r=t[2],o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o;return i=0==s?0:l/s*1e3/10,s==o?e=0:n==s?e=(a-r)/l:a==s?e=2+(r-n)/l:r==s&&(e=4+(n-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,i,s/255*1e3/10]}function o(t){var e=t[0],i=t[1],a=t[2];return[n(t)[0],100*(1/255*Math.min(e,Math.min(i,a))),100*(a=1-1/255*Math.max(e,Math.max(i,a)))]}function s(t){var e,i=t[0]/255,n=t[1]/255,a=t[2]/255;return[100*((1-i-(e=Math.min(1-i,1-n,1-a)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]}function l(t){return M[JSON.stringify(t)]}function u(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*i+.0722*n),100*(.0193*e+.1192*i+.9505*n)]}function d(t){var e=u(t),i=e[0],n=e[1],a=e[2];return n/=100,a/=108.883,i=(i/=95.047)>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(i-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function h(t){var e,i,n,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[r=255*l,r,r];e=2*l-(i=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(n=o+1/3*-(u-1))<0&&n++,n>1&&n--,r=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,a[u]=255*r;return a}function c(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),o=255*n*(1-i),s=255*n*(1-i*r),l=255*n*(1-i*(1-r));n*=255;switch(a){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}}function f(t){var e,i,n,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),i=1-l,n=6*o-(e=Math.floor(6*o)),0!=(1&e)&&(n=1-n),a=s+n*(i-s),e){default:case 6:case 0:r=i,g=a,b=s;break;case 1:r=a,g=i,b=s;break;case 2:r=s,g=i,b=a;break;case 3:r=s,g=a,b=i;break;case 4:r=a,g=s,b=i;break;case 5:r=i,g=s,b=a}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]}function p(t){var e,i,n,a=t[0]/100,r=t[1]/100,o=t[2]/100;return i=-.9689*a+1.8758*r+.0415*o,n=.0557*a+-.204*r+1.057*o,e=(e=3.2406*a+-1.5372*r+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]}function v(t){var e=t[0],i=t[1],n=t[2];return i/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]}function y(t){var e,i,n,a,r=t[0],o=t[1],s=t[2];return r<=8?a=(i=100*r/903.3)/100*7.787+16/116:(i=100*Math.pow((r+16)/116,3),a=Math.pow(i/100,1/3)),[e=e/95.047<=.008856?e=95.047*(o/500+a-16/116)/7.787:95.047*Math.pow(o/500+a,3),i,n=n/108.883<=.008859?n=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function x(t){var e,i=t[0],n=t[1],a=t[2];return(e=360*Math.atan2(a,n)/2/Math.PI)<0&&(e+=360),[i,Math.sqrt(n*n+a*a),e]}function k(t){return p(y(t))}function _(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]}function w(t){return S[t]}e.exports={rgb2hsl:n,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],i=t[1]/100,n=t[2]/100;if(0===n)return[0,0,0];return[e,100*(2*(i*=(n*=2)<=1?n:2-n)/(n+i)),100*((n+i)/2)]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e,i,n=t[0],a=t[1]/100,r=t[2]/100;return e=a*r,[n,100*(e=(e/=(i=(2-a)*r)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return n(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return n(m(t))},cmyk2hsv:function(t){return a(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return n(w(t))},keyword2hsv:function(t){return a(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:k,lab2lch:x,lch2lab:_,lch2xyz:function(t){return y(_(t))},lch2rgb:function(t){return k(_(t))}};var S={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]},M={};for(var D in S)M[JSON.stringify(S[D])]=D},{}],4:[function(t,e,i){var n=t(3),a=function(){return new u};for(var r in n){a[r+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),n[t](e)}}(r);var o=/(\w+)2(\w+)/.exec(r),s=o[1],l=o[2];(a[s]=a[s]||{})[l]=a[r]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=n[t](e);if("string"==typeof i||void 0===i)return i;for(var a=0;a<i.length;a++)i[a]=Math.round(i[a]);return i}}(r)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},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 i=this.space,n=this.convs[i];e=a[i][t](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=a},{3:3}],5:[function(t,e,i){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]}},{}],6:[function(t,e,i){var n,a;n=this,a=function(){"use strict";var i;function n(){return i.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return"number"==typeof value||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var i in e)u(e,i)&&(t[i]=e[i]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,i,n){return Se(t,e,i,n,!0).utc()}function c(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),t._pf}var f=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};function g(t){if(null==t._isValid){var e=c(t),i=f.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function m(t){var e=h(NaN);return null!=t?d(c(e),t):c(e).userInvalidated=!0,e}function p(t){return void 0===t}var v=n.momentProperties=[];function b(t,e){var i,n,a;if(p(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),p(e._i)||(t._i=e._i),p(e._f)||(t._f=e._f),p(e._l)||(t._l=e._l),p(e._strict)||(t._strict=e._strict),p(e._tzm)||(t._tzm=e._tzm),p(e._isUTC)||(t._isUTC=e._isUTC),p(e._offset)||(t._offset=e._offset),p(e._pf)||(t._pf=c(e)),p(e._locale)||(t._locale=e._locale),v.length>0)for(i in v)p(a=e[n=v[i]])||(t[n]=a);return t}var y=!1;function x(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function k(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=_(e)),i}function S(t,e,i){var n,a=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(n=0;n<a;n++)(i&&t[n]!==e[n]||!i&&w(t[n])!==w(e[n]))&&o++;return o+r}function M(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(t,e){var i=!0;return d(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var a,r=[],o=0;o<arguments.length;o++){if(a="","object"==typeof arguments[o]){a+="\n["+o+"] ";for(var s in arguments[0])a+=s+": "+arguments[0][s]+", ";a=a.slice(0,-2)}else a=arguments[o];r.push(a)}M(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var C={};function T(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),C[t]||(M(e),C[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,e){var i,n=d({},t);for(i in e)u(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)u(t,i)&&!u(e,i)&&r(t[i])&&(n[i]=d({},n[i]));return n}function F(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var A=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)u(t,e)&&i.push(e);return i};var O={};function R(t,e){var i=t.toLowerCase();O[i]=O[i+"s"]=O[e]=t}function L(t){return"string"==typeof t?O[t]||O[t.toLowerCase()]:void 0}function W(t){var e,i,n={};for(i in t)u(t,i)&&(e=L(i))&&(n[e]=t[i]);return n}var V={};function Y(t,e){V[t]=e}function B(t,e){return function(i){return null!=i?(N(this,t,i),n.updateOffset(this,e),this):z(this,t)}}function z(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function N(t,e,i){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](i)}function H(t,e,i){var n=""+Math.abs(t),a=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},G={};function q(t,e,i,n){var a=n;"string"==typeof n&&(a=function(){return this[n]()}),t&&(G[t]=a),e&&(G[e[0]]=function(){return H(a.apply(this,arguments),e[1],e[2])}),i&&(G[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function Z(t,e){return t.isValid()?(e=X(e,t.localeData()),j[e]=j[e]||function(t){var e,i,n,a=t.match(E);for(e=0,i=a.length;e<i;e++)G[a[e]]?a[e]=G[a[e]]:a[e]=(n=a[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,r="";for(n=0;n<i;n++)r+=a[n]instanceof Function?a[n].call(e,t):a[n];return r}}(e),j[e](t)):t.localeData().invalidDate()}function X(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(U.lastIndex=0;i>=0&&U.test(t);)t=t.replace(U,n),U.lastIndex=0,i-=1;return t}var J=/\d/,K=/\d\d/,Q=/\d{3}/,$=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,it=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,at=/\d{1,3}/,rt=/\d{1,4}/,ot=/[+-]?\d{1,6}/,st=/\d+/,lt=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,dt=/Z|[+-]\d\d(?::?\d\d)?/gi,ht=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ct={};function ft(t,e,i){ct[t]=P(e)?e:function(t,n){return t&&i?i:e}}function gt(t,e){return u(ct,t)?ct[t](e._strict,e._locale):new RegExp(mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,a){return e||i||n||a})))}function mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function vt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),o(e)&&(n=function(t,i){i[e]=w(t)}),i=0;i<t.length;i++)pt[t[i]]=n}function bt(t,e){vt(t,function(t,i,n,a){n._w=n._w||{},e(t,n._w,n,a)})}var yt=0,xt=1,kt=2,_t=3,wt=4,St=5,Mt=6,Dt=7,Ct=8,Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function Pt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),q("MMMM",0,0,function(t){return this.localeData().months(this,t)}),R("month","M"),Y("month",8),ft("M",et),ft("MM",et,K),ft("MMM",function(t,e){return e.monthsShortRegex(t)}),ft("MMMM",function(t,e){return e.monthsRegex(t)}),vt(["M","MM"],function(t,e){e[xt]=w(t)-1}),vt(["MMM","MMMM"],function(t,e,i,n){var a=i._locale.monthsParse(t,n,i._strict);null!=a?e[xt]=a:c(i).invalidMonth=t});var It=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var At="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ot(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(!o(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Pt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Rt(t){return null!=t?(Ot(this,t),n.updateOffset(this,!0),this):z(this,"Month")}var Lt=ht;var Wt=ht;function Vt(){function t(t,e){return e.length-t.length}var e,i,n=[],a=[],r=[];for(e=0;e<12;e++)i=h([2e3,e]),n.push(this.monthsShort(i,"")),a.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(n.sort(t),a.sort(t),r.sort(t),e=0;e<12;e++)n[e]=mt(n[e]),a[e]=mt(a[e]);for(e=0;e<24;e++)r[e]=mt(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Yt(t){return Bt(t)?366:365}function Bt(t){return t%4==0&&t%100!=0||t%400==0}q("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),R("year","y"),Y("year",1),ft("Y",lt),ft("YY",et,K),ft("YYYY",rt,$),ft("YYYYY",ot,tt),ft("YYYYYY",ot,tt),vt(["YYYYY","YYYYYY"],yt),vt("YYYY",function(t,e){e[yt]=2===t.length?n.parseTwoDigitYear(t):w(t)}),vt("YY",function(t,e){e[yt]=n.parseTwoDigitYear(t)}),vt("Y",function(t,e){e[yt]=parseInt(t,10)}),n.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var zt=B("FullYear",!0);function Nt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Ht(t,e,i){var n=7+e-i;return-((7+Nt(t,0,n).getUTCDay()-e)%7)+n-1}function Et(t,e,i,n,a){var r,o,s=1+7*(e-1)+(7+i-n)%7+Ht(t,n,a);return s<=0?o=Yt(r=t-1)+s:s>Yt(t)?(r=t+1,o=s-Yt(t)):(r=t,o=s),{year:r,dayOfYear:o}}function Ut(t,e,i){var n,a,r=Ht(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+jt(a=t.year()-1,e,i):o>jt(t.year(),e,i)?(n=o-jt(t.year(),e,i),a=t.year()+1):(a=t.year(),n=o),{week:n,year:a}}function jt(t,e,i){var n=Ht(t,e,i),a=Ht(t+1,e,i);return(Yt(t)-n+a)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),Y("week",5),Y("isoWeek",5),ft("w",et),ft("ww",et,K),ft("W",et),ft("WW",et,K),bt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=w(t)});q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ft("d",et),ft("e",et),ft("E",et),ft("dd",function(t,e){return e.weekdaysMinRegex(t)}),ft("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ft("dddd",function(t,e){return e.weekdaysRegex(t)}),bt(["dd","ddd","dddd"],function(t,e,i,n){var a=i._locale.weekdaysParse(t,n,i._strict);null!=a?e.d=a:c(i).invalidWeekday=t}),bt(["d","e","E"],function(t,e,i,n){e[n]=w(t)});var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Xt=ht;var Jt=ht;var Kt=ht;function Qt(){function t(t,e){return e.length-t.length}var e,i,n,a,r,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)i=h([2e3,1]).day(e),n=this.weekdaysMin(i,""),a=this.weekdaysShort(i,""),r=this.weekdays(i,""),o.push(n),s.push(a),l.push(r),u.push(n),u.push(a),u.push(r);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=mt(s[e]),l[e]=mt(l[e]),u[e]=mt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function $t(){return this.hours()%12||12}function te(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,$t),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+$t.apply(this)+H(this.minutes(),2)}),q("hmmss",0,0,function(){return""+$t.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),te("a",!0),te("A",!1),R("hour","h"),Y("hour",13),ft("a",ee),ft("A",ee),ft("H",et),ft("h",et),ft("HH",et,K),ft("hh",et,K),ft("hmm",it),ft("hmmss",nt),ft("Hmm",it),ft("Hmmss",nt),vt(["H","HH"],_t),vt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),vt(["h","hh"],function(t,e,i){e[_t]=w(t),c(i).bigHour=!0}),vt("hmm",function(t,e,i){var n=t.length-2;e[_t]=w(t.substr(0,n)),e[wt]=w(t.substr(n)),c(i).bigHour=!0}),vt("hmmss",function(t,e,i){var n=t.length-4,a=t.length-2;e[_t]=w(t.substr(0,n)),e[wt]=w(t.substr(n,2)),e[St]=w(t.substr(a)),c(i).bigHour=!0}),vt("Hmm",function(t,e,i){var n=t.length-2;e[_t]=w(t.substr(0,n)),e[wt]=w(t.substr(n))}),vt("Hmmss",function(t,e,i){var n=t.length-4,a=t.length-2;e[_t]=w(t.substr(0,n)),e[wt]=w(t.substr(n,2)),e[St]=w(t.substr(a))});var ie,ne=B("Hours",!0),ae={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ft,monthsShort:At,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Zt,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},re={},oe={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function le(i){var n=null;if(!re[i]&&void 0!==e&&e&&e.exports)try{n=ie._abbr,t("./locale/"+i),ue(n)}catch(t){}return re[i]}function ue(t,e){var i;return t&&(i=p(e)?he(t):de(t,e))&&(ie=i),ie._abbr}function de(t,e){if(null!==e){var i=ae;if(e.abbr=t,null!=re[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=re[t]._config;else if(null!=e.parentLocale){if(null==re[e.parentLocale])return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;i=re[e.parentLocale]._config}return re[t]=new F(I(i,e)),oe[t]&&oe[t].forEach(function(t){de(t.name,t.config)}),ue(t),re[t]}return delete re[t],null}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ie;if(!a(t)){if(e=le(t))return e;t=[t]}return function(t){for(var e,i,n,a,r=0;r<t.length;){for(e=(a=se(t[r]).split("-")).length,i=(i=se(t[r+1]))?i.split("-"):null;e>0;){if(n=le(a.slice(0,e).join("-")))return n;if(i&&i.length>=e&&S(a,i,!0)>=e-1)break;e--}r++}return null}(t)}function ce(t){var e,i=t._a;return i&&-2===c(t).overflow&&(e=i[xt]<0||i[xt]>11?xt:i[kt]<1||i[kt]>Pt(i[yt],i[xt])?kt:i[_t]<0||i[_t]>24||24===i[_t]&&(0!==i[wt]||0!==i[St]||0!==i[Mt])?_t:i[wt]<0||i[wt]>59?wt:i[St]<0||i[St]>59?St:i[Mt]<0||i[Mt]>999?Mt:-1,c(t)._overflowDayOfYear&&(e<yt||e>kt)&&(e=kt),c(t)._overflowWeeks&&-1===e&&(e=Dt),c(t)._overflowWeekday&&-1===e&&(e=Ct),c(t).overflow=e),t}var fe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],be=/^\/?Date\((\-?\d+)/i;function ye(t){var e,i,n,a,r,o,s=t._i,l=fe.exec(s)||ge.exec(s);if(l){for(c(t).iso=!0,e=0,i=pe.length;e<i;e++)if(pe[e][1].exec(l[1])){a=pe[e][0],n=!1!==pe[e][2];break}if(null==a)return void(t._isValid=!1);if(l[3]){for(e=0,i=ve.length;e<i;e++)if(ve[e][1].exec(l[3])){r=(l[2]||" ")+ve[e][0];break}if(null==r)return void(t._isValid=!1)}if(!n&&null!=r)return void(t._isValid=!1);if(l[4]){if(!me.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),_e(t)}else t._isValid=!1}function xe(t,e,i){return null!=t?t:null!=e?e:i}function ke(t){var e,i,a,r,o=[];if(!t._d){var s,l;for(s=t,l=new Date(n.now()),a=s._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[kt]&&null==t._a[xt]&&function(t){var e,i,n,a,r,o,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,i=xe(e.GG,t._a[yt],Ut(Me(),1,4).year),n=xe(e.W,1),((a=xe(e.E,1))<1||a>7)&&(l=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=Ut(Me(),r,o);i=xe(e.gg,t._a[yt],u.year),n=xe(e.w,u.week),null!=e.d?((a=e.d)<0||a>6)&&(l=!0):null!=e.e?(a=e.e+r,(e.e<0||e.e>6)&&(l=!0)):a=r}n<1||n>jt(i,r,o)?c(t)._overflowWeeks=!0:null!=l?c(t)._overflowWeekday=!0:(s=Et(i,n,a,r,o),t._a[yt]=s.year,t._dayOfYear=s.dayOfYear)}(t),t._dayOfYear&&(r=xe(t._a[yt],a[yt]),t._dayOfYear>Yt(r)&&(c(t)._overflowDayOfYear=!0),i=Nt(r,0,t._dayOfYear),t._a[xt]=i.getUTCMonth(),t._a[kt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=a[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[_t]&&0===t._a[wt]&&0===t._a[St]&&0===t._a[Mt]&&(t._nextDay=!0,t._a[_t]=0),t._d=(t._useUTC?Nt:function(t,e,i,n,a,r,o){var s=new Date(t,e,i,n,a,r,o);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[_t]=24)}}function _e(t){if(t._f!==n.ISO_8601){t._a=[],c(t).empty=!0;var e,i,a,r,o,s,l,d,h=""+t._i,f=h.length,g=0;for(a=X(t._f,t._locale).match(E)||[],e=0;e<a.length;e++)r=a[e],(i=(h.match(gt(r,t))||[])[0])&&((o=h.substr(0,h.indexOf(i))).length>0&&c(t).unusedInput.push(o),h=h.slice(h.indexOf(i)+i.length),g+=i.length),G[r]?(i?c(t).empty=!1:c(t).unusedTokens.push(r),s=r,d=t,null!=(l=i)&&u(pt,s)&&pt[s](l,d._a,d,s)):t._strict&&!i&&c(t).unusedTokens.push(r);c(t).charsLeftOver=f-g,h.length>0&&c(t).unusedInput.push(h),t._a[_t]<=12&&!0===c(t).bigHour&&t._a[_t]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[_t]=function(t,e,i){var n;if(null==i)return e;return null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[_t],t._meridiem),ke(t),ce(t)}else ye(t)}function we(t){var e,i,r,u,h=t._i,f=t._f;return t._locale=t._locale||he(t._l),null===h||void 0===f&&""===h?m({nullInput:!0}):("string"==typeof h&&(t._i=h=t._locale.preparse(h)),k(h)?new x(ce(h)):(s(h)?t._d=h:a(f)?function(t){var e,i,n,a,r;if(0===t._f.length)return c(t).invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;a<t._f.length;a++)r=0,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],_e(e),g(e)&&(r+=c(e).charsLeftOver,r+=10*c(e).unusedTokens.length,c(e).score=r,(null==n||r<n)&&(n=r,i=e));d(t,i||e)}(t):f?_e(t):void 0===(i=(e=t)._i)?e._d=new Date(n.now()):s(i)?e._d=new Date(i.valueOf()):"string"==typeof i?(r=e,null===(u=be.exec(r._i))?(ye(r),!1===r._isValid&&(delete r._isValid,n.createFromInputFallback(r))):r._d=new Date(+u[1])):a(i)?(e._a=l(i.slice(0),function(t){return parseInt(t,10)}),ke(e)):"object"==typeof i?function(t){if(!t._d){var e=W(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ke(t)}}(e):o(i)?e._d=new Date(i):n.createFromInputFallback(e),g(t)||(t._d=null),t))}function Se(t,e,i,n,o){var s,l={};return!0!==i&&!1!==i||(n=i,i=void 0),(r(t)&&function(t){var e;for(e in t)return!1;return!0}(t)||a(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=i,l._i=t,l._f=e,l._strict=n,(s=new x(ce(we(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Me(t,e,i,n){return Se(t,e,i,n,!1)}n.createFromInputFallback=D("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),n.ISO_8601=function(){};var De=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Ce=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()});function Te(t,e){var i,n;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Me();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}function Pe(t){var e=W(t),i=e.year||0,n=e.quarter||0,a=e.month||0,r=e.week||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,d=e.millisecond||0;this._milliseconds=+d+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*n+12*i,this._data={},this._locale=he(),this._bubble()}function Ie(t){return t instanceof Pe}function Fe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(t,e){q(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+H(~~(t/60),2)+e+H(~~t%60,2)})}Ae("Z",":"),Ae("ZZ",""),ft("Z",dt),ft("ZZ",dt),vt(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Re(dt,t)});var Oe=/([\+\-]|\d\d)/gi;function Re(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Oe)||["-",0,0],a=60*n[1]+w(n[2]);return 0===a?0:"+"===n[0]?a:-a}function Le(t,e){var i,a;return e._isUTC?(i=e.clone(),a=(k(t)||s(t)?t.valueOf():Me(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+a),n.updateOffset(i,!1),i):Me(t).local()}function We(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ve(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}n.updateOffset=function(){};var Ye=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Be=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function ze(t,e){var i,n,a,r=t,s=null;return Ie(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(r={},e?r[e]=t:r.milliseconds=t):(s=Ye.exec(t))?(i="-"===s[1]?-1:1,r={y:0,d:w(s[kt])*i,h:w(s[_t])*i,m:w(s[wt])*i,s:w(s[St])*i,ms:w(Fe(1e3*s[Mt]))*i}):(s=Be.exec(t))?(i="-"===s[1]?-1:1,r={y:Ne(s[2],i),M:Ne(s[3],i),w:Ne(s[4],i),d:Ne(s[5],i),h:Ne(s[6],i),m:Ne(s[7],i),s:Ne(s[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=function(t,e){var i;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Le(e,t),t.isBefore(e)?i=He(t,e):((i=He(e,t)).milliseconds=-i.milliseconds,i.months=-i.months);return i}(Me(r.from),Me(r.to)),(r={}).ms=a.milliseconds,r.M=a.months),n=new Pe(r),Ie(t)&&u(t,"_locale")&&(n._locale=t._locale),n}function Ne(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function He(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Ee(t,e){return function(i,n){var a;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),Ue(this,ze(i="string"==typeof i?+i:i,n),t),this}}function Ue(t,e,i,a){var r=e._milliseconds,o=Fe(e._days),s=Fe(e._months);t.isValid()&&(a=null==a||a,r&&t._d.setTime(t._d.valueOf()+r*i),o&&N(t,"Date",z(t,"Date")+o*i),s&&Ot(t,z(t,"Month")+s*i),a&&n.updateOffset(t,o||s))}ze.fn=Pe.prototype;var je=Ee(1,"add"),Ge=Ee(-1,"subtract");function qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=he(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ze=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Xe(){return this._locale}function Je(t,e){q(0,[t,t.length],0,e)}function Ke(t,e,i,n,a){var r;return null==t?Ut(this,n,a).year:(e>(r=jt(t,n,a))&&(e=r),function(t,e,i,n,a){var r=Et(t,e,i,n,a),o=Nt(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,i,n,a))}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Je("gggg","weekYear"),Je("ggggg","weekYear"),Je("GGGG","isoWeekYear"),Je("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ft("G",lt),ft("g",lt),ft("GG",et,K),ft("gg",et,K),ft("GGGG",rt,$),ft("gggg",rt,$),ft("GGGGG",ot,tt),ft("ggggg",ot,tt),bt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=w(t)}),bt(["gg","GG"],function(t,e,i,a){e[a]=n.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),R("quarter","Q"),Y("quarter",7),ft("Q",J),vt("Q",function(t,e){e[xt]=3*(w(t)-1)}),q("D",["DD",2],"Do","date"),R("date","D"),Y("date",9),ft("D",et),ft("DD",et,K),ft("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),vt(["D","DD"],kt),vt("Do",function(t,e){e[kt]=w(t.match(et)[0])});var Qe=B("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),Y("dayOfYear",4),ft("DDD",at),ft("DDDD",Q),vt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=w(t)}),q("m",["mm",2],0,"minute"),R("minute","m"),Y("minute",14),ft("m",et),ft("mm",et,K),vt(["m","mm"],wt);var $e=B("Minutes",!1);q("s",["ss",2],0,"second"),R("second","s"),Y("second",15),ft("s",et),ft("ss",et,K),vt(["s","ss"],St);var ti,ei=B("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),Y("millisecond",16),ft("S",at,J),ft("SS",at,K),ft("SSS",at,Q),ti="SSSS";ti.length<=9;ti+="S")ft(ti,st);function ii(t,e){e[Mt]=w(1e3*("0."+t))}for(ti="S";ti.length<=9;ti+="S")vt(ti,ii);var ni=B("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var ai=x.prototype;function ri(t){return t}ai.add=je,ai.calendar=function(t,e){var i=t||Me(),a=Le(i,this).startOf("day"),r=n.calendarFormat(this,a)||"sameElse",o=e&&(P(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Me(i)))},ai.clone=function(){return new x(this)},ai.diff=function(t,e,i){var n,a,r,o;return this.isValid()&&(n=Le(t,this)).isValid()?(a=6e4*(n.utcOffset()-this.utcOffset()),"year"===(e=L(e))||"month"===e||"quarter"===e?(s=this,l=n,h=12*(l.year()-s.year())+(l.month()-s.month()),c=s.clone().add(h,"months"),l-c<0?(u=s.clone().add(h-1,"months"),d=(l-c)/(c-u)):(u=s.clone().add(h+1,"months"),d=(l-c)/(u-c)),o=-(h+d)||0,"quarter"===e?o/=3:"year"===e&&(o/=12)):(r=this-n,o="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-a)/864e5:"week"===e?(r-a)/6048e5:r),i?o:_(o)):NaN;var s,l,u,d,h,c},ai.endOf=function(t){return void 0===(t=L(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},ai.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=Z(this,t);return this.localeData().postformat(e)},ai.from=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Me(t).isValid())?ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ai.fromNow=function(t){return this.from(Me(),t)},ai.to=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Me(t).isValid())?ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ai.toNow=function(t){return this.to(Me(),t)},ai.get=function(t){return P(this[t=L(t)])?this[t]():this},ai.invalidAt=function(){return c(this).overflow},ai.isAfter=function(t,e){var i=k(t)?t:Me(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=L(p(e)?"millisecond":e))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},ai.isBefore=function(t,e){var i=k(t)?t:Me(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=L(p(e)?"millisecond":e))?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},ai.isBetween=function(t,e,i,n){return("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))},ai.isSame=function(t,e){var i,n=k(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=L(e||"millisecond"))?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},ai.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ai.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ai.isValid=function(){return g(this)},ai.lang=Ze,ai.locale=qe,ai.localeData=Xe,ai.max=Ce,ai.min=De,ai.parsingFlags=function(){return d({},c(this))},ai.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:V[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=W(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(P(this[t=L(t)]))return this[t](e);return this},ai.startOf=function(t){switch(t=L(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},ai.subtract=Ge,ai.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ai.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ai.toDate=function(){return new Date(this.valueOf())},ai.toISOString=function(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?P(Date.prototype.toISOString)?this.toDate().toISOString():Z(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Z(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},ai.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+a)},ai.toJSON=function(){return this.isValid()?this.toISOString():null},ai.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ai.unix=function(){return Math.floor(this.valueOf()/1e3)},ai.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ai.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ai.year=zt,ai.isLeapYear=function(){return Bt(this.year())},ai.weekYear=function(t){return Ke.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ai.isoWeekYear=function(t){return Ke.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ai.quarter=ai.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ai.month=Rt,ai.daysInMonth=function(){return Pt(this.year(),this.month())},ai.week=ai.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ai.isoWeek=ai.isoWeeks=function(t){var e=Ut(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ai.weeksInYear=function(){var t=this.localeData()._week;return jt(this.year(),t.dow,t.doy)},ai.isoWeeksInYear=function(){return jt(this.year(),1,4)},ai.date=Qe,ai.day=ai.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d")):n},ai.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ai.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=(i=t,n=this.localeData(),"string"==typeof i?n.weekdaysParse(i)%7||7:isNaN(i)?null:i);return this.day(this.day()%7?e:e-7)}return this.day()||7;var i,n},ai.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ai.hour=ai.hours=ne,ai.minute=ai.minutes=$e,ai.second=ai.seconds=ei,ai.millisecond=ai.milliseconds=ni,ai.utcOffset=function(t,e){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Re(dt,t)))return this}else Math.abs(t)<16&&(t*=60);return!this._isUTC&&e&&(i=We(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ue(this,ze(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:We(this)},ai.utc=function(t){return this.utcOffset(0,t)},ai.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(We(this),"m")),this},ai.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var t=Re(ut,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ai.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Me(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ai.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ai.isLocal=function(){return!!this.isValid()&&!this._isUTC},ai.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ai.isUtc=Ve,ai.isUTC=Ve,ai.zoneAbbr=function(){return this._isUTC?"UTC":""},ai.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ai.dates=D("dates accessor is deprecated. Use date instead.",Qe),ai.months=D("months accessor is deprecated. Use month instead",Rt),ai.years=D("years accessor is deprecated. Use year instead",zt),ai.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ai.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!p(this._isDSTShifted))return this._isDSTShifted;var t={};if(b(t,this),(t=we(t))._a){var e=t._isUTC?h(t._a):Me(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var oi=F.prototype;function si(t,e,i,n){var a=he(),r=h().set(n,e);return a[i](r,t)}function li(t,e,i){if(o(t)&&(e=t,t=void 0),t=t||"",null!=e)return si(t,e,i,"month");var n,a=[];for(n=0;n<12;n++)a[n]=si(t,n,i,"month");return a}function ui(t,e,i,n){"boolean"==typeof t?(o(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,o(e)&&(i=e,e=void 0),e=e||"");var a,r=he(),s=t?r._week.dow:0;if(null!=i)return si(e,(i+s)%7,n,"day");var l=[];for(a=0;a<7;a++)l[a]=si(e,(a+s)%7,n,"day");return l}oi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return P(n)?n.call(e,i):n},oi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},oi.invalidDate=function(){return this._invalidDate},oi.ordinal=function(t){return this._ordinal.replace("%d",t)},oi.preparse=ri,oi.postformat=ri,oi.relativeTime=function(t,e,i,n){var a=this._relativeTime[i];return P(a)?a(t,e,i,n):a.replace(/%d/i,t)},oi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return P(i)?i(e):i.replace(/%s/i,e)},oi.set=function(t){var e,i;for(i in t)P(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},oi.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||It).test(e)?"format":"standalone"][t.month()]:this._months},oi.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[It.test(e)?"format":"standalone"][t.month()]:this._monthsShort},oi.monthsParse=function(t,e,i){var n,a,r;if(this._monthsParseExact)return function(t,e,i){var n,a,r,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(a=Tt.call(this._shortMonthsParse,o))?a:null:-1!==(a=Tt.call(this._longMonthsParse,o))?a:null:"MMM"===e?-1!==(a=Tt.call(this._shortMonthsParse,o))?a:-1!==(a=Tt.call(this._longMonthsParse,o))?a:null:-1!==(a=Tt.call(this._longMonthsParse,o))?a:-1!==(a=Tt.call(this._shortMonthsParse,o))?a:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=h([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},oi.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Vt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},oi.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Vt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Lt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},oi.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},oi.firstDayOfYear=function(){return this._week.doy},oi.firstDayOfWeek=function(){return this._week.dow},oi.weekdays=function(t,e){return t?a(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:this._weekdays},oi.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},oi.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},oi.weekdaysParse=function(t,e,i){var n,a,r;if(this._weekdaysParseExact)return function(t,e,i){var n,a,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(a=Tt.call(this._weekdaysParse,o))?a:null:"ddd"===e?-1!==(a=Tt.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Tt.call(this._minWeekdaysParse,o))?a:null:"dddd"===e?-1!==(a=Tt.call(this._weekdaysParse,o))?a:-1!==(a=Tt.call(this._shortWeekdaysParse,o))?a:-1!==(a=Tt.call(this._minWeekdaysParse,o))?a:null:"ddd"===e?-1!==(a=Tt.call(this._shortWeekdaysParse,o))?a:-1!==(a=Tt.call(this._weekdaysParse,o))?a:-1!==(a=Tt.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Tt.call(this._minWeekdaysParse,o))?a:-1!==(a=Tt.call(this._weekdaysParse,o))?a:-1!==(a=Tt.call(this._shortWeekdaysParse,o))?a:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},oi.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},oi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},oi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},oi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},oi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},ue("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",ue),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",he);var di=Math.abs;function hi(t,e,i,n){var a=ze(e,i);return t._milliseconds+=n*a._milliseconds,t._days+=n*a._days,t._months+=n*a._months,t._bubble()}function ci(t){return t<0?Math.floor(t):Math.ceil(t)}function fi(t){return 4800*t/146097}function gi(t){return 146097*t/4800}function mi(t){return function(){return this.as(t)}}var pi=mi("ms"),vi=mi("s"),bi=mi("m"),yi=mi("h"),xi=mi("d"),ki=mi("w"),_i=mi("M"),wi=mi("y");function Si(t){return function(){return this._data[t]}}var Mi=Si("milliseconds"),Di=Si("seconds"),Ci=Si("minutes"),Ti=Si("hours"),Pi=Si("days"),Ii=Si("months"),Fi=Si("years");var Ai=Math.round,Oi={s:45,m:45,h:22,d:26,M:11};var Ri=Math.abs;function Li(){var t,e,i=Ri(this._milliseconds)/1e3,n=Ri(this._days),a=Ri(this._months);e=_((t=_(i/60))/60),i%=60,t%=60;var r=_(a/12),o=a%=12,s=n,l=e,u=t,d=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(r?r+"Y":"")+(o?o+"M":"")+(s?s+"D":"")+(l||u||d?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var Wi=Pe.prototype;return Wi.abs=function(){var t=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),t.milliseconds=di(t.milliseconds),t.seconds=di(t.seconds),t.minutes=di(t.minutes),t.hours=di(t.hours),t.months=di(t.months),t.years=di(t.years),this},Wi.add=function(t,e){return hi(this,t,e,1)},Wi.subtract=function(t,e){return hi(this,t,e,-1)},Wi.as=function(t){var e,i,n=this._milliseconds;if("month"===(t=L(t))||"year"===t)return e=this._days+n/864e5,i=this._months+fi(e),"month"===t?i:i/12;switch(e=this._days+Math.round(gi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=pi,Wi.asSeconds=vi,Wi.asMinutes=bi,Wi.asHours=yi,Wi.asDays=xi,Wi.asWeeks=ki,Wi.asMonths=_i,Wi.asYears=wi,Wi.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)},Wi._bubble=function(){var t,e,i,n,a,r=this._milliseconds,o=this._days,s=this._months,l=this._data;return r>=0&&o>=0&&s>=0||r<=0&&o<=0&&s<=0||(r+=864e5*ci(gi(s)+o),o=0,s=0),l.milliseconds=r%1e3,t=_(r/1e3),l.seconds=t%60,e=_(t/60),l.minutes=e%60,i=_(e/60),l.hours=i%24,s+=a=_(fi(o+=_(i/24))),o-=ci(gi(a)),n=_(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},Wi.get=function(t){return this[(t=L(t))+"s"]()},Wi.milliseconds=Mi,Wi.seconds=Di,Wi.minutes=Ci,Wi.hours=Ti,Wi.days=Pi,Wi.weeks=function(){return _(this.days()/7)},Wi.months=Ii,Wi.years=Fi,Wi.humanize=function(t){var e,i,n,a,r,o,s,l,u,d,h,c=this.localeData(),f=(i=!t,n=c,a=ze(e=this).abs(),r=Ai(a.as("s")),o=Ai(a.as("m")),s=Ai(a.as("h")),l=Ai(a.as("d")),u=Ai(a.as("M")),d=Ai(a.as("y")),(h=r<Oi.s&&["s",r]||o<=1&&["m"]||o<Oi.m&&["mm",o]||s<=1&&["h"]||s<Oi.h&&["hh",s]||l<=1&&["d"]||l<Oi.d&&["dd",l]||u<=1&&["M"]||u<Oi.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=i,h[3]=+e>0,h[4]=n,function(t,e,i,n,a){return a.relativeTime(e||1,!!i,t,n)}.apply(null,h));return t&&(f=c.pastFuture(+this,f)),c.postformat(f)},Wi.toISOString=Li,Wi.toString=Li,Wi.toJSON=Li,Wi.locale=qe,Wi.localeData=Xe,Wi.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Li),Wi.lang=Ze,q("X",0,0,"unix"),q("x",0,0,"valueOf"),ft("x",lt),ft("X",/[+-]?\d+(\.\d{1,3})?/),vt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),vt("x",function(t,e,i){i._d=new Date(w(t))}),n.version="2.16.0",i=Me,n.fn=ai,n.min=function(){return Te("isBefore",[].slice.call(arguments,0))},n.max=function(){return Te("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(t){return Me(1e3*t)},n.months=function(t,e){return li(t,e,"months")},n.isDate=s,n.locale=ue,n.invalid=m,n.duration=ze,n.isMoment=k,n.weekdays=function(t,e,i){return ui(t,e,i,"weekdays")},n.parseZone=function(){return Me.apply(null,arguments).parseZone()},n.localeData=he,n.isDuration=Ie,n.monthsShort=function(t,e){return li(t,e,"monthsShort")},n.weekdaysMin=function(t,e,i){return ui(t,e,i,"weekdaysMin")},n.defineLocale=de,n.updateLocale=function(t,e){if(null!=e){var i,n=ae;null!=re[t]&&(n=re[t]._config),(i=new F(e=I(n,e))).parentLocale=re[t],re[t]=i,ue(t)}else null!=re[t]&&(null!=re[t].parentLocale?re[t]=re[t].parentLocale:null!=re[t]&&delete re[t]);return re[t]},n.locales=function(){return A(re)},n.weekdaysShort=function(t,e,i){return ui(t,e,i,"weekdaysShort")},n.normalizeUnits=L,n.relativeTimeRounding=function(t){return void 0===t?Ai:"function"==typeof t&&(Ai=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Oi[t]&&(void 0===e?Oi[t]:(Oi[t]=e,!0))},n.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},n.prototype=ai,n},"object"==typeof i&&void 0!==e?e.exports=a():n.moment=a()},{}],7:[function(t,e,i){var n=t(28)();t(26)(n),t(22)(n),t(25)(n),t(21)(n),t(23)(n),t(24)(n),t(29)(n),t(33)(n),t(31)(n),t(34)(n),t(32)(n),t(35)(n),t(30)(n),t(27)(n),t(36)(n),t(37)(n),t(38)(n),t(39)(n),t(40)(n),t(43)(n),t(41)(n),t(42)(n),t(44)(n),t(45)(n),t(46)(n),t(15)(n),t(16)(n),t(17)(n),t(18)(n),t(19)(n),t(20)(n),t(8)(n),t(9)(n),t(10)(n),t(11)(n),t(12)(n),t(13)(n),t(14)(n),window.Chart=e.exports=n},{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,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){t.Radar=function(e,i){return i.type="radar",new t(e,i)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(t){t.defaults.scatter={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}},t.controllers.scatter=t.controllers.line,t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},{}],15:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,i){t.DatasetController.prototype.initialize.call(this,e,i),this.getMeta().bar=!0},getBarCount:function(){var t=this,i=0;return e.each(t.chart.data.datasets,function(e,n){t.chart.getDatasetMeta(n).bar&&t.chart.isDatasetVisible(n)&&++i},t),i},update:function(t){var i=this;e.each(i.getMeta().data,function(e,n){i.updateElement(e,n,t)},i)},updateElement:function(t,i,n){var a=this,r=a.getMeta(),o=a.getScaleForId(r.xAxisID),s=a.getScaleForId(r.yAxisID),l=s.getBasePixel(),u=a.chart.options.elements.rectangle,d=t.custom||{},h=a.getDataset();t._xScale=o,t._yScale=s,t._datasetIndex=a.index,t._index=i;var c=a.getRuler(i);t._model={x:a.calculateBarX(i,a.index,c),y:n?l:a.calculateBarY(i,a.index),label:a.chart.data.labels[i],datasetLabel:h.label,base:n?l:a.calculateBarBase(a.index,i),width:a.calculateBarWidth(c),backgroundColor:d.backgroundColor?d.backgroundColor:e.getValueAtIndexOrDefault(h.backgroundColor,i,u.backgroundColor),borderSkipped:d.borderSkipped?d.borderSkipped:u.borderSkipped,borderColor:d.borderColor?d.borderColor:e.getValueAtIndexOrDefault(h.borderColor,i,u.borderColor),borderWidth:d.borderWidth?d.borderWidth:e.getValueAtIndexOrDefault(h.borderWidth,i,u.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var i=this.getMeta(),n=this.getScaleForId(i.yAxisID),a=0;if(n.options.stacked){for(var r=this.chart,o=r.data.datasets,s=Number(o[t].data[e]),l=0;l<t;l++){var u=o[l],d=r.getDatasetMeta(l);if(d.bar&&d.yAxisID===n.id&&r.isDatasetVisible(l)){var h=Number(u.data[e]);a+=s<0?Math.min(h,0):Math.max(h,0)}}return n.getPixelForValue(a)}return n.getBasePixel()},getRuler:function(t){var e,i=this,n=i.getMeta(),a=i.getScaleForId(n.xAxisID),r=i.getBarCount(),o=(e="category"===a.options.type?a.getPixelForTick(t+1)-a.getPixelForTick(t):a.width/a.ticks.length)*a.options.categoryPercentage,s=(e-e*a.options.categoryPercentage)/2,l=o/r;a.ticks.length!==i.chart.data.labels.length&&(l*=a.ticks.length/i.chart.data.labels.length);return{datasetCount:r,tickWidth:e,categoryWidth:o,categorySpacing:s,fullBarWidth:l,barWidth:l*a.options.barPercentage,barSpacing:l-l*a.options.barPercentage}},calculateBarWidth:function(t){var e=this.getScaleForId(this.getMeta().xAxisID);return e.options.barThickness?e.options.barThickness:e.options.stacked?t.categoryWidth:t.barWidth},getBarIndex:function(t){var e,i=0;for(e=0;e<t;++e)this.chart.getDatasetMeta(e).bar&&this.chart.isDatasetVisible(e)&&++i;return i},calculateBarX:function(t,e,i){var n=this,a=n.getMeta(),r=n.getScaleForId(a.xAxisID),o=n.getBarIndex(e),s=r.getPixelForValue(null,t,e,n.chart.isCombo);return s-=n.chart.isCombo?i.tickWidth/2:0,r.options.stacked?s+i.categoryWidth/2+i.categorySpacing:s+i.barWidth/2+i.categorySpacing+i.barWidth*o+i.barSpacing/2+i.barSpacing*o},calculateBarY:function(t,e){var i=this,n=i.getMeta(),a=i.getScaleForId(n.yAxisID),r=Number(i.getDataset().data[t]);if(a.options.stacked){for(var o=0,s=0,l=0;l<e;l++){var u=i.chart.data.datasets[l],d=i.chart.getDatasetMeta(l);if(d.bar&&d.yAxisID===a.id&&i.chart.isDatasetVisible(l)){var h=Number(u.data[t]);h<0?s+=h||0:o+=h||0}}return r<0?a.getPixelForValue(s+r):a.getPixelForValue(o+r)}return a.getPixelForValue(r)},draw:function(t){var e,i,n=t||1,a=this.getMeta().data,r=this.getDataset();for(e=0,i=a.length;e<i;++e){var o=r.data[e];null===o||void 0===o||isNaN(o)||a[e].transition(n).draw()}},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,a=t.custom||{},r=t._model;r.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.hoverBackgroundColor,n,e.getHoverColor(r.backgroundColor)),r.borderColor=a.hoverBorderColor?a.hoverBorderColor:e.getValueAtIndexOrDefault(i.hoverBorderColor,n,e.getHoverColor(r.borderColor)),r.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:e.getValueAtIndexOrDefault(i.hoverBorderWidth,n,r.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,a=t.custom||{},r=t._model,o=this.chart.options.elements.rectangle;r.backgroundColor=a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(i.backgroundColor,n,o.backgroundColor),r.borderColor=a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(i.borderColor,n,o.borderColor),r.borderWidth=a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(i.borderWidth,n,o.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({updateElement:function(t,i,n){var a=this,r=a.getMeta(),o=a.getScaleForId(r.xAxisID),s=a.getScaleForId(r.yAxisID),l=o.getBasePixel(),u=t.custom||{},d=a.getDataset(),h=a.chart.options.elements.rectangle;t._xScale=o,t._yScale=s,t._datasetIndex=a.index,t._index=i;var c=a.getRuler(i);t._model={x:n?l:a.calculateBarX(i,a.index),y:a.calculateBarY(i,a.index,c),label:a.chart.data.labels[i],datasetLabel:d.label,base:n?l:a.calculateBarBase(a.index,i),height:a.calculateBarHeight(c),backgroundColor:u.backgroundColor?u.backgroundColor:e.getValueAtIndexOrDefault(d.backgroundColor,i,h.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:h.borderSkipped,borderColor:u.borderColor?u.borderColor:e.getValueAtIndexOrDefault(d.borderColor,i,h.borderColor),borderWidth:u.borderWidth?u.borderWidth:e.getValueAtIndexOrDefault(d.borderWidth,i,h.borderWidth)},t.draw=function(){var t=this._chart.ctx,e=this._view,i=e.height/2,n=e.y-i,a=e.y+i,r=e.base-(e.base-e.x),o=e.borderWidth/2;e.borderWidth&&(n+=o,a-=o,r+=o),t.beginPath(),t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth;var s=[[e.base,a],[e.base,n],[r,n],[r,a]],l=["bottom","left","top","right"].indexOf(e.borderSkipped,0);function u(t){return s[(l+t)%4]}-1===l&&(l=0),t.moveTo.apply(t,u(0));for(var d=1;d<4;d++)t.lineTo.apply(t,u(d));t.fill(),e.borderWidth&&t.stroke()},t.pivot()},calculateBarBase:function(t,e){var i=this.getMeta(),n=this.getScaleForId(i.xAxisID),a=0;if(n.options.stacked){for(var r=this.chart,o=r.data.datasets,s=Number(o[t].data[e]),l=0;l<t;l++){var u=o[l],d=r.getDatasetMeta(l);if(d.bar&&d.xAxisID===n.id&&r.isDatasetVisible(l)){var h=Number(u.data[e]);a+=s<0?Math.min(h,0):Math.max(h,0)}}return n.getPixelForValue(a)}return n.getBasePixel()},getRuler:function(t){var e,i=this,n=i.getMeta(),a=i.getScaleForId(n.yAxisID),r=i.getBarCount(),o=(e="category"===a.options.type?a.getPixelForTick(t+1)-a.getPixelForTick(t):a.width/a.ticks.length)*a.options.categoryPercentage,s=(e-e*a.options.categoryPercentage)/2,l=o/r;a.ticks.length!==i.chart.data.labels.length&&(l*=a.ticks.length/i.chart.data.labels.length);return{datasetCount:r,tickHeight:e,categoryHeight:o,categorySpacing:s,fullBarHeight:l,barHeight:l*a.options.barPercentage,barSpacing:l-l*a.options.barPercentage}},calculateBarHeight:function(t){var e=this.getScaleForId(this.getMeta().yAxisID);return e.options.barThickness?e.options.barThickness:e.options.stacked?t.categoryHeight:t.barHeight},calculateBarX:function(t,e){var i=this,n=i.getMeta(),a=i.getScaleForId(n.xAxisID),r=Number(i.getDataset().data[t]);if(a.options.stacked){for(var o=0,s=0,l=0;l<e;l++){var u=i.chart.data.datasets[l],d=i.chart.getDatasetMeta(l);if(d.bar&&d.xAxisID===a.id&&i.chart.isDatasetVisible(l)){var h=Number(u.data[t]);h<0?s+=h||0:o+=h||0}}return r<0?a.getPixelForValue(s+r):a.getPixelForValue(o+r)}return a.getPixelForValue(r)},calculateBarY:function(t,e,i){var n=this,a=n.getMeta(),r=n.getScaleForId(a.yAxisID),o=n.getBarIndex(e),s=r.getPixelForValue(null,t,e,n.chart.isCombo);return s-=n.chart.isCombo?i.tickHeight/2:0,r.options.stacked?s+i.categoryHeight/2+i.categorySpacing:s+i.barHeight/2+i.categorySpacing+i.barHeight*o+i.barSpacing/2+i.barSpacing*o}})}},{}],16:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.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){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var i=this,n=i.getMeta().data;e.each(n,function(e,n){i.updateElement(e,n,t)})},updateElement:function(i,n,a){var r=this,o=r.getMeta(),s=r.getScaleForId(o.xAxisID),l=r.getScaleForId(o.yAxisID),u=i.custom||{},d=r.getDataset(),h=d.data[n],c=r.chart.options.elements.point,f=r.index;e.extend(i,{_xScale:s,_yScale:l,_datasetIndex:f,_index:n,_model:{x:a?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof h?h:NaN,n,f,r.chart.isCombo),y:a?l.getBasePixel():l.getPixelForValue(h,n,f),radius:a?0:u.radius?u.radius:r.getRadius(h),hitRadius:u.hitRadius?u.hitRadius:e.getValueAtIndexOrDefault(d.hitRadius,n,c.hitRadius)}}),t.DatasetController.prototype.removeHoverStyle.call(r,i,c);var g=i._model;g.skip=u.skip?u.skip:isNaN(g.x)||isNaN(g.y),i.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){t.DatasetController.prototype.setHoverStyle.call(this,i);var n=this.chart.data.datasets[i._datasetIndex],a=i._index,r=i.custom||{};i._model.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(n.hoverRadius,a,this.chart.options.elements.point.hoverRadius)+this.getRadius(n.data[a])},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.point);var i=this.chart.data.datasets[e._datasetIndex].data[e._index],n=e.custom||{};e._model.radius=n.radius?n.radius:this.getRadius(i)}})}},{}],17:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var r=0;r<n[0].data.length;++r)e.push('<li><span style="background-color:'+n[0].backgroundColor[r]+'"></span>'),a[r]&&e.push(a[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(n,a){var r=t.getDatasetMeta(0),o=i.datasets[0],s=r.data[a],l=s&&s.custom||{},u=e.getValueAtIndexOrDefault,d=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,a,d.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,a,d.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,a,d.borderWidth),hidden:isNaN(o.data[a])||r.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var i,n,a,r=e.index,o=this.chart;for(i=0,n=(o.data.datasets||[]).length;i<n;++i)(a=o.getDatasetMeta(i)).data[r]&&(a.data[r].hidden=!a.data[r].hidden);o.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,i){var n=i.labels[t.index],a=": "+i.datasets[t.datasetIndex].data[t.index];return e.isArray(n)?(n=n.slice())[0]+=a:n+=a,n}}}},i.pie=e.clone(i.doughnut),e.extend(i.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var i=this,n=i.chart,a=n.chartArea,r=n.options,o=r.elements.arc,s=a.right-a.left-o.borderWidth,l=a.bottom-a.top-o.borderWidth,u=Math.min(s,l),d={x:0,y:0},h=i.getMeta(),c=r.cutoutPercentage,f=r.circumference;if(f<2*Math.PI){var g=r.rotation%(2*Math.PI),m=(g+=2*Math.PI*(g>=Math.PI?-1:g<-Math.PI?1:0))+f,p=Math.cos(g),v=Math.sin(g),b=Math.cos(m),y=Math.sin(m),x=g<=0&&0<=m||g<=2*Math.PI&&2*Math.PI<=m,k=g<=.5*Math.PI&&.5*Math.PI<=m||g<=2.5*Math.PI&&2.5*Math.PI<=m,_=g<=-Math.PI&&-Math.PI<=m||g<=Math.PI&&Math.PI<=m,w=g<=.5*-Math.PI&&.5*-Math.PI<=m||g<=1.5*Math.PI&&1.5*Math.PI<=m,S=c/100,M=_?-1:Math.min(p*(p<0?1:S),b*(b<0?1:S)),D=w?-1:Math.min(v*(v<0?1:S),y*(y<0?1:S)),C=x?1:Math.max(p*(p>0?1:S),b*(b>0?1:S)),T=k?1:Math.max(v*(v>0?1:S),y*(y>0?1:S)),P=.5*(C-M),I=.5*(T-D);u=Math.min(s/P,l/I),d={x:-.5*(C+M),y:-.5*(T+D)}}n.borderWidth=i.getMaxBorderWidth(h.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(c?n.outerRadius/100*c:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=d.x*n.outerRadius,n.offsetY=d.y*n.outerRadius,h.total=i.calculateTotal(),i.outerRadius=n.outerRadius-n.radiusLength*i.getRingIndex(i.index),i.innerRadius=i.outerRadius-n.radiusLength,e.each(h.data,function(e,n){i.updateElement(e,n,t)})},updateElement:function(t,i,n){var a=this,r=a.chart,o=r.chartArea,s=r.options,l=s.animation,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2,h=s.rotation,c=s.rotation,f=a.getDataset(),g=n&&l.animateRotate?0:t.hidden?0:a.calculateCircumference(f.data[i])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:a.innerRadius,p=n&&l.animateScale?0:a.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:a.index,_index:i,_model:{x:u+r.offsetX,y:d+r.offsetY,startAngle:h,endAngle:c,circumference:g,outerRadius:p,innerRadius:m,label:v(f.label,i,r.data.labels[i])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===i?s.rotation:a.getMeta().data[i-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,i=this.getDataset(),n=this.getMeta(),a=0;return e.each(n.data,function(e,n){t=i.data[n],isNaN(t)||e.hidden||(a+=Math.abs(t))}),a},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,i,n=0,a=this.index,r=t.length,o=0;o<r;o++)e=t[o]._model?t[o]._model.borderWidth:0,n=(i=t[o]._chart?t[o]._chart.config.data.datasets[a].hoverBorderWidth:0)>(n=e>n?e:n)?i:n;return n}})}},{}],18:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;function i(t,i){return e.getValueOrDefault(t.showLine,i.showLines)}t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var n,a,r,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],d=o.chart.options,h=d.elements.line,c=o.getScaleForId(s.yAxisID),f=o.getDataset(),g=i(f,d);for(g&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=c,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:r.tension?r.tension:e.getValueOrDefault(f.lineTension,h.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||h.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||h.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||h.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||h.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||h.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||h.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||h.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:h.fill,steppedLine:r.steppedLine?r.steppedLine:e.getValueOrDefault(f.steppedLine,h.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:e.getValueOrDefault(f.cubicInterpolationMode,h.cubicInterpolationMode),scaleTop:c.top,scaleBottom:c.bottom,scaleZero:c.getBasePixel()},l.pivot()),n=0,a=u.length;n<a;++n)o.updateElement(u[n],n,t);for(g&&0!==l._model.tension&&o.updateBezierControlPoints(),n=0,a=u.length;n<a;++n)u[n].pivot()},getPointBackgroundColor:function(t,i){var n=this.chart.options.elements.point.backgroundColor,a=this.getDataset(),r=t.custom||{};return r.backgroundColor?n=r.backgroundColor:a.pointBackgroundColor?n=e.getValueAtIndexOrDefault(a.pointBackgroundColor,i,n):a.backgroundColor&&(n=a.backgroundColor),n},getPointBorderColor:function(t,i){var n=this.chart.options.elements.point.borderColor,a=this.getDataset(),r=t.custom||{};return r.borderColor?n=r.borderColor:a.pointBorderColor?n=e.getValueAtIndexOrDefault(a.pointBorderColor,i,n):a.borderColor&&(n=a.borderColor),n},getPointBorderWidth:function(t,i){var n=this.chart.options.elements.point.borderWidth,a=this.getDataset(),r=t.custom||{};return r.borderWidth?n=r.borderWidth:a.pointBorderWidth?n=e.getValueAtIndexOrDefault(a.pointBorderWidth,i,n):a.borderWidth&&(n=a.borderWidth),n},updateElement:function(t,i,n){var a,r,o=this,s=o.getMeta(),l=t.custom||{},u=o.getDataset(),d=o.index,h=u.data[i],c=o.getScaleForId(s.yAxisID),f=o.getScaleForId(s.xAxisID),g=o.chart.options.elements.point,m=1===(o.chart.data.labels||[]).length||1===u.data.length||o.chart.isCombo;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),a=f.getPixelForValue("object"==typeof h?h:NaN,i,d,m),r=n?c.getBasePixel():o.calculatePointY(h,i,d),t._xScale=f,t._yScale=c,t._datasetIndex=d,t._index=i,t._model={x:a,y:r,skip:l.skip||isNaN(a)||isNaN(r),radius:l.radius||e.getValueAtIndexOrDefault(u.pointRadius,i,g.radius),pointStyle:l.pointStyle||e.getValueAtIndexOrDefault(u.pointStyle,i,g.pointStyle),backgroundColor:o.getPointBackgroundColor(t,i),borderColor:o.getPointBorderColor(t,i),borderWidth:o.getPointBorderWidth(t,i),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||e.getValueAtIndexOrDefault(u.pointHitRadius,i,g.hitRadius)}},calculatePointY:function(t,e,i){var n,a,r,o=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,d=0;if(l.options.stacked){for(n=0;n<i;n++)if(a=o.data.datasets[n],"line"===(r=o.getDatasetMeta(n)).type&&r.yAxisID===l.id&&o.isDatasetVisible(n)){var h=Number(l.getRightValue(a.data[e]));h<0?d+=h||0:u+=h||0}var c=Number(l.getRightValue(t));return c<0?l.getPixelForValue(d+c):l.getPixelForValue(u+c)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){var t,i,n,a,r=this.getMeta(),o=this.chart.chartArea,s=r.data||[];function l(t,e,i){return Math.max(Math.min(t,i),e)}if(r.dataset._model.spanGaps&&(s=s.filter(function(t){return!t._model.skip})),"monotone"===r.dataset._model.cubicInterpolationMode)e.splineCurveMonotone(s);else for(t=0,i=s.length;t<i;++t)n=s[t]._model,a=e.splineCurve(e.previousItem(s,t)._model,n,e.nextItem(s,t)._model,r.dataset._model.tension),n.controlPointPreviousX=a.previous.x,n.controlPointPreviousY=a.previous.y,n.controlPointNextX=a.next.x,n.controlPointNextY=a.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,i=s.length;t<i;++t)(n=s[t]._model).controlPointPreviousX=l(n.controlPointPreviousX,o.left,o.right),n.controlPointPreviousY=l(n.controlPointPreviousY,o.top,o.bottom),n.controlPointNextX=l(n.controlPointNextX,o.left,o.right),n.controlPointNextY=l(n.controlPointNextY,o.top,o.bottom)},draw:function(t){var e,n,a=this.getMeta(),r=a.data||[],o=t||1;for(e=0,n=r.length;e<n;++e)r[e].transition(o);for(i(this.getDataset(),this.chart.options)&&a.dataset.transition(o).draw(),e=0,n=r.length;e<n;++e)r[e].draw()},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,a=t.custom||{},r=t._model;r.radius=a.hoverRadius||e.getValueAtIndexOrDefault(i.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),r.backgroundColor=a.hoverBackgroundColor||e.getValueAtIndexOrDefault(i.pointHoverBackgroundColor,n,e.getHoverColor(r.backgroundColor)),r.borderColor=a.hoverBorderColor||e.getValueAtIndexOrDefault(i.pointHoverBorderColor,n,e.getHoverColor(r.borderColor)),r.borderWidth=a.hoverBorderWidth||e.getValueAtIndexOrDefault(i.pointHoverBorderWidth,n,r.borderWidth)},removeHoverStyle:function(t){var i=this,n=i.chart.data.datasets[t._datasetIndex],a=t._index,r=t.custom||{},o=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),o.radius=r.radius||e.getValueAtIndexOrDefault(n.pointRadius,a,i.chart.options.elements.point.radius),o.backgroundColor=i.getPointBackgroundColor(t,a),o.borderColor=i.getPointBorderColor(t,a),o.borderWidth=i.getPointBorderWidth(t,a)}})}},{}],19:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var r=0;r<n[0].data.length;++r)e.push('<li><span style="background-color:'+n[0].backgroundColor[r]+'"></span>'),a[r]&&e.push(a[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(n,a){var r=t.getDatasetMeta(0),o=i.datasets[0],s=r.data[a].custom||{},l=e.getValueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(o.backgroundColor,a,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(o.borderColor,a,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(o.borderWidth,a,u.borderWidth),hidden:isNaN(o.data[a])||r.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var i,n,a,r=e.index,o=this.chart;for(i=0,n=(o.data.datasets||[]).length;i<n;++i)(a=o.getDatasetMeta(i)).data[r].hidden=!a.data[r].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var i=this,n=i.chart,a=n.chartArea,r=i.getMeta(),o=n.options,s=o.elements.arc,l=Math.min(a.right-a.left,a.bottom-a.top);n.outerRadius=Math.max((l-s.borderWidth/2)/2,0),n.innerRadius=Math.max(o.cutoutPercentage?n.outerRadius/100*o.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),i.outerRadius=n.outerRadius-n.radiusLength*i.index,i.innerRadius=i.outerRadius-n.radiusLength,r.count=i.countVisibleElements(),e.each(r.data,function(e,n){i.updateElement(e,n,t)})},updateElement:function(t,i,n){for(var a=this,r=a.chart,o=a.getDataset(),s=r.options,l=s.animation,u=r.scale,d=e.getValueAtIndexOrDefault,h=r.data.labels,c=a.calculateCircumference(o.data[i]),f=u.xCenter,g=u.yCenter,m=0,p=a.getMeta(),v=0;v<i;++v)isNaN(o.data[v])||p.data[v].hidden||++m;var b=s.startAngle,y=t.hidden?0:u.getDistanceFromCenterForValue(o.data[i]),x=b+c*m,k=x+(t.hidden?0:c),_=l.animateScale?0:u.getDistanceFromCenterForValue(o.data[i]);e.extend(t,{_datasetIndex:a.index,_index:i,_scale:u,_model:{x:f,y:g,innerRadius:0,outerRadius:n?_:y,startAngle:n&&l.animateRotate?b:x,endAngle:n&&l.animateRotate?b:k,label:d(h,i,h[i])}}),a.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(),i=this.getMeta(),n=0;return e.each(i.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}})}},{}],20:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var i=this,n=i.getMeta(),a=n.dataset,r=n.data,o=a.custom||{},s=i.getDataset(),l=i.chart.options.elements.line,u=i.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(n.dataset,{_datasetIndex:i.index,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:e.getValueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle,scaleTop:u.top,scaleBottom:u.bottom,scaleZero:u.getBasePosition()}}),n.dataset.pivot(),e.each(r,function(e,n){i.updateElement(e,n,t)},i),i.updateBezierControlPoints()},updateElement:function(t,i,n){var a=this,r=t.custom||{},o=a.getDataset(),s=a.chart.scale,l=a.chart.options.elements.point,u=s.getPointPositionForValue(i,o.data[i]);e.extend(t,{_datasetIndex:a.index,_index:i,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:r.tension?r.tension:e.getValueOrDefault(o.tension,a.chart.options.elements.line.tension),radius:r.radius?r.radius:e.getValueAtIndexOrDefault(o.pointRadius,i,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,i,l.backgroundColor),borderColor:r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,i,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,i,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,i,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:e.getValueAtIndexOrDefault(o.hitRadius,i,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,i=this.getMeta();e.each(i.data,function(n,a){var r=n._model,o=e.splineCurve(e.previousItem(i.data,a,!0)._model,r,e.nextItem(i.data,a,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},draw:function(t){var i=this.getMeta(),n=t||1;e.each(i.data,function(t){t.transition(n)}),i.dataset.transition(n).draw(),e.each(i.data,function(t){t.draw()})},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},a=t._index,r=t._model;r.radius=n.hoverRadius?n.hoverRadius:e.getValueAtIndexOrDefault(i.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.pointHoverBackgroundColor,a,e.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:e.getValueAtIndexOrDefault(i.pointHoverBorderColor,a,e.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:e.getValueAtIndexOrDefault(i.pointHoverBorderWidth,a,r.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},a=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=n.radius?n.radius:e.getValueAtIndexOrDefault(i.radius,a,o.radius),r.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault(i.pointBackgroundColor,a,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:e.getValueAtIndexOrDefault(i.pointBorderColor,a,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:e.getValueAtIndexOrDefault(i.pointBorderWidth,a,o.borderWidth)}})}},{}],21:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,n){var a=this;n||(t.animating=!0);for(var r=0;r<a.animations.length;++r)if(a.animations[r].chartInstance===t)return void(a.animations[r].animationObject=e);a.animations.push({chartInstance:t,animationObject:e}),1===a.animations.length&&a.requestAnimationFrame()},cancelAnimation:function(t){var i=e.findIndex(this.animations,function(e){return e.chartInstance===t});-1!==i&&(this.animations.splice(i,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0;t.dropFrames>1&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var n=0;n<t.animations.length;)null===t.animations[n].animationObject.currentStep&&(t.animations[n].animationObject.currentStep=0),t.animations[n].animationObject.currentStep+=1+i,t.animations[n].animationObject.currentStep>t.animations[n].animationObject.numSteps&&(t.animations[n].animationObject.currentStep=t.animations[n].animationObject.numSteps),t.animations[n].animationObject.render(t.animations[n].chartInstance,t.animations[n].animationObject),t.animations[n].animationObject.onAnimationProgress&&t.animations[n].animationObject.onAnimationProgress.call&&t.animations[n].animationObject.onAnimationProgress.call(t.animations[n].chartInstance,t.animations[n]),t.animations[n].animationObject.currentStep===t.animations[n].animationObject.numSteps?(t.animations[n].animationObject.onAnimationComplete&&t.animations[n].animationObject.onAnimationComplete.call&&t.animations[n].animationObject.onAnimationComplete.call(t.animations[n].chartInstance,t.animations[n]),t.animations[n].chartInstance.animating=!1,t.animations.splice(n,1)):++n;var a=(Date.now()-e)/t.frameDuration;t.dropFrames+=a,t.animations.length>0&&t.requestAnimationFrame()}}}},{}],22:[function(t,e,i){"use strict";e.exports=function(t){(t.canvasHelpers={}).drawPoint=function(t,e,i,n,a){var r,o,s,l,u,d;if("object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(i)||i<=0)){switch(e){default:t.beginPath(),t.arc(n,a,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(o=3*i/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(n-o/2,a+u/3),t.lineTo(n+o/2,a+u/3),t.lineTo(n,a-2*u/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-d,a-d,2*d,2*d),t.strokeRect(n-d,a-d,2*d,2*d);break;case"rectRot":d=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-d,a),t.lineTo(n,a+d),t.lineTo(n+d,a),t.lineTo(n,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,a+i),t.lineTo(n,a-i),t.moveTo(n-i,a),t.lineTo(n+i,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n-s,a+l),t.lineTo(n+s,a-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,a+i),t.lineTo(n,a-i),t.moveTo(n-i,a),t.lineTo(n+i,a),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n-s,a+l),t.lineTo(n+s,a-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,a),t.lineTo(n+i,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,a),t.lineTo(n+i,a),t.closePath()}t.stroke()}}else t.drawImage(e,n-e.width/2,a-e.height/2)}}},{}],23:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;function i(t,i){var n=e.getStyle(t,i),a=n&&n.match(/(\d+)px/);return a?Number(a[1]):void 0}function n(t,e){if("string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t instanceof HTMLCanvasElement){var n=t.getContext&&t.getContext("2d");if(n instanceof CanvasRenderingContext2D)return function(t,e){var n=t.style,a=t.getAttribute("height"),r=t.getAttribute("width");if(t._chartjs={initial:{height:a,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var o=i(t,"width");void 0!==o&&(t.width=o)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=i(t,"height");void 0!==o&&(t.height=s)}}(t,e),n}return null}t.types={},t.instances={},t.controllers={},t.Controller=function(i,a,r){var o,s,l=this;(s=(o=(o=a)||{}).data=o.data||{}).datasets=s.datasets||[],s.labels=s.labels||[],o.options=e.configMerge(t.defaults.global,t.defaults[o.type],o.options||{});var u=n(i,a=o),d=u&&u.canvas,h=d&&d.height,c=d&&d.width;return r.ctx=u,r.canvas=d,r.config=a,r.width=c,r.height=h,r.aspectRatio=h?c/h:null,l.id=e.uid(),l.chart=r,l.config=a,l.options=a.options,l._bufferedRender=!1,t.instances[l.id]=l,Object.defineProperty(l,"data",{get:function(){return l.config.data}}),u&&d?(e.retinaScale(r),l.options.responsive&&(e.addResizeListener(d.parentNode,function(){l.resize()}),l.resize(!0)),l.initialize(),l):(console.error("Failed to create chart: can't acquire context from the given item"),l)},e.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return e.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(i){var n=this,a=n.chart,r=n.options,o=a.canvas,s=r.maintainAspectRatio&&a.aspectRatio||null,l=Math.floor(e.getMaximumWidth(o)),u=Math.floor(s?l/s:e.getMaximumHeight(o));if(a.width!==l||a.height!==u){o.width=a.width=l,o.height=a.height=u,o.style.width=l+"px",o.style.height=u+"px",e.retinaScale(a);var d={width:l,height:u};t.plugins.notify("resize",[n,d]),n.options.onResize&&n.options.onResize(n,d),i||(n.stop(),n.update(n.options.responsiveAnimationDuration))}},ensureScalesHaveIDs:function(){var t=this.options,i=t.scales||{},n=t.scale;e.each(i.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),e.each(i.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,n=i.options,a=i.scales={},r=[];n.scales&&(r=r.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&r.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),e.each(r,function(n){var r=n.options,o=e.getValueOrDefault(r.type,n.dtype),s=t.scaleService.getScaleConstructor(o);if(s){var l=new s({id:r.id,options:r,ctx:i.chart.ctx,chart:i});a[l.id]=l,n.isDefault&&(i.scale=l)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var i=this,n=[],a=[];if(e.each(i.data.datasets,function(e,r){var o=i.getDatasetMeta(r);o.type||(o.type=e.type||i.config.type),n.push(o.type),o.controller?o.controller.updateIndex(r):(o.controller=new t.controllers[o.type](i,r),a.push(o.controller))},i),n.length>1)for(var r=1;r<n.length;r++)if(n[r]!==n[r-1]){i.isCombo=!0;break}return a},resetElements:function(){var t=this;e.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(i,n){var a=this;t.plugins.notify("beforeUpdate",[a]),a.tooltip._data=a.data;var r=a.buildOrUpdateControllers();e.each(a.data.datasets,function(t,e){a.getDatasetMeta(e).controller.buildOrUpdateElements()},a),t.layoutService.update(a,a.chart.width,a.chart.height),t.plugins.notify("afterScaleUpdate",[a]),e.each(r,function(t){t.reset()}),a.updateDatasets(),t.plugins.notify("afterUpdate",[a]),a._bufferedRender?a._bufferedRequest={lazy:n,duration:i}:a.render(i,n)},updateDatasets:function(){var e,i;if(t.plugins.notify("beforeDatasetsUpdate",[this])){for(e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.update();t.plugins.notify("afterDatasetsUpdate",[this])}},render:function(i,n){var a=this;t.plugins.notify("beforeRender",[a]);var r=a.options.animation;if(r&&(void 0!==i&&0!==i||void 0===i&&0!==r.duration)){var o=new t.Animation;o.numSteps=(i||r.duration)/16.66,o.easing=r.easing,o.render=function(t,i){var n=e.easingEffects[i.easing],a=i.currentStep/i.numSteps,r=n(a);t.draw(r,a,i.currentStep)},o.onAnimationProgress=r.onProgress,o.onAnimationComplete=r.onComplete,t.animationService.addAnimation(a,o,i,n)}else a.draw(),r&&r.onComplete&&r.onComplete.call&&r.onComplete.call(a);return a},draw:function(i){var n=this,a=i||1;n.clear(),t.plugins.notify("beforeDraw",[n,a]),e.each(n.boxes,function(t){t.draw(n.chartArea)},n),n.scale&&n.scale.draw(),t.plugins.notify("beforeDatasetsDraw",[n,a]),e.each(n.data.datasets,function(t,e){n.isDatasetVisible(e)&&n.getDatasetMeta(e).controller.draw(i)},n,!0),t.plugins.notify("afterDatasetsDraw",[n,a]),n.tooltip.transition(a).draw(),t.plugins.notify("afterDraw",[n,a])},getElementAtEvent:function(e){return t.Interaction.modes.single(this,e)},getElementsAtEvent:function(e){return t.Interaction.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return t.Interaction.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,i,n){var a=t.Interaction.modes[i];return"function"==typeof a?a(this,e,n):[]},getDatasetAtEvent:function(e){return t.Interaction.modes.dataset(this,e)},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var i=e._meta[this.id];return i||(i=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++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)},destroy:function(){var i,n,a,r=this,o=r.chart.canvas;for(r.stop(),n=0,a=r.data.datasets.length;n<a;++n)(i=r.getDatasetMeta(n)).controller&&(i.controller.destroy(),i.controller=null);o&&(e.unbindEvents(r,r.events),e.removeResizeListener(o.parentNode),e.clear(r.chart),function(t){if(t._chartjs){var i=t._chartjs.initial;["height","width"].forEach(function(e){var n=i[e];void 0===n||null===n?t.removeAttribute(e):t.setAttribute(e,n)}),e.each(i.style||{},function(e,i){t.style[i]=e}),t.width=t.width,delete t._chartjs}}(o),r.chart.canvas=null,r.chart.ctx=null),t.plugins.notify("destroy",[r]),delete t.instances[r.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e.chart,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e),e.tooltip.initialize()},bindEvents:function(){var t=this;e.bindEvents(t,t.options.events,function(e){t.eventHandler(e)})},updateHoverStyle:function(t,e,i){var n,a,r,o=i?"setHoverStyle":"removeHoverStyle";for(a=0,r=t.length;a<r;++a)(n=t[a])&&this.getDatasetMeta(n._datasetIndex).controller[o](n)},eventHandler:function(t){var e=this,i=e.legend,n=e.tooltip,a=e.options.hover;e._bufferedRender=!0,e._bufferedRequest=null;var r=e.handleEvent(t);r|=i&&i.handleEvent(t),r|=n&&n.handleEvent(t);var o=e._bufferedRequest;return o?e.render(o.duration,o.lazy):r&&!e.animating&&(e.stop(),e.render(a.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e},handleEvent:function(t){var i,n=this,a=n.options||{},r=a.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,r.mode,r),r.onHover&&r.onHover.call(n,n.active),"mouseup"!==t.type&&"click"!==t.type||a.onClick&&a.onClick.call(n,t,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),i=!e.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,i}})}},{}],24:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=["push","pop","shift","splice","unshift"];function n(t,e){var n=t._chartjs;if(n){var a=n.listeners,r=a.indexOf(e);-1!==r&&a.splice(r,1),a.length>0||(i.forEach(function(e){delete t[e]}),delete t._chartjs)}}t.DatasetController=function(t,e){this.initialize(t,e)},e.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.getDataset();null===t.xAxisID&&(t.xAxisID=e.xAxisID||this.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=e.yAxisID||this.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.datasetElementType;return t&&new t({_chart:this.chart.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,i=this.getMeta(),n=this.getDataset().data||[],a=i.data;for(t=0,e=n.length;t<e;++t)a[t]=a[t]||this.createMetaData(t);i.dataset=i.dataset||this.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,a,r=this,o=r.getDataset(),s=o.data||(o.data=[]);r._data!==s&&(r._data&&n(r._data,r),a=r,(t=s)._chartjs?t._chartjs.listeners.push(a):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[a]}}),i.forEach(function(i){var n="onData"+i.charAt(0).toUpperCase()+i.slice(1),a=t[i];Object.defineProperty(t,i,{configurable:!0,enumerable:!1,value:function(){var i=Array.prototype.slice.call(arguments),r=a.apply(this,i);return e.each(t._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,i)}),r}})})),r._data=s),r.resyncElements()},update:e.noop,draw:function(t){var e,i,n=t||1,a=this.getMeta().data;for(e=0,i=a.length;e<i;++e)a[e].transition(n).draw()},removeHoverStyle:function(t,i){var n=this.chart.data.datasets[t._datasetIndex],a=t._index,r=t.custom||{},o=e.getValueAtIndexOrDefault,s=t._model;s.backgroundColor=r.backgroundColor?r.backgroundColor:o(n.backgroundColor,a,i.backgroundColor),s.borderColor=r.borderColor?r.borderColor:o(n.borderColor,a,i.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:o(n.borderWidth,a,i.borderWidth)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,a=t.custom||{},r=e.getValueAtIndexOrDefault,o=e.getHoverColor,s=t._model;s.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:r(i.hoverBackgroundColor,n,o(s.backgroundColor)),s.borderColor=a.hoverBorderColor?a.hoverBorderColor:r(i.hoverBorderColor,n,o(s.borderColor)),s.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:r(i.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,i=t.data.length,n=e.length;n<i?t.data.splice(n,i-n):n>i&&this.insertElements(i,n-i)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},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=e.inherits}},{}],25:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.elements={},t.Element=function(t){e.extend(this,t),this.initialize.apply(this,arguments)},e.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=e.clone(t._model)),t._start=e.clone(t._view),t},transition:function(t){var i=this;return i._view||(i._view=e.clone(i._model)),1===t?(i._view=i._model,i._start=null,i):(i._start||i.pivot(),e.each(i._model,function(n,a){if("_"===a[0]);else if(i._view.hasOwnProperty(a))if(n===i._view[a]);else if("string"==typeof n)try{var r=e.color(i._model[a]).mix(e.color(i._start[a]),t);i._view[a]=r.rgbString()}catch(t){i._view[a]=n}else if("number"==typeof n){var o=void 0!==i._start[a]&&!1===isNaN(i._start[a])?i._start[a]:0;i._view[a]=(i._model[a]-o)*t+o}else i._view[a]=n;else"number"!=typeof n||isNaN(i._view[a])?i._view[a]=n:i._view[a]=n*t},i),i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return e.isNumber(this._model.x)&&e.isNumber(this._model.y)}}),t.Element.extend=e.inherits}},{}],26:[function(t,e,i){"use strict";var n=t(2);e.exports=function(t){var e,i=t.helpers={};i.each=function(t,e,n,a){var r,o;if(i.isArray(t))if(o=t.length,a)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<o;r++)e.call(n,t[r],r);else if("object"==typeof t){var s=Object.keys(t);for(o=s.length,r=0;r<o;r++)e.call(n,t[s[r]],s[r])}},i.clone=function(t){var e={};return i.each(t,function(t,n){i.isArray(t)?e[n]=t.slice(0):e[n]="object"==typeof t&&null!==t?i.clone(t):t}),e},i.extend=function(t){for(var e=function(e,i){t[i]=e},n=1,a=arguments.length;n<a;n++)i.each(arguments[n],e);return t},i.configMerge=function(e){var n=i.clone(e);return i.each(Array.prototype.slice.call(arguments,1),function(e){i.each(e,function(e,a){var r=n.hasOwnProperty(a),o=r?n[a]:{};"scales"===a?n[a]=i.scaleMerge(o,e):"scale"===a?n[a]=i.configMerge(o,t.scaleService.getScaleDefaults(e.type),e):!r||"object"!=typeof o||i.isArray(o)||null===o||"object"!=typeof e||i.isArray(e)?n[a]=e:n[a]=i.configMerge(o,e)})}),n},i.scaleMerge=function(e,n){var a=i.clone(e);return i.each(n,function(e,n){"xAxes"===n||"yAxes"===n?a.hasOwnProperty(n)?i.each(e,function(e,r){var o=i.getValueOrDefault(e.type,"xAxes"===n?"category":"linear"),s=t.scaleService.getScaleDefaults(o);r>=a[n].length||!a[n][r].type?a[n].push(i.configMerge(s,e)):e.type&&e.type!==a[n][r].type?a[n][r]=i.configMerge(a[n][r],s,e):a[n][r]=i.configMerge(a[n][r],e)}):(a[n]=[],i.each(e,function(e){var r=i.getValueOrDefault(e.type,"xAxes"===n?"category":"linear");a[n].push(i.configMerge(t.scaleService.getScaleDefaults(r),e))})):a.hasOwnProperty(n)&&"object"==typeof a[n]&&null!==a[n]&&"object"==typeof e?a[n]=i.configMerge(a[n],e):a[n]=e}),a},i.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:i.isArray(t)?e<t.length?t[e]:n:t},i.getValueOrDefault=function(t,e){return void 0===t?e:t},i.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;i<n;++i)if(t[i]===e)return i;return-1},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,function(t){e(t)&&n.push(t)}),n},i.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,a=t.length;n<a;++n)if(e.call(i,t[n],n,t))return n;return-1},i.findNextWhere=function(t,e,i){void 0!==i&&null!==i||(i=-1);for(var n=i+1;n<t.length;n++){var a=t[n];if(e(a))return a}},i.findPreviousWhere=function(t,e,i){void 0!==i&&null!==i||(i=t.length);for(var n=i-1;n>=0;n--){var a=t[n];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},a=function(){this.constructor=n};return a.prototype=e.prototype,n.prototype=new a,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.noop=function(){},i.uid=(e=0,function(){return e++}),i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,i){return Math.abs(t-e)<i},i.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,a=Math.sqrt(i*i+n*n),r=Math.atan2(n,i);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,i,n){var a=t.skip?e:t,r=e,o=i.skip?e:i,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),h=n*(u=isNaN(u)?0:u),c=n*(d=isNaN(d)?0:d);return{previous:{x:r.x-h*(o.x-a.x),y:r.y-h*(o.y-a.y)},next:{x:r.x+c*(o.x-a.x),y:r.y+c*(o.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,a,r,o,s,l,u,d,h=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),c=h.length;for(e=0;e<c;++e)(a=h[e]).model.skip||(n=e>0?h[e-1]:null,(r=e<c-1?h[e+1]:null)&&!r.model.skip&&(a.deltaK=(r.model.y-a.model.y)/(r.model.x-a.model.x)),!n||n.model.skip?a.mK=a.deltaK:!r||r.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(e=0;e<c-1;++e)a=h[e],r=h[e+1],a.model.skip||r.model.skip||(i.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=r.mK=0:(o=a.mK/a.deltaK,s=r.mK/a.deltaK,(u=Math.pow(o,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(u),a.mK=o*l*a.deltaK,r.mK=s*l*a.deltaK)));for(e=0;e<c;++e)(a=h[e]).model.skip||(n=e>0?h[e-1]:null,r=e<c-1?h[e+1]:null,n&&!n.model.skip&&(d=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-d,a.model.controlPointPreviousY=a.model.y-d*a.mK),r&&!r.model.skip&&(d=(r.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+d,a.model.controlPointNextY=a.model.y+d*a.mK))},i.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),a=t/Math.pow(10,n);return(e?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10)*Math.pow(10,n)};var a=i.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*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 1*((t=t/1-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-1*((t=t/1-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 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-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/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(1-Math.pow(2,-10*t/1))},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:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-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,i=0,n=1;return 0===t?0:1==(t/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1==(t/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2==(t/=.5)?1:(i||(i=.3*1.5*1),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){return 1*(t/=1)*t*(2.70158*t-1.70158)},easeOutBack:function(t){return 1*((t=t/1-1)*t*(2.70158*t+1.70158)+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-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?7.5625*t*t*1:t<2/2.75?1*(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};function r(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function o(t){return void 0!==t&&null!==t&&"none"!==t}function s(t,e,i){var n=document.defaultView,a=t.parentNode,s=n.getComputedStyle(t)[e],l=n.getComputedStyle(a)[e],u=o(s),d=o(l),h=Number.POSITIVE_INFINITY;return u||d?Math.min(u?r(s,t,i):h,d?r(l,a,i):h):"none"}i.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.cancelAnimFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,a,r=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,a=l[0].clientY):(n=r.clientX,a=r.clientY);var u=parseFloat(i.getStyle(o,"padding-left")),d=parseFloat(i.getStyle(o,"padding-top")),h=parseFloat(i.getStyle(o,"padding-right")),c=parseFloat(i.getStyle(o,"padding-bottom")),f=s.right-s.left-u-h,g=s.bottom-s.top-d-c;return{x:n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),y:a=Math.round((a-s.top-d)/g*o.height/e.currentDevicePixelRatio)}},i.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},i.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=i.noop},i.bindEvents=function(t,e,n){var a=t.events=t.events||{};i.each(e,function(e){a[e]=function(){n.apply(t,arguments)},i.addEvent(t.chart.canvas,e,a[e])})},i.unbindEvents=function(t,e){var n=t.chart.canvas;i.each(e,function(t,e){i.removeEvent(n,e,t)})},i.getConstraintWidth=function(t){return s(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return s(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(i.getStyle(e,"padding-left"),10),a=parseInt(i.getStyle(e,"padding-right"),10),r=e.clientWidth-n-a,o=i.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},i.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(i.getStyle(e,"padding-top"),10),a=parseInt(i.getStyle(e,"padding-bottom"),10),r=e.clientHeight-n-a,o=i.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var i=t.canvas,n=t.height,a=t.width;i.height=n*e,i.width=a*e,t.ctx.scale(e,e),i.style.height=n+"px",i.style.width=a+"px"}},i.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},i.fontString=function(t,e,i){return e+" "+t+"px "+i},i.longestText=function(t,e,n,a){var r=(a=a||{}).data=a.data||{},o=a.garbageCollect=a.garbageCollect||[];a.font!==e&&(r=a.data={},o=a.garbageCollect=[],a.font=e),t.font=e;var s=0;i.each(n,function(e){void 0!==e&&null!==e&&!0!==i.isArray(e)?s=i.measureText(t,r,o,s,e):i.isArray(e)&&i.each(e,function(e){void 0===e||null===e||i.isArray(e)||(s=i.measureText(t,r,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;u<l;u++)delete r[o[u]];o.splice(0,l)}return s},i.measureText=function(t,e,i,n,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,i.push(a)),r>n&&(n=r),n},i.numberOfLabelLines=function(t){var e=1;return i.each(t,function(t){i.isArray(t)&&t.length>e&&(e=t.length)}),e},i.drawRoundedRectangle=function(t,e,i,n,a,r){t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.quadraticCurveTo(e+n,i,e+n,i+r),t.lineTo(e+n,i+a-r),t.quadraticCurveTo(e+n,i+a,e+n-r,i+a),t.lineTo(e+r,i+a),t.quadraticCurveTo(e,i+a,e,i+a-r),t.lineTo(e,i+r),t.quadraticCurveTo(e,i,e+r,i),t.closePath()},i.color=function(e){return n?e instanceof CanvasGradient?n(t.defaults.global.defaultColor):n(e):(console.error("Color.js not found!"),e)},i.addResizeListener=function(t,e){var n=document.createElement("iframe");n.className="chartjs-hidden-iframe",n.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",n.tabIndex=-1;var a=t._chartjs={resizer:n,ticking:!1},r=function(){a.ticking||(a.ticking=!0,i.requestAnimFrame.call(window,function(){if(a.resizer)return a.ticking=!1,e()}))};i.addEvent(n,"load",function(){i.addEvent(n.contentWindow||n,"resize",r),r()}),t.insertBefore(n,t.firstChild)},i.removeResizeListener=function(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}},i.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.arrayEquals=function(t,e){var n,a,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,a=t.length;n<a;++n)if(r=t[n],o=e[n],r instanceof Array&&o instanceof Array){if(!i.arrayEquals(r,o))return!1}else if(r!==o)return!1;return!0},i.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2}],27:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;function i(t,e){var i,n,a,r,o;for(n=0,r=t.data.datasets.length;n<r;++n)if(t.isDatasetVisible(n))for(a=0,o=(i=t.getDatasetMeta(n)).data.length;a<o;++a){var s=i.data[a];s._view.skip||e(s)}}function n(t,e){var n=[];return i(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function a(t,n,a,r){var o=Number.POSITIVE_INFINITY,s=[];return r||(r=e.distanceBetweenPoints),i(t,function(t){if(!a||t.inRange(n.x,n.y)){var e=t.getCenterPoint(),i=r(n,e);i<o?(s=[t],o=i):i===o&&s.push(t)}}),s}function r(t,i,r){var o=e.getRelativePosition(i,t.chart),s=r.intersect?n(t,o):a(t,o,!1,function(t,e){return Math.abs(t.x-e.x)}),l=[];return s.length?(t.data.datasets.forEach(function(e,i){if(t.isDatasetVisible(i)){var n=t.getDatasetMeta(i).data[s[0]._index];n&&!n._view.skip&&l.push(n)}}),l):[]}t.Interaction={modes:{single:function(t,n){var a=e.getRelativePosition(n,t.chart),r=[];return i(t,function(t){if(t.inRange(a.x,a.y))return r.push(t),r}),r.slice(0,1)},label:r,index:r,dataset:function(t,i,r){var o=e.getRelativePosition(i,t.chart),s=r.intersect?n(t,o):a(t,o,!1);return s.length>0&&(s=t.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(t,e){return r(t,e,!0)},point:function(t,i){return n(t,e.getRelativePosition(i,t.chart))},nearest:function(t,i,n){var r=a(t,e.getRelativePosition(i,t.chart),n.intersect);return r.length>1&&r.sort(function(t,e){var i=t.getArea()-e.getArea();return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),r.slice(0,1)},x:function(t,n,a){var r=e.getRelativePosition(n,t.chart),o=[],s=!1;return i(t,function(t){t.inXRange(r.x)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),a.intersect&&!s&&(o=[]),o},y:function(t,n,a){var r=e.getRelativePosition(n,t.chart),o=[],s=!1;return i(t,function(t){t.inYRange(r.y)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),a.intersect&&!s&&(o=[]),o}}}}},{}],28:[function(t,e,i){"use strict";e.exports=function(){var t=function(e,i){return this.controller=new t.Controller(e,i,this),this.controller};return t.defaults={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:{},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}}},t.Chart=t,t}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,i,n){if(t){var a=t.options.layout,r=a?a.padding:null,o=0,s=0,l=0,u=0;isNaN(r)?(o=r.left||0,s=r.right||0,l=r.top||0,u=r.bottom||0):(o=r,s=r,l=r,u=r);var d=e.where(t.boxes,function(t){return"left"===t.options.position}),h=e.where(t.boxes,function(t){return"right"===t.options.position}),c=e.where(t.boxes,function(t){return"top"===t.options.position}),f=e.where(t.boxes,function(t){return"bottom"===t.options.position}),g=e.where(t.boxes,function(t){return"chartArea"===t.options.position});c.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),f.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var m=i-o-s,p=n-l-u,v=p/2,b=(i-m/2)/(d.length+h.length),y=(n-v)/(c.length+f.length),x=m,k=p,_=[];e.each(d.concat(h,c,f),function(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?m:x,y),k-=e.height):(e=t.update(b,v),x-=e.width),_.push({horizontal:i,minSize:e,box:t})});var w=o,S=s,M=l,D=u;e.each(d.concat(h),F),e.each(d,function(t){w+=t.width}),e.each(h,function(t){S+=t.width}),e.each(c.concat(f),F),e.each(c,function(t){M+=t.height}),e.each(f,function(t){D+=t.height}),e.each(d.concat(h),function(t){var i=e.findNextWhere(_,function(e){return e.box===t}),n={left:0,right:0,top:M,bottom:D};i&&t.update(i.minSize.width,k,n)}),w=o,S=s,M=l,D=u,e.each(d,function(t){w+=t.width}),e.each(h,function(t){S+=t.width}),e.each(c,function(t){M+=t.height}),e.each(f,function(t){D+=t.height});var C=n-M-D,T=i-w-S;T===x&&C===k||(e.each(d,function(t){t.height=C}),e.each(h,function(t){t.height=C}),e.each(c,function(t){t.options.fullWidth||(t.width=T)}),e.each(f,function(t){t.options.fullWidth||(t.width=T)}),k=C,x=T);var P=o,I=l;e.each(d.concat(c),A),P+=x,I+=k,e.each(h,A),e.each(f,A),t.chartArea={left:w,top:M,right:w+x,bottom:M+k},e.each(g,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(x,k)})}function F(t){var i=e.findNextWhere(_,function(e){return e.box===t});if(i)if(t.isHorizontal()){var n={left:w,right:S,top:0,bottom:0};t.update(t.options.fullWidth?m:x,p/2,n)}else t.update(i.minSize.width,k)}function A(t){t.isHorizontal()?(t.left=t.options.fullWidth?o:w,t.right=t.options.fullWidth?i-s:w+x,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=P,t.right=P+t.width,t.top=M,t.bottom=M+k,P=t.right)}}}}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;function n(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,a=n.getDatasetMeta(i);a.hidden=null===a.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var i=t.data;return e.isArray(i.datasets)?i.datasets.map(function(i,n){return{text:i.label,fillStyle:e.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,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:i,beforeBuildLabels:i,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,a=i.options,r=a.labels,o=a.display,s=i.ctx,l=t.defaults.global,u=e.getValueOrDefault,d=u(r.fontSize,l.defaultFontSize),h=u(r.fontStyle,l.defaultFontStyle),c=u(r.fontFamily,l.defaultFontFamily),f=e.fontString(d,h,c),g=i.legendHitBoxes=[],m=i.minSize,p=i.isHorizontal();if(p?(m.width=i.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=i.maxHeight),o)if(s.font=f,p){var v=i.lineWidths=[0],b=i.legendItems.length?d+r.padding:0;s.textAlign="left",s.textBaseline="top",e.each(i.legendItems,function(t,e){var a=n(r,d)+d/2+s.measureText(t.text).width;v[v.length-1]+a+r.padding>=i.width&&(b+=d+r.padding,v[v.length]=i.left),g[e]={left:0,top:0,width:a,height:d},v[v.length-1]+=a+r.padding}),m.height+=b}else{var y=r.padding,x=i.columnWidths=[],k=r.padding,_=0,w=0,S=d+y;e.each(i.legendItems,function(t,e){var i=n(r,d)+d/2+s.measureText(t.text).width;w+S>m.height&&(k+=_+r.padding,x.push(_),_=0,w=0),_=Math.max(_,i),w+=S,g[e]={left:0,top:0,width:i,height:d}}),k+=_,x.push(_),m.width+=k}i.width=m.width,i.height=m.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,a=i.options,r=a.labels,o=t.defaults.global,s=o.elements.line,l=i.width,u=i.lineWidths;if(a.display){var d,h=i.ctx,c=e.getValueOrDefault,f=c(r.fontColor,o.defaultFontColor),g=c(r.fontSize,o.defaultFontSize),m=c(r.fontStyle,o.defaultFontStyle),p=c(r.fontFamily,o.defaultFontFamily),v=e.fontString(g,m,p);h.textAlign="left",h.textBaseline="top",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=v;var b=n(r,g),y=i.legendHitBoxes,x=i.isHorizontal();d=x?{x:i.left+(l-u[0])/2,y:i.top+r.padding,line:0}:{x:i.left+r.padding,y:i.top+r.padding,line:0};var k=g+r.padding;e.each(i.legendItems,function(e,n){var f,m,p,v,_=h.measureText(e.text).width,w=b+g/2+_,S=d.x,M=d.y;x?S+w>=l&&(M=d.y+=k,d.line++,S=d.x=i.left+(l-u[d.line])/2):M+k>i.bottom&&(S=d.x=S+i.columnWidths[d.line]+r.padding,M=d.y=i.top,d.line++),function(e,i,n){if(!(isNaN(b)||b<=0)){h.save(),h.fillStyle=c(n.fillStyle,o.defaultColor),h.lineCap=c(n.lineCap,s.borderCapStyle),h.lineDashOffset=c(n.lineDashOffset,s.borderDashOffset),h.lineJoin=c(n.lineJoin,s.borderJoinStyle),h.lineWidth=c(n.lineWidth,s.borderWidth),h.strokeStyle=c(n.strokeStyle,o.defaultColor);var r=0===c(n.lineWidth,s.borderWidth);if(h.setLineDash&&h.setLineDash(c(n.lineDash,s.borderDash)),a.labels&&a.labels.usePointStyle){var l=g*Math.SQRT2/2,u=l/Math.SQRT2,d=e+u,f=i+u;t.canvasHelpers.drawPoint(h,n.pointStyle,l,d,f)}else r||h.strokeRect(e,i,b,g),h.fillRect(e,i,b,g);h.restore()}}(S,M,e),y[n].left=S,y[n].top=M,f=S,m=M,p=e,v=_,h.fillText(p.text,b+g/2+f,m),p.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(b+g/2+f,m+g/2),h.lineTo(b+g/2+f+v,m+g/2),h.stroke()),x?d.x+=w+r.padding:d.y+=k})}},handleEvent:function(t){var i=this,n=i.options,a="mouseup"===t.type?"click":t.type,r=!1;if("mousemove"===a){if(!n.onHover)return}else{if("click"!==a)return;if(!n.onClick)return}var o=e.getRelativePosition(t,i.chart.chart),s=o.x,l=o.y;if(s>=i.left&&s<=i.right&&l>=i.top&&l<=i.bottom)for(var u=i.legendHitBoxes,d=0;d<u.length;++d){var h=u[d];if(s>=h.left&&s<=h.left+h.width&&l>=h.top&&l<=h.top+h.height){if("click"===a){n.onClick.call(i,t,i.legendItems[d]),r=!0;break}if("mousemove"===a){n.onHover.call(i,t,i.legendItems[d]),r=!0;break}}}return r}}),t.plugins.register({beforeInit:function(e){var i=e.options.legend;i&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:i,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var i,n,a=this._plugins,r=a.length;for(i=0;i<r;++i)if("function"==typeof(n=a[i])[t]&&!1===n[t].apply(n,e||[]))return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],32:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",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)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.Ticks.formatters.values}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=i,a.margins=e.extend({left:0,right:0,top:0,bottom:0},n),a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),a.buildTicks(),a.afterBuildTicks(),a.beforeTickToLabelConversion(),a.convertTicksToLabels(),a.afterTickToLabelConversion(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(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(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,a=t.defaults.global,r=i.options.ticks,o=e.getValueOrDefault(r.fontSize,a.defaultFontSize),s=e.getValueOrDefault(r.fontStyle,a.defaultFontStyle),l=e.getValueOrDefault(r.fontFamily,a.defaultFontFamily),u=e.fontString(o,s,l);n.font=u;var d,h=n.measureText(i.ticks[0]).width,c=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=c/2+3,i.paddingLeft=h/2+3,i.longestTextCache||(i.longestTextCache={});for(var f,g,m=e.longestText(n,u,i.ticks,i.longestTextCache),p=m,v=i.getPixelForTick(1)-i.getPixelForTick(0)-6;p>v&&i.labelRotation<r.maxRotation;){if(f=Math.cos(e.toRadians(i.labelRotation)),g=Math.sin(e.toRadians(i.labelRotation)),(d=f*h)+o/2>i.yLabelWidth&&(i.paddingLeft=d+o/2),i.paddingRight=o/2,g*m>i.maxHeight){i.labelRotation--;break}i.labelRotation++,p=f*m}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},a=i.options,r=t.defaults.global,o=a.ticks,s=a.scaleLabel,l=a.gridLines,u=a.display,d=i.isHorizontal(),h=e.getValueOrDefault(o.fontSize,r.defaultFontSize),c=e.getValueOrDefault(o.fontStyle,r.defaultFontStyle),f=e.getValueOrDefault(o.fontFamily,r.defaultFontFamily),g=e.fontString(h,c,f),m=e.getValueOrDefault(s.fontSize,r.defaultFontSize),p=a.gridLines.tickMarkLength;if(n.width=d?i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:u&&l.drawTicks?p:0,n.height=d?u&&l.drawTicks?p:0:i.maxHeight,s.display&&u&&(d?n.height+=1.5*m:n.width+=1.5*m),o.display&&u){i.longestTextCache||(i.longestTextCache={});var v=e.longestText(i.ctx,g,i.ticks,i.longestTextCache),b=e.numberOfLabelLines(i.ticks),y=.5*h;if(d){i.longestLabelWidth=v;var x=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+h*b+y*b;n.height=Math.min(i.maxHeight,n.height+x),i.ctx.font=g;var k=i.ctx.measureText(i.ticks[0]).width,_=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,w=Math.cos(e.toRadians(i.labelRotation)),S=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?w*k+3:k/2+3,i.paddingRight=0!==i.labelRotation?S*(h/2)+3:_/2+3}else{var M=i.maxWidth-n.width;o.mirror?v=0:v+=i.options.ticks.padding,v<M?n.width+=v:n.width=i.maxWidth,i.paddingTop=h/2,i.paddingBottom=h/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||void 0===t?NaN:"number"!=typeof t||isFinite(t)?"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t:NaN},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),a=n*t+i.paddingLeft;e&&(a+=n/2);var r=i.left+Math.round(a);return r+=i.isFullWidth()?i.margins.left:0}var o=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(o/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+Math.round(i);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this.min,e=this.max;return this.getPixelForValue(this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(i){var n=this,a=n.options;if(a.display){var r,o,s=n.ctx,l=t.defaults.global,u=a.ticks,d=a.gridLines,h=a.scaleLabel,c=0!==n.labelRotation,f=u.autoSkip,g=n.isHorizontal();u.maxTicksLimit&&(o=u.maxTicksLimit);var m=e.getValueOrDefault(u.fontColor,l.defaultFontColor),p=e.getValueOrDefault(u.fontSize,l.defaultFontSize),v=e.getValueOrDefault(u.fontStyle,l.defaultFontStyle),b=e.getValueOrDefault(u.fontFamily,l.defaultFontFamily),y=e.fontString(p,v,b),x=d.tickMarkLength,k=e.getValueOrDefault(d.borderDash,l.borderDash),_=e.getValueOrDefault(d.borderDashOffset,l.borderDashOffset),w=e.getValueOrDefault(h.fontColor,l.defaultFontColor),S=e.getValueOrDefault(h.fontSize,l.defaultFontSize),M=e.getValueOrDefault(h.fontStyle,l.defaultFontStyle),D=e.getValueOrDefault(h.fontFamily,l.defaultFontFamily),C=e.fontString(S,M,D),T=e.toRadians(n.labelRotation),P=Math.cos(T),I=n.longestLabelWidth*P;s.fillStyle=m;var F=[];if(g){if(r=!1,c&&(I/=2),(I+u.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(r=1+Math.floor((I+u.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),o&&n.ticks.length>o)for(;!r||n.ticks.length/(r||1)>o;)r||(r=1),r+=1;f||(r=!1)}var A="right"===a.position?n.left:n.right-x,O="right"===a.position?n.left+x:n.right,R="bottom"===a.position?n.top:n.bottom-x,L="bottom"===a.position?n.top+x:n.bottom;if(e.each(n.ticks,function(t,o){if(void 0!==t&&null!==t){var s=n.ticks.length===o+1;if((!(r>1&&o%r>0||o%r==0&&o+r>=n.ticks.length)||s)&&void 0!==t&&null!==t){var l,h,f,m,p,v,b,y,w,S,M,D;o===(void 0!==n.zeroLineIndex?n.zeroLineIndex:0)?(l=d.zeroLineWidth,h=d.zeroLineColor):(l=e.getValueAtIndexOrDefault(d.lineWidth,o),h=e.getValueAtIndexOrDefault(d.color,o));var C="middle",P="middle";if(g){c||(P="top"===a.position?"bottom":"top"),C=c?"right":"center";var I=n.getPixelForTick(o)+e.aliasPixel(l);M=n.getPixelForTick(o,d.offsetGridLines)+u.labelOffset,D=c?n.top+12:"top"===a.position?n.bottom-x:n.top+x,f=p=b=w=I,m=R,v=L,y=i.top,S=i.bottom}else{"left"===a.position?u.mirror?(M=n.right+u.padding,C="left"):(M=n.right-u.padding,C="right"):u.mirror?(M=n.left-u.padding,C="right"):(M=n.left+u.padding,C="left");var W=n.getPixelForTick(o);W+=e.aliasPixel(l),D=n.getPixelForTick(o,d.offsetGridLines),f=A,p=O,b=i.left,w=i.right,m=v=y=S=W}F.push({tx1:f,ty1:m,tx2:p,ty2:v,x1:b,y1:y,x2:w,y2:S,labelX:M,labelY:D,glWidth:l,glColor:h,glBorderDash:k,glBorderDashOffset:_,rotation:-1*T,label:t,textBaseline:P,textAlign:C})}}}),e.each(F,function(t){if(d.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),d.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),u.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,a=-(i.length-1)*p*.75;n<i.length;++n)s.fillText(""+i[n],0,a),a+=1.5*p;else s.fillText(i,0,0);s.restore()}}),h.display){var W,V,Y=0;if(g)W=n.left+(n.right-n.left)/2,V="bottom"===a.position?n.bottom-S/2:n.top+S/2;else{var B="left"===a.position;W=B?n.left+S/2:n.right-S/2,V=n.top+(n.bottom-n.top)/2,Y=B?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(W,V),s.rotate(Y),s.textAlign="center",s.textBaseline="middle",s.fillStyle=w,s.font=C,s.fillText(h.labelString,0,0),s.restore()}if(d.drawBorder){s.lineWidth=e.getValueAtIndexOrDefault(d.lineWidth,0),s.strokeStyle=e.getValueAtIndexOrDefault(d.color,0);var z=n.left,N=n.right,H=n.top,E=n.bottom,U=e.aliasPixel(s.lineWidth);g?(H=E="top"===a.position?n.bottom:n.top,H+=U,E+=U):(z=N="left"===a.position?n.right:n.left,z+=U,N+=U),s.beginPath(),s.moveTo(z,H),s.lineTo(N,E),s.stroke()}}}})}},{}],33:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,i,n){this.constructors[t]=i,this.defaults[t]=e.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?e.scaleMerge(t.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(t,i){var n=this.defaults;n.hasOwnProperty(t)&&(n[t]=e.extend(n[t],i))},addScalesToLayout:function(i){e.each(i.scales,function(e){t.layoutService.addBox(i,e)})}}}},{}],34:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.Ticks={generators:{linear:function(t,i){var n,a=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var r=e.niceNum(i.max-i.min,!1);n=e.niceNum(r/(t.maxTicks-1),!0)}var o=Math.floor(i.min/n)*n,s=Math.ceil(i.max/n)*n;t.min&&t.max&&t.stepSize&&((t.max-t.min)%t.stepSize==0&&(o=t.min,s=t.max));var l=(s-o)/n;l=e.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:o);for(var u=1;u<l;++u)a.push(o+u*n);return a.push(void 0!==t.max?t.max:s),a},logarithmic:function(t,i){for(var n=[],a=e.getValueOrDefault,r=a(t.min,Math.pow(10,Math.floor(e.log10(i.min))));r<i.max;){var o,s;n.push(r),0===r?(o=Math.floor(e.log10(i.minNotZero)),s=Math.round(i.minNotZero/Math.pow(10,o))):(o=Math.floor(e.log10(r)),s=Math.floor(r/Math.pow(10,o))+1),10===s&&(s=1,++o),r=s*Math.pow(10,o)}var l=a(t.max,r);return n.push(l),n}},formatters:{values:function(t){return e.isArray(t)?t:""+t},linear:function(t,i,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var r=e.log10(Math.abs(a)),o="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}}}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var i=e.noop;t.Title=t.Element.extend({initialize:function(i){e.extend(this,i),this.options=e.configMerge(t.defaults.global.title,i.options),this.legendHitBoxes=[]},beforeUpdate:function(){var i=this.chart.options;i&&i.title&&(this.options=e.configMerge(t.defaults.global.title,i.title))},update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,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:i,beforeBuildLabels:i,buildLabels:i,afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=e.getValueOrDefault,a=i.options,r=t.defaults.global,o=a.display,s=n(a.fontSize,r.defaultFontSize),l=i.minSize;i.isHorizontal()?(l.width=i.maxWidth,l.height=o?s+2*a.padding:0):(l.width=o?s+2*a.padding:0,l.height=i.maxHeight),i.width=l.width,i.height=l.height},afterFit:i,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var i=this,n=i.ctx,a=e.getValueOrDefault,r=i.options,o=t.defaults.global;if(r.display){var s,l,u,d=a(r.fontSize,o.defaultFontSize),h=a(r.fontStyle,o.defaultFontStyle),c=a(r.fontFamily,o.defaultFontFamily),f=e.fontString(d,h,c),g=0,m=i.top,p=i.left,v=i.bottom,b=i.right;n.fillStyle=a(r.fontColor,o.defaultFontColor),n.font=f,i.isHorizontal()?(s=p+(b-p)/2,l=m+(v-m)/2,u=b-p):(s="left"===r.position?p+d/2:b-d/2,l=m+(v-m)/2,u=v-m,g=Math.PI*("left"===r.position?-.5:.5)),n.save(),n.translate(s,l),n.rotate(g),n.textAlign="center",n.textBaseline="middle",n.fillText(r.text,0,0,u),n.restore()}}}),t.plugins.register({beforeInit:function(e){var i=e.options.title;i&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:i,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;function i(t,i){var n=e.color(t);return n.alpha(i*n.alpha()).rgbaString()}function n(t,i){return i&&(e.isArray(i)?Array.prototype.push.apply(t,i):t.push(i)),t}function a(i){var n=t.defaults.global,a=e.getValueOrDefault;return{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:a(i.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:a(i.bodyFontStyle,n.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:a(i.bodyFontSize,n.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:a(i.titleFontFamily,n.defaultFontFamily),_titleFontStyle:a(i.titleFontStyle,n.defaultFontStyle),titleFontSize:a(i.titleFontSize,n.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:a(i.footerFontFamily,n.defaultFontFamily),_footerFontStyle:a(i.footerFontStyle,n.defaultFontStyle),footerFontSize:a(i.footerFontSize,n.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground,displayColors:i.displayColors}}t.defaults.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,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,callbacks:{beforeTitle:e.noop,title:function(t,e){var i="",n=e.labels,a=n?n.length:0;if(t.length>0){var r=t[0];r.xLabel?i=r.xLabel:a>0&&r.index<a&&(i=n[r.index])}return i},afterTitle:e.noop,beforeBody:e.noop,beforeLabel:e.noop,label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:e.noop,afterBody:e.noop,beforeFooter:e.noop,footer:e.noop,afterFooter:e.noop}},t.Tooltip=t.Element.extend({initialize:function(){this._model=a(this._options)},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),a=t.afterTitle.apply(this,arguments),r=[];return r=n(r=n(r=n(r,e),i),a)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return e.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var a=this,r=a._options.callbacks,o=[];return e.each(t,function(t){var e={before:[],lines:[],after:[]};n(e.before,r.beforeLabel.call(a,t,i)),n(e.lines,r.label.call(a,t,i)),n(e.after,r.afterLabel.call(a,t,i)),o.push(e)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return e.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),a=t.afterFooter.apply(this,arguments),r=[];return r=n(r=n(r=n(r,e),i),a)},update:function(i){var n,r,o,s,l,u,d,h,c,f,g,m,p,v,b,y,x,k,_,w=this,S=w._options,M=w._model,D=w._model=a(S),C=w._active,T=w._data,P=w._chartInstance,I={xAlign:M.xAlign,yAlign:M.yAlign},F={x:M.x,y:M.y},A={width:M.width,height:M.height},O={x:M.caretX,y:M.caretY};if(C.length){D.opacity=1;var R=[];O=t.Tooltip.positioners[S.position](C,w._eventPosition);var L=[];for(n=0,r=C.length;n<r;++n)L.push((b=C[n],y=void 0,x=void 0,void 0,void 0,y=b._xScale,x=b._yScale||b._scale,k=b._index,_=b._datasetIndex,{xLabel:y?y.getLabelForIndex(k,_):"",yLabel:x?x.getLabelForIndex(k,_):"",index:k,datasetIndex:_,x:b._model.x,y:b._model.y}));S.filter&&(L=L.filter(function(t){return S.filter(t,T)})),S.itemSort&&(L=L.sort(function(t,e){return S.itemSort(t,e,T)})),e.each(L,function(t){R.push(S.callbacks.labelColor.call(w,t,P))}),D.title=w.getTitle(L,T),D.beforeBody=w.getBeforeBody(L,T),D.body=w.getBody(L,T),D.afterBody=w.getAfterBody(L,T),D.footer=w.getFooter(L,T),D.x=Math.round(O.x),D.y=Math.round(O.y),D.caretPadding=e.getValueOrDefault(O.padding,2),D.labelColors=R,D.dataPoints=L,I=function(t,e){var i,n,a,r,o,s=t._model,l=t._chart,u=t._chartInstance.chartArea,d="center",h="center";s.y<e.height?h="top":s.y>l.height-e.height&&(h="bottom");var c=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===h?(i=function(t){return t<=c},n=function(t){return t>c}):(i=function(t){return t<=e.width/2},n=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width>l.width},r=function(t){return t-e.width<0},o=function(t){return t<=f?"top":"bottom"},i(s.x)?(d="left",a(s.x)&&(d="center",h=o(s.y))):n(s.x)&&(d="right",r(s.x)&&(d="center",h=o(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:h}}(this,A=function(t,i){var n=t._chart.ctx,a=2*i.yPadding,r=0,o=i.body,s=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=i.beforeBody.length+i.afterBody.length;var l=i.title.length,u=i.footer.length,d=i.titleFontSize,h=i.bodyFontSize,c=i.footerFontSize;a+=l*d,a+=l?(l-1)*i.titleSpacing:0,a+=l?i.titleMarginBottom:0,a+=s*h,a+=s?(s-1)*i.bodySpacing:0,a+=u?i.footerMarginTop:0,a+=u*c,a+=u?(u-1)*i.footerSpacing:0;var f=0,g=function(t){r=Math.max(r,n.measureText(t).width+f)};return n.font=e.fontString(d,i._titleFontStyle,i._titleFontFamily),e.each(i.title,g),n.font=e.fontString(h,i._bodyFontStyle,i._bodyFontFamily),e.each(i.beforeBody.concat(i.afterBody),g),f=i.displayColors?h+2:0,e.each(o,function(t){e.each(t.before,g),e.each(t.lines,g),e.each(t.after,g)}),f=0,n.font=e.fontString(c,i._footerFontStyle,i._footerFontFamily),e.each(i.footer,g),{width:r+=2*i.xPadding,height:a}}(this,D)),s=A,l=I,u=(o=D).x,d=o.y,h=o.caretSize,c=o.caretPadding,f=o.cornerRadius,g=l.xAlign,m=l.yAlign,p=h+c,v=f+c,"right"===g?u-=s.width:"center"===g&&(u-=s.width/2),"top"===m?d+=p:d-="bottom"===m?s.height+p:s.height/2,"center"===m?"left"===g?u+=p:"right"===g&&(u-=p):"left"===g?u-=v:"right"===g&&(u+=v),F={x:u,y:d}}else D.opacity=0;return D.xAlign=I.xAlign,D.yAlign=I.yAlign,D.x=F.x,D.y=F.y,D.width=A.width,D.height=A.height,D.caretX=O.x,D.caretY=O.y,w._model=D,i&&S.custom&&S.custom.call(w,D),w},drawCaret:function(t,e,n){var a,r,o,s,l,u,d=this._view,h=this._chart.ctx,c=d.caretSize,f=d.cornerRadius,g=d.xAlign,m=d.yAlign,p=t.x,v=t.y,b=e.width,y=e.height;"center"===m?("left"===g?(r=(a=p)-c,o=a):(r=(a=p+b)+c,o=a),s=(l=v+y/2)-c,u=l+c):("left"===g?o=(r=(a=p+f)+c)+c:"right"===g?o=(r=(a=p+b-f)-c)-c:(a=(r=p+b/2)-c,o=r+c),"top"===m?(l=(s=v)-c,u=s):(l=(s=v+y)+c,u=s)),h.fillStyle=i(d.backgroundColor,n),h.beginPath(),h.moveTo(a,s),h.lineTo(r,l),h.lineTo(o,u),h.closePath(),h.fill()},drawTitle:function(t,n,a,r){var o=n.title;if(o.length){a.textAlign=n._titleAlign,a.textBaseline="top";var s,l,u=n.titleFontSize,d=n.titleSpacing;for(a.fillStyle=i(n.titleFontColor,r),a.font=e.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=o.length;s<l;++s)a.fillText(o[s],t.x,t.y),t.y+=u+d,s+1===o.length&&(t.y+=n.titleMarginBottom-d)}},drawBody:function(t,n,a,r){var o=n.bodyFontSize,s=n.bodySpacing,l=n.body;a.textAlign=n._bodyAlign,a.textBaseline="top";var u=i(n.bodyFontColor,r);a.fillStyle=u,a.font=e.fontString(o,n._bodyFontStyle,n._bodyFontFamily);var d=0,h=function(e){a.fillText(e,t.x+d,t.y),t.y+=o+s};e.each(n.beforeBody,h);var c=n.displayColors;d=c?o+2:0,e.each(l,function(s,l){e.each(s.before,h),e.each(s.lines,function(e){c&&(a.fillStyle=i(n.legendColorBackground,r),a.fillRect(t.x,t.y,o,o),a.strokeStyle=i(n.labelColors[l].borderColor,r),a.strokeRect(t.x,t.y,o,o),a.fillStyle=i(n.labelColors[l].backgroundColor,r),a.fillRect(t.x+1,t.y+1,o-2,o-2),a.fillStyle=u),h(e)}),e.each(s.after,h)}),d=0,e.each(n.afterBody,h),t.y-=s},drawFooter:function(t,n,a,r){var o=n.footer;o.length&&(t.y+=n.footerMarginTop,a.textAlign=n._footerAlign,a.textBaseline="top",a.fillStyle=i(n.footerFontColor,r),a.font=e.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),e.each(o,function(e){a.fillText(e,t.x,t.y),t.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,n,a,r,o){a.fillStyle=i(n.backgroundColor,o),e.drawRoundedRectangle(a,t.x,t.y,r.width,r.height,n.cornerRadius),a.fill()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity;this._options.enabled&&(this.drawBackground(n,e,t,i,a),this.drawCaret(n,i,a),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,a),this.drawBody(n,e,t,a),this.drawFooter(n,e,t,a))}},handleEvent:function(t){var i=this,n=i._options,a=!1;if(i._lastActive=i._lastActive||[],"mouseout"===t.type?i._active=[]:i._active=i._chartInstance.getElementsAtEventForMode(t,n.mode,n),a=!e.arrayEquals(i._active,i._lastActive),i._lastActive=i._active,n.enabled||n.custom){i._eventPosition=e.getRelativePosition(t,i._chart);var r=i._model;i.update(!0),i.pivot(),a|=r.x!==i._model.x||r.y!==i._model.y}return a}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,i,n=0,a=0,r=0;for(e=0,i=t.length;e<i;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();n+=s.x,a+=s.y,++r}}return{x:Math.round(n/r),y:Math.round(a/r)}},nearest:function(t,i){var n,a,r,o=i.x,s=i.y,l=Number.POSITIVE_INFINITY;for(a=0,r=t.length;a<r;++a){var u=t[a];if(u&&u.hasValue()){var d=u.getCenterPoint(),h=e.distanceBetweenPoints(i,d);h<l&&(l=h,n=u)}}if(n){var c=n.tooltipPosition();o=c.x,s=c.y}return{x:o,y:s}}}}},{}],37:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.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,i){var n=this._view;if(n){for(var a=e.getAngleFromPoint(n,{x:t,y:i}),r=a.angle,o=a.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;r<s;)r+=2*Math.PI;var u=r>=s&&r<=l,d=o>=n.innerRadius&&o<=n.outerRadius;return u&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},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,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],38:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){var t=this._view,n=t.spanGaps,a=t.scaleZero,r=this._loop;r||("top"===t.fill?a=t.scaleTop:"bottom"===t.fill&&(a=t.scaleBottom));var o=this._chart.ctx;function s(t,e){var i=e._view;!0===e._view.steppedLine?(o.lineTo(i.x,t._view.y),o.lineTo(i.x,i.y)):0===e._view.tension?o.lineTo(i.x,i.y):o.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}o.save();var l,u,d,h,c=this._children.slice(),f=-1;if(r&&c.length&&c.push(c[0]),c.length&&t.fill){for(o.beginPath(),l=0;l<c.length;++l)u=c[l],d=e.previousItem(c,l),h=u._view,0===l?(r?o.moveTo(a.x,a.y):o.moveTo(h.x,a),h.skip||(f=l,o.lineTo(h.x,h.y))):(d=-1===f?d:c[f],h.skip?n||f!==l-1||(r?o.lineTo(a.x,a.y):o.lineTo(d._view.x,a)):(f!==l-1?n&&-1!==f?s(d,u):r?o.lineTo(h.x,h.y):(o.lineTo(h.x,a),o.lineTo(h.x,h.y)):s(d,u),f=l));r||-1===f||o.lineTo(c[f]._view.x,a),o.fillStyle=t.backgroundColor||i.defaultColor,o.closePath(),o.fill()}var g=i.elements.line;for(o.lineCap=t.borderCapStyle||g.borderCapStyle,o.setLineDash&&o.setLineDash(t.borderDash||g.borderDash),o.lineDashOffset=t.borderDashOffset||g.borderDashOffset,o.lineJoin=t.borderJoinStyle||g.borderJoinStyle,o.lineWidth=t.borderWidth||g.borderWidth,o.strokeStyle=t.borderColor||i.defaultColor,o.beginPath(),f=-1,l=0;l<c.length;++l)u=c[l],d=e.previousItem(c,l),h=u._view,0===l?h.skip||(o.moveTo(h.x,h.y),f=l):(d=-1===f?d:c[f],h.skip||(f!==l-1&&!n||-1===f?o.moveTo(h.x,h.y):s(d,u),f=l));o.stroke(),o.restore()}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global,n=i.defaultColor;function a(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}i.elements.point={radius:3,pointStyle:"circle",backgroundColor:n,borderWidth:1,borderColor:n,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:a,inXRange:a,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(){var a=this._view,r=this._chart.ctx,o=a.pointStyle,s=a.radius,l=a.x,u=a.y;a.skip||(r.strokeStyle=a.borderColor||n,r.lineWidth=e.getValueOrDefault(a.borderWidth,i.elements.point.borderWidth),r.fillStyle=a.backgroundColor||n,t.canvasHelpers.drawPoint(r,o,s,l,u))}})}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.defaults.global;function i(t){return void 0!==t._view.width}function n(t){var e,n,a,r,o=t._view;if(i(t)){var s=o.width/2;e=o.x-s,n=o.x+s,a=Math.min(o.y,o.base),r=Math.max(o.y,o.base)}else{var l=o.height/2;e=Math.min(o.x,o.base),n=Math.max(o.x,o.base),a=o.y-l,r=o.y+l}return{left:e,top:a,right:n,bottom:r}}e.elements.rectangle={backgroundColor:e.defaultColor,borderWidth:0,borderColor:e.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){var t=this._chart.ctx,e=this._view,i=e.width/2,n=e.x-i,a=e.x+i,r=e.base-(e.base-e.y),o=e.borderWidth/2;e.borderWidth&&(n+=o,a-=o,r+=o),t.beginPath(),t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth;var s=[[n,e.base],[n,r],[a,r],[a,e.base]],l=["bottom","left","top","right"].indexOf(e.borderSkipped,0);function u(t){return s[(l+t)%4]}-1===l&&(l=0);var d=u(0);t.moveTo(d[0],d[1]);for(var h=1;h<4;h++)d=u(h),t.lineTo(d[0],d[1]);t.fill(),e.borderWidth&&t.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=!1;if(this._view){var a=n(this);i=t>=a.left&&t<=a.right&&e>=a.top&&e<=a.bottom}return i},inLabelRange:function(t,e){if(!this._view)return!1;var a=n(this);return i(this)?t>=a.left&&t<=a.right:e>=a.top&&e<=a.bottom},inXRange:function(t){var e=n(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=n(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}}})}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,i=this,n=i.getLabels();i.minIndex=0,i.maxIndex=n.length-1,void 0!==i.options.ticks.min&&(t=e.indexOf(n,i.options.ticks.min),i.minIndex=-1!==t?t:i.minIndex),void 0!==i.options.ticks.max&&(t=e.indexOf(n,i.options.ticks.max),i.maxIndex=-1!==t?t:i.maxIndex),i.min=n[i.minIndex],i.max=n[i.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var i=this.chart.data,n=this.isHorizontal();return i.xLabels&&n||i.yLabels&&!n?this.getRightValue(i.datasets[e].data[t]):this.ticks[t]},getPixelForValue:function(t,e,i,n){var a=this,r=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var o=a.getLabels().indexOf(t);e=-1!==o?o:e}if(a.isHorizontal()){var s=(a.width-(a.paddingLeft+a.paddingRight))/r,l=s*(e-a.minIndex)+a.paddingLeft;return(a.options.gridLines.offsetGridLines&&n||a.maxIndex===a.minIndex&&n)&&(l+=s/2),a.left+Math.round(l)}var u=(a.height-(a.paddingTop+a.paddingBottom))/r,d=u*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&n&&(d+=u/2),a.top+Math.round(d)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),a=(n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom))/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=a/2),(t-=n?e.paddingLeft:e.paddingTop)<=0?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",i,{position:"bottom"})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:t.Ticks.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var t=this,i=t.options,n=t.chart,a=n.data.datasets,r=t.isHorizontal();function o(e){return r?e.xAxisID===t.id:e.yAxisID===t.id}if(t.min=null,t.max=null,i.stacked){var s={};e.each(a,function(a,r){var l=n.getDatasetMeta(r);void 0===s[l.type]&&(s[l.type]={positiveValues:[],negativeValues:[]});var u=s[l.type].positiveValues,d=s[l.type].negativeValues;n.isDatasetVisible(r)&&o(l)&&e.each(a.data,function(e,n){var a=+t.getRightValue(e);isNaN(a)||l.data[n].hidden||(u[n]=u[n]||0,d[n]=d[n]||0,i.relativePoints?u[n]=100:a<0?d[n]+=a:u[n]+=a)})}),e.each(s,function(i){var n=i.positiveValues.concat(i.negativeValues),a=e.min(n),r=e.max(n);t.min=null===t.min?a:Math.min(t.min,a),t.max=null===t.max?r:Math.max(t.max,r)})}else e.each(a,function(i,a){var r=n.getDatasetMeta(a);n.isDatasetVisible(a)&&o(r)&&e.each(i.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||r.data[i].hidden||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this.options.ticks;if(this.isHorizontal())i=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.width/50));else{var a=e.getValueOrDefault(n.fontSize,t.defaults.global.defaultFontSize);i=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.height/(2*a)))}return i},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,i,n=this,a=n.paddingLeft,r=n.paddingBottom,o=n.start,s=+n.getRightValue(t),l=n.end-o;return n.isHorizontal()?(i=n.width-(a+n.paddingRight),e=n.left+i/l*(s-o),Math.round(e+a)):(i=n.height-(n.paddingTop+r),e=n.bottom-r-i/l*(s-o),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,a=e.paddingBottom,r=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+a),o=(i?t-e.left-n:e.bottom-a-t)/r;return e.start+(e.end-e.start)*o},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],43:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options.ticks;if(i.beginAtZero){var n=e.sign(t.min),a=e.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}void 0!==i.min?t.min=i.min:void 0!==i.suggestedMin&&(t.min=Math.min(t.min,i.suggestedMin)),void 0!==i.max?t.max=i.max:void 0!==i.suggestedMax&&(t.max=Math.max(t.max,i.suggestedMax)),t.min===t.max&&(t.max++,i.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var i=this,n=i.options.ticks,a=i.getTickLimit(),r={maxTicks:a=Math.max(2,a),min:n.min,max:n.max,stepSize:e.getValueOrDefault(n.fixedStepSize,n.stepSize)},o=i.ticks=t.Ticks.generators.linear(r,i);i.handleDirectionalChanges(),i.max=e.max(o),i.min=e.min(o),n.reverse?(o.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(this)}})}},{}],44:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:t.Ticks.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){var t=this,i=t.options,n=i.ticks,a=t.chart,r=a.data.datasets,o=e.getValueOrDefault,s=t.isHorizontal();function l(e){return s?e.xAxisID===t.id:e.yAxisID===t.id}if(t.min=null,t.max=null,t.minNotZero=null,i.stacked){var u={};e.each(r,function(n,r){var o=a.getDatasetMeta(r);a.isDatasetVisible(r)&&l(o)&&(void 0===u[o.type]&&(u[o.type]=[]),e.each(n.data,function(e,n){var a=u[o.type],r=+t.getRightValue(e);isNaN(r)||o.data[n].hidden||(a[n]=a[n]||0,i.relativePoints?a[n]=100:a[n]+=r)}))}),e.each(u,function(i){var n=e.min(i),a=e.max(i);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?a:Math.max(t.max,a)})}else e.each(r,function(i,n){var r=a.getDatasetMeta(n);a.isDatasetVisible(n)&&l(r)&&e.each(i.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||r.data[i].hidden||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n),0!==n&&(null===t.minNotZero||n<t.minNotZero)&&(t.minNotZero=n))})});t.min=o(n.min,t.min),t.max=o(n.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(e.log10(t.min))-1),t.max=Math.pow(10,Math.floor(e.log10(t.max))+1)):(t.min=1,t.max=10))},buildTicks:function(){var i=this,n=i.options.ticks,a={min:n.min,max:n.max},r=i.ticks=t.Ticks.generators.logarithmic(a,i);i.isHorizontal()||r.reverse(),i.max=e.max(r),i.min=e.min(r),n.reverse?(r.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.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 i,n,a,r=this,o=r.start,s=+r.getRightValue(t),l=r.paddingTop,u=r.paddingBottom,d=r.paddingLeft,h=r.options.ticks;return r.isHorizontal()?(a=e.log10(r.end)-e.log10(o),0===s?n=r.left+d:(i=r.width-(d+r.paddingRight),n=r.left+i/a*(e.log10(s)-e.log10(o)),n+=d)):(i=r.height-(l+u),0!==o||h.reverse?0===r.end&&h.reverse?(a=e.log10(r.start)-e.log10(r.minNotZero),n=s===r.end?r.top+l:s===r.minNotZero?r.top+l+.02*i:r.top+l+.02*i+.98*i/a*(e.log10(s)-e.log10(r.minNotZero))):(a=e.log10(r.end)-e.log10(o),i=r.height-(l+u),n=r.bottom-u-i/a*(e.log10(s)-e.log10(o))):(a=e.log10(r.end)-e.log10(r.minNotZero),n=s===o?r.bottom-u:s===r.minNotZero?r.bottom-u-.02*i:r.bottom-u-.02*i-.98*i/a*(e.log10(s)-e.log10(r.minNotZero)))),n},getValueForPixel:function(t){var i,n,a=this,r=e.log10(a.end)-e.log10(a.start);return a.isHorizontal()?(n=a.width-(a.paddingLeft+a.paddingRight),i=a.start*Math.pow(10,(t-a.left-a.paddingLeft)*r/n)):(n=a.height-(a.paddingTop+a.paddingBottom),i=Math.pow(10,(a.bottom-a.paddingBottom-t)*r/n)/a.start),i}});t.scaleService.registerScaleType("logarithmic",n,i)}},{}],45:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global,n={display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:t.Ticks.formatters.linear},pointLabels:{fontSize:10,callback:function(t){return t}}},a=t.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},setDimensions:function(){var t=this,n=t.options,a=n.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var r=e.min([t.height,t.width]),o=e.getValueOrDefault(a.fontSize,i.defaultFontSize);t.drawingArea=n.display?r/2-(o/2+a.backdropPaddingY):r/2},determineDataLimits:function(){var t=this,i=t.chart;t.min=null,t.max=null,e.each(i.data.datasets,function(n,a){if(i.isDatasetVisible(a)){var r=i.getDatasetMeta(a);e.each(n.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||r.data[i].hidden||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,r,o,s,l,u,d,h,c,f,g=this.options.pointLabels,m=e.getValueOrDefault(g.fontSize,i.defaultFontSize),p=e.getValueOrDefault(g.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(g.fontFamily,i.defaultFontFamily),b=e.fontString(m,p,v),y=e.min([this.height/2-m-5,this.width/2]),x=this.width,k=0;for(this.ctx.font=b,n=0;n<this.getValueCount();n++){t=this.getPointPosition(n,y),a=this.ctx.measureText(this.pointLabels[n]?this.pointLabels[n]:"").width+5;var _=360*(this.getIndexAngle(n)+Math.PI/2)/(2*Math.PI)%360;0===_||180===_?(r=a/2,t.x+r>x&&(x=t.x+r,o=n),t.x-r<k&&(k=t.x-r,l=n)):_<180?t.x+a>x&&(x=t.x+a,o=n):t.x-a<k&&(k=t.x-a,l=n)}d=k,h=Math.ceil(x-this.width),s=this.getIndexAngle(o),u=this.getIndexAngle(l),c=h/Math.sin(s+Math.PI/2),f=d/Math.sin(u+Math.PI/2),c=e.isNumber(c)?c:0,f=e.isNumber(f)?f:0,this.drawingArea=Math.round(y-(f+c)/2),this.setCenterPoint(f,c)},setCenterPoint:function(t,e){var i=this.width-e-this.drawingArea,n=t+this.drawingArea;this.xCenter=Math.round((n+i)/2+this.left),this.yCenter=Math.round(this.height/2+this.top)},getIndexAngle:function(t){var e=2*Math.PI/this.getValueCount(),i=(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360;return t*e-Math.PI/2+i},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var i=this.getIndexAngle(t);return{x:Math.round(Math.cos(i)*e)+this.xCenter,y:Math.round(Math.sin(i)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,r=n.ticks,o=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var u=t.ctx,d=l(r.fontSize,i.defaultFontSize),h=l(r.fontStyle,i.defaultFontStyle),c=l(r.fontFamily,i.defaultFontFamily),f=e.fontString(d,h,c);if(e.each(t.ticks,function(o,s){if(s>0||n.reverse){var h=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),c=t.yCenter-h;if(a.display&&0!==s)if(u.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),u.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)u.beginPath(),u.arc(t.xCenter,t.yCenter,h,0,2*Math.PI),u.closePath(),u.stroke();else{u.beginPath();for(var g=0;g<t.getValueCount();g++){var m=t.getPointPosition(g,h);0===g?u.moveTo(m.x,m.y):u.lineTo(m.x,m.y)}u.closePath(),u.stroke()}if(r.display){var p=l(r.fontColor,i.defaultFontColor);if(u.font=f,r.showLabelBackdrop){var v=u.measureText(o).width;u.fillStyle=r.backdropColor,u.fillRect(t.xCenter-v/2-r.backdropPaddingX,c-d/2-r.backdropPaddingY,v+2*r.backdropPaddingX,d+2*r.backdropPaddingY)}u.textAlign="center",u.textBaseline="middle",u.fillStyle=p,u.fillText(o,t.xCenter,c)}}}),!n.lineArc){u.lineWidth=o.lineWidth,u.strokeStyle=o.color;for(var g=t.getDistanceFromCenterForValue(n.reverse?t.min:t.max),m=l(s.fontSize,i.defaultFontSize),p=l(s.fontStyle,i.defaultFontStyle),v=l(s.fontFamily,i.defaultFontFamily),b=e.fontString(m,p,v),y=t.getValueCount()-1;y>=0;y--){if(o.display){var x=t.getPointPosition(y,g);u.beginPath(),u.moveTo(t.xCenter,t.yCenter),u.lineTo(x.x,x.y),u.stroke(),u.closePath()}var k=t.getPointPosition(y,g+5),_=l(s.fontColor,i.defaultFontColor);u.font=b,u.fillStyle=_;var w=t.pointLabels,S=360*(this.getIndexAngle(y)+Math.PI/2)/(2*Math.PI)%360;u.textAlign=0===S||180===S?"center":S<180?"left":"right",u.textBaseline=90===S||270===S?"middle":S>270||S<90?"bottom":"top",u.fillText(w[y]?w[y]:"",k.x,k.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],46:[function(t,e,i){"use strict";var n=t(6);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a=t.Scale.extend({initialize:function(){if(!n)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");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){return null===t||null===e?null:(void 0===this.labelDiffs&&this.buildLabelDiffs(),void 0!==this.labelDiffs[t]?this.labelDiffs[t][e]:null)},getMomentStartOf:function(t){return"week"===this.options.time.unit&&!1!==this.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(this.options.time.isoWeekday):t.clone().startOf(this.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,r){var o=[],s=t.chart.isDatasetVisible(r);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):o=i,t.labelMoments.push(o)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a,r=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),s=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),l=e.fontString(r,o,s);if(n.ctx.font=l,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var u=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),d=n.tickFormatFunction(n.firstTick,0,[]),h=n.ctx.measureText(d).width,c=u/(h=h*Math.cos(e.toRadians(n.options.ticks.maxRotation))+r*Math.sin(e.toRadians(n.options.ticks.maxRotation)));n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var f=0,g=i.units[f];f<i.units.length;){if(n.unitScale=1,e.isArray(g.steps)&&Math.ceil(n.scaleSizeInUnits/c)<e.max(g.steps)){for(var m=0;m<g.steps.length;++m)if(g.steps[m]>=Math.ceil(n.scaleSizeInUnits/c)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(!1===g.maxStep||Math.ceil(n.scaleSizeInUnits/c)<g.maxStep){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,Math.ceil(n.scaleSizeInUnits/c));break}g=i.units[++f],n.tickUnit=g.name;var p=n.firstTick.diff(n.getMomentStartOf(n.firstTick),n.tickUnit,!0),v=n.getMomentStartOf(n.lastTick.clone().add(1,n.tickUnit)).diff(n.lastTick,n.tickUnit,!0);n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)+p+v,n.displayFormat=n.options.time.displayFormats[g.name]}}if(n.options.time.min?a=n.getMomentStartOf(n.firstTick):(n.firstTick=n.getMomentStartOf(n.firstTick),a=n.firstTick),!n.options.time.max){var b=n.getMomentStartOf(n.lastTick),y=b.diff(n.lastTick,n.tickUnit,!0);y<0?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=b),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var k=a.clone().add(x,n.tickUnit);if(n.options.time.max&&k.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale==0&&n.ticks.push(k)}0===n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)&&0!==n.scaleSizeInUnits||(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this.chart.data.labels&&t<this.chart.data.labels.length?this.chart.data.labels[t]:"";return"object"==typeof this.chart.data.datasets[e].data[0]&&(i=this.getRightValue(this.chart.data.datasets[e].data[t])),this.options.time.tooltipFormat&&(i=this.parseTime(i).format(this.options.time.tooltipFormat)),i},tickFormatFunction:function(t,i,n){var a=t.format(this.displayFormat),r=this.options.ticks,o=e.getValueOrDefault(r.callback,r.userCallback);return o?o(a,i,n):a},convertTicksToLabels:function(){this.tickMoments=this.ticks,this.ticks=this.ticks.map(this.tickFormatFunction,this)},getPixelForValue:function(t,e,i){var n=this,a=null;if(void 0!==e&&void 0!==i&&(a=n.getLabelDiff(i,e)),null===a&&(t&&t.isValid||(t=n.parseTime(n.getRightValue(t))),t&&t.isValid&&t.isValid()&&(a=t.diff(n.firstTick,n.tickUnit,!0))),null!==a){var r=0!==a?a/n.scaleSizeInUnits:a;if(n.isHorizontal()){var o=(n.width-(n.paddingLeft+n.paddingRight))*r+n.paddingLeft;return n.left+Math.round(o)}var s=(n.height-(n.paddingTop+n.paddingBottom))*r+n.paddingTop;return n.top+Math.round(s)}},getPixelForTick:function(t){return this.getPixelForValue(this.tickMoments[t],null,null)},getValueForPixel:function(t){var e=this,i=e.isHorizontal()?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),a=(t-(e.isHorizontal()?e.left+e.paddingLeft:e.top+e.paddingTop))/i;return a*=e.scaleSizeInUnits,e.firstTick.clone().add(n.duration(a,e.tickUnit).asSeconds(),"seconds")},parseTime:function(t){return"string"==typeof this.options.time.parser?n(t,this.options.time.parser):"function"==typeof this.options.time.parser?this.options.time.parser(t):"function"==typeof t.getMonth||"number"==typeof t?n(t):t.isValid&&t.isValid()?t:"string"!=typeof this.options.time.format&&this.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),this.options.time.format(t)):n(t,this.options.time.format)}});t.scaleService.registerScaleType("time",a,{position:"bottom",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:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{6:6}]},{},[7])(7)}); jQuery(document).ready(function(){ ( function ( $ ) { "use strict"; //bar chart var ctx = document.getElementById( "barChart" ); // ctx.height = 200; var barDataset = []; for(var i=0; i < charts.data.length; i++) { barDataset.push({ label: charts.title[i], data: charts.data[i], borderColor: charts.color[i], borderWidth: "0", backgroundColor: charts.color[i] }); } var myChart = new Chart( ctx, { type: 'bar', data: { labels: charts.days, datasets: barDataset }, options: { scales: { yAxes: [ { ticks: { beginAtZero: true, borderDashOffset : 0, stepSize: 1 } } ] }, } } ); } )( jQuery ); });
[+]
..
[-] base.js
[edit]
[-] charts.min.js
[edit]