text: webpackJsonp([0x5b7c336e38da],{98:function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return"translate("+(t+.5)+",0)"}function n(t){return"translate(0,"+(t+.5)+")"}function r(t){return function(e){return+t(e)}}function a(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function i(){return!this.__axis}function o(t,o){function u(e){var n=null==l?o.ticks?o.ticks.apply(o,c):o.domain():l,u=null==s?o.tickFormat?o.tickFormat.apply(o,c):h:s,f=Math.max(v,0)+b,C=o.range(),D=+C[0]+.5,N=+C[C.length-1]+.5,k=(o.bandwidth?a:r)(o.copy()),E=e.selection?e.selection():e,S=E.selectAll(".domain").data([null]),_=E.selectAll(".tick").data(n,o).order(),H=_.exit(),L=_.enter().append("g").attr("class","tick"),U=_.select("line"),F=_.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),_=_.merge(L),U=U.merge(L.append("line").attr("stroke","#000").attr(T+"2",w*v)),F=F.merge(L.append("text").attr("fill","#000").attr(T,w*f).attr("dy",t===d?"0em":t===g?"0.71em":"0.32em")),e!==E&&(S=S.transition(e),_=_.transition(e),U=U.transition(e),F=F.transition(e),H=H.transition(e).attr("opacity",y).attr("transform",function(t){return isFinite(t=k(t))?x(t):this.getAttribute("transform")}),L.attr("opacity",y).attr("transform",function(t){var e=this.parentNode.__axis;return x(e&&isFinite(e=e(t))?e:k(t))})),H.remove(),S.attr("d",t===m||t==p?"M"+w*M+","+D+"H0.5V"+N+"H"+w*M:"M"+D+","+w*M+"V0.5H"+N+"V"+w*M),_.attr("opacity",1).attr("transform",function(t){return x(k(t))}),U.attr(T+"2",w*v),F.attr(T,w*f).text(u),E.filter(i).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===p?"start":t===m?"end":"middle"),E.each(function(){this.__axis=k})}var c=[],l=null,s=null,v=6,M=6,b=3,w=t===d||t===m?-1:1,T=t===m||t===p?"x":"y",x=t===d||t===g?e:n;return u.scale=function(t){return arguments.length?(o=t,u):o},u.ticks=function(){return c=f.call(arguments),u},u.tickArguments=function(t){return arguments.length?(c=null==t?[]:f.call(t),u):c.slice()},u.tickValues=function(t){return arguments.length?(l=null==t?null:f.call(t),u):l&&l.slice()},u.tickFormat=function(t){return arguments.length?(s=t,u):s},u.tickSize=function(t){return arguments.length?(v=M=+t,u):v},u.tickSizeInner=function(t){return arguments.length?(v=+t,u):v},u.tickSizeOuter=function(t){return arguments.length?(M=+t,u):M},u.tickPadding=function(t){return arguments.length?(b=+t,u):b},u}function u(t){return o(d,t)}function c(t){return o(p,t)}function l(t){return o(g,t)}function s(t){return o(m,t)}var f=Array.prototype.slice,h=function(t){return t},d=1,p=2,g=3,m=4,y=1e-6;t.axisTop=u,t.axisRight=c,t.axisBottom=l,t.axisLeft=s,Object.defineProperty(t,"__esModule",{value:!0})})},99:function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function n(){}function r(t){var e;return t=(t+"").trim().toLowerCase(),(e=U.exec(t))?(e=parseInt(e[1],16),new c(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=F.exec(t))?a(parseInt(e[1],16)):(e=O.exec(t))?new c(e[1],e[2],e[3],1):(e=Y.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=A.exec(t))?i(e[1],e[2],e[3],e[4]):(e=V.exec(t))?i(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=j.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=P.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):I.hasOwnProperty(t)?a(I[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function a(t){return new c(t>>16&255,t>>8&255,255&t,1)}function i(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function o(t){return t instanceof n||(t=r(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function u(t,e,n,r){return 1===arguments.length?o(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new h(t,e,n,r)}function s(t){if(t instanceof h)return new h(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=r(t)),!t)return new h;if(t instanceof h)return t;t=t.rgb();var e=t.r/255,a=t.g/255,i=t.b/255,o=Math.min(e,a,i),u=Math.max(e,a,i),c=NaN,l=u-o,s=(u+o)/2;return l?(c=e===u?(a-i)/l+6*(a<i):a===u?(i-e)/l+2:(e-a)/l+4,l/=s<.5?u+o:2-u-o,c*=60):l=s>0&&s<1?0:c,new h(c,l,s,t.opacity)}function f(t,e,n,r){return 1===arguments.length?s(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function p(t){if(t instanceof m)return new m(t.l,t.a,t.b,t.opacity);if(t instanceof x){var e=t.h*R;return new m(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof c||(t=o(t));var n=b(t.r),r=b(t.g),a=b(t.b),i=y((.4124564*n+.3575761*r+.1804375*a)/X),u=y((.2126729*n+.7151522*r+.072175*a)/z),l=y((.0193339*n+.119192*r+.9503041*a)/B);return new m(116*u-16,500*(i-u),200*(u-l),t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new m(t,e,n,null==r?1:r)}function m(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function y(t){return t>Q?Math.pow(t,1/3):t/$+J}function v(t){return t>Z?t*t*t:$*(t-J)}function M(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function b(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function w(t){if(t instanceof x)return new x(t.h,t.c,t.l,t.opacity);t instanceof m||(t=p(t));var e=Math.atan2(t.b,t.a)*W;return new x(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function T(t,e,n,r){return 1===arguments.length?w(t):new x(t,e,n,null==r?1:r)}function x(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function C(t){if(t instanceof N)return new N(t.h,t.s,t.l,t.opacity);t instanceof c||(t=o(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(it*r+rt*e-at*n)/(it+rt-at),i=r-a,u=(nt*(n-a)-tt*i)/et,l=Math.sqrt(u*u+i*i)/(nt*a*(1-a)),s=l?Math.atan2(u,i)*W-120:NaN;return new N(s<0?s+360:s,l,a,t.opacity)}function D(t,e,n,r){return 1===arguments.length?C(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}var k=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},E=.7,S=1/E,_="\\s*([+-]?\\d+)\\s*",H="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U=/^#([0-9a-f]{3})$/,F=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),Y=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),A=new RegExp("^rgba\\("+[_,_,_,H]+"\\)$"),V=new RegExp("^rgba\\("+[L,L,L,H]+"\\)$"),j=new RegExp("^hsl\\("+[H,L,L]+"\\)$"),P=new RegExp("^hsla\\("+[H,L,L,H]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};k(n,r,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),k(c,u,e(n,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?E:Math.pow(E,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),k(h,f,e(n,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new h(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?E:Math.pow(E,t),new h(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new c(d(t>=240?t-240:t+120,a,r),d(t,a,r),d(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var R=Math.PI/180,W=180/Math.PI,q=18,X=.95047,z=1,B=1.08883,J=4/29,Z=6/29,$=3*Z*Z,Q=Z*Z*Z;k(m,g,e(n,{brighter:function(t){return new m(this.l+q*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new m(this.l-q*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=z*v(t),e=X*v(e),n=B*v(n),new c(M(3.2404542*e-1.5371385*t-.4985314*n),M(-.969266*e+1.8760108*t+.041556*n),M(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),k(x,T,e(n,{brighter:function(t){return new x(this.h,this.c,this.l+q*(null==t?1:t),this.opacity)},darker:function(t){return new x(this.h,this.c,this.l-q*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}));var G=-.14861,K=1.78277,tt=-.29227,et=-.90649,nt=1.97294,rt=nt*et,at=nt*K,it=K*tt-et*G;k(N,D,e(n,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new N(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?E:Math.pow(E,t),new N(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*R,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),a=Math.sin(t);return new c(255*(e+n*(G*r+K*a)),255*(e+n*(tt*r+et*a)),255*(e+n*(nt*r)),this.opacity)}})),t.color=r,t.rgb=u,t.hsl=f,t.lab=g,t.hcl=T,t.cubehelix=D,Object.defineProperty(t,"__esModule",{value:!0})})},100:function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return new n(t)}function n(t){if(!(e=d.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",a=e[3]||"-",i=e[4]||"",o=!!e[5],u=e[6]&&+e[6],c=!!e[7],l=e[8]&&+e[8].slice(1),s=e[9]||"";"n"===s?(c=!0,s="g"):h[s]||(s=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=a,this.symbol=i,this.zero=o,this.width=u,this.comma=c,this.precision=l,this.type=s}function r(e){return p=y(e),t.format=p.format,t.formatPrefix=p.formatPrefix,p}var a,i=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},o=function(t){return t=i(Math.abs(t)),t?t[1]:NaN},u=function(t,e){return function(n,r){for(var a=n.length,i=[],o=0,u=t[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=t[o=(o+1)%t.length];return i.reverse().join(e)}},c=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}},l=function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,a=1,i=-1;a<r;++a)switch(t[a]){case".":i=n=a;break;case"0":0===i&&(i=a),n=a;break;case"e":break t;default:i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t},s=function(t,e){var n=i(t,e);if(!n)return t+"";var r=n[0],o=n[1],u=o-(a=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,c=r.length;return u===c?r:u>c?r+new Array(u-c+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+i(t,Math.max(0,e+u-1))[0]},f=function(t,e){var n=i(t,e);if(!n)return t+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")},h={"":l,"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return f(100*t,e)},r:f,s:s,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},d=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;e.prototype=n.prototype,n.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var p,g=function(t){return t},m=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],y=function(t){function n(t){function n(t){var e,n,c,l=b,h=w;if("c"===M)h=T(t)+h,t="";else{t=+t;var d=t<0;if(t=T(Math.abs(t),v),d&&0===+t&&(d=!1),l=(d?"("===u?u:"-":"-"===u||"("===u?"":u)+l,h=("s"===M?m[8+a/3]:"")+h+(d&&"("===u?")":""),x)for(e=-1,n=t.length;++e<n;)if(c=t.charCodeAt(e),48>c||c>57){h=(46===c?s+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}y&&!p&&(t=i(t,1/0));var C=l.length+t.length+h.length,D=C<g?new Array(g-C+1).join(r):"";switch(y&&p&&(t=i(D+t,D.length?g-h.length:1/0),D=""),o){case"<":t=l+t+h+D;break;case"=":t=l+D+t+h;break;case"^":t=D.slice(0,C=D.length>>1)+l+t+h+D.slice(C);break;default:t=D+l+t+h}return f(t)}t=e(t);var r=t.fill,o=t.align,u=t.sign,c=t.symbol,p=t.zero,g=t.width,y=t.comma,v=t.precision,M=t.type,b="$"===c?l[0]:"#"===c&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",w="$"===c?l[1]:/[%p]/.test(M)?d:"",T=h[M],x=!M||/[defgprs%]/.test(M);return v=null==v?M?6:12:/[gprs]/.test(M)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),n.toString=function(){return t+""},n}function r(t,r){var a=n((t=e(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(o(r)/3))),u=Math.pow(10,-i),c=m[8+i/3];return function(t){return a(u*t)+c}}var i=t.grouping&&t.thousands?u(t.grouping,t.thousands):g,l=t.currency,s=t.decimal,f=t.numerals?c(t.numerals):g,d=t.percent||"%";return{format:n,formatPrefix:r}};r({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var v=function(t){return Math.max(0,-o(Math.abs(t)))},M=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(o(e)/3)))-o(Math.abs(t)))},b=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,o(e)-o(t))+1};t.formatDefaultLocale=r,t.formatLocale=y,t.formatSpecifier=e,t.precisionFixed=v,t.precisionPrefix=M,t.precisionRound=b,Object.defineProperty(t,"__esModule",{value:!0})})},71:function(t,e,n){!function(t,r){r(e,n(99))}(this,function(t,e){"use strict";function n(t,e,n,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*a)/6}function r(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function i(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):k(isNaN(t)?e:t)}function o(t){return 1===(t=+t)?u:function(e,n){return n-e?a(e,n,t):k(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):k(isNaN(t)?e:t)}function c(t){return function(n){var r,a,i=n.length,o=new Array(i),u=new Array(i),c=new Array(i);for(r=0;r<i;++r)a=e.rgb(n[r]),o[r]=a.r||0,u[r]=a.g||0,c[r]=a.b||0;return o=t(o),u=t(u),c=t(c),a.opacity=1,function(t){return a.r=o(t),a.g=u(t),a.b=c(t),a+""}}}function l(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}function f(t){return"none"===t?I:(w||(w=document.createElement("DIV"),T=document.documentElement,x=document.defaultView),w.style.transform=t,t=x.getComputedStyle(T.appendChild(w),null).getPropertyValue("transform"),T.removeChild(w),t=t.slice(7,-1).split(","),R(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function h(t){return null==t?I:(C||(C=document.createElementNS("http://www.w3.org/2000/svg","g")),C.setAttribute("transform",t),(t=C.transform.baseVal.consolidate())?(t=t.matrix,R(t.a,t.b,t.c,t.d,t.e,t.f)):I)}function d(t,e,n,r){function a(t){return t.length?t.pop()+" ":""}function i(t,r,a,i,o,u){if(t!==a||r!==i){var c=o.push("translate(",null,e,null,n);u.push({i:c-4,x:U(t,a)},{i:c-2,x:U(r,i)})}else(a||i)&&o.push("translate("+a+e+i+n)}function o(t,e,n,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:U(t,e)})):e&&n.push(a(n)+"rotate("+e+r)}function u(t,e,n,i){t!==e?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:U(t,e)}):e&&n.push(a(n)+"skewX("+e+r)}function c(t,e,n,r,i,o){if(t!==n||e!==r){var u=i.push(a(i)+"scale(",null,",",null,")");o.push({i:u-4,x:U(t,n)},{i:u-2,x:U(e,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}return function(e,n){var r=[],a=[];return e=t(e),n=t(n),i(e.translateX,e.translateY,n.translateX,n.translateY,r,a),o(e.rotate,n.rotate,r,a),u(e.skewX,n.skewX,r,a),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,a),e=n=null,function(t){for(var e,n=-1,i=a.length;++n<i;)r[(e=a[n]).i]=e.x(t);return r.join("")}}}function p(t){return((t=Math.exp(t))+1/t)/2}function g(t){return((t=Math.exp(t))-1/t)/2}function m(t){return((t=Math.exp(2*t))-1)/(t+1)}function y(t){return function(n,r){var a=t((n=e.hsl(n)).h,(r=e.hsl(r)).h),i=u(n.s,r.s),o=u(n.l,r.l),c=u(n.opacity,r.opacity);return function(t){return n.h=a(t),n.s=i(t),n.l=o(t),n.opacity=c(t),n+""}}}function v(t,n){var r=u((t=e.lab(t)).l,(n=e.lab(n)).l),a=u(t.a,n.a),i=u(t.b,n.b),o=u(t.opacity,n.opacity);return function(e){return t.l=r(e),t.a=a(e),t.b=i(e),t.opacity=o(e),t+""}}function M(t){return function(n,r){var a=t((n=e.hcl(n)).h,(r=e.hcl(r)).h),i=u(n.c,r.c),o=u(n.l,r.l),c=u(n.opacity,r.opacity);return function(t){return n.h=a(t),n.c=i(t),n.l=o(t),n.opacity=c(t),n+""}}}function b(t){return function n(r){function a(n,a){var i=t((n=e.cubehelix(n)).h,(a=e.cubehelix(a)).h),o=u(n.s,a.s),c=u(n.l,a.l),l=u(n.opacity,a.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=c(Math.pow(t,r)),n.opacity=l(t),n+""}}return r=+r,a.gamma=n,a}(1)}var w,T,x,C,D=function(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[a],o=t[a+1],u=a>0?t[a-1]:2*i-o,c=a<e-1?t[a+2]:2*o-i;return n((r-a/e)*e,u,i,o,c)}},N=function(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e),i=t[(a+e-1)%e],o=t[a%e],u=t[(a+1)%e],c=t[(a+2)%e];return n((r-a/e)*e,i,o,u,c)}},k=function(t){return function(){return t}},E=function t(n){function r(t,n){var r=a((t=e.rgb(t)).r,(n=e.rgb(n)).r),i=a(t.g,n.g),o=a(t.b,n.b),c=u(t.opacity,n.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=c(e),t+""}}var a=o(n);return r.gamma=t,r}(1),S=c(D),_=c(N),H=function(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=V(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<a;++n)o[n]=i[n](t);return o}},L=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}},U=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},F=function(t,e){var n,r={},a={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=V(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}},O=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Y=new RegExp(O.source,"g"),A=function(t,e){var n,r,a,i=O.lastIndex=Y.lastIndex=0,o=-1,u=[],c=[];for(t+="",e+="";(n=O.exec(t))&&(r=Y.exec(e));)(a=r.index)>i&&(a=e.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:U(n,r)})),i=Y.lastIndex;return i<e.length&&(a=e.slice(i),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?s(c[0].x):l(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})},V=function(t,n){var r,a=typeof n;return null==n||"boolean"===a?k(n):("number"===a?U:"string"===a?(r=e.color(n))?(n=r,E):A:n instanceof e.color?E:n instanceof Date?L:Array.isArray(n)?H:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?F:U)(t,n)},j=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},P=180/Math.PI,I={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},R=function(t,e,n,r,a,i){var o,u,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(e,t)*P,skewX:Math.atan(c)*P,scaleX:o,scaleY:u}},W=d(f,"px, ","px)","deg)"),q=d(h,", ",")",")"),X=Math.SQRT2,z=2,B=4,J=1e-12,Z=function(t,e){var n,r,a=t[0],i=t[1],o=t[2],u=e[0],c=e[1],l=e[2],s=u-a,f=c-i,h=s*s+f*f;if(h<J)r=Math.log(l/o)/X,n=function(t){return[a+t*s,i+t*f,o*Math.exp(X*t*r)]};else{var d=Math.sqrt(h),y=(l*l-o*o+B*h)/(2*o*z*d),v=(l*l-o*o-B*h)/(2*l*z*d),M=Math.log(Math.sqrt(y*y+1)-y),b=Math.log(Math.sqrt(v*v+1)-v);r=(b-M)/X,n=function(t){var e=t*r,n=p(M),u=o/(z*d)*(n*m(X*e+M)-g(M));return[a+u*s,i+u*f,o*n/p(X*e+M)]}}return n.duration=1e3*r,n},$=y(i),Q=y(u),G=M(i),K=M(u),tt=b(i),et=b(u),nt=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n};t.interpolate=V,t.interpolateArray=H,t.interpolateBasis=D,t.interpolateBasisClosed=N,t.interpolateDate=L,t.interpolateNumber=U,t.interpolateObject=F,t.interpolateRound=j,t.interpolateString=A,t.interpolateTransformCss=W,t.interpolateTransformSvg=q,t.interpolateZoom=Z,t.interpolateRgb=E,t.interpolateRgbBasis=S,t.interpolateRgbBasisClosed=_,t.interpolateHsl=$,t.interpolateHslLong=Q,t.interpolateLab=v,t.interpolateHcl=G,t.interpolateHclLong=K,t.interpolateCubehelix=tt,t.interpolateCubehelixLong=et,t.quantize=nt,Object.defineProperty(t,"__esModule",{value:!0})})},56:function(t,e,n){!function(t,r){r(e,n(123),n(124),n(71),n(100),n(33),n(57))}(this,function(t,e,n,r,a,i,o){"use strict";function u(t){function e(e){var n=e+"",o=r.get(n);if(!o){if(i!==B)return i;r.set(n,o=a.push(e))}return t[(o-1)%t.length]}var r=n.map(),a=[],i=B;return t=null==t?[]:z.call(t),e.domain=function(t){if(!arguments.length)return a.slice();a=[],r=n.map();for(var i,o,u=-1,c=t.length;++u<c;)r.has(o=(i=t[u])+"")||r.set(o,a.push(i));return e},e.range=function(n){return arguments.length?(t=z.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(i=t,e):i},e.copy=function(){return u().domain(a).range(t).unknown(i)},e}function c(){function t(){var t=i().length,a=l[1]<l[0],u=l[a-0],c=l[1-a];n=(c-u)/Math.max(1,t-f+2*h),s&&(n=Math.floor(n)),u+=(c-u-n*(t-f))*d,r=n*(1-f),s&&(u=Math.round(u),r=Math.round(r));var p=e.range(t).map(function(t){return u+n*t});return o(a?p.reverse():p)}var n,r,a=u().unknown(void 0),i=a.domain,o=a.range,l=[0,1],s=!1,f=0,h=0,d=.5;return delete a.unknown,a.domain=function(e){return arguments.length?(i(e),t()):i()},a.range=function(e){return arguments.length?(l=[+e[0],+e[1]],t()):l.slice()},a.rangeRound=function(e){return l=[+e[0],+e[1]],s=!0,t()},a.bandwidth=function(){return r},a.step=function(){return n},a.round=function(e){return arguments.length?(s=!!e,t()):s},a.padding=function(e){return arguments.length?(f=h=Math.max(0,Math.min(1,e)),t()):f},a.paddingInner=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},a.paddingOuter=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},a.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d},a.copy=function(){return c().domain(i()).range(l).round(s).paddingInner(f).paddingOuter(h).align(d)},t()}function l(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return l(e())},t}function s(){return l(c().paddingInner(1))}function f(t){return function(){return t}}function h(t){return+t}function d(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:f(e)}function p(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function g(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function m(t,e,n,r){var a=t[0],i=t[1],o=e[0],u=e[1];return i<a?(a=n(i,a),o=r(u,o)):(a=n(a,i),o=r(o,u)),function(t){return o(a(t))}}function y(t,n,r,a){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),c=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++c<i;)o[c]=r(t[c],t[c+1]),u[c]=a(n[c],n[c+1]);return function(n){var r=e.bisect(t,n,1,i)-1;return u[r](o[r](n))}}function v(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function M(t,e){function n(){return i=Math.min(c.length,l.length)>2?y:m,o=u=null,a}function a(e){return(o||(o=i(c,l,f?p(t):t,s)))(+e)}var i,o,u,c=J,l=J,s=r.interpolate,f=!1;return a.invert=function(t){return(u||(u=i(l,c,d,f?g(e):e)))(+t)},a.domain=function(t){return arguments.length?(c=X.call(t,h),n()):c.slice()},a.range=function(t){return arguments.length?(l=z.call(t),n()):l.slice()},a.rangeRound=function(t){return l=z.call(t),s=r.interpolateRound,n()},a.clamp=function(t){return arguments.length?(f=!!t,n()):f},a.interpolate=function(t){return arguments.length?(s=t,n()):s},n()}function b(t,n,r){var i,o=t[0],u=t[t.length-1],c=e.tickStep(o,u,null==n?10:n);switch(r=a.formatSpecifier(null==r?",f":r),r.type){case"s":var l=Math.max(Math.abs(o),Math.abs(u));return null!=r.precision||isNaN(i=a.precisionPrefix(c,l))||(r.precision=i),a.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=a.precisionRound(c,Math.max(Math.abs(o),Math.abs(u))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=a.precisionFixed(c))||(r.precision=i-2*("%"===r.type))}return a.format(r)}function w(t){var n=t.domain;return t.ticks=function(t){var r=n();return e.ticks(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,e){return b(n(),t,e)},t.nice=function(r){null==r&&(r=10);var a,i=n(),o=0,u=i.length-1,c=i[o],l=i[u];return l<c&&(a=c,c=l,l=a,a=o,o=u,u=a),a=e.tickIncrement(c,l,r),a>0?(c=Math.floor(c/a)*a,l=Math.ceil(l/a)*a,a=e.tickIncrement(c,l,r)):a<0&&(c=Math.ceil(c*a)/a,l=Math.floor(l*a)/a,a=e.tickIncrement(c,l,r)),a>0?(i[o]=Math.floor(c/a)*a,i[u]=Math.ceil(l/a)*a,n(i)):a<0&&(i[o]=Math.ceil(c*a)/a,i[u]=Math.floor(l*a)/a,n(i)),t},t}function T(){var t=M(d,r.interpolateNumber);return t.copy=function(){return v(t,T())},w(t)}function x(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=X.call(n,h),t):e.slice()},t.copy=function(){return x().domain(e)},w(t)}function C(t,e){t=t.slice();var n,r=0,a=t.length-1,i=t[r],o=t[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),t[r]=e.floor(i),t[a]=e.ceil(o),t}function D(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:f(e)}function N(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function k(t){return isFinite(t)?+("1e"+t):t<0?0:t}function E(t){return 10===t?k:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function S(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function _(t){return function(e){return-t(-e)}}function H(){function t(){return o=S(i),u=E(i),r()[0]<0&&(o=_(o),u=_(u)),n}var n=M(D,N).domain([1,10]),r=n.domain,i=10,o=S(10),u=E(10);return n.base=function(e){return arguments.length?(i=+e,t()):i},n.domain=function(e){return arguments.length?(r(e),t()):r()},n.ticks=function(t){var n,a=r(),c=a[0],l=a[a.length-1];(n=l<c)&&(d=c,c=l,l=d);var s,f,h,d=o(c),p=o(l),g=null==t?10:+t,m=[];if(!(i%1)&&p-d<g){if(d=Math.round(d)-1,p=Math.round(p)+1,c>0){for(;d<p;++d)for(f=1,s=u(d);f<i;++f)if(h=s*f,!(h<c)){if(h>l)break;m.push(h)}}else for(;d<p;++d)for(f=i-1,s=u(d);f>=1;--f)if(h=s*f,!(h<c)){if(h>l)break;m.push(h)}}else m=e.ticks(d,p,Math.min(p-d,g)).map(u);return n?m.reverse():m},n.tickFormat=function(t,e){if(null==e&&(e=10===i?".0e":","),"function"!=typeof e&&(e=a.format(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,i*t/n.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*i<i-.5&&(n*=i),n<=r?e(t):""}},n.nice=function(){return r(C(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},n.copy=function(){return v(n,H().base(i))},n}function L(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function U(){function t(t,e){return(e=L(e,n)-(t=L(t,n)))?function(r){return(L(r,n)-t)/e}:f(e)}function e(t,e){return e=L(e,n)-(t=L(t,n)),function(r){return L(t+e*r,1/n)}}var n=1,r=M(t,e),a=r.domain;return r.exponent=function(t){return arguments.length?(n=+t,a(a())):n},r.copy=function(){return v(r,U().exponent(n))},w(r)}function F(){return U().exponent(.5)}function O(){function t(){var t=0,o=Math.max(1,a.length);for(i=new Array(o-1);++t<o;)i[t-1]=e.quantile(r,t/o);return n}function n(t){if(!isNaN(t=+t))return a[e.bisect(i,t)]}var r=[],a=[],i=[];return n.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},n.domain=function(n){if(!arguments.length)return r.slice();r=[];for(var a,i=0,o=n.length;i<o;++i)a=n[i],null==a||isNaN(a=+a)||r.push(a);return r.sort(e.ascending),t()},n.range=function(e){return arguments.length?(a=z.call(e),t()):a.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return O().domain(r).range(a)},n}function Y(){function t(t){if(t<=t)return u[e.bisect(o,t,0,i)]}function n(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*a-(e-i)*r)/(i+1);return t}var r=0,a=1,i=1,o=[.5],u=[0,1];return t.domain=function(t){return arguments.length?(r=+t[0],a=+t[1],n()):[r,a]},t.range=function(t){return arguments.length?(i=(u=z.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var e=u.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],a]:[o[e-1],o[e]]},t.copy=function(){return Y().domain([r,a]).range(u)},w(t)}function A(){function t(t){if(t<=t)return r[e.bisect(n,t,0,a)]}var n=[.5],r=[0,1],a=1;return t.domain=function(e){return arguments.length?(n=z.call(e),a=Math.min(n.length,r.length-1),t):n.slice()},t.range=function(e){return arguments.length?(r=z.call(e),a=Math.min(n.length,r.length-1),t):r.slice()},t.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},t.copy=function(){return A().domain(n).range(r)},t}function V(t){return new Date(t)}function j(t){return t instanceof Date?+t:+new Date(+t);
  }function P(t,n,a,i,o,u,c,l,s){function f(e){return(c(e)<e?y:u(e)<e?b:o(e)<e?w:i(e)<e?T:n(e)<e?a(e)<e?x:D:t(e)<e?N:k)(e)}function h(n,r,a,i){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(a-r)/n,u=e.bisector(function(t){return t[2]}).right(E,o);u===E.length?(i=e.tickStep(r/et,a/et,n),n=t):u?(u=E[o/E[u-1][2]<E[u][2]/o?u-1:u],i=u[1],n=u[0]):(i=Math.max(e.tickStep(r,a,n),1),n=l)}return null==i?n:n.every(i)}var p=M(d,r.interpolateNumber),g=p.invert,m=p.domain,y=s(".%L"),b=s(":%S"),w=s("%I:%M"),T=s("%I %p"),x=s("%a %d"),D=s("%b %d"),N=s("%B"),k=s("%Y"),E=[[c,1,Z],[c,5,5*Z],[c,15,15*Z],[c,30,30*Z],[u,1,$],[u,5,5*$],[u,15,15*$],[u,30,30*$],[o,1,Q],[o,3,3*Q],[o,6,6*Q],[o,12,12*Q],[i,1,G],[i,2,2*G],[a,1,K],[n,1,tt],[n,3,3*tt],[t,1,et]];return p.invert=function(t){return new Date(g(t))},p.domain=function(t){return arguments.length?m(X.call(t,j)):m().map(V)},p.ticks=function(t,e){var n,r=m(),a=r[0],i=r[r.length-1],o=i<a;return o&&(n=a,a=i,i=n),n=h(t,a,i,e),n=n?n.range(a,i+1):[],o?n.reverse():n},p.tickFormat=function(t,e){return null==e?f:s(e)},p.nice=function(t,e){var n=m();return(t=h(t,n[0],n[n.length-1],e))?m(C(n,t)):p},p.copy=function(){return v(p,P(t,n,a,i,o,u,c,l,s))},p}function I(){return P(i.timeYear,i.timeMonth,i.timeWeek,i.timeDay,i.timeHour,i.timeMinute,i.timeSecond,i.timeMillisecond,o.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function R(){return P(i.utcYear,i.utcMonth,i.utcWeek,i.utcDay,i.utcHour,i.utcMinute,i.utcSecond,i.utcMillisecond,o.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function W(t){function e(e){var i=(e-n)/(r-n);return t(a?Math.max(0,Math.min(1,i)):i)}var n=0,r=1,a=!1;return e.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.clamp=function(t){return arguments.length?(a=!!t,e):a},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return W(t).domain([n,r]).clamp(a)},w(e)}var q=Array.prototype,X=q.map,z=q.slice,B={name:"implicit"},J=[0,1],Z=1e3,$=60*Z,Q=60*$,G=24*Q,K=7*G,tt=30*G,et=365*G;t.scaleBand=c,t.scalePoint=s,t.scaleIdentity=x,t.scaleLinear=T,t.scaleLog=H,t.scaleOrdinal=u,t.scaleImplicit=B,t.scalePow=U,t.scaleSqrt=F,t.scaleQuantile=O,t.scaleQuantize=Y,t.scaleThreshold=A,t.scaleTime=I,t.scaleUtc=R,t.scaleSequential=W,Object.defineProperty(t,"__esModule",{value:!0})})},57:function(t,e,n){!function(t,r){r(e,n(33))}(this,function(t,e){"use strict";function n(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function r(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function a(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function i(t){function i(t,e){return function(n){var r,a,i,o=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(o.push(t.slice(c,u)),null!=(a=mt[r=t.charAt(++u)])?r=t.charAt(++u):a="e"===r?" ":"0",(i=e[r])&&(r=i(n,a)),o.push(r),c=u+1);return o.push(t.slice(c,u)),o.join("")}}function o(t,n){return function(i){var o,c,l=a(1900),s=u(l,t,i+="",0);if(s!=i.length)return null;if("Q"in l)return new Date(l.Q);if("p"in l&&(l.H=l.H%12+12*l.p),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(o=r(a(l.y)),c=o.getUTCDay(),o=c>4||0===c?e.utcMonday.ceil(o):e.utcMonday(o),o=e.utcDay.offset(o,7*(l.V-1)),l.y=o.getUTCFullYear(),l.m=o.getUTCMonth(),l.d=o.getUTCDate()+(l.w+6)%7):(o=n(a(l.y)),c=o.getDay(),o=c>4||0===c?e.timeMonday.ceil(o):e.timeMonday(o),o=e.timeDay.offset(o,7*(l.V-1)),l.y=o.getFullYear(),l.m=o.getMonth(),l.d=o.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),c="Z"in l?r(a(l.y)).getUTCDay():n(a(l.y)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+7*l.W-(c+5)%7:l.w+7*l.U-(c+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,r(l)):n(l)}}function u(t,e,n,r){for(var a,i,o=0,u=e.length,c=n.length;o<u;){if(r>=c)return-1;if(a=e.charCodeAt(o++),37===a){if(a=e.charAt(o++),i=Qt[a in mt?e.charAt(o++):a],!i||(r=i(t,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function ht(t,e,n){var r=jt.exec(e.slice(n));return r?(t.p=Pt[r[0].toLowerCase()],n+r[0].length):-1}function dt(t,e,n){var r=Wt.exec(e.slice(n));return r?(t.w=qt[r[0].toLowerCase()],n+r[0].length):-1}function pt(t,e,n){var r=It.exec(e.slice(n));return r?(t.w=Rt[r[0].toLowerCase()],n+r[0].length):-1}function gt(t,e,n){var r=Bt.exec(e.slice(n));return r?(t.m=Jt[r[0].toLowerCase()],n+r[0].length):-1}function yt(t,e,n){var r=Xt.exec(e.slice(n));return r?(t.m=zt[r[0].toLowerCase()],n+r[0].length):-1}function vt(t,e,n){return u(t,Ht,e,n)}function Mt(t,e,n){return u(t,Lt,e,n)}function bt(t,e,n){return u(t,Ut,e,n)}function wt(t){return Yt[t.getDay()]}function Tt(t){return Ot[t.getDay()]}function xt(t){return Vt[t.getMonth()]}function Ct(t){return At[t.getMonth()]}function Dt(t){return Ft[+(t.getHours()>=12)]}function Nt(t){return Yt[t.getUTCDay()]}function kt(t){return Ot[t.getUTCDay()]}function Et(t){return Vt[t.getUTCMonth()]}function St(t){return At[t.getUTCMonth()]}function _t(t){return Ft[+(t.getUTCHours()>=12)]}var Ht=t.dateTime,Lt=t.date,Ut=t.time,Ft=t.periods,Ot=t.days,Yt=t.shortDays,At=t.months,Vt=t.shortMonths,jt=c(Ft),Pt=l(Ft),It=c(Ot),Rt=l(Ot),Wt=c(Yt),qt=l(Yt),Xt=c(At),zt=l(At),Bt=c(Vt),Jt=l(Vt),Zt={a:wt,A:Tt,b:xt,B:Ct,c:null,d:S,e:S,f:F,H:_,I:H,j:L,L:U,m:O,M:Y,p:Dt,Q:st,s:ft,S:A,u:V,U:j,V:P,w:I,W:R,x:null,X:null,y:W,Y:q,Z:X,"%":lt},$t={a:Nt,A:kt,b:Et,B:St,c:null,d:z,e:z,f:Q,H:B,I:J,j:Z,L:$,m:G,M:K,p:_t,Q:st,s:ft,S:tt,u:et,U:nt,V:rt,w:at,W:it,x:null,X:null,y:ot,Y:ut,Z:ct,"%":lt},Qt={a:dt,A:pt,b:gt,B:yt,c:vt,d:M,e:M,f:D,H:w,I:w,j:b,L:C,m:v,M:T,p:ht,Q:k,s:E,S:x,u:f,U:h,V:d,w:s,W:p,x:Mt,X:bt,y:m,Y:g,Z:y,"%":N};return Zt.x=i(Lt,Zt),Zt.X=i(Ut,Zt),Zt.c=i(Ht,Zt),$t.x=i(Lt,$t),$t.X=i(Ut,$t),$t.c=i(Ht,$t),{format:function(t){var e=i(t+="",Zt);return e.toString=function(){return t},e},parse:function(t){var e=o(t+="",n);return e.toString=function(){return t},e},utcFormat:function(t){var e=i(t+="",$t);return e.toString=function(){return t},e},utcParse:function(t){var e=o(t,r);return e.toString=function(){return t},e}}}function o(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(e)+a:a)}function u(t){return t.replace(Mt,"\\$&")}function c(t){return new RegExp("^(?:"+t.map(u).join("|")+")","i")}function l(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function s(t,e,n){var r=yt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function f(t,e,n){var r=yt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function h(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function d(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function p(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function g(t,e,n){var r=yt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function m(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function y(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function v(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function M(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function b(t,e,n){var r=yt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function w(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function T(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function x(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function C(t,e,n){var r=yt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function D(t,e,n){var r=yt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function N(t,e,n){var r=vt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function k(t,e,n){var r=yt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function E(t,e,n){var r=yt.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function S(t,e){return o(t.getDate(),e,2)}function _(t,e){return o(t.getHours(),e,2)}function H(t,e){return o(t.getHours()%12||12,e,2)}function L(t,n){return o(1+e.timeDay.count(e.timeYear(t),t),n,3)}function U(t,e){return o(t.getMilliseconds(),e,3)}function F(t,e){return U(t,e)+"000"}function O(t,e){return o(t.getMonth()+1,e,2)}function Y(t,e){return o(t.getMinutes(),e,2)}function A(t,e){return o(t.getSeconds(),e,2)}function V(t){var e=t.getDay();return 0===e?7:e}function j(t,n){return o(e.timeSunday.count(e.timeYear(t),t),n,2)}function P(t,n){var r=t.getDay();return t=r>=4||0===r?e.timeThursday(t):e.timeThursday.ceil(t),o(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),n,2)}function I(t){return t.getDay()}function R(t,n){return o(e.timeMonday.count(e.timeYear(t),t),n,2)}function W(t,e){return o(t.getFullYear()%100,e,2)}function q(t,e){return o(t.getFullYear()%1e4,e,4)}function X(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+o(e/60|0,"0",2)+o(e%60,"0",2)}function z(t,e){return o(t.getUTCDate(),e,2)}function B(t,e){return o(t.getUTCHours(),e,2)}function J(t,e){return o(t.getUTCHours()%12||12,e,2)}function Z(t,n){return o(1+e.utcDay.count(e.utcYear(t),t),n,3)}function $(t,e){return o(t.getUTCMilliseconds(),e,3)}function Q(t,e){return $(t,e)+"000"}function G(t,e){return o(t.getUTCMonth()+1,e,2)}function K(t,e){return o(t.getUTCMinutes(),e,2)}function tt(t,e){return o(t.getUTCSeconds(),e,2)}function et(t){var e=t.getUTCDay();return 0===e?7:e}function nt(t,n){return o(e.utcSunday.count(e.utcYear(t),t),n,2)}function rt(t,n){var r=t.getUTCDay();return t=r>=4||0===r?e.utcThursday(t):e.utcThursday.ceil(t),o(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),n,2)}function at(t){return t.getUTCDay()}function it(t,n){return o(e.utcMonday.count(e.utcYear(t),t),n,2)}function ot(t,e){return o(t.getUTCFullYear()%100,e,2)}function ut(t,e){return o(t.getUTCFullYear()%1e4,e,4)}function ct(){return"+0000"}function lt(){return"%"}function st(t){return+t}function ft(t){return Math.floor(+t/1e3)}function ht(e){return gt=i(e),t.timeFormat=gt.format,t.timeParse=gt.parse,t.utcFormat=gt.utcFormat,t.utcParse=gt.utcParse,gt}function dt(t){return t.toISOString()}function pt(t){var e=new Date(t);return isNaN(e)?null:e}var gt,mt={"-":"",_:" ",0:"0"},yt=/^\s*\d+/,vt=/^%/,Mt=/[\\^$*+?|[\]().{}]/g;ht({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var bt="%Y-%m-%dT%H:%M:%S.%LZ",wt=Date.prototype.toISOString?dt:t.utcFormat(bt),Tt=+new Date("2000-01-01T00:00:00.000Z")?pt:t.utcParse(bt);t.timeFormatDefaultLocale=ht,t.timeFormatLocale=i,t.isoFormat=wt,t.isoParse=Tt,Object.defineProperty(t,"__esModule",{value:!0})})},33:function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,n,r,o){function u(e){return t(e=new Date(+e)),e}return u.floor=u,u.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e<n-t?e:n},u.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,r,a){var i,o=[];if(e=u.ceil(e),a=null==a?1:Math.floor(a),!(e<r&&a>0))return o;do o.push(i=new Date(+e)),n(e,a),t(e);while(i<e&&e<r);return o},u.filter=function(r){return e(function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!r(t););else for(;--e>=0;)for(;n(t,1),!r(t););})},r&&(u.count=function(e,n){return a.setTime(+e),i.setTime(+n),t(a),t(i),Math.floor(r(a,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(o?function(e){return o(e)%t===0}:function(e){return u.count(0,e)%t===0}):u:null}),u}function n(t){return e(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/h})}function r(t){return e(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/h})}var a=new Date,i=new Date,o=e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):o:null};var u=o.range,c=1e3,l=6e4,s=36e5,f=864e5,h=6048e5,d=e(function(t){t.setTime(Math.floor(t/c)*c)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getUTCSeconds()}),p=d.range,g=e(function(t){t.setTime(Math.floor(t/l)*l)},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getMinutes()}),m=g.range,y=e(function(t){var e=t.getTimezoneOffset()*l%s;e<0&&(e+=s),t.setTime(Math.floor((+t-e)/s)*s+e)},function(t,e){t.setTime(+t+e*s)},function(t,e){return(e-t)/s},function(t){return t.getHours()}),v=y.range,M=e(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*l)/f},function(t){return t.getDate()-1}),b=M.range,w=n(0),T=n(1),x=n(2),C=n(3),D=n(4),N=n(5),k=n(6),E=w.range,S=T.range,_=x.range,H=C.range,L=D.range,U=N.range,F=k.range,O=e(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Y=O.range,A=e(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});A.every=function(t){return isFinite(t=Math.floor(t))&&t>0?e(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var V=A.range,j=e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getUTCMinutes()}),P=j.range,I=e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*s)},function(t,e){return(e-t)/s},function(t){return t.getUTCHours()}),R=I.range,W=e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/f},function(t){return t.getUTCDate()-1}),q=W.range,X=r(0),z=r(1),B=r(2),J=r(3),Z=r(4),$=r(5),Q=r(6),G=X.range,K=z.range,tt=B.range,et=J.range,nt=Z.range,rt=$.range,at=Q.range,it=e(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),ot=it.range,ut=e(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});ut.every=function(t){return isFinite(t=Math.floor(t))&&t>0?e(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var ct=ut.range;t.timeInterval=e,t.timeMillisecond=o,t.timeMilliseconds=u,t.utcMillisecond=o,t.utcMilliseconds=u,t.timeSecond=d,t.timeSeconds=p,t.utcSecond=d,t.utcSeconds=p,t.timeMinute=g,t.timeMinutes=m,t.timeHour=y,t.timeHours=v,t.timeDay=M,t.timeDays=b,t.timeWeek=w,t.timeWeeks=E,t.timeSunday=w,t.timeSundays=E,t.timeMonday=T,t.timeMondays=S,t.timeTuesday=x,t.timeTuesdays=_,t.timeWednesday=C,t.timeWednesdays=H,t.timeThursday=D,t.timeThursdays=L,t.timeFriday=N,t.timeFridays=U,t.timeSaturday=k,t.timeSaturdays=F,t.timeMonth=O,t.timeMonths=Y,t.timeYear=A,t.timeYears=V,t.utcMinute=j,t.utcMinutes=P,t.utcHour=I,t.utcHours=R,t.utcDay=W,t.utcDays=q,t.utcWeek=X,t.utcWeeks=G,t.utcSunday=X,t.utcSundays=G,t.utcMonday=z,t.utcMondays=K,t.utcTuesday=B,t.utcTuesdays=tt,t.utcWednesday=J,t.utcWednesdays=et,t.utcThursday=Z,t.utcThursdays=nt,t.utcFriday=$,t.utcFridays=rt,t.utcSaturday=Q,t.utcSaturdays=at,t.utcMonth=it,t.utcMonths=ot,t.utcYear=ut,t.utcYears=ct,Object.defineProperty(t,"__esModule",{value:!0})})},391:function(t,e){},310:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(1),c=r(u),l=n(56),s=n(2),f=(r(s),n(311)),h=r(f),d=n(316),p=r(d),g=function(t){function e(){var n,r,o;a(this,e);for(var u=arguments.length,c=Array(u),l=0;l<u;l++)c[l]=arguments[l];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.onMouseOver=function(t){var e=r.props.showToolTip;e(t)},r.onMouseLeave=function(){var t=r.props.hideToolTip;t()},r.findMin=function(){var t=r.props.dataChart,e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,a=0;for(var i in t.monthlyVariance)a=t.monthlyVariance[i].variance,a<e&&(e=a),a>n&&(n=a);return{minVariance:e,maxVariance:n}},r.countDups=function(){var t=r.props.dataChart,e=[],n=0;for(var a in t.monthlyVariance){n=t.monthlyVariance[a].year;var i=e.find(function(t){return t==n});i||e.push(n)}return e.length},o=n,i(r,o)}return o(e,t),e.prototype.render=function(){var t=this.props.dataChart,e=t.baseTemperature,n=new Date(t.monthlyVariance[0].year,0),r=new Date(t.monthlyVariance[t.monthlyVariance.length-1].year,0),a=this.countDups(),i=this.findMin(),o=["January","February","March","April","May","June","July","August","September","October","November","December"],u={top:30,right:20,bottom:30,left:30},s={width:Math.max(820,300),height:500,innerWidth:0,innerHeight:0};s.innerHeight=s.height/o.length,s.innerWidth=s.width/a;var f=(0,l.scaleTime)().domain([n,r]).range([0,s.width-1]),d=(0,l.scaleBand)().domain(o).range([0,s.height]);return c.default.createElement("svg",{width:s.width+u.left+u.right,height:s.height+u.top+u.bottom,className:"animated bounceInLeft"},c.default.createElement(h.default,{scales:{xScale:f,yScale:d},margins:u,svgDimensions:s}),c.default.createElement(p.default,{varianceData:i,svgDimensions:s,heatData:t.monthlyVariance,baseTemp:e,heatMouseOver:this.onMouseOver,heatMouseleave:this.onMouseLeave}))},e}(u.Component);g.propTypes={},e.default=g,t.exports=e.default},311:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=n(1),i=r(a),o=n(312),u=r(o),c=function(t){var e=t.scales,n=t.margins,r=t.svgDimensions,a=r.height,o=(r.width,{orient:"Bottom",scale:e.xScale,translate:"translate(0, "+(a+1)+")",tickSize:a-n.top-n.bottom}),c={orient:"Right",scale:e.yScale,translate:"translate("+(r.width+1)+",0)"};return i.default.createElement("g",null,i.default.createElement(u.default,o),i.default.createElement(u.default,c))};e.default=c,t.exports=e.default},312:function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var c=n(1),l=a(c),s=n(98),f=r(s),h=n(37),d=n(33),p=r(d),g=n(125),m=a(g),y=function(t){function e(){return i(this,e),o(this,t.apply(this,arguments))}return u(e,t),e.prototype.componentDidMount=function(){this.renderAxis()},e.prototype.componentDidUpdate=function(){this.renderAxis()},e.prototype.renderAxis=function(){var t=this.props,e=t.orient,n=t.scale,r="axis"+e,a=f[r]().scale(n);"Bottom"===e&&a.ticks(p.timeYear.every(10)),(0,h.select)(this.axisElement).call(a)},e.prototype.render=function(){var t=this,e=this.props,n=e.translate,r=e.orient;return l.default.createElement("g",{className:m.default.Axis+" "+m.default.Axis+"-"+r,ref:function(e){t.axisElement=e},transform:n})},e}(c.Component);e.default=y,t.exports=e.default},313:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=n(1),i=r(a);n(391);var o=n(125),u=r(o),c=function(){return i.default.createElement("div",{className:u.default.containerColors},i.default.createElement("div",{className:u.default.firstLabel},"0"),i.default.createElement("div",{className:u.default.secondLabel},"2.7"),i.default.createElement("div",{className:u.default.thirdLabel},"3.9"),i.default.createElement("div",{className:u.default.fourthLabel},"5"),i.default.createElement("div",{className:u.default.fithLabel},"6.1"),i.default.createElement("div",{className:u.default.sixthLabel},"7.2"),i.default.createElement("div",{className:u.default.seventhLabel},"8.3"),i.default.createElement("div",{className:u.default.eightLabel},"9.4"),i.default.createElement("div",{className:u.default.tenLabel},"10.5"),i.default.createElement("div",{className:u.default.elevenLabel},"11.6"),i.default.createElement("div",{className:u.default.twelveLabel},"12.7"))};e.default=c,t.exports=e.default},314:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(1),c=r(u),l=n(81),s=r(l),f=n(310),h=r(f),d=n(317),p=r(d),g=n(313),m=r(g),y=n(125),v=r(y),M=function(t){function e(){a(this,e);var n=i(this,t.call(this));return n.onHideToolTip=function(){n.setState({isTooltipActive:!1,tooltipData:{}})},n.onShowToolTip=function(t){n.setState({isTooltipActive:!0,tooltipData:t})},n.state={isLoading:!0,isError:!1,fullchartData:{},isTooltipActive:!1,tooltipData:{}},n}return o(e,t),e.prototype.componentDidMount=function(){var t=this;setTimeout(function(){var e=JSON.parse(s.default.getStorageData("heatdata"));e?t.setState(function(t){return{fullchartData:e,isLoading:!1}}):t.fetchData()},2500)},e.prototype.fetchData=function(){var t=this;fetch("https://raw.githubusercontent.com/FreeCodeCamp/ProjectReferenceData/master/global-temperature.json").then(function(t){return t.json()}).then(function(e){s.default.setStorageData("heatdata",e),t.setState({fullchartData:e,isLoading:!1})}).catch(function(e){console.log("===================================="),console.log("error getting the chart data:"+JSON.stringify(e,null,2)),console.log("===================================="),t.setState(function(t){return{isError:!0}})})},e.prototype.render=function(){var t=this.state,e=t.isError,n=t.isLoading,r=t.fullchartData,a=t.isTooltipActive,i=t.tooltipData;return e?c.default.createElement("div",{className:v.default.heatTitle},"Lights up the sirens.....Something went wrong"):n?c.default.createElement("div",{className:v.default.heatPreloader},"Hold on to your hat...i'm getting the data at lightspeed"):r.baseTemperature?c.default.createElement("div",null,c.default.createElement("div",{className:v.default.heatTitle},"Monthly Global Surface Temperature between 1753 - 2015"),c.default.createElement("div",{className:v.default.containerHeat},c.default.createElement("div",null,c.default.createElement(m.default,null)),c.default.createElement("div",{className:v.default.containerHeatChart},c.default.createElement(h.default,{dataChart:r,showToolTip:this.onShowToolTip,hideToolTip:this.onHideToolTip})),c.default.createElement("div",null,c.default.createElement(p.default,{data:a?i:null})))):void 0},e}(u.Component);e.default=M,t.exports=e.default},315:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(1),c=r(u),l=n(2),s=r(l),f=function(t){function e(){var n,r,o;a(this,e);for(var u=arguments.length,c=Array(u),l=0;l<u;l++)c[l]=arguments[l];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.onHeatEnter=function(t){var e=r.props,n=e.data,a=e.heatDataMouseEnter;a({temp:n.baseTemp,variance:n.variance,year:n.year,month:n.month,toolColor:n.fillColor,baseTemp:n.baseTemp})},r.onHeatLeave=function(){r.props.heatDataMouseLeave()},o=n,i(r,o)}return o(e,t),e.prototype.render=function(){var t=this.props.data,e=(t.year-t.baseYear)*t.width,n=(t.month-1)*t.height;return c.default.createElement("rect",{key:"heat_item_"+t.year+"_"+t.month,x:e,y:n,height:t.height,width:t.width,fill:t.fillColor,onMouseOver:this.onHeatEnter,onMouseOut:this.onHeatLeave})},e}(u.PureComponent);f.propTypes={data:s.default.shape({year:s.default.number,baseYear:s.default.number,month:s.default.number,width:s.default.number,height:s.default.number,variance:s.default.number,baseTemp:s.default.number,fillColor:s.default.string}),heatDataMouseEnter:s.default.func,heatDataMouseLeave:s.default.func},e.default=f,t.exports=e.default},316:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(1),c=r(u),l=n(56),s=n(2),f=(r(s),n(315)),h=r(f),d=function(t){function e(){var n,r,o;a(this,e);for(var u=arguments.length,c=Array(u),l=0;l<u;l++)c[l]=arguments[l];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.onheatMouseOver=function(t){var e=r.props.heatMouseOver;e(t)},r.onheatMouseLeave=function(){r.props.heatMouseleave()},o=n,i(r,o)}return o(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.varianceData,r=e.baseTemp,a=e.heatData,i=e.svgDimensions,o=["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#ffffbf","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"],u=(0,l.scaleQuantile)().domain([n.minVariance+r,n.maxVariance+r]).range(o),s=(i.height,i.width,i.innerWidth),f=i.innerHeight,d=a.map(function(e){return c.default.createElement(h.default,{key:"heat_item_"+e.year+"_"+e.month,data:{year:e.year,baseYear:a[0].year,month:e.month,width:s,height:f,variance:e.variance,baseTemp:r,fillColor:u(e.variance+r)},heatDataMouseEnter:t.onheatMouseOver,heatDataMouseLeave:t.onheatMouseLeave})});return c.default.createElement("g",null,d)},e}(u.Component);e.default=d,t.exports=e.default},317:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=n(1),i=r(a),o=n(2),u=r(o),c=n(125),l=r(c),s=function(t){var e=["January","February","March","April","May","June","July","August","September","October","November","December"];return e[t-1]},f=function(){return i.default.createElement("div",null,i.default.createElement("div",{className:l.default.heattooltipText},"Mouse over a bar"),i.default.createElement("div",{className:l.default.heattooltipText},"to show you information"))},h=function(t){return i.default.createElement("div",null,i.default.createElement("div",{className:l.default.heattooltipText},s(t.month)," ",t.year),i.default.createElement("div",{className:l.default.heattooltipText},"Temperature was: ",t.baseTemp),i.default.createElement("div",{className:l.default.heattooltipText},"with variance of: ",t.variance))},d=function(t){var e=t.data;return i.default.createElement("div",{className:l.default.heatcontainerToolTip},e?h(e):f())};d.propTypes={data:u.default.shape({variance:u.default.number,baseTemp:u.default.number,month:u.default.number,year:u.default.number})},e.default=d,t.exports=e.default},125:function(t,e){t.exports={Axis:"src-components-Challenges-HeatMapChartView----heat-style-module---Axis---g-kz2","Axis-Left":"src-components-Challenges-HeatMapChartView----heat-style-module---Axis-Left---3AwBD",containerHeat:"src-components-Challenges-HeatMapChartView----heat-style-module---containerHeat---zNmI_",containerHeatChart:"src-components-Challenges-HeatMapChartView----heat-style-module---containerHeatChart---Njpjf",containerHeatToolTip:"src-components-Challenges-HeatMapChartView----heat-style-module---containerHeatToolTip---2Ft2S",heatTitle:"src-components-Challenges-HeatMapChartView----heat-style-module---heatTitle---2WI_I",heatPreloader:"src-components-Challenges-HeatMapChartView----heat-style-module---heatPreloader---1uwB-",containerColors:"src-components-Challenges-HeatMapChartView----heat-style-module---containerColors---3YqwE",firstLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---firstLabel---2o26I",secondLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---secondLabel---1_dig",thirdLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---thirdLabel---3_Bt9",fourthLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---fourthLabel---1kVlp",fithLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---fithLabel---1EMrW",sixthLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---sixthLabel---81bEn",seventhLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---seventhLabel---3a4sc",eightLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---eightLabel---1tH21",tenLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---tenLabel---3E_ET",elevenLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---elevenLabel---3snQQ",twelveLabel:"src-components-Challenges-HeatMapChartView----heat-style-module---twelveLabel---3ZLyY",heatcontainerToolTip:"src-components-Challenges-HeatMapChartView----heat-style-module---heatcontainerToolTip---T07s0",heattooltipText:"src-components-Challenges-HeatMapChartView----heat-style-module---heattooltipText---2MVwB"
  }},330:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=n(1),i=r(a),o=n(314),u=r(o),c=function(){return i.default.createElement("div",null,i.default.createElement(u.default,null))};e.default=c,t.exports=e.default}});
  //# sourceMappingURL=component---src-pages-heatview-js-3b53a52280c11a32d881.js.map