function _typeof(e){if("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}(function(e){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module){module.exports=e()}else if("function"==typeof define&&define.amd){define ("core/chartjs-lazy",[],e)}else{var t;if("undefined"!=typeof window){t=window}else if("undefined"!=typeof global){t=global}else if("undefined"!=typeof self){t=self}else{t=this}t.Chart=e()}})(function(){var e;return function d(c,e,t){function a(i,o){if(!e[i]){if(!c[i]){var s="function"==typeof require&&require;if(!o&&s)return s(i,!0);if(n)return n(i,!0);var h=new Error("Cannot find module '"+i+"'");throw h.code="MODULE_NOT_FOUND",h}var u=e[i]={exports:{}};c[i][0].call(u.exports,function(t){var e=c[i][1][t];return a(e?e:t)},u,u.exports,d,c,e,t)}return e[i].exports}for(var n="function"==typeof require&&require,i=0;it||e[3]&&1>e[3]){return n(e,t)}return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:n,percentString:function(e,t){if(1>t||e[3]&&1>e[3]){return l(e,t)}var a=Math.round(100*(e[0]/255)),o=Math.round(100*(e[1]/255)),i=Math.round(100*(e[2]/255));return"rgb("+a+"%, "+o+"%, "+i+"%)"},percentaString:l,hslString:function(e,t){if(1>t||e[3]&&1>e[3]){return s(e,t)}return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:s,hwbString:function(e,t){if(t===void 0){t=e[3]!==void 0?e[3]:1}return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(t!==void 0&&1!==t?", "+t:"")+")"},keyword:function(e){return u[e.slice(0,3)]}};function a(e){if(!e){return}var t=/^#([a-fA-F0-9]{3})$/i,o=/^#([a-fA-F0-9]{6})$/i,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,l=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,s=/(\w+)/,c=[0,0,0],u=1,m=e.match(t);if(m){m=m[1];for(var p=0;pt.length?"0"+t:t}var u={};for(var m in h){u[h[m]]=m}},{5:5}],2:[function(e,t){var a=e(4),o=e(1),i=function(e){if(e instanceof i){return e}if(!(this instanceof i)){return new i(e)}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};var t;if("string"==typeof e){t=o.getRgba(e);if(t){this.setValues("rgb",t)}else if(t=o.getHsla(e)){this.setValues("hsl",t)}else if(t=o.getHwb(e)){this.setValues("hwb",t)}}else if("object"===_typeof(e)){t=e;if(t.r!==void 0||t.red!==void 0){this.setValues("rgb",t)}else if(t.l!==void 0||t.lightness!==void 0){this.setValues("hsl",t)}else if(t.v!==void 0||t.value!==void 0){this.setValues("hsv",t)}else if(t.w!==void 0||t.whiteness!==void 0){this.setValues("hwb",t)}else if(t.c!==void 0||t.cyan!==void 0){this.setValues("cmyk",t)}}};i.prototype={isValid:function isValid(){return this.valid},rgb:function rgb(){return this.setSpace("rgb",arguments)},hsl:function hsl(){return this.setSpace("hsl",arguments)},hsv:function hsv(){return this.setSpace("hsv",arguments)},hwb:function hwb(){return this.setSpace("hwb",arguments)},cmyk:function cmyk(){return this.setSpace("cmyk",arguments)},rgbArray:function rgbArray(){return this.values.rgb},hslArray:function hslArray(){return this.values.hsl},hsvArray:function hsvArray(){return this.values.hsv},hwbArray:function hwbArray(){var e=this.values;if(1!==e.alpha){return e.hwb.concat([e.alpha])}return e.hwb},cmykArray:function cmykArray(){return this.values.cmyk},rgbaArray:function rgbaArray(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function hslaArray(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function alpha(e){if(e===void 0){return this.values.alpha}this.setValues("alpha",e);return this},red:function red(e){return this.setChannel("rgb",0,e)},green:function green(e){return this.setChannel("rgb",1,e)},blue:function blue(e){return this.setChannel("rgb",2,e)},hue:function hue(e){if(e){e%=360;e=0>e?360+e:e}return this.setChannel("hsl",0,e)},saturation:function saturation(e){return this.setChannel("hsl",1,e)},lightness:function lightness(e){return this.setChannel("hsl",2,e)},saturationv:function saturationv(e){return this.setChannel("hsv",1,e)},whiteness:function whiteness(e){return this.setChannel("hwb",1,e)},blackness:function blackness(e){return this.setChannel("hwb",2,e)},value:function value(e){return this.setChannel("hsv",2,e)},cyan:function cyan(e){return this.setChannel("cmyk",0,e)},magenta:function magenta(e){return this.setChannel("cmyk",1,e)},yellow:function yellow(e){return this.setChannel("cmyk",2,e)},black:function black(e){return this.setChannel("cmyk",3,e)},hexString:function hexString(){return o.hexString(this.values.rgb)},rgbString:function rgbString(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function rgbaString(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function percentString(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function hslString(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function hslaString(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function hwbString(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function keyword(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function rgbNumber(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function luminosity(){for(var e=this.values.rgb,t=[],a=0,o;a=o?o/12.92:Math.pow((o+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function contrast(e){var t=this.luminosity(),a=e.luminosity();if(t>a){return(t+.05)/(a+.05)}return(a+.05)/(t+.05)},level:function level(e){var t=this.contrast(e);if(7.1<=t){return"AAA"}return 4.5<=t?"AA":""},dark:function dark(){var e=this.values.rgb,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return 128>t},light:function light(){return!this.dark()},negate:function negate(){for(var e=[],t=0;3>t;t++){e[t]=255-this.values.rgb[t]}this.setValues("rgb",e);return this},lighten:function lighten(e){var t=this.values.hsl;t[2]+=t[2]*e;this.setValues("hsl",t);return this},darken:function darken(e){var t=this.values.hsl;t[2]-=t[2]*e;this.setValues("hsl",t);return this},saturate:function saturate(e){var t=this.values.hsl;t[1]+=t[1]*e;this.setValues("hsl",t);return this},desaturate:function desaturate(e){var t=this.values.hsl;t[1]-=t[1]*e;this.setValues("hsl",t);return this},whiten:function whiten(e){var t=this.values.hwb;t[1]+=t[1]*e;this.setValues("hwb",t);return this},blacken:function blacken(e){var t=this.values.hwb;t[2]+=t[2]*e;this.setValues("hwb",t);return this},greyscale:function greyscale(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];this.setValues("rgb",[t,t,t]);return this},clearer:function clearer(e){var t=this.values.alpha;this.setValues("alpha",t-t*e);return this},opaquer:function opaquer(e){var t=this.values.alpha;this.setValues("alpha",t+t*e);return this},rotate:function rotate(e){var t=this.values.hsl,a=(t[0]+e)%360;t[0]=0>a?360+a:a;this.setValues("hsl",t);return this},mix:function mix(e,t){var o=this,i=e,n=t===void 0?.5:t,l=2*n-1,s=o.alpha()-i.alpha(),a=((-1==l*s?l:(l+s)/(1+l*s))+1)/2,d=1-a;return this.rgb(a*o.red()+d*i.red(),a*o.green()+d*i.green(),a*o.blue()+d*i.blue()).alpha(o.alpha()*n+i.alpha()*(1-n))},toJSON:function toJSON(){return this.rgb()},clone:function clone(){var e=new i,t=this.values,a=e.values,o,n;for(var l in t){if(t.hasOwnProperty(l)){o=t[l];n={}.toString.call(o);if("[object Array]"===n){a[l]=o.slice(0)}else if("[object Number]"===n){a[l]=o}else{console.error("unexpected color value:",o)}}}return e}};i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};i.prototype.getValues=function(e){for(var t=this.values,a={},o=0;o=o?o:2-o;n=(o+a)/2;i=2*a/(o+a);return[t,100*i,100*n]},hsl2hwb:function(e){return i(c(e))},hsl2cmyk:function(e){return n(c(e))},hsl2keyword:function(e){return l(c(e))},hsv2rgb:h,hsv2hsl:function(e){var t=e[0],a=e[1]/100,o=e[2]/100,i,n;n=(2-a)*o;i=a*o;i/=1>=n?n:2-n;i=i||0;n/=2;return[t,100*i,100*n]},hsv2hwb:function(e){return i(h(e))},hsv2cmyk:function(e){return n(h(e))},hsv2keyword:function(e){return l(h(e))},hwb2rgb:u,hwb2hsl:function(e){return a(u(e))},hwb2hsv:function(e){return o(u(e))},hwb2cmyk:function(e){return n(u(e))},hwb2keyword:function(e){return l(u(e))},cmyk2rgb:m,cmyk2hsl:function(e){return a(m(e))},cmyk2hsv:function(e){return o(m(e))},cmyk2hwb:function(e){return i(m(e))},cmyk2keyword:function(e){return l(m(e))},keyword2rgb:v,keyword2hsl:function(e){return a(v(e))},keyword2hsv:function(e){return o(v(e))},keyword2hwb:function(e){return i(v(e))},keyword2cmyk:function(e){return n(v(e))},keyword2lab:function(e){return d(v(e))},keyword2xyz:function(e){return s(v(e))},xyz2rgb:p,xyz2lab:f,xyz2lch:function(e){return x(f(e))},lab2xyz:y,lab2rgb:k,lab2lch:x,lch2lab:_,lch2xyz:function(e){return y(_(e))},lch2rgb:function(e){return k(_(e))}};function a(e){var t=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(t,a,o),n=Math.max(t,a,o),d=n-i,c,u,m;if(n==i)c=0;else if(t==n)c=(a-o)/d;else if(a==n)c=2+(o-t)/d;else if(o==n)c=4+(t-a)/d;c=Math.min(60*c,360);if(0>c)c+=360;m=(i+n)/2;if(n==i)u=0;else if(.5>=m)u=d/(n+i);else u=d/(2-n-i);return[c,100*u,100*m]}function o(e){var t=e[0],a=e[1],o=e[2],i=Math.min(t,a,o),n=Math.max(t,a,o),l=n-i,d,c,u;if(0==n)c=0;else c=1e3*(l/n)/10;if(n==i)d=0;else if(t==n)d=(a-o)/l;else if(a==n)d=2+(o-t)/l;else if(o==n)d=4+(t-a)/l;d=Math.min(60*d,360);if(0>d)d+=360;u=1e3*(n/255)/10;return[d,c,u]}function i(e){var t=e[0],o=e[1],i=e[2],n=a(e)[0],l=1/255*Math.min(t,Math.min(o,i)),i=1-1/255*Math.max(t,Math.max(o,i));return[n,100*l,100*i]}function n(e){var t=e[0]/255,a=e[1]/255,o=e[2]/255,i,n,l,s;s=Math.min(1-t,1-a,1-o);i=(1-t-s)/(1-s)||0;n=(1-a-s)/(1-s)||0;l=(1-o-s)/(1-s)||0;return[100*i,100*n,100*l,100*s]}function l(e){return w[JSON.stringify(e)]}function s(e){var t=e[0]/255,a=e[1]/255,o=e[2]/255;t=.04045o)l=o*(1+a);else l=o+a-o*a;n=2*o-l;d=[0,0,0];for(var h=0;3>h;h++){s=t+1/3*-(h-1);0>s&&s++;16*s)c=n+6*(l-n)*s;else if(1>2*s)c=l;else if(2>3*s)c=n+6*((l-n)*(2/3-s));else c=n;d[h]=255*c}return d}function h(e){var a=e[0]/60,o=e[1]/100,i=e[2]/100,n=Math.floor(a)%6,l=a-Math.floor(a),s=255*i*(1-o),d=255*i*(1-o*l),c=255*i*(1-o*(1-l)),i=255*i;switch(n){case 0:return[i,c,s];case 1:return[d,i,s];case 2:return[s,i,c];case 3:return[s,d,i];case 4:return[c,s,i];case 5:return[i,s,d];}}function u(e){var t=e[0]/360,a=e[1]/100,o=e[2]/100,l=a+o,s,d,c,h;if(1=t){n=100*t/903.3;s=7.787*(n/100)+16/116}else{n=100*Math.pow((t+16)/116,3);s=Math.pow(n/100,1/3)}i=.008856>=i/95.047?i=95.047*(o/500+s-16/116)/7.787:95.047*Math.pow(o/500+s,3);l=.008859>=l/108.883?l=108.883*(s-a/200-16/116)/7.787:108.883*Math.pow(s-a/200,3);return[i,n,l]}function x(e){var t=e[0],o=e[1],a=e[2],i,n,l;i=Math.atan2(a,o);n=360*i/2/Math.PI;if(0>n){n+=360}l=Math.sqrt(o*o+a*a);return[t,l,n]}function k(e){return p(y(e))}function _(e){var t=e[0],o=e[1],i=e[2],n,l,s;s=2*(i/360)*Math.PI;n=o*Math.cos(s);l=o*Math.sin(s);return[t,n,l]}function v(e){return S[e]}var S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},w={};for(var D in S){w[JSON.stringify(S[D])]=D}},{}],4:[function(e,t){var a=e(3),o=function(){return new d};for(var i in a){o[i+"Raw"]=function(e){return function(t){if("number"==typeof t)t=Array.prototype.slice.call(arguments);return a[e](t)}}(i);var n=/(\w+)2(\w+)/.exec(i),l=n[1],s=n[2];o[l]=o[l]||{};o[l][s]=o[i]=function(e){return function(t){if("number"==typeof t)t=Array.prototype.slice.call(arguments);var o=a[e](t);if("string"==typeof o||o===void 0)return o;for(var n=0;n>>0,o=0;ot.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict){o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===void 0}if(null==Object.isFrozen||!Object.isFrozen(e)){e._isValid=o}else{return o}}return e._isValid}function k(e){var t=p(NaN);if(null!=e){u(y(t),e)}else{y(t).userInvalidated=!0}return t}var It=e.momentProperties=[];function _(e,t){var a,o,n;if(!l(t._isAMomentObject)){e._isAMomentObject=t._isAMomentObject}if(!l(t._i)){e._i=t._i}if(!l(t._f)){e._f=t._f}if(!l(t._l)){e._l=t._l}if(!l(t._strict)){e._strict=t._strict}if(!l(t._tzm)){e._tzm=t._tzm}if(!l(t._isUTC)){e._isUTC=t._isUTC}if(!l(t._offset)){e._offset=t._offset}if(!l(t._pf)){e._pf=y(t)}if(!l(t._locale)){e._locale=t._locale}if(0e){return Math.ceil(e)||0}else{return Math.floor(e)}}function D(e){var t=+e,a=0;if(0!=t&&isFinite(t)){a=w(t)}return a}function C(e,t,a){var o=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),l=0,s;for(s=0;so;++o){l=p([2e3,o]);this._shortMonthsParse[o]=this.monthsShort(l,"").toLocaleLowerCase();this._longMonthsParse[o]=this.months(l,"").toLocaleLowerCase()}}if(a){if("MMM"===t){n=ma.call(this._shortMonthsParse,s);return-1!==n?n:null}else{n=ma.call(this._longMonthsParse,s);return-1!==n?n:null}}else{if("MMM"===t){n=ma.call(this._shortMonthsParse,s);if(-1!==n){return n}n=ma.call(this._longMonthsParse,s);return-1!==n?n:null}else{n=ma.call(this._longMonthsParse,s);if(-1!==n){return n}n=ma.call(this._shortMonthsParse,s);return-1!==n?n:null}}}function oe(e,t){var a;if(!e.isValid()){return e}if("string"==typeof t){if(/^\d+$/.test(t)){t=D(t)}else{t=e.localeData().monthsParse(t);if(!s(t)){return e}}}a=Math.min(e.date(),te(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a);return e}function ie(t){if(null!=t){oe(this,t);e.updateOffset(this,!0);return this}else{return H(this,"Month")}}function ne(){function e(e,t){return t.length-e.length}var t=[],a=[],o=[],n,l;for(n=0;12>n;n++){l=p([2e3,n]);t.push(this.monthsShort(l,""));a.push(this.months(l,""));o.push(this.months(l,""));o.push(this.monthsShort(l,""))}t.sort(e);a.sort(e);o.sort(e);for(n=0;12>n;n++){t[n]=J(t[n]);a[n]=J(a[n])}for(n=0;24>n;n++){o[n]=J(o[n])}this._monthsRegex=new RegExp("^("+o.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}N("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e});N(0,["YY",2],0,function(){return this.year()%100});N(0,["YYYY",4],0,"year");N(0,["YYYYY",5],0,"year");N(0,["YYYYYY",6,!0],0,"year");R("year","y");W("year",1);X("Y",ea);X("YY",Gt,Nt);X("YYYY",Jt,jt);X("YYYYY",Qt,qt);X("YYYYYY",Qt,qt);Q(["YYYYY","YYYYYY"],0);Q("YYYY",function(t,a){a[0]=2===t.length?e.parseTwoDigitYear(t):D(t)});Q("YY",function(t,a){a[0]=e.parseTwoDigitYear(t)});Q("Y",function(e,t){t[0]=parseInt(e,10)});function re(e){return le(e)?366:365}function le(e){return 0==e%4&&0!=e%100||0==e%400}e.parseTwoDigitYear=function(e){return D(e)+(68e&&0<=e&&isFinite(s.getFullYear())){s.setFullYear(e)}return s}function de(e){var t=new Date(Date.UTC.apply(null,arguments));if(100>e&&0<=e&&isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}return t}function ce(e,t,a){var o=7+t-a,i=(7+de(e,0,o).getUTCDay()-t)%7;return-i+o-1}function he(e,t,a,o,i){var n=ce(e,o,i),l=1+7*(t-1)+(7+a-o)%7+n,s,d;if(0>=l){s=e-1;d=re(s)+l}else if(l>re(e)){s=e+1;d=l-re(e)}else{s=e;d=l}return{year:s,dayOfYear:d}}function ue(e,t,a){var o=ce(e.year(),t,a),i=Math.floor((e.dayOfYear()-o-1)/7)+1,n,l;if(1>i){l=e.year()-1;n=i+ge(l,t,a)}else if(i>ge(e.year(),t,a)){n=i-ge(e.year(),t,a);l=e.year()+1}else{l=e.year();n=i}return{week:n,year:l}}function ge(e,t,a){var o=ce(e,t,a),i=ce(e+1,t,a);return(re(e)-o+i)/7}N("w",["ww",2],"wo","week");N("W",["WW",2],"Wo","isoWeek");R("week","w");R("isoWeek","W");W("week",5);W("isoWeek",5);X("w",Gt);X("ww",Gt,Nt);X("W",Gt);X("WW",Gt,Nt);$(["w","ww","W","WW"],function(e,t,a,o){t[o.substr(0,1)]=D(e)});N("d",0,"do","day");N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});N("e",0,0,"weekday");N("E",0,0,"isoWeekday");R("day","d");R("weekday","e");R("isoWeekday","E");W("day",11);W("weekday",11);W("isoWeekday",11);X("d",Gt);X("e",Gt);X("E",Gt);X("dd",function(e,t){return t.weekdaysMinRegex(e)});X("ddd",function(e,t){return t.weekdaysShortRegex(e)});X("dddd",function(e,t){return t.weekdaysRegex(e)});$(["dd","ddd","dddd"],function(e,t,a,o){var i=a._locale.weekdaysParse(e,o,a._strict);if(null!=i){t.d=i}else{y(a).invalidWeekday=e}});$(["d","e","E"],function(e,t,a,o){t[o]=D(e)});function me(e,t){if("string"!=typeof e){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if("number"==typeof e){return e}return null}function pe(e,t){if("string"==typeof e){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function fe(e,t,a){var o,n,l,s=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(o=0;7>o;++o){l=p([2e3,1]).day(o);this._minWeekdaysParse[o]=this.weekdaysMin(l,"").toLocaleLowerCase();this._shortWeekdaysParse[o]=this.weekdaysShort(l,"").toLocaleLowerCase();this._weekdaysParse[o]=this.weekdays(l,"").toLocaleLowerCase()}}if(a){if("dddd"===t){n=ma.call(this._weekdaysParse,s);return-1!==n?n:null}else if("ddd"===t){n=ma.call(this._shortWeekdaysParse,s);return-1!==n?n:null}else{n=ma.call(this._minWeekdaysParse,s);return-1!==n?n:null}}else{if("dddd"===t){n=ma.call(this._weekdaysParse,s);if(-1!==n){return n}n=ma.call(this._shortWeekdaysParse,s);if(-1!==n){return n}n=ma.call(this._minWeekdaysParse,s);return-1!==n?n:null}else if("ddd"===t){n=ma.call(this._shortWeekdaysParse,s);if(-1!==n){return n}n=ma.call(this._weekdaysParse,s);if(-1!==n){return n}n=ma.call(this._minWeekdaysParse,s);return-1!==n?n:null}else{n=ma.call(this._minWeekdaysParse,s);if(-1!==n){return n}n=ma.call(this._weekdaysParse,s);if(-1!==n){return n}n=ma.call(this._shortWeekdaysParse,s);return-1!==n?n:null}}}function ye(){function e(e,t){return t.length-e.length}var t=[],a=[],o=[],n=[],l,s,d,c,h;for(l=0;7>l;l++){s=p([2e3,1]).day(l);d=this.weekdaysMin(s,"");c=this.weekdaysShort(s,"");h=this.weekdays(s,"");t.push(d);a.push(c);o.push(h);n.push(d);n.push(c);n.push(h)}t.sort(e);a.sort(e);o.sort(e);n.sort(e);for(l=0;7>l;l++){a[l]=J(a[l]);o[l]=J(o[l]);n[l]=J(n[l])}this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function be(){return this.hours()%12||12}N("H",["HH",2],0,"hour");N("h",["hh",2],0,be);N("k",["kk",2],0,function(){return this.hours()||24});N("hmm",0,0,function(){return""+be.apply(this)+V(this.minutes(),2)});N("hmmss",0,0,function(){return""+be.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)});N("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)});N("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function xe(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xe("a",!0);xe("A",!1);R("hour","h");W("hour",13);function ke(e,t){return t._meridiemParse}X("a",ke);X("A",ke);X("H",Gt);X("h",Gt);X("k",Gt);X("HH",Gt,Nt);X("hh",Gt,Nt);X("kk",Gt,Nt);X("hmm",Xt);X("hmmss",Zt);X("Hmm",Xt);X("Hmmss",Zt);Q(["H","HH"],da);Q(["k","kk"],function(e,t){var a=D(e);t[da]=24===a?0:a});Q(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e);a._meridiem=e});Q(["h","hh"],function(e,t,a){t[da]=D(e);y(a).bigHour=!0});Q("hmm",function(e,t,a){var o=e.length-2;t[da]=D(e.substr(0,o));t[ca]=D(e.substr(o));y(a).bigHour=!0});Q("hmmss",function(e,t,a){var o=e.length-4,i=e.length-2;t[da]=D(e.substr(0,o));t[ca]=D(e.substr(o,2));t[ha]=D(e.substr(i));y(a).bigHour=!0});Q("Hmm",function(e,t){var a=e.length-2;t[da]=D(e.substr(0,a));t[ca]=D(e.substr(a))});Q("Hmmss",function(e,t){var a=e.length-4,o=e.length-2;t[da]=D(e.substr(0,a));t[ca]=D(e.substr(a,2));t[ha]=D(e.substr(o))});var ya=/[ap]\.?m?\.?/i;var ba=z("Hours",!0),xa={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:Lt,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:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],week:{dow:0,doy:6},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiemParse:ya},ka={},_a={},va;function _e(e){return e?e.toLowerCase().replace("_","-"):e}function ve(e){var t=0,a,o,n,l;while(t=a&&C(l,o,!0)>=a-1){break}a--}t++}return null}function Se(e){var o=null;if(!ka[e]&&"undefined"!=typeof a&&a&&a.exports){try{o=va._abbr;t("./locale/"+e);we(o)}catch(t){}}return ka[e]}function we(e,t){var a;if(e){if(l(t)){a=Ce(e)}else{a=De(e,t)}if(a){va=a}}return va._abbr}function De(e,t){if(null!==t){var a=xa;t.abbr=e;if(null!=ka[e]){O("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.");a=ka[e]._config}else if(null!=t.parentLocale){if(null!=ka[t.parentLocale]){a=ka[t.parentLocale]._config}else{if(!_a[t.parentLocale]){_a[t.parentLocale]=[]}_a[t.parentLocale].push({name:e,config:t});return null}}ka[e]=new M(A(a,t));if(_a[e]){_a[e].forEach(function(e){De(e.name,e.config)})}we(e);return ka[e]}else{delete ka[e];return null}}function Ce(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return va}if(!o(e)){t=Se(e);if(t){return t}e=[e]}return ve(e)}function Pe(e){var t,o=e._a;if(o&&-2===y(e).overflow){t=0>o[la]||11o[sa]||o[sa]>te(o[0],o[la])?sa:0>o[da]||24o[ca]||59o[ha]||59o[ua]||999sa)){t=sa}if(y(e)._overflowWeeks&&-1===t){t=7}if(y(e)._overflowWeekday&&-1===t){t=8}y(e).overflow=t}return e}var Sa=/^\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)?)?$/,wa=/^\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)?)?$/,Da=/Z|[+-]\d\d(?::?\d\d)?/,Ca=[["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}/]],Pa=[["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/]],Ta=/^\/?Date\((\-?\d+)/i;function Te(e){var t,a,o=e._i,n=Sa.exec(o)||wa.exec(o),s,d,c,h;if(n){y(e).iso=!0;for(t=0,a=Ca.length;tc?" -":" +")+(""+c).replace(/^-?/,"0").match(/..$/)[0]+"00"}break;case 4:d=s[a[5]];break;default:d=s[" GMT"];}a[5]=d;e._i=a.splice(1).join("");l=" ZZ";e._f=o+i+n+l;Le(e);y(e).rfc2822=!0}else{e._isValid=!1}}function Ie(t){var a=Ta.exec(t._i);if(null!==a){t._d=new Date(+a[1]);return}Te(t);if(!1===t._isValid){delete t._isValid}else{return}Oe(t);if(!1===t._isValid){delete t._isValid}else{return}e.createFromInputFallback(t)}e.createFromInputFallback=T("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ae(e,t,a){if(null!=e){return e}if(null!=t){return t}return a}function Me(t){var a=new Date(e.now());if(t._useUTC){return[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]}return[a.getFullYear(),a.getMonth(),a.getDate()]}function Re(e){var t,a,o=[],n,l;if(e._d){return}n=Me(e);if(e._w&&null==e._a[sa]&&null==e._a[la]){Fe(e)}if(null!=e._dayOfYear){l=Ae(e._a[0],n[0]);if(e._dayOfYear>re(l)||0===e._dayOfYear){y(e)._overflowDayOfYear=!0}a=de(l,0,e._dayOfYear);e._a[la]=a.getUTCMonth();e._a[sa]=a.getUTCDate()}for(t=0;3>t&&null==e._a[t];++t){e._a[t]=o[t]=n[t]}for(;7>t;t++){e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t]}if(24===e._a[da]&&0===e._a[ca]&&0===e._a[ha]&&0===e._a[ua]){e._nextDay=!0;e._a[da]=0}e._d=(e._useUTC?de:se).apply(null,o);if(null!=e._tzm){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[da]=24}}function Fe(e){var t,a,o,i,n,l,s,d;t=e._w;if(null!=t.GG||null!=t.W||null!=t.E){n=1;l=4;a=Ae(t.GG,e._a[0],ue(Ne(),1,4).year);o=Ae(t.W,1);i=Ae(t.E,1);if(1>i||7i||6t.e||6o||o>ge(a,n,l)){y(e)._overflowWeeks=!0}else if(null!=d){y(e)._overflowWeekday=!0}else{s=he(a,o,i,n,l);e._a[0]=s.year;e._dayOfYear=s.dayOfYear}}e.ISO_8601=function(){};e.RFC_2822=function(){};function Le(t){if(t._f===e.ISO_8601){Te(t);return}if(t._f===e.RFC_2822){Oe(t);return}t._a=[];y(t).empty=!0;var a=""+t._i,o,n,l,s,d,c=a.length,h=0;l=G(t._f,t._locale).match(zt)||[];for(o=0;o=t._a[da]&&!0===y(t).bigHour&&0t){t+=12}if(!o&&12===t){t=0}return t}else{return t}}function Ye(e){var t,a,o,n,l;if(0===e._f.length){y(e).invalidFormat=!0;e._d=new Date(NaN);return}for(n=0;nthis?this:e}else{return k()}});function Ue(e,t){var a,n;if(1===t.length&&o(t[0])){t=t[0]}if(!t.length){return Ne()}a=t[0];for(n=1;ne){return-1*Math.round(-1*e)}else{return Math.round(e)}}function Ze(e,t){N(e,0,0,function(){var e=this.utcOffset(),a="+";if(0>e){e=-e;a="-"}return a+V(~~(e/60),2)+t+V(~~e%60,2)})}Ze("Z",":");Ze("ZZ","");X("Z",aa);X("ZZ",aa);Q(["Z","ZZ"],function(e,t,a){a._useUTC=!0;a._tzm=Ke(aa,e)});var Ra=/([\+\-]|\d\d)/gi;function Ke(e,t){var a=(t||"").match(e);if(null===a){return null}var o=a[a.length-1]||[],i=(o+"").match(Ra)||["-",0,0],n=+(60*i[1])+D(i[2]);return 0===n?0:"+"===i[0]?n:-n}function Je(t,a){var o,i;if(a._isUTC){o=a.clone();i=(S(t)||d(t)?t.valueOf():Ne(t).valueOf())-o.valueOf();o._d.setTime(o._d.valueOf()+i);e.updateOffset(o,!1);return o}else{return Ne(t).local()}}function Qe(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}e.updateOffset=function(){};function $e(){return this.isValid()?this._isUTC&&0===this._offset:!1}var Fa=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,La=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function et(e,t){var a=e,o=null,i,n,l;if(Ge(e)){a={ms:e._milliseconds,d:e._days,M:e._months}}else if(s(e)){a={};if(t){a[t]=e}else{a.milliseconds=e}}else if(!!(o=Fa.exec(e))){i="-"===o[1]?-1:1;a={y:0,d:D(o[sa])*i,h:D(o[da])*i,m:D(o[ca])*i,s:D(o[ha])*i,ms:D(Xe(1e3*o[ua]))*i}}else if(!!(o=La.exec(e))){i="-"===o[1]?-1:1;a={y:tt(o[2],i),M:tt(o[3],i),w:tt(o[4],i),d:tt(o[5],i),h:tt(o[6],i),m:tt(o[7],i),s:tt(o[8],i)}}else if(null==a){a={}}else if("object"===_typeof(a)&&("from"in a||"to"in a)){l=ot(Ne(a.from),Ne(a.to));a={};a.ms=l.milliseconds;a.M=l.months}n=new qe(a);if(Ge(e)&&h(e,"_locale")){n._locale=e._locale}return n}et.fn=qe.prototype;et.invalid=function(){return et(NaN)};function tt(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function at(e,t){var a={milliseconds:0,months:0,months:t.month()-e.month()+12*(t.year()-e.year())};if(e.clone().add(a.months,"M").isAfter(t)){--a.months}a.milliseconds=+t-+e.clone().add(a.months,"M");return a}function ot(e,t){var a;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=Je(t,e);if(e.isBefore(t)){a=at(e,t)}else{a=at(t,e);a.milliseconds=-a.milliseconds;a.months=-a.months}return a}function it(e,t){return function(a,o){var i,n;if(null!==o&&!isNaN(+o)){O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");n=a;a=o;o=n}a="string"==typeof a?+a:a;i=et(a,o);nt(this,i,e);return this}}function nt(t,a,o,i){var n=a._milliseconds,l=Xe(a._days),s=Xe(a._months);if(!t.isValid()){return}i=null==i?!0:i;if(n){t._d.setTime(t._d.valueOf()+n*o)}if(l){B(t,"Date",H(t,"Date")+l*o)}if(s){oe(t,H(t,"Month")+s*o)}if(i){e.updateOffset(t,l||s)}}var Wa=it(1,"add"),Ya=it(-1,"subtract");function rt(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months"),i,n;if(0>t-o){i=e.clone().add(a-1,"months");n=(t-o)/(o-i)}else{i=e.clone().add(a+1,"months");n=(t-o)/(i-o)}return-(a+n)||0}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function lt(e){var t;if(e===void 0){return this._locale._abbr}else{t=Ce(e);if(null!=t){this._locale=t}return this}}var za=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===void 0){return this.localeData()}else{return this.locale(e)}});function st(){return this._locale}N(0,["gg",2],0,function(){return this.weekYear()%100});N(0,["GG",2],0,function(){return this.isoWeekYear()%100});function dt(e,t){N(0,[e,e.length],0,t)}dt("gggg","weekYear");dt("ggggg","weekYear");dt("GGGG","isoWeekYear");dt("GGGGG","isoWeekYear");R("weekYear","gg");R("isoWeekYear","GG");W("weekYear",1);W("isoWeekYear",1);X("G",ea);X("g",ea);X("GG",Gt,Nt);X("gg",Gt,Nt);X("GGGG",Jt,jt);X("gggg",Jt,jt);X("GGGGG",Qt,qt);X("ggggg",Qt,qt);$(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,o){t[o.substr(0,2)]=D(e)});$(["gg","GG"],function(t,a,o,i){a[i]=e.parseTwoDigitYear(t)});function ct(e,t,a,o,i){var n;if(null==e){return ue(this,o,i).year}else{n=ge(e,o,i);if(t>n){t=n}return ht.call(this,e,t,a,o,i)}}function ht(e,t,a,o,i){var n=he(e,t,a,o,i),l=de(n.year,0,n.dayOfYear);this.year(l.getUTCFullYear());this.month(l.getUTCMonth());this.date(l.getUTCDate());return this}N("Q",0,"Qo","quarter");R("quarter","Q");W("quarter",7);X("Q",Vt);Q("Q",function(e,t){t[la]=3*(D(e)-1)});N("D",["DD",2],"Do","date");R("date","D");W("date",9);X("D",Gt);X("DD",Gt,Nt);X("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Q(["D","DD"],sa);Q("Do",function(e,t){t[sa]=D(e.match(Gt)[0],10)});var Ha=z("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear");R("dayOfYear","DDD");W("dayOfYear",4);X("DDD",Kt);X("DDDD",Ut);Q(["DDD","DDDD"],function(e,t,a){a._dayOfYear=D(e)});N("m",["mm",2],0,"minute");R("minute","m");W("minute",14);X("m",Gt);X("mm",Gt,Nt);Q(["m","mm"],ca);var Ba=z("Minutes",!1);N("s",["ss",2],0,"second");R("second","s");W("second",15);X("s",Gt);X("ss",Gt,Nt);Q(["s","ss"],ha);var Ea=z("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)});N(0,["SS",2],0,function(){return~~(this.millisecond()/10)});N(0,["SSS",3],0,"millisecond");N(0,["SSSS",4],0,function(){return 10*this.millisecond()});N(0,["SSSSS",5],0,function(){return 100*this.millisecond()});N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()});N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()});N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()});N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()});R("millisecond","ms");W("millisecond",16);X("S",Kt,Vt);X("SS",Kt,Nt);X("SSS",Kt,Ut);var Va;for(Va="SSSS";9>=Va.length;Va+="S"){X(Va,$t)}function ut(e,t){t[ua]=D(1e3*("0."+e))}for(Va="S";9>=Va.length;Va+="S"){Q(Va,ut)}var Na=z("Milliseconds",!1);N("z",0,0,"zoneAbbr");N("zz",0,0,"zoneName");var Ua=v.prototype;Ua.add=Wa;Ua.calendar=function(t,a){var o=t||Ne(),i=Je(o,this).startOf("day"),n=e.calendarFormat(this,i)||"sameElse",l=a&&(I(a[n])?a[n].call(this,o):a[n]);return this.format(l||this.localeData().calendar(n,this,Ne(o)))};Ua.clone=function(){return new v(this)};Ua.diff=function(e,t,a){var o,i,n,l;if(!this.isValid()){return NaN}o=Je(e,this);if(!o.isValid()){return NaN}i=6e4*(o.utcOffset()-this.utcOffset());t=F(t);if("year"===t||"month"===t||"quarter"===t){l=rt(this,o);if("quarter"===t){l=l/3}else if("year"===t){l=l/12}}else{n=this-o;l="second"===t?n/1e3:"minute"===t?n/6e4:"hour"===t?n/36e5:"day"===t?(n-i)/864e5:"week"===t?(n-i)/6048e5:n}return a?l:w(l)};Ua.endOf=function(e){e=F(e);if(e===void 0||"millisecond"===e){return this}if("date"===e){e="day"}return this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")};Ua.format=function(t){if(!t){t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat}var a=q(this,t);return this.localeData().postformat(a)};Ua.from=function(e,t){if(this.isValid()&&(S(e)&&e.isValid()||Ne(e).isValid())){return et({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}};Ua.fromNow=function(e){return this.from(Ne(),e)};Ua.to=function(e,t){if(this.isValid()&&(S(e)&&e.isValid()||Ne(e).isValid())){return et({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}};Ua.toNow=function(e){return this.to(Ne(),e)};Ua.get=function(e){e=F(e);if(I(this[e])){return this[e]()}return this};Ua.invalidAt=function(){return y(this).overflow};Ua.isAfter=function(e,t){var a=S(e)?e:Ne(e);if(!(this.isValid()&&a.isValid())){return!1}t=F(!l(t)?t:"millisecond");if("millisecond"===t){return this.valueOf()>a.valueOf()}else{return a.valueOf()e.year()||9999=this.year()?"YYYY":"YYYYYY",i=t+"[\")]";return this.format(a+o+"-MM-DD[T]HH:mm:ss.SSS"+i)};Ua.toJSON=function(){return this.isValid()?this.toISOString():null};Ua.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};Ua.unix=function(){return Math.floor(this.valueOf()/1e3)};Ua.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};Ua.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};Ua.year=fa;Ua.isLeapYear=function(){return le(this.year())};Ua.weekYear=function(e){return ct.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};Ua.isoWeekYear=function(e){return ct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)};Ua.quarter=Ua.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)};Ua.month=ie;Ua.daysInMonth=function(){return te(this.year(),this.month())};Ua.week=Ua.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")};Ua.isoWeek=Ua.isoWeeks=function(e){var t=ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")};Ua.weeksInYear=function(){var e=this.localeData()._week;return ge(this.year(),e.dow,e.doy)};Ua.isoWeeksInYear=function(){return ge(this.year(),1,4)};Ua.date=Ha;Ua.day=Ua.days=function(e){if(!this.isValid()){return null!=e?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(null!=e){e=me(e,this.localeData());return this.add(e-t,"d")}else{return t}};Ua.weekday=function(e){if(!this.isValid()){return null!=e?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")};Ua.isoWeekday=function(e){if(!this.isValid()){return null!=e?this:NaN}if(null!=e){var t=pe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}};Ua.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")};Ua.hour=Ua.hours=ba;Ua.minute=Ua.minutes=Ba;Ua.second=Ua.seconds=Ea;Ua.millisecond=Ua.milliseconds=Na;Ua.utcOffset=function(t,a,o){var i=this._offset||0,n;if(!this.isValid()){return null!=t?this:NaN}if(null!=t){if("string"==typeof t){t=Ke(aa,t);if(null===t){return this}}else if(16>Math.abs(t)&&!o){t=60*t}if(!this._isUTC&&a){n=Qe(this)}this._offset=t;this._isUTC=!0;if(null!=n){this.add(n,"m")}if(i!==t){if(!a||this._changeInProgress){nt(this,et(t-i,"m"),1,!1)}else if(!this._changeInProgress){this._changeInProgress=!0;e.updateOffset(this,!0);this._changeInProgress=null}}return this}else{return this._isUTC?i:Qe(this)}};Ua.utc=function(e){return this.utcOffset(0,e)};Ua.local=function(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=!1;if(e){this.subtract(Qe(this),"m")}}return this};Ua.parseZone=function(){if(null!=this._tzm){this.utcOffset(this._tzm,!1,!0)}else if("string"==typeof this._i){var e=Ke(ta,this._i);if(null!=e){this.utcOffset(e)}else{this.utcOffset(0,!0)}}return this};Ua.hasAlignedHourOffset=function(e){if(!this.isValid()){return!1}e=e?Ne(e).utcOffset():0;return 0==(this.utcOffset()-e)%60};Ua.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};Ua.isLocal=function(){return this.isValid()?!this._isUTC:!1};Ua.isUtcOffset=function(){return this.isValid()?this._isUTC:!1};Ua.isUtc=$e;Ua.isUTC=$e;Ua.zoneAbbr=function(){return this._isUTC?"UTC":""};Ua.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};Ua.dates=T("dates accessor is deprecated. Use date instead.",Ha);Ua.months=T("months accessor is deprecated. Use month instead",ie);Ua.years=T("years accessor is deprecated. Use year instead",fa);Ua.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){if(null!=e){if("string"!=typeof e){e=-e}this.utcOffset(e,t);return this}else{return-this.utcOffset()}});Ua.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted)){return this._isDSTShifted}var e={};_(e,this);e=Be(e);if(e._a){var t=e._isUTC?p(e._a):Ne(e._a);this._isDSTShifted=this.isValid()&&0o;o++){n=p([2e3,o]);if(a&&!this._longMonthsParse[o]){this._longMonthsParse[o]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i");this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")}if(!a&&!this._monthsParse[o]){l="^"+this.months(n,"")+"|^"+this.monthsShort(n,"");this._monthsParse[o]=new RegExp(l.replace(".",""),"i")}if(a&&"MMMM"===t&&this._longMonthsParse[o].test(e)){return o}else if(a&&"MMM"===t&&this._shortMonthsParse[o].test(e)){return o}else if(!a&&this._monthsParse[o].test(e)){return o}}};ja.monthsRegex=function(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){ne.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!h(this,"_monthsRegex")){this._monthsRegex=ia}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}};ja.monthsShortRegex=function(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){ne.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!h(this,"_monthsShortRegex")){this._monthsShortRegex=ia}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}};ja.week=function(e){return ue(e,this._week.dow,this._week.doy).week};ja.firstDayOfYear=function(){return this._week.doy};ja.firstDayOfWeek=function(){return this._week.dow};ja.weekdays=function(e,t){if(!e){return o(this._weekdays)?this._weekdays:this._weekdays.standalone}return o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]};ja.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin};ja.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort};ja.weekdaysParse=function(e,t,a){var o,n,l;if(this._weekdaysParseExact){return fe.call(this,e,t,a)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(o=0;7>o;o++){n=p([2e3,1]).day(o);if(a&&!this._fullWeekdaysParse[o]){this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i");this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i");this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")}if(!this._weekdaysParse[o]){l="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,"");this._weekdaysParse[o]=new RegExp(l.replace(".",""),"i")}if(a&&"dddd"===t&&this._fullWeekdaysParse[o].test(e)){return o}else if(a&&"ddd"===t&&this._shortWeekdaysParse[o].test(e)){return o}else if(a&&"dd"===t&&this._minWeekdaysParse[o].test(e)){return o}else if(!a&&this._weekdaysParse[o].test(e)){return o}}};ja.weekdaysRegex=function(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){ye.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!h(this,"_weekdaysRegex")){this._weekdaysRegex=ia}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}};ja.weekdaysShortRegex=function(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){ye.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!h(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=ia}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}};ja.weekdaysMinRegex=function(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){ye.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!h(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=ia}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}};ja.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)};ja.meridiem=function(e,t,a){if(11o;o++){n[o]=mt(e,o,a,"month")}return n}function ft(e,t,a,o){if("boolean"==typeof e){if(s(t)){a=t;t=void 0}t=t||""}else{t=e;a=t;e=!1;if(s(t)){a=t;t=void 0}t=t||""}var n=Ce(),l=e?n._week.dow:0;if(null!=a){return mt(t,(a+l)%7,o,"day")}var d,c=[];for(d=0;7>d;d++){c[d]=mt(t,(d+l)%7,o,"day")}return c}we("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function ordinal(e){var t=e%10,a=1===D(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th";return e+a}});e.lang=T("moment.lang is deprecated. Use moment.locale instead.",we);e.langData=T("moment.langData is deprecated. Use moment.localeData instead.",Ce);var qa=Math.abs;function yt(e,t,a,o){var i=et(t,a);e._milliseconds+=o*i._milliseconds;e._days+=o*i._days;e._months+=o*i._months;return e._bubble()}function bt(e){if(0>e){return Math.floor(e)}else{return Math.ceil(e)}}function xt(e){return 4800*e/146097}function kt(e){return 146097*e/4800}function _t(e){return function(){return this.as(e)}}var Ga=_t("ms"),Xa=_t("s"),Za=_t("m"),Ka=_t("h"),Ja=_t("d"),Qa=_t("w"),$a=_t("M"),eo=_t("y");function vt(e){return function(){return this.isValid()?this._data[e]:NaN}}var to=vt("milliseconds"),ao=vt("seconds"),oo=vt("minutes"),io=vt("hours"),no=vt("days"),ro=vt("months"),lo=vt("years");var so=Math.round,co={ss:44,s:45,m:45,h:22,d:26,M:11};function St(e,t,a,o,i){return i.relativeTime(t||1,!!a,e,o)}function wt(e,t,o){var i=et(e).abs(),n=so(i.as("s")),l=so(i.as("m")),s=so(i.as("h")),d=so(i.as("d")),c=so(i.as("M")),h=so(i.as("y")),u=n<=co.ss&&["s",n]||n=l&&["m"]||l=s&&["h"]||s=d&&["d"]||d=c&&["M"]||c=h&&["y"]||["yy",h];u[2]=t;u[3]=0<+e;u[4]=o;return St.apply(null,u)}function Dt(e){if(e===void 0){return so}if("function"==typeof e){so=e;return!0}return!1}var ho=Math.abs;function Ct(){if(!this.isValid()){return this.localeData().invalidDate()}var e=ho(this._milliseconds)/1e3,t=ho(this._days),a=ho(this._months),o,i,n;o=w(e/60);i=w(o/60);e%=60;o%=60;n=w(a/12);a%=12;var l=n,d=a,c=t,u=i,h=o,m=e,s=this.asSeconds();if(!s){return"P0D"}return(0>s?"-":"")+"P"+(l?l+"Y":"")+(d?d+"M":"")+(c?c+"D":"")+(u||h||m?"T":"")+(u?u+"H":"")+(h?h+"M":"")+(m?m+"S":"")}var uo=qe.prototype;uo.isValid=function(){return this._isValid};uo.abs=function(){var e=this._data;this._milliseconds=qa(this._milliseconds);this._days=qa(this._days);this._months=qa(this._months);e.milliseconds=qa(e.milliseconds);e.seconds=qa(e.seconds);e.minutes=qa(e.minutes);e.hours=qa(e.hours);e.months=qa(e.months);e.years=qa(e.years);return this};uo.add=function(e,t){return yt(this,e,t,1)};uo.subtract=function(e,t){return yt(this,e,t,-1)};uo.as=function(e){if(!this.isValid()){return NaN}var t,a,o=this._milliseconds;e=F(e);if("month"===e||"year"===e){t=this._days+o/864e5;a=this._months+xt(t);return"month"===e?a:a/12}else{t=this._days+Math.round(kt(this._months));switch(e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e);}}};uo.asMilliseconds=Ga;uo.asSeconds=Xa;uo.asMinutes=Za;uo.asHours=Ka;uo.asDays=Ja;uo.asWeeks=Qa;uo.asMonths=$a;uo.asYears=eo;uo.valueOf=function(){if(!this.isValid()){return NaN}return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*D(this._months/12)};uo._bubble=function(){var e=this._milliseconds,t=this._days,a=this._months,o=this._data,i,n,l,s,d;if(!(0<=e&&0<=t&&0<=a||0>=e&&0>=t&&0>=a)){e+=864e5*bt(kt(a)+t);t=0;a=0}o.milliseconds=e%1e3;i=w(e/1e3);o.seconds=i%60;n=w(i/60);o.minutes=n%60;l=w(n/60);o.hours=l%24;t+=w(l/24);d=w(xt(t));a+=d;t-=bt(kt(d));s=w(a/12);a%=12;o.days=t;o.months=a;o.years=s;return this};uo.get=function(e){e=F(e);return this.isValid()?this[e+"s"]():NaN};uo.milliseconds=to;uo.seconds=ao;uo.minutes=oo;uo.hours=io;uo.days=no;uo.weeks=function(){return w(this.days()/7)};uo.months=ro;uo.years=lo;uo.humanize=function(e){if(!this.isValid()){return this.localeData().invalidDate()}var t=this.localeData(),a=wt(this,!e,t);if(e){a=t.pastFuture(+this,a)}return t.postformat(a)};uo.toISOString=Ct;uo.toString=Ct;uo.toJSON=Ct;uo.locale=lt;uo.localeData=st;uo.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ct);uo.lang=za;N("X",0,0,"unix");N("x",0,0,"valueOf");X("x",ea);X("X",oa);Q("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))});Q("x",function(e,t,a){a._d=new Date(D(e))});e.version="2.18.1";(function(e){Pt=e})(Ne);e.fn=Ua;e.min=function(){var e=[].slice.call(arguments,0);return Ue("isBefore",e)};e.max=function(){var e=[].slice.call(arguments,0);return Ue("isAfter",e)};e.now=function now(){return Date.now?Date.now():+new Date};e.utc=p;e.unix=function(e){return Ne(1e3*e)};e.months=function(e,t){return pt(e,t,"months")};e.isDate=d;e.locale=we;e.invalid=k;e.duration=et;e.isMoment=S;e.weekdays=function(e,t,a){return ft(e,t,a,"weekdays")};e.parseZone=function(){return Ne.apply(null,arguments).parseZone()};e.localeData=Ce;e.isDuration=Ge;e.monthsShort=function(e,t){return pt(e,t,"monthsShort")};e.weekdaysMin=function(e,t,a){return ft(e,t,a,"weekdaysMin")};e.defineLocale=De;e.updateLocale=function(e,t){if(null!=t){var a,o=xa;if(null!=ka[e]){o=ka[e]._config}t=A(o,t);a=new M(t);a.parentLocale=ka[e];ka[e]=a;we(e)}else{if(null!=ka[e]){if(null!=ka[e].parentLocale){ka[e]=ka[e].parentLocale}else if(null!=ka[e]){delete ka[e]}}}return ka[e]};e.locales=function(){return Ft(ka)};e.weekdaysShort=function(e,t,a){return ft(e,t,a,"weekdaysShort")};e.normalizeUnits=F;e.relativeTimeRounding=Dt;e.relativeTimeThreshold=function(e,t){if(co[e]===void 0){return!1}if(t===void 0){return co[e]}co[e]=t;if("s"===e){co.ss=t-1}return!0};e.calendarFormat=function(e,t){var a=e.diff(t,"days",!0);return-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse"};e.prototype=Ua;return e})},{}],7:[function(e,t){var a=e(29)();a.helpers=e(45);e(27)(a);a.defaults=e(25);a.Element=e(26);a.elements=e(40);a.Interaction=e(28);a.platform=e(48);e(31)(a);e(22)(a);e(23)(a);e(24)(a);e(30)(a);e(33)(a);e(32)(a);e(35)(a);e(54)(a);e(52)(a);e(53)(a);e(55)(a);e(56)(a);e(57)(a);e(15)(a);e(16)(a);e(17)(a);e(18)(a);e(19)(a);e(20)(a);e(21)(a);e(8)(a);e(9)(a);e(10)(a);e(11)(a);e(12)(a);e(13)(a);e(14)(a);var o=[e(49)(a),e(50)(a),e(51)(a)];a.plugins.register(o);a.platform.initialize();t.exports=a;if("undefined"!=typeof window){window.Chart=a}a.canvasHelpers=a.helpers.canvas},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,35:35,40:40,45:45,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,8:8,9:9}],8:[function(e,t){'use strict';t.exports=function(e){e.Bar=function(t,a){a.type="bar";return new e(t,a)}}},{}],9:[function(e,t){'use strict';t.exports=function(e){e.Bubble=function(t,a){a.type="bubble";return new e(t,a)}}},{}],10:[function(e,t){'use strict';t.exports=function(e){e.Doughnut=function(t,a){a.type="doughnut";return new e(t,a)}}},{}],11:[function(e,t){'use strict';t.exports=function(e){e.Line=function(t,a){a.type="line";return new e(t,a)}}},{}],12:[function(e,t){'use strict';t.exports=function(e){e.PolarArea=function(t,a){a.type="polarArea";return new e(t,a)}}},{}],13:[function(e,t){'use strict';t.exports=function(e){e.Radar=function(t,a){a.type="radar";return new e(t,a)}}},{}],14:[function(e,t){'use strict';t.exports=function(e){e.Scatter=function(t,a){a.type="scatter";return new e(t,a)}}},{}],15:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});a._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(e,t){var a="";if(0d&&0>f||0<=d&&0h?d-h:u-d;p=d"],a=e.data,o=a.datasets,n=a.labels;if(o.length){for(var l=0;l");if(n[l]){t.push(n[l])}t.push("")}}t.push("");return t.join("")},legend:{labels:{generateLabels:function generateLabels(e){var t=e.data;if(t.labels.length&&t.datasets.length){return t.labels.map(function(a,o){var i=e.getDatasetMeta(0),l=t.datasets[0],s=i.data[o],d=s&&s.custom||{},c=n.valueAtIndexOrDefault,h=e.options.elements.arc,u=d.backgroundColor?d.backgroundColor:c(l.backgroundColor,o,h.backgroundColor),m=d.borderColor?d.borderColor:c(l.borderColor,o,h.borderColor),p=d.borderWidth?d.borderWidth:c(l.borderWidth,o,h.borderWidth);return{text:a,fillStyle:u,strokeStyle:m,lineWidth:p,hidden:isNaN(l.data[o])||i.data[o].hidden,index:o}})}return[]}},onClick:function onClick(t,e){var a=e.index,o=this.chart,n,l,s;for(n=0,l=(o.data.datasets||[]).length;n=Math.PI?-1:f<-Math.PI?1:0);var y=f+p,x={x:Math.cos(f),y:Math.sin(f)},k={x:Math.cos(y),y:Math.sin(y)},_=0>=f&&0<=y||f<=2*Math.PI&&2*Math.PI<=y,v=f<=.5*Math.PI&&.5*Math.PI<=y||f<=2.5*Math.PI&&2.5*Math.PI<=y,S=f<=-Math.PI&&-Math.PI<=y||f<=Math.PI&&Math.PI<=y,w=f<=.5*-Math.PI&&.5*-Math.PI<=y||f<=1.5*Math.PI&&1.5*Math.PI<=y,D=m/100,C={x:S?-1:Math.min(x.x*(0>x.x?1:D),k.x*(0>k.x?1:D)),y:w?-1:Math.min(x.y*(0>x.y?1:D),k.y*(0>k.y?1:D))},P={x:_?1:Math.max(x.x*(0t?n:t;t=l>t?l:t}return t}})}},{25:25,40:40,45:45}],18:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});t.exports=function(e){function t(e,t){return n.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function update(e){var a=this,o=a.getMeta(),l=o.dataset,s=o.data||[],d=a.chart.options,c=d.elements.line,h=a.getScaleForId(o.yAxisID),u,m,p,f=a.getDataset(),y=t(f,d);if(y){p=l.custom||{};if(f.tension!==void 0&&f.lineTension===void 0){f.lineTension=f.tension}l._scale=h;l._datasetIndex=a.index;l._children=s;l._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:p.tension?p.tension:n.valueOrDefault(f.lineTension,c.tension),backgroundColor:p.backgroundColor?p.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:p.borderWidth?p.borderWidth:f.borderWidth||c.borderWidth,borderColor:p.borderColor?p.borderColor:f.borderColor||c.borderColor,borderCapStyle:p.borderCapStyle?p.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:p.borderDash?p.borderDash:f.borderDash||c.borderDash,borderDashOffset:p.borderDashOffset?p.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:p.borderJoinStyle?p.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:p.fill?p.fill:f.fill!==void 0?f.fill:c.fill,steppedLine:p.steppedLine?p.steppedLine:n.valueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:p.cubicInterpolationMode?p.cubicInterpolationMode:n.valueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode)};l.pivot()}for(u=0,m=s.length;up){c+=p||0}else{d+=p||0}}}var f=+s.getRightValue(e);if(0>f){return s.getPixelForValue(c+f)}return s.getPixelForValue(d+f)}return s.getPixelForValue(e)},updateBezierControlPoints:function updateBezierControlPoints(){var t=this,a=t.getMeta(),o=t.chart.chartArea,l=a.data||[],s,d,c,h,u;if(a.dataset._model.spanGaps){l=l.filter(function(e){return!e._model.skip})}function e(e,t,a){return Math.max(Math.min(e,a),t)}if("monotone"===a.dataset._model.cubicInterpolationMode){n.splineCurveMonotone(l)}else{for(s=0,d=l.length;s"],a=e.data,o=a.datasets,n=a.labels;if(o.length){for(var l=0;l");if(n[l]){t.push(n[l])}t.push("")}}t.push("");return t.join("")},legend:{labels:{generateLabels:function generateLabels(e){var t=e.data;if(t.labels.length&&t.datasets.length){return t.labels.map(function(a,o){var i=e.getDatasetMeta(0),l=t.datasets[0],s=i.data[o],d=s.custom||{},c=n.valueAtIndexOrDefault,h=e.options.elements.arc,u=d.backgroundColor?d.backgroundColor:c(l.backgroundColor,o,h.backgroundColor),m=d.borderColor?d.borderColor:c(l.borderColor,o,h.borderColor),p=d.borderWidth?d.borderWidth:c(l.borderWidth,o,h.borderWidth);return{text:a,fillStyle:u,strokeStyle:m,lineWidth:p,hidden:isNaN(l.data[o])||i.data[o].hidden,index:o}})}return[]}},onClick:function onClick(t,e){var a=e.index,o=this.chart,n,l,s;for(n=0,l=(o.data.datasets||[]).length;n=a.numSteps){n.callback(a.onAnimationComplete,[a],o);o.animating=!1;t.splice(l,1)}else{++l}}}};Object.defineProperty(e.Animation.prototype,"animationObject",{get:function get(){return this}});Object.defineProperty(e.Animation.prototype,"chartInstance",{get:function get(){return this.chart},set:function set(e){this.chart=e}})}},{25:25,26:26,45:45}],23:[function(e,t){'use strict';var a=e(25),o=e(45),i=e(28),n=e(48);t.exports=function(e){var d=e.plugins;e.types={};e.instances={};e.controllers={};function t(e){e=e||{};var t=e.data=e.data||{};t.datasets=t.datasets||[];t.labels=t.labels||[];e.options=o.configMerge(a.global,a[e.type],e.options||{});return e}function l(e){var t=e.options;if(t.scale){e.scale.options=t.scale}else if(t.scales){t.scales.xAxes.concat(t.scales.yAxes).forEach(function(t){e.scales[t.id].options=t})}e.tooltip._options=t.tooltips}function s(e){return"top"===e||"bottom"===e}o.extend(e.prototype,{construct:function construct(a,i){var l=this;i=t(i);var s=n.acquireContext(a,i),d=s&&s.canvas,c=d&&d.height,h=d&&d.width;l.id=o.uid();l.ctx=s;l.canvas=d;l.config=i;l.width=h;l.height=c;l.aspectRatio=c?h/c:null;l.options=i.options;l._bufferedRender=!1;l.chart=l;l.controller=l;e.instances[l.id]=l;Object.defineProperty(l,"data",{get:function get(){return l.config.data},set:function set(e){l.config.data=e}});if(!s||!d){console.error("Failed to create chart: can't acquire context from the given item");return}l.initialize();l.update()},initialize:function initialize(){var e=this;d.notify(e,"beforeInit");o.retinaScale(e,e.options.devicePixelRatio);e.bindEvents();if(e.options.responsive){e.resize(!0)}e.ensureScalesHaveIDs();e.buildScales();e.initToolTip();d.notify(e,"afterInit");return e},clear:function clear(){o.canvas.clear(this);return this},stop:function stop(){e.animationService.cancelAnimation(this);return this},resize:function resize(e){var t=this,a=t.options,i=t.canvas,n=a.maintainAspectRatio&&t.aspectRatio||null,l=Math.max(0,Math.floor(o.getMaximumWidth(i))),s=Math.max(0,Math.floor(n?l/n:o.getMaximumHeight(i)));if(t.width===l&&t.height===s){return}i.width=t.width=l;i.height=t.height=s;i.style.width=l+"px";i.style.height=s+"px";o.retinaScale(t,a.devicePixelRatio);if(!e){var c={width:l,height:s};d.notify(t,"resize",[c]);if(t.options.onResize){t.options.onResize(t,c)}t.stop();t.update(t.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function ensureScalesHaveIDs(){var e=this.options,t=e.scales||{},a=e.scale;o.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t});o.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t});if(a){a.id=a.id||"scale"}},buildScales:function buildScales(){var t=this,a=t.options,i=t.scales={},n=[];if(a.scales){n=n.concat((a.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(a.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))}if(a.scale){n.push({options:a.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"})}o.each(n,function(a){var n=a.options,l=o.valueOrDefault(n.type,a.dtype),d=e.scaleService.getScaleConstructor(l);if(!d){return}if(s(n.position)!==s(a.dposition)){n.position=a.dposition}var c=new d({id:n.id,options:n,ctx:t.ctx,chart:t});i[c.id]=c;c.mergeTicksOptions();if(a.isDefault){t.scale=c}});e.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function buildOrUpdateControllers(){var t=this,a=[],i=[];o.each(t.data.datasets,function(o,n){var l=t.getDatasetMeta(n),s=o.type||t.config.type;if(l.type&&l.type!==s){t.destroyDatasetMeta(n);l=t.getDatasetMeta(n)}l.type=s;a.push(l.type);if(l.controller){l.controller.updateIndex(n)}else{var d=e.controllers[l.type];if(d===void 0){throw new Error("\""+l.type+"\" is not a chart type.")}l.controller=new d(t,n);i.push(l.controller)}},t);return i},resetElements:function resetElements(){var e=this;o.each(e.data.datasets,function(t,a){e.getDatasetMeta(a).controller.reset()},e)},reset:function reset(){this.resetElements();this.tooltip.initialize()},update:function update(e){var t=this;if(!e||"object"!==_typeof(e)){e={duration:e,lazy:arguments[1]}}l(t);if(!1===d.notify(t,"beforeUpdate")){return}t.tooltip._data=t.data;var a=t.buildOrUpdateControllers();o.each(t.data.datasets,function(e,a){t.getDatasetMeta(a).controller.buildOrUpdateElements()},t);t.updateLayout();o.each(a,function(e){e.reset()});t.updateDatasets();d.notify(t,"afterUpdate");if(t._bufferedRender){t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}}else{t.render(e)}},updateLayout:function updateLayout(){var t=this;if(!1===d.notify(t,"beforeLayout")){return}e.layoutService.update(this,this.width,this.height);d.notify(t,"afterScaleUpdate");d.notify(t,"afterLayout")},updateDatasets:function updateDatasets(){var e=this;if(!1===d.notify(e,"beforeDatasetsUpdate")){return}for(var t=0,a=e.data.datasets.length;to){e.insertElements(o,i-o)}},insertElements:function insertElements(e,t){for(var a=0;a=a[t].length){a[t].push({})}if(!a[t][d].type||h.type&&h.type!==a[t][d].type){n.merge(a[t][d],[e.scaleService.getScaleDefaults(c),h])}else{n.merge(a[t][d],h)}}}else{n._merger(t,a,o,l)}}})};n.where=function(e,t){if(n.isArray(e)&&Array.prototype.filter){return e.filter(t)}var a=[];n.each(e,function(e){if(t(e)){a.push(e)}});return a};n.findIndex=Array.prototype.findIndex?function(e,t,a){return e.findIndex(t,a)}:function(e,t,a){a=a===void 0?e:a;for(var o=0,n=e.length;oe};n.max=function(e){return e.reduce(function(e,t){if(!isNaN(t)){return Math.max(e,t)}return e},Number.NEGATIVE_INFINITY)};n.min=function(e){return e.reduce(function(e,t){if(!isNaN(t)){return Math.min(e,t)}return e},Number.POSITIVE_INFINITY)};n.sign=Math.sign?function(e){return Math.sign(e)}:function(e){e=+e;if(0===e||isNaN(e)){return e}return 0=p){continue}m=3/Math.sqrt(p);s.mK=h*m*s.deltaK;d.mK=u*m*s.deltaK}var f;for(o=0;o=e.length-1?e[0]:e[t+1]}return t>=e.length-1?e[e.length-1]:e[t+1]};n.previousItem=function(e,t,a){if(a){return 0>=t?e[e.length-1]:e[t-1]}return 0>=t?e[0]:e[t-1]};n.niceNum=function(e,t){var a=Math.floor(n.log10(e)),o=e/Math.pow(10,a),i;if(t){if(1.5>o){i=1}else if(3>o){i=2}else if(7>o){i=5}else{i=10}}else if(1>=o){i=1}else if(2>=o){i=2}else if(5>=o){i=5}else{i=10}return i*Math.pow(10,a)};n.requestAnimFrame=function(){if("undefined"==typeof window){return function(e){e()}}return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}();n.getRelativePosition=function(t,a){var o,i,l=t.originalEvent||t,e=t.currentTarget||t.srcElement,s=e.getBoundingClientRect(),d=l.touches;if(d&&0a.length){for(var h=0;ho){o=n}return o};n.numberOfLabelLines=function(e){var t=1;n.each(e,function(e){if(n.isArray(e)){if(e.length>t){t=e.length}}});return t};n.color=!a?function(e){console.error("Color.js not found!");return e}:function(e){if(e instanceof CanvasGradient){e=o.global.defaultColor}return a(e)};n.getHoverColor=function(e){return e instanceof CanvasPattern?e:n.color(e).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(e,t){'use strict';var d=e(45);function a(t,e){if(t.native){return{x:t.x,y:t.y}}return d.getRelativePosition(t,e)}function o(e,t){var a=e.data.datasets,o,n,l,s,d;for(n=0,s=a.length;np&&de.maxHeight){d--;break}d++;h=u*c}}e.labelRotation=d},afterCalculateTickRotation:function afterCalculateTickRotation(){l.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function beforeFit(){l.callback(this.options.beforeFit,[this])},fit:function fit(){var e=this,o=e.minSize={width:0,height:0},i=a(e._ticks),n=e.options,c=n.ticks,h=n.scaleLabel,u=n.gridLines,m=n.display,p=e.isHorizontal(),f=s(c),y=n.gridLines.tickMarkLength;if(p){o.width=e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth}else{o.width=m&&u.drawTicks?y:0}if(p){o.height=m&&u.drawTicks?y:0}else{o.height=e.maxHeight}if(h.display&&m){var x=d(h),k=l.options.toPadding(h.padding),_=x+k.height;if(p){o.height+=_}else{o.width+=_}}if(c.display&&m){var v=l.longestText(e.ctx,f.font,i,e.longestTextCache),S=l.numberOfLabelLines(i),w=.5*f.size,D=e.options.ticks.padding;if(p){e.longestLabelWidth=v;var C=l.toRadians(e.labelRotation),P=Math.cos(C),T=Math.sin(C),O=T*v+f.size*S+w*(S-1)+w;o.height=Math.min(e.maxHeight,o.height+O+D);e.ctx.font=f.font;var I=t(e.ctx,i[0],f.font),A=t(e.ctx,i[i.length-1],f.font);if(0!==e.labelRotation){e.paddingLeft="bottom"===n.position?P*I+3:P*w+3;e.paddingRight="bottom"===n.position?P*w+3:P*A+3}else{e.paddingLeft=I/2+3;e.paddingRight=A/2+3}}else{if(c.mirror){v=0}else{v+=D+w}o.width=Math.min(e.maxWidth,o.width+v);e.paddingTop=f.size/2;e.paddingBottom=f.size/2}}e.handleMargins();e.width=o.width;e.height=o.height},handleMargins:function handleMargins(){var e=this;if(e.margins){e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0);e.paddingTop=Math.max(e.paddingTop-e.margins.top,0);e.paddingRight=Math.max(e.paddingRight-e.margins.right,0);e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0)}},afterFit:function afterFit(){l.callback(this.options.afterFit,[this])},isHorizontal:function isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function isFullWidth(){return this.options.fullWidth},getRightValue:function getRightValue(e){if(l.isNullOrUndef(e)){return NaN}if("number"==typeof e&&!isFinite(e)){return NaN}if(e){if(this.isHorizontal()){if(e.x!==void 0){return this.getRightValue(e.x)}}else if(e.y!==void 0){return this.getRightValue(e.y)}}return e},getLabelForIndex:l.noop,getPixelForValue:l.noop,getValueForPixel:l.noop,getPixelForTick:function getPixelForTick(e){var t=this,a=t.options.offset;if(t.isHorizontal()){var o=t.width-(t.paddingLeft+t.paddingRight),i=o/Math.max(t._ticks.length-(a?0:1),1),n=i*e+t.paddingLeft;if(a){n+=i/2}var l=t.left+Math.round(n);l+=t.isFullWidth()?t.margins.left:0;return l}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function getPixelForDecimal(e){var t=this;if(t.isHorizontal()){var a=t.width-(t.paddingLeft+t.paddingRight),o=a*e+t.paddingLeft,i=t.left+Math.round(o);i+=t.isFullWidth()?t.margins.left:0;return i}return t.top+e*t.height},getBasePixel:function getBasePixel(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function getBaseValue(){var e=this,t=e.min,a=e.max;return e.beginAtZero?0:0>t&&0>a?a:0a.width-(a.paddingLeft+a.paddingRight)){t=1+Math.floor((h+n.autoSkipPadding)*s/(a.width-(a.paddingLeft+a.paddingRight)))}if(y&&s>y){t=Math.max(t,Math.floor(s/y))}}for(m=0;m=s;if(f&&m!==s-1||l.isNullOrUndef(p.label)){delete p.label}u.push(p)}return u},draw:function draw(e){var t=this,a=t.options;if(!a.display){return}var n=t.ctx,c=i.global,h=a.ticks.minor,u=a.ticks.major||h,m=a.gridLines,p=a.scaleLabel,f=0!==t.labelRotation,y=t.isHorizontal(),x=h.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),k=l.valueOrDefault(h.fontColor,c.defaultFontColor),_=s(h),v=l.valueOrDefault(u.fontColor,c.defaultFontColor),S=s(u),w=m.drawTicks?m.tickMarkLength:0,D=l.valueOrDefault(p.fontColor,c.defaultFontColor),C=s(p),P=l.options.toPadding(p.padding),T=l.toRadians(t.labelRotation),O=[],I="right"===a.position?t.left:t.right-w,A="right"===a.position?t.left+w:t.right,M="bottom"===a.position?t.top:t.bottom-w,R="bottom"===a.position?t.top+w:t.bottom;l.each(x,function(i,n){if(i.label===void 0){return}var s=i.label,d,u,p,k;if(n===t.zeroLineIndex&&a.offset===m.offsetGridLines){d=m.zeroLineWidth;u=m.zeroLineColor;p=m.zeroLineBorderDash;k=m.zeroLineBorderDashOffset}else{d=l.valueAtIndexOrDefault(m.lineWidth,n);u=l.valueAtIndexOrDefault(m.color,n);p=l.valueOrDefault(m.borderDash,c.borderDash);k=l.valueOrDefault(m.borderDashOffset,c.borderDashOffset)}var _,v,S,D,C,P,F,L,W,Y,z="middle",H="middle",B=h.padding;if(y){var E=w+B;if("bottom"===a.position){H=!f?"top":"middle";z=!f?"center":"right";Y=t.top+E}else{H=!f?"bottom":"middle";z=!f?"center":"left";Y=t.bottom-E}var V=o(t,n,m.offsetGridLines&&1o.height-t.height){l="bottom"}var s,d,c,h,u,m=(i.left+i.right)/2,p=(i.top+i.bottom)/2;if("center"===l){s=function(e){return e<=m};d=function(e){return e>m}}else{s=function(e){return e<=t.width/2};d=function(e){return e>=o.width-t.width/2}}c=function(e){return e+t.width>o.width};h=function(e){return 0>e-t.width};u=function(e){return e<=p?"top":"bottom"};if(s(a.x)){n="left";if(c(a.x)){n="center";l=u(a.y)}}else if(d(a.x)){n="right";if(h(a.x)){n="center";l=u(a.y)}}var f=e._options;return{xAlign:f.xAlign?f.xAlign:n,yAlign:f.yAlign?f.yAlign:l}}function h(e,t,a){var o=e.x,i=e.y,n=e.caretSize,l=e.caretPadding,s=e.cornerRadius,d=a.xAlign,c=a.yAlign,h=n+l,u=s+l;if("right"===d){o-=t.width}else if("center"===d){o-=t.width/2}if("top"===c){i+=h}else if("bottom"===c){i-=t.height+h}else{i-=t.height/2}if("center"===c){if("left"===d){o+=h}else if("right"===d){o-=h}}else if("left"===d){o-=u}else if("right"===d){o+=u}return{x:o,y:i}}e.Tooltip=o.extend({initialize:function initialize(){this._model=s(this._options)},getTitle:function getTitle(){var e=this,t=e._options,a=t.callbacks,o=a.beforeTitle.apply(e,arguments),n=a.title.apply(e,arguments),l=a.afterTitle.apply(e,arguments),s=[];s=i(s,o);s=i(s,n);s=i(s,l);return s},getBeforeBody:function getBeforeBody(){var e=this._options.callbacks.beforeBody.apply(this,arguments);return n.isArray(e)?e:e!==void 0?[e]:[]},getBody:function getBody(e,t){var a=this,o=a._options.callbacks,l=[];n.each(e,function(e){var n={before:[],lines:[],after:[]};i(n.before,o.beforeLabel.call(a,e,t));i(n.lines,o.label.call(a,e,t));i(n.after,o.afterLabel.call(a,e,t));l.push(n)});return l},getAfterBody:function getAfterBody(){var e=this._options.callbacks.afterBody.apply(this,arguments);return n.isArray(e)?e:e!==void 0?[e]:[]},getFooter:function getFooter(){var e=this,t=e._options.callbacks,a=t.beforeFooter.apply(e,arguments),o=t.footer.apply(e,arguments),n=t.afterFooter.apply(e,arguments),l=[];l=i(l,a);l=i(l,o);l=i(l,n);return l},update:function update(t){var a=this,o=a._options,u=a._model,m=a._model=s(o),p=a._active,f=a._data,y={xAlign:u.xAlign,yAlign:u.yAlign},x={x:u.x,y:u.y},k={width:u.width,height:u.height},_={x:u.caretX,y:u.caretY},v,S;if(p.length){m.opacity=1;var w=[],D=[];_=e.Tooltip.positioners[o.position](p,a._eventPosition);var C=[];for(v=0,S=p.length;vt.opacity)?0:t.opacity,n=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;if(this._options.enabled&&n){this.drawBackground(o,t,e,a,i);o.x+=t.xPadding;o.y+=t.yPadding;this.drawTitle(o,t,e,i);this.drawBody(o,t,e,i);this.drawFooter(o,t,e,i)}},handleEvent:function handleEvent(t){var e=this,a=e._options,o=!1;e._lastActive=e._lastActive||[];if("mouseout"===t.type){e._active=[]}else{e._active=e._chart.getElementsAtEventForMode(t,a.mode,a)}o=!n.arrayEquals(e._active,e._lastActive);if(!o){return!1}e._lastActive=e._active;if(a.enabled||a.custom){e._eventPosition={x:t.x,y:t.y};var i=e._model;e.update(!0);e.pivot();o|=i.x!==e._model.x||i.y!==e._model.y}return o}});e.Tooltip.positioners={average:function average(e){if(!e.length){return!1}var t,a,o=0,n=0,l=0;for(t=0,a=e.length;td){n-=2*Math.PI}while(n=s&&n<=d,h=l>=a.innerRadius&&l<=a.outerRadius;return c&&h}return!1},getCenterPoint:function getCenterPoint(){var e=this._view,t=(e.startAngle+e.endAngle)/2,a=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},getArea:function getArea(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function tooltipPosition(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,a=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*a,y:e.y+Math.sin(t)*a}},draw:function draw(){var e=this._chart.ctx,t=this._view,a=t.startAngle,o=t.endAngle;e.beginPath();e.arc(t.x,t.y,t.outerRadius,a,o);e.arc(t.x,t.y,t.innerRadius,o,a,!0);e.closePath();e.strokeStyle=t.borderColor;e.lineWidth=t.borderWidth;e.fillStyle=t.backgroundColor;e.fill();e.lineJoin="bevel";if(t.borderWidth){e.stroke()}}})},{25:25,26:26,45:45}],37:[function(e,t){'use strict';var a=e(25),o=e(26),i=e(45),n=a.global;a._set("global",{elements:{line:{tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});t.exports=o.extend({draw:function draw(){var e=this,t=e._view,a=e._chart.ctx,o=t.spanGaps,l=e._children.slice(),s=n.elements.line,d=-1,c,h,u,m;if(e._loop&&l.length){l.push(l[0])}a.save();a.lineCap=t.borderCapStyle||s.borderCapStyle;if(a.setLineDash){a.setLineDash(t.borderDash||s.borderDash)}a.lineDashOffset=t.borderDashOffset||s.borderDashOffset;a.lineJoin=t.borderJoinStyle||s.borderJoinStyle;a.lineWidth=t.borderWidth||s.borderWidth;a.strokeStyle=t.borderColor||n.defaultColor;a.beginPath();d=-1;for(c=0;cl?1:-1;h=a.borderSkipped||"bottom"}else{o=a.base;n=a.x;l=a.y-a.height/2;s=a.y+a.height/2;d=n>o?1:-1;c=1;h=a.borderSkipped||"left"}if(u){var m=Math.min(Math.abs(o-n),Math.abs(l-s));u=u>m?m:u;var p=u/2,f=o+("left"!==h?p*d:0),y=n+("right"!==h?-p*d:0),x=l+("top"!==h?p*c:0),k=s+("bottom"!==h?-p*c:0);if(f!==y){l=x;s=k}if(x!==k){o=f;n=y}}t.beginPath();t.fillStyle=a.backgroundColor;t.strokeStyle=a.borderColor;t.lineWidth=u;var _=[[o,s],[o,l],[n,l],[n,s]],v=["bottom","left","top","right"].indexOf(h,0);if(-1===v){v=0}function e(e){return _[(v+e)%4]}var S=e(0);t.moveTo(S[0],S[1]);for(var w=1;4>w;w++){S=e(w);t.lineTo(S[0],S[1])}t.fill();if(u){t.stroke()}},height:function height(){var e=this._view;return e.base-e.y},inRange:function(e,t){var a=!1;if(this._view){var i=o(this);a=e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return a},inLabelRange:function inLabelRange(e,t){var i=this;if(!i._view){return!1}var n=!1,l=o(i);if(a(i)){n=e>=l.left&&e<=l.right}else{n=t>=l.top&&t<=l.bottom}return n},inXRange:function inXRange(e){var t=o(this);return e>=t.left&&e<=t.right},inYRange:function inYRange(e){var t=o(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function getCenterPoint(){var e=this._view,t,o;if(a(this)){t=e.x;o=(e.y+e.base)/2}else{t=(e.x+e.base)/2;o=e.y}return{x:t,y:o}},getArea:function getArea(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function tooltipPosition(){var e=this._view;return{x:e.x,y:e.y}}})},{25:25,26:26}],40:[function(e,t){'use strict';t.exports={};t.exports.Arc=e(36);t.exports.Line=e(37);t.exports.Point=e(38);t.exports.Rectangle=e(39)},{36:36,37:37,38:38,39:39}],41:[function(e,t,a){'use strict';var o=e(42),a=t.exports={clear:function clear(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function roundedRect(e,t,a,o,i,n){if(n){var l=Math.min(n,o/2),s=Math.min(n,i/2);e.moveTo(t+l,a);e.lineTo(t+o-l,a);e.quadraticCurveTo(t+o,a,t+o,a+s);e.lineTo(t+o,a+i-s);e.quadraticCurveTo(t+o,a+i,t+o-l,a+i);e.lineTo(t+l,a+i);e.quadraticCurveTo(t,a+i,t,a+i-s);e.lineTo(t,a+s);e.quadraticCurveTo(t,a,t+l,a)}else{e.rect(t,a,o,i)}},drawPoint:function drawPoint(e,t,a,o,i){var n,l,s,d,c,h;if("object"===_typeof(t)){n=t.toString();if("[object HTMLImageElement]"===n||"[object HTMLCanvasElement]"===n){e.drawImage(t,o-t.width/2,i-t.height/2,t.width,t.height);return}}if(isNaN(a)||0>=a){return}switch(t){default:e.beginPath();e.arc(o,i,a,0,2*Math.PI);e.closePath();e.fill();break;case"triangle":e.beginPath();l=3*a/Math.sqrt(3);c=l*Math.sqrt(3)/2;e.moveTo(o-l/2,i+c/3);e.lineTo(o+l/2,i+c/3);e.lineTo(o,i-2*c/3);e.closePath();e.fill();break;case"rect":h=1/Math.SQRT2*a;e.beginPath();e.fillRect(o-h,i-h,2*h,2*h);e.strokeRect(o-h,i-h,2*h,2*h);break;case"rectRounded":var u=a/Math.SQRT2,m=Math.SQRT2*a;e.beginPath();this.roundedRect(e,o-u,i-u,m,m,a/2);e.closePath();e.fill();break;case"rectRot":h=1/Math.SQRT2*a;e.beginPath();e.moveTo(o-h,i);e.lineTo(o,i+h);e.lineTo(o+h,i);e.lineTo(o,i-h);e.closePath();e.fill();break;case"cross":e.beginPath();e.moveTo(o,i+a);e.lineTo(o,i-a);e.moveTo(o-a,i);e.lineTo(o+a,i);e.closePath();break;case"crossRot":e.beginPath();s=Math.cos(Math.PI/4)*a;d=Math.sin(Math.PI/4)*a;e.moveTo(o-s,i-d);e.lineTo(o+s,i+d);e.moveTo(o-s,i+d);e.lineTo(o+s,i-d);e.closePath();break;case"star":e.beginPath();e.moveTo(o,i+a);e.lineTo(o,i-a);e.moveTo(o-a,i);e.lineTo(o+a,i);s=Math.cos(Math.PI/4)*a;d=Math.sin(Math.PI/4)*a;e.moveTo(o-s,i-d);e.lineTo(o+s,i+d);e.moveTo(o-s,i+d);e.lineTo(o+s,i-d);e.closePath();break;case"line":e.beginPath();e.moveTo(o-a,i);e.lineTo(o+a,i);e.closePath();break;case"dash":e.beginPath();e.moveTo(o,i);e.lineTo(o+a,i);e.closePath();break;}e.stroke()},clipArea:function clipArea(e,t){e.save();e.beginPath();e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top);e.clip()},unclipArea:function unclipArea(e){e.restore()},lineTo:function lineTo(e,t,a,o){if(a.steppedLine){if("after"===a.steppedLine&&!o||"after"!==a.steppedLine&&o){e.lineTo(t.x,a.y)}else{e.lineTo(a.x,t.y)}e.lineTo(a.x,a.y);return}if(!a.tension){e.lineTo(a.x,a.y);return}e.bezierCurveTo(o?t.controlPointPreviousX:t.controlPointNextX,o?t.controlPointPreviousY:t.controlPointNextY,o?a.controlPointNextX:a.controlPointPreviousX,o?a.controlPointNextY:a.controlPointPreviousY,a.x,a.y)}};o.clear=a.clear;o.drawRoundedRectangle=function(e){e.beginPath();a.roundedRect.apply(a,arguments);e.closePath()}},{42:42}],42:[function(e,t){'use strict';var a={noop:function noop(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function isNullOrUndef(e){return null===e||"undefined"==typeof e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function isObject(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function valueOrDefault(e,t){return"undefined"==typeof e?t:e},valueAtIndexOrDefault:function valueAtIndexOrDefault(e,t,o){return a.valueOrDefault(a.isArray(e)?e[t]:e,o)},callback:function callback(e,t,a){if(e&&"function"==typeof e.call){return e.apply(a,t)}},each:function each(e,t,o,n){var l,s,d;if(a.isArray(e)){s=e.length;if(n){for(l=s-1;0<=l;l--){t.call(o,e[l],l)}}else{for(l=0;l(e/=.5)){return .5*e*e}return-.5*(--e*(e-2)-1)},easeInCubic:function easeInCubic(e){return e*e*e},easeOutCubic:function easeOutCubic(e){return(e=e-1)*e*e+1},easeInOutCubic:function easeInOutCubic(e){if(1>(e/=.5)){return .5*e*e*e}return .5*((e-=2)*e*e+2)},easeInQuart:function easeInQuart(e){return e*e*e*e},easeOutQuart:function easeOutQuart(e){return-((e=e-1)*e*e*e-1)},easeInOutQuart:function easeInOutQuart(e){if(1>(e/=.5)){return .5*e*e*e*e}return-.5*((e-=2)*e*e*e-2)},easeInQuint:function easeInQuint(e){return e*e*e*e*e},easeOutQuint:function easeOutQuint(e){return(e=e-1)*e*e*e*e+1},easeInOutQuint:function easeInOutQuint(e){if(1>(e/=.5)){return .5*e*e*e*e*e}return .5*((e-=2)*e*e*e*e+2)},easeInSine:function easeInSine(e){return-Math.cos(e*(Math.PI/2))+1},easeOutSine:function easeOutSine(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function easeInOutSine(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function easeInExpo(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function easeOutExpo(e){return 1===e?1:-Math.pow(2,-10*e)+1},easeInOutExpo:function easeInOutExpo(e){if(0===e){return 0}if(1===e){return 1}if(1>(e/=.5)){return .5*Math.pow(2,10*(e-1))}return .5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function easeInCirc(e){if(1<=e){return e}return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function easeOutCirc(e){return Math.sqrt(1-(e=e-1)*e)},easeInOutCirc:function easeInOutCirc(e){if(1>(e/=.5)){return-.5*(Math.sqrt(1-e*e)-1)}return .5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function easeInElastic(e){var o=1.70158,i=0,n=1;if(0===e){return 0}if(1===e){return 1}if(!i){i=.3}if(1>n){n=1;o=i/4}else{o=i/(2*Math.PI)*Math.asin(1/n)}return-(n*Math.pow(2,10*(e-=1))*Math.sin((e-o)*(2*Math.PI)/i))},easeOutElastic:function easeOutElastic(e){var t=1.70158,o=0,i=1;if(0===e){return 0}if(1===e){return 1}if(!o){o=.3}if(1>i){i=1;t=o/4}else{t=o/(2*Math.PI)*Math.asin(1/i)}return i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/o)+1},easeInOutElastic:function easeInOutElastic(e){var o=1.70158,i=0,n=1;if(0===e){return 0}if(2==(e/=.5)){return 1}if(!i){i=.45}if(1>n){n=1;o=i/4}else{o=i/(2*Math.PI)*Math.asin(1/n)}if(1>e){return-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-o)*(2*Math.PI)/i))}return .5*(n*Math.pow(2,-10*(e-=1))*Math.sin((e-o)*(2*Math.PI)/i))+1},easeInBack:function easeInBack(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function easeOutBack(e){var a=1.70158;return(e=e-1)*e*((a+1)*e+a)+1},easeInOutBack:function easeInOutBack(e){var a=1.70158;if(1>(e/=.5)){return .5*(e*e*(((a*=1.525)+1)*e-a))}return .5*((e-=2)*e*(((a*=1.525)+1)*e+a)+2)},easeInBounce:function easeInBounce(e){return 1-o.easeOutBounce(1-e)},easeOutBounce:function easeOutBounce(e){if(e<1/2.75){return 7.5625*e*e}if(e<2/2.75){return 7.5625*(e-=1.5/2.75)*e+.75}if(e<2.5/2.75){return 7.5625*(e-=2.25/2.75)*e+.9375}return 7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function easeInOutBounce(e){if(.5>e){return .5*o.easeInBounce(2*e)}return .5*o.easeOutBounce(2*e-1)+.5}};t.exports={effects:o};a.easingEffects=o},{42:42}],44:[function(e,t){'use strict';var a=e(42);t.exports={toLineHeight:function toLineHeight(e,t){var a=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!a||"normal"===a[1]){return 1.2*t}e=+a[2];switch(a[3]){case"px":return e;case"%":e/=100;break;default:break;}return t*e},toPadding:function toPadding(e){var o,i,n,s;if(a.isObject(e)){o=+e.top||0;i=+e.right||0;n=+e.bottom||0;s=+e.left||0}else{o=i=n=s=+e||0}return{top:o,right:i,bottom:n,left:s,height:o+n,width:s+i}},resolve:function resolve(e,t,o){var n,l,s;for(n=0,l=e.length;n
";var l=t.childNodes[0],s=t.childNodes[1];t._reset=function(){l.scrollLeft=o;l.scrollTop=o;s.scrollLeft=o;s.scrollTop=o};var d=function(){t._reset();e()};i(l,"scroll",d.bind(l,"expand"));i(s,"scroll",d.bind(s,"shrink"));return t}function h(e,t){var a=e[x]||(e[x]={}),o=a.renderProxy=function(a){if(a.animationName===v){t()}};y.each(S,function(t){i(e,t,o)});e.classList.add(_)}function u(e){var t=e[x]||{},a=t.renderProxy;if(a){y.each(S,function(t){n(e,t,a)});delete t.renderProxy}e.classList.remove(_)}function m(e,t,a){var o=e[x]||(e[x]={}),i=o.resizer=c(d(function(){if(o.resizer){return t(l("resize",a))}}));h(e,function(){if(o.resizer){var t=e.parentNode;if(t&&t!==i.parentNode){t.insertBefore(i,t.firstChild)}i._reset()}})}function p(e){var t=e[x]||{},a=t.resizer;delete t.resizer;u(e);if(a&&a.parentNode){a.parentNode.removeChild(a)}}function f(e,t){var a=e._style||document.createElement("style");if(!e._style){e._style=a;t="/* Chart.js */\n"+t;a.setAttribute("type","text/css");document.getElementsByTagName("head")[0].appendChild(a)}a.appendChild(document.createTextNode(t))}t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function initialize(){f(this,"@-webkit-keyframes "+v+"{"+"from{opacity:0.99}to{opacity:1}"+"}@keyframes "+v+"{"+"from{opacity:0.99}to{opacity:1}"+"}."+_+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}")},acquireContext:function acquireContext(e,t){if("string"==typeof e){e=document.getElementById(e)}else if(e.length){e=e[0]}if(e&&e.canvas){e=e.canvas}var a=e&&e.getContext&&e.getContext("2d");if(a&&a.canvas===e){o(e,t);return a}return null},releaseContext:function releaseContext(e){var t=e.canvas;if(!t[x]){return}var a=t[x].initial;["height","width"].forEach(function(e){var o=a[e];if(y.isNullOrUndef(o)){t.removeAttribute(e)}else{t.setAttribute(e,o)}});y.each(a.style||{},function(e,a){t.style[a]=e});t.width=t.width;delete t[x]},addEventListener:function addEventListener(e,t,a){var o=e.canvas;if("resize"===t){m(o,a,e);return}var n=a[x]||(a[x]={}),l=n.proxies||(n.proxies={}),d=l[e.id+"_"+t]=function(t){a(s(t,e))};i(o,t,d)},removeEventListener:function removeEventListener(e,t,a){var o=e.canvas;if("resize"===t){p(o,a);return}var i=a[x]||{},l=i.proxies||{},s=l[e.id+"_"+t];if(!s){return}n(o,t,s)}};y.addEvent=i;y.removeEvent=n},{45:45}],48:[function(e,t){'use strict';var a=e(45),o=e(46),i=e(47),n=i._enabled?i:o;t.exports=a.extend({initialize:function initialize(){},acquireContext:function acquireContext(){},releaseContext:function releaseContext(){},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){}},n)},{45:45,46:46,47:47}],49:[function(e,t){'use strict';var a=e(25),o=e(40),n=e(45);a._set("global",{plugins:{filler:{propagate:!0}}});t.exports=function(){var u={dataset:function dataset(e){var t=e.fill,a=e.chart,o=a.getDatasetMeta(t),i=o&&a.isDatasetVisible(t),n=i&&o.dataset._children||[],l=n.length||0;return!l?null:function(e,t){return tn||n>=a){return!1}return n}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;}}function t(e){var t=e.el._model||{},a=e.el._scale||{},o=e.fill,i=null,n;if(isFinite(o)){return null}if("start"===o){i=t.scaleBottom===void 0?a.bottom:t.scaleBottom}else if("end"===o){i=t.scaleTop===void 0?a.top:t.scaleTop}else if(t.scaleZero!==void 0){i=t.scaleZero}else if(a.getBasePosition){i=a.getBasePosition()}else if(a.getBasePixel){i=a.getBasePixel()}if(i!==void 0&&null!==i){if(i.x!==void 0&&i.y!==void 0){return i}if("number"==typeof i&&isFinite(i)){n=a.isHorizontal();return{x:n?i:null,y:n?null:i}}}return null}function l(e,t,a){var o=e[t],i=o.fill,n=[t],l;if(!a){return i}while(!1!==i&&-1===n.indexOf(i)){if(!isFinite(i)){return i}l=e[i];if(!l){return!1}if(l.visible){return i}n.push(i);i=l.fill}return!1}function s(e){var t=e.fill,a="dataset";if(!1===t){return null}if(!isFinite(t)){a="boundary"}return u[a](e)}function d(e){return e&&!e.skip}function c(e,t,a,o,l){var s;if(!o||!l){return}e.moveTo(t[0].x,t[0].y);for(s=1;s"],a=0;a");if(e.data.datasets[a].label){t.push(e.data.datasets[a].label)}t.push("")}t.push("");return t.join("")}});t.exports=function(e){var l=e.layoutService,s=n.noop;function t(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}e.Legend=o.extend({initialize:function initialize(e){n.extend(this,e);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:s,update:function update(e,t,a){var o=this;o.beforeUpdate();o.maxWidth=e;o.maxHeight=t;o.margins=a;o.beforeSetDimensions();o.setDimensions();o.afterSetDimensions();o.beforeBuildLabels();o.buildLabels();o.afterBuildLabels();o.beforeFit();o.fit();o.afterFit();o.afterUpdate();return o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function setDimensions(){var e=this;if(e.isHorizontal()){e.width=e.maxWidth;e.left=0;e.right=e.width}else{e.height=e.maxHeight;e.top=0;e.bottom=e.height}e.paddingLeft=0;e.paddingTop=0;e.paddingRight=0;e.paddingBottom=0;e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function buildLabels(){var e=this,t=e.options.labels||{},a=n.callback(t.generateLabels,[e.chart],e)||[];if(t.filter){a=a.filter(function(a){return t.filter(a,e.chart.data)})}if(e.options.reverse){a.reverse()}e.legendItems=a},afterBuildLabels:s,beforeFit:s,fit:function fit(){var e=this,o=e.options,l=o.labels,s=o.display,d=e.ctx,c=a.global,h=n.valueOrDefault,u=h(l.fontSize,c.defaultFontSize),m=h(l.fontStyle,c.defaultFontStyle),p=h(l.fontFamily,c.defaultFontFamily),f=n.fontString(u,m,p),y=e.legendHitBoxes=[],x=e.minSize,k=e.isHorizontal();if(k){x.width=e.maxWidth;x.height=s?10:0}else{x.width=s?10:0;x.height=e.maxHeight}if(s){d.font=f;if(k){var _=e.lineWidths=[0],v=e.legendItems.length?u+l.padding:0;d.textAlign="left";d.textBaseline="top";n.each(e.legendItems,function(a,o){var i=t(l,u),n=i+u/2+d.measureText(a.text).width;if(_[_.length-1]+n+l.padding>=e.width){v+=u+l.padding;_[_.length]=e.left}y[o]={left:0,top:0,width:n,height:u};_[_.length-1]+=n+l.padding});x.height+=v}else{var S=l.padding,w=e.columnWidths=[],D=l.padding,C=0,P=0,T=u+S;n.each(e.legendItems,function(e,a){var o=t(l,u),i=o+u/2+d.measureText(e.text).width;if(P+T>x.height){D+=C+l.padding;w.push(C);C=0;P=0}C=Math.max(C,i);P+=T;y[a]={left:0,top:0,width:i,height:u}});D+=C;w.push(C);x.width+=D}}e.width=x.width;e.height=x.height},afterFit:s,isHorizontal:function isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position},draw:function draw(){var e=this,o=e.options,i=o.labels,l=a.global,s=l.elements.line,d=e.width,c=e.lineWidths;if(o.display){var h=e.ctx,u=n.valueOrDefault,m=u(i.fontColor,l.defaultFontColor),p=u(i.fontSize,l.defaultFontSize),f=u(i.fontStyle,l.defaultFontStyle),y=u(i.fontFamily,l.defaultFontFamily),x=n.fontString(p,f,y),k;h.textAlign="left";h.textBaseline="middle";h.lineWidth=.5;h.strokeStyle=m;h.fillStyle=m;h.font=x;var _=t(i,p),v=e.legendHitBoxes,S=function(e,t,a){if(isNaN(_)||0>=_){return}h.save();h.fillStyle=u(a.fillStyle,l.defaultColor);h.lineCap=u(a.lineCap,s.borderCapStyle);h.lineDashOffset=u(a.lineDashOffset,s.borderDashOffset);h.lineJoin=u(a.lineJoin,s.borderJoinStyle);h.lineWidth=u(a.lineWidth,s.borderWidth);h.strokeStyle=u(a.strokeStyle,l.defaultColor);var i=0===u(a.lineWidth,s.borderWidth);if(h.setLineDash){h.setLineDash(u(a.lineDash,s.borderDash))}if(o.labels&&o.labels.usePointStyle){var d=p*Math.SQRT2/2,c=d/Math.SQRT2;n.canvas.drawPoint(h,a.pointStyle,d,e+c,t+c)}else{if(!i){h.strokeRect(e,t,_,p)}h.fillRect(e,t,_,p)}h.restore()},w=function(e,t,a,o){var i=p/2,n=_+i+e,l=t+i;h.fillText(a.text,n,l);if(a.hidden){h.beginPath();h.lineWidth=2;h.moveTo(n,l);h.lineTo(n+o,l);h.stroke()}},D=e.isHorizontal();if(D){k={x:e.left+(d-c[0])/2,y:e.top+i.padding,line:0}}else{k={x:e.left+i.padding,y:e.top+i.padding,line:0}}var C=p+i.padding;n.each(e.legendItems,function(t,a){var o=h.measureText(t.text).width,n=_+p/2+o,l=k.x,s=k.y;if(D){if(l+n>=d){s=k.y+=C;k.line++;l=k.x=e.left+(d-c[k.line])/2}}else if(s+C>e.bottom){l=k.x=l+e.columnWidths[k.line]+i.padding;s=k.y=e.top+i.padding;k.line++}S(l,s,t);v[a].left=l;v[a].top=s;w(l,s,t,o);if(D){k.x+=n+i.padding}else{k.y+=C}})}},handleEvent:function handleEvent(t){var e=this,a=e.options,o="mouseup"===t.type?"click":t.type,n=!1;if("mousemove"===o){if(!a.onHover){return}}else if("click"===o){if(!a.onClick){return}}else{return}var l=t.x,s=t.y;if(l>=e.left&&l<=e.right&&s>=e.top&&s<=e.bottom){for(var d=e.legendHitBoxes,c=0,h;c=h.left&&l<=h.left+h.width&&s>=h.top&&s<=h.top+h.height){if("click"===o){a.onClick.call(e,t.native,e.legendItems[c]);n=!0;break}else if("mousemove"===o){a.onHover.call(e,t.native,e.legendItems[c]);n=!0;break}}}}return n}});function i(t,a){var o=new e.Legend({ctx:t.ctx,options:a,chart:t});l.configure(t,o,a);l.addBox(t,o);t.legend=o}return{id:"legend",beforeInit:function beforeInit(e){var t=e.options.legend;if(t){i(e,t)}},beforeUpdate:function beforeUpdate(e){var t=e.options.legend,o=e.legend;if(t){n.mergeIf(t,a.global.legend);if(o){l.configure(e,o,t);o.options=t}else{i(e,t)}}else if(o){l.removeBox(e,o);delete e.legend}},afterEvent:function afterEvent(t,a){var e=t.legend;if(e){e.handleEvent(a)}}}}},{25:25,26:26,45:45}],51:[function(e,t){'use strict';var a=e(25),o=e(26),n=e(45);a._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});t.exports=function(e){var i=e.layoutService,l=n.noop;e.Title=o.extend({initialize:function initialize(e){var t=this;n.extend(t,e);t.legendHitBoxes=[]},beforeUpdate:l,update:function update(e,t,a){var o=this;o.beforeUpdate();o.maxWidth=e;o.maxHeight=t;o.margins=a;o.beforeSetDimensions();o.setDimensions();o.afterSetDimensions();o.beforeBuildLabels();o.buildLabels();o.afterBuildLabels();o.beforeFit();o.fit();o.afterFit();o.afterUpdate();return o.minSize},afterUpdate:l,beforeSetDimensions:l,setDimensions:function setDimensions(){var e=this;if(e.isHorizontal()){e.width=e.maxWidth;e.left=0;e.right=e.width}else{e.height=e.maxHeight;e.top=0;e.bottom=e.height}e.paddingLeft=0;e.paddingTop=0;e.paddingRight=0;e.paddingBottom=0;e.minSize={width:0,height:0}},afterSetDimensions:l,beforeBuildLabels:l,buildLabels:l,afterBuildLabels:l,beforeFit:l,fit:function fit(){var e=this,t=n.valueOrDefault,o=e.options,i=o.display,l=t(o.fontSize,a.global.defaultFontSize),s=e.minSize,d=n.isArray(o.text)?o.text.length:1,c=n.options.toLineHeight(o.lineHeight,l),h=i?d*c+2*o.padding:0;if(e.isHorizontal()){s.width=e.maxWidth;s.height=h}else{s.width=h;s.height=e.maxHeight}e.width=s.width;e.height=s.height},afterFit:l,isHorizontal:function isHorizontal(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function draw(){var e=this,t=e.ctx,o=n.valueOrDefault,l=e.options,s=a.global;if(l.display){var d=o(l.fontSize,s.defaultFontSize),c=o(l.fontStyle,s.defaultFontStyle),h=o(l.fontFamily,s.defaultFontFamily),u=n.fontString(d,c,h),m=n.options.toLineHeight(l.lineHeight,d),p=m/2+l.padding,f=0,x=e.top,k=e.left,_=e.bottom,v=e.right,S,w,D;t.fillStyle=o(l.fontColor,s.defaultFontColor);t.font=u;if(e.isHorizontal()){w=k+(v-k)/2;D=x+p;S=v-k}else{w="left"===l.position?k+p:v-p;D=x+(_-x)/2;S=_-x;f=Math.PI*("left"===l.position?-.5:.5)}t.save();t.translate(w,D);t.rotate(f);t.textAlign="center";t.textBaseline="middle";var C=l.text;if(n.isArray(C)){for(var P=0,T=0;T=e){o=0}else{o=Math.round(e/l)}return o+t.minIndex},getBasePixel:function getBasePixel(){return this.bottom}});e.scaleService.registerScaleType("category",t,{position:"bottom"})}},{}],53:[function(e,t){'use strict';var a=e(25),o=e(45),i=e(34);t.exports=function(e){var t={position:"left",ticks:{callback:i.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function determineDataLimits(){var t=this,a=t.options,i=t.chart,n=i.data,l=n.datasets,s=t.isHorizontal();function e(e){return s?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null;t.max=null;var d=a.stacked;if(d===void 0){o.each(l,function(t,a){if(d){return}var o=i.getDatasetMeta(a);if(i.isDatasetVisible(a)&&e(o)&&o.stack!==void 0){d=!0}})}if(a.stacked||d){var c={};o.each(l,function(n,l){var s=i.getDatasetMeta(l),d=[s.type,a.stacked===void 0&&s.stack===void 0?l:"",s.stack].join(".");if(c[d]===void 0){c[d]={positiveValues:[],negativeValues:[]}}var h=c[d].positiveValues,u=c[d].negativeValues;if(i.isDatasetVisible(l)&&e(s)){o.each(n.data,function(e,o){var i=+t.getRightValue(e);if(isNaN(i)||s.data[o].hidden){return}h[o]=h[o]||0;u[o]=u[o]||0;if(a.relativePoints){h[o]=100}else if(0>i){u[o]+=i}else{h[o]+=i}})}});o.each(c,function(e){var a=e.positiveValues.concat(e.negativeValues),i=o.min(a),n=o.max(a);t.min=null===t.min?i:Math.min(t.min,i);t.max=null===t.max?n:Math.max(t.max,n)})}else{o.each(l,function(a,n){var l=i.getDatasetMeta(n);if(i.isDatasetVisible(n)&&e(l)){o.each(a.data,function(e,a){var o=+t.getRightValue(e);if(isNaN(o)||l.data[a].hidden){return}if(null===t.min){t.min=o}else if(ot.max){t.max=o}})}})}t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0;t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1;this.handleTickRangeOptions()},getTickLimit:function getTickLimit(){var e,t=this,i=t.options.ticks;if(t.isHorizontal()){e=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(t.width/50))}else{var n=o.valueOrDefault(i.fontSize,a.global.defaultFontSize);e=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(t.height/(2*n)))}return e},handleDirectionalChanges:function handleDirectionalChanges(){if(!this.isHorizontal()){this.ticks.reverse()}},getLabelForIndex:function getLabelForIndex(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function getPixelForValue(e){var t=this,a=t.start,o=+t.getRightValue(e),i,n=t.end-a;if(t.isHorizontal()){i=t.left+t.width/n*(o-a);return Math.round(i)}i=t.bottom-t.height/n*(o-a);return Math.round(i)},getValueForPixel:function getValueForPixel(e){var t=this,a=t.isHorizontal(),o=a?t.width:t.height,i=(a?e-t.left:t.bottom-e)/o;return t.start+(t.end-t.start)*i},getPixelForTick:function getPixelForTick(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});e.scaleService.registerScaleType("linear",n,t)}},{25:25,34:34,45:45}],54:[function(e,t){'use strict';var a=e(45),o=e(34);t.exports=function(e){var t=a.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function getRightValue(t){if("string"==typeof t){return+t}return e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function handleTickRangeOptions(){var e=this,t=e.options,o=t.ticks;if(o.beginAtZero){var i=a.sign(e.min),n=a.sign(e.max);if(0>i&&0>n){e.max=0}else if(0=e.max){if(l){e.max=e.min+1}else{e.min=e.max-1}}}if(e.min===e.max){e.max++;if(!o.beginAtZero){e.min--}}},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function buildTicks(){var e=this,t=e.options,i=t.ticks,n=e.getTickLimit();n=Math.max(2,n);var l={maxTicks:n,min:i.min,max:i.max,stepSize:a.valueOrDefault(i.fixedStepSize,i.stepSize)},s=e.ticks=o.generators.linear(l,e);e.handleDirectionalChanges();e.max=a.max(s);e.min=a.min(s);if(i.reverse){s.reverse();e.start=e.max;e.end=e.min}else{e.start=e.min;e.end=e.max}},convertTicksToLabels:function convertTicksToLabels(){var t=this;t.ticksAsNumbers=t.ticks.slice();t.zeroLineIndex=t.ticks.indexOf(0);e.Scale.prototype.convertTicksToLabels.call(t)}})}},{34:34,45:45}],55:[function(e,t){'use strict';var a=e(45),o=e(34);t.exports=function(e){var t={position:"left",ticks:{callback:o.formatters.logarithmic}},i=e.Scale.extend({determineDataLimits:function determineDataLimits(){var t=this,o=t.options,i=o.ticks,n=t.chart,l=n.data,s=l.datasets,d=a.valueOrDefault,c=t.isHorizontal();function e(e){return c?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null;t.max=null;t.minNotZero=null;var h=o.stacked;if(h===void 0){a.each(s,function(t,a){if(h){return}var o=n.getDatasetMeta(a);if(n.isDatasetVisible(a)&&e(o)&&o.stack!==void 0){h=!0}})}if(o.stacked||h){var u={};a.each(s,function(i,l){var s=n.getDatasetMeta(l),d=[s.type,o.stacked===void 0&&s.stack===void 0?l:"",s.stack].join(".");if(n.isDatasetVisible(l)&&e(s)){if(u[d]===void 0){u[d]=[]}a.each(i.data,function(e,a){var i=u[d],n=+t.getRightValue(e);if(isNaN(n)||s.data[a].hidden){return}i[a]=i[a]||0;if(o.relativePoints){i[a]=100}else{i[a]+=n}})}});a.each(u,function(e){var o=a.min(e),i=a.max(e);t.min=null===t.min?o:Math.min(t.min,o);t.max=null===t.max?i:Math.max(t.max,i)})}else{a.each(s,function(o,i){var l=n.getDatasetMeta(i);if(n.isDatasetVisible(i)&&e(l)){a.each(o.data,function(e,a){var o=+t.getRightValue(e);if(isNaN(o)||l.data[a].hidden){return}if(null===t.min){t.min=o}else if(ot.max){t.max=o}if(0!=o&&(null===t.minNotZero||oi){return{start:t-a-5,end:t}}return{start:t,end:t+a+5}}function d(e){var a=n(e),d=Math.min(e.height/2,e.width/2),c={r:e.width,l:0,t:e.height,b:0},h={},u,m,p;e.ctx.font=a.font;e._pointLabelSizes=[];var f=t(e);for(u=0;uc.r){c.r=k.end;h.r=y}if(_.startc.b){c.b=_.end;h.b=y}}e.setReductions(d,c,h)}function c(e){var t=Math.min(e.height/2,e.width/2);e.drawingArea=Math.round(t);e.setCenterPoint(0,0,0,0)}function h(e){if(0===e||180===e){return"center"}else if(180>e){return"left"}return"right"}function u(e,t,a,n){if(o.isArray(t)){for(var l=a.y,s=0;se){a.y-=t.h}}function p(e){var a=e.ctx,l=o.valueOrDefault,s=e.options,d=s.angleLines,c=s.pointLabels;a.lineWidth=d.lineWidth;a.strokeStyle=d.color;var p=e.getDistanceFromCenterForValue(s.ticks.reverse?e.min:e.max),f=n(e);a.textBaseline="top";for(var y=t(e)-1;0<=y;y--){if(d.display){var k=e.getPointPosition(y,p);a.beginPath();a.moveTo(e.xCenter,e.yCenter);a.lineTo(k.x,k.y);a.stroke();a.closePath()}if(c.display){var _=e.getPointPosition(y,p+5),v=l(c.fontColor,x.defaultFontColor);a.font=f.font;a.fillStyle=v;var S=e.getIndexAngle(y),w=o.toDegrees(S);a.textAlign=h(w);m(w,e._pointLabelSizes[y],_);u(a,e.pointLabels[y]||"",_,f.size)}}}function f(e,a,n,l){var s=e.ctx;s.strokeStyle=o.valueAtIndexOrDefault(a.color,l-1);s.lineWidth=o.valueAtIndexOrDefault(a.lineWidth,l-1);if(e.options.gridLines.circular){s.beginPath();s.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);s.closePath();s.stroke()}else{var d=t(e);if(0===d){return}s.beginPath();var c=e.getPointPosition(0,n);s.moveTo(c.x,c.y);for(var h=1;ht&&0>a?a:0t&&h>1;l=e[n-1]||null;s=e[n];if(!l){return{lo:null,hi:s}}else if(s[t]a){i=n-1}else{return{lo:l,hi:s}}}return{lo:s,hi:null}}function s(e,t,a,o){var i=l(e,t,a),n=!i.lo?e[0]:!i.hi?e[e.length-2]:i.lo,s=!i.lo?e[1]:!i.hi?e[e.length-1]:i.hi,d=s[t]-n[t],c=d?(a-n[t])/d:0,h=(s[o]-n[o])*c;return n[o]+h}function d(e,t){var a=t.parser,o=t.parser||t.format;if("function"==typeof a){return a(e)}if("string"==typeof e&&"string"==typeof o){return x(e,o)}if(!(e instanceof x)){e=x(e)}if(e.isValid()){return e}if("function"==typeof o){return o(e)}return e}function c(e,t){if(_.isNullOrUndef(e)){return null}var a=t.options.time,o=d(t.getRightValue(e),a);if(!o.isValid()){return null}if(a.round){o.startOf(a.round)}return o.valueOf()}function h(e,t,a,o){var n=t-e,l=w[a],s=l.size,d=l.steps,c,h,u;if(!d){return Math.ceil(n/((o||1)*s))}for(c=0,h=d.length;c=t&&w<=a){_.push(w)}}e.min=t;e.max=a;e._unit=h;e._majorUnit=x;e._minorFormat=s[h];e._majorFormat=s[x];e._table=n(e._timestamps.data,t,a,o.distribution);e._offsets=f(e._table,_,t,a,o);return y(_,x)},getLabelForIndex:function getLabelForIndex(e,t){var a=this,o=a.chart.data,i=a.options.time,n=o.labels&&e