mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-18 11:21:38 +03:00
1 line
204 KiB
JavaScript
1 line
204 KiB
JavaScript
!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 i(a,r,o){function s(n,t){if(!r[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw(e=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",e}e=r[n]={exports:{}},a[n][0].call(e.exports,function(t){var e=a[n][1][t];return s(e||t)},e,e.exports,i,a,r,o)}return r[n].exports}for(var l="function"==typeof require&&require,t=0;t<o.length;t++)s(o[t]);return s}({1:[function(t,e,n){var r=t(5);function i(t){if(t){var e=[0,0,0],n=1;if(i=t.match(/^#([a-fA-F0-9]{3})$/i))for(var i=i[1],a=0;a<e.length;a++)e[a]=parseInt(i[a]+i[a],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(a=0;a<e.length;a++)e[a]=parseInt(i.slice(2*a,2*a+2),16)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=r[i[1]]))return}for(a=0;a<e.length;a++)e[a]=d(e[a],0,255);return n=n||0==n?d(n,0,1):1,e[3]=n,e}}function a(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){t=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(t)?1:t,0,1)]}}}function o(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){t=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(t)?1:t,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:a,getRgb:function(t){t=i(t);return t&&t.slice(0,3)},getHsl:function(t){t=a(t);return t&&t.slice(0,3)},getHwb:o,getAlpha:function(t){var e=i(t);return(e=e||a(t))||(e=o(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+n+"%, "+e+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in r)f[r[c]]=c},{5:5}],2:[function(t,e,n){var d=t(4),i=t(1),o=function(t){return t instanceof o?t:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=i.getRgba(t))?this.setValues("rgb",e):(e=i.getHsla(t))?this.setValues("hsl",e):(e=i.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new o(t);var e};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"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,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),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,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,a=void 0===e?.5:e,t=2*a-1,e=n.alpha()-i.alpha(),t=(1+(t*e==-1?t:(t+e)/(1+t*e)))/2,e=1-t;return this.rgb(t*n.red()+e*i.red(),t*n.green()+e*i.green(),t*n.blue()+e*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n,i=new o,a=this.values,r=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?r[n]=t.slice(0):"[object Number]"===e?r[n]=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,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[r[t][0]]){for(var l=r[t],u=0;u<t.length;u++)a[t][u]=e[l[u]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(o[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in r)i!==t&&(a[i]=d[t][i](a[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n===i[e]||(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{1:1,4:4}],3:[function(t,e,n){function a(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.min(n,i,a),o=Math.max(n,i,a),t=o-r;return o==r?e=0:n==o?e=(i-a)/t:i==o?e=2+(a-n)/t:a==o&&(e=4+(n-i)/t),(e=Math.min(60*e,360))<0&&(e+=360),i=(r+o)/2,[e,100*(o==r?0:i<=.5?t/(o+r):t/(2-o-r)),100*i]}function i(t){var e,n=t[0],i=t[1],a=t[2],r=Math.min(n,i,a),o=Math.max(n,i,a),s=o-r,t=0==o?0:s/o*1e3/10;return o==r?e=0:n==o?e=(i-a)/s:i==o?e=2+(a-n)/s:a==o&&(e=4+(n-i)/s),(e=Math.min(60*e,360))<0&&(e+=360),[e,t,o/255*1e3/10]}function o(t){var e=t[0],n=t[1],i=t[2];return[a(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(i=1-1/255*Math.max(e,Math.max(n,i)))]}function s(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,t=Math.min(1-e,1-n,1-i);return[100*((1-e-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]}function l(t){return D[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*n+.0722*t),100*(.0193*e+.1192*n+.9505*t)]}function d(t){var e=u(t),n=e[0],t=e[1],e=e[2];return t/=100,e/=108.883,n=.008856<(n/=95.047)?Math.pow(n,1/3):7.787*n+16/116,[116*(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116)-16,500*(n-t),200*(t-(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116))]}function h(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100;if(0==a)return[n=255*t,n,n];for(var r,o=2*t-(r=t<.5?t*(1+a):t+a-t*a),s=[0,0,0],l=0;l<3;l++)(e=i+1/3*-(l-1))<0&&e++,1<e&&e--,n=6*e<1?o+6*(r-o)*e:2*e<1?r:3*e<2?o+(r-o)*(2/3-e)*6:o,s[l]=255*n;return s}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),a=255*i*(1-n),r=255*i*(1-n*e),o=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,o,a];case 1:return[r,i,a];case 2:return[a,i,o];case 3:return[a,r,i];case 4:return[o,a,i];case 5:return[i,a,r]}}function f(t){var e,n,i=t[0]/360,a=t[1]/100,o=t[2]/100,t=a+o;switch(1<t&&(a/=t,o/=t),i=6*i-(t=Math.floor(6*i)),n=a+(i=0!=(1&t)?1-i:i)*((e=1-o)-a),t){default:case 6:case 0:r=e,g=n,b=a;break;case 1:r=n,g=e,b=a;break;case 2:r=a,g=e,b=n;break;case 3:r=a,g=n,b=e;break;case 4:r=n,g=a,b=e;break;case 5:r=e,g=a,b=n}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t))]}function p(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=3.2406*e+-1.5372*n+-.4986*i,t=-.9689*e+1.8758*n+.0415*i,i=.0557*e+-.204*n+1.057*i;return a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:12.92*a,t=.0031308<t?1.055*Math.pow(t,1/2.4)-.055:12.92*t,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1)),255*(i=Math.min(Math.max(0,i),1))]}function v(t){var e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function y(t){var e,n=t[0],i=t[1],t=t[2],n=n<=8?(e=100*n/903.3)/100*7.787+16/116:(e=100*Math.pow((n+16)/116,3),Math.pow(e/100,1/3)),a=a/95.047<=.008856?95.047*(i/500+n-16/116)/7.787:95.047*Math.pow(i/500+n,3),r=r/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,r]}function x(t){var e=t[0],n=t[1],i=t[2],t=360*Math.atan2(i,n)/2/Math.PI;return t<0&&(t+=360),[e,Math.sqrt(n*n+i*i),t]}function _(t){return p(y(t))}function k(t){var e=t[0],n=t[1],t=t[2]/360*2*Math.PI;return[e,n*Math.cos(t),n*Math.sin(t)]}function w(t){return S[t]}e.exports={rgb2hsl:a,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],n=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(n*=(t*=2)<=1?t:2-t)/(t+n)),100*((t+n)/2)]:[0,0,0]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e=t[0],n=t[1]/100,i=t[2]/100;return t=n*i,[e,100*(t=(t/=(i=(2-n)*i)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return a(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return a(m(t))},cmyk2hsv:function(t){return i(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return a(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return _(k(t))}};var M,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},D={};for(M in S)D[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){function a(){return new l}var i,r=t(3);for(i in r){a[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(i);var o=/(\w+)2(\w+)/.exec(i),s=o[1],o=o[2];(a[s]=a[s]||{})[o]=a[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=r[i](t);if("string"==typeof e||void 0===e)return e;for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(i)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,n,i=this.convs[t];return i||(e=this.space,n=this.convs[e],i=a[e][t](n),this.convs[t]=i),i},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(xn,_n,t){var e,n;e=this,n=function(){"use strict";var t;function h(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return Ce(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=f(t),n=p.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function m(t){var e=d(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}var p=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},v=h.momentProperties=[];function y(t,e){var n,i,a;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)r(a=e[i=v[n]])||(t[i]=a);return t}var e=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,h.updateOffset(this),e=!1)}function x(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,t=0;return t=0!=e&&isFinite(e)?_(e):t}function w(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0,o=0;o<i;o++)(n&&t[o]!==e[o]||!n&&k(t[o])!==k(e[o]))&&r++;return r+a}function M(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(a,r){var o=!0;return u(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,a),o){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}M(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),o=!1}return r.apply(this,arguments)},r)}var S={};function D(t,e){null!=h.deprecationHandler&&h.deprecationHandler(t,e),S[t]||(M(e),S[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var n,i=u({},t);for(n in e)c(e,n)&&(s(t[n])&&s(e[n])?(i[n]={},u(i[n],t[n]),u(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)c(t,n)&&!c(e,n)&&s(t[n])&&(i[n]=u({},i[n]));return i}function T(t){null!=t&&this.set(t)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null;var O=Object.keys||function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var I={};function A(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function F(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)c(t,n)&&(e=F(n))&&(i[e]=t[n]);return i}var L={};function Y(t,e){L[t]=e}function W(t,e,n){var i=""+Math.abs(t),e=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+i}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function B(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(V[t]=a),e&&(V[e[0]]=function(){return W(a.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function E(t,e){return t.isValid()?(e=j(e,t.localeData()),H[e]=H[e]||function(i){for(var t,a=i.match(N),e=0,r=a.length;e<r;e++)V[a[e]]?a[e]=V[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<r;n++)e+=C(a[n])?a[n].call(t,i):a[n];return e}}(e),H[e](t)):t.localeData().invalidDate()}function j(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;0<=n&&z.test(t);)t=t.replace(z,i),z.lastIndex=0,--n;return t}var U=/\d/,q=/\d\d/,G=/\d{3}/,Z=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,$=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st={};function lt(t,n,i){st[t]=C(n)?n:function(t,e){return t&&i?i:n}}function ut(t,e){return c(st,t)?st[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function ct(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),l(n)&&(i=function(t,e){e[n]=k(t)}),e=0;e<t.length;e++)ht[t[e]]=i}function ft(t,a){ct(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var gt=0,mt=1,pt=2,vt=3,yt=4,bt=5,xt=6,_t=7,kt=8;function wt(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}B("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),A("year","y"),Y("year",1),lt("Y",it),lt("YY",J,q),lt("YYYY",tt,Z),lt("YYYYY",et,X),lt("YYYYYY",et,X),ct(["YYYYY","YYYYYY"],gt),ct("YYYY",function(t,e){e[gt]=2===t.length?h.parseTwoDigitYear(t):k(t)}),ct("YY",function(t,e){e[gt]=h.parseTwoDigitYear(t)}),ct("Y",function(t,e){e[gt]=parseInt(t,10)}),h.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var St,Dt=Ct("FullYear",!0);function Ct(e,n){return function(t){return null!=t?(Tt(this,e,t),h.updateOffset(this,n),this):Pt(this,e)}}function Pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Tt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ot(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?Mt(t)?29:28:31-n%7%2}St=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),B("MMMM",0,0,function(t){return this.localeData().months(this,t)}),A("month","M"),Y("month",8),lt("M",J),lt("MM",J,q),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ct(["M","MM"],function(t,e){e[mt]=k(t)-1}),ct(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[mt]=i:f(n).invalidMonth=t});var It=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ft="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Lt(t){return null!=t?(Rt(this,t),h.updateOffset(this,!0),this):Pt(this,"Month")}var Yt=ot;var Wt=ot;function Nt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],r=0;r<12;r++)e=d([2e3,r]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),r=0;r<12;r++)n[r]=dt(n[r]),i[r]=dt(i[r]);for(r=0;r<24;r++)a[r]=dt(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function zt(t,e,n,i,a,r,o){o=new Date(t,e,n,i,a,r,o);return t<100&&0<=t&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function Ht(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Vt(t,e,n){n=7+e-n;return n-(7+Ht(t,0,n).getUTCDay()-e)%7-1}function Bt(t,e,n,i,a){var r,a=1+7*(e-1)+(7+n-i)%7+Vt(t,i,a),a=a<=0?wt(r=t-1)+a:a>wt(t)?(r=t+1,a-wt(t)):(r=t,a);return{year:r,dayOfYear:a}}function Et(t,e,n){var i,a,r=Vt(t.year(),e,n),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?i=r+jt(a=t.year()-1,e,n):r>jt(t.year(),e,n)?(i=r-jt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function jt(t,e,n){var i=Vt(t,e,n),n=Vt(t+1,e,n);return(wt(t)-i+n)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),Y("week",5),Y("isoWeek",5),lt("w",J),lt("ww",J,q),lt("W",J),lt("WW",J,q),ft(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)});B("d",0,"do","day"),B("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),B("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),B("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ft(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:f(n).invalidWeekday=t}),ft(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Gt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Zt=ot;var Xt=ot;var Jt=ot;function Kt(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=d([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),r.push(n),o.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),r.sort(t),o.sort(t),s.sort(t),l=0;l<7;l++)r[l]=dt(r[l]),o[l]=dt(o[l]),s[l]=dt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $t(){return this.hours()%12||12}function Qt(t,e){B(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,$t),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+$t.apply(this)+W(this.minutes(),2)}),B("hmmss",0,0,function(){return""+$t.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Qt("a",!0),Qt("A",!1),A("hour","h"),Y("hour",13),lt("a",te),lt("A",te),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,q),lt("hh",J,q),lt("kk",J,q),lt("hmm",K),lt("hmmss",$),lt("Hmm",K),lt("Hmmss",$),ct(["H","HH"],vt),ct(["k","kk"],function(t,e,n){t=k(t);e[vt]=24===t?0:t}),ct(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ct(["h","hh"],function(t,e,n){e[vt]=k(t),f(n).bigHour=!0}),ct("hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i)),f(n).bigHour=!0}),ct("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i,2)),e[bt]=k(t.substr(a)),f(n).bigHour=!0}),ct("Hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i))}),ct("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i,2)),e[bt]=k(t.substr(a))});var ee,ne=Ct("Hours",!0),ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Ft,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:Gt,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},ae={},re={};function oe(t){return t&&t.toLowerCase().replace("_","-")}function se(t){if(!ae[t]&&void 0!==_n&&_n&&_n.exports)try{var e=ee._abbr;xn("./locale/"+t),le(e)}catch(t){}return ae[t]}function le(t,e){var n;return(ee=t&&(n=r(e)?de(t):ue(t,e))?n:ee)._abbr}function ue(t,e){if(null===e)return delete ae[t],null;var n=ie;if(e.abbr=t,null!=ae[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ae[t]._config;else if(null!=e.parentLocale){if(null==ae[e.parentLocale])return re[e.parentLocale]||(re[e.parentLocale]=[]),re[e.parentLocale].push({name:t,config:e}),null;n=ae[e.parentLocale]._config}return ae[t]=new T(P(n,e)),re[t]&&re[t].forEach(function(t){ue(t.name,t.config)}),le(t),ae[t]}function de(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ee;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,n,i,a,r=0;r<t.length;){for(e=(a=oe(t[r]).split("-")).length,n=(n=oe(t[r+1]))?n.split("-"):null;0<e;){if(i=se(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&w(a,n,!0)>=e-1)break;e--}r++}return null}(t)}function he(t){var e=t._a;return e&&-2===f(t).overflow&&(e=e[mt]<0||11<e[mt]?mt:e[pt]<1||e[pt]>Ot(e[gt],e[mt])?pt:e[vt]<0||24<e[vt]||24===e[vt]&&(0!==e[yt]||0!==e[bt]||0!==e[xt])?vt:e[yt]<0||59<e[yt]?yt:e[bt]<0||59<e[bt]?bt:e[xt]<0||999<e[xt]?xt:-1,f(t)._overflowDayOfYear&&(e<gt||pt<e)&&(e=pt),f(t)._overflowWeeks&&-1===e&&(e=_t),f(t)._overflowWeekday&&-1===e&&(e=kt),f(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function fe(t){var e,n,i,a,r,o=[];if(!t._d){for(a=t,r=new Date(h.now()),n=a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],t._w&&null==t._a[pt]&&null==t._a[mt]&&function(t){var e,n,i,a,r,o,s;{var l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,o=4,n=ce(e.GG,t._a[gt],Et(Pe(),1,4).year),i=ce(e.W,1),((a=ce(e.E,1))<1||7<a)&&(s=!0)):(r=t._locale._week.dow,o=t._locale._week.doy,l=Et(Pe(),r,o),n=ce(e.gg,t._a[gt],l.year),i=ce(e.w,l.week),null!=e.d?((a=e.d)<0||6<a)&&(s=!0):null!=e.e?(a=e.e+r,(e.e<0||6<e.e)&&(s=!0)):a=r)}i<1||i>jt(n,r,o)?f(t)._overflowWeeks=!0:null!=s?f(t)._overflowWeekday=!0:(o=Bt(n,i,a,r,o),t._a[gt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(i=ce(t._a[gt],n[gt]),(t._dayOfYear>wt(i)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Ht(i,0,t._dayOfYear),t._a[mt]=i.getUTCMonth(),t._a[pt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&0===t._a[xt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Ht:zt).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(f(t).weekdayMismatch=!0)}}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ye=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],be=/^\/?Date\((\-?\d+)/i;function xe(t){var e,n,i,a,r,o,s=t._i,l=ge.exec(s)||me.exec(s);if(l){for(f(t).iso=!0,e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[1])){a=ve[e][0],i=!1!==ve[e][2];break}if(null!=a){if(l[3]){for(e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[3])){r=(l[2]||" ")+ye[e][0];break}if(null==r)return void(t._isValid=!1)}if(i||null==r){if(l[4]){if(!pe.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),Se(t)}else t._isValid=!1}else t._isValid=!1}else t._isValid=!1}var _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ke(t,e,n,i,a,r){a=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),Ft.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&a.push(parseInt(r,10)),a}var we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Me(t){var e,n,i,a,r=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());r?(e=ke(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],i=e,a=t,n&&qt.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(f(a).weekdayMismatch=!0,a._isValid=!1):(t._a=e,t._tzm=(a=r[8],e=r[9],r=r[10],a?we[a]:e?0:60*(((e=parseInt(r,10))-(r=e%100))/100)+r),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0)):t._isValid=!1}function Se(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],f(t).empty=!0;for(var e,n,i,a,r,o=""+t._i,s=o.length,l=0,u=j(t._f,t._locale).match(N)||[],d=0;d<u.length;d++)n=u[d],(e=(o.match(ut(n,t))||[])[0])&&(0<(a=o.substr(0,o.indexOf(e))).length&&f(t).unusedInput.push(a),o=o.slice(o.indexOf(e)+e.length),l+=e.length),V[n]?(e?f(t).empty=!1:f(t).unusedTokens.push(n),i=n,r=t,null!=(a=e)&&c(ht,i)&&ht[i](a,r._a,r,i)):t._strict&&!e&&f(t).unusedTokens.push(n);f(t).charsLeftOver=s-l,0<o.length&&f(t).unusedInput.push(o),t._a[vt]<=12&&!0===f(t).bigHour&&0<t._a[vt]&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((n=t.isPM(n))&&e<12&&(e+=12),e=!n&&12===e?0:e):e}(t._locale,t._a[vt],t._meridiem),fe(t),he(t)}else Me(t);else xe(t)}function De(t){var e=t._i,n=t._f;return t._locale=t._locale||de(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new b(he(e)):(i(e)?t._d=e:o(n)?function(t){var e,n,i,a,r;if(0===t._f.length)return f(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)r=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Se(e),g(e)&&(r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,(null==i||r<i)&&(i=r,n=e));u(t,n||e)}(t):n?Se(t):r(n=(e=t)._i)?e._d=new Date(h.now()):i(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(t){var e=be.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Me(t),!1===t._isValid&&(delete t._isValid,h.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):o(n)?(e._a=a(n.slice(0),function(t){return parseInt(t,10)}),fe(e)):s(n)?function(t){var e;t._d||(e=R(t._i),t._a=a([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t))}(e):l(n)?e._d=new Date(n):h.createFromInputFallback(e),g(t)||(t._d=null),t))}function Ce(t,e,n,i,a){var r={};return!0!==n&&!1!==n||(i=n,n=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(t.hasOwnProperty(e))return;return 1}(t)||o(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=t,r._f=e,r._strict=i,(r=new b(he(De(r=r))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Pe(t,e,n,i){return Ce(t,e,n,i,!1)}h.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var Te=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Oe=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ie(t,e){var n,i;if(!(e=1===e.length&&o(e[0])?e[0]:e).length)return Pe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fe(t){var e=R(t),n=e.year||0,i=e.quarter||0,a=e.month||0,r=e.week||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,t=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===St.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ae.length;++i)if(t[Ae[i]]){if(n)return!1;parseFloat(t[Ae[i]])!==k(t[Ae[i]])&&(n=!0)}return!0}(e),this._milliseconds=+t+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=de(),this._bubble()}function Re(t){return t instanceof Fe}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,n){B(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+W(~~(t/60),2)+n+W(~~t%60,2)})}Ye("Z",":"),Ye("ZZ",""),lt("Z",rt),lt("ZZ",rt),ct(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ne(rt,t)});var We=/([\+\-]|\d\d)/gi;function Ne(t,e){e=(e||"").match(t);if(null===e)return null;t=((e[e.length-1]||[])+"").match(We)||["-",0,0],e=60*t[1]+k(t[2]);return 0===e?0:"+"===t[0]?e:-e}function ze(t,e){var n;return e._isUTC?(n=e.clone(),e=(x(t)||i(t)?t:Pe(t)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+e),h.updateOffset(n,!1),n):Pe(t).local()}function He(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ve(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var Be=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ee=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(t,e){var n,i=t,a=null;return Re(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(i={},e?i[e]=t:i.milliseconds=t):(a=Be.exec(t))?(n="-"===a[1]?-1:1,i={y:0,d:k(a[pt])*n,h:k(a[vt])*n,m:k(a[yt])*n,s:k(a[bt])*n,ms:k(Le(1e3*a[xt]))*n}):(a=Ee.exec(t))?(n="-"===a[1]?-1:(a[1],1),i={y:Ue(a[2],n),M:Ue(a[3],n),w:Ue(a[4],n),d:Ue(a[5],n),h:Ue(a[6],n),m:Ue(a[7],n),s:Ue(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(n=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=qe(t,e):((n=qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Pe(i.from),Pe(i.to)),(i={}).ms=n.milliseconds,i.M=n.months),i=new Fe(i),Re(t)&&c(t,"_locale")&&(i._locale=t._locale),i}function Ue(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ge(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(D(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ze(this,je(t="string"==typeof t?+t:t,e),i),this}}function Ze(t,e,n,i){var a=e._milliseconds,r=Le(e._days),e=Le(e._months);t.isValid()&&(i=null==i||i,e&&Rt(t,Pt(t,"Month")+e*n),r&&Tt(t,"Date",Pt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&h.updateOffset(t,r||e))}je.fn=Fe.prototype,je.invalid=function(){return je(NaN)};ot=Ge(1,"add"),K=Ge(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),i=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+i)||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=de(t))&&(this._locale=t),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";$=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Ke(){return this._locale}function $e(t,e){B(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var r;return null==t?Et(this,i,a).year:(r=jt(t,i,a),function(t,e,n,i,a){a=Bt(t,e,n,i,a),a=Ht(a.year,0,a.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e=r<e?r:e,n,i,a))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$e("gggg","weekYear"),$e("ggggg","weekYear"),$e("GGGG","isoWeekYear"),$e("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",J,q),lt("gg",J,q),lt("GGGG",tt,Z),lt("gggg",tt,Z),lt("GGGGG",et,X),lt("ggggg",et,X),ft(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),ft(["gg","GG"],function(t,e,n,i){e[i]=h.parseTwoDigitYear(t)}),B("Q",0,"Qo","quarter"),A("quarter","Q"),Y("quarter",7),lt("Q",U),ct("Q",function(t,e){e[mt]=3*(k(t)-1)}),B("D",["DD",2],"Do","date"),A("date","D"),Y("date",9),lt("D",J),lt("DD",J,q),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ct(["D","DD"],pt),ct("Do",function(t,e){e[pt]=k(t.match(J)[0])});At=Ct("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),Y("dayOfYear",4),lt("DDD",Q),lt("DDDD",G),ct(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),B("m",["mm",2],0,"minute"),A("minute","m"),Y("minute",14),lt("m",J),lt("mm",J,q),ct(["m","mm"],yt);Ut=Ct("Minutes",!1);B("s",["ss",2],0,"second"),A("second","s"),Y("second",15),lt("s",J),lt("ss",J,q),ct(["s","ss"],bt);var tn,Gt=Ct("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),Y("millisecond",16),lt("S",Q,U),lt("SS",Q,q),lt("SSS",Q,G),tn="SSSS";tn.length<=9;tn+="S")lt(tn,nt);function en(t,e){e[xt]=k(1e3*("0."+t))}for(tn="S";tn.length<=9;tn+="S")ct(tn,en);tt=Ct("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");Z=b.prototype;function nn(t){return t}Z.add=ot,Z.calendar=function(t,e){var n=t||Pe(),t=ze(n,this).startOf("day"),t=h.calendarFormat(this,t)||"sameElse",e=e&&(C(e[t])?e[t].call(this,n):e[t]);return this.format(e||this.localeData().calendar(t,this,Pe(n)))},Z.clone=function(){return new b(this)},Z.diff=function(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=ze(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=F(e)){case"year":r=Xe(this,i)/12;break;case"month":r=Xe(this,i);break;case"quarter":r=Xe(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:_(r)},Z.endOf=function(t){return void 0===(t=F(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Z.format=function(t){return t=t||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat),t=E(this,t),this.localeData().postformat(t)},Z.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Z.fromNow=function(t){return this.from(Pe(),t)},Z.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Z.toNow=function(t){return this.to(Pe(),t)},Z.get=function(t){return C(this[t=F(t)])?this[t]():this},Z.invalidAt=function(){return f(this).overflow},Z.isAfter=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(r(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},Z.isBefore=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(r(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},Z.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},Z.isSame=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(e||"millisecond"))?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},Z.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Z.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Z.isValid=function(){return g(this)},Z.lang=$,Z.locale=Je,Z.localeData=Ke,Z.max=Oe,Z.min=Te,Z.parsingFlags=function(){return u({},f(this))},Z.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)n.push({unit:e,priority:L[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(C(this[t=F(t)]))return this[t](e);return this},Z.startOf=function(t){switch(t=F(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Z.subtract=K,Z.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Z.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t;return(t=e?this.clone().utc():this).year()<0||9999<t.year()?E(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",E(t,"Z")):E(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e=e+'[")]';return this.format(n+t+"-MM-DD[T]HH:mm:ss.SSS"+e)},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.year=Dt,Z.isLeapYear=function(){return Mt(this.year())},Z.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Z.month=Lt,Z.daysInMonth=function(){return Ot(this.year(),this.month())},Z.week=Z.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Z.isoWeek=Z.isoWeeks=function(t){var e=Et(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Z.weeksInYear=function(){var t=this.localeData()._week;return jt(this.year(),t.dow,t.doy)},Z.isoWeeksInYear=function(){return jt(this.year(),1,4)},Z.date=At,Z.day=Z.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},Z.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Z.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e=(e=t,t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?e:e-7)},Z.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Z.hour=Z.hours=ne,Z.minute=Z.minutes=Ut,Z.second=Z.seconds=Gt,Z.millisecond=Z.milliseconds=tt,Z.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=Ne(rt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ze(this,je(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(t){return this.utcOffset(0,t)},Z.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},Z.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ne(at,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Ve,Z.isUTC=Ve,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=n("dates accessor is deprecated. Use date instead.",At),Z.months=n("months accessor is deprecated. Use month instead",Lt),Z.years=n("years accessor is deprecated. Use year instead",Dt),Z.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),Z.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=De(e))._a?(t=(e._isUTC?d:Pe)(e._a),this._isDSTShifted=this.isValid()&&0<w(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});et=T.prototype;function an(t,e,n,i){var a=de(),e=d().set(i,e);return a[n](e,t)}function rn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return an(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=an(t,a,n,"month");return i}function on(t,e,n,i){e=("boolean"==typeof t?l(e)&&(n=e,e=void 0):(e=t,t=!1,l(n=e)&&(n=e,e=void 0)),e||"");var a=de(),r=t?a._week.dow:0;if(null!=n)return an(e,(n+r)%7,i,"day");for(var o=[],s=0;s<7;s++)o[s]=an(e,(s+r)%7,i,"day");return o}et.calendar=function(t,e,n){return C(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},et.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},et.invalidDate=function(){return this._invalidDate},et.ordinal=function(t){return this._ordinal.replace("%d",t)},et.preparse=nn,et.postformat=nn,et.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return C(a)?a(t,e,n,i):a.replace(/%d/i,t)},et.pastFuture=function(t,e){return C(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},et.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},et.months=function(t,e){return t?(o(this._months)?this._months:this._months[(this._months.isFormat||It).test(e)?"format":"standalone"])[t.month()]:o(this._months)?this._months:this._months.standalone},et.monthsShort=function(t,e){return t?(o(this._monthsShort)?this._monthsShort:this._monthsShort[It.test(e)?"format":"standalone"])[t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},et.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=St.call(this._shortMonthsParse,t))?a:null:-1!==(a=St.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=St.call(this._shortMonthsParse,t))||-1!==(a=St.call(this._longMonthsParse,t))?a:null:-1!==(a=St.call(this._longMonthsParse,t))||-1!==(a=St.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},et.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},et.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Yt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},et.week=function(t){return Et(t,this._week.dow,this._week.doy).week},et.firstDayOfYear=function(){return this._week.doy},et.firstDayOfWeek=function(){return this._week.dow},et.weekdays=function(t,e){return t?(o(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},et.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},et.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},et.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=St.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=St.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._shortWeekdaysParse,t))||-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=St.call(this._shortWeekdaysParse,t))||-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:-1!==(a=St.call(this._minWeekdaysParse,t))||-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},et.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},et.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},et.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},et.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},et.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},le("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),h.lang=n("moment.lang is deprecated. Use moment.locale instead.",le),h.langData=n("moment.langData is deprecated. Use moment.localeData instead.",de);var sn=Math.abs;function ln(t,e,n,i){n=je(e,n);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function un(t){return t<0?Math.floor(t):Math.ceil(t)}function dn(t){return 4800*t/146097}function hn(t){return 146097*t/4800}function cn(t){return function(){return this.as(t)}}X=cn("ms"),U=cn("s"),q=cn("m"),Q=cn("h"),G=cn("d"),ot=cn("w"),Oe=cn("M"),Te=cn("y");function fn(t){return function(){return this.isValid()?this._data[t]:NaN}}K=fn("milliseconds"),ne=fn("seconds"),Ut=fn("minutes"),Gt=fn("hours"),tt=fn("days"),At=fn("months"),Dt=fn("years");var gn=Math.round,mn={ss:44,s:45,m:45,h:22,d:26,M:11};function pn(t,e,n){var i=je(t).abs(),a=gn(i.as("s")),r=gn(i.as("m")),o=gn(i.as("h")),s=gn(i.as("d")),l=gn(i.as("M")),i=gn(i.as("y")),i=(a<=mn.ss?["s",a]:a<mn.s&&["ss",a])||r<=1&&["m"]||r<mn.m&&["mm",r]||o<=1&&["h"]||o<mn.h&&["hh",o]||s<=1&&["d"]||s<mn.d&&["dd",s]||l<=1&&["M"]||l<mn.M&&["MM",l]||i<=1&&["y"]||["yy",i];return i[2]=e,i[3]=0<+t,i[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,i)}var vn=Math.abs;function yn(t){return(0<t)-(t<0)||+t}function bn(){if(!this.isValid())return this.localeData().invalidDate();var t=vn(this._milliseconds)/1e3,e=vn(this._days),n=vn(this._months),i=_(t/60),a=_(i/60);t%=60,i%=60;var r=_(n/12),o=n%=12,s=e,l=a,u=i,n=t?t.toFixed(3).replace(/\.?0+$/,""):"",e=this.asSeconds();if(!e)return"P0D";a=e<0?"-":"",i=yn(this._months)!==yn(e)?"-":"",t=yn(this._days)!==yn(e)?"-":"",e=yn(this._milliseconds)!==yn(e)?"-":"";return a+"P"+(r?i+r+"Y":"")+(o?i+o+"M":"")+(s?t+s+"D":"")+(l||u||n?"T":"")+(l?e+l+"H":"")+(u?e+u+"M":"")+(n?e+n+"S":"")}et=Fe.prototype;return et.isValid=function(){return this._isValid},et.abs=function(){var t=this._data;return this._milliseconds=sn(this._milliseconds),this._days=sn(this._days),this._months=sn(this._months),t.milliseconds=sn(t.milliseconds),t.seconds=sn(t.seconds),t.minutes=sn(t.minutes),t.hours=sn(t.hours),t.months=sn(t.months),t.years=sn(t.years),this},et.add=function(t,e){return ln(this,t,e,1)},et.subtract=function(t,e){return ln(this,t,e,-1)},et.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=F(t))||"year"===t)return e=this._days+i/864e5,n=this._months+dn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},et.asMilliseconds=X,et.asSeconds=U,et.asMinutes=q,et.asHours=Q,et.asDays=G,et.asWeeks=ot,et.asMonths=Oe,et.asYears=Te,et.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},et._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*un(hn(n)+e),n=e=0),i.milliseconds=t%1e3,t=_(t/1e3),i.seconds=t%60,t=_(t/60),i.minutes=t%60,t=_(t/60),i.hours=t%24,e+=_(t/24),n+=t=_(dn(e)),e-=un(hn(t)),t=_(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},et.clone=function(){return je(this)},et.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},et.milliseconds=K,et.seconds=ne,et.minutes=Ut,et.hours=Gt,et.days=tt,et.weeks=function(){return _(this.days()/7)},et.months=At,et.years=Dt,et.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},et.toISOString=bn,et.toString=bn,et.toJSON=bn,et.locale=Je,et.localeData=Ke,et.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),et.lang=$,B("X",0,0,"unix"),B("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),ct("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ct("x",function(t,e,n){n._d=new Date(k(t))}),h.version="2.20.1",t=Pe,h.fn=Z,h.min=function(){return Ie("isBefore",[].slice.call(arguments,0))},h.max=function(){return Ie("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=d,h.unix=function(t){return Pe(1e3*t)},h.months=function(t,e){return rn(t,e,"months")},h.isDate=i,h.locale=le,h.invalid=m,h.duration=je,h.isMoment=x,h.weekdays=function(t,e,n){return on(t,e,n,"weekdays")},h.parseZone=function(){return Pe.apply(null,arguments).parseZone()},h.localeData=de,h.isDuration=Re,h.monthsShort=function(t,e){return rn(t,e,"monthsShort")},h.weekdaysMin=function(t,e,n){return on(t,e,n,"weekdaysMin")},h.defineLocale=ue,h.updateLocale=function(t,e){var n,i;return null!=e?(n=ie,(e=new T(e=P(n=null!=(i=se(t))?i._config:n,e))).parentLocale=ae[t],ae[t]=e,le(t)):null!=ae[t]&&(null!=ae[t].parentLocale?ae[t]=ae[t].parentLocale:null!=ae[t]&&delete ae[t]),ae[t]},h.locales=function(){return O(ae)},h.weekdaysShort=function(t,e,n){return on(t,e,n,"weekdaysShort")},h.normalizeUnits=F,h.relativeTimeRounding=function(t){return void 0===t?gn:"function"==typeof t&&(gn=t,!0)},h.relativeTimeThreshold=function(t,e){return void 0!==mn[t]&&(void 0===e?mn[t]:(mn[t]=e,"s"===t&&(mn.ss=e-1),!0))},h.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},h.prototype=Z,h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},h},"object"==typeof t&&void 0!==_n?_n.exports=n():e.moment=n()},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.layouts=t(30),i.platform=t(48),i.plugins=t(31),i.Ticks=t(34),t(22)(i),t(23)(i),t(24)(i),t(33)(i),t(32)(i),t(35)(i),t(55)(i),t(53)(i),t(54)(i),t(56)(i),t(57)(i),t(58)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var a,r=t(49);for(a in r)r.hasOwnProperty(a)&&i.plugins.register(r[a]);i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.Legend=r.legend._element,i.Title=r.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts},{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,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(n){n.Bar=function(t,e){return e.type="bar",new n(t,e)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(n){n.Bubble=function(t,e){return e.type="bubble",new n(t,e)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(n){n.Doughnut=function(t,e){return e.type="doughnut",new n(t,e)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(n){n.Line=function(t,e){return e.type="line",new n(t,e)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(n){n.PolarArea=function(t,e){return e.type="polarArea",new n(t,e)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(n){n.Radar=function(t,e){return e.type="radar",new n(t,e)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(n){n.Scatter=function(t,e){return e.type="scatter",new n(t,e)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),a=t(40),c=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return 0<t.length&&(t[0].yLabel?n=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getMeta(),o=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(r.xAxisID),t._yScale=i.getScaleForId(r.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:o.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||c.valueAtIndexOrDefault(o.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||c.valueAtIndexOrDefault(o.borderColor,e,l.borderColor),borderWidth:s.borderWidth||c.valueAtIndexOrDefault(o.borderWidth,e,l.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,a=t._model,r=i.getValueScale(),o=r.getBasePixel(),s=r.isHorizontal(),t=i._ruler||i.getRuler(),r=i.calculateBarValuePixels(i.index,e),t=i.calculateBarIndexPixels(i.index,e,t);a.horizontal=s,a.base=n?o:r.base,a.x=s?n?o:r.head:t.center,a.y=s?t.center:n?o:r.head,a.height=s?t.size:void 0,a.width=s?void 0:t.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){for(var e,n=this.chart,i=this.getIndexScale().options.stacked,a=void 0===t?n.data.datasets.length:t+1,r=[],o=0;o<a;++o)(e=n.getDatasetMeta(o)).bar&&n.isDatasetVisible(o)&&(!1===i||!0===i&&-1===r.indexOf(e.stack)||void 0===i&&(void 0===e.stack||-1===r.indexOf(e.stack)))&&r.push(e.stack);return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=void 0!==e?t.indexOf(e):-1;return-1===e?t.length-1:e},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),n=this.index,i=t.isHorizontal(),a=i?t.left:t.top,i=a+(i?t.width:t.height),r=[],o=0,s=this.getMeta().data.length;o<s;++o)r.push(t.getPixelForValue(null,o,n));return{min:c.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,r=t.getTicks(),o=1,s=e.length;o<s;++o)a=Math.min(a,e[o]-e[o-1]);for(o=0,s=r.length;o<s;++o)i=t.getPixelForTick(o),a=0<o?Math.min(a,i-n):a,n=i;return a}(t,r):-1,pixels:r,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,r=this.chart,o=this.getMeta(),s=this.getValueScale(),l=r.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=o.stack,c=0;if(d||void 0===d&&void 0!==h)for(n=0;n<t;++n)(i=r.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&r.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),(u<0&&i<0||0<=u&&0<i)&&(c+=i));return a=s.getPixelForValue(c),{size:d=((o=s.getPixelForValue(c+u))-a)/2,base:a,head:o,center:o+d/2}},calculateBarIndexPixels:function(t,e,n){var i,a,r,o,s,l,u,d=n.scale.options,h="flex"===d.barThickness?(i=e,r=d,o=(u=(a=n).pixels)[i],s=0<i?u[i-1]:null,l=i<u.length-1?u[i+1]:null,u=r.categoryPercentage,i=o-(o-(s=null===s?o-(null===l?a.end-o:l-o):s))/2*u,{chunk:((l=null===l?o+o-s:l)-s)/2*u/a.stackCount,ratio:r.barPercentage,start:i}):(a=e,r=n,e=(i=d).barThickness,n=r.stackCount,a=r.pixels[a],e=c.isNullOrUndef(e)?(h=r.min*i.categoryPercentage,i.barPercentage):(h=e*n,1),{chunk:h/n,ratio:e,start:a-h/2}),t=this.getStackIndex(t,this.getMeta().stack),t=h.start+h.chunk*t+h.chunk/2,h=Math.min(c.valueOrDefault(d.maxBarThickness,1/0),h.chunk*h.ratio);return{base:t-h/2,head:t+h/2,center:t,size:h}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,r=0;for(c.canvas.clipArea(t.ctx,t.chartArea);r<a;++r)isNaN(e.getRightValue(i.data[r]))||n[r].draw();c.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.backgroundColor=i.hoverBackgroundColor||c.valueAtIndexOrDefault(e.hoverBackgroundColor,n,c.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||c.valueAtIndexOrDefault(e.hoverBorderColor,n,c.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||c.valueAtIndexOrDefault(e.hoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model,t=this.chart.options.elements.rectangle;a.backgroundColor=i.backgroundColor||c.valueAtIndexOrDefault(e.backgroundColor,n,t.backgroundColor),a.borderColor=i.borderColor||c.valueAtIndexOrDefault(e.borderColor,n,t.borderColor),a.borderWidth=i.borderWidth||c.valueAtIndexOrDefault(e.borderWidth,n,t.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:a.Point,update:function(n){var i=this,t=i.getMeta().data;f.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=t.custom||{},o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),l=i._resolveElementOptions(t,e),u=i.getDataset().data[e],a=i.index,i=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,a),u=n?s.getBasePixel():s.getPixelForValue(u,e,a);t._xScale=o,t._yScale=s,t._options=l,t._datasetIndex=a,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:r.skip||isNaN(i)||isNaN(u),x:i,y:u},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],r=t.custom||{},o=i.options.elements.point,s=f.options.resolve,t=a.data[e],l={},u={chart:i,dataIndex:e,dataset:a,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([r[n],a[n],o[n]],u,e);return l.radius=s([r.radius,t?t.r:void 0,a.radius,o.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var t=t.data,n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],r=a&&a.custom||{},o=y.valueAtIndexOrDefault,a=s.options.elements.arc;return{text:t,fillStyle:r.backgroundColor||o(i.backgroundColor,e,a.backgroundColor),strokeStyle:r.borderColor||o(i.borderColor,e,a.borderColor),lineWidth:r.borderWidth||o(i.borderWidth,e,a.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i]&&(n.data[i].hidden=!n.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],t=": "+e.datasets[t.datasetIndex].data[t.index];return y.isArray(n)?(n=n.slice())[0]+=t:n+=t,n}}}}),i._set("pie",y.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(n){var t,e,i,a,r,o=this,s=o.chart,l=s.chartArea,u=s.options,d=u.elements.arc,h=l.right-l.left-d.borderWidth,c=l.bottom-l.top-d.borderWidth,f=Math.min(h,c),g={x:0,y:0},m=o.getMeta(),p=u.cutoutPercentage,v=u.circumference;v<2*Math.PI&&(e=u.rotation%(2*Math.PI),r=(e+=2*Math.PI*(e>=Math.PI?-1:e<-Math.PI?1:0))+v,i=Math.cos(e),t=Math.sin(e),a=Math.cos(r),l=Math.sin(r),d=e<=0&&0<=r||e<=2*Math.PI&&2*Math.PI<=r,u=e<=.5*Math.PI&&.5*Math.PI<=r||e<=2.5*Math.PI&&2.5*Math.PI<=r,v=e<=-Math.PI&&-Math.PI<=r||e<=Math.PI&&Math.PI<=r,e=e<=.5*-Math.PI&&.5*-Math.PI<=r||e<=1.5*Math.PI&&1.5*Math.PI<=r,r=p/100,v=v?-1:Math.min(i*(i<0?1:r),a*(a<0?1:r)),e=e?-1:Math.min(t*(t<0?1:r),l*(l<0?1:r)),a=.5*((i=d?1:Math.max(i*(0<i?1:r),a*(0<a?1:r)))-v),r=.5*((l=u?1:Math.max(t*(0<t?1:r),l*(0<l?1:r)))-e),f=Math.min(h/a,c/r),g={x:-.5*(i+v),y:-.5*(l+e)}),s.borderWidth=o.getMaxBorderWidth(m.data),s.outerRadius=Math.max((f-s.borderWidth)/2,0),s.innerRadius=Math.max(p?s.outerRadius/100*p:0,0),s.radiusLength=(s.outerRadius-s.innerRadius)/s.getVisibleDatasetCount(),s.offsetX=g.x*s.outerRadius,s.offsetY=g.y*s.outerRadius,m.total=o.calculateTotal(),o.outerRadius=s.outerRadius-s.radiusLength*o.getRingIndex(o.index),o.innerRadius=Math.max(o.outerRadius-s.radiusLength,0),y.each(m.data,function(t,e){o.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d=o.rotation,h=o.rotation,c=i.getDataset(),f=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(c.data[e])*(o.circumference/(2*Math.PI)),g=n&&s.animateScale?0:i.innerRadius,m=n&&s.animateScale?0:i.outerRadius,r=y.valueAtIndexOrDefault;y.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:u+a.offsetY,startAngle:d,endAngle:h,circumference:f,outerRadius:m,innerRadius:g,label:r(c.label,e,a.data.labels[e])}});a=t._model;this.removeHoverStyle(t),n&&s.animateRotate||(a.startAngle=0===e?o.rotation:i.getMeta().data[e-1]._model.endAngle,a.endAngle=a.startAngle+a.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return y.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n=0,i=this.index,a=t.length,r=0;r<a;r++)n=(n=n<(e=t[r]._model?t[r]._model.borderWidth:0)?e:n)<(e=t[r]._chart?t[r]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function c(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.options,l=s.elements.line,u=i.getScaleForId(a.yAxisID),d=i.getDataset(),h=c(d,s);for(h&&(a=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=u,r._datasetIndex=i.index,r._children=o,r._model={spanGaps:d.spanGaps||s.spanGaps,tension:a.tension||f.valueOrDefault(d.lineTension,l.tension),backgroundColor:a.backgroundColor||d.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth||d.borderWidth||l.borderWidth,borderColor:a.borderColor||d.borderColor||l.borderColor,borderCapStyle:a.borderCapStyle||d.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash||d.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset||d.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle||d.borderJoinStyle||l.borderJoinStyle,fill:a.fill||(void 0!==d.fill?d:l).fill,steppedLine:a.steppedLine||f.valueOrDefault(d.steppedLine,l.stepped),cubicInterpolationMode:a.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,l.cubicInterpolationMode)},r.pivot()),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(h&&0!==r._model.tension&&i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),t=t.custom||{};return t.backgroundColor?n=t.backgroundColor:i.pointBackgroundColor?n=f.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),t=t.custom||{};return t.borderColor?n=t.borderColor:i.pointBorderColor?n=f.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(i.pointBorderWidth)||f.isArray(i.pointBorderWidth)?n=f.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=t.borderWidth,n},updateElement:function(t,e,n){var i,a=this,r=a.getMeta(),o=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(r.yAxisID),h=a.getScaleForId(r.xAxisID),c=a.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),i=h.getPixelForValue("object"==typeof u?u:NaN,e,l),u=n?d.getBasePixel():a.calculatePointY(u,e,l),t._xScale=h,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:i,y:u,skip:o.skip||isNaN(i)||isNaN(u),radius:o.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:o.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:r.dataset._model?r.dataset._model.tension:0,steppedLine:!!r.dataset._model&&r.dataset._model.steppedLine,hitRadius:o.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,r=this.getMeta(),o=this.getScaleForId(r.yAxisID),s=0,l=0;if(o.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===o.id&&a.isDatasetVisible(i)&&((d=Number(o.getRightValue(d.data[e])))<0?l+=d||0:s+=d||0)}r=Number(o.getRightValue(t));return r<0?o.getPixelForValue(l+r):o.getPixelForValue(s+r)}return o.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),r=this.chart.chartArea,o=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(o=o.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(o);else for(t=0,e=o.length;t<e;++t)n=o[t]._model,i=f.splineCurve(f.previousItem(o,t)._model,n,f.nextItem(o,t)._model,a.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=o.length;t<e;++t)(n=o[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,r.left,r.right),n.controlPointPreviousY=s(n.controlPointPreviousY,r.top,r.bottom),n.controlPointNextX=s(n.controlPointNextX,r.left,r.right),n.controlPointNextY=s(n.controlPointNextY,r.top,r.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),n=e.data||[],i=t.chartArea,a=n.length,r=0;for(f.canvas.clipArea(t.ctx,i),c(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);r<a;++r)n[r].draw(i)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},r=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),r.radius=a.radius||f.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),r.backgroundColor=e.getPointBackgroundColor(t,i),r.borderColor=e.getPointBorderColor(t,i),r.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var t=t.data,n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},r=y.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i].hidden=!n.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,update:function(n){var i=this,t=i.chart,e=t.chartArea,a=i.getMeta(),r=t.options,o=r.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-o.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),i.outerRadius=t.outerRadius-t.radiusLength*i.index,i.innerRadius=i.outerRadius-t.radiusLength,a.count=i.countVisibleElements(),y.each(a.data,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){for(var i=this,a=i.chart,r=i.getDataset(),o=a.options,s=o.animation,l=a.scale,u=a.data.labels,d=i.calculateCircumference(r.data[e]),h=l.xCenter,c=l.yCenter,f=0,g=i.getMeta(),m=0;m<e;++m)isNaN(r.data[m])||g.data[m].hidden||++f;var p=o.startAngle,v=t.hidden?0:l.getDistanceFromCenterForValue(r.data[e]),a=p+d*f,o=a+(t.hidden?0:d),d=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[e]);y.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:h,y:c,innerRadius:0,outerRadius:n?d:v,startAngle:n&&s.animateRotate?p:a,endAngle:n&&s.animateRotate?p:o,label:y.valueAtIndexOrDefault(u,e,u[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return y.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),u=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:u.noop,update:function(n){var i=this,t=i.getMeta(),e=t.dataset,a=t.data,r=e.custom||{},o=i.getDataset(),s=i.chart.options.elements.line,e=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:e,_children:a,_loop:!0,_model:{tension:r.tension||u.valueOrDefault(o.lineTension,s.tension),backgroundColor:r.backgroundColor||o.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth||o.borderWidth||s.borderWidth,borderColor:r.borderColor||o.borderColor||s.borderColor,fill:r.fill||(void 0!==o.fill?o:s).fill,borderCapStyle:r.borderCapStyle||o.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash||o.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset||o.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle||o.borderJoinStyle||s.borderJoinStyle}}),t.dataset.pivot(),u.each(a,function(t,e){i.updateElement(t,e,n)},i),i.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},r=i.getDataset(),o=i.chart.scale,s=i.chart.options.elements.point,l=o.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:o,_model:{x:n?o.xCenter:l.x,y:n?o.yCenter:l.y,tension:a.tension||u.valueOrDefault(r.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(r.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(r.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(r.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(r.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(r.pointStyle,e,s.pointStyle),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(r.pointHitRadius,e,s.hitRadius)}}),t._model.skip=a.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var i=this.chart.chartArea,a=this.getMeta();u.each(a.data,function(t,e){var n=t._model,e=u.splineCurve(u.previousItem(a.data,e,!0)._model,n,u.nextItem(a.data,e,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(e.previous.x,i.right),i.left),n.controlPointPreviousY=Math.max(Math.min(e.previous.y,i.bottom),i.top),n.controlPointNextX=Math.max(Math.min(e.next.x,i.right),i.left),n.controlPointNextY=Math.max(Math.min(e.next.y,i.bottom),i.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model;t.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model,t=this.chart.options.elements.point;a.radius=n.radius||u.valueAtIndexOrDefault(e.pointRadius,i,t.radius),a.backgroundColor=n.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,i,t.backgroundColor),a.borderColor=n.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,i,t.borderColor),a.borderWidth=n.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,i,t.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t)return void(o[a]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;1<t.dropFrames&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);n=Date.now();t.dropFrames+=(n-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a<i.length;)n=(e=i[a]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[n,e],n),r.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),h=t(45),i=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(u){function d(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},h.extend(u.prototype,{construct:function(t,e){var n=this;(a=(r=(r=e)||{}).data=r.data||{}).datasets=a.datasets||[],a.labels=a.labels||[],r.options=h.configMerge(o.global,o[r.type],r.options||{}),e=r;var i=s.acquireContext(t,e),a=i&&i.canvas,r=a&&a.height,t=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=t,n.height=r,n.aspectRatio=r?t/r:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,u.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?r/a:h.getMaximumHeight(i)));e.width===r&&e.height===a||(i.width=e.width=r,i.height=e.height=a,i.style.width=r+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t||(a={width:r,height:a},l.notify(e,"resize",[a]),e.options.onResize&&e.options.onResize(e,a),e.stop(),e.update(e.options.responsiveAnimationDuration)))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype);d(e.position)!==d(t.dposition)&&(e.position=t.dposition),l[n]=!0;var a=null;if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=o.ctx,a.chart=o;else{var r=u.scaleService.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(o.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),o.scales=s,u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],r=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=u.controllers[n.type];if(void 0===t)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),r.push(n.controller)}},i),r},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(u.defaults.global,u.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),l._invalidate(i),!1!==l.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e=this,n=(t=!t||"object"!=typeof t?{duration:t,lazy:arguments[1]}:t).duration,i=t.lazy;if(!1!==l.notify(e,"beforeRender")){var a=e.options.animation,r=function(t){l.notify(e,"afterRender"),h.callback(a&&a.onComplete,[t],e)};return a&&(void 0!==n&&0!==n||void 0===n&&0!==a.duration)?(t=new u.Animation({numSteps:(n||a.duration)/16.66,easing:t.easing||a.easing,render:function(t,e){var n=h.easing.effects[e.easing],i=e.currentStep,e=i/e.numSteps;t.draw(n(e),e,i)},onAnimationProgress:a.onProgress,onAnimationComplete:r}),u.animationService.addAnimation(e,t,n,i)):(e.draw(),r(new u.Animation({numSteps:0,chart:e}))),e}},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),l.notify(this,"afterTooltipDraw",[t]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){e=i.modes[e];return"function"==typeof e?e(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],t=n._meta&&n._meta[e];t&&(t.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),h.canvas.clear(n),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete u.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new u.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){s.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},s.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,h.each(t,function(t,e){s.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",r=0,o=t.length;r<o;++r)(i=t[r])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==l.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),l.notify(e,"afterEvent",[t]);t=e._bufferedRequest;return t?e.render(t):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},a=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,a.mode,a),h.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),e=!h.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),u.Controller=u}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function r(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(i.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},o.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,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],n=t.data,i=0,a=e.length;i<a;++i)n[i]=n[i]||this.createMetaData(i);t.dataset=t.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 a,t=this,e=t.getDataset(),n=e.data||(e.data=[]);t._data!==n&&(t._data&&r(t._data,t),e=t,(a=n)._chartjs?a._chartjs.listeners.push(e):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),i.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return o.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),t._data=n),t.resyncElements()},update:o.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},r=o.valueAtIndexOrDefault,t=t._model;t.backgroundColor=a.backgroundColor||r(n.backgroundColor,i,e.backgroundColor),t.borderColor=a.borderColor||r(n.borderColor,i,e.borderColor),t.borderWidth=a.borderWidth||r(n.borderWidth,i,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=o.valueAtIndexOrDefault,r=o.getHoverColor,t=t._model;t.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,r(t.backgroundColor)),t.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,r(t.borderColor)),t.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,t.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,e=e.length;e<n?t.data.splice(e,n-e):n<e&&this.insertElements(n,e-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=o.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var f=t(2),i=t(45);t=function(t){i.extend(this,t),this.initialize.apply(this,arguments)};i.extend(t.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;return n&&1!==t?(a=a||(e._view={}),function(t,e,n,i){for(var a,r,o,s,l,u,d=Object.keys(n),h=0,c=d.length;h<c;++h)if(o=n[a=d[h]],e.hasOwnProperty(a)||(e[a]=o),(l=e[a])!==o&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=l),(s=typeof o)==typeof(r=t[a]))if("string"==s){if(l=f(r),l.valid&&(u=f(o)).valid){e[a]=u.mix(l,i).rgbString();continue}}else if("number"==s&&isFinite(r)&&isFinite(o)){e[a]=r+(o-r)*i;continue}e[a]=o}}(i=i||(e._start={}),a,n,t)):(e._view=n,e._start=null),e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),t.extend=i.inherits,e.exports=t},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),a=t(25),c=t(45);e.exports=function(l){function u(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function d(t){return null!=t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=t.parentNode,r=i.getComputedStyle(t)[e],o=i.getComputedStyle(a)[e],s=d(r),i=d(o),e=Number.POSITIVE_INFINITY;return s||i?Math.min(s?u(r,t,n):e,i?u(o,a,n):e):"none"}c.configMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){var a=e[t]||{},r=n[t];"scales"===t?e[t]=c.scaleMerge(a,r):"scale"===t?e[t]=c.merge(a,[l.scaleService.getScaleDefaults(r.type),r]):c._merger(t,e,n,i)}})},c.scaleMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)o=n[t][a],r=c.valueOrDefault(o.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?c.merge(e[t][a],[l.scaleService.getScaleDefaults(r),o]):c.merge(e[t][a],o)}else c._merger(t,e,n,i)}})},c.where=function(t,e){if(c.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return c.each(t,function(t){e(t)&&n.push(t)}),n},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},c.findNextWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?-1:n)+1;i<t.length;i++){var a=t[i];if(e(a))return a}},c.findPreviousWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?t.length:n)-1;0<=i;i--){var a=t[i];if(e(a))return a}},c.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},c.almostEquals=function(t,e,n){return Math.abs(t-e)<n},c.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},c.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},c.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},c.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},c.toRadians=function(t){return t*(Math.PI/180)},c.toDegrees=function(t){return t*(180/Math.PI)},c.getAngleFromPoint=function(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e),n=Math.atan2(e,n);return n<-.5*Math.PI&&(n+=2*Math.PI),{angle:n,distance:t}},c.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.aliasPixel=function(t){return t%2==0?0:.5},c.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,t=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),e=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),n=t/(t+e),e=e/(t+e),n=i*(n=isNaN(n)?0:n),e=i*(e=isNaN(e)?0:e);return{previous:{x:r.x-n*(o.x-a.x),y:r.y-n*(o.y-a.y)},next:{x:r.x+e*(o.x-a.x),y:r.y+e*(o.y-a.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,r,o,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,(i=h<d-1?u[h+1]:null)&&!i.model.skip&&(e=i.model.x-a.model.x,a.deltaK=0!=e?(i.model.y-a.model.y)/e:0),!n||n.model.skip?a.mK=a.deltaK:!i||i.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(h=0;h<d-1;++h)a=u[h],i=u[h+1],a.model.skip||i.model.skip||(c.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=i.mK=0:(r=a.mK/a.deltaK,o=i.mK/a.deltaK,(s=Math.pow(r,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(s),a.mK=r*s*a.deltaK,i.mK=o*s*a.deltaK)));for(h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,i=h<d-1?u[h+1]:null,n&&!n.model.skip&&(l=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-l,a.model.controlPointPreviousY=a.model.y-l*a.mK),i&&!i.model.skip&&(l=(i.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+l,a.model.controlPointNextY=a.model.y+l*a.mK))},c.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),t=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return t*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,i=t.currentTarget||t.srcElement,a=i.getBoundingClientRect(),r=n.touches,o=r&&0<r.length?(l=r[0].clientX,r[0].clientY):(l=n.clientX,n.clientY),s=parseFloat(c.getStyle(i,"padding-left")),t=parseFloat(c.getStyle(i,"padding-top")),r=parseFloat(c.getStyle(i,"padding-right")),n=parseFloat(c.getStyle(i,"padding-bottom")),r=a.right-a.left-s-r,n=a.bottom-a.top-t-n,l=Math.round((l-a.left-s)/r*i.width/e.currentDevicePixelRatio);return{x:l,y:o=Math.round((o-a.top-t)/n*i.height/e.currentDevicePixelRatio)}},c.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},c.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},c.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(c.getStyle(e,"padding-left"),10),i=parseInt(c.getStyle(e,"padding-right"),10),i=e.clientWidth-n-i,t=c.getConstraintWidth(t);return isNaN(t)?i:Math.min(i,t)},c.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(c.getStyle(e,"padding-top"),10),i=parseInt(c.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-i,t=c.getConstraintHeight(t);return isNaN(t)?i:Math.min(i,t)},c.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},c.retinaScale=function(t,e){var n,i,a=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;1!==a&&(n=t.canvas,i=t.height,e=t.width,n.height=i*a,n.width=e*a,t.ctx.scale(a,a),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=e+"px"))},c.fontString=function(t,e,n){return e+" "+t+"px "+n},c.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(a=i.data={},r=i.garbageCollect=[],i.font=t),e.font=t;var o=0;c.each(n,function(t){null!=t&&!0!==c.isArray(t)?o=c.measureText(e,a,r,o,t):c.isArray(t)&&c.each(t,function(t){null==t||c.isArray(t)||(o=c.measureText(e,a,r,o,t))})});var s=r.length/2;if(s>n.length){for(var l=0;l<s;l++)delete a[r[l]];r.splice(0,s)}return o},c.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),i=i<r?r:i},c.numberOfLabelLines=function(t){var e=1;return c.each(t,function(t){c.isArray(t)&&t.length>e&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function o(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,r=0,o=t.data.datasets.length;r<o;++r)if(t.isDatasetVisible(r))for(i=0,a=(n=t.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function l(t,e){var n=[];return s(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function u(t,n,i,a){var r=Number.POSITIVE_INFINITY,o=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<r?(o=[t],r=e):e===r&&o.push(t))}),o}function d(t){var i=-1!==t.indexOf("x"),a=-1!==t.indexOf("y");return function(t,e){var n=i?Math.abs(t.x-e.x):0,e=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(e,2))}}function a(n,t,e){var i=o(t,n);e.axis=e.axis||"x";var t=d(e.axis),a=e.intersect?l(n,i):u(n,i,!1,t),r=[];return a.length?(n.data.datasets.forEach(function(t,e){!n.isDatasetVisible(e)||(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&r.push(e)}),r):[]}e.exports={modes:{single:function(t,e){var n=o(e,t),i=[];return s(t,function(t){return t.inRange(n.x,n.y)&&(i.push(t),i)}),i.slice(0,1)},label:a,index:a,dataset:function(t,e,n){var i=o(e,t);n.axis=n.axis||"xy";e=d(n.axis),e=n.intersect?l(t,i):u(t,i,!1,e);return e=0<e.length?t.getDatasetMeta(e[0]._datasetIndex).data:e},"x-axis":function(t,e){return a(t,e,{intersect:!1})},point:function(t,e){return l(t,o(e,t))},nearest:function(t,e,n){var i=o(e,t);n.axis=n.axis||"xy";e=d(n.axis),e=u(t,i,n.intersect,e);return 1<e.length&&e.sort(function(t,e){var n=t.getArea()-e.getArea();return n=0===n?t._datasetIndex-e._datasetIndex:n}),e.slice(0,1)},x:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a},y:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,n){"use strict";var R=t(45);function L(t,e){return R.where(t,function(t){return t.position===e})}function Y(t,i){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=i?e:t,e=i?t:e;return n.weight===e.weight?n._tmpIndex_-e._tmpIndex_:n.weight-e.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)i=a[o],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(e,n,t){var i,a,r,o,s,l,u,d,h,c,f,g,m,p,v,y,b,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,y),right:Math.max(w,b),top:0,bottom:0},e.update(e.fullWidth?h:m,c/2,t)):e.update(n.minSize.width,p))}function F(t){t.isHorizontal()?(t.left=t.fullWidth?i:k,t.right=t.fullWidth?n-a:k+m,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=O,t.right=O+t.width,t.top=M,t.bottom=M+p,O=t.right)}e&&(d=e.options.layout||{},D=R.options.toPadding(d.padding),i=D.left,a=D.right,r=D.top,C=D.bottom,o=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),Y(o,!0),Y(s,!1),Y(l,!0),Y(u,!1),D=(c=t-r-C)/2,f=(n-(h=n-i-a)/2)/(o.length+s.length),g=(t-D)/(l.length+u.length),m=h,p=c,v=[],R.each(o.concat(s,l,u),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?h:m,g),p-=e.height):(e=t.update(f,p),m-=e.width),v.push({horizontal:n,minSize:e,box:t})}),_=x=b=y=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),y=Math.max(y,t.left),b=Math.max(b,t.right))}),R.each(o.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=r,S=C,R.each(o.concat(s),A),R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l.concat(u),A),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),R.each(o.concat(s),function(e){var t=R.findNextWhere(v,function(t){return t.box===e}),n={left:0,right:0,top:M,bottom:S};t&&e.update(t.minSize.width,p,n)}),k=i,w=a,M=r,S=C,R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),D=Math.max(y-k,0),k+=D,w+=Math.max(b-w,0),C=Math.max(x-M,0),M+=C,S+=Math.max(_-S,0),P=t-M-S,(T=n-k-w)===m&&P===p||(R.each(o,function(t){t.height=P}),R.each(s,function(t){t.height=P}),R.each(l,function(t){t.fullWidth||(t.width=T)}),R.each(u,function(t){t.fullWidth||(t.width=T)}),p=P,m=T),O=i+D,I=r+C,R.each(o.concat(l),F),O+=m,I+=p,R.each(s,F),R.each(u,F),e.chartArea={left:k,top:M,right:k+m,bottom:M+p},R.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,p)}))}}},{45:45}],31:[function(t,e,n){"use strict";var o=t(25),s=t(45);o._set("global",{plugins:{}}),e.exports={_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){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){for(var i,a,r,o,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if(i=s[u],a=i.plugin,o=a[e],"function"==typeof o&&((r=[t].concat(n||[])).push(i.options),!1===o.apply(a,r)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],t=t&&t.config||{},r=t.options&&t.options.plugins||{};return this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=r[e])&&(!0===n&&(n=s.clone(o.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}})))}),e.descriptors=a,e.id=this._cacheId,a},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var p=t(25),i=t(26),N=t(45),t=t(34);function f(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].label);return e}function z(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}p._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=function(t){function c(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function g(t){var e=N.valueOrDefault,n=p.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),n=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:n,font:N.fontString(i,a,n)}}function m(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,p.global.defaultFontSize))}t.Scale=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,o,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=N.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),r=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=r).length;i<a;++i)o=r[i],(l=s[i])?l.label=o:s.push(l={label:o,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){N.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){N.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=f(t._ticks),a=g(n);e.font=a.font;var r=n.minRotation||0;if(i.length&&t.options.display&&t.isHorizontal())for(var o=N.longestText(e,a.font,i,t.longestTextCache),s=o,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&r<n.maxRotation;){var u=N.toRadians(r),d=Math.cos(u);if(Math.sin(u)*o>t.maxHeight){r--;break}r++,s=d*o}t.labelRotation=r},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=f(e._ticks),a=e.options,r=a.ticks,o=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=g(r),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,o.display&&l&&(t=m(o)+N.options.toPadding(o.padding).height,u?n.height+=t:n.width+=t),r.display&&l&&(s=N.longestText(e.ctx,d.font,i,e.longestTextCache),h=N.numberOfLabelLines(i),o=.5*d.size,t=e.options.ticks.padding,u?(e.longestLabelWidth=s,l=N.toRadians(e.labelRotation),u=Math.cos(l),h=Math.sin(l)*s+d.size*h+o*(h-1)+o,n.height=Math.min(e.maxHeight,n.height+h+t),e.ctx.font=d.font,h=c(e.ctx,i[0],d.font),i=c(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?u*h+3:u*o+3,e.paddingRight="bottom"===a.position?u*o+3:u*i+3):(e.paddingLeft=h/2+3,e.paddingRight=i/2+3)):(r.mirror?s=0:s+=t+o,n.width=Math.min(e.maxWidth,n.width+s),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.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(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=i*t+e.paddingLeft;n&&(a+=i/2);a=e.left+Math.round(a);return a+=e.isFullWidth()?e.margins.left:0}a=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(a/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+Math.round(n);return n+=e.isFullWidth()?e.margins.left:0}return 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:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.isHorizontal(),s=r.options.ticks.minor,l=t.length,u=N.toRadians(r.labelRotation),u=Math.cos(u),u=r.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),o&&(e=!1,(u+s.autoSkipPadding)*l>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),a&&a<l&&(e=Math.max(e,Math.floor(l/a)))),n=0;n<l;n++)i=t[n],(1<e&&0<n%e||n%e==0&&l<=n+e)&&n!==l-1&&delete i.label,d.push(i);return d},draw:function(_){var o,k,w,M,S,D,C,s,l,u,d,P,t,T,O,I,A,F,R,L,e,n,i,a,r,h,c,f,Y=this,W=Y.options;W.display&&(o=Y.ctx,k=p.global,w=W.ticks.minor,n=W.ticks.major||w,M=W.gridLines,f=W.scaleLabel,S=0!==Y.labelRotation,D=Y.isHorizontal(),C=w.autoSkip?Y._autoSkip(Y.getTicks()):Y.getTicks(),s=N.valueOrDefault(w.fontColor,k.defaultFontColor),l=g(w),u=N.valueOrDefault(n.fontColor,k.defaultFontColor),d=g(n),P=M.drawTicks?M.tickMarkLength:0,h=N.valueOrDefault(f.fontColor,k.defaultFontColor),c=g(f),t=N.options.toPadding(f.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.right:Y.right-I-P,F="right"===W.position?Y.right+P:Y.right,R="bottom"===W.position?Y.top+I:Y.bottom-P-I,L="bottom"===W.position?Y.top+I+P:Y.bottom+I,N.each(C,function(t,e){var n,i,a,r,o,s,l,u,d,h,c,f,g,m,p,v,y,b,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,r=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),r=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",x=w.padding,D?(p=P+x,v="bottom"===W.position?(m=S?"middle":"top",g=S?"right":"center",Y.top+p):(m=S?"middle":"bottom",g=S?"left":"center",Y.bottom-p),(y=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),y+=N.aliasPixel(i),b=Y.getPixelForTick(e)+w.labelOffset,o=l=d=c=y,s=R,u=L,h=_.top,p=_.bottom+I):(y="left"===W.position,x=w.mirror?(g=y?"left":"right",x):(g=y?"right":"left",P+x),b=y?Y.right-x:Y.left+x,(x=z(Y,e,M.offsetGridLines&&1<C.length))<Y.top&&(a="rgba(0,0,0,0)"),x+=N.aliasPixel(i),v=Y.getPixelForTick(e)+w.labelOffset,o=A,l=F,d=_.left,c=_.right+I,s=u=h=p=x),O.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:c,y2:p,labelX:b,labelY:v,glWidth:i,glColor:a,glBorderDash:r,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),M.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),w.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=(t.major?d:l).font,o.fillStyle=t.major?u:s,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var n=e.length,i=1.5*l.size,a=Y.isHorizontal()?0:-i*(n-1)/2,r=0;r<n;++r)o.fillText(""+e[r],0,a),a+=i;else o.fillText(e,0,0);o.restore()}}),f.display&&(r=0,e=m(f)/2,D?(i=Y.left+(Y.right-Y.left)/2,a="bottom"===W.position?Y.bottom-e-t.bottom:Y.top+e+t.top):(i=(n="left"===W.position)?Y.left+e+t.top:Y.right-e-t.top,a=Y.top+(Y.bottom-Y.top)/2,r=n?-.5*Math.PI:.5*Math.PI),o.save(),o.translate(i,a),o.rotate(r),o.textAlign="center",o.textBaseline="middle",o.fillStyle=h,o.font=c.font,o.fillText(f.labelString,0,0),o.restore()),M.drawBorder&&(o.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),o.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,r=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(o.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=r="left"===W.position?Y.right:Y.left,a+=f,r+=f),o.beginPath(),o.moveTo(a,h),o.lineTo(r,c),o.stroke()))}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=a.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=a.extend(this.defaults[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,r.addBox(e,t)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var a=t(45);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){n=3<n.length?n[2]-n[1]:n[1]-n[0];1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t));n=a.log10(Math.abs(n));return 0!==t?(n=-1*Math.floor(n),n=Math.max(Math.min(n,20),0),t.toFixed(n)):"0"},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(a.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),A=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:A.noop,title:function(t,e){var n="",i=e.labels,e=i?i.length:0;return 0<t.length&&((t=t[0]).xLabel?n=t.xLabel:0<e&&t.index<e&&(n=i[t.index])),n},afterTitle:A.noop,beforeBody:A.noop,beforeLabel:A.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){t=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:t.borderColor,backgroundColor:t.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:A.noop,afterBody:A.noop,beforeFooter:A.noop,footer:A.noop,afterFooter:A.noop}}}),e.exports=function(T){function h(t,e){t=A.color(t);return t.alpha(e*t.alpha()).rgbaString()}function o(t,e){return e&&(A.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function O(t){var e=i.global,n=A.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function I(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,r=e.body,o=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,t=e.footerFontSize;i+=s*u,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=o*d,i+=o?(o-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*t,i+=l?(l-1)*e.footerSpacing:0;function h(t){a=Math.max(a,n.measureText(t).width+c)}var c=0;return n.font=A.fontString(u,e._titleFontStyle,e._titleFontFamily),A.each(e.title,h),n.font=A.fontString(d,e._bodyFontStyle,e._bodyFontFamily),A.each(e.beforeBody.concat(e.afterBody),h),c=e.displayColors?d+2:0,A.each(r,function(t){A.each(t.before,h),A.each(t.lines,h),A.each(t.after,h)}),c=0,n.font=A.fontString(t,e._footerFontStyle,e._footerFontFamily),A.each(e.footer,h),{width:a+=2*e.xPadding,height:i}}T.Tooltip=a.extend({initialize:function(){this._model=O(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),i=t.afterTitle.apply(this,arguments),t=o(t=[],e);return t=o(t,n),t=o(t,i)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return A.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,n){var i=this,a=i._options.callbacks,r=[];return A.each(t,function(t){var e={before:[],lines:[],after:[]};o(e.before,a.beforeLabel.call(i,t,n)),o(e.lines,a.label.call(i,t,n)),o(e.after,a.afterLabel.call(i,t,n)),r.push(e)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return A.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),t=o(t=[],e);return t=o(t,n),t=o(t,i)},update:function(t){var e,n,i,a,r,o,s,l,u,d,h,c,f,g=this,m=g._options,p=g._model,v=g._model=O(m),y=g._active,b=g._data,x={xAlign:p.xAlign,yAlign:p.yAlign},_={x:p.x,y:p.y},k={width:p.width,height:p.height},w={x:p.caretX,y:p.caretY};if(y.length){v.opacity=1;for(var M=[],S=[],w=T.Tooltip.positioners[m.position].call(g,y,g._eventPosition),D=[],C=0,P=y.length;C<P;++C)D.push((u=y[C],f=c=h=d=void 0,d=u._xScale,h=u._yScale||u._scale,c=u._index,f=u._datasetIndex,{xLabel:d?d.getLabelForIndex(c,f):"",yLabel:h?h.getLabelForIndex(c,f):"",index:c,datasetIndex:f,x:u._model.x,y:u._model.y}));m.filter&&(D=D.filter(function(t){return m.filter(t,b)})),m.itemSort&&(D=D.sort(function(t,e){return m.itemSort(t,e,b)})),A.each(D,function(t){M.push(m.callbacks.labelColor.call(g,t,g._chart)),S.push(m.callbacks.labelTextColor.call(g,t,g._chart))}),v.title=g.getTitle(D,b),v.beforeBody=g.getBeforeBody(D,b),v.body=g.getBody(D,b),v.afterBody=g.getAfterBody(D,b),v.footer=g.getFooter(D,b),v.x=Math.round(w.x),v.y=Math.round(w.y),v.caretPadding=m.caretPadding,v.labelColors=M,v.labelTextColors=S,v.dataPoints=D,x=function(t,e){var n,i=t._model,a=t._chart,r=t._chart.chartArea,o="center",s="center";i.y<e.height?s="top":i.y>a.height-e.height&&(s="bottom");var l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d="center"===s?(n=function(t){return t<=l},function(t){return l<t}):(n=function(t){return t<=e.width/2},function(t){return t>=a.width-e.width/2}),h=function(t){return t+e.width+i.caretSize+i.caretPadding>a.width},c=function(t){return t-e.width-i.caretSize-i.caretPadding<0},r=function(t){return t<=u?"top":"bottom"};return n(i.x)?(o="left",h(i.x)&&(o="center",s=r(i.y))):d(i.x)&&(o="right",c(i.x)&&(o="center",s=r(i.y))),{xAlign:(t=t._options).xAlign||o,yAlign:t.yAlign||s}}(this,k=I(this,v)),e=v,n=k,i=x,a=g._chart,r=e.x,o=e.y,s=e.caretSize,l=e.caretPadding,p=e.cornerRadius,e=i.xAlign,i=i.yAlign,s+=l,l=p+l,"right"===e?r-=n.width:"center"===e&&(r=(r-=n.width/2)+n.width>a.width?a.width-n.width:r)<0&&(r=0),"top"===i?o+=s:o-="bottom"===i?n.height+s:n.height/2,"center"===i?"left"===e?r+=s:"right"===e&&(r-=s):"left"===e?r-=l:"right"===e&&(r+=l),_={x:r,y:o}}else v.opacity=0;return v.xAlign=x.xAlign,v.yAlign=x.yAlign,v.x=_.x,v.y=_.y,v.width=k.width,v.height=k.height,v.caretX=w.x,v.caretY=w.y,g._model=v,t&&m.custom&&m.custom.call(g,v),g},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,i=this.getCaretPosition(t,e,i);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,g=t.y,t=e.width,e=e.height;return"center"===c?(r=g+e/2,o="left"===h?(i=(l=f)-u,s=l,a=r+u,r-u):(i=(l=f+t)+u,s=l,a=r-u,r+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+t-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(r=(a=g)-u,o=a):(r=(a=g+e)+u,o=a,u=s,s=l,l=u)),{x1:l,x2:i,x3:s,y1:a,y2:r,y3:o}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var r,o,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=A.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,o=a.length;r<o;++r)n.fillText(a[r],t.x,t.y),t.y+=s+l,r+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,r,o){var s=a.bodyFontSize,e=a.bodySpacing,t=a.body;r.textAlign=a._bodyAlign,r.textBaseline="top",r.font=A.fontString(s,a._bodyFontStyle,a._bodyFontFamily);function l(t){r.fillText(t,i.x+n,i.y),i.y+=s+e}var n=0;r.fillStyle=h(a.bodyFontColor,o),A.each(a.beforeBody,l);var u=a.displayColors,n=u?s+2:0;A.each(t,function(t,e){var n=h(a.labelTextColors[e],o);r.fillStyle=n,A.each(t.before,l),A.each(t.lines,function(t){u&&(r.fillStyle=h(a.legendColorBackground,o),r.fillRect(i.x,i.y,s,s),r.lineWidth=1,r.strokeStyle=h(a.labelColors[e].borderColor,o),r.strokeRect(i.x,i.y,s,s),r.fillStyle=h(a.labelColors[e].backgroundColor,o),r.fillRect(i.x+1,i.y+1,s-2,s-2),r.fillStyle=n),l(t)}),A.each(t.after,l)}),n=0,A.each(a.afterBody,l),i.y-=e},drawFooter:function(e,n,i,t){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=h(n.footerFontColor,t),i.font=A.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),A.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i,a){n.fillStyle=h(e.backgroundColor,a),n.strokeStyle=h(e.borderColor,a),n.lineWidth=e.borderWidth;var r=e.xAlign,o=e.yAlign,s=t.x,l=t.y,u=i.width,d=i.height,a=e.cornerRadius;n.beginPath(),n.moveTo(s+a,l),"top"===o&&this.drawCaret(t,i),n.lineTo(s+u-a,l),n.quadraticCurveTo(s+u,l,s+u,l+a),"center"===o&&"right"===r&&this.drawCaret(t,i),n.lineTo(s+u,l+d-a),n.quadraticCurveTo(s+u,l+d,s+u-a,l+d),"bottom"===o&&this.drawCaret(t,i),n.lineTo(s+a,l+d),n.quadraticCurveTo(s,l+d,s,l+d-a),"center"===o&&"left"===r&&this.drawCaret(t,i),n.lineTo(s,l+a),n.quadraticCurveTo(s,l,s+a,l),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,r=this._view;0!==r.opacity&&(t={width:r.width,height:r.height},e={x:r.x,y:r.y},n=Math.abs(r.opacity<.001)?0:r.opacity,i=r.title.length||r.beforeBody.length||r.body.length||r.afterBody.length||r.footer.length,this._options.enabled&&i&&(this.drawBackground(e,r,a,t,n),e.x+=r.xPadding,e.y+=r.yPadding,this.drawTitle(e,r,a,n),this.drawBody(e,r,a,n),this.drawFooter(e,r,a,n)))},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!A.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),T.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,r=t.length;a<r;++a){var o=t[a];o&&o.hasValue()&&(e+=(o=o.tooltipPosition()).x,n+=o.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,r=e.y,o=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=A.distanceBetweenPoints(e,u))<o&&(o=u,n=d))}return n&&(a=(i=n.tooltipPosition()).x,r=i.y),{x:a,y:r}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),a=t(26),o=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var t=o.getAngleFromPoint(n,{x:t,y:e}),i=t.angle,e=t.distance,a=n.startAngle,r=n.endAngle;r<a;)r+=2*Math.PI;for(;r<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;t=a<=i&&i<=r,n=e>=n.innerRadius&&e<=n.outerRadius;return t&&n}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),d=t(45),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,o=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=a.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||l.borderDash),r.lineDashOffset=a.borderDashOffset||l.borderDashOffset,r.lineJoin=a.borderJoinStyle||l.borderJoinStyle,r.lineWidth=a.borderWidth||l.borderWidth,r.strokeStyle=a.borderColor||h.defaultColor,r.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(r.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!o||-1===u?r.moveTo(i.x,i.y):d.canvas.lineTo(r,n._view,e._view),u=t));r.stroke(),r.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var d=t(25),i=t(26),h=t(45),c=d.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:c,borderColor:c,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:a,inXRange:a,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,a=e.pointStyle,r=e.radius,o=e.x,s=e.y,l=h.color,u=0;e.skip||(i.strokeStyle=e.borderColor||c,i.lineWidth=h.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||c,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?u=(o-n.x)/(t.left-n.x):1.01*t.right<n.x?u=(n.x-o)/(n.x-t.right):n.y<t.top?u=(s-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(u=(n.y-s)/(n.y-t.bottom)),u=Math.round(100*u)/100,i.strokeStyle=l(i.strokeStyle).alpha(u).rgbString(),i.fillStyle=l(i.fillStyle).alpha(u).rgbString()),h.canvas.drawPoint(i,a,r,o,s))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),t=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,a,r=t._view;return a=o(t)?(i=r.width/2,e=r.x-i,n=r.x+i,i=Math.min(r.y,r.base),Math.max(r.y,r.base)):(a=r.height/2,e=Math.min(r.x,r.base),n=Math.max(r.x,r.base),i=r.y-a,r.y+a),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,r,o,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,o=t<e?1:-1,r=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,o=1,r=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom");h&&(a=(h=(l=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?l:h)/2,s=n+("top"!==c?a*r:0),l=i+("bottom"!==c?-a*r:0),(r=t+("left"!==c?a*o:0))!==(o=e+("right"!==c?-a*o:0))&&(n=s,i=l),s!==l&&(t=r,e=o)),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=h;var f=[[t,i],[t,n],[e,n],[e,i]],g=["bottom","left","top","right"].indexOf(c,0);function m(t){return f[(g+t)%4]}-1===g&&(g=0);var p=m(0);u.moveTo(p[0],p[1]);for(var v=1;v<4;v++)p=m(v),u.lineTo(p[0],p[1]);u.fill(),h&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n,i=!1;return i=this._view?t>=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){if(!this._view)return!1;var n=a(this);return o(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=o(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";t=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){var o;r?(o=Math.min(r,i/2),r=Math.min(r,a/2),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+r),t.lineTo(e+i,n+a-r),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-r),t.lineTo(e,n+r),t.quadraticCurveTo(e,n,e+o,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var r,o,s,l;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),h=(d=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-d/2,a+h/3),t.lineTo(i+d/2,a+h/3),t.lineTo(i,a-2*h/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-l,a-l,2*l,2*l),t.strokeRect(i-l,a-l,2*l,2*l);break;case"rectRounded":var u=n/Math.SQRT2,d=i-u,h=a-u,u=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,h,u,u,n/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-l,a),t.lineTo(i,a+l),t.lineTo(i+l,a),t.lineTo(i,a-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),o=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-o,a-s),t.lineTo(i+o,a+s),t.moveTo(i-o,a+s),t.lineTo(i+o,a-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),o=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-o,a-s),t.lineTo(i+o,a+s),t.moveTo(i-o,a+s),t.lineTo(i+o,a-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(d.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(d.isObject(t))for(r=(o=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[o[a]],o[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!d.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=d.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],n=n[t];d.isObject(a)&&d.isObject(n)?d.merge(a,n,i):e[t]=d.clone(n)},_mergerIf:function(t,e,n){var i=e[t],n=n[t];d.isObject(i)&&d.isObject(n)?d.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=d.clone(n))},merge:function(t,e,n){var i,a,r,o,s,l=d.isArray(e)?e:[e],u=l.length;if(!d.isObject(t))return t;for(i=(n=n||{}).merger||d._merger,a=0;a<u;++a)if(e=l[a],d.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)i(r[s],t,e,n);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)d.each(arguments[e],t);return n},inherits:function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=d.inherits,t&&d.extend(i.prototype,t),i.__super__=n.prototype,i}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var t=t(42),i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};e.exports={effects:i},t.easingEffects=i},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},resolve:function(t,e,n){for(var i,a=0,r=t.length;a<r;++a)if(i=t[a],void 0!==i&&(void 0!==e&&"function"==typeof i&&(i=i(e)),void 0!==(i=void 0!==n&&o.isArray(i)?i[n]:i)))return i}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var f=t(45),g="$chartjs",m="chartjs-",p=m+"render-monitor",v=m+"render-animation",y=["animationstart","webkitAnimationStart"],o={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){e=f.getStyle(t,e),e=e&&e.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):void 0}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function b(t,e,n){t.addEventListener(e,n,i)}function r(t,e,n){t.removeEventListener(e,n,i)}function x(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function l(e,t,n){var i,a,r,o,s,l,u,d,h=e[g]||(e[g]={}),c=h.resizer=function(t){var e=document.createElement("div"),n=m+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=i,e.className=n,e.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var a=e.childNodes[0],r=e.childNodes[1];return e._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6},b(a,"scroll",(i=function(){e._reset(),t()}).bind(a,"expand")),b(r,"scroll",i.bind(r,"shrink")),e}((i=function(){if(h.resizer)return t(x("resize",n))},o=!1,function(){r=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,f.requestAnimFrame.call(window,function(){o=!1,i.apply(a,r)}))}));l=function(){var t;h.resizer&&((t=e.parentNode)&&t!==c.parentNode&&t.insertBefore(c,t.firstChild),c._reset())},u=(s=e)[g]||(s[g]={}),d=u.renderProxy=function(t){t.animationName===v&&l()},f.each(y,function(t){b(s,t,d)}),u.reflow=!!s.offsetParent,s.classList.add(p)}function a(t){var e,n,i=t[g]||{},a=i.resizer;delete i.resizer,t=(e=t)[g]||{},(n=t.renderProxy)&&(f.each(y,function(t){r(e,t,n)}),delete t.renderProxy),e.classList.remove(p),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+v+"{"+n+"}@keyframes "+v+"{"+n+"}."+p+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}",n=(t=this)._style||document.createElement("style"),t._style||(e="/* Chart.js */\n"+e,(t._style=n).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,r,o=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(i=e,r=(n=t).style,e=n.getAttribute("height"),t=n.getAttribute("width"),n[g]={initial:{height:e,width:t,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null!==t&&""!==t||void 0!==(a=s(n,"width"))&&(n.width=a),null!==e&&""!==e||(""===n.style.height?n.height=n.width/(i.options.aspectRatio||2):(i=s(n,"height"),void 0!==a&&(n.height=i))),o):null},releaseContext:function(t){var n,i=t.canvas;i[g]&&(n=i[g].initial,["height","width"].forEach(function(t){var e=n[t];f.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),f.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[g])},addEventListener:function(a,t,r){var e,n=a.canvas;"resize"!==t?b(n,t,((e=r[g]||(r[g]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;r((n=a,i=o[(e=t).type]||e.type,t=f.getRelativePosition(e,n),x(i,n,t.x,t.y,e)))}):l(n,r,a)},removeEventListener:function(t,e,n){var i=t.canvas;"resize"!==e?(t=((n[g]||{}).proxies||{})[t.id+"_"+e])&&r(i,e,t):a(i)}},f.addEvent=b,f.removeEvent=r},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),t=t(47),a=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var s=t(25),c=t(40),l=t(45);s._set("global",{plugins:{filler:{propagate:!0}}});var f={dataset:function(t){var e=t.fill,n=t.chart,t=n.getDatasetMeta(e),i=t&&n.isDatasetVisible(e)&&t.dataset._children||[],a=i.length||0;return a?function(t,e){return e<a&&i[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,n=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===n?t.y:n}}}};function y(t){return t&&!t.skip}function b(t,e,n,i,a){var r;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)l.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;0<r;--r)l.canvas.lineTo(t,n[r],n[r-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,r,o,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],h=0;h<l;++h)a=null,(i=(n=t.getDatasetMeta(h)).dataset)&&i._model&&i instanceof c.Line&&(a={visible:t.isDatasetVisible(h),fill:function(t,e,n){var i=(t=t._model||{}).fill;if(!1===(i=void 0===i?!!t.backgroundColor:i)||null===i)return!1;if(!0===i)return"origin";if(t=parseFloat(i,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"===i[0]||"+"===i[0]?e+t:t)===e||t<0||n<=t)&&t;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}(i,h,l),chart:t,el:i}),n.$filler=a,d.push(a);for(h=0;h<l;++h)(a=d[h])&&(a.fill=function(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}(d,h,u),a.boundary=function(t){var e=t.el._model||{},n=t.el._scale||{},i=t.fill,t=null;if(isFinite(i))return null;if("start"===i?t=void 0===e.scaleBottom?n.bottom:e.scaleBottom:"end"===i?t=void 0===e.scaleTop?n.top:e.scaleTop:void 0!==e.scaleZero?t=e.scaleZero:n.getBasePosition?t=n.getBasePosition():n.getBasePixel&&(t=n.getBasePixel()),null!=t){if(void 0!==t.x&&void 0!==t.y)return t;if("number"==typeof t&&isFinite(t))return{x:(n=n.isHorizontal())?t:null,y:n?null:t}}return null}(a),a.mapper=(s=o=void 0,o=(r=a).fill,!(s="dataset")===o?null:(isFinite(o)||(s="boundary"),f[s](r))))},beforeDatasetDraw:function(t,e){var n,i,a,r,o=e.meta.$filler;o&&(n=t.ctx,a=(i=o.el)._view,r=i._children||[],e=o.mapper,o=a.backgroundColor||s.global.defaultColor,e&&o&&r.length&&(l.canvas.clipArea(n,t.chartArea),function(t,e,n,i,a,r){var o,s,l,u,d,h,c=e.length,f=i.spanGaps,g=[],m=[],p=0,v=0;for(t.beginPath(),o=0,s=c+!!r;o<s;++o)u=n(l=e[h=o%c]._view,h,i),d=y(l),h=y(u),d&&h?(p=g.push(l),v=m.push(u)):p&&v&&(f?(d&&g.push(l),h&&m.push(u)):(b(t,g,m,p,v),p=v=0,g=[],m=[]));b(t,g,m,p,v),t.closePath(),t.fillStyle=a,t.fill()}(n,r,e,a,o,i._loop),l.canvas.unclipArea(n)))}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var P=t(25),i=t(26),T=t(45),a=t(30),t=T.noop;function O(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}P._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,e=i.getDatasetMeta(n);e.hidden=null===e.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return T.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:T.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var r=i.extend({initialize:function(t){T.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,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:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=T.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,r,o,s,l,u=this,t=u.options,d=t.labels,e=t.display,h=u.ctx,c=P.global,f=T.valueOrDefault,g=f(d.fontSize,c.defaultFontSize),t=f(d.fontStyle,c.defaultFontStyle),c=f(d.fontFamily,c.defaultFontFamily),t=T.fontString(g,t,c),m=u.legendHitBoxes=[],p=u.minSize,c=u.isHorizontal();c?(p.width=u.maxWidth,p.height=e?10:0):(p.width=e?10:0,p.height=u.maxHeight),e&&(h.font=t,c?(n=u.lineWidths=[0],i=u.legendItems.length?g+d.padding:0,h.textAlign="left",h.textBaseline="top",T.each(u.legendItems,function(t,e){t=O(d,g)+g/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=g+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:g},n[n.length-1]+=t+d.padding}),p.height+=i):(c=d.padding,a=u.columnWidths=[],r=d.padding,s=o=0,l=g+c,T.each(u.legendItems,function(t,e){t=O(d,g)+g/2+h.measureText(t.text).width;s+l>p.height&&(r+=o+d.padding,a.push(o),s=o=0),o=Math.max(o,t),s+=l,m[e]={left:0,top:0,width:t,height:g}}),r+=o,a.push(o),p.width+=r)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var f,g,t,m,e,n,p,v,y,b,x,_=this,k=_.options,w=k.labels,M=P.global,S=M.elements.line,D=_.width,C=_.lineWidths;k.display&&(f=_.ctx,t=(g=T.valueOrDefault)(w.fontColor,M.defaultFontColor),m=g(w.fontSize,M.defaultFontSize),e=g(w.fontStyle,M.defaultFontStyle),n=g(w.fontFamily,M.defaultFontFamily),n=T.fontString(m,e,n),f.textAlign="left",f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=t,f.fillStyle=t,f.font=n,p=O(w,m),v=_.legendHitBoxes,y=_.isHorizontal(),b=y?{x:_.left+(D-C[0])/2,y:_.top+w.padding,line:0}:{x:_.left+w.padding,y:_.top+w.padding,line:0},x=m+w.padding,T.each(_.legendItems,function(t,e){var n,i,a,r,o,s,l,u=f.measureText(t.text).width,d=p+m/2+u,h=b.x,c=b.y;y?D<=h+d&&(c=b.y+=x,b.line++,h=b.x=_.left+(D-C[b.line])/2):c+x>_.bottom&&(h=b.x=h+_.columnWidths[b.line]+w.padding,c=b.y=_.top+w.padding,b.line++),n=h,i=c,a=t,isNaN(p)||p<=0||(f.save(),f.fillStyle=g(a.fillStyle,M.defaultColor),f.lineCap=g(a.lineCap,S.borderCapStyle),f.lineDashOffset=g(a.lineDashOffset,S.borderDashOffset),f.lineJoin=g(a.lineJoin,S.borderJoinStyle),f.lineWidth=g(a.lineWidth,S.borderWidth),f.strokeStyle=g(a.strokeStyle,M.defaultColor),r=0===g(a.lineWidth,S.borderWidth),f.setLineDash&&f.setLineDash(g(a.lineDash,S.borderDash)),k.labels&&k.labels.usePointStyle?(s=n+(l=(o=m*Math.SQRT2/2)/Math.SQRT2),l=i+l,T.canvas.drawPoint(f,a.pointStyle,o,s,l)):(r||f.strokeRect(n,i,p,m),f.fillRect(n,i,p,m)),f.restore()),v[e].left=h,v[e].top=c,e=t,t=u,h=p+(u=m/2)+(h=h),u=c+u,f.fillText(e.text,h,u),e.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(h,u),f.lineTo(h+t,u),f.stroke()),y?b.x+=d+w.padding:b.y+=x}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(r>=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:r,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(T.mergeIf(e,P.global.legend),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var y=t(25),i=t(26),b=t(45),a=t(30),t=b.noop;y._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var r=i.extend({initialize:function(t){b.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,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:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=b.valueOrDefault,e=this.options,n=e.display,i=t(e.fontSize,y.global.defaultFontSize),a=this.minSize,t=b.isArray(e.text)?e.text.length:1,i=b.options.toLineHeight(e.lineHeight,i),e=n?t*i+2*e.padding:0;this.isHorizontal()?(a.width=this.maxWidth,a.height=e):(a.width=e,a.height=this.maxHeight),this.width=a.width,this.height=a.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=b.valueOrDefault,n=this.options,i=y.global;if(n.display){var a,r,o,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),d=b.fontString(s,l,u),h=b.options.toLineHeight(n.lineHeight,s),c=h/2+n.padding,f=0,g=this.top,l=this.left,u=this.bottom,s=this.right;t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=d,this.isHorizontal()?(r=l+(s-l)/2,o=g+c,a=s-l):(r="left"===n.position?l+c:s-c,o=g+(u-g)/2,a=u-g,f=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(f),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(b.isArray(m))for(var p=0,v=0;v<m.length;++v)t.fillText(m[v],0,p,a),p+=h;else t.fillText(m,0,0,a);t.restore()}}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:r,beforeInit:function(t){var e=t.options.title;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(b.mergeIf(e,y.global.title),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);if((void 0!==(n=null!=t?i.isHorizontal()?t.x:t.y:n)||void 0!==t&&isNaN(e))&&(t=n||t,e=-1!==(o=i.getLabels().indexOf(t))?o:e),i.isHorizontal()){var t=i.width/r,o=t*(e-i.minIndex);return a&&(o+=t/2),i.left+Math.round(o)}r=i.height/r,e=r*(e-i.minIndex);return a&&(e+=r/2),i.top+Math.round(e)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),n=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=n/2),(t<=0?0:Math.round(t/n))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),h=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var o=this,s=o.options,l=o.chart,t=l.data.datasets,e=o.isHorizontal();function u(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null;var d,i=s.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join(".");void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]});var a=d[i].positiveValues,r=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,r[e]=r[e]||0,s.relativePoints?a[e]=100:t<0?r[e]+=t:a[e]+=t)})}),h.each(d,function(t){var e=t.positiveValues.concat(t.negativeValues),t=h.min(e),e=h.max(e);o.min=null===o.min?t:Math.min(o.min,t),o.max=null===o.max?e:Math.max(o.max,e)})):h.each(t,function(t,e){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||((null===o.min||t<o.min)&&(o.min=t),(null===o.max||t>o.max)&&(o.max=t))})}),o.min=isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=isFinite(o.max)&&!isNaN(o.max)?o.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,n=+this.getRightValue(t),t=this.end-e,e=this.isHorizontal()?this.left+this.width/t*(n-e):this.bottom-this.height/t*(n-e);return e},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,n=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var u=t(45);e.exports=function(e){var t=u.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0));var n=void 0!==e.min||void 0!==e.suggestedMin,i=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),n!=i&&t.min>=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i,a=[];i=t.stepSize&&0<t.stepSize?t.stepSize:(n=u.niceNum(e.max-e.min,!1),u.niceNum(n/(t.maxTicks-1),!0));var r=Math.floor(e.min/i)*i,e=Math.ceil(e.max/i)*i;t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(r=t.min,e=t.max);var o=(e-r)/i,o=u.almostEquals(o,Math.round(o),i/1e3)?Math.round(o):Math.ceil(o),s=1;i<1&&(s=Math.pow(10,i.toString().length-2),r=Math.round(r*s)/s,e=Math.round(e*s)/s),a.push(void 0!==t.min?t.min:r);for(var l=1;l<o;++l)a.push(Math.round((r+l*i)*s)/s);return a.push(void 0!==t.max?t.max:e),a}(n,t);t.handleDirectionalChanges(),t.max=u.max(n),t.min=u.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var h=t(45),i=t(34);e.exports=function(d){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},e=d.Scale.extend({determineDataLimits:function(){var r=this,n=r.options,o=r.chart,t=o.data.datasets,e=r.isHorizontal();function s(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null,r.minNotZero=null;var l,i=n.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=o.getDatasetMeta(e),o.isDatasetVisible(e)&&s(n)&&void 0!==n.stack&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=o.getDatasetMeta(e),a=[i.type,void 0===n.stacked&&void 0===i.stack?e:"",i.stack].join(".");o.isDatasetVisible(e)&&s(i)&&(void 0===l[a]&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+r.getRightValue(t);isNaN(t)||i.data[e].hidden||t<0||(n[e]=n[e]||0,n[e]+=t)}))}),h.each(l,function(t){var e;0<t.length&&(e=h.min(t),t=h.max(t),r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t))})):h.each(t,function(t,e){var n=o.getDatasetMeta(e);o.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===r.min||t<r.min)&&(r.min=t),(null===r.max||t>r.max)&&(r.max=t),0!=t&&(null===r.minNotZero||t<r.minNotZero)&&(r.minNotZero=t))})}),this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=h.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(h.log10(t.min))-1),t.max=Math.pow(10,Math.floor(h.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(h.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(h.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(h.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:e.min,max:e.max},i=t.ticks=function(t,e){var n,i,a=[],r=h.valueOrDefault,o=r(t.min,Math.pow(10,Math.floor(h.log10(e.min)))),s=Math.floor(h.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s));0===o?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(o),o=i*Math.pow(10,n)):(n=Math.floor(h.log10(o)),i=Math.floor(o/Math.pow(10,n)));for(var u=n<0?Math.pow(10,Math.abs(n)):1;a.push(o),10===++i&&(i=1,u=0<=++n?1:u),o=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return t=r(t.max,o),a.push(t),a}(i,t);t.max=h.max(i),t.min=h.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),d.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])},_getFirstTickValue:function(t){var e=Math.floor(h.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,r=this,o=r.options.ticks.reverse,s=h.log10,l=r._getFirstTickValue(r.minNotZero),u=0;return t=+r.getRightValue(t),a=o?(n=r.end,i=r.start,-1):(n=r.start,i=r.end,1),o=r.isHorizontal()?(e=r.width,o?r.right:r.left):(e=r.height,a*=-1,o?r.top:r.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(r.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),o+=a*u),o},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,r=h.log10,o=i._getFirstTickValue(i.minNotZero),s=a?(n=i.end,i.start):(n=i.start,i.end),t=i.isHorizontal()?(e=i.width,a?i.right-t:t-i.left):(e=i.height,a?t-i.top:i.bottom-t);return t!==n&&(0===n&&(t-=i=h.getValueOrDefault(i.options.ticks.fontSize,d.defaults.global.defaultFontSize),e-=i,n=o),t*=r(s)-r(n),t/=e,t=Math.pow(10,r(n)+t)),t}});d.scaleService.registerScaleType("logarithmic",e,t)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var r=t(25),p=t(45),s=t(34);e.exports=function(t){var c=r.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function f(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function g(t){var e=t.options.pointLabels,n=p.valueOrDefault(e.fontSize,c.defaultFontSize),t=p.valueOrDefault(e.fontStyle,c.defaultFontStyle),e=p.valueOrDefault(e.fontFamily,c.defaultFontFamily);return{size:n,style:t,family:e,font:p.fontString(n,t,e)}}function m(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function n(t){var e,n=g(t),i=Math.min(t.height/2,t.width/2),a={r:t.width,l:0,t:t.height,b:0},r={};t.ctx.font=n.font,t._pointLabelSizes=[];for(var o=f(t),s=0;s<o;s++){e=t.getPointPosition(s,i),l=t.ctx,d=n.size,u=t.pointLabels[s]||"",h=p.isArray(u)?{w:p.longestText(l,l.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:l.measureText(u).width,h:d},t._pointLabelSizes[s]=h;var l=t.getIndexAngle(s),u=p.toDegrees(l)%360,d=m(u,e.x,h.w,0,180),h=m(u,e.y,h.h,90,270);d.start<a.l&&(a.l=d.start,r.l=l),d.end>a.r&&(a.r=d.end,r.r=l),h.start<a.t&&(a.t=h.start,r.t=l),h.end>a.b&&(a.b=h.end,r.b=l)}t.setReductions(i,a,r)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels;e.lineWidth=i.lineWidth,e.strokeStyle=i.color;var r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=g(t);e.textBaseline="top";for(var s,l,u,d,h=f(t)-1;0<=h;h--)i.display&&(u=t.getPointPosition(h,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display&&(s=t.getPointPosition(h,r+5),d=p.valueAtIndexOrDefault(a.fontColor,h,c.defaultFontColor),e.font=o.font,e.fillStyle=d,l=t.getIndexAngle(h),u=p.toDegrees(l),e.textAlign=0===(d=u)||180===d?"center":d<180?"left":"right",l=u,d=t._pointLabelSizes[h],u=s,90===l||270===l?u.y-=d.h/2:(270<l||l<90)&&(u.y-=d.h),function(t,e,n,i){if(p.isArray(e))for(var a=n.y,r=1.5*i,o=0;o<e.length;++o)t.fillText(e[o],n.x,a),a+=r;else t.fillText(e,n.x,n.y)}(e,t.pointLabels[h]||"",s,o.size))}function o(t){return p.isNumber(t)?t:0}var a=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var i=p.min([t.height,t.width]),a=p.valueOrDefault(n.fontSize,c.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;p.each(a.data.datasets,function(t,e){var n;a.isDatasetVisible(e)&&(n=a.getDatasetMeta(e),p.each(t.data,function(t,e){t=+i.getRightValue(t);isNaN(t)||n.data[e].hidden||(r=Math.min(t,r),o=Math.max(t,o))}))}),i.min=r===Number.POSITIVE_INFINITY?0:r,i.max=o===Number.NEGATIVE_INFINITY?0:o,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=p.valueOrDefault(t.fontSize,c.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?n(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),n=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=o(i),a=o(a),r=o(r),n=o(n);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(r+n)/2)),this.setCenterPoint(i,a,r,n)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,t=t+a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/f(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*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:0<t&&0<e?t:0)},draw:function(){var a,r,o,t,e,s,l=this,n=l.options,u=n.gridLines,d=n.ticks,h=p.valueOrDefault;n.display&&(a=l.ctx,r=this.getIndexAngle(0),o=h(d.fontSize,c.defaultFontSize),t=h(d.fontStyle,c.defaultFontStyle),e=h(d.fontFamily,c.defaultFontFamily),s=p.fontString(o,t,e),p.each(l.ticks,function(t,e){var n,i;(0<e||d.reverse)&&(n=l.getDistanceFromCenterForValue(l.ticksAsNumbers[e]),u.display&&0!==e&&function(t,e,n,i){var a=t.ctx;if(a.strokeStyle=p.valueAtIndexOrDefault(e.color,i-1),a.lineWidth=p.valueAtIndexOrDefault(e.lineWidth,i-1),t.options.gridLines.circular)a.beginPath(),a.arc(t.xCenter,t.yCenter,n,0,2*Math.PI),a.closePath(),a.stroke();else{var r=f(t);if(0!==r){a.beginPath();var o=t.getPointPosition(0,n);a.moveTo(o.x,o.y);for(var s=1;s<r;s++)o=t.getPointPosition(s,n),a.lineTo(o.x,o.y);a.closePath(),a.stroke()}}}(l,u,n,e),d.display&&(i=h(d.fontColor,c.defaultFontColor),a.font=s,a.save(),a.translate(l.xCenter,l.yCenter),a.rotate(r),d.showLabelBackdrop&&(e=a.measureText(t).width,a.fillStyle=d.backdropColor,a.fillRect(-e/2-d.backdropPaddingX,-n-o/2-d.backdropPaddingY,e+2*d.backdropPaddingX,o+2*d.backdropPaddingY)),a.textAlign="center",a.textBaseline="middle",a.fillStyle=i,a.fillText(t,0,-n),a.restore()))}),(n.angleLines.display||n.pointLabels.display)&&i(l))}});t.scaleService.registerScaleType("radialLinear",a,e)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var b="function"==typeof(b=t(6))?b:window.moment,a=t(25),m=t(45),p=Number.MIN_SAFE_INTEGER||-9007199254740991,v=Number.MAX_SAFE_INTEGER||9007199254740991,x={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},_=Object.keys(x);function y(t,e){return t-e}function k(t){for(var e,n={},i=[],a=0,r=t.length;a<r;++a)n[e=t[a]]||(n[e]=!0,i.push(e));return i}function w(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;0<=o&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)o=1+i;else{if(!(a[e]>n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-r[e],t=t?(n-r[e])/t:0,t=(a[i]-r[i])*t;return r[i]+t}function M(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?b(t,e):!(t=!(t instanceof b)?b(t):t).isValid()&&"function"==typeof e?e(t):t}function S(t,e){if(m.isNullOrUndef(t))return null;var n=e.options.time,t=M(e.getRightValue(t),n);return t.isValid()?(n.round&&t.startOf(n.round),t.valueOf()):null}function D(t){for(var e=_.indexOf(t)+1,n=_.length;e<n;++e)if(x[_[e]].common)return _[e]}function C(t,e,n,i){var a,r=i.time,o=r.unit||function(t,e,n,i){for(var a,r,o=_.length,s=_.indexOf(t);s<o-1;++s)if(r=(a=x[_[s]]).steps?a.steps[a.steps.length-1]:v,a.common&&Math.ceil((n-e)/(r*a.size))<=i)return _[s];return _[o-1]}(r.minUnit,t,e,n),s=D(o),l=m.valueOrDefault(r.stepSize,r.unitStepSize),u="week"===o&&r.isoWeekday,d=i.ticks.major.enabled,h=x[o],i=b(t),c=b(e),f=[],l=l||function(t,e,n,i){var a,r,o,s=e-t,l=(n=x[n]).size,u=n.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,r=u.length;a<r&&(o=u[a],!(Math.ceil(s/(l*o))<=i));++a);return o}(t,e,o,n);for(u&&(i=i.isoWeekday(u),c=c.isoWeekday(u)),i=i.startOf(u?"day":o),(c=c.startOf(u?"day":o))<e&&c.add(1,o),a=b(i),d&&s&&!u&&!r.round&&(a.startOf(s),a.add(~~((i-a)/(h.size*l))*l,o));a<c;a.add(l,o))f.push(+a);return f.push(+a),f}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!b)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,r=a.chart,o=a.options.time,s=o.unit||"day",l=v,u=p,d=[],h=[],c=[],f=0,g=r.data.labels.length;f<g;++f)c.push(S(r.data.labels[f],a));for(f=0,g=(r.data.datasets||[]).length;f<g;++f)if(r.isDatasetVisible(f))if(n=r.data.datasets[f].data,m.isObject(n[0]))for(h[f]=[],t=0,e=n.length;t<e;++t)i=S(n[t],a),d.push(i),h[f][t]=i;else d.push.apply(d,c),h[f]=c.slice(0);else h[f]=[];c.length&&(c=k(c).sort(y),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=k(d).sort(y),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=S(o.min,a)||l,u=S(o.max,a)||u,l=l===v?+b().startOf(s):l,u=u===p?+b().endOf(s)+1:u,a.min=Math.min(l,u),a.max=Math.max(l+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:h,labels:c}},buildTicks:function(){var t,e,n,i,a,r,o,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,v=[],y=[];switch(m.ticks.source){case"data":v=c._timestamps.data;break;case"labels":v=c._timestamps.labels;break;case"auto":default:v=C(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&v.length&&(f=v[0],g=v[v.length-1]),f=S(p.min,c)||f,g=S(p.max,c)||g,t=0,e=v.length;t<e;++t)f<=(n=v[t])&&n<=g&&y.push(n);return c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,r=b.duration(b(i).diff(b(n))),o=_.length-1;o>=_.indexOf(e);o--)if(a=_[o],x[a].common&&r.as(a)>=t.length)return a;return _[e?_.indexOf(e):0]}(y,p.minUnit,c.min,c.max),c._majorUnit=D(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,r,o,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(r=t[u])&&r<n&&l.push(r);for(l.push(n),u=0,d=l.length;u<d;++u)o=l[u+1],a=l[u-1],r=l[u],void 0!==a&&void 0!==o&&Math.round((o+a)/2)===r||s.push({time:r,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=y,r=f,o=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:o,u=a[0],d=(w(i,"time",l,"pos")-w(i,"time",u,"pos"))/2),s.time.max||(l=a[a.length-1],u=1<a.length?a[a.length-2]:r,h=(w(i,"time",l,"pos")-w(i,"time",u,"pos"))/2)),{left:d,right:h}),c._labelFormat=function(t,e){for(var n,i,a=t.length,r=0;r<a;r++){if(0!==(n=M(t[r],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(c._timestamps.data,p),function(t,e){for(var n,i,a=[],r=0,o=t.length;r<o;++r)n=t[r],i=!!e&&n===+b(n).startOf(e),a.push({value:n,major:i});return a}(y,c._majorUnit)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",t=n.datasets[e].data[t];return m.isObject(t)&&(a=this.getRightValue(t)),i.tooltipFormat?M(a,i).format(i.tooltipFormat):"string"==typeof a?a:M(a,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var a=this.options,r=t.valueOf(),o=a.time.displayFormats,s=o[this._unit],l=this._majorUnit,u=o[l],d=t.clone().startOf(l).valueOf(),o=a.ticks.major,d=o.enabled&&l&&u&&r===d,s=t.format(i||(d?u:s)),a=d?o:a.ticks.minor,a=m.valueOrDefault(a.callback,a.userCallback);return a?a(s,e,n):s},convertTicksToLabels:function(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(this.tickFormatFunction(b(t[n].value),n,t));return e},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=w(e._table,"time",t,"pos");return i+n*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(null!==(i=null===(i=void 0!==e&&void 0!==n?this._timestamps.datasets[n][e]:i)?S(t,this):i))return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,n=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,n=w(e._table,"pos",n,"time");return b(n)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=m.toRadians(e.maxRotation),t=Math.cos(i),i=Math.sin(i);return n*t+m.valueOrDefault(e.fontSize,a.global.defaultFontSize)*i},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,t=this.tickFormatFunction(b(t),0,[],e),e=this.getLabelWidth(t),t=this.isHorizontal()?this.width:this.height,e=Math.floor(t/e);return 0<e?e:1}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)}) |