function _typeof(e){"@babel/helpers - typeof";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,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define ("core/chartjs-lazy",t):(e=e||self,e.Chart=t())})(this,function(){'use strict';var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Vt={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]},Ht=t(function(e){var a={};for(var i in Vt){if(Vt.hasOwnProperty(i)){a[Vt[i]]=i}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in o){if(o.hasOwnProperty(n)){if(!("channels"in o[n])){throw new Error("missing channels property: "+n)}if(!("labels"in o[n])){throw new Error("missing channel labels property: "+n)}if(o[n].labels.length!==o[n].channels){throw new Error("channel and label counts mismatch: "+n)}var r=o[n].channels,l=o[n].labels;delete o[n].channels;delete o[n].labels;Object.defineProperty(o[n],"channels",{value:r});Object.defineProperty(o[n],"labels",{value:l})}}o.rgb.hsl=function(e){var t=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(t,a,i),n=Math.max(t,a,i),r=n-o,d,c,g;if(n===o){d=0}else if(t===n){d=(a-i)/r}else if(a===n){d=2+(i-t)/r}else if(i===n){d=4+(t-a)/r}d=Math.min(60*d,360);if(0>d){d+=360}g=(o+n)/2;if(n===o){c=0}else if(.5>=g){c=r/(n+o)}else{c=r/(2-n-o)}return[d,100*c,100*g]};o.rgb.hsv=function(e){var t,a,i,o,n,l=e[0]/255,r=e[1]/255,d=e[2]/255,g=Math.max(l,r,d),m=g-Math.min(l,r,d),u=function(e){return(g-e)/6/m+1/2};if(0===m){o=n=0}else{n=m/g;t=u(l);a=u(r);i=u(d);if(l===g){o=i-a}else if(r===g){o=1/3+t-i}else if(d===g){o=2/3+a-t}if(0>o){o+=1}else if(1o){r=o*(1+a)}else{r=o+a-o*a}n=2*o-r;s=[0,0,0];for(var c=0;3>c;c++){l=t+1/3*-(c-1);if(0>l){l++}if(16*l){d=n+6*(r-n)*l}else if(1>2*l){d=r}else if(2>3*l){d=n+6*((r-n)*(2/3-l))}else{d=n}s[c]=255*d}return s};o.hsl.hsv=function(e){var t=e[0],a=e[1]/100,i=e[2]/100,o=a,n=Math.max(i,.01),r,d;i*=2;a*=1>=i?i:2-i;o*=1>=n?n:2-n;d=(i+a)/2;r=0===i?2*o/(n+o):2*a/(i+a);return[t,100*r,100*d]};o.hsv.rgb=function(e){var a=e[0]/60,i=e[1]/100,o=e[2]/100,n=Math.floor(a)%6,r=a-Math.floor(a),l=255*o*(1-i),s=255*o*(1-i*r),d=255*o*(1-i*(1-r));o*=255;switch(n){case 0:return[o,d,l];case 1:return[s,o,l];case 2:return[l,o,d];case 3:return[l,s,o];case 4:return[d,l,o];case 5:return[o,l,s];}};o.hsv.hsl=function(e){var t=e[0],a=e[1]/100,i=e[2]/100,o=Math.max(i,.01),n,r,s;s=(2-a)*i;n=(2-a)*o;r=a*o;r/=1>=n?n:2-n;r=r||0;s/=2;return[t,100*r,100*s]};o.hwb.rgb=function(e){var t=e[0]/360,a=e[1]/100,o=e[2]/100,l=a+o,s,d,c,h;if(1n){n+=360}r=Math.sqrt(i*i+a*a);return[t,r,n]};o.lch.lab=function(e){var t=e[0],i=e[1],o=e[2],n,r,l;l=2*(o/360)*Math.PI;n=i*Math.cos(l);r=i*Math.sin(l);return[t,n,r]};o.rgb.ansi16=function(e){var t=e[0],a=e[1],i=e[2],n=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];n=Math.round(n/50);if(0===n){return 30}var r=30+(Math.round(i/255)<<2|Math.round(a/255)<<1|Math.round(t/255));if(2===n){r+=60}return r};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0],a=e[1],i=e[2];if(t===a&&a===i){if(8>t){return 16}if(248>1)*a),n=255*((1&t>>2)*a);return[i,o,n]};o.ansi256.rgb=function(e){if(232<=e){var t=10*(e-232)+8;return[t,t,t]}e-=16;var a,i=255*(Math.floor(e/36)/5),o=255*(Math.floor((a=e%36)/6)/5),n=255*(a%6/5);return[i,o,n]};o.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),a=t.toString(16).toUpperCase();return"000000".substring(a.length)+a};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var a=t[0];if(3===t[0].length){a=a.split("").map(function(e){return e+e}).join("")}var i=parseInt(a,16);return[255&i>>16,255&i>>8,255&i]};o.rgb.hcg=function(e){var t=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.max(Math.max(t,a),i),n=Math.min(Math.min(t,a),i),r=o-n,l,s;if(1>r){l=n/(1-r)}else{l=0}if(0>=r){s=0}else if(o===t){s=(a-i)/r%6}else if(o===a){s=2+(i-t)/r}else{s=4+(t-a)/r+4}s/=6;s%=1;return[360*s,100*r,100*l]};o.hsl.hcg=function(e){var t=e[1]/100,a=e[2]/100,i=1,o=0;if(.5>a){i=2*t*a}else{i=2*t*(1-a)}if(1>i){o=(a-.5*i)/(1-i)}return[e[0],100*i,100*o]};o.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,i=t*a,o=0;if(1>i){o=(a-i)/(1-i)}return[e[0],100*i,100*o]};o.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a){return[255*i,255*i,255*i]}var o=[0,0,0],n=6*(t%1),r=n%1,l=1-r,s=0;switch(Math.floor(n)){case 0:o[0]=1;o[1]=r;o[2]=0;break;case 1:o[0]=l;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=r;break;case 3:o[0]=0;o[1]=l;o[2]=1;break;case 4:o[0]=r;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=l;}s=(1-a)*i;return[255*(a*o[0]+s),255*(a*o[1]+s),255*(a*o[2]+s)]};o.hcg.hsv=function(e){var t=e[1]/100,a=e[2]/100,i=t+a*(1-t),o=0;if(0i){o=t/(2*i)}else if(.5<=i&&1>i){o=t/(2*(1-i))}return[e[0],100*o,100*i]};o.hcg.hwb=function(e){var t=e[1]/100,a=e[2]/100,i=t+a*(1-t);return[e[0],100*(i-t),100*(1-i)]};o.hwb.hcg=function(e){var t=e[1]/100,a=e[2]/100,i=1-a,o=i-t,n=0;if(1>o){n=(i-o)/(1-o)}return[e[0],100*o,100*n]};o.apple.rgb=function(e){return[255*(e[0]/65535),255*(e[1]/65535),255*(e[2]/65535)]};o.rgb.apple=function(e){return[65535*(e[0]/255),65535*(e[1]/255),65535*(e[2]/255)]};o.gray.rgb=function(e){return[255*(e[0]/100),255*(e[0]/100),255*(e[0]/100)]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=255&Math.round(255*(e[0]/100)),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[100*(t/255)]}}),Bt=Ht.rgb,Nt=Ht.hsl,Ut=Ht.hsv,jt=Ht.hwb,Gt=Ht.cmyk,qt=Ht.xyz,Kt=Ht.lab,Xt=Ht.lch,Zt=Ht.hex,Jt=Ht.keyword,Qt=Ht.ansi16,$t=Ht.ansi256,ea=Ht.hcg,ta=Ht.apple,aa=Ht.gray;function a(){for(var e={},t=Object.keys(Ht),a=t.length,o=0;ot?f(Math.round(255*t)):"")},rgbString:function(e,t){if(1>t||e[3]&&1>e[3]){return g(e,t)}return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:g,percentString:function(e,t){if(1>t||e[3]&&1>e[3]){return m(e,t)}var a=Math.round(100*(e[0]/255)),i=Math.round(100*(e[1]/255)),o=Math.round(100*(e[2]/255));return"rgb("+a+"%, "+i+"%, "+o+"%)"},percentaString:m,hslString:function(e,t){if(1>t||e[3]&&1>e[3]){return u(e,t)}return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:u,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 sa[e.slice(0,3)]}};function d(e){if(!e){return}var t=[0,0,0],o=1,n=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(n){n=n[1];r=n[3];for(var l=0;lt.length?"0"+t:t}var sa={};for(var da in ra){sa[ra[da]]=da}var ca=function(e){if(e instanceof ca){return e}if(!(this instanceof ca)){return new ca(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=la.getRgba(e);if(t){this.setValues("rgb",t)}else if(t=la.getHsla(e)){this.setValues("hsl",t)}else if(t=la.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)}}};ca.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 la.hexString(this.values.rgb)},rgbString:function rgbString(){return la.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return la.rgbaString(this.values.rgb,this.values.alpha)},percentString:function percentString(){return la.percentString(this.values.rgb,this.values.alpha)},hslString:function hslString(){return la.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return la.hslaString(this.values.hsl,this.values.alpha)},hwbString:function hwbString(){return la.hwbString(this.values.hwb,this.values.alpha)},keyword:function keyword(){return la.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 i=this,o=e,n=t===void 0?.5:t,r=2*n-1,l=i.alpha()-o.alpha(),a=((-1==r*l?r:(r+l)/(1+r*l))+1)/2,s=1-a;return this.rgb(a*i.red()+s*o.red(),a*i.green()+s*o.green(),a*i.blue()+s*o.blue()).alpha(i.alpha()*n+o.alpha()*(1-n))},toJSON:function toJSON(){return this.rgb()},clone:function clone(){var e=new ca,t=this.values,a=e.values,i,o;for(var n in t){if(t.hasOwnProperty(n)){i=t[n];o={}.toString.call(i);if("[object Array]"===o){a[n]=i.slice(0)}else if("[object Number]"===o){a[n]=i}else{console.error("unexpected color value:",i)}}}return e}};ca.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};ca.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};ca.prototype.getValues=function(e){for(var t=this.values,a={},o=0;o(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 i=1.70158,o=0,n=1;if(0===e){return 0}if(1===e){return 1}if(!o){o=.3}if(1>n){n=1;i=o/4}else{i=o/(2*Math.PI)*Math.asin(1/n)}return-(n*Math.pow(2,10*(e-=1))*Math.sin((e-i)*(2*Math.PI)/o))},easeOutElastic:function easeOutElastic(e){var t=1.70158,i=0,o=1;if(0===e){return 0}if(1===e){return 1}if(!i){i=.3}if(1>o){o=1;t=i/4}else{t=i/(2*Math.PI)*Math.asin(1/o)}return o*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1},easeInOutElastic:function easeInOutElastic(e){var i=1.70158,o=0,n=1;if(0===e){return 0}if(2==(e/=.5)){return 1}if(!o){o=.45}if(1>n){n=1;i=o/4}else{i=o/(2*Math.PI)*Math.asin(1/n)}if(1>e){return-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-i)*(2*Math.PI)/o))}return .5*(n*Math.pow(2,-10*(e-=1))*Math.sin((e-i)*(2*Math.PI)/o))+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-ua.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*ua.easeInBounce(2*e)}return .5*ua.easeOutBounce(2*e-1)+.5}};ma.easingEffects=ua;var pa=Math.PI,i=pa/2,fa=pa/4,ya=2*pa/3,ba={clear:function clear(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function roundedRect(e,t,a,o,n,l){if(l){var s=Math.min(l,n/2,o/2),r=t+s,d=a+s,c=t+o-s,h=a+n-s;e.moveTo(t,d);if(r=a){return}e.beginPath();switch(t){default:e.arc(o,n,a,0,2*pa);e.closePath();break;case"triangle":e.moveTo(o+Math.sin(g)*a,n-Math.cos(g)*a);g+=ya;e.lineTo(o+Math.sin(g)*a,n-Math.cos(g)*a);g+=ya;e.lineTo(o+Math.sin(g)*a,n-Math.cos(g)*a);e.closePath();break;case"rectRounded":h=.516*a;c=a-h;s=Math.cos(g+fa)*c;d=Math.sin(g+fa)*c;e.arc(o-s,n-d,h,g-pa,g-i);e.arc(o+d,n-s,h,g-i,g);e.arc(o+s,n+d,h,g,g+i);e.arc(o-d,n+s,h,g+i,g+pa);e.closePath();break;case"rect":if(!r){c=Math.SQRT1_2*a;e.rect(o-c,n-c,2*c,2*c);break}g+=fa;case"rectRot":s=Math.cos(g)*a;d=Math.sin(g)*a;e.moveTo(o-s,n-d);e.lineTo(o+d,n-s);e.lineTo(o+s,n+d);e.lineTo(o-d,n+s);e.closePath();break;case"crossRot":g+=fa;case"cross":s=Math.cos(g)*a;d=Math.sin(g)*a;e.moveTo(o-s,n-d);e.lineTo(o+s,n+d);e.moveTo(o+d,n-s);e.lineTo(o-d,n+s);break;case"star":s=Math.cos(g)*a;d=Math.sin(g)*a;e.moveTo(o-s,n-d);e.lineTo(o+s,n+d);e.moveTo(o+d,n-s);e.lineTo(o-d,n+s);g+=fa;s=Math.cos(g)*a;d=Math.sin(g)*a;e.moveTo(o-s,n-d);e.lineTo(o+s,n+d);e.moveTo(o+d,n-s);e.lineTo(o-d,n+s);break;case"line":s=Math.cos(g)*a;d=Math.sin(g)*a;e.moveTo(o-s,n-d);e.lineTo(o+s,n+d);break;case"dash":e.moveTo(o,n);e.lineTo(o+Math.cos(g)*a,n+Math.sin(g)*a);break;}e.fill();e.stroke()},_isPointInArea:function _isPointInArea(e,t){var a=1e-6;return e.x>t.left-a&&e.xt.top-a&&e.y=o){Da.callback(t.onAnimationComplete,[t],a);a.animating=!1;e.splice(r,1)}else{++r}}}},Ma=Da.options.resolve,Ia=["push","pop","shift","splice","unshift"];function _(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}});Ia.forEach(function(t){var a="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function value(){var t=Array.prototype.slice.call(arguments),o=i.apply(this,t);Da.each(e._chartjs.listeners,function(e){if("function"==typeof e[a]){e[a].apply(e,t)}});return o}})})}function v(e,t){var a=e._chartjs;if(!a){return}var i=a.listeners,o=i.indexOf(t);if(-1!==o){i.splice(o,1)}if(0i){e.insertElements(i,o-i)}},insertElements:function insertElements(e,t){for(var a=0;ao){n=o/t.innerRadius;e.arc(r,l,t.innerRadius-o,i+n,a-n,!0)}else{e.arc(r,l,o,i+Math.PI/2,a-Math.PI/2)}e.closePath();e.clip()}function S(e,t,a,o){var n=a.endAngle,r;if(o){a.endAngle=a.startAngle+Ra;w(e,a);a.endAngle=n;if(a.endAngle===a.startAngle&&a.fullCircles){a.endAngle+=Ra;a.fullCircles--}}e.beginPath();e.arc(a.x,a.y,a.innerRadius,a.startAngle+Ra,a.startAngle,!0);for(r=0;rl){o-=Ra}while(o=r&&o<=l,d=n>=a.innerRadius&&n<=a.outerRadius;return s&&d}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="inner"===t.borderAlign?.33:0,o={x:t.x,y:t.y,innerRadius:t.innerRadius,outerRadius:Math.max(t.outerRadius-a,0),pixelMargin:a,startAngle:t.startAngle,endAngle:t.endAngle,fullCircles:Math.floor(t.circumference/Ra)},n;e.save();e.fillStyle=t.backgroundColor;e.strokeStyle=t.borderColor;if(o.fullCircles){o.endAngle=o.startAngle+Ra;e.beginPath();e.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle);e.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0);e.closePath();for(n=0;ne.x){t=O(t,"left","right")}}else if(e.bases?0:s>i?i:s,r:n.right||0>d?0:d>a?a:d,b:n.bottom||0>c?0:c>i?i:c,l:n.left||0>h?0:h>a?a:h}}function I(e){var t=T(e),a=t.right-t.left,i=t.bottom-t.top,o=M(e,a/2,i/2);return{outer:{x:t.left,y:t.top,w:a,h:i},inner:{x:t.left+o.l,y:t.top+o.t,w:a-o.l-o.r,h:i-o.t-o.b}}}function L(e,t,a){var i=null===t,o=null===a,n=!e||i&&o?!1:T(e);return n&&(i||t>=n.left&&t<=n.right)&&(o||a>=n.top&&a<=n.bottom)}var Ua=Pa.extend({_type:"rectangle",draw:function draw(){var e=this._chart.ctx,t=this._view,a=I(t),i=a.outer,o=a.inner;e.fillStyle=t.backgroundColor;e.fillRect(i.x,i.y,i.w,i.h);if(i.w===o.w&&i.h===o.h){return}e.save();e.beginPath();e.rect(i.x,i.y,i.w,i.h);e.clip();e.fillStyle=t.borderColor;e.rect(o.x,o.y,o.w,o.h);e.fill("evenodd");e.restore()},height:function height(){var e=this._view;return e.base-e.y},inRange:function inRange(e,t){return L(this._view,e,t)},inLabelRange:function inLabelRange(e,t){var a=this._view;return P(a)?L(a,e,null):L(a,null,t)},inXRange:function inXRange(e){return L(this._view,e,null)},inYRange:function inYRange(e){return L(this._view,null,e)},getCenterPoint:function getCenterPoint(){var e=this._view,t,a;if(P(e)){t=e.x;a=(e.y+e.base)/2}else{t=(e.x+e.base)/2;a=e.y}return{x:t,y:a}},getArea:function getArea(){var e=this._view;return P(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function tooltipPosition(){var e=this._view;return{x:e.x,y:e.y}}}),ja={};ja.Arc=Ea;ja.Line=za;ja.Point=Ba;ja.Rectangle=Ua;var Ga=Da._deprecated,qa=Da.valueOrDefault;_a._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});_a._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});function F(e,t){var a=e._length,o,n,r,l;for(r=1,l=t.length;rc.min&&0>x||0<=c.max&&0p&&l){k=_-h}else{k=_+h}}return{size:v,base:_,head:k,center:k+v/2}},calculateBarIndexPixels:function calculateBarIndexPixels(e,t,a,i){var o=this,n="flex"===i.barThickness?E(t,a,i):R(t,a,i),r=o.getStackIndex(e,o.getMeta().stack),l=n.start+n.chunk*r+n.chunk/2,s=Math.min(qa(i.maxBarThickness,1/0),n.chunk*n.ratio);return{base:l-s/2,head:l+s/2,center:l,size:s}},draw:function draw(){var e=this,t=e.chart,a=e._getValueScale(),o=e.getMeta().data,n=e.getDataset(),r=o.length,l=0;Da.canvas.clipArea(t.ctx,t.chartArea);for(;l=$a?-ei:x<-$a?ei:0;var _=x+m,k=Math.cos(x),v=Math.sin(x),w=Math.cos(_),S=Math.sin(_),D=0>=x&&0<=_||_>=ei,C=x<=ti&&_>=ti||_>=ei+ti,P=x===-$a||_>=$a,T=x<=-ti&&_>=-ti||_>=$a+ti,O=P?-1:Math.min(k,k*g,w,w*g),A=T?-1:Math.min(v,v*g,S,S*g),M=D?1:Math.max(k,k*g,w,w*g),I=C?1:Math.max(v,v*g,S,S*g);r=(M-O)/2;l=(I-A)/2;s=-(M+O)/2;d=-(I+A)/2}for(y=0,b=h.length;ya?h:a;a=g>a?g:a}}return a},setHoverStyle:function setHoverStyle(e){var t=e._model,a=e._options,i=Da.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth};t.backgroundColor=Qa(a.hoverBackgroundColor,i(a.backgroundColor));t.borderColor=Qa(a.hoverBorderColor,i(a.borderColor));t.borderWidth=Qa(a.hoverBorderWidth,a.borderWidth)},_getRingWeightOffset:function _getRingWeightOffset(e){for(var t=0,a=0;ag){s+=g||0}else{l+=g||0}}}if(0>m){return r.getPixelForValue(s+m)}return r.getPixelForValue(l+m)}return r.getPixelForValue(e)},updateBezierControlPoints:function updateBezierControlPoints(){var t=this,a=t.chart,o=t.getMeta(),n=o.dataset._model,r=a.chartArea,l=o.data||[],s,d,c,h;if(n.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"===n.cubicInterpolationMode){Da.splineCurveMonotone(l)}else{for(s=0,d=l.length;s div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}),yi=function(e){return e&&e["default"]||e}(fi),bi="$chartjs",xi="chartjs-",_i=xi+"size-monitor",ki=xi+"render-monitor",vi=["animationstart","webkitAnimationStart"],wi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ie(e,t){var a=Da.getStyle(e,t),i=a&&a.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function oe(e,t){var a=e.style,i=e.getAttribute("height"),o=e.getAttribute("width");e[bi]={initial:{height:i,width:o,style:{display:a.display,height:a.height,width:a.width}}};a.display=a.display||"block";if(null===o||""===o){var n=ie(e,"width");if(n!==void 0){e.width=n}}if(null===i||""===i){if(""===e.style.height){e.height=e.width/(t.options.aspectRatio||2)}else{var r=ie(e,"height");if(n!==void 0){e.height=r}}}return e}var Si=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function get(){e=!0}});window.addEventListener("e",null,t)}catch(t){}return e}(),Di=Si?{passive:!0}:!1;function ne(e,t,a){e.addEventListener(t,a,Di)}function re(e,t,a){e.removeEventListener(t,a,Di)}function le(e,t,a,i,o){return{type:e,chart:t,native:o||null,x:a!==void 0?a:null,y:i!==void 0?i:null}}function se(e,t){var a=wi[e.type]||e.type,i=Da.getRelativePosition(e,t);return le(a,t,i.x,i.y,e)}function de(e,t){var a=!1,i=[];return function(){i=Array.prototype.slice.call(arguments);t=t||this;if(!a){a=!0;Da.requestAnimFrame.call(window,function(){a=!1;e.apply(t,i)})}}}function ce(e){var t=document.createElement("div");t.className=e||"";return t}function he(e){var t=ce(_i),a=ce(_i+"-expand"),i=ce(_i+"-shrink");a.appendChild(ce());i.appendChild(ce());t.appendChild(a);t.appendChild(i);t._reset=function(){a.scrollLeft=1000000;a.scrollTop=1000000;i.scrollLeft=1000000;i.scrollTop=1000000};var o=function(){t._reset();e()};ne(a,"scroll",o.bind(a,"expand"));ne(i,"scroll",o.bind(i,"shrink"));return t}function ge(e,t){var a=e[bi]||(e[bi]={}),i=a.renderProxy=function(a){if(a.animationName===xi+"render-animation"){t()}};Da.each(vi,function(t){ne(e,t,i)});a.reflow=!!e.offsetParent;e.classList.add(ki)}function me(e){var t=e[bi]||{},a=t.renderProxy;if(a){Da.each(vi,function(t){re(e,t,a)});delete t.renderProxy}e.classList.remove(ki)}function ue(e,t,a){var i=e[bi]||(e[bi]={}),o=i.resizer=he(de(function(){if(i.resizer){var o=a.options.maintainAspectRatio&&e.parentNode,n=o?o.clientWidth:0;t(le("resize",a));if(o&&o.clientWidthi.height-t.height){r="bottom"}var l,s,d,c,h,g=(o.left+o.right)/2,m=(o.top+o.bottom)/2;if("center"===r){l=function(e){return e<=g};s=function(e){return e>g}}else{l=function(e){return e<=t.width/2};s=function(e){return e>=i.width-t.width/2}}d=function(e){return e+t.width+a.caretSize+a.caretPadding>i.width};c=function(e){return 0>e-t.width-a.caretSize-a.caretPadding};h=function(e){return e<=m?"top":"bottom"};if(l(a.x)){n="left";if(d(a.x)){n="center";r=h(a.y)}}else if(s(a.x)){n="right";if(c(a.x)){n="center";r=h(a.y)}}var u=e._options;return{xAlign:u.xAlign?u.xAlign:n,yAlign:u.yAlign?u.yAlign:r}}function we(e,t,a,i){var o=e.x,n=e.y,r=e.caretSize,l=e.caretPadding,s=e.cornerRadius,d=a.xAlign,c=a.yAlign,h=r+l,g=s+l;if("right"===d){o-=t.width}else if("center"===d){o-=t.width/2;if(o+t.width>i.width){o=i.width-t.width}if(0>o){o=0}}if("top"===c){n+=h}else if("bottom"===c){n-=t.height+h}else{n-=t.height/2}if("center"===c){if("left"===d){o+=h}else if("right"===d){o-=h}}else if("left"===d){o-=g}else if("right"===d){o+=g}return{x:o,y:n}}function Se(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function De(e){return ye([],be(e))}var Fi=Pa.extend({initialize:function initialize(){this._model=_e(this._options);this._lastActive=[]},getTitle:function getTitle(){var e=this,t=e._options,a=t.callbacks,i=a.beforeTitle.apply(e,arguments),o=a.title.apply(e,arguments),n=a.afterTitle.apply(e,arguments),r=[];r=ye(r,be(i));r=ye(r,be(o));r=ye(r,be(n));return r},getBeforeBody:function getBeforeBody(){return De(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function getBody(e,t){var a=this,i=a._options.callbacks,o=[];Da.each(e,function(e){var n={before:[],lines:[],after:[]};ye(n.before,be(i.beforeLabel.call(a,e,t)));ye(n.lines,i.label.call(a,e,t));ye(n.after,be(i.afterLabel.call(a,e,t)));o.push(n)});return o},getAfterBody:function getAfterBody(){return De(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function getFooter(){var e=this,t=e._options.callbacks,a=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),o=t.afterFooter.apply(e,arguments),n=[];n=ye(n,be(a));n=ye(n,be(i));n=ye(n,be(o));return n},update:function update(e){var t=this,o=t._options,n=t._model,r=t._model=_e(o),l=t._active,s=t._data,d={xAlign:n.xAlign,yAlign:n.yAlign},c={x:n.x,y:n.y},h={width:n.width,height:n.height},g={x:n.caretX,y:n.caretY},m,a;if(l.length){r.opacity=1;var u=[],p=[];g=Li[o.position].call(t,l,t._eventPosition);var f=[];for(m=0,a=l.length;mt.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){e.save();e.globalAlpha=o;this.drawBackground(i,t,e,a);i.y+=t.yPadding;Da.rtl.overrideTextDirection(e,t.textDirection);this.drawTitle(i,t,e);this.drawBody(i,t,e);this.drawFooter(i,t,e);Da.rtl.restoreTextDirection(e,t.textDirection);e.restore()}},handleEvent:function handleEvent(t){var e=this,a=e._options,i=!1;e._lastActive=e._lastActive||[];if("mouseout"===t.type){e._active=[]}else{e._active=e._chart.getElementsAtEventForMode(t,a.mode,a);if(a.reverse){e._active.reverse()}}i=!Da.arrayEquals(e._active,e._lastActive);if(i){e._lastActive=e._active;if(a.enabled||a.custom){e._eventPosition={x:t.x,y:t.y};e.update(!0);e.pivot()}}return i}}),Ri=Fi;Ri.positioners=Li;var Ei=Da.valueOrDefault;_a._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});function Ce(){return Da.merge(Object.create(null),[].slice.call(arguments),{merger:function merger(e,t,a,o){if("xAxes"===e||"yAxes"===e){var n=a[e].length,r,l,s;if(!t[e]){t[e]=[]}for(r=0;r=t[e].length){t[e].push({})}if(!t[e][r].type||s.type&&s.type!==t[e][r].type){Da.merge(t[e][r],[Ai.getScaleDefaults(l),s])}else{Da.merge(t[e][r],s)}}}else{Da._merger(e,t,a,o)}}})}function Pe(){return Da.merge(Object.create(null),[].slice.call(arguments),{merger:function merger(e,t,a,i){var o=t[e]||Object.create(null),n=a[e];if("scales"===e){t[e]=Ce(o,n)}else if("scale"===e){t[e]=Da.merge(o,[Ai.getScaleDefaults(n.type),n])}else{Da._merger(e,t,a,i)}}})}function Te(e){e=e||Object.create(null);var t=e.data=e.data||{};t.datasets=t.datasets||[];t.labels=t.labels||[];e.options=Pe(_a.global,_a[e.type],e.options||{});return e}function Oe(e){var t=e.options;Da.each(e.scales,function(t){pi.removeBox(e,t)});t=Pe(_a.global,_a[e.config.type],t);e.options=e.config.options=t;e.ensureScalesHaveIDs();e.buildOrUpdateScales();e.tooltip._options=t.tooltips;e.tooltip.initialize()}function Ae(e,t,a){var i,o=function(e){return e.id===i};do{i=t+a++}while(0<=Da.findIndex(e,o));return i}function Me(e){return"top"===e||"bottom"===e}function Ie(e,t){return function(i,a){return i[e]===a[e]?i[t]-a[t]:i[e]-a[e]}}var Yi=function(e,t){this.construct(e,t);return this};Da.extend(Yi.prototype,{construct:function construct(e,t){var a=this;t=Te(t);var i=Ti.acquireContext(e,t),o=i&&i.canvas,n=o&&o.height,r=o&&o.width;a.id=Da.uid();a.ctx=i;a.canvas=o;a.config=t;a.width=r;a.height=n;a.aspectRatio=n?r/n:null;a.options=t.options;a._bufferedRender=!1;a._layers=[];a.chart=a;a.controller=a;Yi.instances[a.id]=a;Object.defineProperty(a,"data",{get:function get(){return a.config.data},set:function set(e){a.config.data=e}});if(!i||!o){console.error("Failed to create chart: can't acquire context from the given item");return}a.initialize();a.update()},initialize:function initialize(){var e=this;Oi.notify(e,"beforeInit");Da.retinaScale(e,e.options.devicePixelRatio);e.bindEvents();if(e.options.responsive){e.resize(!0)}e.initToolTip();Oi.notify(e,"afterInit");return e},clear:function clear(){Da.canvas.clear(this);return this},stop:function stop(){Aa.cancelAnimation(this);return this},resize:function resize(e){var t=this,a=t.options,i=t.canvas,o=a.maintainAspectRatio&&t.aspectRatio||null,n=Math.max(0,Math.floor(Da.getMaximumWidth(i))),r=Math.max(0,Math.floor(o?n/o:Da.getMaximumHeight(i)));if(t.width===n&&t.height===r){return}i.width=t.width=n;i.height=t.height=r;i.style.width=n+"px";i.style.height=r+"px";Da.retinaScale(t,a.devicePixelRatio);if(!e){var l={width:n,height:r};Oi.notify(t,"resize",[l]);if(a.onResize){a.onResize(t,l)}t.stop();t.update({duration:a.responsiveAnimationDuration})}},ensureScalesHaveIDs:function ensureScalesHaveIDs(){var e=this.options,t=e.scales||{},a=e.scale;Da.each(t.xAxes,function(e,a){if(!e.id){e.id=Ae(t.xAxes,"x-axis-",a)}});Da.each(t.yAxes,function(e,a){if(!e.id){e.id=Ae(t.yAxes,"y-axis-",a)}});if(a){a.id=a.id||"scale"}},buildOrUpdateScales:function buildOrUpdateScales(){var e=this,t=e.options,a=e.scales||{},i=[],o=Object.keys(a).reduce(function(e,t){e[t]=!1;return e},{});if(t.scales){i=i.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))}if(t.scale){i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"})}Da.each(i,function(t){var i=t.options,n=i.id,r=Ei(i.type,t.dtype);if(Me(i.position)!==Me(t.dposition)){i.position=t.dposition}o[n]=!0;var l=null;if(n in a&&a[n].type===r){l=a[n];l.options=i;l.ctx=e.ctx;l.chart=e}else{var s=Ai.getScaleConstructor(r);if(!s){return}l=new s({id:n,type:r,options:i,ctx:e.ctx,chart:e});a[l.id]=l}l.mergeTicksOptions();if(t.isDefault){e.scale=l}});Da.each(o,function(e,t){if(!e){delete a[t]}});e.scales=a;Ai.addScalesToLayout(this)},buildOrUpdateControllers:function buildOrUpdateControllers(){var e=this,t=[],a=e.data.datasets,o,n;for(o=0,n=a.length;o=t.width||0>=t.height){return}if(!1===Oi.notify(t,"beforeDraw",[e])){return}o=t._layers;for(a=0;a=o[a].z;++a){o[a].draw(t.chartArea)}t.drawDatasets(e);for(;ar){var l=Da.log10(Math.abs(e)),s=Math.floor(l)-Math.floor(o);s=Math.max(Math.min(s,20),0);n=e.toExponential(s)}else{var d=-1*Math.floor(o);d=Math.max(Math.min(d,20),0);n=e.toFixed(d)}}else{n="0"}return n},logarithmic:function logarithmic(e,t,a){var i=e/Math.pow(10,Math.floor(Da.log10(e)));if(0===e){return"0"}else if(1===i||2===i||5===i||0===t||t===a.length-1){return e.toExponential()}return""}}},Hi=Da.isArray,Bi=Da.isNullOrUndef,Ni=Da.valueOrDefault,Ui=Da.valueAtIndexOrDefault;_a._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Vi.formatters.values,minor:{},major:{}}});function Re(e,t){var a=[],o=e.length/t,n=0,r=e.length;for(;nl+s){return}}return n}function Ye(e,t){Da.each(e,function(e){var a=e.gc,o=a.length/2,n;if(o>t){for(n=0;nt){return!1}for(o=e[0],a=1;ar){return s}}return Math.max(r,1)}function Ge(e){var t=[],a,o;for(a=0,o=e.length;ah){l++;h=Math.round(n+l*t)}for(d=Math.max(n,0);d=n||1>=i||!e.isHorizontal()){e.labelRotation=o;return}l=e._getLabelSizes();s=l.widest.width;d=l.highest.height-l.highest.offset;c=Math.min(e.maxWidth,e.chart.width-s);h=t.offset?e.maxWidth/i:c/(i-1);if(s+6>h){h=c/(i-(t.offset?.5:1));g=e.maxHeight-ze(t.gridLines)-a.padding-Ve(t.scaleLabel);m=Math.sqrt(s*s+d*d);r=Da.toDegrees(Math.min(Math.asin(Math.min((l.highest.height+6)/h,1)),Math.asin(Math.min(g/m,1))-Math.asin(d/m)));r=Math.max(o,Math.min(n,r))}e.labelRotation=r},afterCalculateTickRotation:function afterCalculateTickRotation(){Da.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function beforeFit(){Da.callback(this.options.beforeFit,[this])},fit:function fit(){var e=this,t=e.minSize={width:0,height:0},a=e.chart,i=e.options,o=i.ticks,n=i.scaleLabel,r=i.gridLines,l=e._isVisible(),s="bottom"===i.position,d=e.isHorizontal();if(d){t.width=e.maxWidth}else if(l){t.width=ze(r)+Ve(n)}if(!d){t.height=e.maxHeight}else if(l){t.height=ze(r)+Ve(n)}if(o.display&&l){var c=Be(o),h=e._getLabelSizes(),g=h.first,m=h.last,u=h.widest,p=h.highest,f=.4*c.minor.lineHeight,y=o.padding;if(d){var b=0!==e.labelRotation,x=Da.toRadians(e.labelRotation),_=Math.cos(x),k=Math.sin(x),v=k*u.width+_*(p.height-(b?p.offset:0))+(b?0:f);t.height=Math.min(e.maxHeight,t.height+v+y);var w=e.getPixelForTick(0)-e.left,S=e.right-e.getPixelForTick(e.getTicks().length-1),D,C;if(b){D=s?_*g.width+k*g.offset:k*(g.height-g.offset);C=s?k*(m.height-m.offset):_*m.width+k*m.offset}else{D=g.width/2;C=m.width/2}e.paddingLeft=Math.max((D-w)*e.width/(e.width-w),0)+3;e.paddingRight=Math.max((C-S)*e.width/(e.width-S),0)+3}else{var P=o.mirror?0:u.width+y+f;t.width=Math.min(e.maxWidth,t.width+P);e.paddingTop=g.height/2;e.paddingBottom=m.height/2}}e.handleMargins();if(d){e.width=e._length=a.width-e.margins.left-e.margins.right;e.height=t.height}else{e.width=t.width;e.height=e._length=a.height-e.margins.top-e.margins.bottom}},handleMargins:function handleMargins(){var e=this;if(e.margins){e.margins.left=Math.max(e.paddingLeft,e.margins.left);e.margins.top=Math.max(e.paddingTop,e.margins.top);e.margins.right=Math.max(e.paddingRight,e.margins.right);e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom)}},afterFit:function afterFit(){Da.callback(this.options.afterFit,[this])},isHorizontal:function isHorizontal(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function isFullWidth(){return this.options.fullWidth},getRightValue:function getRightValue(e){if(Bi(e)){return NaN}if(("number"==typeof e||e instanceof Number)&&!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},_convertTicksToLabels:function _convertTicksToLabels(e){var t=this,a,o,n;t.ticks=e.map(function(e){return e.value});t.beforeTickToLabelConversion();a=t.convertTicksToLabels(e)||t.ticks;t.afterTickToLabelConversion();for(o=0,n=e.length;oe||e>i-1?null:t.getPixelForDecimal(e*o+(a?o/2:0))},getPixelForDecimal:function getPixelForDecimal(e){var t=this;if(t._reversePixels){e=1-e}return t._startPixel+e*t._length},getDecimalForPixel:function getDecimalForPixel(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},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:0n){qe(e,r,l/n);return Ne(e)}g=je(r,e,o,n);if(0l*o?l/i:s/o:s*oe||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function getValueForPixel(e){var t=this,a=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(a,0),t.ticks.length-1)},getBasePixel:function getBasePixel(){return this.bottom}});Ki._defaults={position:"bottom"};var Xi=Da.noop,Zi=Da.isNullOrUndef;function Xe(e,t){var a=[],i=e.stepSize,o=i||1,n=e.maxTicks-1,r=e.min,l=e.max,s=e.precision,d=t.min,c=t.max,h=Da.niceNum((c-d)/n/o)*o,g,m,u,p;if(h<1e-14&&Zi(r)&&Zi(l)){return[d,c]}p=Math.ceil(c/h)-Math.floor(d/h);if(p>n){h=Da.niceNum(p*h/n/o)*o}if(i||Zi(s)){g=Math.pow(10,Da._decimalPlaces(h))}else{g=Math.pow(10,s);h=Math.ceil(h*g)/g}m=Math.floor(d/h)*h;u=Math.ceil(c/h)*h;if(i){if(!Zi(r)&&Da.almostWhole(r/h,h/1e3)){m=r}if(!Zi(l)&&Da.almostWhole(l/h,h/1e3)){u=l}}p=(u-m)/h;if(Da.almostEquals(p,Math.round(p),h/1e3)){p=Math.round(p)}else{p=Math.ceil(p)}m=Math.round(m*g)/g;u=Math.round(u*g)/g;a.push(Zi(r)?m:r);for(var f=1;fi&&0>o){e.max=0}else if(0=e.max){if(n){e.max=e.min+1}else{e.min=e.max-1}}}if(e.min===e.max){e.max++;if(!a.beginAtZero){e.min--}}},getTickLimit:function getTickLimit(){var e=this,t=e.options.ticks,a=t.stepSize,i=t.maxTicksLimit,o;if(a){o=Math.ceil(e.max/a)-Math.floor(e.min/a)+1}else{o=e._computeTickLimit();i=i||11}if(i){o=Math.min(i,o)}return o},_computeTickLimit:function _computeTickLimit(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Xi,buildTicks:function buildTicks(){var e=this,t=e.options,a=t.ticks,i=e.getTickLimit();i=Math.max(2,i);var o={maxTicks:i,min:a.min,max:a.max,precision:a.precision,stepSize:Da.valueOrDefault(a.fixedStepSize,a.stepSize)},n=e.ticks=Xe(o,e);e.handleDirectionalChanges();e.max=Da.max(n);e.min=Da.min(n);if(a.reverse){n.reverse();e.start=e.max;e.end=e.min}else{e.start=e.min;e.end=e.max}},convertTicksToLabels:function convertTicksToLabels(){var e=this;e.ticksAsNumbers=e.ticks.slice();e.zeroLineIndex=e.ticks.indexOf(0);Gi.prototype.convertTicksToLabels.call(e)},_configure:function _configure(){var e=this,t=e.getTicks(),a=e.min,i=e.max,o;Gi.prototype._configure.call(e);if(e.options.offset&&t.length){o=(i-a)/Math.max(t.length-1,1)/2;a-=o;i+=o}e._startValue=a;e._endValue=i;e._valueRange=i-a}}),Qi={position:"left",ticks:{callback:Vi.formatters.linear}};function Ze(e,t,a){var i=[a.type,t===void 0&&a.stack===void 0?a.index:"",a.stack].join(".");if(e[i]===void 0){e[i]={pos:[],neg:[]}}return e[i]}function Je(e,t,a,o){var n=e.options,r=n.stacked,l=Ze(t,r,a),s=l.pos,d=l.neg,c=o.length,h,g;for(h=0;hg.min||0>g.max){d[h]+=g.min}else{s[h]+=g.max}}}function Qe(e,t,a){var o=a.length,n,r;for(n=0;ne||e>t.length-1){return null}return this.getPixelForValue(t[e])}});$i._defaults=Qi;var eo=Da.valueOrDefault,to=Da.math.log10;function $e(e,t){var a=[],i=eo(e.min,Math.pow(10,Math.floor(to(t.min)))),o=Math.floor(to(t.max)),n=Math.ceil(t.max/Math.pow(10,o)),r,l;if(0===i){r=Math.floor(to(t.minNotZero));l=Math.floor(t.minNotZero/Math.pow(10,r));a.push(i);i=l*Math.pow(10,r)}else{r=Math.floor(to(i));l=Math.floor(i/Math.pow(10,r))}var s=0>r?Math.pow(10,Math.abs(r)):1;do{a.push(i);++l;if(10===l){l=1;++r;s=0<=r?1:s}i=Math.round(l*Math.pow(10,r)*s)/s}while(rd.min||0>d.max){continue}f[h]=f[h]||0;f[h]+=d.max}}}Da.each(u,function(e){if(0d.min||0>d.max){continue}t.min=Math.min(d.min,t.min);t.max=Math.max(d.max,t.max);if(0!==d.min){t.minNotZero=Math.min(d.min,t.minNotZero)}}}}}t.min=Da.isFinite(t.min)?t.min:null;t.max=Da.isFinite(t.max)?t.max:null;t.minNotZero=Da.isFinite(t.minNotZero)?t.minNotZero:null;this.handleTickRangeOptions()},handleTickRangeOptions:function handleTickRangeOptions(){var e=this,t=e.options.ticks,a=1,i=10;e.min=et(t.min,e.min);e.max=et(t.max,e.max);if(e.min===e.max){if(0!==e.min&&null!==e.min){e.min=Math.pow(10,Math.floor(to(e.min))-1);e.max=Math.pow(10,Math.floor(to(e.max))+1)}else{e.min=a;e.max=i}}if(null===e.min){e.min=Math.pow(10,Math.floor(to(e.max))-1)}if(null===e.max){e.max=0!==e.min?Math.pow(10,Math.floor(to(e.min))+1):i}if(null===e.minNotZero){if(0e.max){e.minNotZero=Math.pow(10,Math.floor(to(e.max)))}else{e.minNotZero=a}}},buildTicks:function buildTicks(){var e=this,t=e.options.ticks,a=!e.isHorizontal(),i={min:et(t.min),max:et(t.max)},o=e.ticks=$e(i,e);e.max=Da.max(o);e.min=Da.min(o);if(t.reverse){a=!a;e.start=e.max;e.end=e.min}else{e.start=e.min;e.end=e.max}if(a){o.reverse()}},convertTicksToLabels:function convertTicksToLabels(){this.tickValues=this.ticks.slice();Gi.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function getLabelForIndex(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function getPixelForTick(e){var t=this.tickValues;if(0>e||e>t.length-1){return null}return this.getPixelForValue(t[e])},_getFirstTickValue:function _getFirstTickValue(e){var t=Math.floor(to(e)),a=Math.floor(e/Math.pow(10,t));return a*Math.pow(10,t)},_configure:function _configure(){var e=this,t=e.min,a=0;Gi.prototype._configure.call(e);if(0===t){t=e._getFirstTickValue(e.minNotZero);a=eo(e.options.ticks.fontSize,_a.global.defaultFontSize)/e._length}e._startValue=to(t);e._valueOffset=a;e._valueRange=(to(e.max)-to(t))/(1-a)},getPixelForValue:function getPixelForValue(e){var t=this,a=0;e=+t.getRightValue(e);if(e>t.min&&0o){return{start:t-a,end:t}}return{start:t,end:t+a}}function ot(e){var t=Da.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={},n,r,l;e.ctx.font=t.string;e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(n=0;na.r){a.r=h.end;o.r=d}if(g.starta.b){a.b=g.end;o.b=d}}e.setReductions(e.drawingArea,a,o)}function nt(e){if(0===e||180===e){return"center"}else if(180>e){return"left"}return"right"}function rt(e,t,a,o){var n=a.y+o/2,r,l;if(Da.isArray(t)){for(r=0,l=t.length;re){a.y-=t.h}}function st(e){var t=e.ctx,a=e.options,o=a.pointLabels,n=tt(a),r=e.getDistanceFromCenterForValue(a.ticks.reverse?e.min:e.max),l=Da.options._parseFont(o);t.save();t.font=l.string;t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;0<=s;s--){var d=0==s?n/2:0,c=e.getPointPosition(s,r+d+5),h=no(o.fontColor,s,_a.global.defaultFontColor);t.fillStyle=h;var g=e.getIndexAngle(s),m=Da.toDegrees(g);t.textAlign=nt(m);lt(m,e._pointLabelSizes[s],c);rt(t,e.pointLabels[s],c,l.lineHeight)}t.restore()}function dt(e,t,a,o){var n=e.ctx,r=t.circular,l=e.chart.data.labels.length,s=no(t.color,o-1),d=no(t.lineWidth,o-1),c;if(!r&&!l||!s||!d){return}n.save();n.strokeStyle=s;n.lineWidth=d;if(n.setLineDash){n.setLineDash(t.borderDash||[]);n.lineDashOffset=t.borderDashOffset||0}n.beginPath();if(r){n.arc(e.xCenter,e.yCenter,a,0,2*Math.PI)}else{c=e.getPointPosition(0,a);n.moveTo(c.x,c.y);for(var h=1;hn?n+360:n)*Math.PI)/360},getDistanceFromCenterForValue:function getDistanceFromCenterForValue(e){var t=this;if(Da.isNullOrUndef(e)){return NaN}var a=t.drawingArea/(t.max-t.min);if(t.options.ticks.reverse){return(t.max-e)*a}return(e-t.min)*a},getPointPosition:function getPointPosition(e,t){var a=this,i=a.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(i)*t+a.xCenter,y:Math.sin(i)*t+a.yCenter}},getPointPositionForValue:function getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function getBasePosition(e){var t=this,a=t.min,i=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:0>a&&0>i?i:0t&&c>1;r=e[n-1]||null;l=e[n];if(!r){return{lo:null,hi:l}}else if(l[t]a){o=n-1}else{return{lo:r,hi:l}}}return{lo:l,hi:null}}function yt(e,t,a,i){var o=ft(e,t,a),n=!o.lo?e[0]:!o.hi?e[e.length-2]:o.lo,r=!o.lo?e[1]:!o.hi?e[e.length-1]:o.hi,l=r[t]-n[t],s=l?(a-n[t])/l:0,d=(r[i]-n[i])*s;return n[i]+d}function bt(e,t){var a=e._adapter,i=e.options.time,o=i.parser,n=o||i.format,r=t;if("function"==typeof o){r=o(r)}if(!Da.isFinite(r)){r="string"==typeof n?a.parse(r,n):a.parse(r)}if(null!==r){return+r}if(!o&&"function"==typeof n){r=n(t);if(!Da.isFinite(r)){r=a.parse(r)}}return r}function xt(e,t){if(Da.isNullOrUndef(t)){return null}var a=e.options.time,i=bt(e,e.getRightValue(t));if(null===i){return i}if(a.round){i=+e._adapter.startOf(i,a.round)}return i}function _t(e,t,a,o){var n=fo.length,r,l,s;for(r=fo.indexOf(e);r=fo.indexOf(a);r--){l=fo[r];if(po[l].common&&e._adapter.diff(n,o,l)>=t-1){return l}}return fo[a?fo.indexOf(a):0]}function vt(e){for(var t=fo.indexOf(e)+1,a=fo.length;t1e5*s){throw t+" and "+a+" are too far apart with stepSize of "+s+" "+l}for(g=c;g=t&&u<=a){s.push(u)}}e.min=t;e.max=a;e._unit=r.unit||(n.autoSkip?_t(r.minUnit,e.min,e.max,d):kt(e,s.length,r.minUnit,e.min,e.max));e._majorUnit=!n.major.enabled||"year"===e._unit?void 0:vt(e._unit);e._table=pt(e._timestamps.data,t,a,h);e._offsets=St(e._table,s,t,a,o);if(n.reverse){s.reverse()}return Ct(e,s,e._majorUnit)},getLabelForIndex:function getLabelForIndex(e,t){var a=this,i=a._adapter,o=a.chart.data,n=a.options.time,r=o.labels&&e>>0,o=0;ot.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict){i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===void 0}if(null==Object.isFrozen||!Object.isFrozen(e)){e._isValid=i}else{return i}}return e._isValid}function b(e){var t=u(NaN);if(null!=e){g(f(t),e)}else{f(t).userInvalidated=!0}return t}var zt=a.momentProperties=[];function x(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=f(t)}if(!l(t._locale)){e._locale=t._locale}if(0e){return Math.ceil(e)||0}else{return Math.floor(e)}}function w(e){var t=+e,a=0;if(0!=t&&isFinite(t)){a=v(t)}return a}function S(e,t,a){var o=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),r=0,l;for(l=0;l=e?""+e:"+"+e});Y(0,["YY",2],0,function(){return this.year()%100});Y(0,["YYYY",4],0,"year");Y(0,["YYYYY",5],0,"year");Y(0,["YYYYYY",6,!0],0,"year");M("year","y");F("year",1);B("Y",ra);B("YY",ea,Zt);B("YYYY",oa,Qt);B("YYYYY",na,$t);B("YYYYYY",na,$t);G(["YYYYY","YYYYYY"],0);G("YYYY",function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):w(e)});G("YY",function(e,t){t[0]=a.parseTwoDigitYear(e)});G("Y",function(e,t){t[0]=parseInt(e,10)});function X(e){return Z(e)?366:365}function Z(e){return 0==e%4&&0!=e%100||0==e%400}a.parseTwoDigitYear=function(e){return w(e)+(68o;++o){r=u([2e3,o]);this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase();this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase()}}if(a){if("MMM"===t){n=ba.call(this._shortMonthsParse,l);return-1!==n?n:null}else{n=ba.call(this._longMonthsParse,l);return-1!==n?n:null}}else{if("MMM"===t){n=ba.call(this._shortMonthsParse,l);if(-1!==n){return n}n=ba.call(this._longMonthsParse,l);return-1!==n?n:null}else{n=ba.call(this._longMonthsParse,l);if(-1!==n){return n}n=ba.call(this._shortMonthsParse,l);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=w(t)}else{t=e.localeData().monthsParse(t);if(!s(t)){return e}}}a=Math.min(e.date(),ae(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a);return e}function ne(e){if(null!=e){oe(this,e);a.updateOffset(this,!0);return this}else{return Q(this,"Month")}}function re(){function e(e,t){return t.length-e.length}var t=[],a=[],o=[],n,r;for(n=0;12>n;n++){r=u([2e3,n]);t.push(this.monthsShort(r,""));a.push(this.months(r,""));o.push(this.months(r,""));o.push(this.monthsShort(r,""))}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")}function le(e,t,a,i,o,n,r){var l;if(100>e&&0<=e){l=new Date(e+400,t,a,i,o,n,r);if(isFinite(l.getFullYear())){l.setFullYear(e)}}else{l=new Date(e,t,a,i,o,n,r)}return l}function se(e){var t;if(100>e&&0<=e){var a=Array.prototype.slice.call(arguments);a[0]=e+400;t=new Date(Date.UTC.apply(null,a));if(isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}}else{t=new Date(Date.UTC.apply(null,arguments))}return t}function de(e,t,a){var i=7+t-a,o=(7+se(e,0,i).getUTCDay()-t)%7;return-o+i-1}function ce(e,t,a,i,o){var n=de(e,i,o),r=1+7*(t-1)+(7+a-i)%7+n,l,s;if(0>=r){l=e-1;s=X(l)+r}else if(r>X(e)){l=e+1;s=r-X(e)}else{l=e;s=r}return{year:l,dayOfYear:s}}function he(e,t,a){var i=de(e.year(),t,a),o=Math.floor((e.dayOfYear()-i-1)/7)+1,n,r;if(1>o){r=e.year()-1;n=o+ge(r,t,a)}else if(o>ge(e.year(),t,a)){n=o-ge(e.year(),t,a);r=e.year()+1}else{r=e.year();n=o}return{week:n,year:r}}function ge(e,t,a){var i=de(e,t,a),o=de(e+1,t,a);return(X(e)-i+o)/7}Y("w",["ww",2],"wo","week");Y("W",["WW",2],"Wo","isoWeek");M("week","w");M("isoWeek","W");F("week",5);F("isoWeek",5);B("w",ea);B("ww",ea,Zt);B("W",ea);B("WW",ea,Zt);q(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=w(e)});Y("d",0,"do","day");Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Y("e",0,0,"weekday");Y("E",0,0,"isoWeekday");M("day","d");M("weekday","e");M("isoWeekday","E");F("day",11);F("weekday",11);F("isoWeekday",11);B("d",ea);B("e",ea);B("E",ea);B("dd",function(e,t){return t.weekdaysMinRegex(e)});B("ddd",function(e,t){return t.weekdaysShortRegex(e)});B("dddd",function(e,t){return t.weekdaysRegex(e)});q(["dd","ddd","dddd"],function(e,t,a,i){var o=a._locale.weekdaysParse(e,i,a._strict);if(null!=o){t.d=o}else{f(a).invalidWeekday=e}});q(["d","e","E"],function(e,t,a,i){t[i]=w(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 ue(e,t){if("string"==typeof e){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function pe(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ka=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function fe(e,t,a){var o,n,r,l=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(o=0;7>o;++o){r=u([2e3,1]).day(o);this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase();this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase();this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase()}}if(a){if("dddd"===t){n=ba.call(this._weekdaysParse,l);return-1!==n?n:null}else if("ddd"===t){n=ba.call(this._shortWeekdaysParse,l);return-1!==n?n:null}else{n=ba.call(this._minWeekdaysParse,l);return-1!==n?n:null}}else{if("dddd"===t){n=ba.call(this._weekdaysParse,l);if(-1!==n){return n}n=ba.call(this._shortWeekdaysParse,l);if(-1!==n){return n}n=ba.call(this._minWeekdaysParse,l);return-1!==n?n:null}else if("ddd"===t){n=ba.call(this._shortWeekdaysParse,l);if(-1!==n){return n}n=ba.call(this._weekdaysParse,l);if(-1!==n){return n}n=ba.call(this._minWeekdaysParse,l);return-1!==n?n:null}else{n=ba.call(this._minWeekdaysParse,l);if(-1!==n){return n}n=ba.call(this._weekdaysParse,l);if(-1!==n){return n}n=ba.call(this._shortWeekdaysParse,l);return-1!==n?n:null}}}function ye(){function e(e,t){return t.length-e.length}var t=[],a=[],o=[],n=[],r,l,s,d,c;for(r=0;7>r;r++){l=u([2e3,1]).day(r);s=this.weekdaysMin(l,"");d=this.weekdaysShort(l,"");c=this.weekdays(l,"");t.push(s);a.push(d);o.push(c);n.push(s);n.push(d);n.push(c)}t.sort(e);a.sort(e);o.sort(e);n.sort(e);for(r=0;7>r;r++){a[r]=j(a[r]);o[r]=j(o[r]);n[r]=j(n[r])}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}Y("H",["HH",2],0,"hour");Y("h",["hh",2],0,be);Y("k",["kk",2],0,function(){return this.hours()||24});Y("hmm",0,0,function(){return""+be.apply(this)+E(this.minutes(),2)});Y("hmmss",0,0,function(){return""+be.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)});Y("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)});Y("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)});function xe(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xe("a",!0);xe("A",!1);M("hour","h");F("hour",13);function _e(e,t){return t._meridiemParse}B("a",_e);B("A",_e);B("H",ea);B("h",ea);B("k",ea);B("HH",ea,Zt);B("hh",ea,Zt);B("kk",ea,Zt);B("hmm",ta);B("hmmss",aa);B("Hmm",ta);B("Hmmss",aa);G(["H","HH"],ma);G(["k","kk"],function(e,t){var a=w(e);t[ma]=24===a?0:a});G(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e);a._meridiem=e});G(["h","hh"],function(e,t,a){t[ma]=w(e);f(a).bigHour=!0});G("hmm",function(e,t,a){var i=e.length-2;t[ma]=w(e.substr(0,i));t[ua]=w(e.substr(i));f(a).bigHour=!0});G("hmmss",function(e,t,a){var i=e.length-4,o=e.length-2;t[ma]=w(e.substr(0,i));t[ua]=w(e.substr(i,2));t[pa]=w(e.substr(o));f(a).bigHour=!0});G("Hmm",function(e,t){var a=e.length-2;t[ma]=w(e.substr(0,a));t[ua]=w(e.substr(a))});G("Hmmss",function(e,t){var a=e.length-4,i=e.length-2;t[ma]=w(e.substr(0,a));t[ua]=w(e.substr(a,2));t[pa]=w(e.substr(i))});var va=J("Hours",!0),wa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:_a,week:{dow:0,doy:6},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekdaysShort:ka,meridiemParse:/[ap]\.?m?\.?/i},Sa={},Da={},Ca;function ke(e){return e?e.toLowerCase().replace("_","-"):e}function ve(e){var t=0,a,o,n,r;while(t=a&&S(r,o,!0)>=a-1){break}a--}t++}return Ca}function we(a){var i=null;if(!Sa[a]&&!0&&t&&t.exports){try{i=Ca._abbr;e("./locale/"+a);Se(i)}catch(t){}}return Sa[a]}function Se(e,t){var a;if(e){if(l(t)){a=Ce(e)}else{a=De(e,t)}if(a){Ca=a}else{if("undefined"!=typeof console&&console.warn){console.warn("Locale "+e+" not found. Did you forget to load it?")}}}return Ca._abbr}function De(e,t){if(null!==t){var a,i=wa;t.abbr=e;if(null!=Sa[e]){P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");i=Sa[e]._config}else if(null!=t.parentLocale){if(null!=Sa[t.parentLocale]){i=Sa[t.parentLocale]._config}else{a=we(t.parentLocale);if(null!=a){i=a._config}else{if(!Da[t.parentLocale]){Da[t.parentLocale]=[]}Da[t.parentLocale].push({name:e,config:t});return null}}}Sa[e]=new A(O(i,t));if(Da[e]){Da[e].forEach(function(e){De(e.name,e.config)})}Se(e);return Sa[e]}else{delete Sa[e];return null}}function Ce(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return Ca}if(!o(e)){t=we(e);if(t){return t}e=[e]}return ve(e)}function Pe(){return Bt(Sa)}function Te(e){var t,i=e._a;if(i&&-2===f(e).overflow){t=0>i[ha]||11i[ga]||i[ga]>ae(i[0],i[ha])?ga:0>i[ma]||24i[ua]||59i[pa]||59i[fa]||999ga)){t=ga}if(f(e)._overflowWeeks&&-1===t){t=7}if(f(e)._overflowWeekday&&-1===t){t=8}f(e).overflow=t}return e}function Oe(e,t,a){if(null!=e){return e}if(null!=t){return t}return a}function Ae(e){var t=new Date(a.now());if(e._useUTC){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]}return[t.getFullYear(),t.getMonth(),t.getDate()]}function Me(e){var t,a,o=[],n,r,l;if(e._d){return}n=Ae(e);if(e._w&&null==e._a[ga]&&null==e._a[ha]){Ie(e)}if(null!=e._dayOfYear){l=Oe(e._a[0],n[0]);if(e._dayOfYear>X(l)||0===e._dayOfYear){f(e)._overflowDayOfYear=!0}a=se(l,0,e._dayOfYear);e._a[ha]=a.getUTCMonth();e._a[ga]=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[ma]&&0===e._a[ua]&&0===e._a[pa]&&0===e._a[fa]){e._nextDay=!0;e._a[ma]=0}e._d=(e._useUTC?se:le).apply(null,o);r=e._useUTC?e._d.getUTCDay():e._d.getDay();if(null!=e._tzm){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[ma]=24}if(e._w&&"undefined"!=typeof e._w.d&&e._w.d!==r){f(e).weekdayMismatch=!0}}function Ie(e){var t,a,i,o,n,r,l,s;t=e._w;if(null!=t.GG||null!=t.W||null!=t.E){n=1;r=4;a=Oe(t.GG,e._a[0],he(Xe(),1,4).year);i=Oe(t.W,1);o=Oe(t.E,1);if(1>o||7o||6t.e||6i||i>ge(a,n,r)){f(e)._overflowWeeks=!0}else if(null!=s){f(e)._overflowWeekday=!0}else{l=ce(a,i,o,n,r);e._a[0]=l.year;e._dayOfYear=l.dayOfYear}}var Pa=[["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}/]],Ta=[["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/]];function Le(e){var t,a,o=e._i,n=/^\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)?)?$/.exec(o)||/^\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)?)?$/.exec(o),r,s,d,c;if(n){f(e).iso=!0;for(t=0,a=Pa.length;t=t){return 2e3+t}else if(999>=t){return 1900+t}return t}function Ee(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ye(e,t,a){if(e){var i=ka.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(i!==o){f(a).weekdayMismatch=!0;a._isValid=!1;return!1}}return!0}var Oa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function We(e,t,a){if(e){return Oa[e]}else if(t){return 0}else{var i=parseInt(a,10),o=i%100;return 60*((i-o)/100)+o}}function ze(e){var t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/.exec(Ee(e._i));if(t){var a=Fe(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Ye(t[1],a,e)){return}e._a=a;e._tzm=We(t[8],t[9],t[10]);e._d=se.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);f(e).rfc2822=!0}else{e._isValid=!1}}function Ve(e){var t=/^\/?Date\((\-?\d+)/i.exec(e._i);if(null!==t){e._d=new Date(+t[1]);return}Le(e);if(!1===e._isValid){delete e._isValid}else{return}ze(e);if(!1===e._isValid){delete e._isValid}else{return}a.createFromInputFallback(e)}a.createFromInputFallback=C("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":""))});a.ISO_8601=function(){};a.RFC_2822=function(){};function He(e){if(e._f===a.ISO_8601){Le(e);return}if(e._f===a.RFC_2822){ze(e);return}e._a=[];f(e).empty=!0;var t=""+e._i,o,n,r,l,s,d=t.length,c=0;r=H(e._f,e._locale).match(jt)||[];for(o=0;o=e._a[ma]&&!0===f(e).bigHour&&0t){t+=12}if(!i&&12===t){t=0}return t}else{return t}}function Ne(e){var t,a,o,n,r;if(0===e._f.length){f(e).invalidFormat=!0;e._d=new Date(NaN);return}for(n=0;nthis?this:e}else{return b()}});function Ze(e,t){var a,n;if(1===t.length&&o(t[0])){t=t[0]}if(!t.length){return Xe()}a=t[0];for(n=1;ne){return-1*Math.round(-1*e)}else{return Math.round(e)}}function tt(e,t){Y(e,0,0,function(){var e=this.utcOffset(),a="+";if(0>e){e=-e;a="-"}return a+E(~~(e/60),2)+t+E(~~e%60,2)})}tt("Z",":");tt("ZZ","");B("Z",la);B("ZZ",la);G(["Z","ZZ"],function(e,t,a){a._useUTC=!0;a._tzm=at(la,e)});function at(e,t){var a=(t||"").match(e);if(null===a){return null}var i=a[a.length-1]||[],o=(i+"").match(/([\+\-]|\d\d)/gi)||["-",0,0],n=+(60*o[1])+w(o[2]);return 0===n?0:"+"===o[0]?n:-n}function it(e,t){var i,o;if(t._isUTC){i=t.clone();o=(k(e)||d(e)?e.valueOf():Xe(e).valueOf())-i.valueOf();i._d.setTime(i._d.valueOf()+o);a.updateOffset(i,!1);return i}else{return Xe(e).local()}}function ot(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}a.updateOffset=function(){};function nt(){return this.isValid()?this._isUTC&&0===this._offset:!1}function rt(e,t){var a=e,i=null,o,n,r;if($e(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(!!(i=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/.exec(e))){o="-"===i[1]?-1:1;a={y:0,d:w(i[ga])*o,h:w(i[ma])*o,m:w(i[ua])*o,s:w(i[pa])*o,ms:w(et(1e3*i[fa]))*o}}else if(!!(i=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/.exec(e))){o="-"===i[1]?-1:1;a={y:lt(i[2],o),M:lt(i[3],o),w:lt(i[4],o),d:lt(i[5],o),h:lt(i[6],o),m:lt(i[7],o),s:lt(i[8],o)}}else if(null==a){a={}}else if("object"===_typeof(a)&&("from"in a||"to"in a)){r=dt(Xe(a.from),Xe(a.to));a={};a.ms=r.milliseconds;a.M=r.months}n=new Qe(a);if($e(e)&&h(e,"_locale")){n._locale=e._locale}return n}rt.fn=Qe.prototype;rt.invalid=function(){return rt(NaN)};function lt(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function st(e,t){var a={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 dt(e,t){var a;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=it(t,e);if(e.isBefore(t)){a=st(e,t)}else{a=st(t,e);a.milliseconds=-a.milliseconds;a.months=-a.months}return a}function ct(e,t){return function(a,i){var o,n;if(null!==i&&!isNaN(+i)){P(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=i;i=n}a="string"==typeof a?+a:a;o=rt(a,i);ht(this,o,e);return this}}function ht(e,t,i,o){var n=t._milliseconds,r=et(t._days),l=et(t._months);if(!e.isValid()){return}o=null==o?!0:o;if(l){oe(e,Q(e,"Month")+l*i)}if(r){$(e,"Date",Q(e,"Date")+r*i)}if(n){e._d.setTime(e._d.valueOf()+n*i)}if(o){a.updateOffset(e,r||l)}}var La=ct(1,"add"),Fa=ct(-1,"subtract");function gt(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(a,"months"),o,n;if(0>t-i){o=e.clone().add(a-1,"months");n=(t-i)/(i-o)}else{o=e.clone().add(a+1,"months");n=(t-i)/(o-i)}return-(a+n)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mt(e){var t;if(e===void 0){return this._locale._abbr}else{t=Ce(e);if(null!=t){this._locale=t}return this}}var Ra=C("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 ut(){return this._locale}var Ea=60000,Ya=60*Ea,Wa=3506328*Ya;function pt(e,t){return(e%t+t)%t}function ft(e,t,a){if(100>e&&0<=e){return new Date(e+400,t,a)-Wa}else{return new Date(e,t,a).valueOf()}}function yt(e,t,a){if(100>e&&0<=e){return Date.UTC(e+400,t,a)-Wa}else{return Date.UTC(e,t,a)}}Y(0,["gg",2],0,function(){return this.weekYear()%100});Y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bt(e,t){Y(0,[e,e.length],0,t)}bt("gggg","weekYear");bt("ggggg","weekYear");bt("GGGG","isoWeekYear");bt("GGGGG","isoWeekYear");M("weekYear","gg");M("isoWeekYear","GG");F("weekYear",1);F("isoWeekYear",1);B("G",ra);B("g",ra);B("GG",ea,Zt);B("gg",ea,Zt);B("GGGG",oa,Qt);B("gggg",oa,Qt);B("GGGGG",na,$t);B("ggggg",na,$t);q(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,i){t[i.substr(0,2)]=w(e)});q(["gg","GG"],function(e,t,i,o){t[o]=a.parseTwoDigitYear(e)});function xt(e,t,a,i,o){var n;if(null==e){return he(this,i,o).year}else{n=ge(e,i,o);if(t>n){t=n}return _t.call(this,e,t,a,i,o)}}function _t(e,t,a,i,o){var n=ce(e,t,a,i,o),r=se(n.year,0,n.dayOfYear);this.year(r.getUTCFullYear());this.month(r.getUTCMonth());this.date(r.getUTCDate());return this}Y("Q",0,"Qo","quarter");M("quarter","Q");F("quarter",7);B("Q",Xt);G("Q",function(e,t){t[ha]=3*(w(e)-1)});Y("D",["DD",2],"Do","date");M("date","D");F("date",9);B("D",ea);B("DD",ea,Zt);B("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});G(["D","DD"],ga);G("Do",function(e,t){t[ga]=w(e.match(ea)[0])});var za=J("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear");M("dayOfYear","DDD");F("dayOfYear",4);B("DDD",ia);B("DDDD",Jt);G(["DDD","DDDD"],function(e,t,a){a._dayOfYear=w(e)});Y("m",["mm",2],0,"minute");M("minute","m");F("minute",14);B("m",ea);B("mm",ea,Zt);G(["m","mm"],ua);var Va=J("Minutes",!1);Y("s",["ss",2],0,"second");M("second","s");F("second",15);B("s",ea);B("ss",ea,Zt);G(["s","ss"],pa);var Ha=J("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)});Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Y(0,["SSS",3],0,"millisecond");Y(0,["SSSS",4],0,function(){return 10*this.millisecond()});Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()});Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()});Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()});Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()});Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()});M("millisecond","ms");F("millisecond",16);B("S",ia,Xt);B("SS",ia,Zt);B("SSS",ia,Jt);var Ba;for(Ba="SSSS";9>=Ba.length;Ba+="S"){B(Ba,/\d+/)}function kt(e,t){t[fa]=w(1e3*("0."+e))}for(Ba="S";9>=Ba.length;Ba+="S"){G(Ba,kt)}var Na=J("Milliseconds",!1);Y("z",0,0,"zoneAbbr");Y("zz",0,0,"zoneName");var Ua=_.prototype;Ua.add=La;Ua.calendar=function(e,t){var i=e||Xe(),o=it(i,this).startOf("day"),n=a.calendarFormat(this,o)||"sameElse",r=t&&(T(t[n])?t[n].call(this,i):t[n]);return this.format(r||this.localeData().calendar(n,this,Xe(i)))};Ua.clone=function(){return new _(this)};Ua.diff=function(e,t,a){var i,o,n;if(!this.isValid()){return NaN}i=it(e,this);if(!i.isValid()){return NaN}o=6e4*(i.utcOffset()-this.utcOffset());t=I(t);switch(t){case"year":n=gt(this,i)/12;break;case"month":n=gt(this,i);break;case"quarter":n=gt(this,i)/3;break;case"second":n=(this-i)/1e3;break;case"minute":n=(this-i)/6e4;break;case"hour":n=(this-i)/36e5;break;case"day":n=(this-i-o)/864e5;break;case"week":n=(this-i-o)/6048e5;break;default:n=this-i;}return a?n:v(n)};Ua.endOf=function(e){var t;e=I(e);if(e===void 0||"millisecond"===e||!this.isValid()){return this}var i=this._isUTC?yt:ft;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=Ya-pt(t+(this._isUTC?0:this.utcOffset()*Ea),Ya)-1;break;case"minute":t=this._d.valueOf();t+=Ea-pt(t,Ea)-1;break;case"second":t=this._d.valueOf();t+=1000-pt(t,1000)-1;break;}this._d.setTime(t);a.updateOffset(this,!0);return this};Ua.format=function(e){if(!e){e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat}var t=V(this,e);return this.localeData().postformat(t)};Ua.from=function(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Xe(e).isValid())){return rt({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}};Ua.fromNow=function(e){return this.from(Xe(),e)};Ua.to=function(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Xe(e).isValid())){return rt({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}};Ua.toNow=function(e){return this.to(Xe(),e)};Ua.get=function(e){e=I(e);if(T(this[e])){return this[e]()}return this};Ua.invalidAt=function(){return f(this).overflow};Ua.isAfter=function(e,t){var a=k(e)?e:Xe(e);if(!(this.isValid()&&a.isValid())){return!1}t=I(t)||"millisecond";if("millisecond"===t){return this.valueOf()>a.valueOf()}else{return a.valueOf()a.year()||9999=this.year()?"YYYY":"YYYYYY",o=t+"[\")]";return this.format(a+i+"-MM-DD[T]HH:mm:ss.SSS"+o)};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=ya;Ua.isLeapYear=function(){return Z(this.year())};Ua.weekYear=function(e){return xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};Ua.isoWeekYear=function(e){return xt.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=ne;Ua.daysInMonth=function(){return ae(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=he(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=za;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=ue(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=va;Ua.minute=Ua.minutes=Va;Ua.second=Ua.seconds=Ha;Ua.millisecond=Ua.milliseconds=Na;Ua.utcOffset=function(e,t,i){var o=this._offset||0,n;if(!this.isValid()){return null!=e?this:NaN}if(null!=e){if("string"==typeof e){e=at(la,e);if(null===e){return this}}else if(16>Math.abs(e)&&!i){e=60*e}if(!this._isUTC&&t){n=ot(this)}this._offset=e;this._isUTC=!0;if(null!=n){this.add(n,"m")}if(o!==e){if(!t||this._changeInProgress){ht(this,rt(e-o,"m"),1,!1)}else if(!this._changeInProgress){this._changeInProgress=!0;a.updateOffset(this,!0);this._changeInProgress=null}}return this}else{return this._isUTC?o:ot(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(ot(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=at(/Z|[+-]\d\d:?\d\d/gi,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?Xe(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=nt;Ua.isUTC=nt;Ua.zoneAbbr=function(){return this._isUTC?"UTC":""};Ua.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};Ua.dates=C("dates accessor is deprecated. Use date instead.",za);Ua.months=C("months accessor is deprecated. Use month instead",ne);Ua.years=C("years accessor is deprecated. Use year instead",ya);Ua.zone=C("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=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted)){return this._isDSTShifted}var e={};x(e,this);e=Ge(e);if(e._a){var t=e._isUTC?u(e._a):Xe(e._a);this._isDSTShifted=this.isValid()&&0o;o++){n=u([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]){r="^"+this.months(n,"")+"|^"+this.monthsShort(n,"");this._monthsParse[o]=new RegExp(r.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")){re.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!h(this,"_monthsRegex")){this._monthsRegex=sa}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}};ja.monthsShortRegex=function(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){re.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!h(this,"_monthsShortRegex")){this._monthsShortRegex=sa}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}};ja.week=function(e){return he(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){var a=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?pe(a,this._week.dow):e?a[e.day()]:a};ja.weekdaysMin=function(e){return!0===e?pe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin};ja.weekdaysShort=function(e){return!0===e?pe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort};ja.weekdaysParse=function(e,t,a){var o,n,r;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=u([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]){r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,"");this._weekdaysParse[o]=new RegExp(r.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=sa}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=sa}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=sa}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]=wt(e,o,a,"month")}return n}function Dt(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(),r=e?n._week.dow:0;if(null!=a){return wt(t,(a+r)%7,o,"day")}var l,d=[];for(l=0;7>l;l++){d[l]=wt(t,(l+r)%7,o,"day")}return d}Se("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function ordinal(e){var t=e%10,a=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}});a.lang=C("moment.lang is deprecated. Use moment.locale instead.",Se);a.langData=C("moment.langData is deprecated. Use moment.localeData instead.",Ce);var Ga=Math.abs;function Ct(e,t,a,i){var o=rt(t,a);e._milliseconds+=i*o._milliseconds;e._days+=i*o._days;e._months+=i*o._months;return e._bubble()}function Pt(e){if(0>e){return Math.floor(e)}else{return Math.ceil(e)}}function Tt(e){return 4800*e/146097}function Ot(e){return 146097*e/4800}function At(e){return function(){return this.as(e)}}var qa=At("ms"),Ka=At("s"),Xa=At("m"),Za=At("h"),Ja=At("d"),Qa=At("w"),$a=At("M"),ei=At("Q"),ti=At("y");function Mt(e){return function(){return this.isValid()?this._data[e]:NaN}}var ai=Mt("milliseconds"),ii=Mt("seconds"),oi=Mt("minutes"),ni=Mt("hours"),ri=Mt("days"),li=Mt("months"),si=Mt("years");var di=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,M:11};function It(e,t,a,i,o){return o.relativeTime(t||1,!!a,e,i)}function Lt(e,t,i){var o=rt(e).abs(),n=di(o.as("s")),r=di(o.as("m")),l=di(o.as("h")),s=di(o.as("d")),d=di(o.as("M")),c=di(o.as("y")),h=n<=ci.ss&&["s",n]||n=r&&["m"]||r=l&&["h"]||l=s&&["d"]||s=d&&["M"]||d=c&&["y"]||["yy",c];h[2]=t;h[3]=0<+e;h[4]=i;return It.apply(null,h)}function Ft(e){if(e===void 0){return di}if("function"==typeof e){di=e;return!0}return!1}var hi=Math.abs;function Rt(e){return(0e)||+e}function Et(){if(!this.isValid()){return this.localeData().invalidDate()}var e=hi(this._milliseconds)/1e3,t=hi(this._days),a=hi(this._months),i,o,n;i=v(e/60);o=v(i/60);e%=60;i%=60;n=v(a/12);a%=12;var r=n,l=a,d=t,c=o,h=i,g=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=this.asSeconds();if(!s){return"P0D"}var m=0>s?"-":"",u=Rt(this._months)!==Rt(s)?"-":"",p=Rt(this._days)!==Rt(s)?"-":"",f=Rt(this._milliseconds)!==Rt(s)?"-":"";return m+"P"+(r?u+r+"Y":"")+(l?u+l+"M":"")+(d?p+d+"D":"")+(c||h||g?"T":"")+(c?f+c+"H":"")+(h?f+h+"M":"")+(g?f+g+"S":"")}var gi=Qe.prototype;gi.isValid=function(){return this._isValid};gi.abs=function(){var e=this._data;this._milliseconds=Ga(this._milliseconds);this._days=Ga(this._days);this._months=Ga(this._months);e.milliseconds=Ga(e.milliseconds);e.seconds=Ga(e.seconds);e.minutes=Ga(e.minutes);e.hours=Ga(e.hours);e.months=Ga(e.months);e.years=Ga(e.years);return this};gi.add=function(e,t){return Ct(this,e,t,1)};gi.subtract=function(e,t){return Ct(this,e,t,-1)};gi.as=function(e){if(!this.isValid()){return NaN}var t,a,i=this._milliseconds;e=I(e);if("month"===e||"quarter"===e||"year"===e){t=this._days+i/864e5;a=this._months+Tt(t);switch(e){case"month":return a;case"quarter":return a/3;case"year":return a/12;}}else{t=this._days+Math.round(Ot(this._months));switch(e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e);}}};gi.asMilliseconds=qa;gi.asSeconds=Ka;gi.asMinutes=Xa;gi.asHours=Za;gi.asDays=Ja;gi.asWeeks=Qa;gi.asMonths=$a;gi.asQuarters=ei;gi.asYears=ti;gi.valueOf=function(){if(!this.isValid()){return NaN}return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*w(this._months/12)};gi._bubble=function(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,o,n,r,l,s;if(!(0<=e&&0<=t&&0<=a||0>=e&&0>=t&&0>=a)){e+=864e5*Pt(Ot(a)+t);t=0;a=0}i.milliseconds=e%1e3;o=v(e/1e3);i.seconds=o%60;n=v(o/60);i.minutes=n%60;r=v(n/60);i.hours=r%24;t+=v(r/24);s=v(Tt(t));a+=s;t-=Pt(Ot(s));l=v(a/12);a%=12;i.days=t;i.months=a;i.years=l;return this};gi.clone=function(){return rt(this)};gi.get=function(e){e=I(e);return this.isValid()?this[e+"s"]():NaN};gi.milliseconds=ai;gi.seconds=ii;gi.minutes=oi;gi.hours=ni;gi.days=ri;gi.weeks=function(){return v(this.days()/7)};gi.months=li;gi.years=si;gi.humanize=function(e){if(!this.isValid()){return this.localeData().invalidDate()}var t=this.localeData(),a=Lt(this,!e,t);if(e){a=t.pastFuture(+this,a)}return t.postformat(a)};gi.toISOString=Et;gi.toString=Et;gi.toJSON=Et;gi.locale=mt;gi.localeData=ut;gi.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Et);gi.lang=Ra;Y("X",0,0,"unix");Y("x",0,0,"valueOf");B("x",ra);B("X",/[+-]?\d+(\.\d{1,3})?/);G("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))});G("x",function(e,t,a){a._d=new Date(w(e))});a.version="2.24.0";(function(e){Yt=e})(Xe);a.fn=Ua;a.min=function(){var e=[].slice.call(arguments,0);return Ze("isBefore",e)};a.max=function(){var e=[].slice.call(arguments,0);return Ze("isAfter",e)};a.now=function now(){return Date.now?Date.now():+new Date};a.utc=u;a.unix=function(e){return Xe(1e3*e)};a.months=function(e,t){return St(e,t,"months")};a.isDate=d;a.locale=Se;a.invalid=b;a.duration=rt;a.isMoment=k;a.weekdays=function(e,t,a){return Dt(e,t,a,"weekdays")};a.parseZone=function(){return Xe.apply(null,arguments).parseZone()};a.localeData=Ce;a.isDuration=$e;a.monthsShort=function(e,t){return St(e,t,"monthsShort")};a.weekdaysMin=function(e,t,a){return Dt(e,t,a,"weekdaysMin")};a.defineLocale=De;a.updateLocale=function(e,t){if(null!=t){var a,i,o=wa;i=we(e);if(null!=i){o=i._config}t=O(o,t);a=new A(t);a.parentLocale=Sa[e];Sa[e]=a;Se(e)}else{if(null!=Sa[e]){if(null!=Sa[e].parentLocale){Sa[e]=Sa[e].parentLocale}else if(null!=Sa[e]){delete Sa[e]}}}return Sa[e]};a.locales=Pe;a.weekdaysShort=function(e,t,a){return Dt(e,t,a,"weekdaysShort")};a.normalizeUnits=I;a.relativeTimeRounding=Ft;a.relativeTimeThreshold=function(e,t){if(ci[e]===void 0){return!1}if(t===void 0){return ci[e]}ci[e]=t;if("s"===e){ci.ss=t-1}return!0};a.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"};a.prototype=Ua;a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return a})}),xo={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};zi._date.override("function"==typeof bo?{_id:"moment",formats:function formats(){return xo},parse:function(e,t){if("string"==typeof e&&"string"==typeof t){e=bo(e,t)}else if(!(e instanceof bo)){e=bo(e)}return e.isValid()?e.valueOf():null},format:function format(e,t){return bo(e).format(t)},add:function add(e,t,a){return bo(e).add(t,a).valueOf()},diff:function diff(e,t,a){return bo(e).diff(bo(t),a)},startOf:function startOf(e,t,a){e=bo(e);if("isoWeek"===t){return e.isoWeekday(a).valueOf()}return e.startOf(t).valueOf()},endOf:function endOf(e,t){return bo(e).endOf(t).valueOf()},_create:function _create(e){return bo(e)}}:{});_a._set("global",{plugins:{filler:{propagate:!0}}});var _o={dataset:function dataset(e){var t=e.fill,a=e.chart,i=a.getDatasetMeta(t),o=i&&a.isDatasetVisible(t),n=o&&i.dataset._children||[],r=n.length||0;return!r?null:function(e,t){return tn||n>=a){return!1}return n}switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1;}}function Tt(e){var t=e.el._model||{},a=e.el._scale||{},i=e.fill,o=null,n;if(isFinite(i)){return null}if("start"===i){o=t.scaleBottom===void 0?a.bottom:t.scaleBottom}else if("end"===i){o=t.scaleTop===void 0?a.top:t.scaleTop}else if(t.scaleZero!==void 0){o=t.scaleZero}else if(a.getBasePixel){o=a.getBasePixel()}if(o!==void 0&&null!==o){if(o.x!==void 0&&o.y!==void 0){return o}if(Da.isFinite(o)){n=a.isHorizontal();return{x:n?o:null,y:n?null:o}}}return null}function Ot(e){var t=e.el._scale,a=t.options,o=t.chart.data.labels.length,n=e.fill,r=[],l,s,d,c,h;if(!o){return null}l=a.ticks.reverse?t.max:t.min;s=a.ticks.reverse?t.min:t.max;d=t.getPointPositionForValue(0,l);for(c=0;ct?t:e.boxWidth}var So=Pa.extend({initialize:function initialize(e){var t=this;Da.extend(t,e);t.legendHitBoxes=[];t._hoveredItem=null;t.doughnutMode=!1},beforeUpdate:vo,update:function update(e,t,a){var i=this;i.beforeUpdate();i.maxWidth=e;i.maxHeight=t;i.margins=a;i.beforeSetDimensions();i.setDimensions();i.afterSetDimensions();i.beforeBuildLabels();i.buildLabels();i.afterBuildLabels();i.beforeFit();i.fit();i.afterFit();i.afterUpdate();return i.minSize},afterUpdate:vo,beforeSetDimensions:vo,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:vo,beforeBuildLabels:vo,buildLabels:function buildLabels(){var e=this,t=e.options.labels||{},a=Da.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:vo,beforeFit:vo,fit:function fit(){var e=this,t=e.options,a=t.labels,i=t.display,o=e.ctx,n=Da.options._parseFont(a),r=n.size,l=e.legendHitBoxes=[],s=e.minSize,d=e.isHorizontal();if(d){s.width=e.maxWidth;s.height=i?10:0}else{s.width=i?10:0;s.height=e.maxHeight}if(!i){e.width=s.width=e.height=s.height=0;return}o.font=n.string;if(d){var c=e.lineWidths=[0],h=0;o.textAlign="left";o.textBaseline="middle";Da.each(e.legendItems,function(e,t){var i=Et(a,r),n=i+r/2+o.measureText(e.text).width;if(0===t||c[c.length-1]+n+2*a.padding>s.width){h+=r+a.padding;c[c.length-(0s.height){p+=f+a.padding;m.push(f);u.push(y);f=0;y=0}f=Math.max(f,n);y+=r+g;l[t]={left:0,top:0,width:n,height:r}});p+=f;m.push(f);u.push(y);s.width+=p}e.width=s.width;e.height=s.height},afterFit:vo,isHorizontal:function isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position},draw:function draw(){var e=this,t=e.options,a=t.labels,i=_a.global,o=i.defaultColor,n=i.elements.line,r=e.height,l=e.columnHeights,s=e.width,d=e.lineWidths;if(!t.display){return}var c=ko(t.rtl,e.left,e.minSize.width),h=e.ctx,g=wo(a.fontColor,i.defaultFontColor),m=Da.options._parseFont(a),u=m.size,p;h.textAlign=c.textAlign("left");h.textBaseline="middle";h.lineWidth=.5;h.strokeStyle=g;h.fillStyle=g;h.font=m.string;var f=Et(a,u),b=e.legendHitBoxes,_=function(e,t,i){if(isNaN(f)||0>=f){return}h.save();var r=wo(i.lineWidth,n.borderWidth);h.fillStyle=wo(i.fillStyle,o);h.lineCap=wo(i.lineCap,n.borderCapStyle);h.lineDashOffset=wo(i.lineDashOffset,n.borderDashOffset);h.lineJoin=wo(i.lineJoin,n.borderJoinStyle);h.lineWidth=r;h.strokeStyle=wo(i.strokeStyle,o);if(h.setLineDash){h.setLineDash(wo(i.lineDash,n.borderDash))}if(a&&a.usePointStyle){var l=f*Math.SQRT2/2,s=c.xPlus(e,f/2);Da.canvas.drawPoint(h,i.pointStyle,l,s,t+u/2,i.rotation)}else{h.fillRect(c.leftForLtr(e,f),t,f,u);if(0!==r){h.strokeRect(c.leftForLtr(e,f),t,f,u)}}h.restore()},k=function(e,t,a,i){var o=u/2,n=c.xPlus(e,f+o),r=t+o;h.fillText(a.text,n,r);if(a.hidden){h.beginPath();h.lineWidth=2;h.moveTo(n,r);h.lineTo(c.xPlus(n,i),r);h.stroke()}},v=function(e,i){switch(t.align){case"start":return a.padding;case"end":return e-i;default:return(e-i+a.padding)/2;}},w=e.isHorizontal();if(w){p={x:e.left+v(s,d[0]),y:e.top+a.padding,line:0}}else{p={x:e.left+a.padding,y:e.top+v(r,l[0]),line:0}}Da.rtl.overrideTextDirection(e.ctx,t.textDirection);var S=u+a.padding;Da.each(e.legendItems,function(t,o){var i=h.measureText(t.text).width,n=f+u/2+i,g=p.x,m=p.y;c.setWidth(e.minSize.width);if(w){if(0e.left+e.minSize.width){m=p.y+=S;p.line++;g=p.x=e.left+v(s,d[p.line])}}else if(0e.top+e.minSize.height){g=p.x=g+e.columnWidths[p.line]+a.padding;p.line++;m=p.y=e.top+v(r,l[p.line])}var D=c.x(g);_(D,m,t);b[o].left=c.leftForLtr(D,b[o].width);b[o].top=m;k(D,m,t,i);if(w){p.x+=n+a.padding}else{p.y+=S}});Da.rtl.restoreTextDirection(e.ctx,t.textDirection)},_getLegendItemAt:function _getLegendItemAt(e,t){var a=this,o,n,r;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom){r=a.legendHitBoxes;for(o=0;o=n.left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height){return a.legendItems[o]}}}return null},handleEvent:function handleEvent(t){var e=this,a=e.options,i="mouseup"===t.type?"click":t.type,o;if("mousemove"===i){if(!a.onHover&&!a.onLeave){return}}else if("click"===i){if(!a.onClick){return}}else{return}o=e._getLegendItemAt(t.x,t.y);if("click"===i){if(o&&a.onClick){a.onClick.call(e,t.native,o)}}else{if(a.onLeave&&o!==e._hoveredItem){if(e._hoveredItem){a.onLeave.call(e,t.native,e._hoveredItem)}e._hoveredItem=o}if(a.onHover&&o){a.onHover.call(e,t.native,o)}}}});function Yt(e,t){var a=new So({ctx:e.ctx,options:t,chart:e});pi.configure(e,a,t);pi.addBox(e,a);e.legend=a}var Do=Da.noop;_a._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Co=Pa.extend({initialize:function initialize(e){var t=this;Da.extend(t,e);t.legendHitBoxes=[]},beforeUpdate:Do,update:function update(e,t,a){var i=this;i.beforeUpdate();i.maxWidth=e;i.maxHeight=t;i.margins=a;i.beforeSetDimensions();i.setDimensions();i.afterSetDimensions();i.beforeBuildLabels();i.buildLabels();i.afterBuildLabels();i.beforeFit();i.fit();i.afterFit();i.afterUpdate();return i.minSize},afterUpdate:Do,beforeSetDimensions:Do,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:Do,beforeBuildLabels:Do,buildLabels:Do,afterBuildLabels:Do,beforeFit:Do,fit:function fit(){var e=this,t=e.options,a=e.minSize={},i=e.isHorizontal(),o,n;if(!t.display){e.width=a.width=e.height=a.height=0;return}o=Da.isArray(t.text)?t.text.length:1;n=o*Da.options._parseFont(t).lineHeight+2*t.padding;e.width=a.width=i?e.maxWidth:n;e.height=a.height=i?n:e.maxHeight},afterFit:Do,isHorizontal:function isHorizontal(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function draw(){var e=this,t=e.ctx,a=e.options;if(!a.display){return}var o=Da.options._parseFont(a),n=o.lineHeight,r=n/2+a.padding,l=0,s=e.top,d=e.left,c=e.bottom,h=e.right,g,m,u;t.fillStyle=Da.valueOrDefault(a.fontColor,_a.global.defaultFontColor);t.font=o.string;if(e.isHorizontal()){m=d+(h-d)/2;u=s+r;g=h-d}else{m="left"===a.position?d+r:h-r;u=s+(c-s)/2;g=c-s;l=Math.PI*("left"===a.position?-.5:.5)}t.save();t.translate(m,u);t.rotate(l);t.textAlign="center";t.textBaseline="middle";var p=a.text;if(Da.isArray(p)){for(var f=0,b=0;b=e};Da.max=function(e){return e.reduce(function(e,t){if(!isNaN(t)){return Math.max(e,t)}return e},Number.NEGATIVE_INFINITY)};Da.min=function(e){return e.reduce(function(e,t){if(!isNaN(t)){return Math.min(e,t)}return e},Number.POSITIVE_INFINITY)};Da.sign=Math.sign?function(e){return Math.sign(e)}:function(e){e=+e;if(0===e||isNaN(e)){return e}return 0=g){continue}h=3/Math.sqrt(g);r.mK=d*h*r.deltaK;l.mK=c*h*r.deltaK}var m;for(o=0;o=e.length-1?e[0]:e[t+1]}return t>=e.length-1?e[e.length-1]:e[t+1]};Da.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]};Da.niceNum=function(e,t){var a=Math.floor(Da.log10(e)),i=e/Math.pow(10,a),o;if(t){if(1.5>i){o=1}else if(3>i){o=2}else if(7>i){o=5}else{o=10}}else if(1>=i){o=1}else if(2>=i){o=2}else if(5>=i){o=5}else{o=10}return o*Math.pow(10,a)};Da.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)}}();Da.getRelativePosition=function(t,a){var i,o,n=t.originalEvent||t,e=t.target||t.srcElement,r=e.getBoundingClientRect(),l=n.touches;if(l&&0a.length){for(d=0;di){i=n}return i};Da.numberOfLabelLines=function(e){var t=1;Da.each(e,function(e){if(Da.isArray(e)){if(e.length>t){t=e.length}}});return t};Da.color=!ha?function(e){console.error("Color.js not found!");return e}:function(e){if(e instanceof CanvasGradient){e=_a.global.defaultColor}return ha(e)};Da.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Da.color(e).saturate(.5).darken(.1).rgbString()}})();Wi._adapters=zi;Wi.Animation=Oa;Wi.animationService=Aa;Wi.controllers=gi;Wi.DatasetController=Fa;Wi.defaults=_a;Wi.Element=Pa;Wi.elements=ja;Wi.Interaction=mi;Wi.layouts=pi;Wi.platform=Ti;Wi.plugins=Oi;Wi.Scale=Gi;Wi.scaleService=Ai;Wi.Ticks=Vi;Wi.Tooltip=Ri;Wi.helpers.each({category:Ki,linear:$i,logarithmic:io,radialLinear:so,time:yo},function(e,t){Wi.scaleService.registerScaleType(t,e,e._defaults)});for(var To in Po){if(Po.hasOwnProperty(To)){Wi.plugins.register(Po[To])}}Wi.platform.initialize();if("undefined"!=typeof window){window.Chart=Wi}Wi.Chart=Wi;Wi.Legend=Po.legend._element;Wi.Title=Po.title._element;Wi.pluginService=Wi.plugins;Wi.PluginBase=Wi.Element.extend({});Wi.canvasHelpers=Wi.helpers.canvas;Wi.layoutService=Wi.layouts;Wi.LinearScaleBase=Ji;Wi.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){Wi[e]=function(t,a){return new Wi(t,Wi.helpers.merge(a||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}});return Wi}); //# sourceMappingURL=chartjs-lazy.min.js.map