!function(){var b={version:"3.5.5"};var i=[].slice,h=function(e){return i.call(e)};var F=this.document;function G(e){return e&&(e.ownerDocument||e.document||e).documentElement}function hH(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(F){try{h(F.documentElement.childNodes)[0].nodeType}catch(hQ){h=function(h2){var h1=h2.length,e=new Array(h1);while(h1--){e[h1]=h2[h1]}return e}}}if(!Date.now){Date.now=function(){return +new Date()}}if(F){try{F.createElement("DIV").style.setProperty("opacity",0,"")}catch(hR){var X=this.Element.prototype,Y=X.setAttribute,Z=X.setAttributeNS,fJ=this.CSSStyleDeclaration.prototype,fK=fJ.setProperty;X.setAttribute=function(e,h1){Y.call(this,e,h1+"")};X.setAttributeNS=function(h1,e,h2){Z.call(this,h1,e,h2+"")};fJ.setProperty=function(e,h2,h1){fK.call(this,e,h2+"",h1)}}}b.ascending=j;function j(e,h1){return e
h1?1:e>=h1?0:NaN}b.descending=function(e,h1){return h1e?1:h1>=e?0:NaN};b.min=function(h1,h3){var h4=-1,h5=h1.length,e,h2;if(arguments.length===1){while(++h4=h2){e=h2;break}}while(++h4h2){e=h2}}}else{while(++h4=h2){e=h2;break}}while(++h4h2){e=h2}}}return e};b.max=function(h1,h3){var h4=-1,h5=h1.length,e,h2;if(arguments.length===1){while(++h4=h2){e=h2;break}}while(++h4e){e=h2}}}else{while(++h4=h2){e=h2;break}}while(++h4e){e=h2}}}return e};b.extent=function(h1,h4){var h5=-1,h6=h1.length,e,h2,h3;if(arguments.length===1){while(++h5=h2){e=h3=h2;break}}while(++h5h2){e=h2}if(h3=h2){e=h3=h2;break}}while(++h5h2){e=h2}if(h31){return h8/(h5-1)}};b.deviation=function(){var e=b.variance.apply(this,arguments);return e?Math.sqrt(e):e};function q(e){return{left:function(h1,h5,h3,h2){if(arguments.length<3){h3=0}if(arguments.length<4){h2=h1.length}while(h3>>1;if(e(h1[h4],h5)<0){h3=h4+1}else{h2=h4}}return h3},right:function(h1,h5,h3,h2){if(arguments.length<3){h3=0}if(arguments.length<4){h2=h1.length}while(h3>>1;if(e(h1[h4],h5)>0){h2=h4}else{h3=h4+1}}return h3}}}var p=q(j);b.bisectLeft=p.left;b.bisect=b.bisectRight=p.right;b.bisector=function(e){return q(e.length===1?function(h1,h2){return j(e(h1),h2)}:e)};b.shuffle=function(e,h2,h3){if((h4=arguments.length)<3){h3=e.length;if(h4<2){h2=0}}var h4=h3-h2,h5,h1;while(h4){h1=Math.random()*h4--|0;h5=e[h4+h2],e[h4+h2]=e[h1+h2],e[h1+h2]=h5}return e};b.permute=function(e,h2){var h1=h2.length,h3=new Array(h1);while(h1--){h3[h1]=e[h2[h1]]}return h3};b.pairs=function(e){var h1=0,h2=e.length-1,h3,h4=e[0],h5=new Array(h2<0?0:h2);while(h1=0){e=h1[h6];h4=e.length;while(--h4>=0){h5[--h3]=e[h4]}}return h5};var a=Math.abs;b.range=function(h4,h6,h5){if(arguments.length<3){h5=1;if(arguments.length<2){h6=h4;h4=0}}if((h6-h4)/h5===Infinity){throw new Error("infinite range")}var h3=[],h2=ey(a(h5)),e=-1,h1;h4*=h2,h6*=h2,h5*=h2;if(h5<0){while((h1=h4+h5*++e)>h6){h3.push(h1/h2)}}else{while((h1=h4+h5*++e)=h1.length){return h4?h4.call(h3,h7):h6?h7.sort(h6):h7}var h9=-1,id=h7.length,ia=h1[h8++],ib,ie,ig,ii=new eh(),ih;while(++h9=h1.length){return h9}var h7=[],ia=h5[h8++];h9.forEach(function(ib,ic){h7.push({key:ib,values:e(ic,h8)})});return ia?h7.sort(function(ib,ic){return ia(ib.key,ic.key)}):h7}h3.map=function(h7,h8){return h2(h8,h7,0)};h3.entries=function(h7){return e(h2(b.map,h7,0),0)};h3.key=function(h7){h1.push(h7);return h3};h3.sortKeys=function(h7){h5[h1.length-1]=h7;return h3};h3.sortValues=function(h7){h6=h7;return h3};h3.rollup=function(h7){h4=h7;return h3};return h3};b.set=function(e){var h3=new fF();if(e){for(var h1=0,h2=e.length;h1=0){h2=h3.slice(e+1);h3=h3.slice(0,e)}if(h3){return arguments.length<2?this[h3].on(h2):this[h3].on(h2,h1)}if(arguments.length===2){if(h1==null){for(h3 in this){if(this.hasOwnProperty(h3)){this[h3].on(h2,null)}}}return this}};function E(e){var h3=[],h2=new eh();function h1(){var h7=h3,h4=-1,h6=h7.length,h5;while(++h4=0){h2=h1.slice(0,e);h1=h1.slice(e+1)}return eu.hasOwnProperty(h2)?{space:eu[h2],local:h1}:h1}};fC.attr=function(e,h2){if(arguments.length<2){if(typeof e==="string"){var h1=this.node();e=b.ns.qualify(e);return e.local?h1.getAttributeNS(e.space,e.local):h1.getAttribute(e)}for(h2 in e){this.each(ff(h2,e[h2]))}return this}return this.each(ff(e,h2))};function ff(h6,h7){h6=b.ns.qualify(h6);function h4(){this.removeAttribute(h6)}function h5(){this.removeAttributeNS(h6.space,h6.local)}function e(){this.setAttribute(h6,h7)}function h1(){this.setAttributeNS(h6.space,h6.local,h7)}function h2(){var h8=h7.apply(this,arguments);if(h8==null){this.removeAttribute(h6)}else{this.setAttribute(h6,h8)}}function h3(){var h8=h7.apply(this,arguments);if(h8==null){this.removeAttributeNS(h6.space,h6.local)}else{this.setAttributeNS(h6.space,h6.local,h8)}}return h7==null?h6.local?h5:h4:typeof h7==="function"?h6.local?h3:h2:h6.local?h1:e}function w(e){return e.trim().replace(/\s+/g," ")}fC.classed=function(h2,h4){if(arguments.length<2){if(typeof h2==="string"){var h3=this.node(),h1=(h2=fj(h2)).length,e=-1;if(h4=h3.classList){while(++e=0;){if(h5=e[h1]){if(h4&&h4!==h5.nextSibling){h4.parentNode.insertBefore(h5,h4)}h4=h5}}}return this};fC.sort=function(e){e=fA.apply(this,arguments);for(var h1=-1,h2=this.length;++h1=h1){h1=h5+1}while(!(h8=h4[h1])&&++h10){h8=h8.slice(0,h2)}var h1=fv.get(h8);if(h1){h8=h1,h9=fu}function h6(){var ia=this[h4];if(ia){this.removeEventListener(h8,ia,ia.$);delete this[h4]}}function h5(){var ia=h9(h3,h(arguments));h6.call(this);this.addEventListener(h8,this[h4]=ia,ia.$=e);ia._=h3}function h7(){var id=new RegExp("^__on([^.]+)"+b.requote(h8)+"$"),ib;for(var ic in this){if(ib=ic.match(id)){var ia=this[ic];this.removeEventListener(ib[1],ia,ia.$);delete this[ic]}}}return h2?h3?h5:h6:h3?et:h7}var fv=b.map({mouseenter:"mouseover",mouseleave:"mouseout"});if(F){fv.forEach(function(e){if("on"+e in F){fv.remove(e)}})}function fw(h1,e){return function(h2){var h3=b.event;b.event=h2;e[0]=this.__data__;try{h1.apply(this,e)}finally{b.event=h3}}}function fu(h2,e){var h1=fw(h2,e);return function(h3){var h5=this,h4=h3.relatedTarget;if(!h4||h4!==h5&&!(h4.compareDocumentPosition(h5)&8)){h1.call(h5,h3)}}}var ab,aa=0;function ac(h2){var h1=".dragsuppress-"+ ++aa,e="click"+h1,h5=b.select(hH(h2)).on("touchmove"+h1,ae).on("dragstart"+h1,ae).on("selectstart"+h1,ae);if(ab==null){ab="onselectstart" in h2?false:hG(h2.style,"userSelect")}if(ab){var h4=G(h2).style,h3=h4[ab];h4[ab]="none"}return function(h7){h5.on(h1,null);if(ab){h4[ab]=h3}if(h7){var h6=function(){h5.on(e,null)};h5.on(e,function(){ae();h6()},true);setTimeout(h6,0)}}}b.mouse=function(e){return es(e,af())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function es(h1,h3){if(h3.changedTouches){h3=h3.changedTouches[0]}var h6=h1.ownerSVGElement||h1;if(h6.createSVGPoint){var h4=h6.createSVGPoint();if(er<0){var h7=hH(h1);if(h7.scrollX||h7.scrollY){h6=b.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var h2=h6[0][0].getScreenCTM();er=!(h2.f||h2.e);h6.remove()}}if(er){h4.x=h3.pageX,h4.y=h3.pageY}else{h4.x=h3.clientX,h4.y=h3.clientY}h4=h4.matrixTransform(h1.getScreenCTM().inverse());return[h4.x,h4.y]}var h5=h1.getBoundingClientRect();return[h3.clientX-h5.left-h1.clientLeft,h3.clientY-h5.top-h1.clientTop]}b.touch=function(e,h5,h2){if(arguments.length<3){h2=h5,h5=af().changedTouches}if(h5){for(var h1=0,h3=h5.length,h4;h10?1:e<0?-1:0}function z(e,h1,h2){return(h1[0]-e[0])*(h2[1]-e[1])-(h1[1]-e[1])*(h2[0]-e[0])}function c(e){return e>1?0:e<-1?hV:Math.acos(e)}function k(e){return e>1?hS:e<-1?-hS:Math.asin(e)}function fH(e){return((e=Math.exp(e))-1/e)/2}function y(e){return((e=Math.exp(e))+1/e)/2}function gA(e){return((e=Math.exp(2*e))-1)/(e+1)}function cQ(e){return(e=Math.sin(e/2))*e}var hW=Math.SQRT2,hX=2,hY=4;b.interpolateZoom=function(h8,h9){var id=h8[0],ig=h8[1],ii=h8[2],ie=h9[0],ih=h9[1],ij=h9[2];var h5=ie-id,h6=ih-ig,h3=h5*h5+h6*h6,h2=Math.sqrt(h3),e=(ij*ij-ii*ii+hY*h3)/(2*ii*hX*h2),h1=(ij*ij-ii*ii-hY*h3)/(2*ij*hX*h2),ia=Math.log(Math.sqrt(e*e+1)-e),ib=Math.log(Math.sqrt(h1*h1+1)-h1),h4=ib-ia,ic=(h4||Math.log(ij/ii))/hW;function h7(im){var il=im*ic;if(h4){var ik=y(ia),io=ii/(hX*h2)*(ik*gA(hW*il+ia)-fH(ia));return[id+io*h5,ig+io*h6,ii*ik/y(hW*il+ia)]}return[id+im*h5,ig+im*h6,ii*Math.exp(hW*il)]}h7.duration=ic*1000;return h7};b.behavior.zoom=function(){var io={x:0,y:0,k:1},il,h1,e,ih=[960,500],ie=n,h3=250,ix=0,h6="mousedown.zoom",h8="mousemove.zoom",h9="mouseup.zoom",ib,ii="touchstart.zoom",ik,h4=ad(iu,"zoomstart","zoom","zoomend"),ip,iq,ir,it;if(!o){o="onwheel" in F?(m=function(){return -b.event.deltaY*(b.event.deltaMode?120:1)},"wheel"):"onmousewheel" in F?(m=function(){return b.event.wheelDelta},"mousewheel"):(m=function(){return -b.event.detail},"MozMousePixelScroll")}function iu(iA){iA.on(h6,h7).on(o+".zoom",ia).on("dblclick.zoom",h2).on(ii,ij)}iu.event=function(iA){iA.each(function(){var iB=h4.of(this,arguments),iC=io;if(hy){b.select(this).transition().each("start.zoom",function(){io=this.__chart__||{x:0,y:0,k:1};iy(iB)}).tween("zoom:zoom",function(){var iF=ih[0],iG=ih[1],iD=h1?h1[0]:iF/2,iE=h1?h1[1]:iG/2,iH=b.interpolateZoom([(iD-io.x)/io.k,(iE-io.y)/io.k,iF/io.k],[(iD-iC.x)/iC.k,(iE-iC.y)/iC.k,iF/iC.k]);return function(iK){var iJ=iH(iK),iI=iF/iJ[2];this.__chart__=io={x:iD-iJ[0]*iI,y:iE-iJ[1]*iI,k:iI};iv(iB)}}).each("interrupt.zoom",function(){iw(iB)}).each("end.zoom",function(){iw(iB)})}else{this.__chart__=io;iy(iB);iv(iB);iw(iB)}})};iu.translate=function(iA){if(!arguments.length){return[io.x,io.y]}io={x:+iA[0],y:+iA[1],k:io.k};id();return iu};iu.scale=function(iA){if(!arguments.length){return io.k}io={x:io.x,y:io.y,k:+iA};id();return iu};iu.scaleExtent=function(iA){if(!arguments.length){return ie}ie=iA==null?n:[+iA[0],+iA[1]];return iu};iu.center=function(iA){if(!arguments.length){return e}e=iA&&[+iA[0],+iA[1]];return iu};iu.size=function(iA){if(!arguments.length){return ih}ih=iA&&[+iA[0],+iA[1]];return iu};iu.duration=function(iA){if(!arguments.length){return h3}h3=+iA;return iu};iu.x=function(iA){if(!arguments.length){return iq}iq=iA;ip=iA.copy();io={x:0,y:0,k:1};return iu};iu.y=function(iA){if(!arguments.length){return it}it=iA;ir=iA.copy();io={x:0,y:0,k:1};return iu};function h5(iA){return[(iA[0]-io.x)/io.k,(iA[1]-io.y)/io.k]}function ic(iA){return[iA[0]*io.k+io.x,iA[1]*io.k+io.y]}function ig(iA){io.k=Math.max(ie[0],Math.min(ie[1],iA))}function im(iB,iA){iA=ic(iA);io.x+=iB[0]-iA[0];io.y+=iB[1]-iA[1]}function iz(iD,iC,iB,iA){iD.__chart__={x:io.x,y:io.y,k:io.k};ig(Math.pow(2,iA));im(h1=iC,iB);iD=b.select(iD);if(h3>0){iD=iD.transition().duration(h3)}iD.call(iu.event)}function id(){if(iq){iq.domain(ip.range().map(function(iA){return(iA-io.x)/io.k}).map(ip.invert))}if(it){it.domain(ir.range().map(function(iA){return(iA-io.y)/io.k}).map(ir.invert))}}function iy(iA){if(!ix++){iA({type:"zoomstart"})}}function iv(iA){id();iA({type:"zoom",scale:io.k,translate:[io.x,io.y]})}function iw(iA){if(!--ix){iA({type:"zoomend"})}h1=null}function h7(){var iI=this,iH=b.event.target,iA=h4.of(iI,arguments),iB=0,iG=b.select(hH(iI)).on(h8,iF).on(h9,iD),iE=h5(b.mouse(iI)),iC=ac(iI);fr.call(iI);iy(iA);function iF(){iB=1;im(b.mouse(iI),iE);iv(iA)}function iD(){iG.on(h8,null).on(h9,null);iC(iB&&b.event.target===iH);iw(iA)}}function ij(){var iL=this,iA=h4.of(iL,arguments),iE={},iB=0,iH,iO=".zoom-"+b.event.changedTouches[0].identifier,iN="touchmove"+iO,iM="touchend"+iO,iK=[],iJ=b.select(iL),iC=ac(iL);iI();iy(iA);iJ.on(h6,null).on(ii,iI);function iG(){var iP=b.touches(iL);iH=io.k;iP.forEach(function(iQ){if(iQ.identifier in iE){iE[iQ.identifier]=h5(iQ)}});return iP}function iI(){var iX=b.event.target;b.select(iX).on(iN,iF).on(iM,iD);iK.push(iX);var iP=b.event.changedTouches;for(var iS=0,iT=iP.length;iS1){var iV=iY[0],iW=iY[1],iQ=iV[0]-iW[0],iR=iV[1]-iW[1];iB=iQ*iQ+iR*iR}}}function iF(){var iX=b.touches(iL),iU,iR,iV,iS;fr.call(iL);for(var iQ=0,iT=iX.length;iQ1?1:h4;h1=h1<0?0:h1>1?1:h1;h3=h1<=0.5?h1*(1+h4):h1+h4-h1*h4;h2=2*h1-h3;function h5(h7){if(h7>360){h7-=360}else{if(h7<0){h7+=360}}if(h7<60){return h2+(h3-h2)*h7/60}if(h7<180){return h3}if(h7<240){return h2+(h3-h2)*(240-h7)/60}return h2}function h6(h7){return Math.round(h5(h7)*255)}return new eB(h6(e+120),h6(e),h6(e-120))}b.hcl=cR;function cR(h1,e,h2){return this instanceof cR?void (this.h=+h1,this.c=+e,this.l=+h2):arguments.length<2?h1 instanceof cR?new cR(h1.h,h1.c,h1.l):h1 instanceof dd?de(h1.l,h1.a,h1.b):de((h1=eE((h1=b.rgb(h1)).r,h1.g,h1.b)).l,h1.a,h1.b):new cR(h1,e,h2)}var cT=cR.prototype=new x();cT.brighter=function(e){return new cR(this.h,this.c,Math.min(100,this.l+df*(arguments.length?e:1)))};cT.darker=function(e){return new cR(this.h,this.c,Math.max(0,this.l-df*(arguments.length?e:1)))};cT.rgb=function(){return cS(this.h,this.c,this.l).rgb()};function cS(h1,e,h2){if(isNaN(h1)){h1=0}if(isNaN(e)){e=0}return new dd(h2,Math.cos(h1*=ex)*e,Math.sin(h1)*e)}b.lab=dd;function dd(h2,e,h1){return this instanceof dd?void (this.l=+h2,this.a=+e,this.b=+h1):arguments.length<2?h2 instanceof dd?new dd(h2.l,h2.a,h2.b):h2 instanceof cR?cS(h2.h,h2.c,h2.l):eE((h2=eB(h2)).r,h2.g,h2.b):new dd(h2,e,h1)}var df=18;var dh=0.95047,dj=1,dk=1.08883;var dl=dd.prototype=new x();dl.brighter=function(e){return new dd(Math.min(100,this.l+df*(arguments.length?e:1)),this.a,this.b)};dl.darker=function(e){return new dd(Math.max(0,this.l-df*(arguments.length?e:1)),this.a,this.b)};dl.rgb=function(){return dg(this.l,this.a,this.b)};function dg(h2,e,h1){var h4=(h2+16)/116,h3=h4+e/500,h5=h4-h1/200;h3=di(h3)*dh;h4=di(h4)*dj;h5=di(h5)*dk;return new eB(hN(3.2404542*h3-1.5371385*h4-0.4985314*h5),hN(-0.969266*h3+1.8760108*h4+0.041556*h5),hN(0.0556434*h3-0.2040259*h4+1.0572252*h5))}function de(h2,e,h1){return h2>0?new cR(Math.atan2(h1,e)*C,Math.sqrt(e*e+h1*h1),h2):new cR(NaN,NaN,h2)}function di(e){return e>0.206893034?e*e*e:(e-4/29)/7.787037}function hM(e){return e>0.008855999999999999?Math.pow(e,1/3):7.787037*e+4/29}function hN(e){return Math.round(255*(e<=0.00304?12.92*e:1.055*Math.pow(e,1/2.4)-0.055))}b.rgb=eB;function eB(h2,h1,e){return this instanceof eB?void (this.r=~~h2,this.g=~~h1,this.b=~~e):arguments.length<2?h2 instanceof eB?new eB(h2.r,h2.g,h2.b):eG(""+h2,eB,cV):new eB(h2,h1,e)}function eJ(e){return new eB(e>>16,e>>8&255,e&255)}function eL(e){return eJ(e)+""}var eK=eB.prototype=new x();eK.brighter=function(h3){h3=Math.pow(0.7,arguments.length?h3:1);var h4=this.r,h1=this.g,e=this.b,h2=30;if(!h4&&!h1&&!e){return new eB(h2,h2,h2)}if(h4&&h4>4;h7=h7>>4|h7;h3=h1&240;h3=h3>>4|h3;e=h1&15;e=e<<4|e}else{if(h2.length===7){h7=(h1&16711680)>>16;h3=(h1&65280)>>8;e=h1&255}}}return h8(h7,h3,e)}function eD(h7,h2,e){var h6=Math.min(h7/=255,h2/=255,e/=255),h5=Math.max(h7,h2,e),h1=h5-h6,h3,h8,h4=(h5+h6)/2;if(h1){h8=h4<0.5?h1/(h5+h6):h1/(2-h5-h6);if(h7==h5){h3=(h2-e)/h1+(h20&&h4<1?0:h3}return new cU(h3,h8,h4)}function eE(h2,h1,e){h2=eI(h2);h1=eI(h1);e=eI(e);var h3=hM((0.4124564*h2+0.3575761*h1+0.1804375*e)/dh),h4=hM((0.2126729*h2+0.7151522*h1+0.072175*e)/dj),h5=hM((0.0193339*h2+0.119192*h1+0.9503041*e)/dk);return dd(116*h4-16,500*(h3-h4),200*(h4-h5))}function eI(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function eH(e){var h1=parseFloat(e);return e.charAt(e.length-1)==="%"?Math.round(h1*2.55):h1}var eF=b.map({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});eF.forEach(function(e,h1){eF.set(e,eJ(h1))});function am(e){return typeof e==="function"?e:function(){return e}}b.functor=am;b.xhr=hL(cY);function hL(e){return function(h3,h2,h1){if(arguments.length===2&&typeof h2==="function"){h1=h2,h2=null}return hI(h3,h2,e,h1)}}function hI(h8,h3,h6,e){var h9={},h1=b.dispatch("beforesend","progress","load","error"),h2={},h4=new XMLHttpRequest(),h7=null;if(this.XDomainRequest&&!("withCredentials" in h4)&&/^(http(s)?:)?\/\//.test(h8)){h4=new XDomainRequest()}"onload" in h4?h4.onload=h4.onerror=h5:h4.onreadystatechange=function(){h4.readyState>3&&h5()};function h5(){var ic=h4.status,ib;if(!ic&&hK(h4)||ic>=200&&ic<300||ic===304){try{ib=h6.call(h9,h4)}catch(ia){h1.error.call(h9,ia);return}h1.load.call(h9,ib)}else{h1.error.call(h9,h4)}}h4.onprogress=function(ia){var ib=b.event;b.event=ia;try{h1.progress.call(h9,h4)}finally{b.event=ib}};h9.header=function(ia,ib){ia=(ia+"").toLowerCase();if(arguments.length<2){return h2[ia]}if(ib==null){delete h2[ia]}else{h2[ia]=ib+""}return h9};h9.mimeType=function(ia){if(!arguments.length){return h3}h3=ia==null?null:ia+"";return h9};h9.responseType=function(ia){if(!arguments.length){return h7}h7=ia;return h9};h9.response=function(ia){h6=ia;return h9};["get","post"].forEach(function(ia){h9[ia]=function(){return h9.send.apply(h9,[ia].concat(h(arguments)))}});h9.send=function(ic,ib,ia){if(arguments.length===2&&typeof ib==="function"){ia=ib,ib=null}h4.open(ic,h8,true);if(h3!=null&&!("accept" in h2)){h2.accept=h3+",*/*"}if(h4.setRequestHeader){for(var id in h2){h4.setRequestHeader(id,h2[id])}}if(h3!=null&&h4.overrideMimeType){h4.overrideMimeType(h3)}if(h7!=null){h4.responseType=h7}if(ia!=null){h9.on("error",ia).on("load",function(ie){ia(null,ie)})}h1.beforesend.call(h9,h4);h4.send(ib==null?null:ib);return h9};h9.abort=function(){h4.abort();return h9};b.rebind(h9,h1,"on");return e==null?h9:h9.get(hJ(e))}function hJ(e){return e.length===1?function(h1,h2){e(h1==null?h2:null)}:e}function hK(e){var h1=e.responseType;return h1&&h1!=="text"?e.response:e.responseText}b.dsv=function(e,h5){var h6=new RegExp('["'+e+"\n]"),h1=e.charCodeAt(0);function h2(ib,ia,h9){if(arguments.length<3){h9=ia,ia=null}var ic=hI(ib,h5,ia==null?h7:h8(ia),h9);ic.row=function(id){return arguments.length?ic.response((ia=id)==null?h7:h8(id)):ia};return ic}function h7(h9){return h2.parse(h9.responseText)}function h8(h9){return function(ia){return h2.parse(ia.responseText,h9)}}h2.parse=function(ib,h9){var ia;return h2.parseRows(ib,function(ie,id){if(ia){return ia(ie,id-1)}var ic=new Function("d","return {"+ie.map(function(ih,ig){return JSON.stringify(ih)+": d["+ig+"]"}).join(",")+"}");ia=h9?function(ih,ig){return h9(ic(ih),ig)}:ic})};h2.parseRows=function(ik,id){var ic={},ia={},ii=[],ih=ik.length,ie=0,ig=0,ij,ib;function il(){if(ie>=ih){return ia}if(ib){return ib=false,ic}var ip=ie;if(ik.charCodeAt(ip)===34){var io=ip;while(io++24){if(isFinite(e)){clearTimeout(hn);hn=setTimeout(hl,e)}hh=0}else{hh=1;hg(hl)}}b.timer.flush=function(){hi();hm()};function hi(){var e=Date.now();hf=hj;while(hf){if(e>=hf.t){hf.f=hf.c(e-hf.t)}hf=hf.n}return e}function hm(){var e,h1=hj,h2=Infinity;while(h1){if(h1.f){h1=e?e.n=h1.n:hj=h1.n}else{if(h1.t8?function(h3){return h3/h2}:function(h3){return h3*h2},symbol:e}}function ef(h1){var h3=h1.decimal,h5=h1.thousands,h4=h1.grouping,h2=h1.currency,e=h4&&h5?function(ib,ic){var h7=ib.length,ia=[],h8=0,h6=h4[0],h9=0;while(h7>0&&h6>0){if(h9+h6+1>ic){h6=Math.max(1,ic-h9)}ia.push(ib.substring(h7-=h6,h7+h6));if((h9+=h6+1)>ic){break}h6=h4[h8=(h8+1)%h4.length]}return ia.reverse().join(h5)}:cY;return function(ih){var ib=ah.exec(ih),h9=ib[1]||" ",h6=ib[2]||">",ig=ib[3]||"-",ij=ib[4]||"",io=ib[5],il=+ib[6],h7=ib[7],ic=ib[8],ik=ib[9],ie=1,id="",ii="",ia=false,h8=true;if(ic){ic=+ic.substring(1)}if(io||h9==="0"&&h6==="="){io=h9="0";h6="="}switch(ik){case"n":h7=true;ik="g";break;case"%":ie=100;ii="%";ik="f";break;case"p":ie=100;ii="%";ik="r";break;case"b":case"o":case"x":case"X":if(ij==="#"){id="0"+ik.toLowerCase()}case"c":h8=false;case"d":ia=true;ic=0;break;case"s":ie=-1;ik="r";break}if(ij==="$"){id=h2[0],ii=h2[1]}if(ik=="r"&&!ic){ik="g"}if(ic!=null){if(ik=="g"){ic=Math.max(1,Math.min(21,ic))}else{if(ik=="e"||ik=="f"){ic=Math.max(0,Math.min(20,ic))}}}ik=aj.get(ik)||ai;var im=io&&h7;return function(iz){var ir=ii;if(ia&&iz%1){return""}var iw=iz<0||iz===0&&1/iz<0?(iz=-iz,"-"):ig==="-"?"":ig;if(ie<0){var iy=b.formatPrefix(iz,ic);iz=iy.scale(iz);ir=iy.symbol+ii}else{iz*=ie}iz=ik(iz,ic);var it=iz.lastIndexOf("."),iq,ip;if(it<0){var iu=h8?iz.lastIndexOf("e"):-1;if(iu<0){iq=iz,ip=""}else{iq=iz.substring(0,iu),ip=iz.substring(iu)}}else{iq=iz.substring(0,it);ip=h3+iz.substring(it+1)}if(!io&&h7){iq=e(iq,Infinity)}var iv=id.length+iq.length+ip.length+(im?0:iw.length),ix=iv"?ix+iw+iz:h6==="^"?ix.substring(0,iv>>=1)+iw+iz+ix.substring(iv):iw+(im?iz:ix+iz))+ir}}}var ah=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i;var aj=b.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(h1,e){return h1.toPrecision(e)},e:function(h1,e){return h1.toExponential(e)},f:function(h1,e){return h1.toFixed(e)},r:function(h1,e){return(h1=b.round(h1,ag(h1,e))).toFixed(Math.max(0,Math.min(20,ag(h1*(1+1e-15),e))))}});function ai(e){return e+""}var gC=b.time={},A=Date;function B(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}B.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){g5.setUTCDate.apply(this._,arguments)},setDay:function(){g5.setUTCDay.apply(this._,arguments)},setFullYear:function(){g5.setUTCFullYear.apply(this._,arguments)},setHours:function(){g5.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){g5.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){g5.setUTCMinutes.apply(this._,arguments)},setMonth:function(){g5.setUTCMonth.apply(this._,arguments)},setSeconds:function(){g5.setUTCSeconds.apply(this._,arguments)},setTime:function(){g5.setTime.apply(this._,arguments)}};var g5=Date.prototype;function gN(h1,h7,h2){function h6(ib){var h9=h1(ib),ia=h3(h9,1);return ib-h91){while(ic=iB){return -1}ix=iG.charCodeAt(iz++);if(ix===37){iF=iG.charAt(iz++);iD=ii[iF in gK?iG.charAt(iz++):iF];if(!iD||(iA=iD(iy,iE,iA))<0){return -1}}else{if(ix!=iE.charCodeAt(iA++)){return -1}}}return iA}h4.utc=function(iz){var iy=h4(iz);function ix(iA){try{A=B;var iB=new A();iB._=iA;return iy(iB)}finally{A=Date}}ix.parse=function(iB){try{A=B;var iA=iy.parse(iB);return iA&&iA._}finally{A=Date}};ix.toString=iy.toString;return ix};h4.multi=h4.utc.multi=gI;var il=b.map(),h3=gL(iq),h2=gH(iq),h1=gL(iu),e=gH(iu),h9=gL(ir),h8=gH(ir),h7=gL(iv),h6=gH(iv);it.forEach(function(iy,ix){il.set(iy.toLowerCase(),ix)});var h5={a:function(ix){return iu[ix.getDay()]},A:function(ix){return iq[ix.getDay()]},b:function(ix){return iv[ix.getMonth()]},B:function(ix){return ir[ix.getMonth()]},c:h4(ip),d:function(ix,iy){return gJ(ix.getDate(),iy,2)},e:function(ix,iy){return gJ(ix.getDate(),iy,2)},H:function(ix,iy){return gJ(ix.getHours(),iy,2)},I:function(ix,iy){return gJ(ix.getHours()%12||12,iy,2)},j:function(ix,iy){return gJ(1+gC.dayOfYear(ix),iy,3)},L:function(ix,iy){return gJ(ix.getMilliseconds(),iy,3)},m:function(ix,iy){return gJ(ix.getMonth()+1,iy,2)},M:function(ix,iy){return gJ(ix.getMinutes(),iy,2)},p:function(ix){return it[+(ix.getHours()>=12)]},S:function(ix,iy){return gJ(ix.getSeconds(),iy,2)},U:function(ix,iy){return gJ(gC.sundayOfYear(ix),iy,2)},w:function(ix){return ix.getDay()},W:function(ix,iy){return gJ(gC.mondayOfYear(ix),iy,2)},x:h4(io),X:h4(iw),y:function(ix,iy){return gJ(ix.getFullYear()%100,iy,2)},Y:function(ix,iy){return gJ(ix.getFullYear()%10000,iy,4)},Z:he,"%":function(){return"%"}};var ii={a:ik,A:ij,b:ih,B:ig,c:id,d:gQ,e:gQ,H:gT,I:gT,j:gR,L:gV,m:gX,M:gW,p:ib,S:gY,U:g1,w:gZ,W:g0,x:ic,X:ie,y:g2,Y:gS,Z:g3,"%":gU};function ik(ix,iA,iy){h1.lastIndex=0;var iz=h1.exec(iA.slice(iy));return iz?(ix.w=e.get(iz[0].toLowerCase()),iy+iz[0].length):-1}function ij(ix,iA,iy){h3.lastIndex=0;var iz=h3.exec(iA.slice(iy));return iz?(ix.w=h2.get(iz[0].toLowerCase()),iy+iz[0].length):-1}function ih(ix,iA,iy){h7.lastIndex=0;var iz=h7.exec(iA.slice(iy));return iz?(ix.m=h6.get(iz[0].toLowerCase()),iy+iz[0].length):-1}function ig(ix,iA,iy){h9.lastIndex=0;var iz=h9.exec(iA.slice(iy));return iz?(ix.m=h8.get(iz[0].toLowerCase()),iy+iz[0].length):-1}function id(ix,iz,iy){return ia(ix,h5.c.toString(),iz,iy)}function ic(ix,iz,iy){return ia(ix,h5.x.toString(),iz,iy)}function ie(ix,iz,iy){return ia(ix,h5.X.toString(),iz,iy)}function ib(ix,iA,iy){var iz=il.get(iA.slice(iy,iy+=2).toLowerCase());return iz==null?-1:(ix.p=iz,iy)}return h4}var gK={"-":"",_:" ","0":"0"},gP=/^\s*\d+/,g4=/^%/;function gJ(h4,e,h5){var h2=h4<0?"-":"",h3=(h2?-h4:h4)+"",h1=h3.length;return h2+(h168?1900:2000)}function gX(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+2));return h2?(e.m=h2[0]-1,h1+h2[0].length):-1}function gQ(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+2));return h2?(e.d=+h2[0],h1+h2[0].length):-1}function gR(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+3));return h2?(e.j=+h2[0],h1+h2[0].length):-1}function gT(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+2));return h2?(e.H=+h2[0],h1+h2[0].length):-1}function gW(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+2));return h2?(e.M=+h2[0],h1+h2[0].length):-1}function gY(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+2));return h2?(e.S=+h2[0],h1+h2[0].length):-1}function gV(e,h3,h1){gP.lastIndex=0;var h2=gP.exec(h3.slice(h1,h1+3));return h2?(e.L=+h2[0],h1+h2[0].length):-1}function he(e){var h1=e.getTimezoneOffset(),h4=h1>0?"-":"+",h2=a(h1)/60|0,h3=a(h1)%60;return h4+gJ(h2,"0",2)+gJ(h3,"0",2)}function gU(e,h3,h1){g4.lastIndex=0;var h2=g4.exec(h3.slice(h1,h1+1));return h2?h1+h2[0].length:-1}function gI(e){var h2=e.length,h1=-1;while(++h1=0?1:-1,h6=ia*h8,h7=Math.cos(ig),ib=Math.sin(ig),h9=h2*ib,ic=e*h7+h9*Math.cos(h6),id=h9*ia*Math.sin(h6);ap.add(Math.atan2(id,ic));h3=ie,e=h7,h2=ib}an.lineEnd=function(){h1(h4,h5)}}function av(h1){var h2=h1[0],h3=h1[1],e=Math.cos(h3);return[e*Math.cos(h2),e*Math.sin(h2),Math.sin(h3)]}function ay(e,h1){return e[0]*h1[0]+e[1]*h1[1]+e[2]*h1[2]}function ax(e,h1){return[e[1]*h1[2]-e[2]*h1[1],e[2]*h1[0]-e[0]*h1[2],e[0]*h1[1]-e[1]*h1[0]]}function aw(e,h1){e[0]+=h1[0];e[1]+=h1[1];e[2]+=h1[2]}function aA(h1,e){return[h1[0]*e,h1[1]*e,h1[2]*e]}function az(e){var h1=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=h1;e[1]/=h1;e[2]/=h1}function bR(e){return[Math.atan2(e[1],e[0]),k(e[2])]}function bS(e,h1){return a(e[0]-h1[0])hT){im=90}else{if(h3<-hT){il=-90}}}h9[0]=ii,h9[1]=ij}};function h8(io,ip){ia.push(h9=[ii=io,ij=io]);if(ipim){im=ip}}function h5(iw,iy){var iu=av([iw*ex,iy*ex]);if(h7){var it=ax(h7,iu),iq=[it[1],-it[0],0],ir=ax(iq,it);az(ir);ir=bR(ir);var ip=iw-ig,iv=ip>0?1:-1,ix=ir[0]*C*iv,io=a(ip)>180;if(io^(iv*igim){im=iz}}else{if(ix=(ix+360)%360-180,io^(iv*igim){im=iy}}}if(io){if(iwe(ii,ij)){ij=iw}}else{if(e(iw,ij)>e(ii,ij)){ii=iw}}}else{if(ij>=ii){if(iwij){ij=iw}}else{if(iw>ig){if(e(ii,iw)>e(ii,ij)){ij=iw}}else{if(e(iw,ij)>e(ii,ij)){ii=iw}}}}}else{h8(iw,iy)}h7=iu,ig=iw}function h6(){h1.point=h5}function h4(){h9[0]=ii,h9[1]=ij;h1.point=h8;h7=null}function ic(ip,iq){if(h7){var io=ip-ig;h3+=a(io)>180?io+(io>0?360:-360):io}else{ih=ip,ik=iq}an.point(ip,iq);h5(ip,iq)}function id(){an.lineStart()}function ib(){ic(ih,ik);an.lineEnd();if(a(h3)>hT){ii=-(ij=180)}h9[0]=ii,h9[1]=ij;h7=null}function e(io,ip){return(ip-=io)<0?ip+360:ip}function h2(io,ip){return io[0]-ip[0]}function ie(ip,io){return io[0]<=io[1]?io[0]<=ip&&ip<=io[1]:ipe(io[0],io[1])){io[1]=ip[1]}if(e(ip[0],io[1])>e(io[0],io[1])){io[0]=ip[0]}}else{iv.push(io=ip)}}var iq=-Infinity,ir;for(var iw=iv.length-1,iu=0,io=iv[iw],ip;iu<=iw;io=ip,++iu){ip=iv[iu];if((ir=e(io[1],ip[0]))>iq){iq=ir,ii=ip[0],ij=io[1]}}}ia=h9=null;return ii===Infinity||il===Infinity?[[NaN,NaN],[NaN,NaN]]:[[ii,il],[ij,im]]}}();b.geo.centroid=function(h1){aH=aI=aJ=aM=aP=aK=aN=aQ=aL=aO=aR=0;b.geo.stream(h1,aB);var h2=aL,h3=aO,h4=aR,e=h2*h2+h3*h3+h4*h4;if(e=0;--h5){h8.point((ia=ib[h5])[0],ia[1])}}else{h6(h3.x,h3.p.x,-1,h8)}h3=h3.p}h3=h3.o;ib=h3.z;h7=!h7}while(!h3.v);h8.lineEnd()}}function a5(h1){if(!(h4=h1.length)){return}var h4,h3=0,e=h1[0],h2;while(++h30){if(!ie){h9.polygonStart(),ie=true}h9.lineStart();while(++ip1&&io&2){it.push(it.pop().concat(it.shift()))}im.push(it.filter(a6))}return h5}}function a6(e){return e.length>1}function aZ(){var h1=[],e;return{lineStart:function(){h1.push(e=[])},point:function(h2,h3){e.push([h2,h3])},lineEnd:et,buffer:function(){var h2=h1;h1=[];e=null;return h2},rejoin:function(){if(h1.length>1){h1.push(h1.pop().concat(h1.shift()))}}}}function a7(e,h1){return((e=e.x)[0]<0?e[1]-hS-hT:hS-e[1])-((h1=h1.x)[0]<0?h1[1]-hS-hT:hS-h1[1])}var aV=aU(hC,aY,aW,[-hV,-hV/2]);function aY(h1){var h3=NaN,h4=NaN,h2=NaN,e;return{lineStart:function(){h1.lineStart();e=1},point:function(h7,h8){var h6=h7>0?hV:-hV,h5=a(h7-h3);if(a(h5-hV)0?hS:-hS);h1.point(h2,h4);h1.lineEnd();h1.lineStart();h1.point(h6,h4);h1.point(h7,h4);e=0}else{if(h2!==h6&&h5>=hV){if(a(h3-h2)hT?Math.atan((Math.sin(h5)*(h1=Math.cos(h6))*Math.sin(h4)-Math.sin(h6)*(e=Math.cos(h5))*Math.sin(h3))/(e*h1*h2)):(h5+h6)/2}function aW(h1,h4,e,h2){var h5;if(h1==null){h5=e*hS;h2.point(-hV,h5);h2.point(0,h5);h2.point(hV,h5);h2.point(hV,0);h2.point(hV,-h5);h2.point(0,-h5);h2.point(-hV,-h5);h2.point(-hV,0);h2.point(-hV,h5)}else{if(a(h1[0]-h4[0])>hT){var h3=h1[0]=0?1:-1,e=il*h5,h1=e>hV,h9=io*im;ap.add(Math.atan2(h9*il*Math.sin(e),h4*h3+h9*Math.cos(e)));ii+=h1?h5+il*hZ:h5;if(h1^ir>=ib^iq>=ib){var h2=ax(av(ih),av(ig));az(h2);var h7=ax(ic,h2);az(h7);var iv=(h1^h5>=0?-1:1)*k(h7[2]);if(ie>iv||ie===iv&&(h2[0]||h2[1])){ip+=h1^h5>=0?1:-1}}if(!h8++){break}ir=iq,io=im,h4=h3,ih=ig}}return(ii<-hT||ii0,h5=a(h2)>hT,h3=aT(h6,6*ex);return aU(h8,e,h3,h7?[0,-h6]:[-hV,h6-hV]);function h8(h9,ia){return Math.cos(h9)*Math.cos(ia)>h2}function e(ib){var ic,h9,id,ie,ia;return{lineStart:function(){ie=id=false;ia=1},point:function(il,im){var ih=[il,im],ii,ik=h8(il,im),ig=h7?ik?0:h1(il,im):ik?h1(il+(il<0?hV:-hV),im):0;if(!ic&&(ie=id=ik)){ib.lineStart()}if(ik!==id){ii=h4(ic,ih);if(bS(ic,ii)||bS(ih,ii)){ih[0]+=hT;ih[1]+=hT;ik=h8(ih[0],ih[1])}}if(ik!==id){ia=0;if(ik){ib.lineStart();ii=h4(ih,ic);ib.point(ii[0],ii[1])}else{ii=h4(ic,ih);ib.point(ii[0],ii[1]);ib.lineEnd()}ic=ii}else{if(h5&&ic&&h7^ik){var ij;if(!(ig&h9)&&(ij=h4(ih,ic,true))){ia=0;if(h7){ib.lineStart();ib.point(ij[0][0],ij[0][1]);ib.point(ij[1][0],ij[1][1]);ib.lineEnd()}else{ib.point(ij[1][0],ij[1][1]);ib.lineEnd();ib.lineStart();ib.point(ij[0][0],ij[0][1])}}}}if(ik&&(!ic||!bS(ic,ih))){ib.point(ih[0],ih[1])}ic=ih,id=ik,h9=ig},lineEnd:function(){if(id){ib.lineEnd()}ic=null},clean:function(){return ia|(ie&&id)<<1}}}function h4(h9,ib,iw){var io=av(h9),ip=av(ib);var ii=[1,0,0],il=ax(io,ip),im=ay(il,il),ij=il[0],ig=im-ij*ij;if(!ig){return !iw&&h9}var id=h2*im/ig,ie=-h2*ij/ig,ik=ax(ii,il),ia=aA(ii,id),ic=aA(il,ie);aw(ia,ic);var ix=ik,iz=ay(ia,ix),iy=ay(ix,ix),iv=iz*iz-iy*(ay(ia,ia)-1);if(iv<0){return}var iu=Math.sqrt(iv),ir=aA(ix,(-iz-iu)/iy);aw(ir,ia);ir=bR(ir);if(!iw){return ir}var iC=h9[0],iD=ib[0],iE=h9[1],iF=ib[1],iA;if(iD0^ir[1]<(a(ir[0]-iC)hV^(iC<=ir[0]&&ir[0]<=iD)){var it=aA(ix,(-iz+iu)/iy);aw(it,ia);return[ir,bR(it)]}}function h1(ib,ic){var ia=h7?h6:hV-h6,h9=0;if(ib<-ia){h9|=1}else{if(ib>ia){h9|=2}}if(ic<-ia){h9|=4}else{if(ic>ia){h9|=8}}return h9}}function b2(e,h2,h1,h3){return function(ic){var h4=ic.a,h7=ic.b,h5=h4.x,h6=h4.y,h8=h7.x,h9=h7.y,ie=0,ig=1,ia=h8-h5,ib=h9-h6,id;id=e-h5;if(!ia&&id>0){return}id/=ia;if(ia<0){if(id0){if(id>ig){return}if(id>ie){ie=id}}}id=h1-h5;if(!ia&&id<0){return}id/=ia;if(ia<0){if(id>ig){return}if(id>ie){ie=id}}else{if(ia>0){if(id0){return}id/=ib;if(ib<0){if(id0){if(id>ig){return}if(id>ie){ie=id}}}id=h3-h6;if(!ib&&id<0){return}id/=ib;if(ib<0){if(id>ig){return}if(id>ie){ie=id}}else{if(ib>0){if(id0){ic.a={x:h5+ie*ia,y:h6+ie*ib}}if(ig<1){ic.b={x:h5+ig*ia,y:h6+ig*ib}}return ic}}var a2=1000000000;b.geo.clipExtent=function(){var h3,h5,h4,h6,h2,e,h1={stream:function(h7){if(h2){h2.valid=false}h2=e(h7);h2.valid=true;return h2},extent:function(h7){if(!arguments.length){return[[h3,h5],[h4,h6]]}e=a1(h3=+h7[0][0],h5=+h7[0][1],h4=+h7[1][0],h6=+h7[1][1]);if(h2){h2.valid=false,h2=null}return h1}};return h1.extent([[0,0],[960,500]])};function a1(h3,h5,h4,h6){return function(ii){var ij=ii,h7=aZ(),ia=b2(h3,h5,h4,h6),ip,im,io;var h9={point:ik,lineStart:ih,lineEnd:ie,polygonStart:function(){ii=h7;ip=[];im=[];h8=true},polygonEnd:function(){ii=ij;ip=b.merge(ip);var ix=ic([h3,h6]),iy=h8&&ix,iz=ip.length;if(iy||iz){ii.polygonStart();if(iy){ii.lineStart();id(null,null,1,ii);ii.lineEnd()}if(iz){a3(ip,e,ix,id,ii)}ii.polygonEnd()}ip=im=io=null}};function ic(iD){var iF=0,iC=im.length,iG=iD[1];for(var iz=0;iziG&&z(ix,iy,iD)>0){++iF}}else{if(iy[1]<=iG&&z(ix,iy,iD)<0){--iF}}ix=iy}}return iF!==0}function id(iA,iC,iz,iB){var ix=0,iy=0;if(iA==null||(ix=h2(iA,iz))!==(iy=h2(iC,iz))||h1(iA,iC)<0^iz>0){do{iB.point(ix===0||ix===3?h3:h4,ix>1?h6:h5)}while((ix=(ix+iz+4)%4)!==iy)}else{iB.point(iC[0],iC[1])}}function il(ix,iy){return h3<=ix&&ix<=h4&&h5<=iy&&iy<=h6}function ik(ix,iy){if(il(ix,iy)){ii.point(ix,iy)}}var iu,iw,ir,it,iv,iq,ib,h8;function ih(){h9.point=ig;if(im){im.push(io=[])}ib=true;iq=false;it=iv=NaN}function ie(){if(ip){ig(iu,iw);if(ir&&iq){h7.rejoin()}ip.push(h7.buffer())}h9.point=ik;if(iq){ii.lineEnd()}}function ig(iz,iA){iz=Math.max(-a2,Math.min(a2,iz));iA=Math.max(-a2,Math.min(a2,iA));var iy=il(iz,iA);if(im){io.push([iz,iA])}if(ib){iu=iz,iw=iA,ir=iy;ib=false;if(iy){ii.lineStart();ii.point(iz,iA)}}else{if(iy&&iq){ii.point(iz,iA)}else{var ix={a:{x:it,y:iv},b:{x:iz,y:iA}};if(ia(ix)){if(!iq){ii.lineStart();ii.point(ix.a.x,ix.a.y)}ii.point(ix.b.x,ix.b.y);if(!iy){ii.lineEnd()}h8=false}else{if(iy){ii.lineStart();ii.point(iz,iA);h8=false}}}}it=iz,iv=iA,iq=iy}return h9};function h2(h8,h7){return a(h8[0]-h3)0?0:3:a(h8[0]-h4)0?2:1:a(h8[1]-h5)0?1:0:h7>0?3:2}function e(h7,h8){return h1(h7.x,h8.x)}function h1(h7,h8){var h9=h2(h7,1),ia=h2(h8,1);return h9!==ia?h9-ia:h9===0?h8[1]-h7[1]:h9===1?h7[0]-h8[0]:h9===2?h7[1]-h8[1]:h8[0]-h7[0]}}function a9(h2){var h3=0,h4=hV/3,e=bL(h2),h1=e(h3,h4);h1.parallels=function(h5){if(!arguments.length){return[h3/hV*180,h4/hV*180]}return e(h3=h5[0]*hV/180,h4=h5[1]*hV/180)};return h1}function bb(h5,h6){var h3=Math.sin(h5),h2=(h3+Math.sin(h6))/2,e=1+h3*(2*h2-h3),h4=Math.sqrt(e)/h2;function h1(h7,h9){var h8=Math.sqrt(e-2*h2*Math.sin(h9))/h2;return[h8*Math.sin(h7*=h2),h4-h8*Math.cos(h7)]}h1.invert=function(h7,h8){var h9=h4-h8;return[Math.atan2(h7,h9)/h2,k((e-(h7*h7+h9*h9)*h2*h2)/(2*h2))]};return h1}(b.geo.conicEqualArea=function(){return a9(bb)}).raw=bb;b.geo.albers=function(){return b.geo.conicEqualArea().rotate([96,0]).center([-0.6,38.7]).parallels([29.5,45.5]).scale(1070)};b.geo.albersUsa=function(){var h5=b.geo.albers();var e=b.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]);var h3=b.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]);var h7,h8={point:function(h9,ia){h7=[h9,ia]}},h6,h1,h4;function h2(h9){var ia=h9[0],ib=h9[1];h7=null;(h6(ia,ib),h7)||(h1(ia,ib),h7)||h4(ia,ib);return h7}h2.invert=function(h9){var ia=h5.scale(),ib=h5.translate(),ic=(h9[0]-ib[0])/ia,id=(h9[1]-ib[1])/ia;return(id>=0.12&&id<0.234&&ic>=-0.425&&ic<-0.214?e:id>=0.166&&id<0.234&&ic>=-0.214&&ic<-0.115?h3:h5).invert(h9)};h2.stream=function(ic){var ib=h5.stream(ic),h9=e.stream(ic),ia=h3.stream(ic);return{point:function(id,ie){ib.point(id,ie);h9.point(id,ie);ia.point(id,ie)},sphere:function(){ib.sphere();h9.sphere();ia.sphere()},lineStart:function(){ib.lineStart();h9.lineStart();ia.lineStart()},lineEnd:function(){ib.lineEnd();h9.lineEnd();ia.lineEnd()},polygonStart:function(){ib.polygonStart();h9.polygonStart();ia.polygonStart()},polygonEnd:function(){ib.polygonEnd();h9.polygonEnd();ia.polygonEnd()}}};h2.precision=function(h9){if(!arguments.length){return h5.precision()}h5.precision(h9);e.precision(h9);h3.precision(h9);return h2};h2.scale=function(h9){if(!arguments.length){return h5.scale()}h5.scale(h9);e.scale(h9*0.35);h3.scale(h9);return h2.translate(h5.translate())};h2.translate=function(h9){if(!arguments.length){return h5.translate()}var ia=h5.scale(),ib=+h9[0],ic=+h9[1];h6=h5.translate(h9).clipExtent([[ib-0.455*ia,ic-0.238*ia],[ib+0.455*ia,ic+0.238*ia]]).stream(h8).point;h1=e.translate([ib-0.307*ia,ic+0.201*ia]).clipExtent([[ib-0.425*ia+hT,ic+0.12*ia+hT],[ib-0.214*ia-hT,ic+0.234*ia-hT]]).stream(h8).point;h4=h3.translate([ib-0.205*ia,ic+0.212*ia]).clipExtent([[ib-0.214*ia+hT,ic+0.166*ia+hT],[ib-0.115*ia-hT,ic+0.234*ia-hT]]).stream(h8).point;return h2};return h2.scale(1070)};var bt,br,bq={point:et,lineStart:et,lineEnd:et,polygonStart:function(){br=0;bq.lineStart=bs},polygonEnd:function(){bq.lineStart=bq.lineEnd=bq.point=et;bt+=a(br/2)}};function bs(){var h2,h4,h1,h3;bq.point=function(h5,h6){bq.point=e;h2=h1=h5,h4=h3=h6};function e(h5,h6){br+=h3*h5-h1*h6;h1=h5,h3=h6}bq.lineEnd=function(){e(h2,h4)}}var bw,by,bx,bz;var bu={point:bv,lineStart:et,lineEnd:et,polygonStart:et,polygonEnd:et};function bv(e,h1){if(ebx){bx=e}if(h1bz){bz=h1}}function bA(){var h4=bB(4.5),e=[];var h7={point:h3,lineStart:function(){h7.point=h6},lineEnd:h1,polygonStart:function(){h7.lineEnd=h2},polygonEnd:function(){h7.lineEnd=h1;h7.point=h3},pointRadius:function(h8){h4=bB(h8);return h7},result:function(){if(e.length){var h8=e.join("");e=[];return h8}}};function h3(h8,h9){e.push("M",h8,",",h9,h4)}function h6(h8,h9){e.push("M",h8,",",h9);h7.point=h5}function h5(h8,h9){e.push("L",h8,",",h9)}function h1(){h7.point=h3}function h2(){e.push("Z")}return h7}function bB(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var bC={point:bF,lineStart:bE,lineEnd:bD,polygonStart:function(){bC.lineStart=bG},polygonEnd:function(){bC.point=bF;bC.lineStart=bE;bC.lineEnd=bD}};function bF(e,h1){aJ+=e;aM+=h1;++aP}function bE(){var h1,h2;bC.point=function(h3,h4){bC.point=e;bF(h1=h3,h2=h4)};function e(h5,h6){var h3=h5-h1,h4=h6-h2,h7=Math.sqrt(h3*h3+h4*h4);aK+=h7*(h1+h5)/2;aN+=h7*(h2+h6)/2;aQ+=h7;bF(h1=h5,h2=h6)}}function bD(){bC.point=bF}function bG(){var h2,h4,h1,h3;bC.point=function(h5,h6){bC.point=e;bF(h2=h1=h5,h4=h3=h6)};function e(h7,h8){var h5=h7-h1,h6=h8-h3,h9=Math.sqrt(h5*h5+h6*h6);aK+=h9*(h1+h7)/2;aN+=h9*(h3+h8)/2;aQ+=h9;h9=h3*h7-h1*h8;aL+=h9*(h1+h7);aO+=h9*(h3+h8);aR+=h9*3;bF(h1=h7,h3=h8)}bC.lineEnd=function(){e(h2,h4)}}function bH(e){var h6=4.5;var h7={point:h3,lineStart:function(){h7.point=h5},lineEnd:h1,polygonStart:function(){h7.lineEnd=h2},polygonEnd:function(){h7.lineEnd=h1;h7.point=h3},pointRadius:function(h8){h6=h8;return h7},result:et};function h3(h8,h9){e.moveTo(h8+h6,h9);e.arc(h8,h9,h6,0,hZ)}function h5(h8,h9){e.moveTo(h8,h9);h7.point=h4}function h4(h8,h9){e.lineTo(h8,h9)}function h1(){h7.point=h3}function h2(){e.closePath()}return h7}function bN(h2){var h7=0.5,e=Math.cos(30*ex),h1=16;function h3(h8){return(h1?h6:h5)(h8)}function h5(h8){return b0(h8,function(h9,ia){h9=h2(h9,ia);h8.point(h9[0],h9[1])})}function h6(io){var iv,iw,iq,it,h9,ib,id,iu,ip,ir,h8,ia,ic;var ij={point:ii,lineStart:ih,lineEnd:ie,polygonStart:function(){io.polygonStart();ij.lineStart=im},polygonEnd:function(){io.polygonEnd();ij.lineStart=ih}};function ii(ix,iy){ix=h2(ix,iy);io.point(ix[0],ix[1])}function ih(){ip=NaN;ij.point=ig;io.lineStart()}function ig(iz,iA){var ix=av([iz,iA]),iy=h2(iz,iA);h4(ip,ir,iu,h8,ia,ic,ip=iy[0],ir=iy[1],iu=iz,h8=ix[0],ia=ix[1],ic=ix[2],h1,io);io.point(ip,ir)}function ie(){ij.point=ii;io.lineEnd()}function im(){ih();ij.point=il;ij.lineEnd=ik}function il(ix,iy){ig(iv=ix,iw=iy),iq=ip,it=ir,h9=h8,ib=ia,id=ic;ij.point=ig}function ik(){h4(ip,ir,iu,h8,ia,ic,iq,it,iv,h9,ib,id,h1,io);ij.lineEnd=ie;ie()}return ij}function h4(iu,ix,iA,h9,ic,ig,iv,iy,iB,ia,id,ih,ij,it){var ik=iv-iu,im=iy-ix,ii=ik*ik+im*im;if(ii>4*h7&&ij--){var h8=h9+ia,ib=ic+id,ie=ig+ih,iq=Math.sqrt(h8*h8+ib*ib+ie*ie),iD=Math.asin(ie/=iq),iC=a(a(ie)-1)h7||a((ik*il+im*io)/ii-0.5)>0.3||h9*ia+ic*id+ig*ih0&&16;return h3};return h3}b.geo.path=function(){var h4=4.5,h5,h1,h6,h2,e;function h3(h8){if(h8){if(typeof h4==="function"){h2.pointRadius(+h4.apply(this,arguments))}if(!e||!e.valid){e=h6(h2)}b.geo.stream(h8,e)}return h2.result()}h3.area=function(h8){bt=0;b.geo.stream(h8,h6(bq));return bt};h3.centroid=function(h8){aJ=aM=aP=aK=aN=aQ=aL=aO=aR=0;b.geo.stream(h8,h6(bC));return aR?[aL/aR,aO/aR]:aQ?[aK/aQ,aN/aQ]:aP?[aJ/aP,aM/aP]:[NaN,NaN]};h3.bounds=function(h8){bx=bz=-(bw=by=Infinity);b.geo.stream(h8,h6(bu));return[[bw,by],[bx,bz]]};h3.projection=function(h8){if(!arguments.length){return h5}h6=(h5=h8)?h8.stream||bI(h8):cY;return h7()};h3.context=function(h8){if(!arguments.length){return h1}h2=(h1=h8)==null?new bA():new bH(h8);if(typeof h4!=="function"){h2.pointRadius(h4)}return h7()};h3.pointRadius=function(h8){if(!arguments.length){return h4}h4=typeof h8==="function"?h8:(h2.pointRadius(+h8),+h8);return h3};function h7(){e=null;return h3}return h3.projection(b.geo.albersUsa()).context(null)};function bI(e){var h1=bN(function(h2,h3){return e([h2*C,h3*C])});return function(h2){return bM(h1(h2))}}b.geo.transform=function(e){return{stream:function(h2){var h3=new bZ(h2);for(var h1 in e){h3[h1]=e[h1]}return h3}}};function bZ(e){this.stream=e}bZ.prototype={point:function(e,h1){this.stream.point(e,h1)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function b0(h1,e){return{point:e,sphere:function(){h1.sphere()},lineStart:function(){h1.lineStart()},lineEnd:function(){h1.lineEnd()},polygonStart:function(){h1.polygonStart()},polygonEnd:function(){h1.polygonEnd()}}}b.geo.projection=bK;b.geo.projectionMutator=bL;function bK(e){return bL(function(){return e})()}function bL(h8){var h7,id,ib,ia=bN(function(iq,ir){iq=h7(iq,ir);return[iq[0]*h4+ii,ij-iq[1]*h4]}),h4=150,ig=480,ih=250,io=0,ip=0,il=0,im=0,ik=0,ii,ij,h6=aV,h5=cY,e=null,h1=null,ie;function h9(iq){iq=ib(iq[0]*ex,iq[1]*ex);return[iq[0]*h4+ii,ij-iq[1]*h4]}function h3(iq){iq=ib.invert((iq[0]-ii)/h4,(ij-iq[1])/h4);return iq&&[iq[0]*C,iq[1]*C]}h9.stream=function(iq){if(ie){ie.valid=false}ie=bM(h6(id,ia(h5(iq))));ie.valid=true;return ie};h9.clipAngle=function(iq){if(!arguments.length){return e}h6=iq==null?(e=iq,aV):a0((e=+iq)*ex);return h2()};h9.clipExtent=function(iq){if(!arguments.length){return h1}h1=iq;h5=iq?a1(iq[0][0],iq[0][1],iq[1][0],iq[1][1]):cY;return h2()};h9.scale=function(iq){if(!arguments.length){return h4}h4=+iq;return ic()};h9.translate=function(iq){if(!arguments.length){return[ig,ih]}ig=+iq[0];ih=+iq[1];return ic()};h9.center=function(iq){if(!arguments.length){return[io*C,ip*C]}io=iq[0]%360*ex;ip=iq[1]%360*ex;return ic()};h9.rotate=function(iq){if(!arguments.length){return[il*C,im*C,ik*C]}il=iq[0]%360*ex;im=iq[1]%360*ex;ik=iq.length>2?iq[2]%360*ex:0;return ic()};b.rebind(h9,ia,"precision");function ic(){ib=a8(id=bO(il,im,ik),h7);var iq=h7(io,ip);ii=ig-iq[0]*h4;ij=ih+iq[1]*h4;return h2()}function h2(){if(ie){ie.valid=false,ie=null}return h9}return function(){h7=h8.apply(this,arguments);h9.invert=h7.invert&&h3;return ic()}}function bM(e){return b0(e,function(h1,h2){e.point(h1*ex,h2*ex)})}function bd(e,h1){return[e,h1]}(b.geo.equirectangular=function(){return bK(bd)}).raw=bd.invert=bd;b.geo.rotation=function(h1){h1=bO(h1[0]%360*ex,h1[1]*ex,h1.length>2?h1[2]*ex:0);function e(h2){h2=h1(h2[0]*ex,h2[1]*ex);return h2[0]*=C,h2[1]*=C,h2}e.invert=function(h2){h2=h1.invert(h2[0]*ex,h2[1]*ex);return h2[0]*=C,h2[1]*=C,h2};return e};function bi(e,h1){return[e>hV?e-hZ:e<-hV?e+hZ:e,h1]}bi.invert=bd;function bO(h1,h2,e){return h1?h2||e?a8(bP(h1),bQ(h2,e)):bP(h1):h2||e?bQ(h2,e):bi}function be(e){return function(h1,h2){return h1+=e,[h1>hV?h1-hZ:h1<-hV?h1+hZ:h1,h2]}}function bP(h1){var e=be(h1);e.invert=be(-h1);return e}function bQ(h6,h5){var h1=Math.cos(h6),h4=Math.sin(h6),e=Math.cos(h5),h3=Math.sin(h5);function h2(ic,id){var h7=Math.cos(id),h9=Math.cos(ic)*h7,ia=Math.sin(ic)*h7,ib=Math.sin(id),h8=ib*h1+h9*h4;return[Math.atan2(ia*e-h8*h3,h9*h1-ib*h4),k(h8*e+ia*h3)]}h2.invert=function(ic,id){var h7=Math.cos(id),h9=Math.cos(ic)*h7,ia=Math.sin(ic)*h7,ib=Math.sin(id),h8=ib*e-ia*h3;return[Math.atan2(ia*e+ib*h3,h9*h1+h8*h4),k(h8*h1-h9*h4)]};return h2}b.geo.circle=function(){var h3=[0,0],e,h4=6,h2;function h1(){var h5=typeof h3==="function"?h3.apply(this,arguments):h3,h7=bO(-h5[0]*ex,-h5[1]*ex,0).invert,h6=[];h2(null,null,1,{point:function(h8,h9){h6.push(h8=h7(h8,h9));h8[0]*=C,h8[1]*=C}});return{type:"Polygon",coordinates:[h6]}}h1.origin=function(h5){if(!arguments.length){return h3}h3=h5;return h1};h1.angle=function(h5){if(!arguments.length){return e}h2=aT((e=+h5)*ex,h4*ex);return h1};h1.precision=function(h5){if(!arguments.length){return h4}h2=aT(e*ex,(h4=+h5)*ex);return h1};return h1.angle(90)};function aT(h2,h1){var e=Math.cos(h2),h3=Math.sin(h2);return function(h5,ia,h4,h6){var h8=h4*h1;if(h5!=null){h5=aS(e,h5);ia=aS(e,ia);if(h4>0?h5ia){h5+=h4*hZ}}else{h5=h2+h4*hZ;ia=h2-0.5*h8}for(var h7,h9=h5;h4>0?h9>ia:h9hT}).map(h7)).concat(b.range(Math.ceil(ig/h2)*h2,ii,h2).filter(function(ik){return a(ik%h3)>hT}).map(id))}h4.lines=function(){return h5().map(function(ik){return{type:"LineString",coordinates:ik}})};h4.outline=function(){return{type:"Polygon",coordinates:[h8(ia).concat(ie(ij).slice(1),h8(ic).reverse().slice(1),ie(ih).reverse().slice(1))]}};h4.extent=function(ik){if(!arguments.length){return h4.minorExtent()}return h4.majorExtent(ik).minorExtent(ik)};h4.majorExtent=function(ik){if(!arguments.length){return[[ia,ih],[ic,ij]]}ia=+ik[0][0],ic=+ik[1][0];ih=+ik[0][1],ij=+ik[1][1];if(ia>ic){ik=ia,ia=ic,ic=ik}if(ih>ij){ik=ih,ih=ij,ij=ik}return h4.precision(h6)};h4.minorExtent=function(ik){if(!arguments.length){return[[h9,ig],[ib,ii]]}h9=+ik[0][0],ib=+ik[1][0];ig=+ik[0][1],ii=+ik[1][1];if(h9>ib){ik=h9,h9=ib,ib=ik}if(ig>ii){ik=ig,ig=ii,ii=ik}return h4.precision(h6)};h4.step=function(ik){if(!arguments.length){return h4.minorStep()}return h4.majorStep(ik).minorStep(ik)};h4.majorStep=function(ik){if(!arguments.length){return[h1,h3]}h1=+ik[0],h3=+ik[1];return h4};h4.minorStep=function(ik){if(!arguments.length){return[e,h2]}e=+ik[0],h2=+ik[1];return h4};h4.precision=function(ik){if(!arguments.length){return h6}h6=+ik;h7=bg(ig,ii,90);id=bh(h9,ib,h6);h8=bg(ih,ij,90);ie=bh(ia,ic,h6);return h4};return h4.majorExtent([[-180,-90+hT],[180,90-hT]]).minorExtent([[-180,-80-hT],[180,80+hT]])};function bg(h2,h3,e){var h1=b.range(h2,h3-hT,e).concat(h3);return function(h4){return h1.map(function(h5){return[h4,h5]})}}function bh(h2,h3,e){var h1=b.range(h2,h3-hT,e).concat(h3);return function(h4){return h1.map(function(h5){return[h5,h4]})}}function fI(e){return e.source}function gB(e){return e.target}b.geo.greatArc=function(){var h1=fI,h2,h3=gB,h4;function e(){return{type:"LineString",coordinates:[h2||h1.apply(this,arguments),h4||h3.apply(this,arguments)]}}e.distance=function(){return b.geo.distance(h2||h1.apply(this,arguments),h4||h3.apply(this,arguments))};e.source=function(h5){if(!arguments.length){return h1}h1=h5,h2=typeof h5==="function"?null:h5;return e};e.target=function(h5){if(!arguments.length){return h3}h3=h5,h4=typeof h5==="function"?null:h5;return e};e.precision=function(){return arguments.length?e:0};return e};b.geo.interpolate=function(e,h1){return bj(e[0]*ex,e[1]*ex,h1[0]*ex,h1[1]*ex)};function bj(ib,id,ic,ie){var e=Math.cos(id),h9=Math.sin(id),h1=Math.cos(ie),ia=Math.sin(ie),h5=e*Math.cos(ib),h7=e*Math.sin(ib),h6=h1*Math.cos(ic),h8=h1*Math.sin(ic),h2=2*Math.asin(Math.sqrt(cQ(ie-id)+e*h1*cQ(ic-ib))),h4=1/Math.sin(h2);var h3=h2?function(ii){var ih=Math.sin(ii*=h2)*h4,ig=Math.sin(h2-ii)*h4,ij=ig*h5+ih*h6,ik=ig*h7+ih*h8,il=ig*h9+ih*ia;return[Math.atan2(ik,ij)*C,Math.atan2(il,Math.sqrt(ij*ij+ik*ik))*C]}:function(){return[ib*C,id*C]};h3.distance=h2;return h3}b.geo.length=function(e){bm=0;b.geo.stream(e,bk);return bm};var bm;var bk={sphere:et,point:et,lineStart:bl,lineEnd:et,polygonStart:et,polygonEnd:et};function bl(){var h3,h2,e;bk.point=function(h4,h5){h3=h4*ex,h2=Math.sin(h5*=ex),e=Math.cos(h5);bk.point=h1};bk.lineEnd=function(){bk.point=bk.lineEnd=et};function h1(h8,h9){var h6=Math.sin(h9*=ex),h5=Math.cos(h9),h7=a((h8*=ex)-h3),h4=Math.cos(h7);bm+=Math.atan2(Math.sqrt((h7=h5*Math.sin(h7))*h7+(h7=e*h6-h2*h5*h4)*h7),h2*h6+e*h5*h4);h3=h8,h2=h6,e=h5}}function ar(h2,e){function h1(h6,h7){var h3=Math.cos(h6),h4=Math.cos(h7),h5=h2(h3*h4);return[h5*h4*Math.sin(h6),h5*Math.sin(h7)]}h1.invert=function(h6,h7){var h8=Math.sqrt(h6*h6+h7*h7),h3=e(h8),h5=Math.sin(h3),h4=Math.cos(h3);return[Math.atan2(h6*h5,h8*h4),Math.asin(h8&&h7*h5/h8)]};return h1}var at=ar(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(b.geo.azimuthalEqualArea=function(){return bK(at)}).raw=at;var au=ar(function(h1){var e=Math.acos(h1);return e&&e/Math.sin(e)},cY);(b.geo.azimuthalEquidistant=function(){return bK(au)}).raw=au;function ba(h5,h6){var e=Math.cos(h5),h4=function(h7){return Math.tan(hV/4+h7/2)},h3=h5===h6?Math.sin(h5):Math.log(e/Math.cos(h6))/Math.log(h4(h6)/h4(h5)),h1=e*Math.pow(h4(h5),h3)/h3;if(!h3){return bn}function h2(h7,h9){if(h1>0){if(h9<-hS+hT){h9=-hS+hT}}else{if(h9>hS-hT){h9=hS-hT}}var h8=h1/Math.pow(h4(h9),h3);return[h8*Math.sin(h3*h7),h1-h8*Math.cos(h3*h7)]}h2.invert=function(h7,h8){var ia=h1-h8,h9=fG(h3)*Math.sqrt(h7*h7+ia*ia);return[Math.atan2(h7,ia)/h3,2*Math.atan(Math.pow(h1/h9,1/h3))-hS]};return h2}(b.geo.conicConformal=function(){return a9(ba)}).raw=ba;function bc(h4,h5){var e=Math.cos(h4),h3=h4===h5?Math.sin(h4):(e-Math.cos(h5))/(h5-h4),h2=e/h3+h4;if(a(h3)2?h3[2]+90:90]):(h3=h2(),[h3[0],h3[1],h3[2]-90])};return h2([0,0,90])}).raw=b1;b.geom={};function b5(e){return e[0]}function b6(e){return e[1]}b.geom.hull=function(h1){var h2=b5,h3=b6;if(arguments.length){return e(h1)}function e(h4){if(h4.length<3){return[]}var h6=am(h2),h7=am(h3),h8,ia=h4.length,ib=[],h5=[];for(h8=0;h8=0;--h8){ic.push(h4[ib[ig[h8]][2]])}for(h8=+id;h81&&z(h4[h1[e-2]],h4[h1[e-1]],h4[h2])<=0){--e}h1[e++]=h2}return h1.slice(0,e)}function b3(e,h1){return e[0]-h1[0]||e[1]-h1[1]}b.geom.polygon=function(e){fL(e,ca);return e};var ca=b.geom.polygon.prototype=[];ca.area=function(){var h3=-1,h4=this.length,e,h2=this[h4-1],h1=0;while(++h3hT){ig=ig.L}else{h9=il-cM(ig,h7);if(h9>hT){if(!ig.R){ic=ig;break}ig=ig.R}else{if(h8>-hT){ic=ig.P;ih=ig}else{if(h9>-hT){ic=ig;ih=ig.N}else{ic=ih=ig}}break}}}var ie=cv(ij);ck.insert(ic,ie);if(!ic&&!ih){return}if(ic===ih){cz(ic);ih=cv(ic.site);ck.insert(ie,ih);ie.edge=ih.edge=cx(ic.site,ie.site);ci(ic);ci(ih);return}if(!ih){ie.edge=cx(ic.site,ie.site);return}cz(ic);cz(ih);var id=ic.site,e=id.x,h1=id.y,h2=ij.x-e,h3=ij.y-h1,ii=ih.site,h4=ii.x-e,h5=ii.y-h1,h6=2*(h2*h5-h3*h4),ia=h2*h2+h3*h3,ib=h4*h4+h5*h5,ik={x:(h5*ia-h3*ib)/h6+e,y:(h2*ib-h4*ia)/h6+h1};cN(ih.edge,id,ii,ik);ie.edge=cx(id,ij,null,ik);ih.edge=cx(ij,ii,null,ik);ci(ic);ci(ih)}function cF(h1,h3){var ic=h1.site,ia=ic.x,ib=ic.y,h8=ib-h3;if(!h8){return ia}var h5=h1.P;if(!h5){return -Infinity}ic=h5.site;var h6=ic.x,h7=ic.y,h9=h7-h3;if(!h9){return h6}var h4=h6-ia,e=1/h8-1/h9,h2=h4/h9;if(e){return(-h2+Math.sqrt(h2*h2-2*e*(h4*h4/(-2*h9)-h7+h9/2+ib-h8/2)))/e+ia}return(ia+h6)/2}function cM(e,h1){var h2=e.N;if(h2){return cF(h2,h1)}var h3=e.site;return h3.y===h1?h3.x:Infinity}function cm(e){this.site=e;this.edges=[]}cm.prototype.prepare=function(){var h1=this.edges,h2=h1.length,e;while(h2--){e=h1[h2].edge;if(!e.b||!e.a){h1.splice(h2,1)}}h1.sort(cE);return h1.length};function ct(h3){var h9=h3[0][0],ia=h3[1][0],id=h3[0][1],ie=h3[1][1],ib,ig,ic,ih,h1=cn,h5=h1.length,e,h6,h4,h7,h8,h2;while(h5--){e=h1[h5];if(!e||!e.prepare()){continue}h4=e.edges;h7=h4.length;h6=0;while(h6hT||a(ih-ig)>hT){h4.splice(h6,0,new cD(cw(e.site,h2,a(ic-h9)hT?{x:h9,y:a(ib-h9)hT?{x:a(ig-ie)hT?{x:ia,y:a(ib-ia)hT?{x:a(ig-id)=-hU){return}var ib=h1*h1+h2*h2,ic=h8*h8+h9*h9,ij=(h9*ib-h2*ic)/ia,ik=(h1*ic-h8*ib)/ia,h9=ik+h5;var h6=cp.pop()||new co();h6.arc=e;h6.site=h7;h6.x=ij+h4;h6.y=h9+Math.sqrt(ij*ij+ik*ik);h6.cy=h9;e.circle=h6;var h3=null,ig=cq._;while(ig){if(h6.y=ig){return}if(h7>ia){if(!ic){ic={x:h4,y:ih}}else{if(ic.y>=ii){return}}id={x:h4,y:ii}}else{if(!ic){ic={x:h4,y:ii}}else{if(ic.y1){if(h7>ia){if(!ic){ic={x:(ih-h2)/h3,y:ih}}else{if(ic.y>=ii){return}}id={x:(ii-h2)/h3,y:ii}}else{if(!ic){ic={x:(ii-h2)/h3,y:ii}}else{if(ic.y=ig){return}}id={x:ig,y:h3*ig+h2}}else{if(!ic){ic={x:ig,y:h3*ig+h2}}else{if(ic.x=ia&&ij.x<=ib&&ij.y>=ic&&ij.y<=id?[[ia,id],[ib,id],[ib,ic],[ia,ic]]:[];ii.point=h8[ih]});return h9}function h4(h8){return h8.map(function(h9,ia){return{x:Math.round(h1(h9,ia)/hT)*hT,y:Math.round(h2(h9,ia)/hT)*hT,i:ia}})}h5.links=function(h8){return cg(h4(h8)).edges.filter(function(h9){return h9.l&&h9.r}).map(function(h9){return{source:h8[h9.l.i],target:h8[h9.r.i]}})};h5.triangles=function(h8){var h9=[];cg(h4(h8)).cells.forEach(function(ia,ie){var ik=ia.site,id=ia.edges.sort(cE),ig=-1,ih=id.length,ib,ii,ic=id[ih-1].edge,ij=ic.l===ik?ic.r:ic.l;while(++igio){io=h9.x}if(h9.y>it){it=h9.y}ip.push(h9.x);iu.push(h9.y)}}else{for(ig=0;igio){io=il}if(iq>it){it=iq}ip.push(il);iu.push(iq)}}}var ib=io-im,ic=it-ir;if(ib>ic){it=ir+ib}else{io=im+ic}function ih(iw,iv,iA,iD,iB,iE,iC,iF){if(isNaN(iA)||isNaN(iD)){return}if(iw.leaf){var iy=iw.x,iz=iw.y;if(iy!=null){if(a(iy-iA)+a(iz-iD)<0.01){ii(iw,iv,iA,iD,iB,iE,iC,iF)}else{var ix=iw.point;iw.x=iw.y=iw.point=null;ii(iw,ix,iy,iz,iB,iE,iC,iF);ii(iw,iv,iA,iD,iB,iE,iC,iF)}}else{iw.x=iA,iw.y=iD,iw.point=iv}}else{ii(iw,iv,iA,iD,iB,iE,iC,iF)}}function ii(iy,iw,iA,iE,iB,iF,iC,iG){var iD=(iB+iC)*0.5,iH=(iF+iG)*0.5,iz=iA>=iD,iv=iE>=iH,ix=iv<<1|iz;iy.leaf=false;iy=iy.nodes[ix]||(iy.nodes[ix]=ce());if(iz){iB=iD}else{iC=iD}if(iv){iF=iH}else{iG=iH}ih(iy,iw,iA,iE,iB,iF,iC,iG)}var ik=ce();ik.add=function(iv){ih(ik,iv,+id(iv,++ig),+ie(iv,ig),im,ir,io,it)};ik.visit=function(iv){cf(iv,ik,im,ir,io,it)};ik.find=function(iv){return cd(ik,iv[0],iv[1],im,ir,io,it)};ig=-1;if(h4==null){while(++igh6||iq>h9||io=ip,ia=h7>=it;for(var ih=ia<<1|il,ii=ih+4;ihh3){h5=h2.slice(h3,h5);if(h8[h6]){h8[h6]+=h5}else{h8[++h6]=h5}}if((h1=h1[0])===(h4=h4[0])){if(h8[h6]){h8[h6]+=h4}else{h8[++h6]=h4}}else{h8[++h6]=null;h7.push({i:h6,x:c6(h1,h4)})}h3=c1.lastIndex}if(h3=0&&!(h2=b.interpolators[h3](e,h1))){}return h2}b.interpolators=[function(e,h1){var h2=typeof h1;return(h2==="string"?eF.has(h1)||/^(#|rgb\(|hsl\()/.test(h1)?c8:da:h1 instanceof x?c8:Array.isArray(h1)?c2:h2==="object"&&isNaN(h1)?c7:c6)(e,h1)}];b.interpolateArray=c2;function c2(e,h1){var h7=[],h2=[],h5=e.length,h6=h1.length,h4=Math.min(e.length,h1.length),h3;for(h3=0;h3=0?h2.slice(0,e):h2,h1=e>=0?h2.slice(e+1):"in";h3=H.get(h3)||O;h1=R.get(h1)||cY;return L(h1(h3.apply(null,i.call(arguments,1))))};function L(e){return function(h1){return h1<=0?0:h1>=1?1:e(h1)}}function V(e){return function(h1){return 1-e(1-h1)}}function U(e){return function(h1){return 0.5*(h1<0.5?e(2*h1):2-e(2-2*h1))}}function T(e){return e*e}function M(e){return e*e*e}function N(e){if(e<=0){return 0}if(e>=1){return 1}var h1=e*e,h2=h1*e;return 4*(e<0.5?h2:3*(e-h1)+h2-0.75)}function S(h1){return function(e){return Math.pow(e,h1)}}function W(e){return 1-Math.cos(e*hS)}function Q(e){return Math.pow(2,10*(e-1))}function K(e){return 1-Math.sqrt(1-e*e)}function P(e,h1){var h2;if(arguments.length<2){h1=0.45}if(arguments.length){h2=h1/hZ*Math.asin(1/e)}else{e=1,h2=h1/4}return function(h3){return 1+e*Math.pow(2,-10*h3)*Math.sin((h3-h2)*hZ/h1)}}function I(e){if(!e){e=1.70158}return function(h1){return h1*h1*((e+1)*h1-e)}}function J(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+0.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+0.9375:7.5625*(e-=2.625/2.75)*e+0.984375}b.interpolateHcl=c3;function c3(e,h4){e=b.hcl(e);h4=b.hcl(h4);var h2=e.h,h1=e.c,h3=e.l,h6=h4.h-h2,h5=h4.c-h1,h7=h4.l-h3;if(isNaN(h5)){h5=0,h1=isNaN(h1)?h4.c:h1}if(isNaN(h6)){h6=0,h2=isNaN(h2)?h4.h:h2}else{if(h6>180){h6-=360}else{if(h6<-180){h6+=360}}}return function(h8){return cS(h2+h6*h8,h1+h5*h8,h3+h7*h8)+""}}b.interpolateHsl=c4;function c4(e,h4){e=b.hsl(e);h4=b.hsl(h4);var h1=e.h,h3=e.s,h2=e.l,h5=h4.h-h1,h7=h4.s-h3,h6=h4.l-h2;if(isNaN(h7)){h7=0,h3=isNaN(h3)?h4.s:h3}if(isNaN(h5)){h5=0,h1=isNaN(h1)?h4.h:h1}else{if(h5>180){h5-=360}else{if(h5<-180){h5+=360}}}return function(h8){return cV(h1+h5*h8,h3+h7*h8,h2+h6*h8)+""}}b.interpolateLab=c5;function c5(e,h4){e=b.lab(e);h4=b.lab(h4);var h3=e.l,h1=e.a,h2=e.b,h7=h4.l-h3,h5=h4.a-h1,h6=h4.b-h2;return function(h8){return dg(h3+h7*h8,h1+h5*h8,h2+h6*h8)+""}}b.interpolateRound=c9;function c9(e,h1){h1-=e;return function(h2){return Math.round(e+h1*h2)}}b.transform=function(h1){var e=F.createElementNS(b.ns.prefix.svg,"g");return(b.transform=function(h2){if(h2!=null){e.setAttribute("transform",h2);var h3=e.transform.baseVal.consolidate()}return new ho(h3?h3.matrix:hr)})(h1)};function ho(h3){var h4=[h3.a,h3.b],h5=[h3.c,h3.d],e=hs(h4),h2=hq(h4,h5),h1=hs(hp(h5,h4,-h2))||0;if(h4[0]*h5[1]180){h9+=360}else{if(h9-h8>180){h8+=360}}h7.push({i:ia.push(ia.pop()+"rotate(",null,")")-2,x:c6(h8,h9)})}else{if(h9){ia.push(ia.pop()+"rotate("+h9+")")}}if(id!=ie){h7.push({i:ia.push(ia.pop()+"skewX(",null,")")-2,x:c6(id,ie)})}else{if(ie){ia.push(ia.pop()+"skewX("+ie+")")}}if(h4[0]!=h5[0]||h4[1]!=h5[1]){h6=ia.push(ia.pop()+"scale(",null,",",null,")");h7.push({i:h6-4,x:c6(h4[0],h5[0])},{i:h6-2,x:c6(h4[1],h5[1])})}else{if(h5[0]!=1||h5[1]!=1){ia.push(ia.pop()+"scale("+h5+")")}}h6=h7.length;return function(ii){var ig=-1,ih;while(++ig0){e=ik}else{e=0}}else{if(ik>0){h7.start({type:"start",alpha:e=ik});b.timer(h8.tick)}}return h8};h8.start=function(){var il,io=ie.length,im=ic.length,it=ih[0],ik=ih[1],ip,iq;for(il=0;il=0){ia.push(h4=h5[h6]);h4.parent=h7;h4.depth=h7.depth+1}if(h3){h7.value=0}h7.children=h5}else{if(h3){h7.value=+h3.call(h1,h7,h7.depth)||0}delete h7.children}}dH(h9,function(ic){var ib,id;if(h2&&(ib=ic.children)){ib.sort(h2)}if(h3&&(id=ic.parent)){id.value+=ic.value}});return h8}h1.sort=function(h4){if(!arguments.length){return h2}h2=h4;return h1};h1.children=function(h4){if(!arguments.length){return e}e=h4;return h1};h1.value=function(h4){if(!arguments.length){return h3}h3=h4;return h1};h1.revalue=function(h4){if(h3){dI(h4,function(h5){if(h5.children){h5.value=0}});dH(h4,function(h5){var h6;if(!h5.children){h5.value=+h3.call(h1,h5,h5.depth)||0}if(h6=h5.parent){h6.value+=h5.value}})}return h4};return h1};function dE(h1,e){b.rebind(h1,e,"sort","children","value");h1.nodes=h1;h1.links=dD;return h1}function dI(h3,e){var h4=[h3];while((h3=h4.pop())!=null){e(h3);if((h1=h3.children)&&(h2=h1.length)){var h2,h1;while(--h2>=0){h4.push(h1[h2])}}}}function dH(h4,e){var h5=[h4],h6=[];while((h4=h5.pop())!=null){h6.push(h4);if((h1=h4.children)&&(h3=h1.length)){var h2=-1,h3,h1;while(++h2h4){h4=h6}h7.push(h6)}for(h2=0;h2h5){h2=h1;h5=h3}}return h2}function d2(e){return e.reduce(d3,0)}function d3(h1,e){return h1+e[1]}b.layout.histogram=function(){var h1=true,h4=Number,h3=dL,e=dK;function h2(h7,h8){var h6=[],ie=h7.map(h4,this),ic=h3.call(this,ie,h8),id=e.call(this,ic,ie,h8),h5,h8=-1,ib=ie.length,ia=id.length-1,h9=h1?1:1/ib,ig;while(++h80){h8=-1;while(++h8=ic[0]&&ig<=ic[1]){h5=h6[b.bisect(id,ig,1,ia)-1];h5.y+=h9;h5.push(h7[h8])}}}return h6}h2.value=function(h5){if(!arguments.length){return h4}h4=h5;return h2};h2.range=function(h5){if(!arguments.length){return h3}h3=am(h5);return h2};h2.bins=function(h5){if(!arguments.length){return e}e=typeof h5==="number"?function(h6){return dJ(h6,h5)}:am(h5);return h2};h2.frequency=function(h5){if(!arguments.length){return h1}h1=!!h5;return h2};return h2};function dK(e,h1){return dJ(e,Math.ceil(Math.log(h1.length)/Math.LN2+1))}function dJ(h4,h3){var h5=-1,e=+h4[0],h2=(h4[1]-e)/h3,h1=[];while(++h5<=h3){h1[h5]=h2*h5+e}return h1}function dL(e){return[b.min(e),b.max(e)]}b.layout.pack=function(){var e=b.layout.hierarchy().sort(dR),h2=0,h4=[1,1],h3;function h1(h5,h8){var h9=e.call(this,h5,h8),ib=h9[0],ic=h4[0],h7=h4[1],ia=h3==null?Math.sqrt:typeof h3==="function"?h3:function(){return h3};ib.x=ib.y=0;dH(ib,function(id){id.r=+ia(id.value)});dH(ib,dQ);if(h2){var h6=h2*(h3?1:Math.max(2*ib.r/ic,2*ib.r/h7))/2;dH(ib,function(id){id.r+=h6});dH(ib,dQ);dH(ib,function(id){id.r-=h6})}dT(ib,ic/2,h7/2,h3?1:1/Math.max(2*ib.r/ic,2*ib.r/h7));return h9}h1.size=function(h5){if(!arguments.length){return h4}h4=h5;return h1};h1.radius=function(h5){if(!arguments.length){return h3}h3=h5==null||typeof h5==="function"?h5:+h5;return h1};h1.padding=function(h5){if(!arguments.length){return h2}h2=+h5;return h1};return dE(h1,e)};function dR(e,h1){return e.value-h1.value}function dM(e,h1){var h2=e._pack_next;e._pack_next=h1;h1._pack_prev=e;h1._pack_next=h2;h2._pack_prev=h1}function dS(e,h1){e._pack_next=h1;h1._pack_prev=e}function dN(e,h1){var h3=h1.x-e.x,h4=h1.y-e.y,h2=e.r+h1.r;return 0.999*h2*h2>h3*h3+h4*h4}function dQ(ic){if(!(id=ic.children)||!(ib=id.length)){return}var id,ii=Infinity,ih=-Infinity,ik=Infinity,ij=-Infinity,e,h1,h3,h7,h9,ia,ib;function h2(il){ii=Math.min(il.x-il.r,ii);ih=Math.max(il.x+il.r,ih);ik=Math.min(il.y-il.r,ik);ij=Math.max(il.y+il.r,ij)}id.forEach(dO);e=id[0];e.x=-e.r;e.y=0;h2(e);if(ib>1){h1=id[1];h1.x=h1.r;h1.y=0;h2(h1);if(ib>2){h3=id[2];dP(e,h1,h3);h2(h3);dM(e,h3);e._pack_prev=h3;dM(h3,h1);h1=e._pack_next;for(h7=3;h7ii.x){ii=im}if(im.depth>ia.depth){ia=im}});var il=h5(ig,ii)/2-ig.x,id=h6[0]/(ii.x+h5(ii,ig)/2+il),ie=h6[1]/(ia.depth||1);dI(ij,function(im){im.x=(im.x+il)*id;im.y=im.depth*ie})}return ih}function h9(ih){var ii={A:null,children:[ih]},ig=[ii],ie;while((ie=ig.pop())!=null){for(var ib=ie.children,ia,ic=0,id=ib.length;ic0){ea(d6(ii,ih,ia),ih,ib);id+=ib;ig+=ib}ic+=ii.m;id+=ij.m;ie+=ik.m;ig+=il.m}if(ii&&!eb(il)){il.t=ii;il.m+=ic-ig}if(ij&&!d7(ik)){ik.t=ij;ik.m+=id-ie;ia=ih}}return ia}function h7(ia){ia.x*=h6[0];ia.y=ia.depth*h6[1]}h8.separation=function(ia){if(!arguments.length){return h5}h5=ia;return h8};h8.size=function(ia){if(!arguments.length){return h3?null:h6}h3=(h6=ia)==null?h7:null;return h8};h8.nodeSize=function(ia){if(!arguments.length){return h3?h6:null}h3=(h6=ia)==null?null:h7;return h8};return dE(h8,h2)};function ec(e,h1){return e.parent==h1.parent?1:2}function d7(h1){var e=h1.children;return e.length?e[0]:h1.t}function eb(h2){var e=h2.children,h1;return(h1=e.length)?e[h1-1]:h2.t}function ea(h2,h3,h1){var e=h1/(h3.i-h2.i);h3.c-=e;h3.s+=h1;h2.c+=e;h3.z+=h1;h3.m+=h1}function ed(h4){var h3=0,e=0,h1=h4.children,h2=h1.length,h5;while(--h2>=0){h5=h1[h2];h5.z+=h3;h5.m+=h3;h3+=h5.s+(e+=h5.c)}}function d6(h2,h1,e){return h2.a.parent===h1.parent?h2.a:e}b.layout.cluster=function(){var h1=b.layout.hierarchy().sort(null).value(null),h3=ec,h4=[1,1],h2=false;function e(h5,h6){var h8=h1.call(this,h5,h6),ib=h8[0],h9,ic=0;dH(ib,function(ih){var ig=ih.children;if(ig&&ig.length){ih.x=ds(ig);ih.y=dt(ig)}else{ih.x=h9?ic+=h3(ih,h9):0;ih.y=0;h9=ih}});var h7=dq(ib),ia=dr(ib),id=h7.x-h3(h7,ia)/2,ie=ia.x+h3(ia,h7)/2;dH(ib,h2?function(ig){ig.x=(ig.x-ib.x)*h4[0];ig.y=(ib.y-ig.y)*h4[1]}:function(ig){ig.x=(ig.x-id)/(ie-id)*h4[0];ig.y=(1-(ib.y?ig.y/ib.y:1))*h4[1]});return h8}e.separation=function(h5){if(!arguments.length){return h3}h3=h5;return e};e.size=function(h5){if(!arguments.length){return h2?null:h4}h2=(h4=h5)==null;return e};e.nodeSize=function(h5){if(!arguments.length){return h2?h4:null}h2=(h4=h5)!=null;return e};return dE(e,h1)};function dt(e){return 1+b.max(e,function(h1){return h1.y})}function ds(e){return e.reduce(function(h2,h1){return h2+h1.x},0)/e.length}function dq(h1){var e=h1.children;return e&&e.length?dq(e[0]):h1}function dr(h2){var e=h2.children,h1;return e&&(h1=e.length)?dr(e[h1-1]):h2}b.layout.treemap=function(){var e=b.layout.hierarchy(),h6=Math.round,h8=[1,1],h3=null,h2=d9,ic=false,ia,h1="squarify",h5=0.5*(1+Math.sqrt(5));function h7(ii,ik){var ij=-1,il=ii.length,ih,ig;while(++ij0){io.push(ih=im[ij-1]);io.area+=ih.area;if(h1!=="squarify"||(ip=ie(io,iq))<=ig){im.pop();ig=ip}else{io.area-=io.pop().area;h4(io,iq,il,false);iq=Math.min(il.dx,il.dy);io.length=io.area=0;ig=Infinity}}if(io.length){h4(io,iq,il,true);io.length=io.area=0}ii.forEach(h9)}}function ib(ii){var ih=ii.children;if(ih&&ih.length){var ij=h2(ii),ik=ih.slice(),ig,il=[];h7(ik,ij.dx*ij.dy/ii.value);il.area=0;while(ig=ik.pop()){il.push(ig);il.area+=ig.area;if(ig.z!=null){h4(il,ig.z?ij.dx:ij.dy,ij,!ik.length);il.length=il.area=0}}ih.forEach(ib)}}function ie(il,io){var im=il.area,ii,ij=0,ik=Infinity,ig=-1,ih=il.length;while(++igij){ij=ii}}im*=im;io*=io;return im?Math.max(io*ij*h5/im,im/(io*ik*h5)):Infinity}function h4(il,im,ik,ig){var ih=-1,ii=il.length,ip=ik.x,iq=ik.y,io=im?h6(il.area/im):0,ij;if(im==ik.dx){if(ig||io>ik.dy){io=ik.dy}while(++ihik.dx){io=ik.dx}while(++ih1);return e+h2*h4*Math.sqrt(-2*Math.log(h3)/h3)}},logNormal:function(){var e=b.random.normal.apply(b,arguments);return function(){return Math.exp(e())}},bates:function(e){var h1=b.random.irwinHall(e);return function(){return h1()/e}},irwinHall:function(e){return function(){for(var h2=0,h1=0;h12?e4:eM,h9=e?hD:hE;h4=h8(h1,h5,h9,h3);h2=h8(h5,h1,h9,cZ);return h7}function h7(h8){return h4(h8)}h7.invert=function(h8){return h2(h8)};h7.domain=function(h8){if(!arguments.length){return h1}h1=h8.map(Number);return h6()};h7.range=function(h8){if(!arguments.length){return h5}h5=h8;return h6()};h7.rangeRound=function(h8){return h7.range(h8).interpolate(c9)};h7.clamp=function(h8){if(!arguments.length){return e}e=h8;return h6()};h7.interpolate=function(h8){if(!arguments.length){return h3}h3=h8;return h6()};h7.ticks=function(h8){return eW(h1,h8)};h7.tickFormat=function(h9,h8){return eU(h1,h9,h8)};h7.nice=function(h8){eR(h1,h8);return h6()};h7.copy=function(){return eO(h1,h5,h3,e)};return h6()}function eT(h1,e){return b.rebind(h1,e,"range","rangeRound","interpolate","clamp")}function eR(e,h1){return e0(e,e2(eV(e,h1)[2]))}function eV(e,h3){if(h3==null){h3=10}var h2=fa(e),h4=h2[1]-h2[0],h5=Math.pow(10,Math.floor(Math.log(h4/h3)/Math.LN10)),h1=h3/h4*h5;if(h1<=0.15){h5*=10}else{if(h1<=0.35){h5*=5}else{if(h1<=0.75){h5*=2}}}h2[0]=Math.ceil(h2[0]/h5)*h5;h2[1]=Math.floor(h2[1]/h5)*h5+h5*0.5;h2[2]=h5;return h2}function eW(e,h1){return b.range.apply(b,eV(e,h1))}function eU(e,h2,h1){var h5=eV(e,h2);if(h1){var h3=ah.exec(h1);h3.shift();if(h3[8]==="s"){var h4=b.formatPrefix(Math.max(a(h5[0]),a(h5[1])));if(!h3[7]){h3[7]="."+eS(h4.scale(h5[2]))}h3[8]="f";h1=b.format(h3.join(""));return function(h6){return h1(h4.scale(h6))+h4.symbol}}if(!h3[7]){h3[7]="."+eP(h3[8],h5)}h1=h3.join("")}else{h1=",."+eS(h5[2])+"f"}return b.format(h1)}var eQ={s:1,g:1,p:1,r:1,e:1};function eS(e){return -Math.floor(Math.log(e)/Math.LN10+0.01)}function eP(h2,h1){var e=eS(h1[2]);return h2 in eQ?Math.abs(e-eS(Math.max(a(h1[0]),a(h1[1]))))+ +(h2!=="e"):e-(h2==="%")*2}b.scale.log=function(){return eX(b.scale.linear().domain([0,1]),10,true,[1,10])};function eX(h2,e,h4,h1){function h3(h7){return(h4?Math.log(h7<0?0:h7):-Math.log(h7>0?0:-h7))/Math.log(e)}function h5(h7){return h4?Math.pow(e,h7):-Math.pow(e,-h7)}function h6(h7){return h2(h3(h7))}h6.invert=function(h7){return h5(h2.invert(h7))};h6.domain=function(h7){if(!arguments.length){return h1}h4=h7[0]>=0;h2.domain((h1=h7.map(Number)).map(h3));return h6};h6.base=function(h7){if(!arguments.length){return e}e=+h7;h2.domain(h1.map(h3));return h6};h6.nice=function(){var h7=e0(h1.map(h3),h4?Math:eZ);h2.domain(h7);h1=h7.map(h5);return h6};h6.ticks=function(){var h7=fa(h1),ic=[],id=h7[0],ie=h7[1],h8=Math.floor(h3(id)),h9=Math.ceil(h3(ie)),ib=e%1?2:e;if(isFinite(h9-h8)){if(h4){for(;h80;ia--){ic.push(h5(h8)*ia)}}}for(h8=0;ic[h8]ie;h9--){}ic=ic.slice(h8,h9)}return ic};h6.tickFormat=function(ib,h9){if(!arguments.length){return eY}if(arguments.length<2){h9=eY}else{if(typeof h9!=="function"){h9=b.format(h9)}}var ia=Math.max(0.1,ib/h6.ticks().length),h8=h4?(h7=1e-12,Math.ceil):(h7=-1e-12,Math.floor),h7;return function(ic){return ic/h5(h8(h3(ic)+h7))<=ia?h9(ic):""}};h6.copy=function(){return eX(h2.copy(),e,h4,h1)};return eT(h6,h2)}var eY=b.format(".0e"),eZ={floor:function(e){return -Math.ceil(-e)},ceil:function(e){return -Math.floor(-e)}};b.scale.pow=function(){return e5(b.scale.linear(),1,[0,1])};function e5(h2,h1,e){var h4=e6(h1),h3=e6(1/h1);function h5(h6){return h2(h4(h6))}h5.invert=function(h6){return h3(h2.invert(h6))};h5.domain=function(h6){if(!arguments.length){return e}h2.domain((e=h6.map(Number)).map(h4));return h5};h5.ticks=function(h6){return eW(e,h6)};h5.tickFormat=function(h7,h6){return eU(e,h7,h6)};h5.nice=function(h6){return h5.domain(eR(e,h6))};h5.exponent=function(h6){if(!arguments.length){return h1}h4=e6(h1=h6);h3=e6(1/h1);h2.domain(e.map(h4));return h5};h5.copy=function(){return e5(h2.copy(),h1,e)};return eT(h5,h2)}function e6(h1){return function(e){return e<0?-Math.pow(-e,h1):Math.pow(e,h1)}}b.scale.sqrt=function(){return b.scale.pow().exponent(0.5)};b.scale.ordinal=function(){return e3([],{t:"range",a:[[]]})};function e3(e,h4){var h1,h2,h3;function h5(h7){return h2[((h1.get(h7)||(h4.t==="range"?h1.set(h7,e.push(h7)):NaN))-1)%h2.length]}function h6(h7,h8){return b.range(e.length).map(function(h9){return h7+h8*h9})}h5.domain=function(h9){if(!arguments.length){return e}e=[];h1=new eh();var h7=-1,h8=h9.length,ia;while(++h70?h4[h5-1]:e[0],h5ia?0:1;if(ix=h0){return h1(ix,ii)+(iw?h1(iw,1-ii):"")+"Z"}var iy,ih,iB,ib,it=0,iu=0,iG,iK,iH,iL,iI,iM,iJ,iN,iv=[];if(ib=(+h6.apply(this,arguments)||0)/2){iB=h7===fM?Math.sqrt(iw*iw+ix*ix):+h7.apply(this,arguments);if(!ii){iu*=-1}if(ix){iu=k(iB/ix*Math.sin(ib))}if(iw){it=k(iB/iw*Math.sin(ib))}}if(ix){iG=ix*Math.cos(h9+iu);iK=ix*Math.sin(h9+iu);iH=ix*Math.cos(ia-iu);iL=ix*Math.sin(ia-iu);var ip=Math.abs(ia-h9-2*iu)<=hV?0:1;if(iu&&fT(iG,iK,iH,iL)===ii^ip){var il=(h9+ia)/2;iG=ix*Math.cos(il);iK=ix*Math.sin(il);iH=iL=null}}else{iG=iK=0}if(iw){iI=iw*Math.cos(ia-it);iM=iw*Math.sin(ia-it);iJ=iw*Math.cos(h9+it);iN=iw*Math.sin(h9+it);var io=Math.abs(h9-ia+2*it)<=hV?0:1;if(it&&fT(iI,iM,iJ,iN)===1-ii^io){var ik=(h9+ia)/2;iI=iw*Math.cos(ik);iM=iw*Math.sin(ik);iJ=iN=null}}else{iI=iM=0}if((iy=Math.min(Math.abs(ix-iw)/2,+h2.apply(this,arguments)))>0.001){ih=iw0?0:1}function fN(ii,ij,il,im,e){var io=ii[0]-ij[0],it=ii[1]-ij[1],ie=(e?im:-im)/Math.sqrt(io*io+it*it),ig=ie*it,ih=-ie*io,ip=ii[0]+ig,iu=ii[1]+ih,iq=ij[0]+ig,iv=ij[1]+ih,ir=(ip+iq)/2,iw=(iu+iv)/2,h8=iq-ip,ib=iv-iu,h7=h8*h8+ib*ib,ik=il-im,h6=ip*iv-iq*iu,h5=(ib<0?-1:1)*Math.sqrt(ik*ik*h7-h6*h6),h1=(h6*ib-h8*h5)/h7,h3=(-h6*h8-ib*h5)/h7,h2=(h6*ib+h8*h5)/h7,h4=(-h6*h8+ib*h5)/h7,h9=h1-ir,ic=h3-iw,ia=h2-ir,id=h4-iw;if(h9*h9+ic*ic>ia*ia+id*id){h1=h2,h3=h4}return[[h1-ig,h3-ih],[h1*il/ik,h3*il/ik]]}function f4(h4){var h6=b5,h7=b6,e=hC,h1=gl,h2=h1.key,h5=0.7;function h3(h9){var ih=[],ie=[],ic=-1,id=h9.length,h8,ia=am(h6),ib=am(h7);function ig(){ih.push("M",h1(h4(ie),h5))}while(++ic1){h3.push("H",h2[0])}return h3.join("")}function gt(h4){var e=0,h1=h4.length,h2=h4[0],h3=[h2[0],",",h2[1]];while(++e1){h8=ia[1];h2=h6[h5];h5++;h4+="C"+(h3[0]+h9[0])+","+(h3[1]+h9[1])+","+(h2[0]-h8[0])+","+(h2[1]-h8[1])+","+h2[0]+","+h2[1];for(var e=2;e9){h7=h2*3/Math.sqrt(h7);h5[h3]=h7*e;h5[h3+1]=h7*h1}}}h3=-1;while(++h3<=h4){h7=(h6[Math.min(h4,h3+1)][0]-h6[Math.max(0,h3-1)][0])/(6*(1+h5[h3]*h5[h3]));h8.push([h7||0,h5[h3]*h7||0])}return h8}function gn(e){return e.length<3?gl(e):e[0]+gj(e,go(e))}b.svg.line.radial=function(){var e=f4(gp);e.radius=e.x,delete e.x;e.angle=e.y,delete e.y;return e};function gp(h4){var h3,h1=-1,h2=h4.length,h5,e;while(++h1hV)+",1 "+ib}function h2(ic,ia,id,ib){return"Q 0,0 "+ib}h1.radius=function(ia){if(!arguments.length){return h5}h5=am(ia);return h1};h1.source=function(ia){if(!arguments.length){return h6}h6=am(ia);return h1};h1.target=function(ia){if(!arguments.length){return h9}h9=am(ia);return h1};h1.startAngle=function(ia){if(!arguments.length){return h7}h7=am(ia);return h1};h1.endAngle=function(ia){if(!arguments.length){return h3}h3=am(ia);return h1};return h1};function f1(e){return e.radius}b.svg.diagonal=function(){var h2=fI,h3=gB,h1=f2;function e(h4,h5){var h8=h2.call(this,h4,h5),h9=h3.call(this,h4,h5),h6=(h8.y+h9.y)/2,h7=[h8,{x:h8.x,y:h6},{x:h9.x,y:h6},h9];h7=h7.map(h1);return"M"+h7[0]+"C"+h7[1]+" "+h7[2]+" "+h7[3]}e.source=function(h4){if(!arguments.length){return h2}h2=am(h4);return e};e.target=function(h4){if(!arguments.length){return h3}h3=am(h4);return e};e.projection=function(h4){if(!arguments.length){return h1}h1=h4;return e};return e};function f2(e){return[e.x,e.y]}b.svg.diagonal.radial=function(){var e=b.svg.diagonal(),h1=f2,h2=e.projection;e.projection=function(h3){return arguments.length?h2(f3(h1=h3)):h1};return e};function f3(e){return function(){var h2=e.apply(this,arguments),h3=h2[0],h1=h2[1]-hS;return[h3*Math.cos(h1),h3*Math.sin(h1)]}}b.svg.symbol=function(){var h2=gz,e=gw;function h1(h3,h4){return(gv.get(h2.call(this,h3,h4))||gu)(e.call(this,h3,h4))}h1.type=function(h3){if(!arguments.length){return h2}h2=am(h3);return h1};h1.size=function(h3){if(!arguments.length){return e}e=am(h3);return h1};return h1};function gw(){return 64}function gz(){return"circle"}function gu(h1){var e=Math.sqrt(h1/hV);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}var gv=b.map({circle:gu,cross:function(h1){var e=Math.sqrt(h1/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(h2){var h1=Math.sqrt(h2/(2*gy)),e=h1*gy;return"M0,"+-h1+"L"+e+",0 0,"+h1+" "+-e+",0Z"},square:function(h1){var e=Math.sqrt(h1)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(h2){var e=Math.sqrt(h2/gx),h1=e*gx/2;return"M0,"+h1+"L"+e+","+-h1+" "+-e+","+-h1+"Z"},"triangle-up":function(h2){var e=Math.sqrt(h2/gx),h1=e*gx/2;return"M0,"+-h1+"L"+e+","+h1+" "+-e+","+h1+"Z"}});b.svg.symbolTypes=gv.keys();var gx=Math.sqrt(3),gy=Math.tan(30*ex);fC.transition=function(h6){var h2=hy||++hw,h8=hz(h6),ia=[],h9,h7,ib=hx||{time:Date.now(),ease:N,delay:0,duration:250};for(var h3=-1,h4=this.length;++h3h1){return id()}var ii=h3[h3.active];if(ii){--h3.count;delete h3[h3.active];ii.event&&ii.event.interrupt.call(h4,h4.__data__,ii.index)}h3.active=h1;h7.event&&h7.event.start.call(h4,h4.__data__,e);h7.tween.forEach(function(ik,il){if(il=il.call(h4,h4.__data__,e)){ih.push(il)}});ia=h7.ease;h9=h7.duration;b.timer(function(){ig.c=ie(ij||1)?hC:ie;return 1},0,h6)}function ie(ij){if(h3.active!==h1){return 1}var il=ij/h9,ii=ia(il),ik=ih.length;while(ik>0){ih[--ik].call(h4,ii)}if(il>=1){h7.event&&h7.event.end.call(h4,h4.__data__,e);return id()}}function id(){if(--h3.count){delete h3[h1]}else{delete h4[h5]}return 1}},0,h6)}}b.svg.axis=function(){var h4=b.scale.linear(),h2=fV,h1=6,h3=6,h7=3,h5=[10],h8=null,h6;function e(h9){h9.each(function(){var ib=b.select(this);var ii=this.__chart__||h4,ij=this.__chart__=h4.copy();var iu=h8==null?ij.ticks?ij.ticks.apply(ij,h5):ij.domain():h8,it=h6==null?ij.tickFormat?ij.tickFormat.apply(ij,h5):cY:h6,ip=ib.selectAll(".tick").data(iu,ij),iq=ip.enter().insert("g",".domain").attr("class","tick").style("opacity",hT),ir=b.transition(ip.exit()).style("opacity",hT).remove(),ix=b.transition(ip.order()).style("opacity",1),iv=Math.max(h1,0)+h7,iw;var ih=fb(ij),ie=ib.selectAll(".domain").data([0]),ig=(ie.enter().append("path").attr("class","domain"),b.transition(ie));iq.append("line");iq.append("text");var ic=iq.select("line"),id=ix.select("line"),il=ip.select("text").text(it),im=iq.select("text"),io=ix.select("text"),ik=h2==="top"||h2==="left"?-1:1,iz,iA,iB,iC;if(h2==="bottom"||h2==="top"){iw=fX,iz="x",iB="y",iA="x2",iC="y2";il.attr("dy",ik<0?"0em":".71em").style("text-anchor","middle");ig.attr("d","M"+ih[0]+","+ik*h3+"V0H"+ih[1]+"V"+ik*h3)}else{iw=fY,iz="y",iB="x",iA="y2",iC="x2";il.attr("dy",".32em").style("text-anchor",ik<0?"end":"start");ig.attr("d","M"+ik*h3+","+ih[0]+"H0V"+ih[1]+"H"+ik*h3)}ic.attr(iC,ik*h1);im.attr(iB,ik*iv);id.attr(iA,0).attr(iC,ik*h1);io.attr(iz,0).attr(iB,ik*iv);if(ij.rangeBand){var iy=ij,ia=iy.rangeBand()/2;ii=ij=function(iD){return iy(iD)+ia}}else{if(ii.rangeBand){ii=ij}else{ir.call(iw,ij,ii)}}iq.call(iw,ii,ij);ix.call(iw,ij,ij)})}e.scale=function(h9){if(!arguments.length){return h4}h4=h9;return e};e.orient=function(h9){if(!arguments.length){return h2}h2=h9 in fW?h9+"":fV;return e};e.ticks=function(){if(!arguments.length){return h5}h5=arguments;return e};e.tickValues=function(h9){if(!arguments.length){return h8}h8=h9;return e};e.tickFormat=function(h9){if(!arguments.length){return h6}h6=h9;return e};e.tickSize=function(ia){var h9=arguments.length;if(!h9){return h1}h1=+ia;h3=+arguments[h9-1];return e};e.innerTickSize=function(h9){if(!arguments.length){return h1}h1=+h9;return e};e.outerTickSize=function(h9){if(!arguments.length){return h3}h3=+h9;return e};e.tickPadding=function(h9){if(!arguments.length){return h7}h7=+h9;return e};e.tickSubdivide=function(){return arguments.length&&e};return e};var fV="bottom",fW={top:1,right:1,bottom:1,left:1};function fX(e,h1,h2){e.attr("transform",function(h3){var h4=h1(h3);return"translate("+(isFinite(h4)?h4:h2(h3))+",0)"})}function fY(e,h1,h2){e.attr("transform",function(h3){var h4=h1(h3);return"translate(0,"+(isFinite(h4)?h4:h2(h3))+")"})}b.svg.brush=function(){var h2=ad(e,"brushstart","brush","brushend"),h7=null,ib=null,h9=[0,0],id=[0,0],ia,ie,h8=true,ic=true,h6=f0[0];function e(ig){ig.each(function(){var ij=b.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",h1).on("touchstart.brush",h1);var ih=ij.selectAll(".background").data([0]);ih.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair");ij.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var im=ij.selectAll(".resize").data(h6,cY);im.exit().remove();im.enter().append("g").attr("class",function(io){return"resize "+io}).style("cursor",function(io){return fZ[io]}).append("rect").attr("x",function(io){return/[ew]$/.test(io)?-3:null}).attr("y",function(io){return/^[ns]/.test(io)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden");im.style("display",e.empty()?"none":null);var ik=b.transition(ij),ii=b.transition(ih),il;if(h7){il=fb(h7);ii.attr("x",il[0]).attr("width",il[1]-il[0]);h4(ik)}if(ib){il=fb(ib);ii.attr("y",il[0]).attr("height",il[1]-il[0]);h5(ik)}h3(ik)})}e.event=function(ig){ig.each(function(){var ih=h2.of(this,arguments),ij={x:h9,y:id,i:ia,j:ie},ii=this.__chart__||ij;this.__chart__=ij;if(hy){b.select(this).transition().each("start.brush",function(){ia=ii.i;ie=ii.j;h9=ii.x;id=ii.y;ih({type:"brushstart"})}).tween("brush:brush",function(){var ik=c2(h9,ij.x),il=c2(id,ij.y);ia=ie=null;return function(im){h9=ij.x=ik(im);id=ij.y=il(im);ih({type:"brush",mode:"resize"})}}).each("end.brush",function(){ia=ij.i;ie=ij.j;ih({type:"brush",mode:"resize"});ih({type:"brushend"})})}else{ih({type:"brushstart"});ih({type:"brush",mode:"resize"});ih({type:"brushend"})}})};function h3(ig){ig.selectAll(".resize").attr("transform",function(ih){return"translate("+h9[+/e$/.test(ih)]+","+id[+/^s/.test(ih)]+")"})}function h4(ig){ig.select(".extent").attr("x",h9[0]);ig.selectAll(".extent,.n>rect,.s>rect").attr("width",h9[1]-h9[0])}function h5(ig){ig.select(".extent").attr("y",id[0]);ig.selectAll(".extent,.e>rect,.w>rect").attr("height",id[1]-id[0])}function h1(){var iA=this,im=b.select(b.event.target),il=h2.of(iA,arguments),iq=b.select(iA),ix=im.datum(),iy=!/^(n|s)$/.test(ix)&&h7,iz=!/^(e|w)$/.test(ix)&&ib,ij=im.classed("extent"),ik=ac(iA),ii,iw=b.mouse(iA),iv;var iB=b.select(hH(iA)).on("keydown.brush",ir).on("keyup.brush",it);if(b.event.changedTouches){iB.on("touchmove.brush",ih).on("touchend.brush",ig)}else{iB.on("mousemove.brush",ih).on("mouseup.brush",ig)}iq.interrupt().selectAll("*").interrupt();if(ij){iw[0]=h9[0]-iw[0];iw[1]=id[0]-iw[1]}else{if(ix){var io=+/w$/.test(ix),ip=+/^n/.test(ix);iv=[h9[1-io]-iw[0],id[1-ip]-iw[1]];iw[0]=h9[io];iw[1]=id[ip]}else{if(b.event.altKey){ii=iw.slice()}}}iq.style("pointer-events","none").selectAll(".resize").style("display",null);b.select("body").style("cursor",im.style("cursor"));il({type:"brushstart"});ih();function ir(){if(b.event.keyCode==32){if(!ij){ii=null;iw[0]-=h9[1];iw[1]-=id[1];ij=2}ae()}}function it(){if(b.event.keyCode==32&&ij==2){iw[0]+=h9[1];iw[1]+=id[1];ij=0;ae()}}function ih(){var iD=b.mouse(iA),iC=false;if(iv){iD[0]+=iv[0];iD[1]+=iv[1]}if(!ij){if(b.event.altKey){if(!ii){ii=[(h9[0]+h9[1])/2,(id[0]+id[1])/2]}iw[0]=h9[+(iD[0]1?{floor:function(ib){while(ia(ib=h7.floor(ib))){ib=g7(ib-1)}return ib},ceil:function(ib){while(ia(ib=h7.ceil(ib))){ib=g7(+ib+1)}return ib}}:h7))};h3.ticks=function(h6,h8){var h5=fa(h3.domain()),h7=h6==null?h4(h5,10):typeof h6==="number"?h4(h5,h6):!h6.range&&[{range:h6},h8];if(h7){h6=h7[0],h8=h7[1]}return h6.range(h5[0],g7(+h5[1]+1),h8<1?1:h8)};h3.tickFormat=function(){return e};h3.copy=function(){return g6(h1.copy(),h2,e)};return eT(h3,h1)}function g7(e){return new Date(e)}var hb=[1000,5000,15000,30000,60000,300000,900000,1800000,3600000,10800000,21600000,43200000,86400000,172800000,604800000,2592000000,7776000000,31536000000];var g9=[[gC.second,1],[gC.second,5],[gC.second,15],[gC.second,30],[gC.minute,1],[gC.minute,5],[gC.minute,15],[gC.minute,30],[gC.hour,1],[gC.hour,3],[gC.hour,6],[gC.hour,12],[gC.day,1],[gC.day,2],[gC.week,1],[gC.month,1],[gC.month,3],[gC.year,1]];var g8=gE.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&e.getDate()!=1}],["%b %d",function(e){return e.getDate()!=1}],["%B",function(e){return e.getMonth()}],["%Y",hC]]);var ha={range:function(e,h2,h1){return b.range(Math.ceil(e/h1)*h1,+h2,h1).map(g7)},floor:cY,ceil:cY};g9.year=gC.year;gC.scale=function(){return g6(b.scale.linear(),g9,g8)};var hd=g9.map(function(e){return[e[0].utc,e[1]]});var hc=gM.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&e.getUTCDate()!=1}],["%b %d",function(e){return e.getUTCDate()!=1}],["%B",function(e){return e.getUTCMonth()}],["%Y",hC]]);hd.year=gC.year.utc;gC.scale.utc=function(){return g6(b.scale.linear(),hd,hc)};b.text=hL(function(e){return e.responseText});b.json=function(h1,e){return hI(h1,"application/json",dc,e)};function dc(e){return JSON.parse(e.responseText)}b.html=function(h1,e){return hI(h1,"text/html",cX,e)};function cX(h1){var e=F.createRange();e.selectNode(F.body);return e.createContextualFragment(h1.responseText)}b.xml=hL(function(e){return e.responseXML});if(typeof define==="function"&&define.amd){define(b)}else{if(typeof module==="object"&&module.exports){module.exports=b}}this.d3=b}();(function(b,a){b.d3.tip=a(b.d3)}(this,function(a){return function(){var i=a.functor([0,0]),g=a.functor(" "),k=document.createElementNS(a.ns.prefix.svg,"svg"),h=document.createElement("div"),b=a.select(h);b.classed("n",true);document.body.appendChild(h);function l(){}l.show=function(){var m=Array.prototype.slice.call(arguments),w;if(m[m.length-1] instanceof Element){w=m.pop()}w=w||a.event.target;var n=g.apply(this,m),t=i.apply(this,m),o,v=document.documentElement.scrollTop||document.body.scrollTop,u=document.documentElement.scrollLeft||document.body.scrollLeft,p,r,q,s=10;b.style({left:"0"});b.html(n);b.classed("delphi--tooltip-active",true);o=c(w);p=o.left+t[1];q=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-h.offsetWidth-s;r=Math.min(Math.max(p,s),q)-p;j((r*-1)+(h.clientWidth/2));b.style({top:o.top+t[0]+v+"px",left:p+r+u+"px"});return l};l.isActive=function(){return b.classed("delphi--tooltip-active")};l.hide=function(){b.classed("delphi--tooltip-active",false);return l};l.attr=function(o,p){if(arguments.length<2&&typeof o==="string"){return b.attr(o)}else{var m=Array.prototype.slice.call(arguments);a.selection.prototype.attr.apply(b,m)}return l};l.style=function(o,p){if(arguments.length<2&&typeof o==="string"){return b.style(o)}else{var m=Array.prototype.slice.call(arguments);a.selection.prototype.style.apply(b,m)}return l};l.offset=function(m){if(!arguments.length){return i}i=m===null?m:a.functor(m);return l};l.html=function(m){if(!arguments.length){return g}g=m===null?m:a.functor(m);return l};l.node=function(){return h};function j(q){var r=".delphi--tooltip.n:before, .delphi--tooltip.n:after { left:{0}px; }",o=document.head||document.getElementsByTagName("head")[0],p=o&&o.querySelector("#d3-tip-style"),n,m=false;if(!p){p=document.createElement("style");p.setAttribute("id","d3-tip-style");p.setAttribute("type","text/css");m=true}r=r.replace("{0}",q);if(p.styleSheet){p.styleSheet.cssText=r}else{while(n=p.firstChild){p.removeChild(n)}p.appendChild(document.createTextNode(r))}m&&o.appendChild(p)}function c(m){return typeof m.getScreenCTM==="function"?e(m):d(m)}function e(n){var m=f(n);return{top:Math.round(m.y-h.offsetHeight),left:Math.round(m.x-h.offsetWidth/2)}}function d(m){var n=m.getBoundingClientRect();return{top:Math.round(n.top-h.offsetHeight),left:Math.round(n.left+m.offsetWidth/2-h.offsetWidth/2)}}function f(m){while("undefined"===typeof m.getScreenCTM&&"undefined"===m.parentNode){m=m.parentNode}var o=k.createSVGPoint(),n=m.getScreenCTM(),p=m.getBBox(),q=p.width,r=p.x,s=p.y;o.x=r+q/2;o.y=s;return o.matrixTransform(n)}return l}}));