From da05477d54831834e1fc600f6ed6af68c0c4038a Mon Sep 17 00:00:00 2001 From: Eric Lewin Date: Mon, 5 Jun 2023 01:59:30 -0500 Subject: [PATCH] Changes 7 day forecast to 5 day forecast due to new API restrictions --- client/dist/bundle.min.js | 2 +- client/src/AppContext.js | 2 +- client/src/components/weatherCharts/DailyChart/index.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/dist/bundle.min.js b/client/dist/bundle.min.js index 1a334c9..5b73293 100644 --- a/client/dist/bundle.min.js +++ b/client/dist/bundle.min.js @@ -315,4 +315,4 @@ e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月 * (c) 2019 Chart.js Contributors * Released under the MIT License */ -e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={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]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);var i=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 a in i)if(i.hasOwnProperty(a)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=i[a].channels,s=i[a].labels;delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:o}),Object.defineProperty(i[a],"labels",{value:s})}i.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o;return s===o?t=0:r===s?t=(i-a)/l:i===s?t=2+(a-r)/l:a===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},i.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),d=u-Math.min(o,s,l),c=function(e){return(u-e)/6/d+.5};return 0===d?i=a=0:(a=d/u,t=c(o),n=c(s),r=c(l),o===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*u]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var r=n[e];if(r)return r;var i,a,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var u=t[l],d=(a=e,o=u,Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));d.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=o+1/3*-(u-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*a;return i},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=a<=1?a:2-a,[t,100*(0===r?2*i/(a+i):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){var t,n,r,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[i,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},i.hwb.rgb=function(e){var t,n,r,i,a,o,s,l=e[0]/360,u=e[1]/100,d=e[2]/100,c=u+d;switch(c>1&&(u/=c,d/=c),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=u+r*((n=1-d)-u),t){default:case 6:case 0:a=n,o=i,s=u;break;case 1:a=i,o=n,s=u;break;case 2:a=u,o=n,s=i;break;case 3:a=u,o=i,s=n;break;case 4:a=i,o=u,s=n;break;case 5:a=n,o=u,s=i}return[255*a,255*o,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},i.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},i.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.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 n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(Math.max(n,r),i),o=Math.min(Math.min(n,r),i),s=a-o;return t=s<=0?0:a===n?(r-i)/s%6:a===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,a=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return i=(1-n)*r,[255*(n*a[0]+i),255*(n*a[1]+i),255*(n*a[2]+i)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function r(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,i=0;i1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var s=o,l={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]},u={getRgba:d,getHsla:c,getRgb:function(e){var t=d(e);return t&&t.slice(0,3)},getHsl:function(e){var t=c(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=d(e);return t||(t=c(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+g(e[0])+g(e[1])+g(e[2])+(t>=0&&t<1?g(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:m,hslString:function(e,t){return t<1||e[3]&&e[3]<1?_(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:_,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return y[e.slice(0,3)]}};function d(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var a=0;an?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,i=2*r-1,a=this.alpha()-n.alpha(),o=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new b,r=this.values,i=n.values;for(var a in r)r.hasOwnProperty(a)&&(e=r[a],"[object Array]"===(t={}.toString.call(e))?i[a]=e.slice(0):"[object Number]"===t?i[a]=e:console.error("unexpected color value:",e));return n}},b.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;i--)t.call(n,e[i],i);else for(i=0;i=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-x.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*x.easeInBounce(2*e):.5*x.easeOutBounce(2*e-1)+.5}},T={effects:x};k.easingEffects=x;var Y=Math.PI,D=Y/180,S=2*Y,P=Y/2,E=Y/4,C=2*Y/3,j={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,a){if(a){var o=Math.min(a,i/2,r/2),s=t+o,l=n+o,u=t+r-o,d=n+i-o;e.moveTo(t,l),st.left-1e-6&&e.xt.top-1e-6&&e.y0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,i=this.animations,a=0;a=n?(F.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(a,1)):++a}},Q=F.options.resolve,X=["push","pop","shift","splice","unshift"];function ee(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(X.forEach((function(t){delete e[t]})),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};F.extend(te.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,r=this.getDataset(),i=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!r.xAxisID||(e.xAxisID=r.xAxisID||i.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!r.yAxisID||(e.yAxisID=r.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ee(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(e=0,t=r.length;en&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;ni?(a=i/t.innerRadius,e.arc(o,s,t.innerRadius-i,r+a,n-a,!0)):e.arc(o,s,i,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,r){var i,a=n.endAngle;for(r&&(n.endAngle=n.startAngle+re,ie(e,n),n.endAngle=a,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),i=0;is;)i-=re;for(;i=o&&i<=s,u=a>=n.innerRadius&&a<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){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(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+re,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;ee.x&&(t=ge(t,"left","right")):e.basen?n:r,r:l.right||i<0?0:i>t?t:i,b:l.bottom||a<0?0:a>n?n:a,l:l.left||o<0?0:o>t?t:o}}function ve(e,t,n){var r=null===t,i=null===n,a=!(!e||r&&i)&&pe(e);return a&&(r||t>=a.left&&t<=a.right)&&(i||n>=a.top&&n<=a.bottom)}A._set("global",{elements:{rectangle:{backgroundColor:me,borderColor:me,borderSkipped:"bottom",borderWidth:0}}});var be=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=pe(e),n=t.right-t.left,r=t.bottom-t.top,i=ye(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(t),r=n.outer,i=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return ve(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return _e(n)?ve(n,e,null):ve(n,null,t)},inXRange:function(e){return ve(this._view,e,null)},inYRange:function(e){return ve(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return _e(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return _e(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Me={},we=oe,Le=ue,ke=fe,xe=be;Me.Arc=we,Me.Line=Le,Me.Point=ke,Me.Rectangle=xe;var Te=F._deprecated,Ye=F.valueOrDefault;function De(e,t,n){var r,i,a=n.barThickness,o=t.stackCount,s=t.pixels[e],l=F.isNullOrUndef(a)?function(e,t){var n,r,i,a,o=e._length;for(i=1,a=t.length;i0?Math.min(o,Math.abs(r-n)):o,n=r;return o}(t.scale,t.pixels):-1;return F.isNullOrUndef(a)?(r=l*n.categoryPercentage,i=n.barPercentage):(r=a*o,i=1),{chunk:r/o,ratio:i,start:s-r/2}}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}}});var Se=ne.extend({dataElementType:Me.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ne.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Te("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Te("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Te("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Te("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Te("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t=0&&_.min>=0?_.min:_.max,b=void 0===_.start?_.end:_.max>=0&&_.min>=0?_.max-_.min:_.min-_.max,M=m.length;if(g||void 0===g&&void 0!==y)for(r=0;r=0&&u.max>=0?u.max:u.min,(_.min<0&&a<0||_.max>=0&&a>0)&&(v+=a));return o=c.getPixelForValue(v),l=(s=c.getPixelForValue(v+b))-o,void 0!==p&&Math.abs(l)=0&&!h||b<0&&h?o-p:o+p),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var i="flex"===r.barThickness?function(e,t,n){var r,i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e=Oe?-He:y<-Oe?He:0)+p,b=Math.cos(y),M=Math.sin(y),w=Math.cos(v),L=Math.sin(v),k=y<=0&&v>=0||v>=He,x=y<=Ae&&v>=Ae||v>=He+Ae,T=y<=-Ae&&v>=-Ae||v>=Oe+Ae,Y=y===-Oe||v>=Oe?-1:Math.min(b,b*_,w,w*_),D=T?-1:Math.min(M,M*_,L,L*_),S=k?1:Math.max(b,b*_,w,w*_),P=x?1:Math.max(M,M*_,L,L*_);u=(S-Y)/2,d=(P-D)/2,c=-(S+Y)/2,h=-(P+D)/2}for(r=0,i=m.length;r0&&!isNaN(e)?He*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,a,o,s,l,u=0,d=this.chart;if(!e)for(t=0,n=d.data.datasets.length;t(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=F.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=je(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=je(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=je(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n0&&Fe(l[e-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),e0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return rt(e,t,{intersect:!1})},point:function(e,t){return et(e,Qe(t,e))},nearest:function(e,t,n){var r=Qe(t,e);n.axis=n.axis||"xy";var i=nt(n.axis);return tt(e,r,n.intersect,i)},x:function(e,t,n){var r=Qe(t,e),i=[],a=!1;return Xe(e,(function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(a=!0)})),n.intersect&&!a&&(i=[]),i},y:function(e,t,n){var r=Qe(t,e),i=[],a=!1;return Xe(e,(function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(a=!0)})),n.intersect&&!a&&(i=[]),i}}},at=F.extend;function ot(e,t){return F.where(e,(function(e){return e.pos===t}))}function st(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function lt(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ut(e,t,n){var r,i,a=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?a.height:a.width,e[n.pos]+=n.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(r=t.outerWidth-lt(o,e,"left","right"),i=t.outerHeight-lt(o,e,"top","bottom"),r!==e.w||i!==e.h)return e.w=r,e.h=i,n.horizontal?r!==e.w:i!==e.h}function dt(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function ct(e,t,n){var r,i,a,o,s,l,u=[];for(r=0,i=e.length;r div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&ft.default||ft,pt=["animationstart","webkitAnimationStart"],gt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function yt(e,t){var n=F.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var vt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function bt(e,t,n){e.addEventListener(t,n,vt)}function Mt(e,t,n){e.removeEventListener(t,n,vt)}function wt(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Lt(e){var t=document.createElement("div");return t.className=e||"",t}function kt(e,t,n){var r,i,a,o,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=Lt("chartjs-size-monitor"),n=Lt("chartjs-size-monitor-expand"),r=Lt("chartjs-size-monitor-shrink");n.appendChild(Lt()),r.appendChild(Lt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var i=function(){t._reset(),e()};return bt(n,"scroll",i.bind(n,"expand")),bt(r,"scroll",i.bind(r,"shrink")),t}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,i=r?r.clientWidth:0;t(wt("resize",n)),r&&r.clientWidth0){var a=e[0];a.label?n=a.label:a.xLabel?n=a.xLabel:i>0&&a.index-1?e.split("\n"):e}function At(e){var t=A.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function zt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function It(e){return Ot([],Ht(e))}var Nt=J.extend({initialize:function(){this._model=At(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,r=n.beforeTitle.apply(e,arguments),i=n.title.apply(e,arguments),a=n.afterTitle.apply(e,arguments),o=[];return o=Ot(o,Ht(r)),o=Ot(o,Ht(i)),o=Ot(o,Ht(a))},getBeforeBody:function(){return It(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return F.each(e,(function(e){var a={before:[],lines:[],after:[]};Ot(a.before,Ht(r.beforeLabel.call(n,e,t))),Ot(a.lines,r.label.call(n,e,t)),Ot(a.after,Ht(r.afterLabel.call(n,e,t))),i.push(a)})),i},getAfterBody:function(){return It(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),a=[];return a=Ot(a,Ht(n)),a=Ot(a,Ht(r)),a=Ot(a,Ht(i))},update:function(e){var t,n,r,i,a,o,s,l,u,d,c=this,h=c._options,f=c._model,m=c._model=At(h),_=c._active,p=c._data,g={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},v={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(_.length){m.opacity=1;var M=[],w=[];b=jt[h.position].call(c,_,c._eventPosition);var L=[];for(t=0,n=_.length;tr.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===d?a+=c:a-="bottom"===d?t.height+c:t.height/2,"center"===d?"left"===u?i+=c:"right"===u&&(i-=c):"left"===u?i-=h:"right"===u&&(i+=h),{x:i,y:a}}(m,v,g=function(e,t){var n,r,i,a,o,s=e._model,l=e._chart,u=e._chart.chartArea,d="center",c="center";s.yl.height-t.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===c?(n=function(e){return e<=h},r=function(e){return e>h}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(d="left",i(s.x)&&(d="center",c=o(s.y))):r(s.x)&&(d="right",a(s.x)&&(d="center",c=o(s.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:d,yAlign:m.yAlign?m.yAlign:c}}(this,v),c._chart)}else m.opacity=0;return m.xAlign=g.xAlign,m.yAlign=g.yAlign,m.x=y.x,m.y=y.y,m.width=v.width,m.height=v.height,m.caretX=b.x,m.caretY=b.y,c._model=m,e&&h.custom&&h.custom.call(c,m),c},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,a,o,s,l,u=n.caretSize,d=n.cornerRadius,c=n.xAlign,h=n.yAlign,f=e.x,m=e.y,_=t.width,p=t.height;if("center"===h)s=m+p/2,"left"===c?(i=(r=f)-u,a=r,o=s+u,l=s-u):(i=(r=f+_)+u,a=r,o=s-u,l=s+u);else if("left"===c?(r=(i=f+d+u)-u,a=i+u):"right"===c?(r=(i=f+_-d-u)-u,a=i+u):(r=(i=n.caretX)-u,a=i+u),"top"===h)s=(o=m)-u,l=o;else{s=(o=m+p)+u,l=o;var g=a;a=r,r=g}return{x1:r,x2:i,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var r,i,a,o=t.title,s=o.length;if(s){var l=Ct(t.rtl,t.x,t.width);for(e.x=zt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,i=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=F.fontString(r,t._titleFontStyle,t._titleFontFamily),a=0;a0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,F.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),F.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&n._active.reverse()),(t=!F.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Wt=jt,Ft=Nt;Ft.positioners=Wt;var Rt=F.valueOrDefault;function qt(){return F.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,a,o,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||o.type&&o.type!==t[e][i].type?F.merge(t[e][i],[Pt.getScaleDefaults(a),o]):F.merge(t[e][i],o)}else F._merger(e,t,n,r)}})}function Bt(){return F.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||{},a=n[e];"scales"===e?t[e]=qt(i,a):"scale"===e?t[e]=F.merge(i,[Pt.getScaleDefaults(a.type),a]):F._merger(e,t,n,r)}})}function Ut(e){var t=e.options;F.each(e.scales,(function(t){mt.removeBox(e,t)})),t=Bt(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 Vt(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(F.findIndex(e,i)>=0);return r}function Zt(e){return"top"===e||"bottom"===e}function Jt(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}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});var Gt=function(e,t){return this.construct(e,t),this};F.extend(Gt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Bt(A.global,A[e.type],e.options||{}),e}(t);var r=Dt.acquireContext(e,t),i=r&&r.canvas,a=i&&i.height,o=i&&i.width;n.id=F.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Gt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return St.notify(e,"beforeInit"),F.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),St.notify(e,"afterInit"),e},clear:function(){return F.canvas.clear(this),this},stop:function(){return $.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(F.getMaximumWidth(r))),o=Math.max(0,Math.floor(i?a/i:F.getMaximumHeight(r)));if((t.width!==a||t.height!==o)&&(r.width=t.width=a,r.height=t.height=o,r.style.width=a+"px",r.style.height=o+"px",F.retinaScale(t,n.devicePixelRatio),!e)){var s={width:a,height:o};St.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;F.each(t.xAxes,(function(e,n){e.id||(e.id=Vt(t.xAxes,"x-axis-",n))})),F.each(t.yAxes,(function(e,n){e.id||(e.id=Vt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.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"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),F.each(r,(function(t){var r=t.options,a=r.id,o=Rt(r.type,t.dtype);Zt(r.position)!==Zt(t.dposition)&&(r.position=t.dposition),i[a]=!0;var s=null;if(a in n&&n[a].type===o)(s=n[a]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=Pt.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),F.each(i,(function(e,t){e||delete n[t]})),e.scales=n,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e=0;--n)this.drawDataset(t[n],e);St.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==St.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),St.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==St.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),St.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return it.modes.single(this,e)},getElementsAtEvent:function(e){return it.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return it.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=it.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return it.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=F.log10(Math.abs(r)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=F.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(i);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(F.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},tn=F.isArray,nn=F.isNullOrUndef,rn=F.valueOrDefault,an=F.valueAtIndexOrDefault;function on(e,t,n){var r,i=e.getTicks().length,a=Math.min(t,i-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel;if(!(n&&(r=1===i?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=al+1e-6)))return o}function sn(e,t,n,r){var i,a,o,s,l,u,d,c,h,f,m,_,p,g=n.length,y=[],v=[],b=[];for(i=0;it){for(n=0;n=h||d<=1||!s.isHorizontal()?s.labelRotation=c:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=l.offset?s.maxWidth/d:r/(d-1))&&(i=r/(d-(l.offset?.5:1)),a=s.maxHeight-ln(l.gridLines)-u.padding-un(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=F.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(c,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){F.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){F.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,a=r.scaleLabel,o=r.gridLines,s=e._isVisible(),l="bottom"===r.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=ln(o)+un(a)),u?s&&(t.height=ln(o)+un(a)):t.height=e.maxHeight,i.display&&s){var d=cn(i),c=e._getLabelSizes(),h=c.first,f=c.last,m=c.widest,_=c.highest,p=.4*d.minor.lineHeight,g=i.padding;if(u){var y=0!==e.labelRotation,v=F.toRadians(e.labelRotation),b=Math.cos(v),M=Math.sin(v),w=M*m.width+b*(_.height-(y?_.offset:0))+(y?0:p);t.height=Math.min(e.maxHeight,t.height+w+g);var L,k,x=e.getPixelForTick(0)-e.left,T=e.right-e.getPixelForTick(e.getTicks().length-1);y?(L=l?b*h.width+M*h.offset:M*(h.height-h.offset),k=l?M*(f.height-f.offset):b*f.width+M*f.offset):(L=h.width/2,k=f.width/2),e.paddingLeft=Math.max((L-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((k-T)*e.width/(e.width-T),0)+3}else{var Y=i.mirror?0:m.width+g+p;t.width=Math.min(e.maxWidth,t.width+Y),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;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(){F.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(nn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),n=0,r=e.length;nn-1?null:this.getPixelForDecimal(e*r+(t?r/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,i,a=this.options.ticks,o=this._length,s=a.maxTicksLimit||o/this._tickSize()+1,l=a.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;ts)return function(e,t,n){var r,i,a=0,o=t[0];for(n=Math.ceil(n),r=0;ru)return a;return Math.max(u,1)}(l,e,0,s),u>0){for(t=0,n=u-1;t1?(c-d)/(u-1):null,fn(e,r,F.isNullOrUndef(i)?0:d-i,d),fn(e,r,c,F.isNullOrUndef(i)?e.length:c+i),hn(e)}return fn(e,r),hn(e)},_tickSize:function(){var e=this.options.ticks,t=F.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r=0&&(o=e),void 0!==a&&(e=n.indexOf(a))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;_n.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,a,o=this;return pn(t)||pn(n)||(e=o.chart.data.datasets[n].data[t]),pn(e)||(r=o.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=o._getLabels(),e=F.valueOrDefault(r,e),t=-1!==(a=i.indexOf(e))?a:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),yn={position:"bottom"};gn._defaults=yn;var vn=F.noop,bn=F.isNullOrUndef,Mn=_n.extend({getRightValue:function(e){return"string"==typeof e?+e:_n.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=F.sign(e.min),r=F.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:vn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:F.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var n,r,i,a,o=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,d=e.min,c=e.max,h=e.precision,f=t.min,m=t.max,_=F.niceNum((m-f)/u/l)*l;if(_<1e-14&&bn(d)&&bn(c))return[f,m];(a=Math.ceil(m/_)-Math.floor(f/_))>u&&(_=F.niceNum(a*_/u/l)*l),s||bn(h)?n=Math.pow(10,F._decimalPlaces(_)):(n=Math.pow(10,h),_=Math.ceil(_*n)/n),r=Math.floor(f/_)*_,i=Math.ceil(m/_)*_,s&&(!bn(d)&&F.almostWhole(d/_,_/1e3)&&(r=d),!bn(c)&&F.almostWhole(c/_,_/1e3)&&(i=c)),a=(i-r)/_,a=F.almostEquals(a,Math.round(a),_/1e3)?Math.round(a):Math.ceil(a),r=Math.round(r*n)/n,i=Math.round(i*n)/n,o.push(bn(d)?r:d);for(var p=1;pt.length-1?null:this.getPixelForValue(t[e])}}),Tn=wn;xn._defaults=Tn;var Yn=F.valueOrDefault,Dn=F.math.log10,Sn={position:"left",ticks:{callback:en.formatters.logarithmic}};function Pn(e,t){return F.isFinite(e)&&e>=0?e:t}var En=_n.extend({determineDataLimits:function(){var e,t,n,r,i,a,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function c(e){return d?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e0){var t=F.min(e),n=F.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}}))}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Pn(t.min),max:Pn(t.max)},i=e.ticks=function(e,t){var n,r,i=[],a=Yn(e.min,Math.pow(10,Math.floor(Dn(t.min)))),o=Math.floor(Dn(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(n=Math.floor(Dn(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(a),a=r*Math.pow(10,n)):(n=Math.floor(Dn(a)),r=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(a),10==++r&&(r=1,l=++n>=0?1:l),a=Math.round(r*Math.pow(10,n)*l)/l}while(nt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;_n.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Yn(e.options.ticks.fontSize,A.global.defaultFontSize)/e._length),e._startValue=Dn(t),e._valueOffset=n,e._valueRange=(Dn(e.max)-Dn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Cn=Sn;En._defaults=Cn;var jn=F.valueOrDefault,On=F.valueAtIndexOrDefault,Hn=F.options.resolve,An={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:en.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function zn(e){var t=e.ticks;return t.display&&e.display?jn(t.fontSize,A.global.defaultFontSize)+2*t.backdropPaddingY:0}function In(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function Nn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Wn(e,t,n,r){var i,a,o=n.y+r/2;if(F.isArray(t))for(i=0,a=t.length;i270||e<90)&&(n.y-=t.h)}function Rn(e){return F.isNumber(e)?e:0}var qn=Mn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=zn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;F.each(t.data.datasets,(function(i,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a);F.each(i.data,(function(t,i){var a=+e.getRightValue(t);isNaN(a)||o.data[i].hidden||(n=Math.min(a,n),r=Math.max(a,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/zn(this.options))},convertTicksToLabels:function(){var e=this;Mn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=F.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,r,i=F.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=i.string,e._pointLabelSizes=[];var s,l,u,d=e.chart.data.labels.length;for(t=0;ta.r&&(a.r=f.end,o.r=c),m.starta.b&&(a.b=m.end,o.b=c)}e.setReductions(e.drawingArea,a,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),a=Math.max(t.r-r.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Rn(i),a=Rn(a),o=Rn(o),s=Rn(s),r.drawingArea=Math.min(Math.floor(e-(i+a)/2),Math.floor(e-(o+s)/2)),r.setCenterPoint(i,a,o,s)},setCenterPoint:function(e,t,n,r){var i=this,a=i.width-t-i.drawingArea,o=e+i.drawingArea,s=n+i.drawingArea,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(F.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,a=r.options,o=a.gridLines,s=a.angleLines,l=jn(s.lineWidth,o.lineWidth),u=jn(s.color,o.color);if(a.pointLabels.display&&function(e){var t=e.ctx,n=e.options,r=n.pointLabels,i=zn(n),a=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=F.options._parseFont(r);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,u=e.getPointPosition(s,a+l+5),d=On(r.fontColor,s,A.global.defaultFontColor);t.fillStyle=d;var c=e.getIndexAngle(s),h=F.toDegrees(c);t.textAlign=Nn(h),Fn(h,e._pointLabelSizes[s],u),Wn(t,e.pointLabels[s],u,o.lineHeight)}t.restore()}(r),o.display&&F.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(e,t,n,r){var i,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=On(t.color,r-1),u=On(t.lineWidth,r-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),a.moveTo(i.x,i.y);for(var d=1;d=0;e--)t=r.getDistanceFromCenterForValue(a.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,i,a=e.getIndexAngle(0),o=F.options._parseFont(n),s=jn(n.fontColor,A.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",F.each(e.ticks,(function(a,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(i=t.measureText(a).width,t.fillStyle=n.backdropColor,t.fillRect(-i/2-n.backdropPaddingX,-r-o.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-r))})),t.restore()}},_drawTitle:F.noop}),Bn=An;qn._defaults=Bn;var Un=F._deprecated,Vn=F.options.resolve,Zn=F.valueOrDefault,Jn=Number.MIN_SAFE_INTEGER||-9007199254740991,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Kn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},$n=Object.keys(Kn);function Qn(e,t){return e-t}function Xn(e){return F.valueOrDefault(e.time.min,e.ticks.min)}function er(e){return F.valueOrDefault(e.time.max,e.ticks.max)}function tr(e,t,n,r){var i=function(e,t,n){for(var r,i,a,o=0,s=e.length-1;o>=0&&o<=s;){if(i=e[(r=o+s>>1)-1]||null,a=e[r],!i)return{lo:null,hi:a};if(a[t]n))return{lo:i,hi:a};s=r-1}}return{lo:a,hi:null}}(e,t,n),a=i.lo?i.hi?i.lo:e[e.length-2]:e[0],o=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=o[t]-a[t],l=s?(n-a[t])/s:0,u=(o[r]-a[r])*l;return a[r]+u}function nr(e,t){var n=e._adapter,r=e.options.time,i=r.parser,a=i||r.format,o=t;return"function"==typeof i&&(o=i(o)),F.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(i||"function"!=typeof a||(o=a(t),F.isFinite(o)||(o=n.parse(o))),o)}function rr(e,t){if(F.isNullOrUndef(t))return null;var n=e.options.time,r=nr(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function ir(e,t,n,r){var i,a,o,s=$n.length;for(i=$n.indexOf(e);i=0&&(t[a].major=!0);return t}(e,a,o,n):a}var or=_n.extend({initialize:function(){this.mergeTicksOptions(),_n.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new Xt._date(t.adapters.date);return Un("time scale",n.format,"time.format","time.parser"),Un("time scale",n.min,"time.min","ticks.min"),Un("time scale",n.max,"time.max","ticks.max"),F.mergeIf(n.displayFormats,r.formats()),_n.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),_n.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,a,o,s=this,l=s.chart,u=s._adapter,d=s.options,c=d.time.unit||"day",h=Gn,f=Jn,m=[],_=[],p=[],g=s._getLabels();for(e=0,n=g.length;e1?function(e){var t,n,r,i={},a=[];for(t=0,n=e.length;t1e5*u)throw t+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(i=c;i=i&&n<=a&&d.push(n);return r.min=i,r.max=a,r._unit=l.unit||(s.autoSkip?ir(l.minUnit,r.min,r.max,c):function(e,t,n,r,i){var a,o;for(a=$n.length-1;a>=$n.indexOf(n);a--)if(o=$n[a],Kn[o].common&&e._adapter.diff(i,r,o)>=t-1)return o;return $n[n?$n.indexOf(n):0]}(r,d.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(e){for(var t=$n.indexOf(e)+1,n=$n.length;tt&&s=0&&e0?s:1}}),sr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};or._defaults=sr;var lr={category:gn,linear:xn,logarithmic:En,radialLinear:qn,time:or},ur={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"};Xt._date.override("function"==typeof e?{_id:"moment",formats:function(){return ur},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),A._set("global",{plugins:{filler:{propagate:!0}}});var dr={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],a=i.length||0;return a?function(e,t){return t=n)&&r;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function hr(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,r,i,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,u=e.fill,d=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,r=o.getPointPositionForValue(0,t),i=0;i0;--a)F.canvas.lineTo(e,n[a],n[a-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),a=i-1;a>0;--a)e.arc(o,s,l,n[a].angle,n[a-1].angle,!0)}}function gr(e,t,n,r,i,a){var o,s,l,u,d,c,h,f,m=t.length,_=r.spanGaps,p=[],g=[],y=0,v=0;for(e.beginPath(),o=0,s=m;o=0;--n)(t=l[n].$filler)&&t.visible&&(i=(r=t.el)._view,a=r._children||[],o=t.mapper,s=i.backgroundColor||A.global.defaultColor,o&&s&&a.length&&(F.canvas.clipArea(u,e.chartArea),gr(u,a,o,i,s,r._loop),F.canvas.unclipArea(u)))}},vr=F.rtl.getRtlAdapter,br=F.noop,Mr=F.valueOrDefault;function wr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}A._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),a=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,n=a.length;tl.width)&&(c+=o+n.padding,d[d.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:o},d[d.length-1]+=r+n.padding})),l.height+=c}else{var h=n.padding,f=e.columnWidths=[],m=e.columnHeights=[],_=n.padding,p=0,g=0;F.each(e.legendItems,(function(e,t){var r=wr(n,o)+o/2+i.measureText(e.text).width;t>0&&g+o+2*h>l.height&&(_+=p+n.padding,f.push(p),m.push(g),p=0,g=0),p=Math.max(p,r),g+=o+h,s[t]={left:0,top:0,width:r,height:o}})),_+=p,f.push(p),m.push(g),l.width+=_}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:br,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=A.global,i=r.defaultColor,a=r.elements.line,o=e.height,s=e.columnHeights,l=e.width,u=e.lineWidths;if(t.display){var d,c=vr(t.rtl,e.left,e.minSize.width),h=e.ctx,f=Mr(n.fontColor,r.defaultFontColor),m=F.options._parseFont(n),_=m.size;h.textAlign=c.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=m.string;var p=wr(n,_),g=e.legendHitBoxes,y=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},v=e.isHorizontal();d=v?{x:e.left+y(l,u[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(o,s[0]),line:0},F.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=_+n.padding;F.each(e.legendItems,(function(t,r){var f=h.measureText(t.text).width,m=p+_/2+f,M=d.x,w=d.y;c.setWidth(e.minSize.width),v?r>0&&M+m+n.padding>e.left+e.minSize.width&&(w=d.y+=b,d.line++,M=d.x=e.left+y(l,u[d.line])):r>0&&w+b>e.top+e.minSize.height&&(M=d.x=M+e.columnWidths[d.line]+n.padding,d.line++,w=d.y=e.top+y(o,s[d.line]));var L=c.x(M);!function(e,t,r){if(!(isNaN(p)||p<=0)){h.save();var o=Mr(r.lineWidth,a.borderWidth);if(h.fillStyle=Mr(r.fillStyle,i),h.lineCap=Mr(r.lineCap,a.borderCapStyle),h.lineDashOffset=Mr(r.lineDashOffset,a.borderDashOffset),h.lineJoin=Mr(r.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Mr(r.strokeStyle,i),h.setLineDash&&h.setLineDash(Mr(r.lineDash,a.borderDash)),n&&n.usePointStyle){var s=p*Math.SQRT2/2,l=c.xPlus(e,p/2),u=t+_/2;F.canvas.drawPoint(h,r.pointStyle,s,l,u,r.rotation)}else h.fillRect(c.leftForLtr(e,p),t,p,_),0!==o&&h.strokeRect(c.leftForLtr(e,p),t,p,_);h.restore()}}(L,w,t),g[r].left=c.leftForLtr(L,g[r].width),g[r].top=w,function(e,t,n,r){var i=_/2,a=c.xPlus(e,p+i),o=t+i;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(c.xPlus(a,r),o),h.stroke())}(L,w,t,f),v?d.x+=m+n.padding:d.y+=b})),F.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,i,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(i=a.legendHitBoxes,n=0;n=(r=i[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return a.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function kr(e,t){var n=new Lr({ctx:e.ctx,options:t,chart:e});mt.configure(e,n,t),mt.addBox(e,n),e.legend=n}var xr={id:"legend",_element:Lr,beforeInit:function(e){var t=e.options.legend;t&&kr(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(F.mergeIf(t,A.global.legend),n?(mt.configure(e,n,t),n.options=t):kr(e,t)):n&&(mt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Tr=F.noop;A._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Yr=J.extend({initialize:function(e){F.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Tr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Tr,beforeSetDimensions:Tr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(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:Tr,beforeBuildLabels:Tr,buildLabels:Tr,afterBuildLabels:Tr,beforeFit:Tr,fit:function(){var e,t=this,n=t.options,r=t.minSize={},i=t.isHorizontal();n.display?(e=(F.isArray(n.text)?n.text.length:1)*F.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=i?t.maxWidth:e,t.height=r.height=i?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Tr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,a,o=F.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,d=e.top,c=e.left,h=e.bottom,f=e.right;t.fillStyle=F.valueOrDefault(n.fontColor,A.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(i=c+(f-c)/2,a=d+l,r=f-c):(i="left"===n.position?c+l:f-l,a=d+(h-d)/2,r=h-d,u=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,a),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(F.isArray(m))for(var _=0,p=0;p=0;r--){var i=e[r];if(t(i))return i}},F.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},F.almostEquals=function(e,t,n){return Math.abs(e-t)=e},F.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},F.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},F.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},F.toRadians=function(e){return e*(Math.PI/180)},F.toDegrees=function(e){return e*(180/Math.PI)},F._decimalPlaces=function(e){if(F.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},F.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},F.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},F.aliasPixel=function(e){return e%2==0?0:.5},F._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},F.splineCurve=function(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),d=l/(s+l),c=r*(u=isNaN(u)?0:u),h=r*(d=isNaN(d)?0:d);return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}},F.EPSILON=Number.EPSILON||1e-14,F.splineCurveMonotone=function(e){var t,n,r,i,a,o,s,l,u,d=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),c=d.length;for(t=0;t0?d[t-1]:null,(i=t0?d[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},F.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},F.niceNum=function(e,t){var n=Math.floor(F.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},F.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},F.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(F.getStyle(a,"padding-left")),u=parseFloat(F.getStyle(a,"padding-top")),d=parseFloat(F.getStyle(a,"padding-right")),c=parseFloat(F.getStyle(a,"padding-bottom")),h=o.right-o.left-l-d,f=o.bottom-o.top-u-c;return{x:n=Math.round((n-o.left-l)/h*a.width/t.currentDevicePixelRatio),y:r=Math.round((r-o.top-u)/f*a.height/t.currentDevicePixelRatio)}},F.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},F.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},F._calculatePadding=function(e,t,n){return(t=F.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},F._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},F.getMaximumWidth=function(e){var t=F._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-F._calculatePadding(t,"padding-left",n)-F._calculatePadding(t,"padding-right",n),i=F.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},F.getMaximumHeight=function(e){var t=F._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-F._calculatePadding(t,"padding-top",n)-F._calculatePadding(t,"padding-bottom",n),i=F.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},F.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},F.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,a=e.width;r.height=i*n,r.width=a*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=a+"px")}},F.fontString=function(e,t,n){return t+" "+e+"px "+n},F.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.font=t;var o,s,l,u,d,c=0,h=n.length;for(o=0;on.length){for(o=0;or&&(r=a),r},F.numberOfLabelLines=function(e){var t=1;return F.each(e,(function(e){F.isArray(e)&&e.length>t&&(t=e.length)})),t},F.color=w?function(e){return e instanceof CanvasGradient&&(e=A.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},F.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:F.color(e).saturate(.5).darken(.1).rgbString()}}(),Kt._adapters=Xt,Kt.Animation=K,Kt.animationService=$,Kt.controllers=$e,Kt.DatasetController=ne,Kt.defaults=A,Kt.Element=J,Kt.elements=Me,Kt.Interaction=it,Kt.layouts=mt,Kt.platform=Dt,Kt.plugins=St,Kt.Scale=_n,Kt.scaleService=Pt,Kt.Ticks=en,Kt.Tooltip=Ft,Kt.helpers.each(lr,(function(e,t){Kt.scaleService.registerScaleType(t,e,e._defaults)})),Sr)Sr.hasOwnProperty(jr)&&Kt.plugins.register(Sr[jr]);Kt.platform.initialize();var Or=Kt;return"undefined"!=typeof window&&(window.Chart=Kt),Kt.Chart=Kt,Kt.Legend=Sr.legend._element,Kt.Title=Sr.title._element,Kt.pluginService=Kt.plugins,Kt.PluginBase=Kt.Element.extend({}),Kt.canvasHelpers=Kt.helpers.canvas,Kt.layoutService=Kt.layouts,Kt.LinearScaleBase=Mn,Kt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Kt[e]=function(t,n){return new Kt(t,Kt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Or}(function(){try{return n(1)}catch(e){}}())},function(e,t,n){var r={"./af":60,"./af.js":60,"./ar":61,"./ar-dz":62,"./ar-dz.js":62,"./ar-kw":63,"./ar-kw.js":63,"./ar-ly":64,"./ar-ly.js":64,"./ar-ma":65,"./ar-ma.js":65,"./ar-sa":66,"./ar-sa.js":66,"./ar-tn":67,"./ar-tn.js":67,"./ar.js":61,"./az":68,"./az.js":68,"./be":69,"./be.js":69,"./bg":70,"./bg.js":70,"./bm":71,"./bm.js":71,"./bn":72,"./bn.js":72,"./bo":73,"./bo.js":73,"./br":74,"./br.js":74,"./bs":75,"./bs.js":75,"./ca":76,"./ca.js":76,"./cs":77,"./cs.js":77,"./cv":78,"./cv.js":78,"./cy":79,"./cy.js":79,"./da":80,"./da.js":80,"./de":81,"./de-at":82,"./de-at.js":82,"./de-ch":83,"./de-ch.js":83,"./de.js":81,"./dv":84,"./dv.js":84,"./el":85,"./el.js":85,"./en-au":86,"./en-au.js":86,"./en-ca":87,"./en-ca.js":87,"./en-gb":88,"./en-gb.js":88,"./en-ie":89,"./en-ie.js":89,"./en-il":90,"./en-il.js":90,"./en-in":91,"./en-in.js":91,"./en-nz":92,"./en-nz.js":92,"./en-sg":93,"./en-sg.js":93,"./eo":94,"./eo.js":94,"./es":95,"./es-do":96,"./es-do.js":96,"./es-us":97,"./es-us.js":97,"./es.js":95,"./et":98,"./et.js":98,"./eu":99,"./eu.js":99,"./fa":100,"./fa.js":100,"./fi":101,"./fi.js":101,"./fil":102,"./fil.js":102,"./fo":103,"./fo.js":103,"./fr":104,"./fr-ca":105,"./fr-ca.js":105,"./fr-ch":106,"./fr-ch.js":106,"./fr.js":104,"./fy":107,"./fy.js":107,"./ga":108,"./ga.js":108,"./gd":109,"./gd.js":109,"./gl":110,"./gl.js":110,"./gom-deva":111,"./gom-deva.js":111,"./gom-latn":112,"./gom-latn.js":112,"./gu":113,"./gu.js":113,"./he":114,"./he.js":114,"./hi":115,"./hi.js":115,"./hr":116,"./hr.js":116,"./hu":117,"./hu.js":117,"./hy-am":118,"./hy-am.js":118,"./id":119,"./id.js":119,"./is":120,"./is.js":120,"./it":121,"./it-ch":122,"./it-ch.js":122,"./it.js":121,"./ja":123,"./ja.js":123,"./jv":124,"./jv.js":124,"./ka":125,"./ka.js":125,"./kk":126,"./kk.js":126,"./km":127,"./km.js":127,"./kn":128,"./kn.js":128,"./ko":129,"./ko.js":129,"./ku":130,"./ku.js":130,"./ky":131,"./ky.js":131,"./lb":132,"./lb.js":132,"./lo":133,"./lo.js":133,"./lt":134,"./lt.js":134,"./lv":135,"./lv.js":135,"./me":136,"./me.js":136,"./mi":137,"./mi.js":137,"./mk":138,"./mk.js":138,"./ml":139,"./ml.js":139,"./mn":140,"./mn.js":140,"./mr":141,"./mr.js":141,"./ms":142,"./ms-my":143,"./ms-my.js":143,"./ms.js":142,"./mt":144,"./mt.js":144,"./my":145,"./my.js":145,"./nb":146,"./nb.js":146,"./ne":147,"./ne.js":147,"./nl":148,"./nl-be":149,"./nl-be.js":149,"./nl.js":148,"./nn":150,"./nn.js":150,"./oc-lnc":151,"./oc-lnc.js":151,"./pa-in":152,"./pa-in.js":152,"./pl":153,"./pl.js":153,"./pt":154,"./pt-br":155,"./pt-br.js":155,"./pt.js":154,"./ro":156,"./ro.js":156,"./ru":157,"./ru.js":157,"./sd":158,"./sd.js":158,"./se":159,"./se.js":159,"./si":160,"./si.js":160,"./sk":161,"./sk.js":161,"./sl":162,"./sl.js":162,"./sq":163,"./sq.js":163,"./sr":164,"./sr-cyrl":165,"./sr-cyrl.js":165,"./sr.js":164,"./ss":166,"./ss.js":166,"./sv":167,"./sv.js":167,"./sw":168,"./sw.js":168,"./ta":169,"./ta.js":169,"./te":170,"./te.js":170,"./tet":171,"./tet.js":171,"./tg":172,"./tg.js":172,"./th":173,"./th.js":173,"./tk":174,"./tk.js":174,"./tl-ph":175,"./tl-ph.js":175,"./tlh":176,"./tlh.js":176,"./tr":177,"./tr.js":177,"./tzl":178,"./tzl.js":178,"./tzm":179,"./tzm-latn":180,"./tzm-latn.js":180,"./tzm.js":179,"./ug-cn":181,"./ug-cn.js":181,"./uk":182,"./uk.js":182,"./ur":183,"./ur.js":183,"./uz":184,"./uz-latn":185,"./uz-latn.js":185,"./uz.js":184,"./vi":186,"./vi.js":186,"./x-pseudo":187,"./x-pseudo.js":187,"./yo":188,"./yo.js":188,"./zh-cn":189,"./zh-cn.js":189,"./zh-hk":190,"./zh-hk.js":190,"./zh-mo":191,"./zh-mo.js":191,"./zh-tw":192,"./zh-tw.js":192};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=270},function(e,t,n){var r=n(39);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(193),i=n(198),a=n(307),o=n(311),s=n(329),l=n(14),u=n(200),d=n(202),c="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,m,_){var p=l(e),g=l(t),y=p?"[object Array]":s(e),v=g?"[object Array]":s(t),b=(y="[object Arguments]"==y?c:y)==c,M=(v="[object Arguments]"==v?c:v)==c,w=y==v;if(w&&u(e)){if(!u(t))return!1;p=!0,b=!1}if(w&&!b)return _||(_=new r),p||d(e)?i(e,t,n,f,m,_):a(e,t,y,n,f,m,_);if(!(1&n)){var L=b&&h.call(e,"__wrapped__"),k=M&&h.call(t,"__wrapped__");if(L||k){var x=L?e.value():e,T=k?t.value():t;return _||(_=new r),m(x,T,n,f,_)}}return!!w&&(_||(_=new r),o(e,t,n,f,m,_))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(29),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(29);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(29);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(29);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(28);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(28),i=n(40),a=n(42);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(195),i=n(287),a=n(41),o=n(197),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?h:s).test(o(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(30),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(288),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(13)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(291),i=n(28),a=n(40);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(292),i=n(293),a=n(294),o=n(295),s=n(296);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t div {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n justify-content: center;\r\n align-items: center; \r\n}\r\n\r\n.src-components-ControlButtons-styles__show-mouse--2tNz9.src-components-ControlButtons-styles__container--1OVTm > div{\r\n cursor: pointer;\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__dark--2ct7o > div {\r\n background: linear-gradient(#5d5c5c, #4e4e4e);\r\n border-right: 1px solid #4c4c4c;\r\n border-left: 1px solid #757575;\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__dark--2ct7o > div:active {\r\n background: linear-gradient(#4e4e4e, #5d5c5c);\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__light--3gu98 > div {\r\n background: linear-gradient(#d6d6d6, #c7c7c7);\r\n border-right: 1px solid #bdbdbd;\r\n border-left: 1px solid #dadada;\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__light--3gu98 > div:active {\r\n background: linear-gradient(#d7d7d7, #e6e6e6);\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__light--3gu98 > div:first-child {\r\n border-left: none;\r\n}\r\n\r\n.src-components-ControlButtons-styles__light--3gu98 .src-components-ControlButtons-styles__button-down--12pEA {\r\n background: linear-gradient(#E4E4E4, #F3F3F3) !important;\r\n}\r\n\r\n.src-components-ControlButtons-styles__dark--2ct7o .src-components-ControlButtons-styles__button-down--12pEA {\r\n background: linear-gradient(#686868, #777676) !important;\r\n}",""]),i.locals={container:"src-components-ControlButtons-styles__container--1OVTm","show-mouse":"src-components-ControlButtons-styles__show-mouse--2tNz9",showMouse:"src-components-ControlButtons-styles__show-mouse--2tNz9",dark:"src-components-ControlButtons-styles__dark--2ct7o",light:"src-components-ControlButtons-styles__light--3gu98","button-down":"src-components-ControlButtons-styles__button-down--12pEA",buttonDown:"src-components-ControlButtons-styles__button-down--12pEA"},t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,'.src-components-InfoPanel-styles__panel--3hALh {\r\n height: 100%;\r\n}\r\n.src-components-InfoPanel-styles__container--ABknn { \r\n height: calc(100% - 20px); /* subtract padding */\r\n padding: 10px;\r\n font-family: "Rubik", sans-serif;\r\n display: grid;\r\n grid-template-columns: auto;\r\n grid-template-rows: 90px auto 10px;\r\n grid-template-areas:\r\n "clock"\r\n "weather-info"\r\n "controls";\r\n}\r\n\r\n.src-components-InfoPanel-styles__dark--oVaIb .src-components-InfoPanel-styles__container--ABknn {\r\n color: #f6f6f4;\r\n}\r\n\r\n.src-components-InfoPanel-styles__light--2jjRv .src-components-InfoPanel-styles__container--ABknn {\r\n color: #3a3938;\r\n}\r\n\r\n.src-components-InfoPanel-styles__clock-container--WGzp0 {\r\n grid-area: clock;\r\n}\r\n\r\n.src-components-InfoPanel-styles__weather-info-container--AQzc0 {\r\n grid-area: weather-info;\r\n}\r\n\r\n.src-components-InfoPanel-styles__controls--2gWHT {\r\n grid-area: controls; \r\n margin: -10px; /* subtract padding */ \r\n}\r\n\r\n.src-components-InfoPanel-styles__dark--oVaIb .src-components-InfoPanel-styles__controls--2gWHT{\r\n border-top: 1px solid #757575;\r\n}\r\n\r\n.src-components-InfoPanel-styles__light--2jjRv .src-components-InfoPanel-styles__controls--2gWHT{\r\n border-top: 1px solid #f1f1f1;\r\n}',""]),i.locals={panel:"src-components-InfoPanel-styles__panel--3hALh",container:"src-components-InfoPanel-styles__container--ABknn",dark:"src-components-InfoPanel-styles__dark--oVaIb",light:"src-components-InfoPanel-styles__light--2jjRv","clock-container":"src-components-InfoPanel-styles__clock-container--WGzp0",clockContainer:"src-components-InfoPanel-styles__clock-container--WGzp0","weather-info-container":"src-components-InfoPanel-styles__weather-info-container--AQzc0",weatherInfoContainer:"src-components-InfoPanel-styles__weather-info-container--AQzc0",controls:"src-components-InfoPanel-styles__controls--2gWHT"},t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,'.src-components-Settings-styles__container--1ziz9 {\r\n height: calc(100vh - 20px); /* subtract padding */\r\n width: calc(100vw - 320px); /* subtract info panel and padding */\r\n background-color: rgba(0, 0, 0, 0.65);\r\n -webkit-backdrop-filter: blur(3px);\r\n backdrop-filter: blur(3px);\r\n padding: 10px;\r\n color: #f6f6f4;\r\n font-family: "Rubik", sans-serif;\r\n border-right: 1px solid rgba(0, 0, 0, 0.15);\r\n position: relative;\r\n}\r\n\r\n.src-components-Settings-styles__header--d1sSN {\r\n font-size: 14px;\r\n}\r\n\r\n.src-components-Settings-styles__settings-container--25Ncs {\r\n margin-top: 20px;\r\n font-size: 14px;\r\n}\r\n\r\n.src-components-Settings-styles__input-container--2X2y6 {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.src-components-Settings-styles__input-container--2X2y6 input {\r\n height: 30px;\r\n width: 100%;\r\n max-width: 800px;\r\n margin-right: 10px;\r\n outline: none;\r\n border: 2px solid #5d5c5c;\r\n}\r\n\r\n.src-components-Settings-styles__input-container--2X2y6.src-components-Settings-styles__invalid--36kEU input {\r\n border: 2px solid #c20808;\r\n}\r\n\r\n.src-components-Settings-styles__button-container--3Ib_Y {\r\n display: flex;\r\n}\r\n\r\n.src-components-Settings-styles__button-container--3Ib_Y > div {\r\n margin-right: 10px;\r\n}\r\n\r\n.src-components-Settings-styles__button-container--3Ib_Y > div:last-child {\r\n margin-right: 0px;\r\n}\r\n\r\n.src-components-Settings-styles__label--f-wve {\r\n font-size: 13px;\r\n}\r\n\r\n.src-components-Settings-styles__button--2TmGw {\r\n height: 34px;\r\n width: 34px;\r\n font-size: 20px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n background: linear-gradient(#5d5c5c, #4e4e4e);\r\n border-top: 1px solid #757575;\r\n border-left: 1px solid #757575;\r\n border-right: 1px solid #4c4c4c;\r\n border-bottom: 1px solid #4c4c4c;\r\n}\r\n\r\n.src-components-Settings-styles__show-mouse--Sfkfv.src-components-Settings-styles__button--2TmGw {\r\n cursor: pointer;\r\n}\r\n\r\n.src-components-Settings-styles__button--2TmGw.src-components-Settings-styles__down--2RweJ {\r\n color: #4e4e4e;\r\n background: linear-gradient(#d6d6d6, #c7c7c7);\r\n}\r\n\r\n.src-components-Settings-styles__button--2TmGw:active {\r\n background: linear-gradient(#4e4e4e, #5d5c5c);\r\n}\r\n\r\n.src-components-Settings-styles__settings-item--yz5eS {\r\n margin: 10px 0px;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-container--1Qtk7 {\r\n display: flex;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-buttons--2h_qE {\r\n display: flex;\r\n max-width: 900px;\r\n\r\n justify-content: space-between;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-buttons--2h_qE > div {\r\n margin-right: 10px;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-buttons--2h_qE > div:last-child {\r\n margin-right: 0px;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-container--1Qtk7 > .src-components-Settings-styles__button--2TmGw {\r\n width: 50px;\r\n}\r\n\r\n.src-components-Settings-styles__bottom-button-container--3ZacB {\r\n width: 100%;\r\n margin-top: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n}\r\n\r\n.src-components-Settings-styles__save-button--1kJ35 {\r\n width: 80px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.src-components-Settings-styles__save-button--1kJ35 .src-components-Settings-styles__label--f-wve {\r\n margin-right: 5px;\r\n}\r\n\r\n.src-components-Settings-styles__close-button--2w_21 {\r\n font-size: 20px;\r\n position: absolute;\r\n top: 10px;\r\n right: 10px;\r\n}\r\n\r\n.src-components-Settings-styles__show-mouse--Sfkfv.src-components-Settings-styles__close-button--2w_21 {\r\n cursor: pointer;\r\n}\r\n\r\n.src-components-Settings-styles__close-button--2w_21:active {\r\n color: #c7c7c7;\r\n}\r\n\r\n.src-components-Settings-styles__save-button-container--2eAoc {\r\n margin-top: 15px;\r\n}',""]),i.locals={container:"src-components-Settings-styles__container--1ziz9",header:"src-components-Settings-styles__header--d1sSN","settings-container":"src-components-Settings-styles__settings-container--25Ncs",settingsContainer:"src-components-Settings-styles__settings-container--25Ncs","input-container":"src-components-Settings-styles__input-container--2X2y6",inputContainer:"src-components-Settings-styles__input-container--2X2y6",invalid:"src-components-Settings-styles__invalid--36kEU","button-container":"src-components-Settings-styles__button-container--3Ib_Y",buttonContainer:"src-components-Settings-styles__button-container--3Ib_Y",label:"src-components-Settings-styles__label--f-wve",button:"src-components-Settings-styles__button--2TmGw","show-mouse":"src-components-Settings-styles__show-mouse--Sfkfv",showMouse:"src-components-Settings-styles__show-mouse--Sfkfv",down:"src-components-Settings-styles__down--2RweJ","settings-item":"src-components-Settings-styles__settings-item--yz5eS",settingsItem:"src-components-Settings-styles__settings-item--yz5eS","toggle-container":"src-components-Settings-styles__toggle-container--1Qtk7",toggleContainer:"src-components-Settings-styles__toggle-container--1Qtk7","toggle-buttons":"src-components-Settings-styles__toggle-buttons--2h_qE",toggleButtons:"src-components-Settings-styles__toggle-buttons--2h_qE","bottom-button-container":"src-components-Settings-styles__bottom-button-container--3ZacB",bottomButtonContainer:"src-components-Settings-styles__bottom-button-container--3ZacB","save-button":"src-components-Settings-styles__save-button--1kJ35",saveButton:"src-components-Settings-styles__save-button--1kJ35","close-button":"src-components-Settings-styles__close-button--2w_21",closeButton:"src-components-Settings-styles__close-button--2w_21","save-button-container":"src-components-Settings-styles__save-button-container--2eAoc",saveButtonContainer:"src-components-Settings-styles__save-button-container--2eAoc"},t.default=i},function(e,t,n){var r=n(7),i=n(368);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,".animate-enter {\r\n -webkit-transform: translateX(-200%);\r\n -moz-transform: translateX(-200%);\r\n transform: translateX(-100%);\r\n }\r\n .animate-enter-active {\r\n -webkit-transform: translateX(0px);\r\n -moz-transform: translateX(0px);\r\n transform: translateX(0px);\r\n -webkit-transition: all 0.3s ease-in-out;\r\n }\r\n .animate-exit {\r\n -webkit-transform: translateX(0px);\r\n -moz-transform: translateX(0px);\r\n transform: translateX(0px);\r\n -webkit-transition: all 0.3s ease-in-out;\r\n }\r\n \r\n .animate-exit-active {\r\n -webkit-transform: translateX(-200%);\r\n -moz-transform: translateX(-200%);\r\n transform: translateX(-100%);\r\n }",""]),t.default=i},function(e,t,n){var r=n(7),i=n(370);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,".map-container.map-mouse-hide .leaflet-grab {\r\n cursor: none;\r\n}\r\n\r\n.map-container.map-mouse-hide .leaflet-interactive {\r\n cursor: none;\r\n}\r\n\r\n.map-container.map-dark-mode .leaflet-bar a {\r\n background-color: #3a3938;\r\n color: #f6f6f4;\r\n}\r\n",""]),t.default=i},function(e,t,n){n.e(1).then(n.t.bind(null,373,7))},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(21),o=n.n(a),s=n(15),l=n.n(s),u=n(8),d=n.n(u);function c(){return new Promise((function(e,t){d.a.get("/settings").then((function(t){e(t.data)})).catch((function(e){t(e)}))}))}var h=n(2),f=n.n(h);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g.propTypes={children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]).isRequired};var L=n(6),k=n(209),x=n.n(k),T=Object(r.createContext)({}),Y=T.Consumer,D=T.Provider,S=function(e){var t=function(t,n){return i.a.createElement(Y,null,(function(r){return i.a.createElement(e,y({},t,{leaflet:r,ref:n}))}))},n=e.displayName||e.name||"Component";t.displayName="Leaflet("+n+")";var a=Object(r.forwardRef)(t);return x()(a,e),a},P=/^on(.+)$/i,E=function(e){function t(t){var n;return w(b(n=e.call(this,t)||this),"_leafletEvents",void 0),w(b(n),"leafletElement",void 0),n._leafletEvents=n.extractLeafletEvents(t),n}M(t,e);var n=t.prototype;return n.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},n.componentDidUpdate=function(e){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},n.componentWillUnmount=function(){var e=this,t=this.leafletElement;t&&Object.keys(this._leafletEvents).forEach((function(n){t.off(n,e._leafletEvents[n])}))},n.extractLeafletEvents=function(e){return Object.keys(e).reduce((function(t,n){P.test(n)&&(null!=e[n]&&(t[n.replace(P,(function(e,t){return t.toLowerCase()}))]=e[n]));return t}),{})},n.bindLeafletEvents=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=this.leafletElement;if(null==n||null==n.on)return{};var r=y({},t);return Object.keys(t).forEach((function(i){null!=e[i]&&t[i]===e[i]||(delete r[i],n.off(i,t[i]))})),Object.keys(e).forEach((function(i){null!=t[i]&&e[i]===t[i]||(r[i]=e[i],n.on(i,e[i]))})),r},n.fireLeafletEvent=function(e,t){var n=this.leafletElement;n&&n.fire(e,t)},t}(r.Component),C=function(e){return void 0===e&&(e=""),e.split(" ").filter(Boolean)},j=function(e,t,n){null!=e&&n!==t&&(null!=t&&t.length>0&&function(e,t){C(t).forEach((function(t){L.DomUtil.removeClass(e,t)}))}(e,t),null!=n&&n.length>0&&function(e,t){C(t).forEach((function(t){L.DomUtil.addClass(e,t)}))}(e,n))};function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=b.length?0:T+1,Y(e)}),1e3);return function(){clearInterval(e)}}Y(b.length-1)}}),[T,_,b]),!(K(P)&&K(E)&&t&&h))return i.a.createElement("div",{className:"".concat(V.a.noMap," ").concat(n?V.a.dark:V.a.light)},i.a.createElement("div",null,"Cannot retrieve map data."),i.a.createElement("div",null,"Did you enter an API key?"));var C=c?[c.latitude,c.longitude]:null;return i.a.createElement(z,{ref:g,center:[P,E],zoom:t,style:{width:"100%",height:"100%"},attributionControl:!1,touchZoom:!0,dragging:!0,fadeAnimation:!1,onClick:y},i.a.createElement(I,{position:"bottomleft"}),i.a.createElement(F,{attribution:'© Mapbox',url:"https://api.mapbox.com/styles/v1/mapbox/".concat(n?"dark-v10":"light-v10","/tiles/{z}/{x}/{y}?access_token={apiKey}"),apiKey:h}),L?i.a.createElement(F,{attribution:'RainViewer',url:"https://tilecache.rainviewer.com/v2/radar/".concat(L,"/{size}/{z}/{x}/{y}/{color}/{smooth}_{snow}.png"),opacity:.3,size:512,color:6,smooth:1,snow:1}):null,m&&C?i.a.createElement(R,{position:C,opacity:.65}):null)};G.propTypes={zoom:f.a.number.isRequired,dark:f.a.bool};function K(e){return!(!e&&0!==e)}f.a.string.isRequired,f.a.string;var $=G;function Q(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function X(e){Q(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function ee(e){Q(1,arguments);var t=X(e);return!isNaN(t)}var te={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ne(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var re={date:ne({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ne({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ne({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ie={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ae(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function oe(e){return function(t,n){var r=String(t),i=n||{},a=i.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],s=r.match(o);if(!s)return null;var l,u=s[0],d=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(d)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:re,formatRelative:function(e,t,n,r){return ie[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ae({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ae({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:ae({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ae({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ae({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(se={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},i=n.match(se.matchPattern);if(!i)return null;var a=i[0],o=n.match(se.parsePattern);if(!o)return null;var s=se.valueCallback?se.valueCallback(o[0]):o[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(a.length)}}),era:oe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:oe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:oe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:oe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:oe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ue(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function de(e,t){Q(2,arguments);var n=X(e).getTime(),r=ue(t);return new Date(n+r)}function ce(e,t){Q(2,arguments);var n=ue(t);return de(e,-n)}function he(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return he("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):he(n+1,2)},d:function(e,t){return he(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return he(e.getUTCHours()%12||12,t.length)},H:function(e,t){return he(e.getUTCHours(),t.length)},m:function(e,t){return he(e.getUTCMinutes(),t.length)},s:function(e,t){return he(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return he(Math.floor(r*Math.pow(10,n-3)),t.length)}};function me(e){Q(1,arguments);var t=1,n=X(e),r=n.getUTCDay(),i=(r=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function pe(e){Q(1,arguments);var t=_e(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=me(n);return r}function ge(e,t){Q(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:ue(i),o=null==n.weekStartsOn?a:ue(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=X(e),l=s.getUTCDay(),u=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var d=ge(u,t),c=new Date(0);c.setUTCFullYear(r,0,l),c.setUTCHours(0,0,0,0);var h=ge(c,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function ve(e,t){Q(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,a=null==i?1:ue(i),o=null==n.firstWeekContainsDate?a:ue(n.firstWeekContainsDate),s=ye(e,t),l=new Date(0);l.setUTCFullYear(s,0,o),l.setUTCHours(0,0,0,0);var u=ge(l,t);return u}var be="midnight",Me="noon",we="morning",Le="afternoon",ke="evening",xe="night";function Te(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(0===a)return n+String(i);var o=t||"";return n+String(i)+o+he(a,2)}function Ye(e,t){return e%60==0?(e>0?"-":"+")+he(Math.abs(e)/60,2):De(e,t)}function De(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+he(Math.floor(i/60),2)+n+he(i%60,2)}var Se={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return fe.y(e,t)},Y:function(e,t,n,r){var i=ye(e,r),a=i>0?i:1-i;return"YY"===t?he(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):he(a,t.length)},R:function(e,t){return he(_e(e),t.length)},u:function(e,t){return he(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return he(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return he(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return fe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return he(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){Q(1,arguments);var n=X(e),r=ge(n,t).getTime()-ve(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):he(i,t.length)},I:function(e,t,n){var r=function(e){Q(1,arguments);var t=X(e),n=me(t).getTime()-pe(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):he(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):fe.d(e,t)},D:function(e,t,n){var r=function(e){Q(1,arguments);var t=X(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):he(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return he(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return he(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return he(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?Me:0===i?be:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?ke:i>=12?Le:i>=4?we:xe,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return fe.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):fe.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):fe.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):fe.s(e,t)},S:function(e,t){return fe.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Ye(i);case"XXXX":case"XX":return De(i);case"XXXXX":case"XXX":default:return De(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ye(i);case"xxxx":case"xx":return De(i);case"xxxxx":case"xxx":default:return De(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Te(i,":");case"OOOO":default:return"GMT"+De(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Te(i,":");case"zzzz":default:return"GMT"+De(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return he(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return he((r._originalDate||e).getTime(),t.length)}};function Pe(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Ee(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var Ce={p:Ee,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],a=r[2];if(!a)return Pe(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Pe(i,t)).replace("{{time}}",Ee(a,t))}};function je(e){return e.getTime()%6e4}function Oe(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+je(t))%6e4:je(t))}var He=["D","DD"],Ae=["YY","YYYY"];function ze(e){return-1!==He.indexOf(e)}function Ie(e){return-1!==Ae.indexOf(e)}function Ne(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var We=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,qe=/''/g,Be=/[a-zA-Z]/;function Ue(e,t,n){Q(2,arguments);var r=String(t),i=n||{},a=i.locale||le,o=a.options&&a.options.firstWeekContainsDate,s=null==o?1:ue(o),l=null==i.firstWeekContainsDate?s:ue(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=a.options&&a.options.weekStartsOn,d=null==u?0:ue(u),c=null==i.weekStartsOn?d:ue(i.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var h=X(e);if(!ee(h))throw new RangeError("Invalid time value");var f=Oe(h),m=ce(h,f),_={firstWeekContainsDate:l,weekStartsOn:c,locale:a,_originalDate:h},p=r.match(Fe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ce[t])(e,a.formatLong,_):e})).join("").match(We).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Ve(n);var o=Se[r];if(o)return!i.useAdditionalWeekYearTokens&&Ie(n)&&Ne(n,t,e),!i.useAdditionalDayOfYearTokens&&ze(n)&&Ne(n,t,e),o(m,n,a.localize,_);if(r.match(Be))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return p}function Ve(e){return e.match(Re)[1].replace(qe,"'")}var Ze=n(36),Je=n.n(Ze),Ge=n(5),Ke=n(210),$e=n.n(Ke),Qe=n(211),Xe=n.n(Qe),et=n(212),tt=n.n(et),nt=function(){var e=Object(r.useContext)(p),t=e.sunriseTime,n=e.sunsetTime,a=e.clockTime;return t&&n?i.a.createElement("div",{className:tt.a.container},i.a.createElement("div",null,i.a.createElement(Ge.InlineIcon,{icon:Xe.a}),i.a.createElement("span",null,Ue(new Date(t),"12"===a?"p":"HH:mm"))),i.a.createElement("div",null,i.a.createElement(Ge.InlineIcon,{icon:$e.a}),i.a.createElement("span",null,Ue(new Date(n),"12"===a?"p":"HH:mm")))):null};function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return it(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return it(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn&&ie.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&(i-=1)),[360*i,100*a,100*u]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var r=n[e];if(r)return r;var i,a,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var u=t[l],d=(a=e,o=u,Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));d.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=o+1/3*-(u-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*a;return i},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=a<=1?a:2-a,[t,100*(0===r?2*i/(a+i):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){var t,n,r,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[i,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},i.hwb.rgb=function(e){var t,n,r,i,a,o,s,l=e[0]/360,u=e[1]/100,d=e[2]/100,c=u+d;switch(c>1&&(u/=c,d/=c),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=u+r*((n=1-d)-u),t){default:case 6:case 0:a=n,o=i,s=u;break;case 1:a=i,o=n,s=u;break;case 2:a=u,o=n,s=i;break;case 3:a=u,o=i,s=n;break;case 4:a=i,o=u,s=n;break;case 5:a=n,o=u,s=i}return[255*a,255*o,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},i.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},i.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.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 n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(Math.max(n,r),i),o=Math.min(Math.min(n,r),i),s=a-o;return t=s<=0?0:a===n?(r-i)/s%6:a===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,a=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return i=(1-n)*r,[255*(n*a[0]+i),255*(n*a[1]+i),255*(n*a[2]+i)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function r(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,i=0;i1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var s=o,l={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]},u={getRgba:d,getHsla:c,getRgb:function(e){var t=d(e);return t&&t.slice(0,3)},getHsl:function(e){var t=c(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=d(e);return t||(t=c(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+g(e[0])+g(e[1])+g(e[2])+(t>=0&&t<1?g(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:m,hslString:function(e,t){return t<1||e[3]&&e[3]<1?_(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:_,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return y[e.slice(0,3)]}};function d(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var a=0;an?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,i=2*r-1,a=this.alpha()-n.alpha(),o=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new b,r=this.values,i=n.values;for(var a in r)r.hasOwnProperty(a)&&(e=r[a],"[object Array]"===(t={}.toString.call(e))?i[a]=e.slice(0):"[object Number]"===t?i[a]=e:console.error("unexpected color value:",e));return n}},b.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;i--)t.call(n,e[i],i);else for(i=0;i=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-x.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*x.easeInBounce(2*e):.5*x.easeOutBounce(2*e-1)+.5}},T={effects:x};k.easingEffects=x;var Y=Math.PI,D=Y/180,S=2*Y,P=Y/2,E=Y/4,C=2*Y/3,j={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,a){if(a){var o=Math.min(a,i/2,r/2),s=t+o,l=n+o,u=t+r-o,d=n+i-o;e.moveTo(t,l),st.left-1e-6&&e.xt.top-1e-6&&e.y0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,i=this.animations,a=0;a=n?(F.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(a,1)):++a}},Q=F.options.resolve,X=["push","pop","shift","splice","unshift"];function ee(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(X.forEach((function(t){delete e[t]})),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};F.extend(te.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,r=this.getDataset(),i=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!r.xAxisID||(e.xAxisID=r.xAxisID||i.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!r.yAxisID||(e.yAxisID=r.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ee(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(e=0,t=r.length;en&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;ni?(a=i/t.innerRadius,e.arc(o,s,t.innerRadius-i,r+a,n-a,!0)):e.arc(o,s,i,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,r){var i,a=n.endAngle;for(r&&(n.endAngle=n.startAngle+re,ie(e,n),n.endAngle=a,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),i=0;is;)i-=re;for(;i=o&&i<=s,u=a>=n.innerRadius&&a<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){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(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+re,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;ee.x&&(t=ge(t,"left","right")):e.basen?n:r,r:l.right||i<0?0:i>t?t:i,b:l.bottom||a<0?0:a>n?n:a,l:l.left||o<0?0:o>t?t:o}}function ve(e,t,n){var r=null===t,i=null===n,a=!(!e||r&&i)&&pe(e);return a&&(r||t>=a.left&&t<=a.right)&&(i||n>=a.top&&n<=a.bottom)}A._set("global",{elements:{rectangle:{backgroundColor:me,borderColor:me,borderSkipped:"bottom",borderWidth:0}}});var be=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=pe(e),n=t.right-t.left,r=t.bottom-t.top,i=ye(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(t),r=n.outer,i=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return ve(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return _e(n)?ve(n,e,null):ve(n,null,t)},inXRange:function(e){return ve(this._view,e,null)},inYRange:function(e){return ve(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return _e(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return _e(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Me={},we=oe,Le=ue,ke=fe,xe=be;Me.Arc=we,Me.Line=Le,Me.Point=ke,Me.Rectangle=xe;var Te=F._deprecated,Ye=F.valueOrDefault;function De(e,t,n){var r,i,a=n.barThickness,o=t.stackCount,s=t.pixels[e],l=F.isNullOrUndef(a)?function(e,t){var n,r,i,a,o=e._length;for(i=1,a=t.length;i0?Math.min(o,Math.abs(r-n)):o,n=r;return o}(t.scale,t.pixels):-1;return F.isNullOrUndef(a)?(r=l*n.categoryPercentage,i=n.barPercentage):(r=a*o,i=1),{chunk:r/o,ratio:i,start:s-r/2}}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}}});var Se=ne.extend({dataElementType:Me.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ne.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Te("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Te("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Te("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Te("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Te("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t=0&&_.min>=0?_.min:_.max,b=void 0===_.start?_.end:_.max>=0&&_.min>=0?_.max-_.min:_.min-_.max,M=m.length;if(g||void 0===g&&void 0!==y)for(r=0;r=0&&u.max>=0?u.max:u.min,(_.min<0&&a<0||_.max>=0&&a>0)&&(v+=a));return o=c.getPixelForValue(v),l=(s=c.getPixelForValue(v+b))-o,void 0!==p&&Math.abs(l)=0&&!h||b<0&&h?o-p:o+p),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var i="flex"===r.barThickness?function(e,t,n){var r,i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e=Oe?-He:y<-Oe?He:0)+p,b=Math.cos(y),M=Math.sin(y),w=Math.cos(v),L=Math.sin(v),k=y<=0&&v>=0||v>=He,x=y<=Ae&&v>=Ae||v>=He+Ae,T=y<=-Ae&&v>=-Ae||v>=Oe+Ae,Y=y===-Oe||v>=Oe?-1:Math.min(b,b*_,w,w*_),D=T?-1:Math.min(M,M*_,L,L*_),S=k?1:Math.max(b,b*_,w,w*_),P=x?1:Math.max(M,M*_,L,L*_);u=(S-Y)/2,d=(P-D)/2,c=-(S+Y)/2,h=-(P+D)/2}for(r=0,i=m.length;r0&&!isNaN(e)?He*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,a,o,s,l,u=0,d=this.chart;if(!e)for(t=0,n=d.data.datasets.length;t(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=F.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=je(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=je(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=je(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n0&&Fe(l[e-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),e0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return rt(e,t,{intersect:!1})},point:function(e,t){return et(e,Qe(t,e))},nearest:function(e,t,n){var r=Qe(t,e);n.axis=n.axis||"xy";var i=nt(n.axis);return tt(e,r,n.intersect,i)},x:function(e,t,n){var r=Qe(t,e),i=[],a=!1;return Xe(e,(function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(a=!0)})),n.intersect&&!a&&(i=[]),i},y:function(e,t,n){var r=Qe(t,e),i=[],a=!1;return Xe(e,(function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(a=!0)})),n.intersect&&!a&&(i=[]),i}}},at=F.extend;function ot(e,t){return F.where(e,(function(e){return e.pos===t}))}function st(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function lt(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ut(e,t,n){var r,i,a=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?a.height:a.width,e[n.pos]+=n.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(r=t.outerWidth-lt(o,e,"left","right"),i=t.outerHeight-lt(o,e,"top","bottom"),r!==e.w||i!==e.h)return e.w=r,e.h=i,n.horizontal?r!==e.w:i!==e.h}function dt(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function ct(e,t,n){var r,i,a,o,s,l,u=[];for(r=0,i=e.length;r div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&ft.default||ft,pt=["animationstart","webkitAnimationStart"],gt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function yt(e,t){var n=F.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var vt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function bt(e,t,n){e.addEventListener(t,n,vt)}function Mt(e,t,n){e.removeEventListener(t,n,vt)}function wt(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Lt(e){var t=document.createElement("div");return t.className=e||"",t}function kt(e,t,n){var r,i,a,o,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=Lt("chartjs-size-monitor"),n=Lt("chartjs-size-monitor-expand"),r=Lt("chartjs-size-monitor-shrink");n.appendChild(Lt()),r.appendChild(Lt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var i=function(){t._reset(),e()};return bt(n,"scroll",i.bind(n,"expand")),bt(r,"scroll",i.bind(r,"shrink")),t}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,i=r?r.clientWidth:0;t(wt("resize",n)),r&&r.clientWidth0){var a=e[0];a.label?n=a.label:a.xLabel?n=a.xLabel:i>0&&a.index-1?e.split("\n"):e}function At(e){var t=A.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function zt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function It(e){return Ot([],Ht(e))}var Nt=J.extend({initialize:function(){this._model=At(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,r=n.beforeTitle.apply(e,arguments),i=n.title.apply(e,arguments),a=n.afterTitle.apply(e,arguments),o=[];return o=Ot(o,Ht(r)),o=Ot(o,Ht(i)),o=Ot(o,Ht(a))},getBeforeBody:function(){return It(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return F.each(e,(function(e){var a={before:[],lines:[],after:[]};Ot(a.before,Ht(r.beforeLabel.call(n,e,t))),Ot(a.lines,r.label.call(n,e,t)),Ot(a.after,Ht(r.afterLabel.call(n,e,t))),i.push(a)})),i},getAfterBody:function(){return It(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),a=[];return a=Ot(a,Ht(n)),a=Ot(a,Ht(r)),a=Ot(a,Ht(i))},update:function(e){var t,n,r,i,a,o,s,l,u,d,c=this,h=c._options,f=c._model,m=c._model=At(h),_=c._active,p=c._data,g={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},v={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(_.length){m.opacity=1;var M=[],w=[];b=jt[h.position].call(c,_,c._eventPosition);var L=[];for(t=0,n=_.length;tr.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===d?a+=c:a-="bottom"===d?t.height+c:t.height/2,"center"===d?"left"===u?i+=c:"right"===u&&(i-=c):"left"===u?i-=h:"right"===u&&(i+=h),{x:i,y:a}}(m,v,g=function(e,t){var n,r,i,a,o,s=e._model,l=e._chart,u=e._chart.chartArea,d="center",c="center";s.yl.height-t.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===c?(n=function(e){return e<=h},r=function(e){return e>h}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(d="left",i(s.x)&&(d="center",c=o(s.y))):r(s.x)&&(d="right",a(s.x)&&(d="center",c=o(s.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:d,yAlign:m.yAlign?m.yAlign:c}}(this,v),c._chart)}else m.opacity=0;return m.xAlign=g.xAlign,m.yAlign=g.yAlign,m.x=y.x,m.y=y.y,m.width=v.width,m.height=v.height,m.caretX=b.x,m.caretY=b.y,c._model=m,e&&h.custom&&h.custom.call(c,m),c},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,a,o,s,l,u=n.caretSize,d=n.cornerRadius,c=n.xAlign,h=n.yAlign,f=e.x,m=e.y,_=t.width,p=t.height;if("center"===h)s=m+p/2,"left"===c?(i=(r=f)-u,a=r,o=s+u,l=s-u):(i=(r=f+_)+u,a=r,o=s-u,l=s+u);else if("left"===c?(r=(i=f+d+u)-u,a=i+u):"right"===c?(r=(i=f+_-d-u)-u,a=i+u):(r=(i=n.caretX)-u,a=i+u),"top"===h)s=(o=m)-u,l=o;else{s=(o=m+p)+u,l=o;var g=a;a=r,r=g}return{x1:r,x2:i,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var r,i,a,o=t.title,s=o.length;if(s){var l=Ct(t.rtl,t.x,t.width);for(e.x=zt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,i=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=F.fontString(r,t._titleFontStyle,t._titleFontFamily),a=0;a0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,F.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),F.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&n._active.reverse()),(t=!F.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Wt=jt,Ft=Nt;Ft.positioners=Wt;var Rt=F.valueOrDefault;function qt(){return F.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,a,o,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||o.type&&o.type!==t[e][i].type?F.merge(t[e][i],[Pt.getScaleDefaults(a),o]):F.merge(t[e][i],o)}else F._merger(e,t,n,r)}})}function Bt(){return F.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||{},a=n[e];"scales"===e?t[e]=qt(i,a):"scale"===e?t[e]=F.merge(i,[Pt.getScaleDefaults(a.type),a]):F._merger(e,t,n,r)}})}function Ut(e){var t=e.options;F.each(e.scales,(function(t){mt.removeBox(e,t)})),t=Bt(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 Vt(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(F.findIndex(e,i)>=0);return r}function Zt(e){return"top"===e||"bottom"===e}function Jt(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}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});var Gt=function(e,t){return this.construct(e,t),this};F.extend(Gt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Bt(A.global,A[e.type],e.options||{}),e}(t);var r=Dt.acquireContext(e,t),i=r&&r.canvas,a=i&&i.height,o=i&&i.width;n.id=F.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Gt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return St.notify(e,"beforeInit"),F.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),St.notify(e,"afterInit"),e},clear:function(){return F.canvas.clear(this),this},stop:function(){return $.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(F.getMaximumWidth(r))),o=Math.max(0,Math.floor(i?a/i:F.getMaximumHeight(r)));if((t.width!==a||t.height!==o)&&(r.width=t.width=a,r.height=t.height=o,r.style.width=a+"px",r.style.height=o+"px",F.retinaScale(t,n.devicePixelRatio),!e)){var s={width:a,height:o};St.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;F.each(t.xAxes,(function(e,n){e.id||(e.id=Vt(t.xAxes,"x-axis-",n))})),F.each(t.yAxes,(function(e,n){e.id||(e.id=Vt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.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"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),F.each(r,(function(t){var r=t.options,a=r.id,o=Rt(r.type,t.dtype);Zt(r.position)!==Zt(t.dposition)&&(r.position=t.dposition),i[a]=!0;var s=null;if(a in n&&n[a].type===o)(s=n[a]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=Pt.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),F.each(i,(function(e,t){e||delete n[t]})),e.scales=n,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e=0;--n)this.drawDataset(t[n],e);St.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==St.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),St.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==St.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),St.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return it.modes.single(this,e)},getElementsAtEvent:function(e){return it.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return it.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=it.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return it.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=F.log10(Math.abs(r)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=F.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(i);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(F.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},tn=F.isArray,nn=F.isNullOrUndef,rn=F.valueOrDefault,an=F.valueAtIndexOrDefault;function on(e,t,n){var r,i=e.getTicks().length,a=Math.min(t,i-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel;if(!(n&&(r=1===i?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=al+1e-6)))return o}function sn(e,t,n,r){var i,a,o,s,l,u,d,c,h,f,m,_,p,g=n.length,y=[],v=[],b=[];for(i=0;it){for(n=0;n=h||d<=1||!s.isHorizontal()?s.labelRotation=c:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=l.offset?s.maxWidth/d:r/(d-1))&&(i=r/(d-(l.offset?.5:1)),a=s.maxHeight-ln(l.gridLines)-u.padding-un(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=F.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(c,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){F.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){F.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,a=r.scaleLabel,o=r.gridLines,s=e._isVisible(),l="bottom"===r.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=ln(o)+un(a)),u?s&&(t.height=ln(o)+un(a)):t.height=e.maxHeight,i.display&&s){var d=cn(i),c=e._getLabelSizes(),h=c.first,f=c.last,m=c.widest,_=c.highest,p=.4*d.minor.lineHeight,g=i.padding;if(u){var y=0!==e.labelRotation,v=F.toRadians(e.labelRotation),b=Math.cos(v),M=Math.sin(v),w=M*m.width+b*(_.height-(y?_.offset:0))+(y?0:p);t.height=Math.min(e.maxHeight,t.height+w+g);var L,k,x=e.getPixelForTick(0)-e.left,T=e.right-e.getPixelForTick(e.getTicks().length-1);y?(L=l?b*h.width+M*h.offset:M*(h.height-h.offset),k=l?M*(f.height-f.offset):b*f.width+M*f.offset):(L=h.width/2,k=f.width/2),e.paddingLeft=Math.max((L-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((k-T)*e.width/(e.width-T),0)+3}else{var Y=i.mirror?0:m.width+g+p;t.width=Math.min(e.maxWidth,t.width+Y),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;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(){F.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(nn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),n=0,r=e.length;nn-1?null:this.getPixelForDecimal(e*r+(t?r/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,i,a=this.options.ticks,o=this._length,s=a.maxTicksLimit||o/this._tickSize()+1,l=a.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;ts)return function(e,t,n){var r,i,a=0,o=t[0];for(n=Math.ceil(n),r=0;ru)return a;return Math.max(u,1)}(l,e,0,s),u>0){for(t=0,n=u-1;t1?(c-d)/(u-1):null,fn(e,r,F.isNullOrUndef(i)?0:d-i,d),fn(e,r,c,F.isNullOrUndef(i)?e.length:c+i),hn(e)}return fn(e,r),hn(e)},_tickSize:function(){var e=this.options.ticks,t=F.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r=0&&(o=e),void 0!==a&&(e=n.indexOf(a))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;_n.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,a,o=this;return pn(t)||pn(n)||(e=o.chart.data.datasets[n].data[t]),pn(e)||(r=o.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=o._getLabels(),e=F.valueOrDefault(r,e),t=-1!==(a=i.indexOf(e))?a:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),yn={position:"bottom"};gn._defaults=yn;var vn=F.noop,bn=F.isNullOrUndef,Mn=_n.extend({getRightValue:function(e){return"string"==typeof e?+e:_n.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=F.sign(e.min),r=F.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:vn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:F.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var n,r,i,a,o=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,d=e.min,c=e.max,h=e.precision,f=t.min,m=t.max,_=F.niceNum((m-f)/u/l)*l;if(_<1e-14&&bn(d)&&bn(c))return[f,m];(a=Math.ceil(m/_)-Math.floor(f/_))>u&&(_=F.niceNum(a*_/u/l)*l),s||bn(h)?n=Math.pow(10,F._decimalPlaces(_)):(n=Math.pow(10,h),_=Math.ceil(_*n)/n),r=Math.floor(f/_)*_,i=Math.ceil(m/_)*_,s&&(!bn(d)&&F.almostWhole(d/_,_/1e3)&&(r=d),!bn(c)&&F.almostWhole(c/_,_/1e3)&&(i=c)),a=(i-r)/_,a=F.almostEquals(a,Math.round(a),_/1e3)?Math.round(a):Math.ceil(a),r=Math.round(r*n)/n,i=Math.round(i*n)/n,o.push(bn(d)?r:d);for(var p=1;pt.length-1?null:this.getPixelForValue(t[e])}}),Tn=wn;xn._defaults=Tn;var Yn=F.valueOrDefault,Dn=F.math.log10,Sn={position:"left",ticks:{callback:en.formatters.logarithmic}};function Pn(e,t){return F.isFinite(e)&&e>=0?e:t}var En=_n.extend({determineDataLimits:function(){var e,t,n,r,i,a,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function c(e){return d?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e0){var t=F.min(e),n=F.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}}))}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Pn(t.min),max:Pn(t.max)},i=e.ticks=function(e,t){var n,r,i=[],a=Yn(e.min,Math.pow(10,Math.floor(Dn(t.min)))),o=Math.floor(Dn(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(n=Math.floor(Dn(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(a),a=r*Math.pow(10,n)):(n=Math.floor(Dn(a)),r=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(a),10==++r&&(r=1,l=++n>=0?1:l),a=Math.round(r*Math.pow(10,n)*l)/l}while(nt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;_n.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Yn(e.options.ticks.fontSize,A.global.defaultFontSize)/e._length),e._startValue=Dn(t),e._valueOffset=n,e._valueRange=(Dn(e.max)-Dn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Cn=Sn;En._defaults=Cn;var jn=F.valueOrDefault,On=F.valueAtIndexOrDefault,Hn=F.options.resolve,An={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:en.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function zn(e){var t=e.ticks;return t.display&&e.display?jn(t.fontSize,A.global.defaultFontSize)+2*t.backdropPaddingY:0}function In(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function Nn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Wn(e,t,n,r){var i,a,o=n.y+r/2;if(F.isArray(t))for(i=0,a=t.length;i270||e<90)&&(n.y-=t.h)}function Rn(e){return F.isNumber(e)?e:0}var qn=Mn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=zn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;F.each(t.data.datasets,(function(i,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a);F.each(i.data,(function(t,i){var a=+e.getRightValue(t);isNaN(a)||o.data[i].hidden||(n=Math.min(a,n),r=Math.max(a,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/zn(this.options))},convertTicksToLabels:function(){var e=this;Mn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=F.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,r,i=F.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=i.string,e._pointLabelSizes=[];var s,l,u,d=e.chart.data.labels.length;for(t=0;ta.r&&(a.r=f.end,o.r=c),m.starta.b&&(a.b=m.end,o.b=c)}e.setReductions(e.drawingArea,a,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),a=Math.max(t.r-r.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Rn(i),a=Rn(a),o=Rn(o),s=Rn(s),r.drawingArea=Math.min(Math.floor(e-(i+a)/2),Math.floor(e-(o+s)/2)),r.setCenterPoint(i,a,o,s)},setCenterPoint:function(e,t,n,r){var i=this,a=i.width-t-i.drawingArea,o=e+i.drawingArea,s=n+i.drawingArea,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(F.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,a=r.options,o=a.gridLines,s=a.angleLines,l=jn(s.lineWidth,o.lineWidth),u=jn(s.color,o.color);if(a.pointLabels.display&&function(e){var t=e.ctx,n=e.options,r=n.pointLabels,i=zn(n),a=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=F.options._parseFont(r);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,u=e.getPointPosition(s,a+l+5),d=On(r.fontColor,s,A.global.defaultFontColor);t.fillStyle=d;var c=e.getIndexAngle(s),h=F.toDegrees(c);t.textAlign=Nn(h),Fn(h,e._pointLabelSizes[s],u),Wn(t,e.pointLabels[s],u,o.lineHeight)}t.restore()}(r),o.display&&F.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(e,t,n,r){var i,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=On(t.color,r-1),u=On(t.lineWidth,r-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),a.moveTo(i.x,i.y);for(var d=1;d=0;e--)t=r.getDistanceFromCenterForValue(a.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,i,a=e.getIndexAngle(0),o=F.options._parseFont(n),s=jn(n.fontColor,A.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",F.each(e.ticks,(function(a,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(i=t.measureText(a).width,t.fillStyle=n.backdropColor,t.fillRect(-i/2-n.backdropPaddingX,-r-o.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-r))})),t.restore()}},_drawTitle:F.noop}),Bn=An;qn._defaults=Bn;var Un=F._deprecated,Vn=F.options.resolve,Zn=F.valueOrDefault,Jn=Number.MIN_SAFE_INTEGER||-9007199254740991,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Kn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},$n=Object.keys(Kn);function Qn(e,t){return e-t}function Xn(e){return F.valueOrDefault(e.time.min,e.ticks.min)}function er(e){return F.valueOrDefault(e.time.max,e.ticks.max)}function tr(e,t,n,r){var i=function(e,t,n){for(var r,i,a,o=0,s=e.length-1;o>=0&&o<=s;){if(i=e[(r=o+s>>1)-1]||null,a=e[r],!i)return{lo:null,hi:a};if(a[t]n))return{lo:i,hi:a};s=r-1}}return{lo:a,hi:null}}(e,t,n),a=i.lo?i.hi?i.lo:e[e.length-2]:e[0],o=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=o[t]-a[t],l=s?(n-a[t])/s:0,u=(o[r]-a[r])*l;return a[r]+u}function nr(e,t){var n=e._adapter,r=e.options.time,i=r.parser,a=i||r.format,o=t;return"function"==typeof i&&(o=i(o)),F.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(i||"function"!=typeof a||(o=a(t),F.isFinite(o)||(o=n.parse(o))),o)}function rr(e,t){if(F.isNullOrUndef(t))return null;var n=e.options.time,r=nr(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function ir(e,t,n,r){var i,a,o,s=$n.length;for(i=$n.indexOf(e);i=0&&(t[a].major=!0);return t}(e,a,o,n):a}var or=_n.extend({initialize:function(){this.mergeTicksOptions(),_n.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new Xt._date(t.adapters.date);return Un("time scale",n.format,"time.format","time.parser"),Un("time scale",n.min,"time.min","ticks.min"),Un("time scale",n.max,"time.max","ticks.max"),F.mergeIf(n.displayFormats,r.formats()),_n.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),_n.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,a,o,s=this,l=s.chart,u=s._adapter,d=s.options,c=d.time.unit||"day",h=Gn,f=Jn,m=[],_=[],p=[],g=s._getLabels();for(e=0,n=g.length;e1?function(e){var t,n,r,i={},a=[];for(t=0,n=e.length;t1e5*u)throw t+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(i=c;i=i&&n<=a&&d.push(n);return r.min=i,r.max=a,r._unit=l.unit||(s.autoSkip?ir(l.minUnit,r.min,r.max,c):function(e,t,n,r,i){var a,o;for(a=$n.length-1;a>=$n.indexOf(n);a--)if(o=$n[a],Kn[o].common&&e._adapter.diff(i,r,o)>=t-1)return o;return $n[n?$n.indexOf(n):0]}(r,d.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(e){for(var t=$n.indexOf(e)+1,n=$n.length;tt&&s=0&&e0?s:1}}),sr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};or._defaults=sr;var lr={category:gn,linear:xn,logarithmic:En,radialLinear:qn,time:or},ur={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"};Xt._date.override("function"==typeof e?{_id:"moment",formats:function(){return ur},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),A._set("global",{plugins:{filler:{propagate:!0}}});var dr={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],a=i.length||0;return a?function(e,t){return t=n)&&r;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function hr(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,r,i,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,u=e.fill,d=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,r=o.getPointPositionForValue(0,t),i=0;i0;--a)F.canvas.lineTo(e,n[a],n[a-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),a=i-1;a>0;--a)e.arc(o,s,l,n[a].angle,n[a-1].angle,!0)}}function gr(e,t,n,r,i,a){var o,s,l,u,d,c,h,f,m=t.length,_=r.spanGaps,p=[],g=[],y=0,v=0;for(e.beginPath(),o=0,s=m;o=0;--n)(t=l[n].$filler)&&t.visible&&(i=(r=t.el)._view,a=r._children||[],o=t.mapper,s=i.backgroundColor||A.global.defaultColor,o&&s&&a.length&&(F.canvas.clipArea(u,e.chartArea),gr(u,a,o,i,s,r._loop),F.canvas.unclipArea(u)))}},vr=F.rtl.getRtlAdapter,br=F.noop,Mr=F.valueOrDefault;function wr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}A._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),a=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,n=a.length;tl.width)&&(c+=o+n.padding,d[d.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:o},d[d.length-1]+=r+n.padding})),l.height+=c}else{var h=n.padding,f=e.columnWidths=[],m=e.columnHeights=[],_=n.padding,p=0,g=0;F.each(e.legendItems,(function(e,t){var r=wr(n,o)+o/2+i.measureText(e.text).width;t>0&&g+o+2*h>l.height&&(_+=p+n.padding,f.push(p),m.push(g),p=0,g=0),p=Math.max(p,r),g+=o+h,s[t]={left:0,top:0,width:r,height:o}})),_+=p,f.push(p),m.push(g),l.width+=_}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:br,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=A.global,i=r.defaultColor,a=r.elements.line,o=e.height,s=e.columnHeights,l=e.width,u=e.lineWidths;if(t.display){var d,c=vr(t.rtl,e.left,e.minSize.width),h=e.ctx,f=Mr(n.fontColor,r.defaultFontColor),m=F.options._parseFont(n),_=m.size;h.textAlign=c.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=m.string;var p=wr(n,_),g=e.legendHitBoxes,y=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},v=e.isHorizontal();d=v?{x:e.left+y(l,u[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(o,s[0]),line:0},F.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=_+n.padding;F.each(e.legendItems,(function(t,r){var f=h.measureText(t.text).width,m=p+_/2+f,M=d.x,w=d.y;c.setWidth(e.minSize.width),v?r>0&&M+m+n.padding>e.left+e.minSize.width&&(w=d.y+=b,d.line++,M=d.x=e.left+y(l,u[d.line])):r>0&&w+b>e.top+e.minSize.height&&(M=d.x=M+e.columnWidths[d.line]+n.padding,d.line++,w=d.y=e.top+y(o,s[d.line]));var L=c.x(M);!function(e,t,r){if(!(isNaN(p)||p<=0)){h.save();var o=Mr(r.lineWidth,a.borderWidth);if(h.fillStyle=Mr(r.fillStyle,i),h.lineCap=Mr(r.lineCap,a.borderCapStyle),h.lineDashOffset=Mr(r.lineDashOffset,a.borderDashOffset),h.lineJoin=Mr(r.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Mr(r.strokeStyle,i),h.setLineDash&&h.setLineDash(Mr(r.lineDash,a.borderDash)),n&&n.usePointStyle){var s=p*Math.SQRT2/2,l=c.xPlus(e,p/2),u=t+_/2;F.canvas.drawPoint(h,r.pointStyle,s,l,u,r.rotation)}else h.fillRect(c.leftForLtr(e,p),t,p,_),0!==o&&h.strokeRect(c.leftForLtr(e,p),t,p,_);h.restore()}}(L,w,t),g[r].left=c.leftForLtr(L,g[r].width),g[r].top=w,function(e,t,n,r){var i=_/2,a=c.xPlus(e,p+i),o=t+i;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(c.xPlus(a,r),o),h.stroke())}(L,w,t,f),v?d.x+=m+n.padding:d.y+=b})),F.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,i,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(i=a.legendHitBoxes,n=0;n=(r=i[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return a.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function kr(e,t){var n=new Lr({ctx:e.ctx,options:t,chart:e});mt.configure(e,n,t),mt.addBox(e,n),e.legend=n}var xr={id:"legend",_element:Lr,beforeInit:function(e){var t=e.options.legend;t&&kr(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(F.mergeIf(t,A.global.legend),n?(mt.configure(e,n,t),n.options=t):kr(e,t)):n&&(mt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Tr=F.noop;A._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Yr=J.extend({initialize:function(e){F.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Tr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Tr,beforeSetDimensions:Tr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(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:Tr,beforeBuildLabels:Tr,buildLabels:Tr,afterBuildLabels:Tr,beforeFit:Tr,fit:function(){var e,t=this,n=t.options,r=t.minSize={},i=t.isHorizontal();n.display?(e=(F.isArray(n.text)?n.text.length:1)*F.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=i?t.maxWidth:e,t.height=r.height=i?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Tr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,a,o=F.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,d=e.top,c=e.left,h=e.bottom,f=e.right;t.fillStyle=F.valueOrDefault(n.fontColor,A.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(i=c+(f-c)/2,a=d+l,r=f-c):(i="left"===n.position?c+l:f-l,a=d+(h-d)/2,r=h-d,u=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,a),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(F.isArray(m))for(var _=0,p=0;p=0;r--){var i=e[r];if(t(i))return i}},F.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},F.almostEquals=function(e,t,n){return Math.abs(e-t)=e},F.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},F.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},F.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},F.toRadians=function(e){return e*(Math.PI/180)},F.toDegrees=function(e){return e*(180/Math.PI)},F._decimalPlaces=function(e){if(F.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},F.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},F.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},F.aliasPixel=function(e){return e%2==0?0:.5},F._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},F.splineCurve=function(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),d=l/(s+l),c=r*(u=isNaN(u)?0:u),h=r*(d=isNaN(d)?0:d);return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}},F.EPSILON=Number.EPSILON||1e-14,F.splineCurveMonotone=function(e){var t,n,r,i,a,o,s,l,u,d=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),c=d.length;for(t=0;t0?d[t-1]:null,(i=t0?d[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},F.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},F.niceNum=function(e,t){var n=Math.floor(F.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},F.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},F.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(F.getStyle(a,"padding-left")),u=parseFloat(F.getStyle(a,"padding-top")),d=parseFloat(F.getStyle(a,"padding-right")),c=parseFloat(F.getStyle(a,"padding-bottom")),h=o.right-o.left-l-d,f=o.bottom-o.top-u-c;return{x:n=Math.round((n-o.left-l)/h*a.width/t.currentDevicePixelRatio),y:r=Math.round((r-o.top-u)/f*a.height/t.currentDevicePixelRatio)}},F.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},F.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},F._calculatePadding=function(e,t,n){return(t=F.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},F._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},F.getMaximumWidth=function(e){var t=F._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-F._calculatePadding(t,"padding-left",n)-F._calculatePadding(t,"padding-right",n),i=F.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},F.getMaximumHeight=function(e){var t=F._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-F._calculatePadding(t,"padding-top",n)-F._calculatePadding(t,"padding-bottom",n),i=F.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},F.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},F.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,a=e.width;r.height=i*n,r.width=a*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=a+"px")}},F.fontString=function(e,t,n){return t+" "+e+"px "+n},F.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.font=t;var o,s,l,u,d,c=0,h=n.length;for(o=0;on.length){for(o=0;or&&(r=a),r},F.numberOfLabelLines=function(e){var t=1;return F.each(e,(function(e){F.isArray(e)&&e.length>t&&(t=e.length)})),t},F.color=w?function(e){return e instanceof CanvasGradient&&(e=A.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},F.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:F.color(e).saturate(.5).darken(.1).rgbString()}}(),Kt._adapters=Xt,Kt.Animation=K,Kt.animationService=$,Kt.controllers=$e,Kt.DatasetController=ne,Kt.defaults=A,Kt.Element=J,Kt.elements=Me,Kt.Interaction=it,Kt.layouts=mt,Kt.platform=Dt,Kt.plugins=St,Kt.Scale=_n,Kt.scaleService=Pt,Kt.Ticks=en,Kt.Tooltip=Ft,Kt.helpers.each(lr,(function(e,t){Kt.scaleService.registerScaleType(t,e,e._defaults)})),Sr)Sr.hasOwnProperty(jr)&&Kt.plugins.register(Sr[jr]);Kt.platform.initialize();var Or=Kt;return"undefined"!=typeof window&&(window.Chart=Kt),Kt.Chart=Kt,Kt.Legend=Sr.legend._element,Kt.Title=Sr.title._element,Kt.pluginService=Kt.plugins,Kt.PluginBase=Kt.Element.extend({}),Kt.canvasHelpers=Kt.helpers.canvas,Kt.layoutService=Kt.layouts,Kt.LinearScaleBase=Mn,Kt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Kt[e]=function(t,n){return new Kt(t,Kt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Or}(function(){try{return n(1)}catch(e){}}())},function(e,t,n){var r={"./af":60,"./af.js":60,"./ar":61,"./ar-dz":62,"./ar-dz.js":62,"./ar-kw":63,"./ar-kw.js":63,"./ar-ly":64,"./ar-ly.js":64,"./ar-ma":65,"./ar-ma.js":65,"./ar-sa":66,"./ar-sa.js":66,"./ar-tn":67,"./ar-tn.js":67,"./ar.js":61,"./az":68,"./az.js":68,"./be":69,"./be.js":69,"./bg":70,"./bg.js":70,"./bm":71,"./bm.js":71,"./bn":72,"./bn.js":72,"./bo":73,"./bo.js":73,"./br":74,"./br.js":74,"./bs":75,"./bs.js":75,"./ca":76,"./ca.js":76,"./cs":77,"./cs.js":77,"./cv":78,"./cv.js":78,"./cy":79,"./cy.js":79,"./da":80,"./da.js":80,"./de":81,"./de-at":82,"./de-at.js":82,"./de-ch":83,"./de-ch.js":83,"./de.js":81,"./dv":84,"./dv.js":84,"./el":85,"./el.js":85,"./en-au":86,"./en-au.js":86,"./en-ca":87,"./en-ca.js":87,"./en-gb":88,"./en-gb.js":88,"./en-ie":89,"./en-ie.js":89,"./en-il":90,"./en-il.js":90,"./en-in":91,"./en-in.js":91,"./en-nz":92,"./en-nz.js":92,"./en-sg":93,"./en-sg.js":93,"./eo":94,"./eo.js":94,"./es":95,"./es-do":96,"./es-do.js":96,"./es-us":97,"./es-us.js":97,"./es.js":95,"./et":98,"./et.js":98,"./eu":99,"./eu.js":99,"./fa":100,"./fa.js":100,"./fi":101,"./fi.js":101,"./fil":102,"./fil.js":102,"./fo":103,"./fo.js":103,"./fr":104,"./fr-ca":105,"./fr-ca.js":105,"./fr-ch":106,"./fr-ch.js":106,"./fr.js":104,"./fy":107,"./fy.js":107,"./ga":108,"./ga.js":108,"./gd":109,"./gd.js":109,"./gl":110,"./gl.js":110,"./gom-deva":111,"./gom-deva.js":111,"./gom-latn":112,"./gom-latn.js":112,"./gu":113,"./gu.js":113,"./he":114,"./he.js":114,"./hi":115,"./hi.js":115,"./hr":116,"./hr.js":116,"./hu":117,"./hu.js":117,"./hy-am":118,"./hy-am.js":118,"./id":119,"./id.js":119,"./is":120,"./is.js":120,"./it":121,"./it-ch":122,"./it-ch.js":122,"./it.js":121,"./ja":123,"./ja.js":123,"./jv":124,"./jv.js":124,"./ka":125,"./ka.js":125,"./kk":126,"./kk.js":126,"./km":127,"./km.js":127,"./kn":128,"./kn.js":128,"./ko":129,"./ko.js":129,"./ku":130,"./ku.js":130,"./ky":131,"./ky.js":131,"./lb":132,"./lb.js":132,"./lo":133,"./lo.js":133,"./lt":134,"./lt.js":134,"./lv":135,"./lv.js":135,"./me":136,"./me.js":136,"./mi":137,"./mi.js":137,"./mk":138,"./mk.js":138,"./ml":139,"./ml.js":139,"./mn":140,"./mn.js":140,"./mr":141,"./mr.js":141,"./ms":142,"./ms-my":143,"./ms-my.js":143,"./ms.js":142,"./mt":144,"./mt.js":144,"./my":145,"./my.js":145,"./nb":146,"./nb.js":146,"./ne":147,"./ne.js":147,"./nl":148,"./nl-be":149,"./nl-be.js":149,"./nl.js":148,"./nn":150,"./nn.js":150,"./oc-lnc":151,"./oc-lnc.js":151,"./pa-in":152,"./pa-in.js":152,"./pl":153,"./pl.js":153,"./pt":154,"./pt-br":155,"./pt-br.js":155,"./pt.js":154,"./ro":156,"./ro.js":156,"./ru":157,"./ru.js":157,"./sd":158,"./sd.js":158,"./se":159,"./se.js":159,"./si":160,"./si.js":160,"./sk":161,"./sk.js":161,"./sl":162,"./sl.js":162,"./sq":163,"./sq.js":163,"./sr":164,"./sr-cyrl":165,"./sr-cyrl.js":165,"./sr.js":164,"./ss":166,"./ss.js":166,"./sv":167,"./sv.js":167,"./sw":168,"./sw.js":168,"./ta":169,"./ta.js":169,"./te":170,"./te.js":170,"./tet":171,"./tet.js":171,"./tg":172,"./tg.js":172,"./th":173,"./th.js":173,"./tk":174,"./tk.js":174,"./tl-ph":175,"./tl-ph.js":175,"./tlh":176,"./tlh.js":176,"./tr":177,"./tr.js":177,"./tzl":178,"./tzl.js":178,"./tzm":179,"./tzm-latn":180,"./tzm-latn.js":180,"./tzm.js":179,"./ug-cn":181,"./ug-cn.js":181,"./uk":182,"./uk.js":182,"./ur":183,"./ur.js":183,"./uz":184,"./uz-latn":185,"./uz-latn.js":185,"./uz.js":184,"./vi":186,"./vi.js":186,"./x-pseudo":187,"./x-pseudo.js":187,"./yo":188,"./yo.js":188,"./zh-cn":189,"./zh-cn.js":189,"./zh-hk":190,"./zh-hk.js":190,"./zh-mo":191,"./zh-mo.js":191,"./zh-tw":192,"./zh-tw.js":192};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=270},function(e,t,n){var r=n(39);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(193),i=n(198),a=n(307),o=n(311),s=n(329),l=n(14),u=n(200),d=n(202),c="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,m,_){var p=l(e),g=l(t),y=p?"[object Array]":s(e),v=g?"[object Array]":s(t),b=(y="[object Arguments]"==y?c:y)==c,M=(v="[object Arguments]"==v?c:v)==c,w=y==v;if(w&&u(e)){if(!u(t))return!1;p=!0,b=!1}if(w&&!b)return _||(_=new r),p||d(e)?i(e,t,n,f,m,_):a(e,t,y,n,f,m,_);if(!(1&n)){var L=b&&h.call(e,"__wrapped__"),k=M&&h.call(t,"__wrapped__");if(L||k){var x=L?e.value():e,T=k?t.value():t;return _||(_=new r),m(x,T,n,f,_)}}return!!w&&(_||(_=new r),o(e,t,n,f,m,_))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(29),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(29);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(29);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(29);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(28);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(28),i=n(40),a=n(42);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(195),i=n(287),a=n(41),o=n(197),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?h:s).test(o(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(30),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(288),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(13)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(291),i=n(28),a=n(40);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(292),i=n(293),a=n(294),o=n(295),s=n(296);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t div {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n justify-content: center;\r\n align-items: center; \r\n}\r\n\r\n.src-components-ControlButtons-styles__show-mouse--2tNz9.src-components-ControlButtons-styles__container--1OVTm > div{\r\n cursor: pointer;\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__dark--2ct7o > div {\r\n background: linear-gradient(#5d5c5c, #4e4e4e);\r\n border-right: 1px solid #4c4c4c;\r\n border-left: 1px solid #757575;\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__dark--2ct7o > div:active {\r\n background: linear-gradient(#4e4e4e, #5d5c5c);\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__light--3gu98 > div {\r\n background: linear-gradient(#d6d6d6, #c7c7c7);\r\n border-right: 1px solid #bdbdbd;\r\n border-left: 1px solid #dadada;\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__light--3gu98 > div:active {\r\n background: linear-gradient(#d7d7d7, #e6e6e6);\r\n}\r\n\r\n.src-components-ControlButtons-styles__container--1OVTm.src-components-ControlButtons-styles__light--3gu98 > div:first-child {\r\n border-left: none;\r\n}\r\n\r\n.src-components-ControlButtons-styles__light--3gu98 .src-components-ControlButtons-styles__button-down--12pEA {\r\n background: linear-gradient(#E4E4E4, #F3F3F3) !important;\r\n}\r\n\r\n.src-components-ControlButtons-styles__dark--2ct7o .src-components-ControlButtons-styles__button-down--12pEA {\r\n background: linear-gradient(#686868, #777676) !important;\r\n}",""]),i.locals={container:"src-components-ControlButtons-styles__container--1OVTm","show-mouse":"src-components-ControlButtons-styles__show-mouse--2tNz9",showMouse:"src-components-ControlButtons-styles__show-mouse--2tNz9",dark:"src-components-ControlButtons-styles__dark--2ct7o",light:"src-components-ControlButtons-styles__light--3gu98","button-down":"src-components-ControlButtons-styles__button-down--12pEA",buttonDown:"src-components-ControlButtons-styles__button-down--12pEA"},t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,'.src-components-InfoPanel-styles__panel--3hALh {\r\n height: 100%;\r\n}\r\n.src-components-InfoPanel-styles__container--ABknn { \r\n height: calc(100% - 20px); /* subtract padding */\r\n padding: 10px;\r\n font-family: "Rubik", sans-serif;\r\n display: grid;\r\n grid-template-columns: auto;\r\n grid-template-rows: 90px auto 10px;\r\n grid-template-areas:\r\n "clock"\r\n "weather-info"\r\n "controls";\r\n}\r\n\r\n.src-components-InfoPanel-styles__dark--oVaIb .src-components-InfoPanel-styles__container--ABknn {\r\n color: #f6f6f4;\r\n}\r\n\r\n.src-components-InfoPanel-styles__light--2jjRv .src-components-InfoPanel-styles__container--ABknn {\r\n color: #3a3938;\r\n}\r\n\r\n.src-components-InfoPanel-styles__clock-container--WGzp0 {\r\n grid-area: clock;\r\n}\r\n\r\n.src-components-InfoPanel-styles__weather-info-container--AQzc0 {\r\n grid-area: weather-info;\r\n}\r\n\r\n.src-components-InfoPanel-styles__controls--2gWHT {\r\n grid-area: controls; \r\n margin: -10px; /* subtract padding */ \r\n}\r\n\r\n.src-components-InfoPanel-styles__dark--oVaIb .src-components-InfoPanel-styles__controls--2gWHT{\r\n border-top: 1px solid #757575;\r\n}\r\n\r\n.src-components-InfoPanel-styles__light--2jjRv .src-components-InfoPanel-styles__controls--2gWHT{\r\n border-top: 1px solid #f1f1f1;\r\n}',""]),i.locals={panel:"src-components-InfoPanel-styles__panel--3hALh",container:"src-components-InfoPanel-styles__container--ABknn",dark:"src-components-InfoPanel-styles__dark--oVaIb",light:"src-components-InfoPanel-styles__light--2jjRv","clock-container":"src-components-InfoPanel-styles__clock-container--WGzp0",clockContainer:"src-components-InfoPanel-styles__clock-container--WGzp0","weather-info-container":"src-components-InfoPanel-styles__weather-info-container--AQzc0",weatherInfoContainer:"src-components-InfoPanel-styles__weather-info-container--AQzc0",controls:"src-components-InfoPanel-styles__controls--2gWHT"},t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,'.src-components-Settings-styles__container--1ziz9 {\r\n height: calc(100vh - 20px); /* subtract padding */\r\n width: calc(100vw - 320px); /* subtract info panel and padding */\r\n background-color: rgba(0, 0, 0, 0.65);\r\n -webkit-backdrop-filter: blur(3px);\r\n backdrop-filter: blur(3px);\r\n padding: 10px;\r\n color: #f6f6f4;\r\n font-family: "Rubik", sans-serif;\r\n border-right: 1px solid rgba(0, 0, 0, 0.15);\r\n position: relative;\r\n}\r\n\r\n.src-components-Settings-styles__header--d1sSN {\r\n font-size: 14px;\r\n}\r\n\r\n.src-components-Settings-styles__settings-container--25Ncs {\r\n margin-top: 20px;\r\n font-size: 14px;\r\n}\r\n\r\n.src-components-Settings-styles__input-container--2X2y6 {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.src-components-Settings-styles__input-container--2X2y6 input {\r\n height: 30px;\r\n width: 100%;\r\n max-width: 800px;\r\n margin-right: 10px;\r\n outline: none;\r\n border: 2px solid #5d5c5c;\r\n}\r\n\r\n.src-components-Settings-styles__input-container--2X2y6.src-components-Settings-styles__invalid--36kEU input {\r\n border: 2px solid #c20808;\r\n}\r\n\r\n.src-components-Settings-styles__button-container--3Ib_Y {\r\n display: flex;\r\n}\r\n\r\n.src-components-Settings-styles__button-container--3Ib_Y > div {\r\n margin-right: 10px;\r\n}\r\n\r\n.src-components-Settings-styles__button-container--3Ib_Y > div:last-child {\r\n margin-right: 0px;\r\n}\r\n\r\n.src-components-Settings-styles__label--f-wve {\r\n font-size: 13px;\r\n}\r\n\r\n.src-components-Settings-styles__button--2TmGw {\r\n height: 34px;\r\n width: 34px;\r\n font-size: 20px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n background: linear-gradient(#5d5c5c, #4e4e4e);\r\n border-top: 1px solid #757575;\r\n border-left: 1px solid #757575;\r\n border-right: 1px solid #4c4c4c;\r\n border-bottom: 1px solid #4c4c4c;\r\n}\r\n\r\n.src-components-Settings-styles__show-mouse--Sfkfv.src-components-Settings-styles__button--2TmGw {\r\n cursor: pointer;\r\n}\r\n\r\n.src-components-Settings-styles__button--2TmGw.src-components-Settings-styles__down--2RweJ {\r\n color: #4e4e4e;\r\n background: linear-gradient(#d6d6d6, #c7c7c7);\r\n}\r\n\r\n.src-components-Settings-styles__button--2TmGw:active {\r\n background: linear-gradient(#4e4e4e, #5d5c5c);\r\n}\r\n\r\n.src-components-Settings-styles__settings-item--yz5eS {\r\n margin: 10px 0px;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-container--1Qtk7 {\r\n display: flex;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-buttons--2h_qE {\r\n display: flex;\r\n max-width: 900px;\r\n\r\n justify-content: space-between;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-buttons--2h_qE > div {\r\n margin-right: 10px;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-buttons--2h_qE > div:last-child {\r\n margin-right: 0px;\r\n}\r\n\r\n.src-components-Settings-styles__toggle-container--1Qtk7 > .src-components-Settings-styles__button--2TmGw {\r\n width: 50px;\r\n}\r\n\r\n.src-components-Settings-styles__bottom-button-container--3ZacB {\r\n width: 100%;\r\n margin-top: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n}\r\n\r\n.src-components-Settings-styles__save-button--1kJ35 {\r\n width: 80px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.src-components-Settings-styles__save-button--1kJ35 .src-components-Settings-styles__label--f-wve {\r\n margin-right: 5px;\r\n}\r\n\r\n.src-components-Settings-styles__close-button--2w_21 {\r\n font-size: 20px;\r\n position: absolute;\r\n top: 10px;\r\n right: 10px;\r\n}\r\n\r\n.src-components-Settings-styles__show-mouse--Sfkfv.src-components-Settings-styles__close-button--2w_21 {\r\n cursor: pointer;\r\n}\r\n\r\n.src-components-Settings-styles__close-button--2w_21:active {\r\n color: #c7c7c7;\r\n}\r\n\r\n.src-components-Settings-styles__save-button-container--2eAoc {\r\n margin-top: 15px;\r\n}',""]),i.locals={container:"src-components-Settings-styles__container--1ziz9",header:"src-components-Settings-styles__header--d1sSN","settings-container":"src-components-Settings-styles__settings-container--25Ncs",settingsContainer:"src-components-Settings-styles__settings-container--25Ncs","input-container":"src-components-Settings-styles__input-container--2X2y6",inputContainer:"src-components-Settings-styles__input-container--2X2y6",invalid:"src-components-Settings-styles__invalid--36kEU","button-container":"src-components-Settings-styles__button-container--3Ib_Y",buttonContainer:"src-components-Settings-styles__button-container--3Ib_Y",label:"src-components-Settings-styles__label--f-wve",button:"src-components-Settings-styles__button--2TmGw","show-mouse":"src-components-Settings-styles__show-mouse--Sfkfv",showMouse:"src-components-Settings-styles__show-mouse--Sfkfv",down:"src-components-Settings-styles__down--2RweJ","settings-item":"src-components-Settings-styles__settings-item--yz5eS",settingsItem:"src-components-Settings-styles__settings-item--yz5eS","toggle-container":"src-components-Settings-styles__toggle-container--1Qtk7",toggleContainer:"src-components-Settings-styles__toggle-container--1Qtk7","toggle-buttons":"src-components-Settings-styles__toggle-buttons--2h_qE",toggleButtons:"src-components-Settings-styles__toggle-buttons--2h_qE","bottom-button-container":"src-components-Settings-styles__bottom-button-container--3ZacB",bottomButtonContainer:"src-components-Settings-styles__bottom-button-container--3ZacB","save-button":"src-components-Settings-styles__save-button--1kJ35",saveButton:"src-components-Settings-styles__save-button--1kJ35","close-button":"src-components-Settings-styles__close-button--2w_21",closeButton:"src-components-Settings-styles__close-button--2w_21","save-button-container":"src-components-Settings-styles__save-button-container--2eAoc",saveButtonContainer:"src-components-Settings-styles__save-button-container--2eAoc"},t.default=i},function(e,t,n){var r=n(7),i=n(368);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,".animate-enter {\r\n -webkit-transform: translateX(-200%);\r\n -moz-transform: translateX(-200%);\r\n transform: translateX(-100%);\r\n }\r\n .animate-enter-active {\r\n -webkit-transform: translateX(0px);\r\n -moz-transform: translateX(0px);\r\n transform: translateX(0px);\r\n -webkit-transition: all 0.3s ease-in-out;\r\n }\r\n .animate-exit {\r\n -webkit-transform: translateX(0px);\r\n -moz-transform: translateX(0px);\r\n transform: translateX(0px);\r\n -webkit-transition: all 0.3s ease-in-out;\r\n }\r\n \r\n .animate-exit-active {\r\n -webkit-transform: translateX(-200%);\r\n -moz-transform: translateX(-200%);\r\n transform: translateX(-100%);\r\n }",""]),t.default=i},function(e,t,n){var r=n(7),i=n(370);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r)()(!1);i.push([e.i,".map-container.map-mouse-hide .leaflet-grab {\r\n cursor: none;\r\n}\r\n\r\n.map-container.map-mouse-hide .leaflet-interactive {\r\n cursor: none;\r\n}\r\n\r\n.map-container.map-dark-mode .leaflet-bar a {\r\n background-color: #3a3938;\r\n color: #f6f6f4;\r\n}\r\n",""]),t.default=i},function(e,t,n){n.e(1).then(n.t.bind(null,373,7))},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(21),o=n.n(a),s=n(15),l=n.n(s),u=n(8),d=n.n(u);function c(){return new Promise((function(e,t){d.a.get("/settings").then((function(t){e(t.data)})).catch((function(e){t(e)}))}))}var h=n(2),f=n.n(h);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g.propTypes={children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]).isRequired};var L=n(6),k=n(209),x=n.n(k),T=Object(r.createContext)({}),Y=T.Consumer,D=T.Provider,S=function(e){var t=function(t,n){return i.a.createElement(Y,null,(function(r){return i.a.createElement(e,y({},t,{leaflet:r,ref:n}))}))},n=e.displayName||e.name||"Component";t.displayName="Leaflet("+n+")";var a=Object(r.forwardRef)(t);return x()(a,e),a},P=/^on(.+)$/i,E=function(e){function t(t){var n;return w(b(n=e.call(this,t)||this),"_leafletEvents",void 0),w(b(n),"leafletElement",void 0),n._leafletEvents=n.extractLeafletEvents(t),n}M(t,e);var n=t.prototype;return n.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},n.componentDidUpdate=function(e){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},n.componentWillUnmount=function(){var e=this,t=this.leafletElement;t&&Object.keys(this._leafletEvents).forEach((function(n){t.off(n,e._leafletEvents[n])}))},n.extractLeafletEvents=function(e){return Object.keys(e).reduce((function(t,n){P.test(n)&&(null!=e[n]&&(t[n.replace(P,(function(e,t){return t.toLowerCase()}))]=e[n]));return t}),{})},n.bindLeafletEvents=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=this.leafletElement;if(null==n||null==n.on)return{};var r=y({},t);return Object.keys(t).forEach((function(i){null!=e[i]&&t[i]===e[i]||(delete r[i],n.off(i,t[i]))})),Object.keys(e).forEach((function(i){null!=t[i]&&e[i]===t[i]||(r[i]=e[i],n.on(i,e[i]))})),r},n.fireLeafletEvent=function(e,t){var n=this.leafletElement;n&&n.fire(e,t)},t}(r.Component),C=function(e){return void 0===e&&(e=""),e.split(" ").filter(Boolean)},j=function(e,t,n){null!=e&&n!==t&&(null!=t&&t.length>0&&function(e,t){C(t).forEach((function(t){L.DomUtil.removeClass(e,t)}))}(e,t),null!=n&&n.length>0&&function(e,t){C(t).forEach((function(t){L.DomUtil.addClass(e,t)}))}(e,n))};function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=b.length?0:T+1,Y(e)}),1e3);return function(){clearInterval(e)}}Y(b.length-1)}}),[T,_,b]),!(K(P)&&K(E)&&t&&h))return i.a.createElement("div",{className:"".concat(V.a.noMap," ").concat(n?V.a.dark:V.a.light)},i.a.createElement("div",null,"Cannot retrieve map data."),i.a.createElement("div",null,"Did you enter an API key?"));var C=c?[c.latitude,c.longitude]:null;return i.a.createElement(z,{ref:g,center:[P,E],zoom:t,style:{width:"100%",height:"100%"},attributionControl:!1,touchZoom:!0,dragging:!0,fadeAnimation:!1,onClick:y},i.a.createElement(I,{position:"bottomleft"}),i.a.createElement(F,{attribution:'© Mapbox',url:"https://api.mapbox.com/styles/v1/mapbox/".concat(n?"dark-v10":"light-v10","/tiles/{z}/{x}/{y}?access_token={apiKey}"),apiKey:h}),L?i.a.createElement(F,{attribution:'RainViewer',url:"https://tilecache.rainviewer.com/v2/radar/".concat(L,"/{size}/{z}/{x}/{y}/{color}/{smooth}_{snow}.png"),opacity:.3,size:512,color:6,smooth:1,snow:1}):null,m&&C?i.a.createElement(R,{position:C,opacity:.65}):null)};G.propTypes={zoom:f.a.number.isRequired,dark:f.a.bool};function K(e){return!(!e&&0!==e)}f.a.string.isRequired,f.a.string;var $=G;function Q(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function X(e){Q(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function ee(e){Q(1,arguments);var t=X(e);return!isNaN(t)}var te={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ne(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var re={date:ne({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ne({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ne({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ie={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ae(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function oe(e){return function(t,n){var r=String(t),i=n||{},a=i.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],s=r.match(o);if(!s)return null;var l,u=s[0],d=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(d)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:re,formatRelative:function(e,t,n,r){return ie[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ae({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ae({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:ae({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ae({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ae({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(se={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},i=n.match(se.matchPattern);if(!i)return null;var a=i[0],o=n.match(se.parsePattern);if(!o)return null;var s=se.valueCallback?se.valueCallback(o[0]):o[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(a.length)}}),era:oe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:oe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:oe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:oe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:oe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ue(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function de(e,t){Q(2,arguments);var n=X(e).getTime(),r=ue(t);return new Date(n+r)}function ce(e,t){Q(2,arguments);var n=ue(t);return de(e,-n)}function he(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return he("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):he(n+1,2)},d:function(e,t){return he(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return he(e.getUTCHours()%12||12,t.length)},H:function(e,t){return he(e.getUTCHours(),t.length)},m:function(e,t){return he(e.getUTCMinutes(),t.length)},s:function(e,t){return he(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return he(Math.floor(r*Math.pow(10,n-3)),t.length)}};function me(e){Q(1,arguments);var t=1,n=X(e),r=n.getUTCDay(),i=(r=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function pe(e){Q(1,arguments);var t=_e(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=me(n);return r}function ge(e,t){Q(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:ue(i),o=null==n.weekStartsOn?a:ue(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=X(e),l=s.getUTCDay(),u=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var d=ge(u,t),c=new Date(0);c.setUTCFullYear(r,0,l),c.setUTCHours(0,0,0,0);var h=ge(c,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function ve(e,t){Q(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,a=null==i?1:ue(i),o=null==n.firstWeekContainsDate?a:ue(n.firstWeekContainsDate),s=ye(e,t),l=new Date(0);l.setUTCFullYear(s,0,o),l.setUTCHours(0,0,0,0);var u=ge(l,t);return u}var be="midnight",Me="noon",we="morning",Le="afternoon",ke="evening",xe="night";function Te(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(0===a)return n+String(i);var o=t||"";return n+String(i)+o+he(a,2)}function Ye(e,t){return e%60==0?(e>0?"-":"+")+he(Math.abs(e)/60,2):De(e,t)}function De(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+he(Math.floor(i/60),2)+n+he(i%60,2)}var Se={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return fe.y(e,t)},Y:function(e,t,n,r){var i=ye(e,r),a=i>0?i:1-i;return"YY"===t?he(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):he(a,t.length)},R:function(e,t){return he(_e(e),t.length)},u:function(e,t){return he(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return he(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return he(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return fe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return he(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){Q(1,arguments);var n=X(e),r=ge(n,t).getTime()-ve(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):he(i,t.length)},I:function(e,t,n){var r=function(e){Q(1,arguments);var t=X(e),n=me(t).getTime()-pe(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):he(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):fe.d(e,t)},D:function(e,t,n){var r=function(e){Q(1,arguments);var t=X(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):he(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return he(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return he(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return he(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?Me:0===i?be:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?ke:i>=12?Le:i>=4?we:xe,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return fe.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):fe.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):fe.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):fe.s(e,t)},S:function(e,t){return fe.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Ye(i);case"XXXX":case"XX":return De(i);case"XXXXX":case"XXX":default:return De(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ye(i);case"xxxx":case"xx":return De(i);case"xxxxx":case"xxx":default:return De(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Te(i,":");case"OOOO":default:return"GMT"+De(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Te(i,":");case"zzzz":default:return"GMT"+De(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return he(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return he((r._originalDate||e).getTime(),t.length)}};function Pe(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Ee(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var Ce={p:Ee,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],a=r[2];if(!a)return Pe(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Pe(i,t)).replace("{{time}}",Ee(a,t))}};function je(e){return e.getTime()%6e4}function Oe(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+je(t))%6e4:je(t))}var He=["D","DD"],Ae=["YY","YYYY"];function ze(e){return-1!==He.indexOf(e)}function Ie(e){return-1!==Ae.indexOf(e)}function Ne(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var We=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,qe=/''/g,Be=/[a-zA-Z]/;function Ue(e,t,n){Q(2,arguments);var r=String(t),i=n||{},a=i.locale||le,o=a.options&&a.options.firstWeekContainsDate,s=null==o?1:ue(o),l=null==i.firstWeekContainsDate?s:ue(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=a.options&&a.options.weekStartsOn,d=null==u?0:ue(u),c=null==i.weekStartsOn?d:ue(i.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var h=X(e);if(!ee(h))throw new RangeError("Invalid time value");var f=Oe(h),m=ce(h,f),_={firstWeekContainsDate:l,weekStartsOn:c,locale:a,_originalDate:h},p=r.match(Fe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ce[t])(e,a.formatLong,_):e})).join("").match(We).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Ve(n);var o=Se[r];if(o)return!i.useAdditionalWeekYearTokens&&Ie(n)&&Ne(n,t,e),!i.useAdditionalDayOfYearTokens&&ze(n)&&Ne(n,t,e),o(m,n,a.localize,_);if(r.match(Be))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return p}function Ve(e){return e.match(Re)[1].replace(qe,"'")}var Ze=n(36),Je=n.n(Ze),Ge=n(5),Ke=n(210),$e=n.n(Ke),Qe=n(211),Xe=n.n(Qe),et=n(212),tt=n.n(et),nt=function(){var e=Object(r.useContext)(p),t=e.sunriseTime,n=e.sunsetTime,a=e.clockTime;return t&&n?i.a.createElement("div",{className:tt.a.container},i.a.createElement("div",null,i.a.createElement(Ge.InlineIcon,{icon:Xe.a}),i.a.createElement("span",null,Ue(new Date(t),"12"===a?"p":"HH:mm"))),i.a.createElement("div",null,i.a.createElement(Ge.InlineIcon,{icon:$e.a}),i.a.createElement("span",null,Ue(new Date(n),"12"===a?"p":"HH:mm")))):null};function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return it(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return it(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn&&ie.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n { diff --git a/client/src/components/weatherCharts/DailyChart/index.js b/client/src/components/weatherCharts/DailyChart/index.js index 650e9aa..eb03eaf 100644 --- a/client/src/components/weatherCharts/DailyChart/index.js +++ b/client/src/components/weatherCharts/DailyChart/index.js @@ -27,7 +27,7 @@ const createChartOptions = ({ stacked: false, title: { display: true, - text: `7 Day ${ + text: `5 Day ${ altMode ? `Wind Speed / Precipitation (${lengthUnit})` : `Temp / Precipitation` @@ -218,7 +218,7 @@ const DailyChart = () => { styles.errContainer }`} > -
Cannot get 7 day weather forecast
+
Cannot get 5 day weather forecast
{dailyWeatherDataErrMsg}
);