text: /*!
   * eMAG Apps UI KIT v1.0.0 * Copyright 2001-2018 eMAG HX Team
   * Licensed under the ISC license
   */
  !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.Chart=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){},{}],2:[function(a,b,c){function d(a){if(a){var b=/^#([a-fA-F0-9]{3})$/,c=/^#([a-fA-F0-9]{6})$/,d=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,f=/(\w+)/,g=[0,0,0],h=1,i=a.match(b);if(i){i=i[1];for(var j=0;j<g.length;j++)g[j]=parseInt(i[j]+i[j],16)}else if(i=a.match(c)){i=i[1];for(var j=0;j<g.length;j++)g[j]=parseInt(i.slice(2*j,2*j+2),16)}else if(i=a.match(d)){for(var j=0;j<g.length;j++)g[j]=parseInt(i[j+1]);h=parseFloat(i[4])}else if(i=a.match(e)){for(var j=0;j<g.length;j++)g[j]=Math.round(2.55*parseFloat(i[j+1]));h=parseFloat(i[4])}else if(i=a.match(f)){if("transparent"==i[1])return[0,0,0,0];if(g=u[i[1]],!g)return}for(var j=0;j<g.length;j++)g[j]=s(g[j],0,255);return h=h||0==h?s(h,0,1):1,g[3]=h,g}}function e(a){if(a){var b=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,c=a.match(b);if(c){var d=parseFloat(c[4]),e=s(parseInt(c[1]),0,360),f=s(parseFloat(c[2]),0,100),g=s(parseFloat(c[3]),0,100),h=s(isNaN(d)?1:d,0,1);return[e,f,g,h]}}}function f(a){if(a){var b=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,c=a.match(b);if(c){var d=parseFloat(c[4]),e=s(parseInt(c[1]),0,360),f=s(parseFloat(c[2]),0,100),g=s(parseFloat(c[3]),0,100),h=s(isNaN(d)?1:d,0,1);return[e,f,g,h]}}}function g(a){var b=d(a);return b&&b.slice(0,3)}function h(a){var b=e(a);return b&&b.slice(0,3)}function i(a){var b=d(a);return b?b[3]:(b=e(a))?b[3]:(b=f(a))?b[3]:void 0}function j(a){return"#"+t(a[0])+t(a[1])+t(a[2])}function k(a,b){return b<1||a[3]&&a[3]<1?l(a,b):"rgb("+a[0]+", "+a[1]+", "+a[2]+")"}function l(a,b){return void 0===b&&(b=void 0!==a[3]?a[3]:1),"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+b+")"}function m(a,b){if(b<1||a[3]&&a[3]<1)return n(a,b);var c=Math.round(a[0]/255*100),d=Math.round(a[1]/255*100),e=Math.round(a[2]/255*100);return"rgb("+c+"%, "+d+"%, "+e+"%)"}function n(a,b){var c=Math.round(a[0]/255*100),d=Math.round(a[1]/255*100),e=Math.round(a[2]/255*100);return"rgba("+c+"%, "+d+"%, "+e+"%, "+(b||a[3]||1)+")"}function o(a,b){return b<1||a[3]&&a[3]<1?p(a,b):"hsl("+a[0]+", "+a[1]+"%, "+a[2]+"%)"}function p(a,b){return void 0===b&&(b=void 0!==a[3]?a[3]:1),"hsla("+a[0]+", "+a[1]+"%, "+a[2]+"%, "+b+")"}function q(a,b){return void 0===b&&(b=void 0!==a[3]?a[3]:1),"hwb("+a[0]+", "+a[1]+"%, "+a[2]+"%"+(void 0!==b&&1!==b?", "+b:"")+")"}function r(a){return v[a.slice(0,3)]}function s(a,b,c){return Math.min(Math.max(b,a),c)}function t(a){var b=a.toString(16).toUpperCase();return b.length<2?"0"+b:b}var u=a(6);b.exports={getRgba:d,getHsla:e,getRgb:g,getHsl:h,getHwb:f,getAlpha:i,hexString:j,rgbString:k,rgbaString:l,percentString:m,percentaString:n,hslString:o,hslaString:p,hwbString:q,keyword:r};var v={};for(var w in u)v[u[w]]=w},{6:6}],3:[function(a,b,c){var d=a(5),e=a(2),f=function(a){if(a instanceof f)return a;if(!(this instanceof f))return new f(a);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};var b;if("string"==typeof a)if(b=e.getRgba(a))this.setValues("rgb",b);else if(b=e.getHsla(a))this.setValues("hsl",b);else{if(!(b=e.getHwb(a)))throw new Error('Unable to parse color from string "'+a+'"');this.setValues("hwb",b)}else if("object"==typeof a)if(b=a,void 0!==b.r||void 0!==b.red)this.setValues("rgb",b);else if(void 0!==b.l||void 0!==b.lightness)this.setValues("hsl",b);else if(void 0!==b.v||void 0!==b.value)this.setValues("hsv",b);else if(void 0!==b.w||void 0!==b.whiteness)this.setValues("hwb",b);else{if(void 0===b.c&&void 0===b.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(a));this.setValues("cmyk",b)}};f.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 a=this.values;return 1!==a.alpha?a.hwb.concat([a.alpha]):a.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var a=this.values;return a.rgb.concat([a.alpha])},hslaArray:function(){var a=this.values;return a.hsl.concat([a.alpha])},alpha:function(a){return void 0===a?this.values.alpha:(this.setValues("alpha",a),this)},red:function(a){return this.setChannel("rgb",0,a)},green:function(a){return this.setChannel("rgb",1,a)},blue:function(a){return this.setChannel("rgb",2,a)},hue:function(a){return a&&(a%=360,a=a<0?360+a:a),this.setChannel("hsl",0,a)},saturation:function(a){return this.setChannel("hsl",1,a)},lightness:function(a){return this.setChannel("hsl",2,a)},saturationv:function(a){return this.setChannel("hsv",1,a)},whiteness:function(a){return this.setChannel("hwb",1,a)},blackness:function(a){return this.setChannel("hwb",2,a)},value:function(a){return this.setChannel("hsv",2,a)},cyan:function(a){return this.setChannel("cmyk",0,a)},magenta:function(a){return this.setChannel("cmyk",1,a)},yellow:function(a){return this.setChannel("cmyk",2,a)},black:function(a){return this.setChannel("cmyk",3,a)},hexString:function(){return e.hexString(this.values.rgb)},rgbString:function(){return e.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return e.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return e.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return e.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return e.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return e.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return e.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var a=this.values.rgb;return a[0]<<16|a[1]<<8|a[2]},luminosity:function(){for(var a=this.values.rgb,b=[],c=0;c<a.length;c++){var d=a[c]/255;b[c]=d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}return.2126*b[0]+.7152*b[1]+.0722*b[2]},contrast:function(a){var b=this.luminosity(),c=a.luminosity();return b>c?(b+.05)/(c+.05):(c+.05)/(b+.05)},level:function(a){var b=this.contrast(a);return b>=7.1?"AAA":b>=4.5?"AA":""},dark:function(){var a=this.values.rgb,b=(299*a[0]+587*a[1]+114*a[2])/1e3;return b<128},light:function(){return!this.dark()},negate:function(){for(var a=[],b=0;b<3;b++)a[b]=255-this.values.rgb[b];return this.setValues("rgb",a),this},lighten:function(a){var b=this.values.hsl;return b[2]+=b[2]*a,this.setValues("hsl",b),this},darken:function(a){var b=this.values.hsl;return b[2]-=b[2]*a,this.setValues("hsl",b),this},saturate:function(a){var b=this.values.hsl;return b[1]+=b[1]*a,this.setValues("hsl",b),this},desaturate:function(a){var b=this.values.hsl;return b[1]-=b[1]*a,this.setValues("hsl",b),this},whiten:function(a){var b=this.values.hwb;return b[1]+=b[1]*a,this.setValues("hwb",b),this},blacken:function(a){var b=this.values.hwb;return b[2]+=b[2]*a,this.setValues("hwb",b),this},greyscale:function(){var a=this.values.rgb,b=.3*a[0]+.59*a[1]+.11*a[2];return this.setValues("rgb",[b,b,b]),this},clearer:function(a){var b=this.values.alpha;return this.setValues("alpha",b-b*a),this},opaquer:function(a){var b=this.values.alpha;return this.setValues("alpha",b+b*a),this},rotate:function(a){var b=this.values.hsl,c=(b[0]+a)%360;return b[0]=c<0?360+c:c,this.setValues("hsl",b),this},mix:function(a,b){var c=this,d=a,e=void 0===b?.5:b,f=2*e-1,g=c.alpha()-d.alpha(),h=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,i=1-h;return this.rgb(h*c.red()+i*d.red(),h*c.green()+i*d.green(),h*c.blue()+i*d.blue()).alpha(c.alpha()*e+d.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var a,b,c=new f,d=this.values,e=c.values;for(var g in d)d.hasOwnProperty(g)&&(a=d[g],b={}.toString.call(a),"[object Array]"===b?e[g]=a.slice(0):"[object Number]"===b?e[g]=a:console.error("unexpected color value:",a));return c}},f.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},f.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},f.prototype.getValues=function(a){for(var b=this.values,c={},d=0;d<a.length;d++)c[a.charAt(d)]=b[a][d];return 1!==b.alpha&&(c.a=b.alpha),c},f.prototype.setValues=function(a,b){var c,e=this.values,f=this.spaces,g=this.maxes,h=1;if("alpha"===a)h=b;else if(b.length)e[a]=b.slice(0,a.length),h=b[a.length];else if(void 0!==b[a.charAt(0)]){for(c=0;c<a.length;c++)e[a][c]=b[a.charAt(c)];h=b.a}else if(void 0!==b[f[a][0]]){var i=f[a];for(c=0;c<a.length;c++)e[a][c]=b[i[c]];h=b.alpha}if(e.alpha=Math.max(0,Math.min(1,void 0===h?e.alpha:h)),"alpha"===a)return!1;var j;for(c=0;c<a.length;c++)j=Math.max(0,Math.min(g[a][c],e[a][c])),e[a][c]=Math.round(j);for(var k in f)k!==a&&(e[k]=d[a][k](e[a]));return!0},f.prototype.setSpace=function(a,b){var c=b[0];return void 0===c?this.getValues(a):("number"==typeof c&&(c=Array.prototype.slice.call(b)),this.setValues(a,c),this)},f.prototype.setChannel=function(a,b,c){var d=this.values[a];return void 0===c?d[b]:c===d[b]?this:(d[b]=c,this.setValues(a,d),this)},"undefined"!=typeof window&&(window.Color=f),b.exports=f},{2:2,5:5}],4:[function(a,c,d){function e(a){var b,c,d,e=a[0]/255,f=a[1]/255,g=a[2]/255,h=Math.min(e,f,g),i=Math.max(e,f,g),j=i-h;return i==h?b=0:e==i?b=(f-g)/j:f==i?b=2+(g-e)/j:g==i&&(b=4+(e-f)/j),b=Math.min(60*b,360),b<0&&(b+=360),d=(h+i)/2,c=i==h?0:d<=.5?j/(i+h):j/(2-i-h),[b,100*c,100*d]}function f(a){var b,c,d,e=a[0],f=a[1],g=a[2],h=Math.min(e,f,g),i=Math.max(e,f,g),j=i-h;return c=0==i?0:j/i*1e3/10,i==h?b=0:e==i?b=(f-g)/j:f==i?b=2+(g-e)/j:g==i&&(b=4+(e-f)/j),b=Math.min(60*b,360),b<0&&(b+=360),d=i/255*1e3/10,[b,c,d]}function h(a){var b=a[0],c=a[1],d=a[2],f=e(a)[0],g=1/255*Math.min(b,Math.min(c,d)),d=1-1/255*Math.max(b,Math.max(c,d));return[f,100*g,100*d]}function i(a){var b,c,d,e,f=a[0]/255,g=a[1]/255,h=a[2]/255;return e=Math.min(1-f,1-g,1-h),b=(1-f-e)/(1-e)||0,c=(1-g-e)/(1-e)||0,d=(1-h-e)/(1-e)||0,[100*b,100*c,100*d,100*e]}function j(a){return Z[JSON.stringify(a)]}function k(a){var b=a[0]/255,c=a[1]/255,d=a[2]/255;b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92,c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var e=.4124*b+.3576*c+.1805*d,f=.2126*b+.7152*c+.0722*d,g=.0193*b+.1192*c+.9505*d;return[100*e,100*f,100*g]}function l(a){var b,c,d,e=k(a),f=e[0],g=e[1],h=e[2];return f/=95.047,g/=100,h/=108.883,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,b=116*g-16,c=500*(f-g),d=200*(g-h),[b,c,d]}function m(a){return M(l(a))}function n(a){var b,c,d,e,f,g=a[0]/360,h=a[1]/100,i=a[2]/100;if(0==h)return f=255*i,[f,f,f];c=i<.5?i*(1+h):i+h-i*h,b=2*i-c,e=[0,0,0];for(var j=0;j<3;j++)d=g+1/3*-(j-1),d<0&&d++,d>1&&d--,f=6*d<1?b+6*(c-b)*d:2*d<1?c:3*d<2?b+(c-b)*(2/3-d)*6:b,e[j]=255*f;return e}function o(a){var b,c,d=a[0],e=a[1]/100,f=a[2]/100;return 0===f?[0,0,0]:(f*=2,e*=f<=1?f:2-f,c=(f+e)/2,b=2*e/(f+e),[d,100*b,100*c])}function p(a){return h(n(a))}function q(a){return i(n(a))}function s(a){return j(n(a))}function t(a){var b=a[0]/60,c=a[1]/100,d=a[2]/100,e=Math.floor(b)%6,f=b-Math.floor(b),g=255*d*(1-c),h=255*d*(1-c*f),i=255*d*(1-c*(1-f)),d=255*d;switch(e){case 0:return[d,i,g];case 1:return[h,d,g];case 2:return[g,d,i];case 3:return[g,h,d];case 4:return[i,g,d];case 5:return[d,g,h]}}function u(a){var b,c,d=a[0],e=a[1]/100,f=a[2]/100;return c=(2-e)*f,b=e*f,b/=c<=1?c:2-c,b=b||0,c/=2,[d,100*b,100*c]}function v(a){return h(t(a))}function w(a){return i(t(a))}function x(a){return j(t(a))}function y(a){var c,d,e,f,h=a[0]/360,i=a[1]/100,j=a[2]/100,k=i+j;switch(k>1&&(i/=k,j/=k),c=Math.floor(6*h),d=1-j,e=6*h-c,0!=(1&c)&&(e=1-e),f=i+e*(d-i),c){default:case 6:case 0:r=d,g=f,b=i;break;case 1:r=f,g=d,b=i;break;case 2:r=i,g=d,b=f;break;case 3:r=i,g=f,b=d;break;case 4:r=f,g=i,b=d;break;case 5:r=d,g=i,b=f}return[255*r,255*g,255*b]}function z(a){return e(y(a))}function A(a){return f(y(a))}function B(a){return i(y(a))}function C(a){return j(y(a))}function D(a){var b,c,d,e=a[0]/100,f=a[1]/100,g=a[2]/100,h=a[3]/100;return b=1-Math.min(1,e*(1-h)+h),c=1-Math.min(1,f*(1-h)+h),d=1-Math.min(1,g*(1-h)+h),[255*b,255*c,255*d]}function E(a){return e(D(a))}function F(a){return f(D(a))}function G(a){return h(D(a))}function H(a){return j(D(a))}function I(a){var b,c,d,e=a[0]/100,f=a[1]/100,g=a[2]/100;return b=3.2406*e+f*-1.5372+g*-.4986,c=e*-.9689+1.8758*f+.0415*g,d=.0557*e+f*-.204+1.057*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b=12.92*b,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:c=12.92*c,d=d>.0031308?1.055*Math.pow(d,1/2.4)-.055:d=12.92*d,b=Math.min(Math.max(0,b),1),c=Math.min(Math.max(0,c),1),d=Math.min(Math.max(0,d),1),[255*b,255*c,255*d]}function J(a){var b,c,d,e=a[0],f=a[1],g=a[2];return e/=95.047,f/=100,g/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,b=116*f-16,c=500*(e-f),d=200*(f-g),[b,c,d]}function K(a){return M(J(a))}function L(a){var b,c,d,e,f=a[0],g=a[1],h=a[2];return f<=8?(c=100*f/903.3,e=7.787*(c/100)+16/116):(c=100*Math.pow((f+16)/116,3),e=Math.pow(c/100,1/3)),b=b/95.047<=.008856?b=95.047*(g/500+e-16/116)/7.787:95.047*Math.pow(g/500+e,3),d=d/108.883<=.008859?d=108.883*(e-h/200-16/116)/7.787:108.883*Math.pow(e-h/200,3),[b,c,d]}function M(a){var b,c,d,e=a[0],f=a[1],g=a[2];return b=Math.atan2(g,f),c=360*b/2/Math.PI,c<0&&(c+=360),d=Math.sqrt(f*f+g*g),[e,d,c]}function N(a){return I(L(a))}function O(a){var b,c,d,e=a[0],f=a[1],g=a[2];return d=g/360*2*Math.PI,b=f*Math.cos(d),c=f*Math.sin(d),[e,b,c]}function P(a){return L(O(a))}function Q(a){return N(O(a))}function R(a){return Y[a]}function S(a){return e(R(a))}function T(a){return f(R(a))}function U(a){return h(R(a))}function V(a){return i(R(a))}function W(a){return l(R(a))}function X(a){return k(R(a))}c.exports={rgb2hsl:e,rgb2hsv:f,rgb2hwb:h,rgb2cmyk:i,rgb2keyword:j,rgb2xyz:k,rgb2lab:l,rgb2lch:m,hsl2rgb:n,hsl2hsv:o,hsl2hwb:p,hsl2cmyk:q,hsl2keyword:s,hsv2rgb:t,hsv2hsl:u,hsv2hwb:v,hsv2cmyk:w,hsv2keyword:x,hwb2rgb:y,hwb2hsl:z,hwb2hsv:A,hwb2cmyk:B,hwb2keyword:C,cmyk2rgb:D,cmyk2hsl:E,cmyk2hsv:F,cmyk2hwb:G,cmyk2keyword:H,keyword2rgb:R,keyword2hsl:S,keyword2hsv:T,keyword2hwb:U,keyword2cmyk:V,keyword2lab:W,keyword2xyz:X,xyz2rgb:I,xyz2lab:J,xyz2lch:K,lab2xyz:L,lab2rgb:N,lab2lch:M,lch2lab:O,lch2xyz:P,lch2rgb:Q};var Y={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]},Z={};for(var $ in Y)Z[JSON.stringify(Y[$])]=$},{}],5:[function(a,b,c){var d=a(4),e=function(){return new j};for(var f in d){e[f+"Raw"]=function(a){return function(b){return"number"==typeof b&&(b=Array.prototype.slice.call(arguments)),d[a](b)}}(f);var g=/(\w+)2(\w+)/.exec(f),h=g[1],i=g[2];e[h]=e[h]||{},e[h][i]=e[f]=function(a){return function(b){"number"==typeof b&&(b=Array.prototype.slice.call(arguments));var c=d[a](b);if("string"==typeof c||void 0===c)return c;for(var e=0;e<c.length;e++)c[e]=Math.round(c[e]);return c}}(f)}var j=function(){this.convs={}};j.prototype.routeSpace=function(a,b){var c=b[0];return void 0===c?this.getValues(a):("number"==typeof c&&(c=Array.prototype.slice.call(b)),this.setValues(a,c))},j.prototype.setValues=function(a,b){return this.space=a,this.convs={},this.convs[a]=b,this},j.prototype.getValues=function(a){var b=this.convs[a];if(!b){var c=this.space,d=this.convs[c];b=e[c][a](d),this.convs[a]=b}return b},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(a){j.prototype[a]=function(b){return this.routeSpace(a,arguments)}}),b.exports=e},{4:4}],6:[function(a,b,c){b.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(a,b,c){var d=a(28)();a(26)(d),a(42)(d),a(22)(d),a(31)(d),a(25)(d),a(21)(d),a(23)(d),a(24)(d),a(29)(d),a(33)(d),a(34)(d),a(32)(d),a(35)(d),a(30)(d),a(27)(d),a(36)(d),a(37)(d),a(38)(d),a(39)(d),a(40)(d),a(45)(d),a(43)(d),a(44)(d),a(46)(d),a(47)(d),a(48)(d),a(15)(d),a(16)(d),a(17)(d),a(18)(d),a(19)(d),a(20)(d),a(8)(d),a(9)(d),a(10)(d),a(11)(d),a(12)(d),a(13)(d),a(14)(d),window.Chart=b.exports=d},{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,42:42,43:43,44:44,45:45,46:46,47:47,48:48,8:8,9:9}],8:[function(a,b,c){"use strict";b.exports=function(a){a.Bar=function(b,c){return c.type="bar",new a(b,c)}}},{}],9:[function(a,b,c){"use strict";b.exports=function(a){a.Bubble=function(b,c){return c.type="bubble",new a(b,c)}}},{}],10:[function(a,b,c){"use strict";b.exports=function(a){a.Doughnut=function(b,c){return c.type="doughnut",new a(b,c)}}},{}],11:[function(a,b,c){"use strict";b.exports=function(a){a.Line=function(b,c){return c.type="line",new a(b,c)}}},{}],12:[function(a,b,c){"use strict";b.exports=function(a){a.PolarArea=function(b,c){return c.type="polarArea",new a(b,c)}}},{}],13:[function(a,b,c){"use strict";b.exports=function(a){a.Radar=function(b,c){return c.type="radar",new a(b,c)}}},{}],14:[function(a,b,c){"use strict";b.exports=function(a){var b={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(a){return"("+a.xLabel+", "+a.yLabel+")"}}}};a.defaults.scatter=b,a.controllers.scatter=a.controllers.line,a.Scatter=function(b,c){return c.type="scatter",new a(b,c)}}},{}],15:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},a.controllers.bar=a.DatasetController.extend({dataElementType:a.elements.Rectangle,initialize:function(b,c){a.DatasetController.prototype.initialize.call(this,b,c);var d=this,e=d.getMeta(),f=d.getDataset();e.stack=f.stack,e.bar=!0},getStackCount:function(){var a=this,c=a.getMeta(),d=a.getScaleForId(c.yAxisID),e=[];return b.each(a.chart.data.datasets,function(b,c){var f=a.chart.getDatasetMeta(c);f.bar&&a.chart.isDatasetVisible(c)&&(d.options.stacked===!1||d.options.stacked===!0&&e.indexOf(f.stack)===-1||void 0===d.options.stacked&&(void 0===f.stack||e.indexOf(f.stack)===-1))&&e.push(f.stack)},a),e.length},update:function(a){var c=this;b.each(c.getMeta().data,function(b,d){c.updateElement(b,d,a)},c)},updateElement:function(a,c,d){var e=this,f=e.getMeta(),g=e.getScaleForId(f.xAxisID),h=e.getScaleForId(f.yAxisID),i=h.getBasePixel(),j=e.chart.options.elements.rectangle,k=a.custom||{},l=e.getDataset();a._xScale=g,a._yScale=h,a._datasetIndex=e.index,a._index=c;var m=e.getRuler(c);a._model={x:e.calculateBarX(c,e.index,m),y:d?i:e.calculateBarY(c,e.index),label:e.chart.data.labels[c],datasetLabel:l.label,horizontal:!1,base:d?i:e.calculateBarBase(e.index,c),width:e.calculateBarWidth(m),backgroundColor:k.backgroundColor?k.backgroundColor:b.getValueAtIndexOrDefault(l.backgroundColor,c,j.backgroundColor),borderSkipped:k.borderSkipped?k.borderSkipped:j.borderSkipped,borderColor:k.borderColor?k.borderColor:b.getValueAtIndexOrDefault(l.borderColor,c,j.borderColor),borderWidth:k.borderWidth?k.borderWidth:b.getValueAtIndexOrDefault(l.borderWidth,c,j.borderWidth)},a.pivot()},calculateBarBase:function(a,b){var c=this,d=c.getMeta(),e=c.getScaleForId(d.yAxisID),f=e.getBaseValue(),g=f;if(e.options.stacked===!0||void 0===e.options.stacked&&void 0!==d.stack){for(var h=c.chart,i=h.data.datasets,j=Number(i[a].data[b]),k=0;k<a;k++){var l=i[k],m=h.getDatasetMeta(k);if(m.bar&&m.yAxisID===e.id&&h.isDatasetVisible(k)&&d.stack===m.stack){var n=Number(l.data[b]);f+=j<0?Math.min(n,g):Math.max(n,g)}}return e.getPixelForValue(f)}return e.getBasePixel()},getRuler:function(){var a=this,b=a.getMeta(),c=a.getScaleForId(b.xAxisID),d=a.getStackCount(),e=c.width/c.ticks.length,f=e*c.options.categoryPercentage,g=(e-e*c.options.categoryPercentage)/2,h=f/d,i=h*c.options.barPercentage,j=h-h*c.options.barPercentage;return{stackCount:d,tickWidth:e,categoryWidth:f,categorySpacing:g,fullBarWidth:h,barWidth:i,barSpacing:j}},calculateBarWidth:function(a){var b=this,c=b.getMeta(),d=b.getScaleForId(c.xAxisID);return d.options.barThickness?d.options.barThickness:a.barWidth},getStackIndex:function(a){var b,c,d=this,e=d.chart.getDatasetMeta(a),f=d.getScaleForId(e.yAxisID),g=[e.stack];for(c=0;c<a;++c)b=this.chart.getDatasetMeta(c),b.bar&&this.chart.isDatasetVisible(c)&&(f.options.stacked===!1||f.options.stacked===!0&&g.indexOf(b.stack)===-1||void 0===f.options.stacked&&(void 0===b.stack||g.indexOf(b.stack)===-1))&&g.push(b.stack);return g.length-1},calculateBarX:function(a,b,c){var d=this,e=d.getMeta(),f=d.getScaleForId(e.xAxisID),g=d.getStackIndex(b),h=f.getPixelForValue(null,a,b,d.chart.isCombo);return h-=d.chart.isCombo?c.tickWidth/2:0,h+c.barWidth/2+c.categorySpacing+c.barWidth*g+c.barSpacing/2+c.barSpacing*g},calculateBarY:function(a,b){var c=this,d=c.getMeta(),e=c.getScaleForId(d.yAxisID),f=Number(c.getDataset().data[a]);if(e.options.stacked||void 0===e.options.stacked&&void 0!==d.stack){for(var g=e.getBaseValue(),h=g,i=g,j=0;j<b;j++){var k=c.chart.data.datasets[j],l=c.chart.getDatasetMeta(j);if(l.bar&&l.yAxisID===e.id&&c.chart.isDatasetVisible(j)&&d.stack===l.stack){var m=Number(k.data[a]);m<0?i+=m||0:h+=m||0}}return f<0?e.getPixelForValue(i+f):e.getPixelForValue(h+f)}return e.getPixelForValue(f)},draw:function(b){var c,d,e=this,f=b||1,g=e.getMeta().data,h=e.getDataset();for(a.canvasHelpers.clipArea(e.chart.chart.ctx,e.chart.chartArea),c=0,d=g.length;c<d;++c){var i=h.data[c];null===i||void 0===i||isNaN(i)||g[c].transition(f).draw()}a.canvasHelpers.unclipArea(e.chart.chart.ctx)},setHoverStyle:function(a){var c=this.chart.data.datasets[a._datasetIndex],d=a._index,e=a.custom||{},f=a._model;f.backgroundColor=e.hoverBackgroundColor?e.hoverBackgroundColor:b.getValueAtIndexOrDefault(c.hoverBackgroundColor,d,b.getHoverColor(f.backgroundColor)),f.borderColor=e.hoverBorderColor?e.hoverBorderColor:b.getValueAtIndexOrDefault(c.hoverBorderColor,d,b.getHoverColor(f.borderColor)),f.borderWidth=e.hoverBorderWidth?e.hoverBorderWidth:b.getValueAtIndexOrDefault(c.hoverBorderWidth,d,f.borderWidth)},removeHoverStyle:function(a){var c=this.chart.data.datasets[a._datasetIndex],d=a._index,e=a.custom||{},f=a._model,g=this.chart.options.elements.rectangle;f.backgroundColor=e.backgroundColor?e.backgroundColor:b.getValueAtIndexOrDefault(c.backgroundColor,d,g.backgroundColor),f.borderColor=e.borderColor?e.borderColor:b.getValueAtIndexOrDefault(c.borderColor,d,g.borderColor),f.borderWidth=e.borderWidth?e.borderWidth:b.getValueAtIndexOrDefault(c.borderWidth,d,g.borderWidth)}}),a.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(a,b){var c="";return a.length>0&&(a[0].yLabel?c=a[0].yLabel:b.labels.length>0&&a[0].index<b.labels.length&&(c=b.labels[a[0].index])),c},label:function(a,b){var c=b.datasets[a.datasetIndex].label||"";return c+": "+a.xLabel}}}},a.controllers.horizontalBar=a.controllers.bar.extend({getStackCount:function(){var a=this,c=a.getMeta(),d=a.getScaleForId(c.xAxisID),e=[];return b.each(a.chart.data.datasets,function(b,c){var f=a.chart.getDatasetMeta(c);f.bar&&a.chart.isDatasetVisible(c)&&(d.options.stacked===!1||d.options.stacked===!0&&e.indexOf(f.stack)===-1||void 0===d.options.stacked&&(void 0===f.stack||e.indexOf(f.stack)===-1))&&e.push(f.stack)},a),e.length},updateElement:function(a,c,d){var e=this,f=e.getMeta(),g=e.getScaleForId(f.xAxisID),h=e.getScaleForId(f.yAxisID),i=g.getBasePixel(),j=a.custom||{},k=e.getDataset(),l=e.chart.options.elements.rectangle;a._xScale=g,a._yScale=h,a._datasetIndex=e.index,a._index=c;var m=e.getRuler(c);a._model={x:d?i:e.calculateBarX(c,e.index),y:e.calculateBarY(c,e.index,m),label:e.chart.data.labels[c],datasetLabel:k.label,horizontal:!0,base:d?i:e.calculateBarBase(e.index,c),height:e.calculateBarHeight(m),backgroundColor:j.backgroundColor?j.backgroundColor:b.getValueAtIndexOrDefault(k.backgroundColor,c,l.backgroundColor),borderSkipped:j.borderSkipped?j.borderSkipped:l.borderSkipped,borderColor:j.borderColor?j.borderColor:b.getValueAtIndexOrDefault(k.borderColor,c,l.borderColor),
  borderWidth:j.borderWidth?j.borderWidth:b.getValueAtIndexOrDefault(k.borderWidth,c,l.borderWidth)},a.pivot()},calculateBarBase:function(a,b){var c=this,d=c.getMeta(),e=c.getScaleForId(d.xAxisID),f=e.getBaseValue(),g=f;if(e.options.stacked||void 0===e.options.stacked&&void 0!==d.stack){for(var h=c.chart,i=h.data.datasets,j=Number(i[a].data[b]),k=0;k<a;k++){var l=i[k],m=h.getDatasetMeta(k);if(m.bar&&m.xAxisID===e.id&&h.isDatasetVisible(k)&&d.stack===m.stack){var n=Number(l.data[b]);f+=j<0?Math.min(n,g):Math.max(n,g)}}return e.getPixelForValue(f)}return e.getBasePixel()},getRuler:function(){var a=this,b=a.getMeta(),c=a.getScaleForId(b.yAxisID),d=a.getStackCount(),e=c.height/c.ticks.length,f=e*c.options.categoryPercentage,g=(e-e*c.options.categoryPercentage)/2,h=f/d,i=h*c.options.barPercentage,j=h-h*c.options.barPercentage;return{stackCount:d,tickHeight:e,categoryHeight:f,categorySpacing:g,fullBarHeight:h,barHeight:i,barSpacing:j}},calculateBarHeight:function(a){var b=this,c=b.getMeta(),d=b.getScaleForId(c.yAxisID);return d.options.barThickness?d.options.barThickness:a.barHeight},getStackIndex:function(a){var b,c,d=this,e=d.chart.getDatasetMeta(a),f=d.getScaleForId(e.xAxisID),g=[e.stack];for(c=0;c<a;++c)b=this.chart.getDatasetMeta(c),b.bar&&this.chart.isDatasetVisible(c)&&(f.options.stacked===!1||f.options.stacked===!0&&g.indexOf(b.stack)===-1||void 0===f.options.stacked&&(void 0===b.stack||g.indexOf(b.stack)===-1))&&g.push(b.stack);return g.length-1},calculateBarX:function(a,b){var c=this,d=c.getMeta(),e=c.getScaleForId(d.xAxisID),f=Number(c.getDataset().data[a]);if(e.options.stacked||void 0===e.options.stacked&&void 0!==d.stack){for(var g=e.getBaseValue(),h=g,i=g,j=0;j<b;j++){var k=c.chart.data.datasets[j],l=c.chart.getDatasetMeta(j);if(l.bar&&l.xAxisID===e.id&&c.chart.isDatasetVisible(j)&&d.stack===l.stack){var m=Number(k.data[a]);m<0?i+=m||0:h+=m||0}}return f<0?e.getPixelForValue(i+f):e.getPixelForValue(h+f)}return e.getPixelForValue(f)},calculateBarY:function(a,b,c){var d=this,e=d.getMeta(),f=d.getScaleForId(e.yAxisID),g=d.getStackIndex(b),h=f.getPixelForValue(null,a,b,d.chart.isCombo);return h-=d.chart.isCombo?c.tickHeight/2:0,h+c.barHeight/2+c.categorySpacing+c.barHeight*g+c.barSpacing/2+c.barSpacing*g}})}},{}],16:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.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(a,b){var c=b.datasets[a.datasetIndex].label||"",d=b.datasets[a.datasetIndex].data[a.index];return c+": ("+a.xLabel+", "+a.yLabel+", "+d.r+")"}}}},a.controllers.bubble=a.DatasetController.extend({dataElementType:a.elements.Point,update:function(a){var c=this,d=c.getMeta(),e=d.data;b.each(e,function(b,d){c.updateElement(b,d,a)})},updateElement:function(c,d,e){var f=this,g=f.getMeta(),h=f.getScaleForId(g.xAxisID),i=f.getScaleForId(g.yAxisID),j=c.custom||{},k=f.getDataset(),l=k.data[d],m=f.chart.options.elements.point,n=f.index;b.extend(c,{_xScale:h,_yScale:i,_datasetIndex:n,_index:d,_model:{x:e?h.getPixelForDecimal(.5):h.getPixelForValue("object"==typeof l?l:NaN,d,n,f.chart.isCombo),y:e?i.getBasePixel():i.getPixelForValue(l,d,n),radius:e?0:j.radius?j.radius:f.getRadius(l),hitRadius:j.hitRadius?j.hitRadius:b.getValueAtIndexOrDefault(k.hitRadius,d,m.hitRadius)}}),a.DatasetController.prototype.removeHoverStyle.call(f,c,m);var o=c._model;o.skip=j.skip?j.skip:isNaN(o.x)||isNaN(o.y),c.pivot()},getRadius:function(a){return a.r||this.chart.options.elements.point.radius},setHoverStyle:function(c){var d=this;a.DatasetController.prototype.setHoverStyle.call(d,c);var e=d.chart.data.datasets[c._datasetIndex],f=c._index,g=c.custom||{},h=c._model;h.radius=g.hoverRadius?g.hoverRadius:b.getValueAtIndexOrDefault(e.hoverRadius,f,d.chart.options.elements.point.hoverRadius)+d.getRadius(e.data[f])},removeHoverStyle:function(b){var c=this;a.DatasetController.prototype.removeHoverStyle.call(c,b,c.chart.options.elements.point);var d=c.chart.data.datasets[b._datasetIndex].data[b._index],e=b.custom||{},f=b._model;f.radius=e.radius?e.radius:c.getRadius(d)}})}},{}],17:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c=a.defaults;c.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(a){var b=[];b.push('<ul class="'+a.id+'-legend">');var c=a.data,d=c.datasets,e=c.labels;if(d.length)for(var f=0;f<d[0].data.length;++f)b.push('<li><span style="background-color:'+d[0].backgroundColor[f]+'"></span>'),e[f]&&b.push(e[f]),b.push("</li>");return b.push("</ul>"),b.join("")},legend:{labels:{generateLabels:function(a){var c=a.data;return c.labels.length&&c.datasets.length?c.labels.map(function(d,e){var f=a.getDatasetMeta(0),g=c.datasets[0],h=f.data[e],i=h&&h.custom||{},j=b.getValueAtIndexOrDefault,k=a.options.elements.arc,l=i.backgroundColor?i.backgroundColor:j(g.backgroundColor,e,k.backgroundColor),m=i.borderColor?i.borderColor:j(g.borderColor,e,k.borderColor),n=i.borderWidth?i.borderWidth:j(g.borderWidth,e,k.borderWidth);return{text:d,fillStyle:l,strokeStyle:m,lineWidth:n,hidden:isNaN(g.data[e])||f.data[e].hidden,index:e}}):[]}},onClick:function(a,b){var c,d,e,f=b.index,g=this.chart;for(c=0,d=(g.data.datasets||[]).length;c<d;++c)e=g.getDatasetMeta(c),e.data[f]&&(e.data[f].hidden=!e.data[f].hidden);g.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(a,c){var d=c.labels[a.index],e=": "+c.datasets[a.datasetIndex].data[a.index];return b.isArray(d)?(d=d.slice(),d[0]+=e):d+=e,d}}}},c.pie=b.clone(c.doughnut),b.extend(c.pie,{cutoutPercentage:0}),a.controllers.doughnut=a.controllers.pie=a.DatasetController.extend({dataElementType:a.elements.Arc,linkScales:b.noop,getRingIndex:function(a){for(var b=0,c=0;c<a;++c)this.chart.isDatasetVisible(c)&&++b;return b},update:function(a){var c=this,d=c.chart,e=d.chartArea,f=d.options,g=f.elements.arc,h=e.right-e.left-g.borderWidth,i=e.bottom-e.top-g.borderWidth,j=Math.min(h,i),k={x:0,y:0},l=c.getMeta(),m=f.cutoutPercentage,n=f.circumference;if(n<2*Math.PI){var o=f.rotation%(2*Math.PI);o+=2*Math.PI*(o>=Math.PI?-1:o<-Math.PI?1:0);var p=o+n,q={x:Math.cos(o),y:Math.sin(o)},r={x:Math.cos(p),y:Math.sin(p)},s=o<=0&&0<=p||o<=2*Math.PI&&2*Math.PI<=p,t=o<=.5*Math.PI&&.5*Math.PI<=p||o<=2.5*Math.PI&&2.5*Math.PI<=p,u=o<=-Math.PI&&-Math.PI<=p||o<=Math.PI&&Math.PI<=p,v=o<=.5*-Math.PI&&.5*-Math.PI<=p||o<=1.5*Math.PI&&1.5*Math.PI<=p,w=m/100,x={x:u?-1:Math.min(q.x*(q.x<0?1:w),r.x*(r.x<0?1:w)),y:v?-1:Math.min(q.y*(q.y<0?1:w),r.y*(r.y<0?1:w))},y={x:s?1:Math.max(q.x*(q.x>0?1:w),r.x*(r.x>0?1:w)),y:t?1:Math.max(q.y*(q.y>0?1:w),r.y*(r.y>0?1:w))},z={width:.5*(y.x-x.x),height:.5*(y.y-x.y)};j=Math.min(h/z.width,i/z.height),k={x:(y.x+x.x)*-.5,y:(y.y+x.y)*-.5}}d.borderWidth=c.getMaxBorderWidth(l.data),d.outerRadius=Math.max((j-d.borderWidth)/2,0),d.innerRadius=Math.max(m?d.outerRadius/100*m:0,0),d.radiusLength=(d.outerRadius-d.innerRadius)/d.getVisibleDatasetCount(),d.offsetX=k.x*d.outerRadius,d.offsetY=k.y*d.outerRadius,l.total=c.calculateTotal(),c.outerRadius=d.outerRadius-d.radiusLength*c.getRingIndex(c.index),c.innerRadius=Math.max(c.outerRadius-d.radiusLength,0),b.each(l.data,function(b,d){c.updateElement(b,d,a)})},updateElement:function(a,c,d){var e=this,f=e.chart,g=f.chartArea,h=f.options,i=h.animation,j=(g.left+g.right)/2,k=(g.top+g.bottom)/2,l=h.rotation,m=h.rotation,n=e.getDataset(),o=d&&i.animateRotate?0:a.hidden?0:e.calculateCircumference(n.data[c])*(h.circumference/(2*Math.PI)),p=d&&i.animateScale?0:e.innerRadius,q=d&&i.animateScale?0:e.outerRadius,r=b.getValueAtIndexOrDefault;b.extend(a,{_datasetIndex:e.index,_index:c,_model:{x:j+f.offsetX,y:k+f.offsetY,startAngle:l,endAngle:m,circumference:o,outerRadius:q,innerRadius:p,label:r(n.label,c,f.data.labels[c])}});var s=a._model;this.removeHoverStyle(a),d&&i.animateRotate||(0===c?s.startAngle=h.rotation:s.startAngle=e.getMeta().data[c-1]._model.endAngle,s.endAngle=s.startAngle+s.circumference),a.pivot()},removeHoverStyle:function(b){a.DatasetController.prototype.removeHoverStyle.call(this,b,this.chart.options.elements.arc)},calculateTotal:function(){var a,c=this.getDataset(),d=this.getMeta(),e=0;return b.each(d.data,function(b,d){a=c.data[d],isNaN(a)||b.hidden||(e+=Math.abs(a))}),e},calculateCircumference:function(a){var b=this.getMeta().total;return b>0&&!isNaN(a)?2*Math.PI*(a/b):0},getMaxBorderWidth:function(a){for(var b,c,d=0,e=this.index,f=a.length,g=0;g<f;g++)b=a[g]._model?a[g]._model.borderWidth:0,c=a[g]._chart?a[g]._chart.config.data.datasets[e].hoverBorderWidth:0,d=b>d?b:d,d=c>d?c:d;return d}})}},{}],18:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b){return c.getValueOrDefault(a.showLine,b.showLines)}var c=a.helpers;a.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},a.controllers.line=a.DatasetController.extend({datasetElementType:a.elements.Line,dataElementType:a.elements.Point,update:function(a){var d,e,f,g=this,h=g.getMeta(),i=h.dataset,j=h.data||[],k=g.chart.options,l=k.elements.line,m=g.getScaleForId(h.yAxisID),n=g.getDataset(),o=b(n,k);for(o&&(f=i.custom||{},void 0!==n.tension&&void 0===n.lineTension&&(n.lineTension=n.tension),i._scale=m,i._datasetIndex=g.index,i._children=j,i._model={spanGaps:n.spanGaps?n.spanGaps:k.spanGaps,tension:f.tension?f.tension:c.getValueOrDefault(n.lineTension,l.tension),backgroundColor:f.backgroundColor?f.backgroundColor:n.backgroundColor||l.backgroundColor,borderWidth:f.borderWidth?f.borderWidth:n.borderWidth||l.borderWidth,borderColor:f.borderColor?f.borderColor:n.borderColor||l.borderColor,borderCapStyle:f.borderCapStyle?f.borderCapStyle:n.borderCapStyle||l.borderCapStyle,borderDash:f.borderDash?f.borderDash:n.borderDash||l.borderDash,borderDashOffset:f.borderDashOffset?f.borderDashOffset:n.borderDashOffset||l.borderDashOffset,borderJoinStyle:f.borderJoinStyle?f.borderJoinStyle:n.borderJoinStyle||l.borderJoinStyle,fill:f.fill?f.fill:void 0!==n.fill?n.fill:l.fill,steppedLine:f.steppedLine?f.steppedLine:c.getValueOrDefault(n.steppedLine,l.stepped),cubicInterpolationMode:f.cubicInterpolationMode?f.cubicInterpolationMode:c.getValueOrDefault(n.cubicInterpolationMode,l.cubicInterpolationMode),scaleTop:m.top,scaleBottom:m.bottom,scaleZero:m.getBasePixel()},i.pivot()),d=0,e=j.length;d<e;++d)g.updateElement(j[d],d,a);for(o&&0!==i._model.tension&&g.updateBezierControlPoints(),d=0,e=j.length;d<e;++d)j[d].pivot()},getPointBackgroundColor:function(a,b){var d=this.chart.options.elements.point.backgroundColor,e=this.getDataset(),f=a.custom||{};return f.backgroundColor?d=f.backgroundColor:e.pointBackgroundColor?d=c.getValueAtIndexOrDefault(e.pointBackgroundColor,b,d):e.backgroundColor&&(d=e.backgroundColor),d},getPointBorderColor:function(a,b){var d=this.chart.options.elements.point.borderColor,e=this.getDataset(),f=a.custom||{};return f.borderColor?d=f.borderColor:e.pointBorderColor?d=c.getValueAtIndexOrDefault(e.pointBorderColor,b,d):e.borderColor&&(d=e.borderColor),d},getPointBorderWidth:function(a,b){var d=this.chart.options.elements.point.borderWidth,e=this.getDataset(),f=a.custom||{};return isNaN(f.borderWidth)?isNaN(e.pointBorderWidth)?isNaN(e.borderWidth)||(d=e.borderWidth):d=c.getValueAtIndexOrDefault(e.pointBorderWidth,b,d):d=f.borderWidth,d},updateElement:function(a,b,d){var e,f,g=this,h=g.getMeta(),i=a.custom||{},j=g.getDataset(),k=g.index,l=j.data[b],m=g.getScaleForId(h.yAxisID),n=g.getScaleForId(h.xAxisID),o=g.chart.options.elements.point,p=g.chart.data.labels||[],q=1===p.length||1===j.data.length||g.chart.isCombo;void 0!==j.radius&&void 0===j.pointRadius&&(j.pointRadius=j.radius),void 0!==j.hitRadius&&void 0===j.pointHitRadius&&(j.pointHitRadius=j.hitRadius),e=n.getPixelForValue("object"==typeof l?l:NaN,b,k,q),f=d?m.getBasePixel():g.calculatePointY(l,b,k),a._xScale=n,a._yScale=m,a._datasetIndex=k,a._index=b,a._model={x:e,y:f,skip:i.skip||isNaN(e)||isNaN(f),radius:i.radius||c.getValueAtIndexOrDefault(j.pointRadius,b,o.radius),pointStyle:i.pointStyle||c.getValueAtIndexOrDefault(j.pointStyle,b,o.pointStyle),backgroundColor:g.getPointBackgroundColor(a,b),borderColor:g.getPointBorderColor(a,b),borderWidth:g.getPointBorderWidth(a,b),tension:h.dataset._model?h.dataset._model.tension:0,steppedLine:!!h.dataset._model&&h.dataset._model.steppedLine,hitRadius:i.hitRadius||c.getValueAtIndexOrDefault(j.pointHitRadius,b,o.hitRadius)}},calculatePointY:function(a,b,c){var d,e,f,g=this,h=g.chart,i=g.getMeta(),j=g.getScaleForId(i.yAxisID),k=0,l=0;if(j.options.stacked){for(d=0;d<c;d++)if(e=h.data.datasets[d],f=h.getDatasetMeta(d),"line"===f.type&&f.yAxisID===j.id&&h.isDatasetVisible(d)){var m=Number(j.getRightValue(e.data[b]));m<0?l+=m||0:k+=m||0}var n=Number(j.getRightValue(a));return n<0?j.getPixelForValue(l+n):j.getPixelForValue(k+n)}return j.getPixelForValue(a)},updateBezierControlPoints:function(){function a(a,b,c){return Math.max(Math.min(a,c),b)}var b,d,e,f,g,h=this,i=h.getMeta(),j=h.chart.chartArea,k=i.data||[];if(i.dataset._model.spanGaps&&(k=k.filter(function(a){return!a._model.skip})),"monotone"===i.dataset._model.cubicInterpolationMode)c.splineCurveMonotone(k);else for(b=0,d=k.length;b<d;++b)e=k[b],f=e._model,g=c.splineCurve(c.previousItem(k,b)._model,f,c.nextItem(k,b)._model,i.dataset._model.tension),f.controlPointPreviousX=g.previous.x,f.controlPointPreviousY=g.previous.y,f.controlPointNextX=g.next.x,f.controlPointNextY=g.next.y;if(h.chart.options.elements.line.capBezierPoints)for(b=0,d=k.length;b<d;++b)f=k[b]._model,f.controlPointPreviousX=a(f.controlPointPreviousX,j.left,j.right),f.controlPointPreviousY=a(f.controlPointPreviousY,j.top,j.bottom),f.controlPointNextX=a(f.controlPointNextX,j.left,j.right),f.controlPointNextY=a(f.controlPointNextY,j.top,j.bottom)},draw:function(c){var d,e,f=this,g=f.getMeta(),h=g.data||[],i=c||1;for(d=0,e=h.length;d<e;++d)h[d].transition(i);for(a.canvasHelpers.clipArea(f.chart.chart.ctx,f.chart.chartArea),b(f.getDataset(),f.chart.options)&&g.dataset.transition(i).draw(),a.canvasHelpers.unclipArea(f.chart.chart.ctx),d=0,e=h.length;d<e;++d)h[d].draw(f.chart.chartArea)},setHoverStyle:function(a){var b=this.chart.data.datasets[a._datasetIndex],d=a._index,e=a.custom||{},f=a._model;f.radius=e.hoverRadius||c.getValueAtIndexOrDefault(b.pointHoverRadius,d,this.chart.options.elements.point.hoverRadius),f.backgroundColor=e.hoverBackgroundColor||c.getValueAtIndexOrDefault(b.pointHoverBackgroundColor,d,c.getHoverColor(f.backgroundColor)),f.borderColor=e.hoverBorderColor||c.getValueAtIndexOrDefault(b.pointHoverBorderColor,d,c.getHoverColor(f.borderColor)),f.borderWidth=e.hoverBorderWidth||c.getValueAtIndexOrDefault(b.pointHoverBorderWidth,d,f.borderWidth)},removeHoverStyle:function(a){var b=this,d=b.chart.data.datasets[a._datasetIndex],e=a._index,f=a.custom||{},g=a._model;void 0!==d.radius&&void 0===d.pointRadius&&(d.pointRadius=d.radius),g.radius=f.radius||c.getValueAtIndexOrDefault(d.pointRadius,e,b.chart.options.elements.point.radius),g.backgroundColor=b.getPointBackgroundColor(a,e),g.borderColor=b.getPointBorderColor(a,e),g.borderWidth=b.getPointBorderWidth(a,e)}})}},{}],19:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(a){var b=[];b.push('<ul class="'+a.id+'-legend">');var c=a.data,d=c.datasets,e=c.labels;if(d.length)for(var f=0;f<d[0].data.length;++f)b.push('<li><span style="background-color:'+d[0].backgroundColor[f]+'"></span>'),e[f]&&b.push(e[f]),b.push("</li>");return b.push("</ul>"),b.join("")},legend:{labels:{generateLabels:function(a){var c=a.data;return c.labels.length&&c.datasets.length?c.labels.map(function(d,e){var f=a.getDatasetMeta(0),g=c.datasets[0],h=f.data[e],i=h.custom||{},j=b.getValueAtIndexOrDefault,k=a.options.elements.arc,l=i.backgroundColor?i.backgroundColor:j(g.backgroundColor,e,k.backgroundColor),m=i.borderColor?i.borderColor:j(g.borderColor,e,k.borderColor),n=i.borderWidth?i.borderWidth:j(g.borderWidth,e,k.borderWidth);return{text:d,fillStyle:l,strokeStyle:m,lineWidth:n,hidden:isNaN(g.data[e])||f.data[e].hidden,index:e}}):[]}},onClick:function(a,b){var c,d,e,f=b.index,g=this.chart;for(c=0,d=(g.data.datasets||[]).length;c<d;++c)e=g.getDatasetMeta(c),e.data[f].hidden=!e.data[f].hidden;g.update()}},tooltips:{callbacks:{title:function(){return""},label:function(a,b){return b.labels[a.index]+": "+a.yLabel}}}},a.controllers.polarArea=a.DatasetController.extend({dataElementType:a.elements.Arc,linkScales:b.noop,update:function(a){var c=this,d=c.chart,e=d.chartArea,f=c.getMeta(),g=d.options,h=g.elements.arc,i=Math.min(e.right-e.left,e.bottom-e.top);d.outerRadius=Math.max((i-h.borderWidth/2)/2,0),d.innerRadius=Math.max(g.cutoutPercentage?d.outerRadius/100*g.cutoutPercentage:1,0),d.radiusLength=(d.outerRadius-d.innerRadius)/d.getVisibleDatasetCount(),c.outerRadius=d.outerRadius-d.radiusLength*c.index,c.innerRadius=c.outerRadius-d.radiusLength,f.count=c.countVisibleElements(),b.each(f.data,function(b,d){c.updateElement(b,d,a)})},updateElement:function(a,c,d){for(var e=this,f=e.chart,g=e.getDataset(),h=f.options,i=h.animation,j=f.scale,k=b.getValueAtIndexOrDefault,l=f.data.labels,m=e.calculateCircumference(g.data[c]),n=j.xCenter,o=j.yCenter,p=0,q=e.getMeta(),r=0;r<c;++r)isNaN(g.data[r])||q.data[r].hidden||++p;var s=h.startAngle,t=a.hidden?0:j.getDistanceFromCenterForValue(g.data[c]),u=s+m*p,v=u+(a.hidden?0:m),w=i.animateScale?0:j.getDistanceFromCenterForValue(g.data[c]);b.extend(a,{_datasetIndex:e.index,_index:c,_scale:j,_model:{x:n,y:o,innerRadius:0,outerRadius:d?w:t,startAngle:d&&i.animateRotate?s:u,endAngle:d&&i.animateRotate?s:v,label:k(l,c,l[c])}}),e.removeHoverStyle(a),a.pivot()},removeHoverStyle:function(b){a.DatasetController.prototype.removeHoverStyle.call(this,b,this.chart.options.elements.arc)},countVisibleElements:function(){var a=this.getDataset(),c=this.getMeta(),d=0;return b.each(c.data,function(b,c){isNaN(a.data[c])||b.hidden||d++}),d},calculateCircumference:function(a){var b=this.getMeta().count;return b>0&&!isNaN(a)?2*Math.PI/b:0}})}},{}],20:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},a.controllers.radar=a.DatasetController.extend({datasetElementType:a.elements.Line,dataElementType:a.elements.Point,linkScales:b.noop,update:function(a){var c=this,d=c.getMeta(),e=d.dataset,f=d.data,g=e.custom||{},h=c.getDataset(),i=c.chart.options.elements.line,j=c.chart.scale;void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),b.extend(d.dataset,{_datasetIndex:c.index,_children:f,_loop:!0,_model:{tension:g.tension?g.tension:b.getValueOrDefault(h.lineTension,i.tension),backgroundColor:g.backgroundColor?g.backgroundColor:h.backgroundColor||i.backgroundColor,borderWidth:g.borderWidth?g.borderWidth:h.borderWidth||i.borderWidth,borderColor:g.borderColor?g.borderColor:h.borderColor||i.borderColor,fill:g.fill?g.fill:void 0!==h.fill?h.fill:i.fill,borderCapStyle:g.borderCapStyle?g.borderCapStyle:h.borderCapStyle||i.borderCapStyle,borderDash:g.borderDash?g.borderDash:h.borderDash||i.borderDash,borderDashOffset:g.borderDashOffset?g.borderDashOffset:h.borderDashOffset||i.borderDashOffset,borderJoinStyle:g.borderJoinStyle?g.borderJoinStyle:h.borderJoinStyle||i.borderJoinStyle,scaleTop:j.top,scaleBottom:j.bottom,scaleZero:j.getBasePosition()}}),d.dataset.pivot(),b.each(f,function(b,d){c.updateElement(b,d,a)},c),c.updateBezierControlPoints()},updateElement:function(a,c,d){var e=this,f=a.custom||{},g=e.getDataset(),h=e.chart.scale,i=e.chart.options.elements.point,j=h.getPointPositionForValue(c,g.data[c]);b.extend(a,{_datasetIndex:e.index,_index:c,_scale:h,_model:{x:d?h.xCenter:j.x,y:d?h.yCenter:j.y,tension:f.tension?f.tension:b.getValueOrDefault(g.lineTension,e.chart.options.elements.line.tension),radius:f.radius?f.radius:b.getValueAtIndexOrDefault(g.pointRadius,c,i.radius),backgroundColor:f.backgroundColor?f.backgroundColor:b.getValueAtIndexOrDefault(g.pointBackgroundColor,c,i.backgroundColor),borderColor:f.borderColor?f.borderColor:b.getValueAtIndexOrDefault(g.pointBorderColor,c,i.borderColor),borderWidth:f.borderWidth?f.borderWidth:b.getValueAtIndexOrDefault(g.pointBorderWidth,c,i.borderWidth),pointStyle:f.pointStyle?f.pointStyle:b.getValueAtIndexOrDefault(g.pointStyle,c,i.pointStyle),hitRadius:f.hitRadius?f.hitRadius:b.getValueAtIndexOrDefault(g.hitRadius,c,i.hitRadius)}}),a._model.skip=f.skip?f.skip:isNaN(a._model.x)||isNaN(a._model.y)},updateBezierControlPoints:function(){var a=this.chart.chartArea,c=this.getMeta();b.each(c.data,function(d,e){var f=d._model,g=b.splineCurve(b.previousItem(c.data,e,!0)._model,f,b.nextItem(c.data,e,!0)._model,f.tension);f.controlPointPreviousX=Math.max(Math.min(g.previous.x,a.right),a.left),f.controlPointPreviousY=Math.max(Math.min(g.previous.y,a.bottom),a.top),f.controlPointNextX=Math.max(Math.min(g.next.x,a.right),a.left),f.controlPointNextY=Math.max(Math.min(g.next.y,a.bottom),a.top),d.pivot()})},draw:function(a){var c=this.getMeta(),d=a||1;b.each(c.data,function(a){a.transition(d)}),c.dataset.transition(d).draw(),b.each(c.data,function(a){a.draw()})},setHoverStyle:function(a){var c=this.chart.data.datasets[a._datasetIndex],d=a.custom||{},e=a._index,f=a._model;f.radius=d.hoverRadius?d.hoverRadius:b.getValueAtIndexOrDefault(c.pointHoverRadius,e,this.chart.options.elements.point.hoverRadius),f.backgroundColor=d.hoverBackgroundColor?d.hoverBackgroundColor:b.getValueAtIndexOrDefault(c.pointHoverBackgroundColor,e,b.getHoverColor(f.backgroundColor)),f.borderColor=d.hoverBorderColor?d.hoverBorderColor:b.getValueAtIndexOrDefault(c.pointHoverBorderColor,e,b.getHoverColor(f.borderColor)),f.borderWidth=d.hoverBorderWidth?d.hoverBorderWidth:b.getValueAtIndexOrDefault(c.pointHoverBorderWidth,e,f.borderWidth)},removeHoverStyle:function(a){var c=this.chart.data.datasets[a._datasetIndex],d=a.custom||{},e=a._index,f=a._model,g=this.chart.options.elements.point;f.radius=d.radius?d.radius:b.getValueAtIndexOrDefault(c.radius,e,g.radius),f.backgroundColor=d.backgroundColor?d.backgroundColor:b.getValueAtIndexOrDefault(c.pointBackgroundColor,e,g.backgroundColor),f.borderColor=d.borderColor?d.borderColor:b.getValueAtIndexOrDefault(c.pointBorderColor,e,g.borderColor),f.borderWidth=d.borderWidth?d.borderWidth:b.getValueAtIndexOrDefault(c.pointBorderWidth,e,g.borderWidth)}})}},{}],21:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:b.noop,onComplete:b.noop},a.Animation=a.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),a.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(a,b,c,d){var e=this;d||(a.animating=!0);for(var f=0;f<e.animations.length;++f)if(e.animations[f].chartInstance===a)return void(e.animations[f].animationObject=b);e.animations.push({chartInstance:a,animationObject:b}),1===e.animations.length&&e.requestAnimationFrame()},cancelAnimation:function(a){var c=b.findIndex(this.animations,function(b){return b.chartInstance===a});c!==-1&&(this.animations.splice(c,1),a.animating=!1)},requestAnimationFrame:function(){var a=this;null===a.request&&(a.request=b.requestAnimFrame.call(window,function(){a.request=null,a.startDigest()}))},startDigest:function(){var a=this,b=Date.now(),c=0;a.dropFrames>1&&(c=Math.floor(a.dropFrames),a.dropFrames=a.dropFrames%1);for(var d=0;d<a.animations.length;)null===a.animations[d].animationObject.currentStep&&(a.animations[d].animationObject.currentStep=0),a.animations[d].animationObject.currentStep+=1+c,a.animations[d].animationObject.currentStep>a.animations[d].animationObject.numSteps&&(a.animations[d].animationObject.currentStep=a.animations[d].animationObject.numSteps),a.animations[d].animationObject.render(a.animations[d].chartInstance,a.animations[d].animationObject),a.animations[d].animationObject.onAnimationProgress&&a.animations[d].animationObject.onAnimationProgress.call&&a.animations[d].animationObject.onAnimationProgress.call(a.animations[d].chartInstance,a.animations[d]),a.animations[d].animationObject.currentStep===a.animations[d].animationObject.numSteps?(a.animations[d].animationObject.onAnimationComplete&&a.animations[d].animationObject.onAnimationComplete.call&&a.animations[d].animationObject.onAnimationComplete.call(a.animations[d].chartInstance,a.animations[d]),a.animations[d].chartInstance.animating=!1,a.animations.splice(d,1)):++d;var e=Date.now(),f=(e-b)/a.frameDuration;a.dropFrames+=f,a.animations.length>0&&a.requestAnimationFrame()}}}},{}],22:[function(a,b,c){"use strict";b.exports=function(a){var b=a.canvasHelpers={};b.drawPoint=function(b,c,d,e,f){var g,h,i,j,k,l;if("object"==typeof c&&(g=c.toString(),"[object HTMLImageElement]"===g||"[object HTMLCanvasElement]"===g))return void b.drawImage(c,e-c.width/2,f-c.height/2);if(!(isNaN(d)||d<=0)){switch(c){default:b.beginPath(),b.arc(e,f,d,0,2*Math.PI),b.closePath(),b.fill();break;case"triangle":b.beginPath(),h=3*d/Math.sqrt(3),k=h*Math.sqrt(3)/2,b.moveTo(e-h/2,f+k/3),b.lineTo(e+h/2,f+k/3),b.lineTo(e,f-2*k/3),b.closePath(),b.fill();break;case"rect":l=1/Math.SQRT2*d,b.beginPath(),b.fillRect(e-l,f-l,2*l,2*l),b.strokeRect(e-l,f-l,2*l,2*l);break;case"rectRounded":var m=d/Math.SQRT2,n=e-m,o=f-m,p=Math.SQRT2*d;a.helpers.drawRoundedRectangle(b,n,o,p,p,d/2),b.fill();break;case"rectRot":l=1/Math.SQRT2*d,b.beginPath(),b.moveTo(e-l,f),b.lineTo(e,f+l),b.lineTo(e+l,f),b.lineTo(e,f-l),b.closePath(),b.fill();break;case"cross":b.beginPath(),b.moveTo(e,f+d),b.lineTo(e,f-d),b.moveTo(e-d,f),b.lineTo(e+d,f),b.closePath();break;case"crossRot":b.beginPath(),i=Math.cos(Math.PI/4)*d,j=Math.sin(Math.PI/4)*d,b.moveTo(e-i,f-j),b.lineTo(e+i,f+j),b.moveTo(e-i,f+j),b.lineTo(e+i,f-j),b.closePath();break;case"star":b.beginPath(),b.moveTo(e,f+d),b.lineTo(e,f-d),b.moveTo(e-d,f),b.lineTo(e+d,f),i=Math.cos(Math.PI/4)*d,j=Math.sin(Math.PI/4)*d,b.moveTo(e-i,f-j),b.lineTo(e+i,f+j),b.moveTo(e-i,f+j),b.lineTo(e+i,f-j),b.closePath();break;case"line":b.beginPath(),b.moveTo(e-d,f),b.lineTo(e+d,f),b.closePath();break;case"dash":b.beginPath(),b.moveTo(e,f),b.lineTo(e+d,f),b.closePath()}b.stroke()}},b.clipArea=function(a,b){a.save(),a.beginPath(),a.rect(b.left,b.top,b.right-b.left,b.bottom-b.top),a.clip()},b.unclipArea=function(a){a.restore()}}},{}],23:[function(a,b,c){"use strict";b.exports=function(a){function b(b){b=b||{};var c=b.data=b.data||{};return c.datasets=c.datasets||[],c.labels=c.labels||[],b.options=d.configMerge(a.defaults.global,a.defaults[b.type],b.options||{}),b}function c(a){var b=a.options;b.scale?a.scale.options=b.scale:b.scales&&b.scales.xAxes.concat(b.scales.yAxes).forEach(function(b){a.scales[b.id].options=b}),a.tooltip._options=b.tooltips}var d=a.helpers,e=a.plugins,f=a.platform;a.types={},a.instances={},a.controllers={},a.Controller=function(c,e,g){var h=this;e=b(e);var i=f.acquireContext(c,e),j=i&&i.canvas,k=j&&j.height,l=j&&j.width;return g.ctx=i,g.canvas=j,g.config=e,g.width=l,g.height=k,g.aspectRatio=k?l/k:null,h.id=d.uid(),h.chart=g,h.config=e,h.options=e.options,h._bufferedRender=!1,a.instances[h.id]=h,Object.defineProperty(h,"data",{get:function(){return h.config.data}}),i&&j?(h.initialize(),h.update(),h):(console.error("Failed to create chart: can't acquire context from the given item"),h)},d.extend(a.Controller.prototype,{initialize:function(){var a=this;return e.notify(a,"beforeInit"),d.retinaScale(a.chart),a.bindEvents(),a.options.responsive&&a.resize(!0),a.ensureScalesHaveIDs(),a.buildScales(),a.initToolTip(),e.notify(a,"afterInit"),a},clear:function(){return d.clear(this.chart),this},stop:function(){return a.animationService.cancelAnimation(this),this},resize:function(a){var b=this,c=b.chart,f=b.options,g=c.canvas,h=f.maintainAspectRatio&&c.aspectRatio||null,i=Math.floor(d.getMaximumWidth(g)),j=Math.floor(h?i/h:d.getMaximumHeight(g));if((c.width!==i||c.height!==j)&&(g.width=c.width=i,g.height=c.height=j,g.style.width=i+"px",g.style.height=j+"px",d.retinaScale(c),!a)){var k={width:i,height:j};e.notify(b,"resize",[k]),b.options.onResize&&b.options.onResize(b,k),b.stop(),b.update(b.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var a=this.options,b=a.scales||{},c=a.scale;d.each(b.xAxes,function(a,b){a.id=a.id||"x-axis-"+b}),d.each(b.yAxes,function(a,b){a.id=a.id||"y-axis-"+b}),c&&(c.id=c.id||"scale")},buildScales:function(){var b=this,c=b.options,e=b.scales={},f=[];c.scales&&(f=f.concat((c.scales.xAxes||[]).map(function(a){return{options:a,dtype:"category"}}),(c.scales.yAxes||[]).map(function(a){return{options:a,dtype:"linear"}}))),c.scale&&f.push({options:c.scale,dtype:"radialLinear",isDefault:!0}),d.each(f,function(c){var f=c.options,g=d.getValueOrDefault(f.type,c.dtype),h=a.scaleService.getScaleConstructor(g);if(h){var i=new h({id:f.id,options:f,ctx:b.chart.ctx,chart:b});e[i.id]=i,c.isDefault&&(b.scale=i)}}),a.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var b=this,c=[],e=[];if(d.each(b.data.datasets,function(d,f){var g=b.getDatasetMeta(f);g.type||(g.type=d.type||b.config.type),c.push(g.type),g.controller?g.controller.updateIndex(f):(g.controller=new a.controllers[g.type](b,f),e.push(g.controller))},b),c.length>1)for(var f=1;f<c.length;f++)if(c[f]!==c[f-1]){b.isCombo=!0;break}return e},resetElements:function(){var a=this;d.each(a.data.datasets,function(b,c){a.getDatasetMeta(c).controller.reset()},a)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(a,b){var f=this;if(c(f),e.notify(f,"beforeUpdate")!==!1){f.tooltip._data=f.data;var g=f.buildOrUpdateControllers();d.each(f.data.datasets,function(a,b){f.getDatasetMeta(b).controller.buildOrUpdateElements()},f),f.updateLayout(),d.each(g,function(a){a.reset()}),f.updateDatasets(),e.notify(f,"afterUpdate"),f._bufferedRender?f._bufferedRequest={lazy:b,duration:a}:f.render(a,b)}},updateLayout:function(){var b=this;e.notify(b,"beforeLayout")!==!1&&(a.layoutService.update(this,this.chart.width,this.chart.height),e.notify(b,"afterScaleUpdate"),e.notify(b,"afterLayout"))},updateDatasets:function(){var a=this;if(e.notify(a,"beforeDatasetsUpdate")!==!1){for(var b=0,c=a.data.datasets.length;b<c;++b)a.getDatasetMeta(b).controller.update();e.notify(a,"afterDatasetsUpdate")}},render:function(b,c){var f=this;if(e.notify(f,"beforeRender")!==!1){var g=f.options.animation,h=function(){e.notify(f,"afterRender");var a=g&&g.onComplete;a&&a.call&&a.call(f)};if(g&&("undefined"!=typeof b&&0!==b||"undefined"==typeof b&&0!==g.duration)){var i=new a.Animation;i.numSteps=(b||g.duration)/16.66,i.easing=g.easing,i.render=function(a,b){var c=d.easingEffects[b.easing],e=b.currentStep/b.numSteps,f=c(e);a.draw(f,e,b.currentStep)},i.onAnimationProgress=g.onProgress,i.onAnimationComplete=h,a.animationService.addAnimation(f,i,b,c)}else f.draw(),h();return f}},draw:function(a){var b=this;b.clear(),void 0!==a&&null!==a||(a=1),e.notify(b,"beforeDraw",[a])!==!1&&(d.each(b.boxes,function(a){a.draw(b.chartArea)},b),b.scale&&b.scale.draw(),b.drawDatasets(a),b.tooltip.transition(a).draw(),e.notify(b,"afterDraw",[a]))},drawDatasets:function(a){var b=this;e.notify(b,"beforeDatasetsDraw",[a])!==!1&&(d.each(b.data.datasets,function(c,d){b.isDatasetVisible(d)&&b.getDatasetMeta(d).controller.draw(a)},b,!0),e.notify(b,"afterDatasetsDraw",[a]))},getElementAtEvent:function(b){return a.Interaction.modes.single(this,b)},getElementsAtEvent:function(b){return a.Interaction.modes.label(this,b,{intersect:!0})},getElementsAtXAxis:function(b){return a.Interaction.modes["x-axis"](this,b,{intersect:!0})},getElementsAtEventForMode:function(b,c,d){
  var e=a.Interaction.modes[c];return"function"==typeof e?e(this,b,d):[]},getDatasetAtEvent:function(b){return a.Interaction.modes.dataset(this,b,{intersect:!0})},getDatasetMeta:function(a){var b=this,c=b.data.datasets[a];c._meta||(c._meta={});var d=c._meta[b.id];return d||(d=c._meta[b.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),d},getVisibleDatasetCount:function(){for(var a=0,b=0,c=this.data.datasets.length;b<c;++b)this.isDatasetVisible(b)&&a++;return a},isDatasetVisible:function(a){var b=this.getDatasetMeta(a);return"boolean"==typeof b.hidden?!b.hidden:!this.data.datasets[a].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var b,c,g,h=this,i=h.chart.canvas;for(h.stop(),c=0,g=h.data.datasets.length;c<g;++c)b=h.getDatasetMeta(c),b.controller&&(b.controller.destroy(),b.controller=null);i&&(h.unbindEvents(),d.clear(h.chart),f.releaseContext(h.chart.ctx),h.chart.canvas=null,h.chart.ctx=null),e.notify(h,"destroy"),delete a.instances[h.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var b=this;b.tooltip=new a.Tooltip({_chart:b.chart,_chartInstance:b,_data:b.data,_options:b.options.tooltips},b),b.tooltip.initialize()},bindEvents:function(){var a=this,b=a._listeners={},c=function(){a.eventHandler.apply(a,arguments)};d.each(a.options.events,function(d){f.addEventListener(a,d,c),b[d]=c}),a.options.responsive&&(c=function(){a.resize()},f.addEventListener(a,"resize",c),b.resize=c)},unbindEvents:function(){var a=this,b=a._listeners;b&&(delete a._listeners,d.each(b,function(b,c){f.removeEventListener(a,c,b)}))},updateHoverStyle:function(a,b,c){var d,e,f,g=c?"setHoverStyle":"removeHoverStyle";for(e=0,f=a.length;e<f;++e)d=a[e],d&&this.getDatasetMeta(d._datasetIndex).controller[g](d)},eventHandler:function(a){var b=this,c=b.tooltip;if(e.notify(b,"beforeEvent",[a])!==!1){b._bufferedRender=!0,b._bufferedRequest=null;var d=b.handleEvent(a);d|=c&&c.handleEvent(a),e.notify(b,"afterEvent",[a]);var f=b._bufferedRequest;return f?b.render(f.duration,f.lazy):d&&!b.animating&&(b.stop(),b.render(b.options.hover.animationDuration,!0)),b._bufferedRender=!1,b._bufferedRequest=null,b}},handleEvent:function(a){var b=this,c=b.options||{},e=c.hover,f=!1;return b.lastActive=b.lastActive||[],"mouseout"===a.type?b.active=[]:b.active=b.getElementsAtEventForMode(a,e.mode,e),e.onHover&&e.onHover.call(b,a["native"],b.active),"mouseup"!==a.type&&"click"!==a.type||c.onClick&&c.onClick.call(b,a["native"],b.active),b.lastActive.length&&b.updateHoverStyle(b.lastActive,e.mode,!1),b.active.length&&e.mode&&b.updateHoverStyle(b.active,e.mode,!0),f=!d.arrayEquals(b.active,b.lastActive),b.lastActive=b.active,f}})}},{}],24:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b){return a._chartjs?void a._chartjs.listeners.push(b):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[b]}}),void e.forEach(function(b){var c="onData"+b.charAt(0).toUpperCase()+b.slice(1),e=a[b];Object.defineProperty(a,b,{configurable:!0,enumerable:!1,value:function(){var b=Array.prototype.slice.call(arguments),f=e.apply(this,b);return d.each(a._chartjs.listeners,function(a){"function"==typeof a[c]&&a[c].apply(a,b)}),f}})}))}function c(a,b){var c=a._chartjs;if(c){var d=c.listeners,f=d.indexOf(b);f!==-1&&d.splice(f,1),d.length>0||(e.forEach(function(b){delete a[b]}),delete a._chartjs)}}var d=a.helpers,e=["push","pop","shift","splice","unshift"];a.DatasetController=function(a,b){this.initialize(a,b)},d.extend(a.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(a,b){var c=this;c.chart=a,c.index=b,c.linkScales(),c.addElements()},updateIndex:function(a){this.index=a},linkScales:function(){var a=this,b=a.getMeta(),c=a.getDataset();null===b.xAxisID&&(b.xAxisID=c.xAxisID||a.chart.options.scales.xAxes[0].id),null===b.yAxisID&&(b.yAxisID=c.yAxisID||a.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(a){return this.chart.scales[a]},reset:function(){this.update(!0)},destroy:function(){this._data&&c(this._data,this)},createMetaDataset:function(){var a=this,b=a.datasetElementType;return b&&new b({_chart:a.chart.chart,_datasetIndex:a.index})},createMetaData:function(a){var b=this,c=b.dataElementType;return c&&new c({_chart:b.chart.chart,_datasetIndex:b.index,_index:a})},addElements:function(){var a,b,c=this,d=c.getMeta(),e=c.getDataset().data||[],f=d.data;for(a=0,b=e.length;a<b;++a)f[a]=f[a]||c.createMetaData(a);d.dataset=d.dataset||c.createMetaDataset()},addElementAndReset:function(a){var b=this.createMetaData(a);this.getMeta().data.splice(a,0,b),this.updateElement(b,a,!0)},buildOrUpdateElements:function(){var a=this,d=a.getDataset(),e=d.data||(d.data=[]);a._data!==e&&(a._data&&c(a._data,a),b(e,a),a._data=e),a.resyncElements()},update:d.noop,draw:function(a){var b,c,d=a||1,e=this.getMeta().data;for(b=0,c=e.length;b<c;++b)e[b].transition(d).draw()},removeHoverStyle:function(a,b){var c=this.chart.data.datasets[a._datasetIndex],e=a._index,f=a.custom||{},g=d.getValueAtIndexOrDefault,h=a._model;h.backgroundColor=f.backgroundColor?f.backgroundColor:g(c.backgroundColor,e,b.backgroundColor),h.borderColor=f.borderColor?f.borderColor:g(c.borderColor,e,b.borderColor),h.borderWidth=f.borderWidth?f.borderWidth:g(c.borderWidth,e,b.borderWidth)},setHoverStyle:function(a){var b=this.chart.data.datasets[a._datasetIndex],c=a._index,e=a.custom||{},f=d.getValueAtIndexOrDefault,g=d.getHoverColor,h=a._model;h.backgroundColor=e.hoverBackgroundColor?e.hoverBackgroundColor:f(b.hoverBackgroundColor,c,g(h.backgroundColor)),h.borderColor=e.hoverBorderColor?e.hoverBorderColor:f(b.hoverBorderColor,c,g(h.borderColor)),h.borderWidth=e.hoverBorderWidth?e.hoverBorderWidth:f(b.hoverBorderWidth,c,h.borderWidth)},resyncElements:function(){var a=this,b=a.getMeta(),c=a.getDataset().data,d=b.data.length,e=c.length;e<d?b.data.splice(e,d-e):e>d&&a.insertElements(d,e-d)},insertElements:function(a,b){for(var c=0;c<b;++c)this.addElementAndReset(a+c)},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(a,b){this.getMeta().data.splice(a,b),this.insertElements(a,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),a.DatasetController.extend=d.inherits}},{}],25:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.elements={},a.Element=function(a){b.extend(this,a),this.initialize.apply(this,arguments)},b.extend(a.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var a=this;return a._view||(a._view=b.clone(a._model)),a._start=b.clone(a._view),a},transition:function(a){var c=this;return c._view||(c._view=b.clone(c._model)),1===a?(c._view=c._model,c._start=null,c):(c._start||c.pivot(),b.each(c._model,function(d,e){if("_"===e[0]);else if(c._view.hasOwnProperty(e))if(d===c._view[e]);else if("string"==typeof d)try{var f=b.color(c._model[e]).mix(b.color(c._start[e]),a);c._view[e]=f.rgbString()}catch(g){c._view[e]=d}else if("number"==typeof d){var h=void 0!==c._start[e]&&isNaN(c._start[e])===!1?c._start[e]:0;c._view[e]=(c._model[e]-h)*a+h}else c._view[e]=d;else"number"!=typeof d||isNaN(c._view[e])?c._view[e]=d:c._view[e]=d*a},c),c)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return b.isNumber(this._model.x)&&b.isNumber(this._model.y)}}),a.Element.extend=b.inherits}},{}],26:[function(a,b,c){"use strict";var d=a(3);b.exports=function(a){function b(a,b,c){var d;return"string"==typeof a?(d=parseInt(a,10),a.indexOf("%")!==-1&&(d=d/100*b.parentNode[c])):d=a,d}function c(a){return void 0!==a&&null!==a&&"none"!==a}function e(a,d,e){var f=document.defaultView,g=a.parentNode,h=f.getComputedStyle(a)[d],i=f.getComputedStyle(g)[d],j=c(h),k=c(i),l=Number.POSITIVE_INFINITY;return j||k?Math.min(j?b(h,a,e):l,k?b(i,g,e):l):"none"}var f=a.helpers={};f.each=function(a,b,c,d){var e,g;if(f.isArray(a))if(g=a.length,d)for(e=g-1;e>=0;e--)b.call(c,a[e],e);else for(e=0;e<g;e++)b.call(c,a[e],e);else if("object"==typeof a){var h=Object.keys(a);for(g=h.length,e=0;e<g;e++)b.call(c,a[h[e]],h[e])}},f.clone=function(a){var b={};return f.each(a,function(a,c){f.isArray(a)?b[c]=a.slice(0):"object"==typeof a&&null!==a?b[c]=f.clone(a):b[c]=a}),b},f.extend=function(a){for(var b=function(b,c){a[c]=b},c=1,d=arguments.length;c<d;c++)f.each(arguments[c],b);return a},f.configMerge=function(b){var c=f.clone(b);return f.each(Array.prototype.slice.call(arguments,1),function(b){f.each(b,function(b,d){var e=c.hasOwnProperty(d),g=e?c[d]:{};"scales"===d?c[d]=f.scaleMerge(g,b):"scale"===d?c[d]=f.configMerge(g,a.scaleService.getScaleDefaults(b.type),b):!e||"object"!=typeof g||f.isArray(g)||null===g||"object"!=typeof b||f.isArray(b)?c[d]=b:c[d]=f.configMerge(g,b)})}),c},f.scaleMerge=function(b,c){var d=f.clone(b);return f.each(c,function(b,c){"xAxes"===c||"yAxes"===c?d.hasOwnProperty(c)?f.each(b,function(b,e){var g=f.getValueOrDefault(b.type,"xAxes"===c?"category":"linear"),h=a.scaleService.getScaleDefaults(g);e>=d[c].length||!d[c][e].type?d[c].push(f.configMerge(h,b)):b.type&&b.type!==d[c][e].type?d[c][e]=f.configMerge(d[c][e],h,b):d[c][e]=f.configMerge(d[c][e],b)}):(d[c]=[],f.each(b,function(b){var e=f.getValueOrDefault(b.type,"xAxes"===c?"category":"linear");d[c].push(f.configMerge(a.scaleService.getScaleDefaults(e),b))})):d.hasOwnProperty(c)&&"object"==typeof d[c]&&null!==d[c]&&"object"==typeof b?d[c]=f.configMerge(d[c],b):d[c]=b}),d},f.getValueAtIndexOrDefault=function(a,b,c){return void 0===a||null===a?c:f.isArray(a)?b<a.length?a[b]:c:a},f.getValueOrDefault=function(a,b){return void 0===a?b:a},f.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;c<d;++c)if(a[c]===b)return c;return-1},f.where=function(a,b){if(f.isArray(a)&&Array.prototype.filter)return a.filter(b);var c=[];return f.each(a,function(a){b(a)&&c.push(a)}),c},f.findIndex=Array.prototype.findIndex?function(a,b,c){return a.findIndex(b,c)}:function(a,b,c){c=void 0===c?a:c;for(var d=0,e=a.length;d<e;++d)if(b.call(c,a[d],d,a))return d;return-1},f.findNextWhere=function(a,b,c){void 0!==c&&null!==c||(c=-1);for(var d=c+1;d<a.length;d++){var e=a[d];if(b(e))return e}},f.findPreviousWhere=function(a,b,c){void 0!==c&&null!==c||(c=a.length);for(var d=c-1;d>=0;d--){var e=a[d];if(b(e))return e}},f.inherits=function(a){var b=this,c=a&&a.hasOwnProperty("constructor")?a.constructor:function(){return b.apply(this,arguments)},d=function(){this.constructor=c};return d.prototype=b.prototype,c.prototype=new d,c.extend=f.inherits,a&&f.extend(c.prototype,a),c.__super__=b.prototype,c},f.noop=function(){},f.uid=function(){var a=0;return function(){return a++}}(),f.isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},f.almostEquals=function(a,b,c){return Math.abs(a-b)<c},f.almostWhole=function(a,b){var c=Math.round(a);return c-b<a&&c+b>a},f.max=function(a){return a.reduce(function(a,b){return isNaN(b)?a:Math.max(a,b)},Number.NEGATIVE_INFINITY)},f.min=function(a){return a.reduce(function(a,b){return isNaN(b)?a:Math.min(a,b)},Number.POSITIVE_INFINITY)},f.sign=Math.sign?function(a){return Math.sign(a)}:function(a){return a=+a,0===a||isNaN(a)?a:a>0?1:-1},f.log10=Math.log10?function(a){return Math.log10(a)}:function(a){return Math.log(a)/Math.LN10},f.toRadians=function(a){return a*(Math.PI/180)},f.toDegrees=function(a){return a*(180/Math.PI)},f.getAngleFromPoint=function(a,b){var c=b.x-a.x,d=b.y-a.y,e=Math.sqrt(c*c+d*d),f=Math.atan2(d,c);return f<-.5*Math.PI&&(f+=2*Math.PI),{angle:f,distance:e}},f.distanceBetweenPoints=function(a,b){return Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2))},f.aliasPixel=function(a){return a%2===0?0:.5},f.splineCurve=function(a,b,c,d){var e=a.skip?b:a,f=b,g=c.skip?b:c,h=Math.sqrt(Math.pow(f.x-e.x,2)+Math.pow(f.y-e.y,2)),i=Math.sqrt(Math.pow(g.x-f.x,2)+Math.pow(g.y-f.y,2)),j=h/(h+i),k=i/(h+i);j=isNaN(j)?0:j,k=isNaN(k)?0:k;var l=d*j,m=d*k;return{previous:{x:f.x-l*(g.x-e.x),y:f.y-l*(g.y-e.y)},next:{x:f.x+m*(g.x-e.x),y:f.y+m*(g.y-e.y)}}},f.EPSILON=Number.EPSILON||1e-14,f.splineCurveMonotone=function(a){var b,c,d,e,g=(a||[]).map(function(a){return{model:a._model,deltaK:0,mK:0}}),h=g.length;for(b=0;b<h;++b)if(d=g[b],!d.model.skip){if(c=b>0?g[b-1]:null,e=b<h-1?g[b+1]:null,e&&!e.model.skip){var i=e.model.x-d.model.x;d.deltaK=0!==i?(e.model.y-d.model.y)/i:0}!c||c.model.skip?d.mK=d.deltaK:!e||e.model.skip?d.mK=c.deltaK:this.sign(c.deltaK)!==this.sign(d.deltaK)?d.mK=0:d.mK=(c.deltaK+d.deltaK)/2}var j,k,l,m;for(b=0;b<h-1;++b)d=g[b],e=g[b+1],d.model.skip||e.model.skip||(f.almostEquals(d.deltaK,0,this.EPSILON)?d.mK=e.mK=0:(j=d.mK/d.deltaK,k=e.mK/d.deltaK,m=Math.pow(j,2)+Math.pow(k,2),m<=9||(l=3/Math.sqrt(m),d.mK=j*l*d.deltaK,e.mK=k*l*d.deltaK)));var n;for(b=0;b<h;++b)d=g[b],d.model.skip||(c=b>0?g[b-1]:null,e=b<h-1?g[b+1]:null,c&&!c.model.skip&&(n=(d.model.x-c.model.x)/3,d.model.controlPointPreviousX=d.model.x-n,d.model.controlPointPreviousY=d.model.y-n*d.mK),e&&!e.model.skip&&(n=(e.model.x-d.model.x)/3,d.model.controlPointNextX=d.model.x+n,d.model.controlPointNextY=d.model.y+n*d.mK))},f.nextItem=function(a,b,c){return c?b>=a.length-1?a[0]:a[b+1]:b>=a.length-1?a[a.length-1]:a[b+1]},f.previousItem=function(a,b,c){return c?b<=0?a[a.length-1]:a[b-1]:b<=0?a[0]:a[b-1]},f.niceNum=function(a,b){var c,d=Math.floor(f.log10(a)),e=a/Math.pow(10,d);return c=b?e<1.5?1:e<3?2:e<7?5:10:e<=1?1:e<=2?2:e<=5?5:10,c*Math.pow(10,d)};var g=f.easingEffects={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return(a/=.5)<1?.5*a*a:-.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return(a/=.5)<1?.5*a*a*a:.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1*((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return(a/=.5)<1?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return(a/=.5)<1?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return-1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0===a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1===a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0===a?0:1===a?1:(a/=.5)<1?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return a>=1?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var b=1.70158,c=0,d=1;return 0===a?0:1===(a/=1)?1:(c||(c=.3),d<Math.abs(1)?(d=1,b=c/4):b=c/(2*Math.PI)*Math.asin(1/d),-(d*Math.pow(2,10*(a-=1))*Math.sin((1*a-b)*(2*Math.PI)/c)))},easeOutElastic:function(a){var b=1.70158,c=0,d=1;return 0===a?0:1===(a/=1)?1:(c||(c=.3),d<Math.abs(1)?(d=1,b=c/4):b=c/(2*Math.PI)*Math.asin(1/d),d*Math.pow(2,-10*a)*Math.sin((1*a-b)*(2*Math.PI)/c)+1)},easeInOutElastic:function(a){var b=1.70158,c=0,d=1;return 0===a?0:2===(a/=.5)?1:(c||(c=1*(.3*1.5)),d<Math.abs(1)?(d=1,b=c/4):b=c/(2*Math.PI)*Math.asin(1/d),a<1?-.5*(d*Math.pow(2,10*(a-=1))*Math.sin((1*a-b)*(2*Math.PI)/c)):d*Math.pow(2,-10*(a-=1))*Math.sin((1*a-b)*(2*Math.PI)/c)*.5+1)},easeInBack:function(a){var b=1.70158;return 1*(a/=1)*a*((b+1)*a-b)},easeOutBack:function(a){var b=1.70158;return 1*((a=a/1-1)*a*((b+1)*a+b)+1)},easeInOutBack:function(a){var b=1.70158;return(a/=.5)<1?.5*(a*a*(((b*=1.525)+1)*a-b)):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},easeInBounce:function(a){return 1-g.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?1*(7.5625*a*a):a<2/2.75?1*(7.5625*(a-=1.5/2.75)*a+.75):a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+.9375):1*(7.5625*(a-=2.625/2.75)*a+.984375)},easeInOutBounce:function(a){return a<.5?.5*g.easeInBounce(2*a):.5*g.easeOutBounce(2*a-1)+.5}};f.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1e3/60)}}(),f.getRelativePosition=function(a,b){var c,d,e=a.originalEvent||a,g=a.currentTarget||a.srcElement,h=g.getBoundingClientRect(),i=e.touches;i&&i.length>0?(c=i[0].clientX,d=i[0].clientY):(c=e.clientX,d=e.clientY);var j=parseFloat(f.getStyle(g,"padding-left")),k=parseFloat(f.getStyle(g,"padding-top")),l=parseFloat(f.getStyle(g,"padding-right")),m=parseFloat(f.getStyle(g,"padding-bottom")),n=h.right-h.left-j-l,o=h.bottom-h.top-k-m;return c=Math.round((c-h.left-j)/n*g.width/b.currentDevicePixelRatio),d=Math.round((d-h.top-k)/o*g.height/b.currentDevicePixelRatio),{x:c,y:d}},f.addEvent=function(a,b,c){a.addEventListener?a.addEventListener(b,c):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c},f.removeEvent=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent?a.detachEvent("on"+b,c):a["on"+b]=f.noop},f.getConstraintWidth=function(a){return e(a,"max-width","clientWidth")},f.getConstraintHeight=function(a){return e(a,"max-height","clientHeight")},f.getMaximumWidth=function(a){var b=a.parentNode,c=parseInt(f.getStyle(b,"padding-left"),10),d=parseInt(f.getStyle(b,"padding-right"),10),e=b.clientWidth-c-d,g=f.getConstraintWidth(a);return isNaN(g)?e:Math.min(e,g)},f.getMaximumHeight=function(a){var b=a.parentNode,c=parseInt(f.getStyle(b,"padding-top"),10),d=parseInt(f.getStyle(b,"padding-bottom"),10),e=b.clientHeight-c-d,g=f.getConstraintHeight(a);return isNaN(g)?e:Math.min(e,g)},f.getStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:document.defaultView.getComputedStyle(a,null).getPropertyValue(b)},f.retinaScale=function(a){var b=a.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==b){var c=a.canvas,d=a.height,e=a.width;c.height=d*b,c.width=e*b,a.ctx.scale(b,b),c.style.height=d+"px",c.style.width=e+"px"}},f.clear=function(a){a.ctx.clearRect(0,0,a.width,a.height)},f.fontString=function(a,b,c){return b+" "+a+"px "+c},f.longestText=function(a,b,c,d){d=d||{};var e=d.data=d.data||{},g=d.garbageCollect=d.garbageCollect||[];d.font!==b&&(e=d.data={},g=d.garbageCollect=[],d.font=b),a.font=b;var h=0;f.each(c,function(b){void 0!==b&&null!==b&&f.isArray(b)!==!0?h=f.measureText(a,e,g,h,b):f.isArray(b)&&f.each(b,function(b){void 0===b||null===b||f.isArray(b)||(h=f.measureText(a,e,g,h,b))})});var i=g.length/2;if(i>c.length){for(var j=0;j<i;j++)delete e[g[j]];g.splice(0,i)}return h},f.measureText=function(a,b,c,d,e){var f=b[e];return f||(f=b[e]=a.measureText(e).width,c.push(e)),f>d&&(d=f),d},f.numberOfLabelLines=function(a){var b=1;return f.each(a,function(a){f.isArray(a)&&a.length>b&&(b=a.length)}),b},f.drawRoundedRectangle=function(a,b,c,d,e,f){a.beginPath(),a.moveTo(b+f,c),a.lineTo(b+d-f,c),a.quadraticCurveTo(b+d,c,b+d,c+f),a.lineTo(b+d,c+e-f),a.quadraticCurveTo(b+d,c+e,b+d-f,c+e),a.lineTo(b+f,c+e),a.quadraticCurveTo(b,c+e,b,c+e-f),a.lineTo(b,c+f),a.quadraticCurveTo(b,c,b+f,c),a.closePath()},f.color=function(b){return d?d(b instanceof CanvasGradient?a.defaults.global.defaultColor:b):(console.error("Color.js not found!"),b)},f.isArray=Array.isArray?function(a){return Array.isArray(a)}:function(a){return"[object Array]"===Object.prototype.toString.call(a)},f.arrayEquals=function(a,b){var c,d,e,g;if(!a||!b||a.length!==b.length)return!1;for(c=0,d=a.length;c<d;++c)if(e=a[c],g=b[c],e instanceof Array&&g instanceof Array){if(!f.arrayEquals(e,g))return!1}else if(e!==g)return!1;return!0},f.callCallback=function(a,b,c){a&&"function"==typeof a.call&&a.apply(c,b)},f.getHoverColor=function(a){return a instanceof CanvasPattern?a:f.color(a).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b){return a["native"]?{x:a.x,y:a.y}:g.getRelativePosition(a,b)}function c(a,b){var c,d,e,f,g,h=a.data.datasets;for(d=0,f=h.length;d<f;++d)if(a.isDatasetVisible(d))for(c=a.getDatasetMeta(d),e=0,g=c.data.length;e<g;++e){var i=c.data[e];i._view.skip||b(i)}}function d(a,b){var d=[];return c(a,function(a){a.inRange(b.x,b.y)&&d.push(a)}),d}function e(a,b,d,e){var f=Number.POSITIVE_INFINITY,h=[];return e||(e=g.distanceBetweenPoints),c(a,function(a){if(!d||a.inRange(b.x,b.y)){var c=a.getCenterPoint(),g=e(b,c);g<f?(h=[a],f=g):g===f&&h.push(a)}}),h}function f(a,c,f){var g=b(c,a.chart),h=function(a,b){return Math.abs(a.x-b.x)},i=f.intersect?d(a,g):e(a,g,!1,h),j=[];return i.length?(a.data.datasets.forEach(function(b,c){if(a.isDatasetVisible(c)){var d=a.getDatasetMeta(c),e=d.data[i[0]._index];e&&!e._view.skip&&j.push(e)}}),j):[]}var g=a.helpers;a.Interaction={modes:{single:function(a,d){var e=b(d,a.chart),f=[];return c(a,function(a){if(a.inRange(e.x,e.y))return f.push(a),f}),f.slice(0,1)},label:f,index:f,dataset:function(a,c,f){var g=b(c,a.chart),h=f.intersect?d(a,g):e(a,g,!1);return h.length>0&&(h=a.getDatasetMeta(h[0]._datasetIndex).data),h},"x-axis":function(a,b){return f(a,b,!0)},point:function(a,c){var e=b(c,a.chart);return d(a,e)},nearest:function(a,c,d){var f=b(c,a.chart),g=e(a,f,d.intersect);return g.length>1&&g.sort(function(a,b){var c=a.getArea(),d=b.getArea(),e=c-d;return 0===e&&(e=a._datasetIndex-b._datasetIndex),e}),g.slice(0,1)},x:function(a,d,e){var f=b(d,a.chart),g=[],h=!1;return c(a,function(a){a.inXRange(f.x)&&g.push(a),a.inRange(f.x,f.y)&&(h=!0)}),e.intersect&&!h&&(g=[]),g},y:function(a,d,e){var f=b(d,a.chart),g=[],h=!1;return c(a,function(a){a.inYRange(f.y)&&g.push(a),a.inRange(f.x,f.y)&&(h=!0)}),e.intersect&&!h&&(g=[]),g}}}}},{}],28:[function(a,b,c){"use strict";b.exports=function(){var a=function(b,c){return this.controller=new a.Controller(b,c,this),this.controller};return a.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(a){var b=[];b.push('<ul class="'+a.id+'-legend">');for(var c=0;c<a.data.datasets.length;c++)b.push('<li><span style="background-color:'+a.data.datasets[c].backgroundColor+'"></span>'),a.data.datasets[c].label&&b.push(a.data.datasets[c].label),b.push("</li>");return b.push("</ul>"),b.join("")}}},a.Chart=a,a}},{}],29:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.layoutService={defaults:{},addBox:function(a,b){a.boxes||(a.boxes=[]),a.boxes.push(b)},removeBox:function(a,b){a.boxes&&a.boxes.splice(a.boxes.indexOf(b),1)},update:function(a,c,d){function e(a){var b,c=a.isHorizontal();c?(b=a.update(a.options.fullWidth?t:z,y),A-=b.height):(b=a.update(x,w),z-=b.width),B.push({horizontal:c,minSize:b,box:a})}function f(a){var c=b.findNextWhere(B,function(b){return b.box===a});if(c)if(a.isHorizontal()){var d={left:Math.max(G,C),right:Math.max(H,D),top:0,bottom:0};a.update(a.options.fullWidth?t:z,u/2,d)}else a.update(c.minSize.width,A)}function g(a){var c=b.findNextWhere(B,function(b){return b.box===a}),d={left:0,right:0,top:I,bottom:J};c&&a.update(c.minSize.width,A,d)}function h(a){a.isHorizontal()?(a.left=a.options.fullWidth?k:G,a.right=a.options.fullWidth?c-l:G+z,a.top=P,a.bottom=P+a.height,P=a.bottom):(a.left=O,a.right=O+a.width,a.top=I,a.bottom=I+A,O=a.right)}if(a){var i=a.options.layout,j=i?i.padding:null,k=0,l=0,m=0,n=0;isNaN(j)?(k=j.left||0,l=j.right||0,m=j.top||0,n=j.bottom||0):(k=j,l=j,m=j,n=j);var o=b.where(a.boxes,function(a){return"left"===a.options.position}),p=b.where(a.boxes,function(a){return"right"===a.options.position}),q=b.where(a.boxes,function(a){return"top"===a.options.position}),r=b.where(a.boxes,function(a){return"bottom"===a.options.position}),s=b.where(a.boxes,function(a){return"chartArea"===a.options.position});q.sort(function(a,b){return(b.options.fullWidth?1:0)-(a.options.fullWidth?1:0)}),r.sort(function(a,b){return(a.options.fullWidth?1:0)-(b.options.fullWidth?1:0)});var t=c-k-l,u=d-m-n,v=t/2,w=u/2,x=(c-v)/(o.length+p.length),y=(d-w)/(q.length+r.length),z=t,A=u,B=[];b.each(o.concat(p,q,r),e);var C=0,D=0,E=0,F=0;b.each(q.concat(r),function(a){if(a.getPadding){var b=a.getPadding();C=Math.max(C,b.left),D=Math.max(D,b.right)}}),b.each(o.concat(p),function(a){if(a.getPadding){var b=a.getPadding();E=Math.max(E,b.top),F=Math.max(F,b.bottom)}});var G=k,H=l,I=m,J=n;b.each(o.concat(p),f),b.each(o,function(a){G+=a.width}),b.each(p,function(a){H+=a.width}),b.each(q.concat(r),f),b.each(q,function(a){I+=a.height}),b.each(r,function(a){J+=a.height}),b.each(o.concat(p),g),G=k,H=l,I=m,J=n,b.each(o,function(a){G+=a.width}),b.each(p,function(a){H+=a.width}),b.each(q,function(a){I+=a.height}),b.each(r,function(a){J+=a.height});var K=Math.max(C-G,0);G+=K,H+=Math.max(D-H,0);var L=Math.max(E-I,0);I+=L,J+=Math.max(F-J,0);var M=d-I-J,N=c-G-H;N===z&&M===A||(b.each(o,function(a){a.height=M}),b.each(p,function(a){a.height=M}),b.each(q,function(a){a.options.fullWidth||(a.width=N)}),b.each(r,function(a){a.options.fullWidth||(a.width=N)}),A=M,z=N);var O=k+K,P=m+L;b.each(o.concat(q),h),O+=z,P+=A,b.each(p,h),b.each(r,h),a.chartArea={left:G,top:I,right:G+z,bottom:I+A},b.each(s,function(b){b.left=a.chartArea.left,b.top=a.chartArea.top,b.right=a.chartArea.right,b.bottom=a.chartArea.bottom,b.update(z,A)})}}}}},{}],30:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b){return a.usePointStyle?b*Math.SQRT2:a.boxWidth}function c(b,c){var d=new a.Legend({ctx:b.chart.ctx,options:c,chart:b});b.legend=d,a.layoutService.addBox(b,d)}var d=a.helpers,e=d.noop;a.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(a,b){var c=b.datasetIndex,d=this.chart,e=d.getDatasetMeta(c);e.hidden=null===e.hidden?!d.data.datasets[c].hidden:null,d.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(a){var b=a.data;return d.isArray(b.datasets)?b.datasets.map(function(b,c){return{text:b.label,fillStyle:d.isArray(b.backgroundColor)?b.backgroundColor[0]:b.backgroundColor,hidden:!a.isDatasetVisible(c),lineCap:b.borderCapStyle,lineDash:b.borderDash,lineDashOffset:b.borderDashOffset,lineJoin:b.borderJoinStyle,lineWidth:b.borderWidth,strokeStyle:b.borderColor,pointStyle:b.pointStyle,datasetIndex:c}},this):[]}}},a.Legend=a.Element.extend({initialize:function(a){d.extend(this,a),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:e,update:function(a,b,c){var d=this;return d.beforeUpdate(),d.maxWidth=a,d.maxHeight=b,d.margins=c,d.beforeSetDimensions(),d.setDimensions(),d.afterSetDimensions(),d.beforeBuildLabels(),d.buildLabels(),d.afterBuildLabels(),d.beforeFit(),d.fit(),d.afterFit(),d.afterUpdate(),d.minSize},afterUpdate:e,beforeSetDimensions:e,setDimensions:function(){var a=this;a.isHorizontal()?(a.width=a.maxWidth,a.left=0,a.right=a.width):(a.height=a.maxHeight,a.top=0,a.bottom=a.height),a.paddingLeft=0,a.paddingTop=0,a.paddingRight=0,a.paddingBottom=0,a.minSize={width:0,height:0}},afterSetDimensions:e,beforeBuildLabels:e,buildLabels:function(){var a=this,b=a.options.labels,c=b.generateLabels.call(a,a.chart);b.filter&&(c=c.filter(function(c){return b.filter(c,a.chart.data)})),a.options.reverse&&c.reverse(),a.legendItems=c},afterBuildLabels:e,beforeFit:e,fit:function(){var c=this,e=c.options,f=e.labels,g=e.display,h=c.ctx,i=a.defaults.global,j=d.getValueOrDefault,k=j(f.fontSize,i.defaultFontSize),l=j(f.fontStyle,i.defaultFontStyle),m=j(f.fontFamily,i.defaultFontFamily),n=d.fontString(k,l,m),o=c.legendHitBoxes=[],p=c.minSize,q=c.isHorizontal();if(q?(p.width=c.maxWidth,p.height=g?10:0):(p.width=g?10:0,p.height=c.maxHeight),g)if(h.font=n,q){var r=c.lineWidths=[0],s=c.legendItems.length?k+f.padding:0;h.textAlign="left",h.textBaseline="top",d.each(c.legendItems,function(a,d){var e=b(f,k),g=e+k/2+h.measureText(a.text).width;r[r.length-1]+g+f.padding>=c.width&&(s+=k+f.padding,r[r.length]=c.left),o[d]={left:0,top:0,width:g,height:k},r[r.length-1]+=g+f.padding}),p.height+=s}else{var t=f.padding,u=c.columnWidths=[],v=f.padding,w=0,x=0,y=k+t;d.each(c.legendItems,function(a,c){var d=b(f,k),e=d+k/2+h.measureText(a.text).width;x+y>p.height&&(v+=w+f.padding,u.push(w),w=0,x=0),w=Math.max(w,e),x+=y,o[c]={left:0,top:0,width:e,height:k}}),v+=w,u.push(w),p.width+=v}c.width=p.width,c.height=p.height},afterFit:e,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c=this,e=c.options,f=e.labels,g=a.defaults.global,h=g.elements.line,i=c.width,j=c.lineWidths;if(e.display){var k,l=c.ctx,m=d.getValueOrDefault,n=m(f.fontColor,g.defaultFontColor),o=m(f.fontSize,g.defaultFontSize),p=m(f.fontStyle,g.defaultFontStyle),q=m(f.fontFamily,g.defaultFontFamily),r=d.fontString(o,p,q);l.textAlign="left",l.textBaseline="top",l.lineWidth=.5,l.strokeStyle=n,l.fillStyle=n,l.font=r;var s=b(f,o),t=c.legendHitBoxes,u=function(b,c,d){if(!(isNaN(s)||s<=0)){l.save(),l.fillStyle=m(d.fillStyle,g.defaultColor),l.lineCap=m(d.lineCap,h.borderCapStyle),l.lineDashOffset=m(d.lineDashOffset,h.borderDashOffset),l.lineJoin=m(d.lineJoin,h.borderJoinStyle),l.lineWidth=m(d.lineWidth,h.borderWidth),l.strokeStyle=m(d.strokeStyle,g.defaultColor);var f=0===m(d.lineWidth,h.borderWidth);if(l.setLineDash&&l.setLineDash(m(d.lineDash,h.borderDash)),e.labels&&e.labels.usePointStyle){var i=o*Math.SQRT2/2,j=i/Math.SQRT2,k=b+j,n=c+j;a.canvasHelpers.drawPoint(l,d.pointStyle,i,k,n)}else f||l.strokeRect(b,c,s,o),l.fillRect(b,c,s,o);l.restore()}},v=function(a,b,c,d){l.fillText(c.text,s+o/2+a,b),c.hidden&&(l.beginPath(),l.lineWidth=2,l.moveTo(s+o/2+a,b+o/2),l.lineTo(s+o/2+a+d,b+o/2),l.stroke())},w=c.isHorizontal();k=w?{x:c.left+(i-j[0])/2,y:c.top+f.padding,line:0}:{x:c.left+f.padding,y:c.top+f.padding,line:0};var x=o+f.padding;d.each(c.legendItems,function(a,b){var d=l.measureText(a.text).width,e=s+o/2+d,g=k.x,h=k.y;w?g+e>=i&&(h=k.y+=x,k.line++,g=k.x=c.left+(i-j[k.line])/2):h+x>c.bottom&&(g=k.x=g+c.columnWidths[k.line]+f.padding,h=k.y=c.top+f.padding,k.line++),u(g,h,a),t[b].left=g,t[b].top=h,v(g,h,a,d),w?k.x+=e+f.padding:k.y+=x})}},handleEvent:function(a){var b=this,c=b.options,d="mouseup"===a.type?"click":a.type,e=!1;if("mousemove"===d){if(!c.onHover)return}else{if("click"!==d)return;if(!c.onClick)return}var f=a.x,g=a.y;if(f>=b.left&&f<=b.right&&g>=b.top&&g<=b.bottom)for(var h=b.legendHitBoxes,i=0;i<h.length;++i){var j=h[i];if(f>=j.left&&f<=j.left+j.width&&g>=j.top&&g<=j.top+j.height){if("click"===d){c.onClick.call(b,a["native"],b.legendItems[i]),e=!0;break}if("mousemove"===d){c.onHover.call(b,a["native"],b.legendItems[i]),e=!0;break}}}return e}}),a.plugins.register({beforeInit:function(a){var b=a.options.legend;b&&c(a,b)},beforeUpdate:function(b){var e=b.options.legend;e?(e=d.configMerge(a.defaults.global.legend,e),b.legend?b.legend.options=e:c(b,e)):(a.layoutService.removeBox(b,b.legend),delete b.legend)},afterEvent:function(a,b){var c=a.legend;c&&c.handleEvent(b)}})}},{}],31:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.defaults.global.plugins={},a.plugins={_plugins:[],_cacheId:0,register:function(a){var b=this._plugins;[].concat(a).forEach(function(a){b.indexOf(a)===-1&&b.push(a)}),this._cacheId++},unregister:function(a){var b=this._plugins;[].concat(a).forEach(function(a){var c=b.indexOf(a);c!==-1&&b.splice(c,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length;
  },getAll:function(){return this._plugins},notify:function(a,b,c){var d,e,f,g,h,i=this.descriptors(a),j=i.length;for(d=0;d<j;++d)if(e=i[d],f=e.plugin,h=f[b],"function"==typeof h&&(g=[a].concat(c||[]),g.push(e.options),h.apply(f,g)===!1))return!1;return!0},descriptors:function(c){var d=c._plugins||(c._plugins={});if(d.id===this._cacheId)return d.descriptors;var e=[],f=[],g=c&&c.config||{},h=a.defaults.global.plugins,i=g.options&&g.options.plugins||{};return this._plugins.concat(g.plugins||[]).forEach(function(a){var c=e.indexOf(a);if(c===-1){var d=a.id,g=i[d];g!==!1&&(g===!0&&(g=b.clone(h[d])),e.push(a),f.push({plugin:a,options:g||{}}))}}),d.descriptors=f,d.id=this._cacheId,f}},a.pluginService=a.plugins,a.PluginBase=b.inherits({})}},{}],32:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b,c){return d.isArray(b)?d.longestText(a,c,b):a.measureText(b).width}function c(b){var c=d.getValueOrDefault,e=a.defaults.global,f=c(b.fontSize,e.defaultFontSize),g=c(b.fontStyle,e.defaultFontStyle),h=c(b.fontFamily,e.defaultFontFamily);return{size:f,style:g,family:h,font:d.fontString(f,g,h)}}var d=a.helpers;a.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:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:a.Ticks.formatters.values}},a.Scale=a.Element.extend({getPadding:function(){var a=this;return{left:a.paddingLeft||0,top:a.paddingTop||0,right:a.paddingRight||0,bottom:a.paddingBottom||0}},beforeUpdate:function(){d.callCallback(this.options.beforeUpdate,[this])},update:function(a,b,c){var e=this;return e.beforeUpdate(),e.maxWidth=a,e.maxHeight=b,e.margins=d.extend({left:0,right:0,top:0,bottom:0},c),e.longestTextCache=e.longestTextCache||{},e.beforeSetDimensions(),e.setDimensions(),e.afterSetDimensions(),e.beforeDataLimits(),e.determineDataLimits(),e.afterDataLimits(),e.beforeBuildTicks(),e.buildTicks(),e.afterBuildTicks(),e.beforeTickToLabelConversion(),e.convertTicksToLabels(),e.afterTickToLabelConversion(),e.beforeCalculateTickRotation(),e.calculateTickRotation(),e.afterCalculateTickRotation(),e.beforeFit(),e.fit(),e.afterFit(),e.afterUpdate(),e.minSize},afterUpdate:function(){d.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){d.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var a=this;a.isHorizontal()?(a.width=a.maxWidth,a.left=0,a.right=a.width):(a.height=a.maxHeight,a.top=0,a.bottom=a.height),a.paddingLeft=0,a.paddingTop=0,a.paddingRight=0,a.paddingBottom=0},afterSetDimensions:function(){d.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){d.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:d.noop,afterDataLimits:function(){d.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){d.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:d.noop,afterBuildTicks:function(){d.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){d.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var a=this,b=a.options.ticks;a.ticks=a.ticks.map(b.userCallback||b.callback)},afterTickToLabelConversion:function(){d.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){d.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var a=this,b=a.ctx,e=a.options.ticks,f=c(e);b.font=f.font;var g=e.minRotation||0;if(a.options.display&&a.isHorizontal())for(var h,i,j=d.longestText(b,f.font,a.ticks,a.longestTextCache),k=j,l=a.getPixelForTick(1)-a.getPixelForTick(0)-6;k>l&&g<e.maxRotation;){var m=d.toRadians(g);if(h=Math.cos(m),i=Math.sin(m),i*j>a.maxHeight){g--;break}g++,k=h*j}a.labelRotation=g},afterCalculateTickRotation:function(){d.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){d.callCallback(this.options.beforeFit,[this])},fit:function(){var a=this,e=a.minSize={width:0,height:0},f=a.options,g=f.ticks,h=f.scaleLabel,i=f.gridLines,j=f.display,k=a.isHorizontal(),l=c(g),m=1.5*c(h).size,n=f.gridLines.tickMarkLength;if(k?e.width=a.isFullWidth()?a.maxWidth-a.margins.left-a.margins.right:a.maxWidth:e.width=j&&i.drawTicks?n:0,k?e.height=j&&i.drawTicks?n:0:e.height=a.maxHeight,h.display&&j&&(k?e.height+=m:e.width+=m),g.display&&j){var o=d.longestText(a.ctx,l.font,a.ticks,a.longestTextCache),p=d.numberOfLabelLines(a.ticks),q=.5*l.size;if(k){a.longestLabelWidth=o;var r=d.toRadians(a.labelRotation),s=Math.cos(r),t=Math.sin(r),u=t*o+l.size*p+q*p;e.height=Math.min(a.maxHeight,e.height+u),a.ctx.font=l.font;var v=a.ticks[0],w=b(a.ctx,v,l.font),x=a.ticks[a.ticks.length-1],y=b(a.ctx,x,l.font);0!==a.labelRotation?(a.paddingLeft="bottom"===f.position?s*w+3:s*q+3,a.paddingRight="bottom"===f.position?s*q+3:s*y+3):(a.paddingLeft=w/2+3,a.paddingRight=y/2+3)}else g.mirror?o=0:o+=a.options.ticks.padding,e.width+=o,a.paddingTop=l.size/2,a.paddingBottom=l.size/2}a.handleMargins(),a.width=e.width,a.height=e.height},handleMargins:function(){var a=this;a.margins&&(a.paddingLeft=Math.max(a.paddingLeft-a.margins.left,0),a.paddingTop=Math.max(a.paddingTop-a.margins.top,0),a.paddingRight=Math.max(a.paddingRight-a.margins.right,0),a.paddingBottom=Math.max(a.paddingBottom-a.margins.bottom,0))},afterFit:function(){d.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(a){return null===a||"undefined"==typeof a?NaN:"number"!=typeof a||isFinite(a)?"object"==typeof a?a instanceof Date||a.isValid?a:this.getRightValue(this.isHorizontal()?a.x:a.y):a:NaN},getLabelForIndex:d.noop,getPixelForValue:d.noop,getValueForPixel:d.noop,getPixelForTick:function(a,b){var c=this;if(c.isHorizontal()){var d=c.width-(c.paddingLeft+c.paddingRight),e=d/Math.max(c.ticks.length-(c.options.gridLines.offsetGridLines?0:1),1),f=e*a+c.paddingLeft;b&&(f+=e/2);var g=c.left+Math.round(f);return g+=c.isFullWidth()?c.margins.left:0}var h=c.height-(c.paddingTop+c.paddingBottom);return c.top+a*(h/(c.ticks.length-1))},getPixelForDecimal:function(a){var b=this;if(b.isHorizontal()){var c=b.width-(b.paddingLeft+b.paddingRight),d=c*a+b.paddingLeft,e=b.left+Math.round(d);return e+=b.isFullWidth()?b.margins.left:0}return b.top+a*b.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var a=this,b=a.min,c=a.max;return a.beginAtZero?0:b<0&&c<0?c:b>0&&c>0?b:0},draw:function(b){var e=this,f=e.options;if(f.display){var g,h,i=e.ctx,j=a.defaults.global,k=f.ticks,l=f.gridLines,m=f.scaleLabel,n=0!==e.labelRotation,o=k.autoSkip,p=e.isHorizontal();k.maxTicksLimit&&(h=k.maxTicksLimit);var q=d.getValueOrDefault(k.fontColor,j.defaultFontColor),r=c(k),s=l.drawTicks?l.tickMarkLength:0,t=d.getValueOrDefault(l.borderDash,j.borderDash),u=d.getValueOrDefault(l.borderDashOffset,j.borderDashOffset),v=d.getValueOrDefault(m.fontColor,j.defaultFontColor),w=c(m),x=d.toRadians(e.labelRotation),y=Math.cos(x),z=e.longestLabelWidth*y;i.fillStyle=q;var A=[];if(p){if(g=!1,n&&(z/=2),(z+k.autoSkipPadding)*e.ticks.length>e.width-(e.paddingLeft+e.paddingRight)&&(g=1+Math.floor((z+k.autoSkipPadding)*e.ticks.length/(e.width-(e.paddingLeft+e.paddingRight)))),h&&e.ticks.length>h)for(;!g||e.ticks.length/(g||1)>h;)g||(g=1),g+=1;o||(g=!1)}var B="right"===f.position?e.left:e.right-s,C="right"===f.position?e.left+s:e.right,D="bottom"===f.position?e.top:e.bottom-s,E="bottom"===f.position?e.top+s:e.bottom;if(d.each(e.ticks,function(a,c){if(void 0!==a&&null!==a){var h=e.ticks.length===c+1,i=g>1&&c%g>0||c%g===0&&c+g>=e.ticks.length;if((!i||h)&&void 0!==a&&null!==a){var j,m;c===("undefined"!=typeof e.zeroLineIndex?e.zeroLineIndex:0)?(j=l.zeroLineWidth,m=l.zeroLineColor):(j=d.getValueAtIndexOrDefault(l.lineWidth,c),m=d.getValueAtIndexOrDefault(l.color,c));var o,q,r,v,w,y,z,F,G,H,I="middle",J="middle";if(p){"bottom"===f.position?(J=n?"middle":"top",I=n?"right":"center",H=e.top+s):(J=n?"middle":"bottom",I=n?"left":"center",H=e.bottom-s);var K=e.getPixelForTick(c)+d.aliasPixel(j);G=e.getPixelForTick(c,l.offsetGridLines)+k.labelOffset,o=r=w=z=K,q=D,v=E,y=b.top,F=b.bottom}else{var L,M="left"===f.position,N=k.padding;k.mirror?(I=M?"left":"right",L=N):(I=M?"right":"left",L=s+N),G=M?e.right-L:e.left+L;var O=e.getPixelForTick(c);O+=d.aliasPixel(j),H=e.getPixelForTick(c,l.offsetGridLines),o=B,r=C,w=b.left,z=b.right,q=v=y=F=O}A.push({tx1:o,ty1:q,tx2:r,ty2:v,x1:w,y1:y,x2:z,y2:F,labelX:G,labelY:H,glWidth:j,glColor:m,glBorderDash:t,glBorderDashOffset:u,rotation:-1*x,label:a,textBaseline:J,textAlign:I})}}}),d.each(A,function(a){if(l.display&&(i.save(),i.lineWidth=a.glWidth,i.strokeStyle=a.glColor,i.setLineDash&&(i.setLineDash(a.glBorderDash),i.lineDashOffset=a.glBorderDashOffset),i.beginPath(),l.drawTicks&&(i.moveTo(a.tx1,a.ty1),i.lineTo(a.tx2,a.ty2)),l.drawOnChartArea&&(i.moveTo(a.x1,a.y1),i.lineTo(a.x2,a.y2)),i.stroke(),i.restore()),k.display){i.save(),i.translate(a.labelX,a.labelY),i.rotate(a.rotation),i.font=r.font,i.textBaseline=a.textBaseline,i.textAlign=a.textAlign;var b=a.label;if(d.isArray(b))for(var c=0,e=0;c<b.length;++c)i.fillText(""+b[c],0,e),e+=1.5*r.size;else i.fillText(b,0,0);i.restore()}}),m.display){var F,G,H=0;if(p)F=e.left+(e.right-e.left)/2,G="bottom"===f.position?e.bottom-w.size/2:e.top+w.size/2;else{var I="left"===f.position;F=I?e.left+w.size/2:e.right-w.size/2,G=e.top+(e.bottom-e.top)/2,H=I?-.5*Math.PI:.5*Math.PI}i.save(),i.translate(F,G),i.rotate(H),i.textAlign="center",i.textBaseline="middle",i.fillStyle=v,i.font=w.font,i.fillText(m.labelString,0,0),i.restore()}if(l.drawBorder){i.lineWidth=d.getValueAtIndexOrDefault(l.lineWidth,0),i.strokeStyle=d.getValueAtIndexOrDefault(l.color,0);var J=e.left,K=e.right,L=e.top,M=e.bottom,N=d.aliasPixel(i.lineWidth);p?(L=M="top"===f.position?e.bottom:e.top,L+=N,M+=N):(J=K="left"===f.position?e.right:e.left,J+=N,K+=N),i.beginPath(),i.moveTo(J,L),i.lineTo(K,M),i.stroke()}}}})}},{}],33:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.scaleService={constructors:{},defaults:{},registerScaleType:function(a,c,d){this.constructors[a]=c,this.defaults[a]=b.clone(d)},getScaleConstructor:function(a){return this.constructors.hasOwnProperty(a)?this.constructors[a]:void 0},getScaleDefaults:function(c){return this.defaults.hasOwnProperty(c)?b.scaleMerge(a.defaults.scale,this.defaults[c]):{}},updateScaleDefaults:function(a,c){var d=this.defaults;d.hasOwnProperty(a)&&(d[a]=b.extend(d[a],c))},addScalesToLayout:function(c){b.each(c.scales,function(b){a.layoutService.addBox(c,b)})}}}},{}],34:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers;a.Ticks={generators:{linear:function(a,c){var d,e=[];if(a.stepSize&&a.stepSize>0)d=a.stepSize;else{var f=b.niceNum(c.max-c.min,!1);d=b.niceNum(f/(a.maxTicks-1),!0)}var g=Math.floor(c.min/d)*d,h=Math.ceil(c.max/d)*d;a.min&&a.max&&a.stepSize&&b.almostWhole((a.max-a.min)/a.stepSize,d/1e3)&&(g=a.min,h=a.max);var i=(h-g)/d;i=b.almostEquals(i,Math.round(i),d/1e3)?Math.round(i):Math.ceil(i),e.push(void 0!==a.min?a.min:g);for(var j=1;j<i;++j)e.push(g+j*d);return e.push(void 0!==a.max?a.max:h),e},logarithmic:function(a,c){var d,e,f=[],g=b.getValueOrDefault,h=g(a.min,Math.pow(10,Math.floor(b.log10(c.min)))),i=Math.floor(b.log10(c.max)),j=Math.ceil(c.max/Math.pow(10,i));0===h?(d=Math.floor(b.log10(c.minNotZero)),e=Math.floor(c.minNotZero/Math.pow(10,d)),f.push(h),h=e*Math.pow(10,d)):(d=Math.floor(b.log10(h)),e=Math.floor(h/Math.pow(10,d)));do f.push(h),++e,10===e&&(e=1,++d),h=e*Math.pow(10,d);while(d<i||d===i&&e<j);var k=g(a.max,h);return f.push(k),f}},formatters:{values:function(a){return b.isArray(a)?a:""+a},linear:function(a,c,d){var e=d.length>3?d[2]-d[1]:d[1]-d[0];Math.abs(e)>1&&a!==Math.floor(a)&&(e=a-Math.floor(a));var f=b.log10(Math.abs(e)),g="";if(0!==a){var h=-1*Math.floor(f);h=Math.max(Math.min(h,20),0),g=a.toFixed(h)}else g="0";return g},logarithmic:function(a,c,d){var e=a/Math.pow(10,Math.floor(b.log10(a)));return 0===a?"0":1===e||2===e||5===e||0===c||c===d.length-1?a.toExponential():""}}}}},{}],35:[function(a,b,c){"use strict";b.exports=function(a){function b(b,c){var d=new a.Title({ctx:b.chart.ctx,options:c,chart:b});b.titleBlock=d,a.layoutService.addBox(b,d)}var c=a.helpers;a.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var d=c.noop;a.Title=a.Element.extend({initialize:function(a){var b=this;c.extend(b,a),b.legendHitBoxes=[]},beforeUpdate:d,update:function(a,b,c){var d=this;return d.beforeUpdate(),d.maxWidth=a,d.maxHeight=b,d.margins=c,d.beforeSetDimensions(),d.setDimensions(),d.afterSetDimensions(),d.beforeBuildLabels(),d.buildLabels(),d.afterBuildLabels(),d.beforeFit(),d.fit(),d.afterFit(),d.afterUpdate(),d.minSize},afterUpdate:d,beforeSetDimensions:d,setDimensions:function(){var a=this;a.isHorizontal()?(a.width=a.maxWidth,a.left=0,a.right=a.width):(a.height=a.maxHeight,a.top=0,a.bottom=a.height),a.paddingLeft=0,a.paddingTop=0,a.paddingRight=0,a.paddingBottom=0,a.minSize={width:0,height:0}},afterSetDimensions:d,beforeBuildLabels:d,buildLabels:d,afterBuildLabels:d,beforeFit:d,fit:function(){var b=this,d=c.getValueOrDefault,e=b.options,f=a.defaults.global,g=e.display,h=d(e.fontSize,f.defaultFontSize),i=b.minSize;b.isHorizontal()?(i.width=b.maxWidth,i.height=g?h+2*e.padding:0):(i.width=g?h+2*e.padding:0,i.height=b.maxHeight),b.width=i.width,b.height=i.height},afterFit:d,isHorizontal:function(){var a=this.options.position;return"top"===a||"bottom"===a},draw:function(){var b=this,d=b.ctx,e=c.getValueOrDefault,f=b.options,g=a.defaults.global;if(f.display){var h,i,j,k=e(f.fontSize,g.defaultFontSize),l=e(f.fontStyle,g.defaultFontStyle),m=e(f.fontFamily,g.defaultFontFamily),n=c.fontString(k,l,m),o=0,p=b.top,q=b.left,r=b.bottom,s=b.right;d.fillStyle=e(f.fontColor,g.defaultFontColor),d.font=n,b.isHorizontal()?(h=q+(s-q)/2,i=p+(r-p)/2,j=s-q):(h="left"===f.position?q+k/2:s-k/2,i=p+(r-p)/2,j=r-p,o=Math.PI*("left"===f.position?-.5:.5)),d.save(),d.translate(h,i),d.rotate(o),d.textAlign="center",d.textBaseline="middle",d.fillText(f.text,0,0,j),d.restore()}}}),a.plugins.register({beforeInit:function(a){var c=a.options.title;c&&b(a,c)},beforeUpdate:function(d){var e=d.options.title;e?(e=c.configMerge(a.defaults.global.title,e),d.titleBlock?d.titleBlock.options=e:b(d,e)):(a.layoutService.removeBox(d,d.titleBlock),delete d.titleBlock)}})}},{}],36:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b){var c=i.color(a);return c.alpha(b*c.alpha()).rgbaString()}function c(a,b){return b&&(i.isArray(b)?Array.prototype.push.apply(a,b):a.push(b)),a}function d(a){var b=a._xScale,c=a._yScale||a._scale,d=a._index,e=a._datasetIndex;return{xLabel:b?b.getLabelForIndex(d,e):"",yLabel:c?c.getLabelForIndex(d,e):"",index:d,datasetIndex:e,x:a._model.x,y:a._model.y}}function e(b){var c=a.defaults.global,d=i.getValueOrDefault;return{xPadding:b.xPadding,yPadding:b.yPadding,xAlign:b.xAlign,yAlign:b.yAlign,bodyFontColor:b.bodyFontColor,_bodyFontFamily:d(b.bodyFontFamily,c.defaultFontFamily),_bodyFontStyle:d(b.bodyFontStyle,c.defaultFontStyle),_bodyAlign:b.bodyAlign,bodyFontSize:d(b.bodyFontSize,c.defaultFontSize),bodySpacing:b.bodySpacing,titleFontColor:b.titleFontColor,_titleFontFamily:d(b.titleFontFamily,c.defaultFontFamily),_titleFontStyle:d(b.titleFontStyle,c.defaultFontStyle),titleFontSize:d(b.titleFontSize,c.defaultFontSize),_titleAlign:b.titleAlign,titleSpacing:b.titleSpacing,titleMarginBottom:b.titleMarginBottom,footerFontColor:b.footerFontColor,_footerFontFamily:d(b.footerFontFamily,c.defaultFontFamily),_footerFontStyle:d(b.footerFontStyle,c.defaultFontStyle),footerFontSize:d(b.footerFontSize,c.defaultFontSize),_footerAlign:b.footerAlign,footerSpacing:b.footerSpacing,footerMarginTop:b.footerMarginTop,caretSize:b.caretSize,cornerRadius:b.cornerRadius,backgroundColor:b.backgroundColor,opacity:0,legendColorBackground:b.multiKeyBackground,displayColors:b.displayColors}}function f(a,b){var c=a._chart.ctx,d=2*b.yPadding,e=0,f=b.body,g=f.reduce(function(a,b){return a+b.before.length+b.lines.length+b.after.length},0);g+=b.beforeBody.length+b.afterBody.length;var h=b.title.length,j=b.footer.length,k=b.titleFontSize,l=b.bodyFontSize,m=b.footerFontSize;d+=h*k,d+=h?(h-1)*b.titleSpacing:0,d+=h?b.titleMarginBottom:0,d+=g*l,d+=g?(g-1)*b.bodySpacing:0,d+=j?b.footerMarginTop:0,d+=j*m,d+=j?(j-1)*b.footerSpacing:0;var n=0,o=function(a){e=Math.max(e,c.measureText(a).width+n)};return c.font=i.fontString(k,b._titleFontStyle,b._titleFontFamily),i.each(b.title,o),c.font=i.fontString(l,b._bodyFontStyle,b._bodyFontFamily),i.each(b.beforeBody.concat(b.afterBody),o),n=b.displayColors?l+2:0,i.each(f,function(a){i.each(a.before,o),i.each(a.lines,o),i.each(a.after,o)}),n=0,c.font=i.fontString(m,b._footerFontStyle,b._footerFontFamily),i.each(b.footer,o),e+=2*b.xPadding,{width:e,height:d}}function g(a,b){var c=a._model,d=a._chart,e=a._chartInstance.chartArea,f="center",g="center";c.y<b.height?g="top":c.y>d.height-b.height&&(g="bottom");var h,i,j,k,l,m=(e.left+e.right)/2,n=(e.top+e.bottom)/2;"center"===g?(h=function(a){return a<=m},i=function(a){return a>m}):(h=function(a){return a<=b.width/2},i=function(a){return a>=d.width-b.width/2}),j=function(a){return a+b.width>d.width},k=function(a){return a-b.width<0},l=function(a){return a<=n?"top":"bottom"},h(c.x)?(f="left",j(c.x)&&(f="center",g=l(c.y))):i(c.x)&&(f="right",k(c.x)&&(f="center",g=l(c.y)));var o=a._options;return{xAlign:o.xAlign?o.xAlign:f,yAlign:o.yAlign?o.yAlign:g}}function h(a,b,c){var d=a.x,e=a.y,f=a.caretSize,g=a.caretPadding,h=a.cornerRadius,i=c.xAlign,j=c.yAlign,k=f+g,l=h+g;return"right"===i?d-=b.width:"center"===i&&(d-=b.width/2),"top"===j?e+=k:e-="bottom"===j?b.height+k:b.height/2,"center"===j?"left"===i?d+=k:"right"===i&&(d-=k):"left"===i?d-=l:"right"===i&&(d+=l),{x:d,y:e}}var i=a.helpers;a.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:i.noop,title:function(a,b){var c="",d=b.labels,e=d?d.length:0;if(a.length>0){var f=a[0];f.xLabel?c=f.xLabel:e>0&&f.index<e&&(c=d[f.index])}return c},afterTitle:i.noop,beforeBody:i.noop,beforeLabel:i.noop,label:function(a,b){var c=b.datasets[a.datasetIndex].label||"";return c+": "+a.yLabel},labelColor:function(a,b){var c=b.getDatasetMeta(a.datasetIndex),d=c.data[a.index],e=d._view;return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}},afterLabel:i.noop,afterBody:i.noop,beforeFooter:i.noop,footer:i.noop,afterFooter:i.noop}},a.Tooltip=a.Element.extend({initialize:function(){this._model=e(this._options)},getTitle:function(){var a=this,b=a._options,d=b.callbacks,e=d.beforeTitle.apply(a,arguments),f=d.title.apply(a,arguments),g=d.afterTitle.apply(a,arguments),h=[];return h=c(h,e),h=c(h,f),h=c(h,g)},getBeforeBody:function(){var a=this._options.callbacks.beforeBody.apply(this,arguments);return i.isArray(a)?a:void 0!==a?[a]:[]},getBody:function(a,b){var d=this,e=d._options.callbacks,f=[];return i.each(a,function(a){var g={before:[],lines:[],after:[]};c(g.before,e.beforeLabel.call(d,a,b)),c(g.lines,e.label.call(d,a,b)),c(g.after,e.afterLabel.call(d,a,b)),f.push(g)}),f},getAfterBody:function(){var a=this._options.callbacks.afterBody.apply(this,arguments);return i.isArray(a)?a:void 0!==a?[a]:[]},getFooter:function(){var a=this,b=a._options.callbacks,d=b.beforeFooter.apply(a,arguments),e=b.footer.apply(a,arguments),f=b.afterFooter.apply(a,arguments),g=[];return g=c(g,d),g=c(g,e),g=c(g,f)},update:function(b){var c,j,k=this,l=k._options,m=k._model,n=k._model=e(l),o=k._active,p=k._data,q=k._chartInstance,r={xAlign:m.xAlign,yAlign:m.yAlign},s={x:m.x,y:m.y},t={width:m.width,height:m.height},u={x:m.caretX,y:m.caretY};if(o.length){n.opacity=1;var v=[];u=a.Tooltip.positioners[l.position](o,k._eventPosition);var w=[];for(c=0,j=o.length;c<j;++c)w.push(d(o[c]));l.filter&&(w=w.filter(function(a){return l.filter(a,p)})),l.itemSort&&(w=w.sort(function(a,b){return l.itemSort(a,b,p)})),i.each(w,function(a){v.push(l.callbacks.labelColor.call(k,a,q))}),n.title=k.getTitle(w,p),n.beforeBody=k.getBeforeBody(w,p),n.body=k.getBody(w,p),n.afterBody=k.getAfterBody(w,p),n.footer=k.getFooter(w,p),n.x=Math.round(u.x),n.y=Math.round(u.y),n.caretPadding=i.getValueOrDefault(u.padding,2),n.labelColors=v,n.dataPoints=w,t=f(this,n),r=g(this,t),s=h(n,t,r)}else n.opacity=0;return n.xAlign=r.xAlign,n.yAlign=r.yAlign,n.x=s.x,n.y=s.y,n.width=t.width,n.height=t.height,n.caretX=u.x,n.caretY=u.y,k._model=n,b&&l.custom&&l.custom.call(k,n),k},drawCaret:function(a,c,d){var e,f,g,h,i,j,k=this._view,l=this._chart.ctx,m=k.caretSize,n=k.cornerRadius,o=k.xAlign,p=k.yAlign,q=a.x,r=a.y,s=c.width,t=c.height;"center"===p?("left"===o?(e=q,f=e-m,g=e):(e=q+s,f=e+m,g=e),i=r+t/2,h=i-m,j=i+m):("left"===o?(e=q+n,f=e+m,g=f+m):"right"===o?(e=q+s-n,f=e-m,g=f-m):(f=q+s/2,e=f-m,g=f+m),"top"===p?(h=r,i=h-m,j=h):(h=r+t,i=h+m,j=h)),l.fillStyle=b(k.backgroundColor,d),l.beginPath(),l.moveTo(e,h),l.lineTo(f,i),l.lineTo(g,j),l.closePath(),l.fill()},drawTitle:function(a,c,d,e){var f=c.title;if(f.length){d.textAlign=c._titleAlign,d.textBaseline="top";var g=c.titleFontSize,h=c.titleSpacing;d.fillStyle=b(c.titleFontColor,e),d.font=i.fontString(g,c._titleFontStyle,c._titleFontFamily);var j,k;for(j=0,k=f.length;j<k;++j)d.fillText(f[j],a.x,a.y),a.y+=g+h,j+1===f.length&&(a.y+=c.titleMarginBottom-h)}},drawBody:function(a,c,d,e){var f=c.bodyFontSize,g=c.bodySpacing,h=c.body;d.textAlign=c._bodyAlign,d.textBaseline="top";var j=b(c.bodyFontColor,e);d.fillStyle=j,d.font=i.fontString(f,c._bodyFontStyle,c._bodyFontFamily);var k=0,l=function(b){d.fillText(b,a.x+k,a.y),a.y+=f+g};i.each(c.beforeBody,l);var m=c.displayColors;k=m?f+2:0,i.each(h,function(g,h){i.each(g.before,l),i.each(g.lines,function(g){m&&(d.fillStyle=b(c.legendColorBackground,e),d.fillRect(a.x,a.y,f,f),d.strokeStyle=b(c.labelColors[h].borderColor,e),d.strokeRect(a.x,a.y,f,f),d.fillStyle=b(c.labelColors[h].backgroundColor,e),d.fillRect(a.x+1,a.y+1,f-2,f-2),d.fillStyle=j),l(g)}),i.each(g.after,l)}),k=0,i.each(c.afterBody,l),a.y-=g},drawFooter:function(a,c,d,e){var f=c.footer;f.length&&(a.y+=c.footerMarginTop,d.textAlign=c._footerAlign,d.textBaseline="top",d.fillStyle=b(c.footerFontColor,e),d.font=i.fontString(c.footerFontSize,c._footerFontStyle,c._footerFontFamily),i.each(f,function(b){d.fillText(b,a.x,a.y),a.y+=c.footerFontSize+c.footerSpacing}))},drawBackground:function(a,c,d,e,f){d.fillStyle=b(c.backgroundColor,f),i.drawRoundedRectangle(d,a.x,a.y,e.width,e.height,c.cornerRadius),d.fill()},draw:function(){var a=this._chart.ctx,b=this._view;if(0!==b.opacity){var c={width:b.width,height:b.height},d={x:b.x,y:b.y},e=Math.abs(b.opacity<.001)?0:b.opacity;this._options.enabled&&(this.drawBackground(d,b,a,c,e),this.drawCaret(d,c,e),d.x+=b.xPadding,d.y+=b.yPadding,this.drawTitle(d,b,a,e),this.drawBody(d,b,a,e),this.drawFooter(d,b,a,e))}},handleEvent:function(a){var b=this,c=b._options,d=!1;if(b._lastActive=b._lastActive||[],"mouseout"===a.type?b._active=[]:b._active=b._chartInstance.getElementsAtEventForMode(a,c.mode,c),d=!i.arrayEquals(b._active,b._lastActive),b._lastActive=b._active,c.enabled||c.custom){b._eventPosition={x:a.x,y:a.y};var e=b._model;b.update(!0),b.pivot(),d|=e.x!==b._model.x||e.y!==b._model.y}return d}}),a.Tooltip.positioners={average:function(a){if(!a.length)return!1;var b,c,d=0,e=0,f=0;for(b=0,c=a.length;b<c;++b){var g=a[b];if(g&&g.hasValue()){var h=g.tooltipPosition();d+=h.x,e+=h.y,++f}}return{x:Math.round(d/f),y:Math.round(e/f)}},nearest:function(a,b){var c,d,e,f=b.x,g=b.y,h=Number.POSITIVE_INFINITY;for(d=0,e=a.length;d<e;++d){var j=a[d];if(j&&j.hasValue()){var k=j.getCenterPoint(),l=i.distanceBetweenPoints(b,k);l<h&&(h=l,c=j)}}if(c){var m=c.tooltipPosition();f=m.x,g=m.y}return{x:f,y:g}}}}},{}],37:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c=a.defaults.global;c.elements.arc={backgroundColor:c.defaultColor,borderColor:"#fff",borderWidth:2},a.elements.Arc=a.Element.extend({inLabelRange:function(a){var b=this._view;return!!b&&Math.pow(a-b.x,2)<Math.pow(b.radius+b.hoverRadius,2)},inRange:function(a,c){var d=this._view;if(d){for(var e=b.getAngleFromPoint(d,{x:a,y:c}),f=e.angle,g=e.distance,h=d.startAngle,i=d.endAngle;i<h;)i+=2*Math.PI;for(;f>i;)f-=2*Math.PI;for(;f<h;)f+=2*Math.PI;var j=f>=h&&f<=i,k=g>=d.innerRadius&&g<=d.outerRadius;return j&&k}return!1},getCenterPoint:function(){var a=this._view,b=(a.startAngle+a.endAngle)/2,c=(a.innerRadius+a.outerRadius)/2;return{x:a.x+Math.cos(b)*c,y:a.y+Math.sin(b)*c}},getArea:function(){var a=this._view;return Math.PI*((a.endAngle-a.startAngle)/(2*Math.PI))*(Math.pow(a.outerRadius,2)-Math.pow(a.innerRadius,2))},tooltipPosition:function(){var a=this._view,b=a.startAngle+(a.endAngle-a.startAngle)/2,c=(a.outerRadius-a.innerRadius)/2+a.innerRadius;return{x:a.x+Math.cos(b)*c,y:a.y+Math.sin(b)*c}},draw:function(){var a=this._chart.ctx,b=this._view,c=b.startAngle,d=b.endAngle;a.beginPath(),a.arc(b.x,b.y,b.outerRadius,c,d),a.arc(b.x,b.y,b.innerRadius,d,c,!0),a.closePath(),a.strokeStyle=b.borderColor,a.lineWidth=b.borderWidth,a.fillStyle=b.backgroundColor,a.fill(),a.lineJoin="bevel",b.borderWidth&&a.stroke()}})}},{}],38:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c=a.defaults.global;a.defaults.global.elements.line={tension:.4,backgroundColor:c.defaultColor,borderWidth:3,borderColor:c.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},a.elements.Line=a.Element.extend({draw:function(){function a(a,b){var c=b._view;b._view.steppedLine===!0?(i.lineTo(c.x,a._view.y),i.lineTo(c.x,c.y)):0===b._view.tension?i.lineTo(c.x,c.y):i.bezierCurveTo(a._view.controlPointNextX,a._view.controlPointNextY,c.controlPointPreviousX,c.controlPointPreviousY,c.x,c.y)}var d=this,e=d._view,f=e.spanGaps,g=e.scaleZero,h=d._loop;h||("top"===e.fill?g=e.scaleTop:"bottom"===e.fill&&(g=e.scaleBottom));var i=d._chart.ctx;i.save();var j=d._children.slice(),k=-1;h&&j.length&&j.push(j[0]);var l,m,n,o;if(j.length&&e.fill){for(i.beginPath(),l=0;l<j.length;++l)m=j[l],n=b.previousItem(j,l),o=m._view,0===l?(h?i.moveTo(g.x,g.y):i.moveTo(o.x,g),o.skip||(k=l,i.lineTo(o.x,o.y))):(n=k===-1?n:j[k],o.skip?f||k!==l-1||(h?i.lineTo(g.x,g.y):i.lineTo(n._view.x,g)):(k!==l-1?f&&k!==-1?a(n,m):h?i.lineTo(o.x,o.y):(i.lineTo(o.x,g),i.lineTo(o.x,o.y)):a(n,m),k=l));h||k===-1||i.lineTo(j[k]._view.x,g),i.fillStyle=e.backgroundColor||c.defaultColor,i.closePath(),i.fill()}var p=c.elements.line;for(i.lineCap=e.borderCapStyle||p.borderCapStyle,i.setLineDash&&i.setLineDash(e.borderDash||p.borderDash),i.lineDashOffset=e.borderDashOffset||p.borderDashOffset,i.lineJoin=e.borderJoinStyle||p.borderJoinStyle,i.lineWidth=e.borderWidth||p.borderWidth,i.strokeStyle=e.borderColor||c.defaultColor,i.beginPath(),k=-1,l=0;l<j.length;++l)m=j[l],n=b.previousItem(j,l),o=m._view,0===l?o.skip||(i.moveTo(o.x,o.y),k=l):(n=k===-1?n:j[k],o.skip||(k!==l-1&&!f||k===-1?i.moveTo(o.x,o.y):a(n,m),k=l));i.stroke(),i.restore()}})}},{}],39:[function(a,b,c){"use strict";b.exports=function(a){function b(a){var b=this._view;return!!b&&Math.pow(a-b.x,2)<Math.pow(b.radius+b.hitRadius,2)}function c(a){var b=this._view;return!!b&&Math.pow(a-b.y,2)<Math.pow(b.radius+b.hitRadius,2)}var d=a.helpers,e=a.defaults.global,f=e.defaultColor;e.elements.point={radius:3,pointStyle:"circle",backgroundColor:f,borderWidth:1,borderColor:f,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},a.elements.Point=a.Element.extend({inRange:function(a,b){var c=this._view;return!!c&&Math.pow(a-c.x,2)+Math.pow(b-c.y,2)<Math.pow(c.hitRadius+c.radius,2)},inLabelRange:b,inXRange:b,inYRange:c,getCenterPoint:function(){var a=this._view;return{x:a.x,y:a.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var a=this._view;return{x:a.x,y:a.y,padding:a.radius+a.borderWidth}},draw:function(b){var c=this._view,g=this._model,h=this._chart.ctx,i=c.pointStyle,j=c.radius,k=c.x,l=c.y,m=a.helpers.color,n=1.01,o=0;c.skip||(h.strokeStyle=c.borderColor||f,h.lineWidth=d.getValueOrDefault(c.borderWidth,e.elements.point.borderWidth),h.fillStyle=c.backgroundColor||f,void 0!==b&&(g.x<b.left||b.right*n<g.x||g.y<b.top||b.bottom*n<g.y)&&(g.x<b.left?o=(k-g.x)/(b.left-g.x):b.right*n<g.x?o=(g.x-k)/(g.x-b.right):g.y<b.top?o=(l-g.y)/(b.top-g.y):b.bottom*n<g.y&&(o=(g.y-l)/(g.y-b.bottom)),o=Math.round(100*o)/100,h.strokeStyle=m(h.strokeStyle).alpha(o).rgbString(),h.fillStyle=m(h.fillStyle).alpha(o).rgbString()),a.canvasHelpers.drawPoint(h,i,j,k,l))}})}},{}],40:[function(a,b,c){"use strict";b.exports=function(a){function b(a){return void 0!==a._view.width}function c(a){var c,d,e,f,g=a._view;if(b(a)){var h=g.width/2;c=g.x-h,d=g.x+h,e=Math.min(g.y,g.base),f=Math.max(g.y,g.base)}else{var i=g.height/2;c=Math.min(g.x,g.base),d=Math.max(g.x,g.base),e=g.y-i,f=g.y+i}return{left:c,top:e,right:d,bottom:f}}var d=a.defaults.global;d.elements.rectangle={backgroundColor:d.defaultColor,borderWidth:0,borderColor:d.defaultColor,borderSkipped:"bottom"},a.elements.Rectangle=a.Element.extend({draw:function(){function a(a){return r[(t+a)%4]}var b,c,d,e,f,g,h,i=this._chart.ctx,j=this._view,k=j.borderWidth;if(j.horizontal?(b=j.base,c=j.x,d=j.y-j.height/2,e=j.y+j.height/2,f=c>b?1:-1,g=1,h=j.borderSkipped||"left"):(b=j.x-j.width/2,c=j.x+j.width/2,d=j.y,e=j.base,f=1,g=e>d?1:-1,h=j.borderSkipped||"bottom"),k){var l=Math.min(Math.abs(b-c),Math.abs(d-e));k=k>l?l:k;var m=k/2,n=b+("left"!==h?m*f:0),o=c+("right"!==h?-m*f:0),p=d+("top"!==h?m*g:0),q=e+("bottom"!==h?-m*g:0);n!==o&&(d=p,e=q),p!==q&&(b=n,c=o)}i.beginPath(),i.fillStyle=j.backgroundColor,i.strokeStyle=j.borderColor,i.lineWidth=k;var r=[[b,e],[b,d],[c,d],[c,e]],s=["bottom","left","top","right"],t=s.indexOf(h,0);t===-1&&(t=0);var u=a(0);i.moveTo(u[0],u[1]);for(var v=1;v<4;v++)u=a(v),i.lineTo(u[0],u[1]);i.fill(),k&&i.stroke()},height:function(){var a=this._view;return a.base-a.y},inRange:function(a,b){var d=!1;if(this._view){var e=c(this);d=a>=e.left&&a<=e.right&&b>=e.top&&b<=e.bottom}return d},inLabelRange:function(a,d){var e=this;if(!e._view)return!1;var f=!1,g=c(e);return f=b(e)?a>=g.left&&a<=g.right:d>=g.top&&d<=g.bottom},inXRange:function(a){var b=c(this);return a>=b.left&&a<=b.right},inYRange:function(a){var b=c(this);return a>=b.top&&a<=b.bottom},getCenterPoint:function(){var a,c,d=this._view;return b(this)?(a=d.x,c=(d.y+d.base)/2):(a=(d.x+d.base)/2,c=d.y),{x:a,y:c}},getArea:function(){var a=this._view;return a.width*Math.abs(a.y-a.base)},tooltipPosition:function(){var a=this._view;return{x:a.x,y:a.y}}})}},{}],41:[function(a,b,c){"use strict";b.exports=function(a){function b(a,b){var c=i.getStyle(a,b),d=c&&c.match(/(\d+)px/);return d?Number(d[1]):void 0}function c(a,c){var d=a.style,e=a.getAttribute("height"),f=a.getAttribute("width");if(a._chartjs={initial:{height:e,width:f,style:{display:d.display,height:d.height,width:d.width}}},d.display=d.display||"block",null===f||""===f){var g=b(a,"width");void 0!==g&&(a.width=g)}if(null===e||""===e)if(""===a.style.height)a.height=a.width/(c.options.aspectRatio||2);else{var h=b(a,"height");void 0!==g&&(a.height=h)}return a}function d(a,b,c,d,e){return{type:a,chart:b,"native":e||null,x:void 0!==c?c:null,y:void 0!==d?d:null}}function e(a,b){
  var c=j[a.type]||a.type,e=i.getRelativePosition(a,b);return d(c,b,e.x,e.y,a)}function f(a){var b=document.createElement("iframe");return b.className="chartjs-hidden-iframe",b.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;",b.tabIndex=-1,i.addEvent(b,"load",function(){i.addEvent(b.contentWindow||b,"resize",a),a()}),b}function g(a,b,c){var e=a._chartjs={ticking:!1},g=function(){e.ticking||(e.ticking=!0,i.requestAnimFrame.call(window,function(){if(e.resizer)return e.ticking=!1,b(d("resize",c))}))};e.resizer=f(g),a.insertBefore(e.resizer,a.firstChild)}function h(a){if(a&&a._chartjs){var b=a._chartjs.resizer;b&&(b.parentNode.removeChild(b),a._chartjs.resizer=null),delete a._chartjs}}var i=a.helpers,j={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(a,b){if("string"==typeof a?a=document.getElementById(a):a.length&&(a=a[0]),a&&a.canvas&&(a=a.canvas),a instanceof HTMLCanvasElement){var d=a.getContext&&a.getContext("2d");if(d instanceof CanvasRenderingContext2D)return c(a,b),d}return null},releaseContext:function(a){var b=a.canvas;if(b._chartjs){var c=b._chartjs.initial;["height","width"].forEach(function(a){var d=c[a];void 0===d||null===d?b.removeAttribute(a):b.setAttribute(a,d)}),i.each(c.style||{},function(a,c){b.style[c]=a}),b.width=b.width,delete b._chartjs}},addEventListener:function(a,b,c){var d=a.chart.canvas;if("resize"===b)return void g(d.parentNode,c,a.chart);var f=c._chartjs||(c._chartjs={}),h=f.proxies||(f.proxies={}),j=h[a.id+"_"+b]=function(b){c(e(b,a.chart))};i.addEvent(d,b,j)},removeEventListener:function(a,b,c){var d=a.chart.canvas;if("resize"===b)return void h(d.parentNode,c);var e=c._chartjs||{},f=e.proxies||{},g=f[a.id+"_"+b];g&&i.removeEvent(d,b,g)}}}},{}],42:[function(a,b,c){"use strict";var d=a(41);b.exports=function(a){a.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a.helpers.extend(a.platform,d(a))}},{41:41}],43:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c={position:"bottom"},d=a.Scale.extend({getLabels:function(){var a=this.chart.data;return(this.isHorizontal()?a.xLabels:a.yLabels)||a.labels},determineDataLimits:function(){var a=this,c=a.getLabels();a.minIndex=0,a.maxIndex=c.length-1;var d;void 0!==a.options.ticks.min&&(d=b.indexOf(c,a.options.ticks.min),a.minIndex=d!==-1?d:a.minIndex),void 0!==a.options.ticks.max&&(d=b.indexOf(c,a.options.ticks.max),a.maxIndex=d!==-1?d:a.maxIndex),a.min=c[a.minIndex],a.max=c[a.maxIndex]},buildTicks:function(){var a=this,b=a.getLabels();a.ticks=0===a.minIndex&&a.maxIndex===b.length-1?b:b.slice(a.minIndex,a.maxIndex+1)},getLabelForIndex:function(a,b){var c=this,d=c.chart.data,e=c.isHorizontal();return d.yLabels&&!e?c.getRightValue(d.datasets[b].data[a]):c.ticks[a-c.minIndex]},getPixelForValue:function(a,b,c,d){var e=this,f=Math.max(e.maxIndex+1-e.minIndex-(e.options.gridLines.offsetGridLines?0:1),1);if(void 0!==a&&isNaN(b)){var g=e.getLabels(),h=g.indexOf(a);b=h!==-1?h:b}if(e.isHorizontal()){var i=e.width/f,j=i*(b-e.minIndex);return(e.options.gridLines.offsetGridLines&&d||e.maxIndex===e.minIndex&&d)&&(j+=i/2),e.left+Math.round(j)}var k=e.height/f,l=k*(b-e.minIndex);return e.options.gridLines.offsetGridLines&&d&&(l+=k/2),e.top+Math.round(l)},getPixelForTick:function(a,b){return this.getPixelForValue(this.ticks[a],a+this.minIndex,null,b)},getValueForPixel:function(a){var b,c=this,d=Math.max(c.ticks.length-(c.options.gridLines.offsetGridLines?0:1),1),e=c.isHorizontal(),f=(e?c.width:c.height)/d;return a-=e?c.left:c.top,c.options.gridLines.offsetGridLines&&(a-=f/2),b=a<=0?0:Math.round(a/f)},getBasePixel:function(){return this.bottom}});a.scaleService.registerScaleType("category",d,c)}},{}],44:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c={position:"left",ticks:{callback:a.Ticks.formatters.linear}},d=a.LinearScaleBase.extend({determineDataLimits:function(){function a(a){return h?a.xAxisID===c.id:a.yAxisID===c.id}var c=this,d=c.options,e=c.chart,f=e.data,g=f.datasets,h=c.isHorizontal();c.min=null,c.max=null;var i=d.stacked;if(void 0===i&&b.each(g,function(b,c){if(!i){var d=e.getDatasetMeta(c);e.isDatasetVisible(c)&&a(d)&&void 0!==d.stack&&(i=!0)}}),d.stacked||i){var j={};b.each(g,function(f,g){var h=e.getDatasetMeta(g),i=[h.type,void 0===d.stacked&&void 0===h.stack?g:"",h.stack].join(".");void 0===j[i]&&(j[i]={positiveValues:[],negativeValues:[]});var k=j[i].positiveValues,l=j[i].negativeValues;e.isDatasetVisible(g)&&a(h)&&b.each(f.data,function(a,b){var e=+c.getRightValue(a);isNaN(e)||h.data[b].hidden||(k[b]=k[b]||0,l[b]=l[b]||0,d.relativePoints?k[b]=100:e<0?l[b]+=e:k[b]+=e)})}),b.each(j,function(a){var d=a.positiveValues.concat(a.negativeValues),e=b.min(d),f=b.max(d);c.min=null===c.min?e:Math.min(c.min,e),c.max=null===c.max?f:Math.max(c.max,f)})}else b.each(g,function(d,f){var g=e.getDatasetMeta(f);e.isDatasetVisible(f)&&a(g)&&b.each(d.data,function(a,b){var d=+c.getRightValue(a);isNaN(d)||g.data[b].hidden||(null===c.min?c.min=d:d<c.min&&(c.min=d),null===c.max?c.max=d:d>c.max&&(c.max=d))})});this.handleTickRangeOptions()},getTickLimit:function(){var c,d=this,e=d.options.ticks;if(d.isHorizontal())c=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(d.width/50));else{var f=b.getValueOrDefault(e.fontSize,a.defaults.global.defaultFontSize);c=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(d.height/(2*f)))}return c},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(a,b){return+this.getRightValue(this.chart.data.datasets[b].data[a])},getPixelForValue:function(a){var b,c=this,d=c.start,e=+c.getRightValue(a),f=c.end-d;return c.isHorizontal()?(b=c.left+c.width/f*(e-d),Math.round(b)):(b=c.bottom-c.height/f*(e-d),Math.round(b))},getValueForPixel:function(a){var b=this,c=b.isHorizontal(),d=c?b.width:b.height,e=(c?a-b.left:b.bottom-a)/d;return b.start+(b.end-b.start)*e},getPixelForTick:function(a){return this.getPixelForValue(this.ticksAsNumbers[a])}});a.scaleService.registerScaleType("linear",d,c)}},{}],45:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c=b.noop;a.LinearScaleBase=a.Scale.extend({handleTickRangeOptions:function(){var a=this,c=a.options,d=c.ticks;if(d.beginAtZero){var e=b.sign(a.min),f=b.sign(a.max);e<0&&f<0?a.max=0:e>0&&f>0&&(a.min=0)}void 0!==d.min?a.min=d.min:void 0!==d.suggestedMin&&(a.min=Math.min(a.min,d.suggestedMin)),void 0!==d.max?a.max=d.max:void 0!==d.suggestedMax&&(a.max=Math.max(a.max,d.suggestedMax)),a.min===a.max&&(a.max++,d.beginAtZero||a.min--)},getTickLimit:c,handleDirectionalChanges:c,buildTicks:function(){var c=this,d=c.options,e=d.ticks,f=c.getTickLimit();f=Math.max(2,f);var g={maxTicks:f,min:e.min,max:e.max,stepSize:b.getValueOrDefault(e.fixedStepSize,e.stepSize)},h=c.ticks=a.Ticks.generators.linear(g,c);c.handleDirectionalChanges(),c.max=b.max(h),c.min=b.min(h),e.reverse?(h.reverse(),c.start=c.max,c.end=c.min):(c.start=c.min,c.end=c.max)},convertTicksToLabels:function(){var b=this;b.ticksAsNumbers=b.ticks.slice(),b.zeroLineIndex=b.ticks.indexOf(0),a.Scale.prototype.convertTicksToLabels.call(b)}})}},{}],46:[function(a,b,c){"use strict";b.exports=function(a){var b=a.helpers,c={position:"left",ticks:{callback:a.Ticks.formatters.logarithmic}},d=a.Scale.extend({determineDataLimits:function(){function a(a){return j?a.xAxisID===c.id:a.yAxisID===c.id}var c=this,d=c.options,e=d.ticks,f=c.chart,g=f.data,h=g.datasets,i=b.getValueOrDefault,j=c.isHorizontal();c.min=null,c.max=null,c.minNotZero=null;var k=d.stacked;if(void 0===k&&b.each(h,function(b,c){if(!k){var d=f.getDatasetMeta(c);f.isDatasetVisible(c)&&a(d)&&void 0!==d.stack&&(k=!0)}}),d.stacked||k){var l={};b.each(h,function(e,g){var h=f.getDatasetMeta(g),i=[h.type,void 0===d.stacked&&void 0===h.stack?g:"",h.stack].join(".");f.isDatasetVisible(g)&&a(h)&&(void 0===l[i]&&(l[i]=[]),b.each(e.data,function(a,b){var e=l[i],f=+c.getRightValue(a);isNaN(f)||h.data[b].hidden||(e[b]=e[b]||0,d.relativePoints?e[b]=100:e[b]+=f)}))}),b.each(l,function(a){var d=b.min(a),e=b.max(a);c.min=null===c.min?d:Math.min(c.min,d),c.max=null===c.max?e:Math.max(c.max,e)})}else b.each(h,function(d,e){var g=f.getDatasetMeta(e);f.isDatasetVisible(e)&&a(g)&&b.each(d.data,function(a,b){var d=+c.getRightValue(a);isNaN(d)||g.data[b].hidden||(null===c.min?c.min=d:d<c.min&&(c.min=d),null===c.max?c.max=d:d>c.max&&(c.max=d),0!==d&&(null===c.minNotZero||d<c.minNotZero)&&(c.minNotZero=d))})});c.min=i(e.min,c.min),c.max=i(e.max,c.max),c.min===c.max&&(0!==c.min&&null!==c.min?(c.min=Math.pow(10,Math.floor(b.log10(c.min))-1),c.max=Math.pow(10,Math.floor(b.log10(c.max))+1)):(c.min=1,c.max=10))},buildTicks:function(){var c=this,d=c.options,e=d.ticks,f={min:e.min,max:e.max},g=c.ticks=a.Ticks.generators.logarithmic(f,c);c.isHorizontal()||g.reverse(),c.max=b.max(g),c.min=b.min(g),e.reverse?(g.reverse(),c.start=c.max,c.end=c.min):(c.start=c.min,c.end=c.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),a.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(a,b){return+this.getRightValue(this.chart.data.datasets[b].data[a])},getPixelForTick:function(a){return this.getPixelForValue(this.tickValues[a])},getPixelForValue:function(a){var c,d,e,f=this,g=f.start,h=+f.getRightValue(a),i=f.options,j=i.ticks;return f.isHorizontal()?(e=b.log10(f.end)-b.log10(g),0===h?d=f.left:(c=f.width,d=f.left+c/e*(b.log10(h)-b.log10(g)))):(c=f.height,0!==g||j.reverse?0===f.end&&j.reverse?(e=b.log10(f.start)-b.log10(f.minNotZero),d=h===f.end?f.top:h===f.minNotZero?f.top+.02*c:f.top+.02*c+.98*c/e*(b.log10(h)-b.log10(f.minNotZero))):(e=b.log10(f.end)-b.log10(g),c=f.height,d=f.bottom-c/e*(b.log10(h)-b.log10(g))):(e=b.log10(f.end)-b.log10(f.minNotZero),d=h===g?f.bottom:h===f.minNotZero?f.bottom-.02*c:f.bottom-.02*c-.98*c/e*(b.log10(h)-b.log10(f.minNotZero)))),d},getValueForPixel:function(a){var c,d,e=this,f=b.log10(e.end)-b.log10(e.start);return e.isHorizontal()?(d=e.width,c=e.start*Math.pow(10,(a-e.left)*f/d)):(d=e.height,c=Math.pow(10,(e.bottom-a)*f/d)/e.start),c}});a.scaleService.registerScaleType("logarithmic",d,c)}},{}],47:[function(a,b,c){"use strict";b.exports=function(a){function b(a){return a.options.lineArc?0:a.chart.data.labels.length}function c(a){var b=a.options.pointLabels,c=n.getValueOrDefault(b.fontSize,o.defaultFontSize),d=n.getValueOrDefault(b.fontStyle,o.defaultFontStyle),e=n.getValueOrDefault(b.fontFamily,o.defaultFontFamily),f=n.fontString(c,d,e);return{size:c,style:d,family:e,font:f}}function d(a,b,c){return n.isArray(c)?{w:n.longestText(a,a.font,c),h:c.length*b+1.5*(c.length-1)*b}:{w:a.measureText(c).width,h:b}}function e(a,b,c,d,e){return a===d||a===e?{start:b-c/2,end:b+c/2}:a<d||a>e?{start:b-c-5,end:b}:{start:b,end:b+c+5}}function f(a){var f,g,h,i=c(a),j=Math.min(a.height/2,a.width/2),k={l:a.width,r:0,t:a.height,b:0},l={};a.ctx.font=i.font,a._pointLabelSizes=[];var m=b(a);for(f=0;f<m;f++){h=a.getPointPosition(f,j),g=d(a.ctx,i.size,a.pointLabels[f]||""),a._pointLabelSizes[f]=g;var o=a.getIndexAngle(f),p=n.toDegrees(o)%360,q=e(p,h.x,g.w,0,180),r=e(p,h.y,g.h,90,270);q.start<k.l&&(k.l=q.start,l.l=o),q.end>k.r&&(k.r=q.end,l.r=o),r.start<k.t&&(k.t=r.start,l.t=o),r.end>k.b&&(k.b=r.end,l.b=o)}a.setReductions(j,k,l)}function g(a){var b=Math.min(a.height/2,a.width/2);a.drawingArea=Math.round(b),a.setCenterPoint(0,0,0,0)}function h(a){return 0===a||180===a?"center":a<180?"left":"right"}function i(a,b,c,d){if(n.isArray(b))for(var e=c.y,f=1.5*d,g=0;g<b.length;++g)a.fillText(b[g],c.x,e),e+=f;else a.fillText(b,c.x,c.y)}function j(a,b,c){90===a||270===a?c.y-=b.h/2:(a>270||a<90)&&(c.y-=b.h)}function k(a){var d=a.ctx,e=n.getValueOrDefault,f=a.options,g=f.angleLines,k=f.pointLabels;d.lineWidth=g.lineWidth,d.strokeStyle=g.color;var l=a.getDistanceFromCenterForValue(f.reverse?a.min:a.max),m=c(a);d.textBaseline="top";for(var p=b(a)-1;p>=0;p--){if(g.display){var q=a.getPointPosition(p,l);d.beginPath(),d.moveTo(a.xCenter,a.yCenter),d.lineTo(q.x,q.y),d.stroke(),d.closePath()}var r=a.getPointPosition(p,l+5),s=e(k.fontColor,o.defaultFontColor);d.font=m.font,d.fillStyle=s;var t=a.getIndexAngle(p),u=n.toDegrees(t);d.textAlign=h(u),j(u,a._pointLabelSizes[p],r),i(d,a.pointLabels[p]||"",r,m.size)}}function l(a,c,d,e){var f=a.ctx;if(f.strokeStyle=n.getValueAtIndexOrDefault(c.color,e-1),f.lineWidth=n.getValueAtIndexOrDefault(c.lineWidth,e-1),a.options.lineArc)f.beginPath(),f.arc(a.xCenter,a.yCenter,d,0,2*Math.PI),f.closePath(),f.stroke();else{var g=b(a);if(0===g)return;f.beginPath();var h=a.getPointPosition(0,d);f.moveTo(h.x,h.y);for(var i=1;i<g;i++)h=a.getPointPosition(i,d),f.lineTo(h.x,h.y);f.closePath(),f.stroke()}}function m(a){return n.isNumber(a)?a:0}var n=a.helpers,o=a.defaults.global,p={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:a.Ticks.formatters.linear},pointLabels:{fontSize:10,callback:function(a){return a}}},q=a.LinearScaleBase.extend({setDimensions:function(){var a=this,b=a.options,c=b.ticks;a.width=a.maxWidth,a.height=a.maxHeight,a.xCenter=Math.round(a.width/2),a.yCenter=Math.round(a.height/2);var d=n.min([a.height,a.width]),e=n.getValueOrDefault(c.fontSize,o.defaultFontSize);a.drawingArea=b.display?d/2-(e/2+c.backdropPaddingY):d/2},determineDataLimits:function(){var a=this,b=a.chart,c=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY;n.each(b.data.datasets,function(e,f){if(b.isDatasetVisible(f)){var g=b.getDatasetMeta(f);n.each(e.data,function(b,e){var f=+a.getRightValue(b);isNaN(f)||g.data[e].hidden||(c=Math.min(f,c),d=Math.max(f,d))})}}),a.min=c===Number.POSITIVE_INFINITY?0:c,a.max=d===Number.NEGATIVE_INFINITY?0:d,a.handleTickRangeOptions()},getTickLimit:function(){var a=this.options.ticks,b=n.getValueOrDefault(a.fontSize,o.defaultFontSize);return Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*b)))},convertTicksToLabels:function(){var b=this;a.LinearScaleBase.prototype.convertTicksToLabels.call(b),b.pointLabels=b.chart.data.labels.map(b.options.pointLabels.callback,b)},getLabelForIndex:function(a,b){return+this.getRightValue(this.chart.data.datasets[b].data[a])},fit:function(){this.options.lineArc?g(this):f(this)},setReductions:function(a,b,c){var d=this,e=b.l/Math.sin(c.l),f=Math.max(b.r-d.width,0)/Math.sin(c.r),g=-b.t/Math.cos(c.t),h=-Math.max(b.b-d.height,0)/Math.cos(c.b);e=m(e),f=m(f),g=m(g),h=m(h),d.drawingArea=Math.min(Math.round(a-(e+f)/2),Math.round(a-(g+h)/2)),d.setCenterPoint(e,f,g,h)},setCenterPoint:function(a,b,c,d){var e=this,f=e.width-b-e.drawingArea,g=a+e.drawingArea,h=c+e.drawingArea,i=e.height-d-e.drawingArea;e.xCenter=Math.round((g+f)/2+e.left),e.yCenter=Math.round((h+i)/2+e.top)},getIndexAngle:function(a){var c=2*Math.PI/b(this),d=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,e=d*Math.PI*2/360;return a*c+e},getDistanceFromCenterForValue:function(a){var b=this;if(null===a)return 0;var c=b.drawingArea/(b.max-b.min);return b.options.reverse?(b.max-a)*c:(a-b.min)*c},getPointPosition:function(a,b){var c=this,d=c.getIndexAngle(a)-Math.PI/2;return{x:Math.round(Math.cos(d)*b)+c.xCenter,y:Math.round(Math.sin(d)*b)+c.yCenter}},getPointPositionForValue:function(a,b){return this.getPointPosition(a,this.getDistanceFromCenterForValue(b))},getBasePosition:function(){var a=this,b=a.min,c=a.max;return a.getPointPositionForValue(0,a.beginAtZero?0:b<0&&c<0?c:b>0&&c>0?b:0)},draw:function(){var a=this,b=a.options,c=b.gridLines,d=b.ticks,e=n.getValueOrDefault;if(b.display){var f=a.ctx,g=e(d.fontSize,o.defaultFontSize),h=e(d.fontStyle,o.defaultFontStyle),i=e(d.fontFamily,o.defaultFontFamily),j=n.fontString(g,h,i);n.each(a.ticks,function(h,i){if(i>0||b.reverse){var k=a.getDistanceFromCenterForValue(a.ticksAsNumbers[i]),m=a.yCenter-k;if(c.display&&0!==i&&l(a,c,k,i),d.display){var n=e(d.fontColor,o.defaultFontColor);if(f.font=j,d.showLabelBackdrop){var p=f.measureText(h).width;f.fillStyle=d.backdropColor,f.fillRect(a.xCenter-p/2-d.backdropPaddingX,m-g/2-d.backdropPaddingY,p+2*d.backdropPaddingX,g+2*d.backdropPaddingY)}f.textAlign="center",f.textBaseline="middle",f.fillStyle=n,f.fillText(h,a.xCenter,m)}}}),b.lineArc||k(a)}}});a.scaleService.registerScaleType("radialLinear",q,p)}},{}],48:[function(a,b,c){"use strict";var d=a(1);d="function"==typeof d?d:window.moment,b.exports=function(a){var b=a.helpers,c={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}]},e={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}},f=a.Scale.extend({initialize:function(){if(!d)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");a.Scale.prototype.initialize.call(this)},getLabelMoment:function(a,b){return null===a||null===b?null:"undefined"!=typeof this.labelMoments[a]?this.labelMoments[a][b]:null},getLabelDiff:function(a,b){var c=this;return null===a||null===b?null:(void 0===c.labelDiffs&&c.buildLabelDiffs(),"undefined"!=typeof c.labelDiffs[a]?c.labelDiffs[a][b]:null)},getMomentStartOf:function(a){var b=this;return"week"===b.options.time.unit&&b.options.time.isoWeekday!==!1?a.clone().startOf("isoWeek").isoWeekday(b.options.time.isoWeekday):a.clone().startOf(b.tickUnit)},determineDataLimits:function(){var a=this;a.labelMoments=[];var c=[];a.chart.data.labels&&a.chart.data.labels.length>0?(b.each(a.chart.data.labels,function(b){var d=a.parseTime(b);d.isValid()&&(a.options.time.round&&d.startOf(a.options.time.round),c.push(d))},a),a.firstTick=d.min.call(a,c),a.lastTick=d.max.call(a,c)):(a.firstTick=null,a.lastTick=null),b.each(a.chart.data.datasets,function(e,f){var g=[],h=a.chart.isDatasetVisible(f);"object"==typeof e.data[0]&&null!==e.data[0]?b.each(e.data,function(b){var c=a.parseTime(a.getRightValue(b));c.isValid()&&(a.options.time.round&&c.startOf(a.options.time.round),g.push(c),h&&(a.firstTick=null!==a.firstTick?d.min(a.firstTick,c):c,a.lastTick=null!==a.lastTick?d.max(a.lastTick,c):c))},a):g=c,a.labelMoments.push(g)},a),a.options.time.min&&(a.firstTick=a.parseTime(a.options.time.min)),a.options.time.max&&(a.lastTick=a.parseTime(a.options.time.max)),a.firstTick=(a.firstTick||d()).clone(),a.lastTick=(a.lastTick||d()).clone()},buildLabelDiffs:function(){var a=this;a.labelDiffs=[];var c=[];a.chart.data.labels&&a.chart.data.labels.length>0&&b.each(a.chart.data.labels,function(b){var d=a.parseTime(b);d.isValid()&&(a.options.time.round&&d.startOf(a.options.time.round),c.push(d.diff(a.firstTick,a.tickUnit,!0)))},a),b.each(a.chart.data.datasets,function(d){var e=[];"object"==typeof d.data[0]&&null!==d.data[0]?b.each(d.data,function(b){var c=a.parseTime(a.getRightValue(b));c.isValid()&&(a.options.time.round&&c.startOf(a.options.time.round),e.push(c.diff(a.firstTick,a.tickUnit,!0)))},a):e=c,a.labelDiffs.push(e)},a)},buildTicks:function(){var d=this;d.ctx.save();var e=b.getValueOrDefault(d.options.ticks.fontSize,a.defaults.global.defaultFontSize),f=b.getValueOrDefault(d.options.ticks.fontStyle,a.defaults.global.defaultFontStyle),g=b.getValueOrDefault(d.options.ticks.fontFamily,a.defaults.global.defaultFontFamily),h=b.fontString(e,f,g);if(d.ctx.font=h,d.ticks=[],d.unitScale=1,d.scaleSizeInUnits=0,d.options.time.unit)d.tickUnit=d.options.time.unit||"day",d.displayFormat=d.options.time.displayFormats[d.tickUnit],d.scaleSizeInUnits=d.lastTick.diff(d.firstTick,d.tickUnit,!0),d.unitScale=b.getValueOrDefault(d.options.time.unitStepSize,1);else{var i=d.isHorizontal()?d.width:d.height,j=d.tickFormatFunction(d.firstTick,0,[]),k=d.ctx.measureText(j).width,l=Math.cos(b.toRadians(d.options.ticks.maxRotation)),m=Math.sin(b.toRadians(d.options.ticks.maxRotation));k=k*l+e*m;var n=i/k;d.tickUnit=d.options.time.minUnit,d.scaleSizeInUnits=d.lastTick.diff(d.firstTick,d.tickUnit,!0),d.displayFormat=d.options.time.displayFormats[d.tickUnit];for(var o=0,p=c.units[o];o<c.units.length;){if(d.unitScale=1,b.isArray(p.steps)&&Math.ceil(d.scaleSizeInUnits/n)<b.max(p.steps)){for(var q=0;q<p.steps.length;++q)if(p.steps[q]>=Math.ceil(d.scaleSizeInUnits/n)){d.unitScale=b.getValueOrDefault(d.options.time.unitStepSize,p.steps[q]);break}break}if(p.maxStep===!1||Math.ceil(d.scaleSizeInUnits/n)<p.maxStep){d.unitScale=b.getValueOrDefault(d.options.time.unitStepSize,Math.ceil(d.scaleSizeInUnits/n));break}++o,p=c.units[o],d.tickUnit=p.name;var r=d.firstTick.diff(d.getMomentStartOf(d.firstTick),d.tickUnit,!0),s=d.getMomentStartOf(d.lastTick.clone().add(1,d.tickUnit)).diff(d.lastTick,d.tickUnit,!0);d.scaleSizeInUnits=d.lastTick.diff(d.firstTick,d.tickUnit,!0)+r+s,d.displayFormat=d.options.time.displayFormats[p.name]}}var t;if(d.options.time.min?t=d.getMomentStartOf(d.firstTick):(d.firstTick=d.getMomentStartOf(d.firstTick),t=d.firstTick),!d.options.time.max){var u=d.getMomentStartOf(d.lastTick),v=u.diff(d.lastTick,d.tickUnit,!0);v<0?d.lastTick=d.getMomentStartOf(d.lastTick.add(1,d.tickUnit)):v>=0&&(d.lastTick=u),d.scaleSizeInUnits=d.lastTick.diff(d.firstTick,d.tickUnit,!0)}d.options.time.displayFormat&&(d.displayFormat=d.options.time.displayFormat),d.ticks.push(d.firstTick.clone());for(var w=d.unitScale;w<=d.scaleSizeInUnits;w+=d.unitScale){var x=t.clone().add(w,d.tickUnit);if(d.options.time.max&&x.diff(d.lastTick,d.tickUnit,!0)>=0)break;d.ticks.push(x)}var y=d.ticks[d.ticks.length-1].diff(d.lastTick,d.tickUnit);0===y&&0!==d.scaleSizeInUnits||(d.options.time.max?(d.ticks.push(d.lastTick.clone()),d.scaleSizeInUnits=d.lastTick.diff(d.ticks[0],d.tickUnit,!0)):(d.ticks.push(d.lastTick.clone()),d.scaleSizeInUnits=d.lastTick.diff(d.firstTick,d.tickUnit,!0))),d.ctx.restore(),d.labelDiffs=void 0},getLabelForIndex:function(a,b){var c=this,d=c.chart.data.labels&&a<c.chart.data.labels.length?c.chart.data.labels[a]:"",e=c.chart.data.datasets[b].data[a];return null!==e&&"object"==typeof e&&(d=c.getRightValue(e)),c.options.time.tooltipFormat&&(d=c.parseTime(d).format(c.options.time.tooltipFormat)),d},tickFormatFunction:function(a,c,d){var e=a.format(this.displayFormat),f=this.options.ticks,g=b.getValueOrDefault(f.callback,f.userCallback);return g?g(e,c,d):e},convertTicksToLabels:function(){var a=this;a.tickMoments=a.ticks,a.ticks=a.ticks.map(a.tickFormatFunction,a)},getPixelForValue:function(a,b,c){var d=this,e=null;if(void 0!==b&&void 0!==c&&(e=d.getLabelDiff(c,b)),null===e&&(a&&a.isValid||(a=d.parseTime(d.getRightValue(a))),a&&a.isValid&&a.isValid()&&(e=a.diff(d.firstTick,d.tickUnit,!0))),null!==e){var f=0!==e?e/d.scaleSizeInUnits:e;if(d.isHorizontal()){var g=d.width*f;return d.left+Math.round(g)}var h=d.height*f;return d.top+Math.round(h)}},getPixelForTick:function(a){return this.getPixelForValue(this.tickMoments[a],null,null)},getValueForPixel:function(a){var b=this,c=b.isHorizontal()?b.width:b.height,e=(a-(b.isHorizontal()?b.left:b.top))/c;return e*=b.scaleSizeInUnits,b.firstTick.clone().add(d.duration(e,b.tickUnit).asSeconds(),"seconds")},parseTime:function(a){var b=this;return"string"==typeof b.options.time.parser?d(a,b.options.time.parser):"function"==typeof b.options.time.parser?b.options.time.parser(a):"function"==typeof a.getMonth||"number"==typeof a?d(a):a.isValid&&a.isValid()?a:"string"!=typeof b.options.time.format&&b.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"),b.options.time.format(a)):d(a,b.options.time.format)}});a.scaleService.registerScaleType("time",f,e)}},{1:1}]},{},[7])(7)});