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