1?t.join("L"):t+"Z"}function za(t){return t.join("L")+"Z"}function Sa(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n =f[0]&&u<=f[1]&&(o=s[po.bisect(l,u,1,h)-1],o.y+=d,o.push(t[a]));return s}var n=!0,e=Number,r=zi,i=Mi;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=Nt(n),t):r},t.bins=function(n){return arguments.length?(i="number"==typeof n?function(t){return Oi(t,n)}:Nt(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},po.layout.pack=function(){function t(t,a){var o=e.call(this,t,a),u=o[0],s=i[0],c=i[1],f=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(u.x=u.y=0,li(u,function(t){t.r=+f(t.value)}),li(u,Ni),r){var l=r*(n?1:Math.max(2*u.r/s,2*u.r/c))/2;li(u,function(t){t.r+=l}),li(u,Ni),li(u,function(t){t.r-=l})}return Ci(u,s/2,c/2,n?1:1/Math.max(2*u.r/s,2*u.r/c)),o}var n,e=po.layout.hierarchy().sort(Si),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},t.radius=function(e){return arguments.length?(n=null==e||"function"==typeof e?e:+e,t):n},t.padding=function(n){return arguments.length?(r=+n,t):r},ci(t,e)},po.layout.tree=function(){function t(t,i){var f=o.call(this,t,i),l=f[0],p=n(l);if(li(p,e),p.parent.m=-p.z,fi(p,r),c)fi(l,a);else{var h=l,d=l,m=l;fi(l,function(t){t.x 0){if(a>h)return;a>p&&(p=a)}if(a=e-s,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>p&&(p=a)}else if(d>0){if(a 0)){if(a/=m,m<0){if(a 0){if(a>h)return;a>p&&(p=a)}if(a=r-c,m||!(a<0)){if(a/=m,m<0){if(a>h)return;a>p&&(p=a)}else if(m>0){if(a 0&&(i.a={x:s+p*d,y:c+p*m}),h<1&&(i.b={x:s+h*d,y:c+h*m}),i}}}}}}function Zn(t,n,e,r){function i(r,i){return Oo(r[0]-t) 1?t.join("L"):t+"Z"}function Sa(t){return t.join("L")+"Z"}function za(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n =f[0]&&u<=f[1]&&(o=s[po.bisect(l,u,1,h)-1],o.y+=d,o.push(t[a]));return s}var n=!0,e=Number,r=Si,i=Mi;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=Nt(n),t):r},t.bins=function(n){return arguments.length?(i="number"==typeof n?function(t){return Oi(t,n)}:Nt(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},po.layout.pack=function(){function t(t,a){var o=e.call(this,t,a),u=o[0],s=i[0],c=i[1],f=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(u.x=u.y=0,li(u,function(t){t.r=+f(t.value)}),li(u,Ni),r){var l=r*(n?1:Math.max(2*u.r/s,2*u.r/c))/2;li(u,function(t){t.r+=l}),li(u,Ni),li(u,function(t){t.r-=l})}return Ci(u,s/2,c/2,n?1:1/Math.max(2*u.r/s,2*u.r/c)),o}var n,e=po.layout.hierarchy().sort(zi),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},t.radius=function(e){return arguments.length?(n=null==e||"function"==typeof e?e:+e,t):n},t.padding=function(n){return arguments.length?(r=+n,t):r},ci(t,e)},po.layout.tree=function(){function t(t,i){var f=o.call(this,t,i),l=f[0],p=n(l);if(li(p,e),p.parent.m=-p.z,fi(p,r),c)fi(l,a);else{var h=l,d=l,m=l;fi(l,function(t){t.xr){if("string"!=typeof t){2>r&&(n=!1);for(e in t)this.each(G(e,t[e],n));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(G(t,n,e))};var Uo=po.map({mouseenter:"mouseover",mouseleave:"mouseout"});go&&Uo.forEach(function(t){"on"+t in go&&Uo.remove(t)});var qo,Xo=0;po.mouse=function(t){return nt(t,A())};var Po=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;po.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=A().changedTouches),n)for(var r,i=0,a=n.length;a>i;++i)if((r=n[i]).identifier===e)return nt(t,r)},po.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function n(t,n,i,a,o){return function(){function u(){var t,e,r=n(p,m);r&&(t=r[0]-b[0],e=r[1]-b[1],d|=t|e,b=r,h({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:e}))}function s(){n(p,m)&&(v.on(a+g,null).on(o+g,null),y(d),h({type:"dragend"}))}var c,f=this,l=po.event.target.correspondingElement||po.event.target,p=f.parentNode,h=e.of(f,arguments),d=0,m=t(),g=".drag"+(null==m?"":"-"+m),v=po.select(i(l)).on(a+g,u).on(o+g,s),y=tt(l),b=n(p,m);r?(c=r.apply(f,arguments),c=[c.x-b[0],c.y-b[1]]):c=[0,0],h({type:"dragstart"})}}var e=N(t,"drag","dragstart","dragend"),r=null,i=n(z,po.mouse,o,"mousemove","mouseup"),a=n(et,po.touch,_,"touchmove","touchend");return t.origin=function(n){return arguments.length?(r=n,t):r},po.rebind(t,e,"on")},po.touches=function(t,n){return arguments.length<2&&(n=A().touches),n?mo(n).map(function(n){var e=nt(t,n);return e.identifier=n.identifier,e}):[]};var Yo=1e-6,Bo=Yo*Yo,Fo=Math.PI,Ho=2*Fo,$o=Ho-Yo,Wo=Fo/2,Vo=Fo/180,Zo=180/Fo,Jo=Math.SQRT2,Go=2,Ko=4;po.interpolateZoom=function(t,n){var e,r,i=t[0],a=t[1],o=t[2],u=n[0],s=n[1],c=n[2],f=u-i,l=s-a,p=f*f+l*l;if(Bo>p)r=Math.log(c/o)/Jo,e=function(t){return[i+t*f,a+t*l,o*Math.exp(Jo*t*r)]};else{var h=Math.sqrt(p),d=(c*c-o*o+Ko*p)/(2*o*Go*h),m=(c*c-o*o-Ko*p)/(2*c*Go*h),g=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(m*m+1)-m);r=(v-g)/Jo,e=function(t){var n=t*r,e=st(g),u=o/(Go*h)*(e*ct(Jo*n+g)-ut(g));return[i+u*f,a+u*l,o*e/st(Jo*n+g)]}}return e.duration=1e3*r,e},po.behavior.zoom=function(){function t(t){t.on(A,l).on(tu+".zoom",h).on("dblclick.zoom",d).on(C,p)}function n(t){return[(t[0]-M.x)/M.k,(t[1]-M.y)/M.k]}function e(t){return[t[0]*M.k+M.x,t[1]*M.k+M.y]}function r(t){M.k=Math.max(z[0],Math.min(z[1],t))}function i(t,n){n=e(n),M.x+=t[0]-n[0],M.y+=t[1]-n[1]}function a(n,e,a,o){n.__chart__={x:M.x,y:M.y,k:M.k},r(Math.pow(2,o)),i(g=e,a),n=po.select(n),S>0&&(n=n.transition().duration(S)),n.call(t.event)}function u(){k&&k.domain(w.range().map(function(t){return(t-M.x)/M.k}).map(w.invert)),_&&_.domain(x.range().map(function(t){return(t-M.y)/M.k}).map(x.invert))}function s(t){I++||t({type:"zoomstart"})}function c(t){u(),t({type:"zoom",scale:M.k,translate:[M.x,M.y]})}function f(t){--I||(t({type:"zoomend"}),g=null)}function l(){function t(){u=1,i(po.mouse(r),p),c(a)}function e(){l.on(L,null).on(R,null),h(u),f(a)}var r=this,a=j.of(r,arguments),u=0,l=po.select(o(r)).on(L,t).on(R,e),p=n(po.mouse(r)),h=tt(r);Ws.call(r),s(a)}function p(){function t(){var t=po.touches(d);return h=M.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=n(t))}),t}function e(){var n=po.event.target;po.select(n).on(w,o).on(k,u),x.push(n);for(var e=po.event.changedTouches,r=0,i=e.length;i>r;++r)g[e[r].identifier]=null;var s=t(),c=Date.now();if(1===s.length){if(500>c-b){var f=s[0];a(d,f,g[f.identifier],Math.floor(Math.log(M.k)/Math.LN2)+1),E()}b=c}else if(s.length>1){var f=s[0],l=s[1],p=f[0]-l[0],h=f[1]-l[1];v=p*p+h*h}}function o(){var t,n,e,a,o=po.touches(d);Ws.call(d);for(var u=0,s=o.length;s>u;++u,a=null)if(e=o[u],a=g[e.identifier]){if(n)break;t=e,n=a}if(a){var f=(f=e[0]-t[0])*f+(f=e[1]-t[1])*f,l=v&&Math.sqrt(f/v);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+a[0])/2,(n[1]+a[1])/2],r(l*h)}b=null,i(t,n),c(m)}function u(){if(po.event.touches.length){for(var n=po.event.changedTouches,e=0,r=n.length;r>e;++e)delete g[n[e].identifier];for(var i in g)return void t()}po.selectAll(x).on(y,null),_.on(A,l).on(C,p),O(),f(m)}var h,d=this,m=j.of(d,arguments),g={},v=0,y=".zoom-"+po.event.changedTouches[0].identifier,w="touchmove"+y,k="touchend"+y,x=[],_=po.select(d),O=tt(d);e(),s(m),_.on(A,null).on(C,e)}function h(){var t=j.of(this,arguments);y?clearTimeout(y):(Ws.call(this),m=n(g=v||po.mouse(this)),s(t)),y=setTimeout(function(){y=null,f(t)},50),E(),r(Math.pow(2,.002*Qo())*M.k),i(g,m),c(t)}function d(){var t=po.mouse(this),e=Math.log(M.k)/Math.LN2;a(this,t,n(t),po.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var m,g,v,y,b,w,k,x,_,M={x:0,y:0,k:1},O=[960,500],z=nu,S=250,I=0,A="mousedown.zoom",L="mousemove.zoom",R="mouseup.zoom",C="touchstart.zoom",j=N(t,"zoomstart","zoom","zoomend");return tu||(tu="onwheel"in go?(Qo=function(){return-po.event.deltaY*(po.event.deltaMode?120:1)},"wheel"):"onmousewheel"in go?(Qo=function(){return po.event.wheelDelta},"mousewheel"):(Qo=function(){return-po.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=j.of(this,arguments),n=M;Hs?po.select(this).transition().each("start.zoom",function(){M=this.__chart__||{x:0,y:0,k:1},s(t)}).tween("zoom:zoom",function(){var e=O[0],r=O[1],i=g?g[0]:e/2,a=g?g[1]:r/2,o=po.interpolateZoom([(i-M.x)/M.k,(a-M.y)/M.k,e/M.k],[(i-n.x)/n.k,(a-n.y)/n.k,e/n.k]);return function(n){var r=o(n),u=e/r[2];this.__chart__=M={x:i-r[0]*u,y:a-r[1]*u,k:u},c(t)}}).each("interrupt.zoom",function(){f(t)}).each("end.zoom",function(){f(t)}):(this.__chart__=M,s(t),c(t),f(t))})},t.translate=function(n){return arguments.length?(M={x:+n[0],y:+n[1],k:M.k},u(),t):[M.x,M.y]},t.scale=function(n){return arguments.length?(M={x:M.x,y:M.y,k:null},r(+n),u(),t):M.k},t.scaleExtent=function(n){return arguments.length?(z=null==n?nu:[+n[0],+n[1]],t):z},t.center=function(n){return arguments.length?(v=n&&[+n[0],+n[1]],t):v},t.size=function(n){return arguments.length?(O=n&&[+n[0],+n[1]],t):O},t.duration=function(n){return arguments.length?(S=+n,t):S},t.x=function(n){return arguments.length?(k=n,w=n.copy(),M={x:0,y:0,k:1},t):k},t.y=function(n){return arguments.length?(_=n,x=n.copy(),M={x:0,y:0,k:1},t):_},po.rebind(t,j,"on")};var Qo,tu,nu=[0,1/0];po.color=lt,lt.prototype.toString=function(){return this.rgb()+""},po.hsl=pt;var eu=pt.prototype=new lt;eu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new pt(this.h,this.s,this.l/t)},eu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new pt(this.h,this.s,t*this.l)},eu.rgb=function(){return ht(this.h,this.s,this.l)},po.hcl=dt;var ru=dt.prototype=new lt;ru.brighter=function(t){return new dt(this.h,this.c,Math.min(100,this.l+iu*(arguments.length?t:1)))},ru.darker=function(t){return new dt(this.h,this.c,Math.max(0,this.l-iu*(arguments.length?t:1)))},ru.rgb=function(){return mt(this.h,this.c,this.l).rgb()},po.lab=gt;var iu=18,au=.95047,ou=1,uu=1.08883,su=gt.prototype=new lt;su.brighter=function(t){return new gt(Math.min(100,this.l+iu*(arguments.length?t:1)),this.a,this.b)},su.darker=function(t){return new gt(Math.max(0,this.l-iu*(arguments.length?t:1)),this.a,this.b)},su.rgb=function(){return vt(this.l,this.a,this.b)},po.rgb=xt;var cu=xt.prototype=new lt;cu.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&i>n&&(n=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new xt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new xt(i,i,i)},cu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new xt(t*this.r,t*this.g,t*this.b)},cu.hsl=function(){return St(this.r,this.g,this.b)},cu.toString=function(){return"#"+Ot(this.r)+Ot(this.g)+Ot(this.b)};var fu=po.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});fu.forEach(function(t,n){fu.set(t,_t(n))}),po.functor=Nt,po.xhr=Lt(_),po.dsv=function(t,n){function e(t,e,a){arguments.length<3&&(a=e,e=null);var o=Rt(t,n,null==e?r:i(e),a);return o.row=function(t){return arguments.length?o.response(null==(e=t)?r:i(t)):e},o}function r(t){return e.parse(t.responseText)}function i(t){return function(n){return e.parse(n.responseText,t)}}function a(n){return n.map(o).join(t)}function o(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return e.parse=function(t,n){var r;return e.parseRows(t,function(t,e){if(r)return r(t,e-1);var i=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");r=n?function(t,e){return n(i(t),e)}:i})},e.parseRows=function(t,n){function e(){if(f>=c)return o;if(i)return i=!1,a;var n=f;if(34===t.charCodeAt(n)){for(var e=n;e++a;a++){i.push(n=[]);for(var e=this[a],u=0,s=e.length;s>u;u++)(r=e[u])&&t.call(r,r.__data__,u,a)&&n.push(r)}return to(i,this.namespace,this.id)},Vs.tween=function(t,n){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(t):V(this,null==n?function(n){n[r][e].tween.remove(t)}:function(i){i[r][e].tween.set(t,n)})},Vs.attr=function(t,n){function e(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(t){return null==t?e:(t+="",function(){var n,e=this.getAttribute(u);return e!==t&&(n=o(e,t),function(t){this.setAttribute(u,n(t))})})}function a(t){return null==t?r:(t+="",function(){var n,e=this.getAttributeNS(u.space,u.local);return e!==t&&(n=o(e,t),function(t){this.setAttributeNS(u.space,u.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var o="transform"==t?Kr:Mr,u=po.ns.qualify(t);return no(this,"attr."+t,n,u.local?a:i)},Vs.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=po.ns.qualify(t);return this.tween("attr."+t,i.local?r:e)},Vs.style=function(t,n,e){function r(){this.style.removeProperty(t)}function i(n){return null==n?r:(n+="",function(){var r,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==n&&(r=Mr(i,n),function(n){this.style.setProperty(t,r(n),e)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(n="");for(e in t)this.style(e,t[e],n);return this}e=""}return no(this,"style."+t,n,i)},Vs.styleTween=function(t,n,e){function r(r,i){var a=n.call(this,r,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(n){this.style.setProperty(t,a(n),e)}}return arguments.length<3&&(e=""),this.tween("style."+t,r)},Vs.text=function(t){return no(this,"text",t,eo)},Vs.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)})},Vs.ease=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].ease:("function"!=typeof t&&(t=po.ease.apply(po,arguments)),V(this,function(r){r[e][n].ease=t}))},Vs.delay=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].delay:V(this,"function"==typeof t?function(r,i,a){r[e][n].delay=+t.call(r,r.__data__,i,a)}:(t=+t,function(r){r[e][n].delay=t}))},Vs.duration=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].duration:V(this,"function"==typeof t?function(r,i,a){r[e][n].duration=Math.max(1,t.call(r,r.__data__,i,a))}:(t=Math.max(1,t),function(r){r[e][n].duration=t}))},Vs.each=function(t,n){var e=this.id,r=this.namespace;if(arguments.length<2){var i=$s,a=Hs;try{Hs=e,V(this,function(n,i,a){$s=n[r][e],t.call(n,n.__data__,i,a)})}finally{$s=i,Hs=a}}else V(this,function(i){var a=i[r][e];(a.event||(a.event=po.dispatch("start","end","interrupt"))).on(t,n)});return this},Vs.transition=function(){for(var t,n,e,r,i=this.id,a=++Zs,o=this.namespace,u=[],s=0,c=this.length;c>s;s++){u.push(t=[]);for(var n=this[s],f=0,l=n.length;l>f;f++)(e=n[f])&&(r=e[o][i],io(e,f,o,a,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(e)}return to(u,o,a)},po.svg.axis=function(){function t(t){t.each(function(){var t,c=po.select(this),f=this.__chart__||e,l=this.__chart__=e.copy(),p=null==s?l.ticks?l.ticks.apply(l,u):l.domain():s,h=null==n?l.tickFormat?l.tickFormat.apply(l,u):_:n,d=c.selectAll(".tick").data(p,l),m=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Yo),g=po.transition(d.exit()).style("opacity",Yo).remove(),v=po.transition(d.order()).style("opacity",1),y=Math.max(i,0)+o,b=Zi(l),w=c.selectAll(".domain").data([0]),k=(w.enter().append("path").attr("class","domain"),po.transition(w));m.append("line"),m.append("text");var x,M,O,z,S=m.select("line"),I=v.select("line"),E=d.select("text").text(h),A=m.select("text"),N=v.select("text"),L="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=ao,x="x",O="y",M="x2",z="y2",E.attr("dy",0>L?"0em":".71em").style("text-anchor","middle"),k.attr("d","M"+b[0]+","+L*a+"V0H"+b[1]+"V"+L*a)):(t=oo,x="y",O="x",M="y2",z="x2",E.attr("dy",".32em").style("text-anchor",0>L?"end":"start"),k.attr("d","M"+L*a+","+b[0]+"H0V"+b[1]+"H"+L*a)),S.attr(z,L*i),A.attr(O,L*y),I.attr(M,0).attr(z,L*i),N.attr(x,0).attr(O,L*y),l.rangeBand){var R=l,C=R.rangeBand()/2;f=l=function(t){return R(t)+C}}else f.rangeBand?f=l:g.call(t,l,f);m.call(t,f,l),v.call(t,l,l)})}var n,e=po.scale.linear(),r=Js,i=6,a=6,o=3,u=[10],s=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in Gs?n+"":Js,t):r},t.ticks=function(){return arguments.length?(u=mo(arguments),t):u},t.tickValues=function(n){return arguments.length?(s=n,t):s},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(i=+n,a=+arguments[e-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(a=+n,t):a},t.tickPadding=function(n){return arguments.length?(o=+n,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Js="bottom",Gs={top:1,right:1,bottom:1,left:1};po.svg.brush=function(){function t(a){a.each(function(){var a=po.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),o=a.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),a.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=a.selectAll(".resize").data(m,_);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Ks[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),u.style("display",t.empty()?"none":null);var s,l=po.transition(a),p=po.transition(o);c&&(s=Zi(c),p.attr("x",s[0]).attr("width",s[1]-s[0]),e(l)),f&&(s=Zi(f),p.attr("y",s[0]).attr("height",s[1]-s[0]),r(l)),n(l)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+l[+/e$/.test(t)]+","+p[+/^s/.test(t)]+")"})}function e(t){t.select(".extent").attr("x",l[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(t){t.select(".extent").attr("y",p[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function i(){function i(){32==po.event.keyCode&&(I||(b=null,N[0]-=l[1],N[1]-=p[1],I=2),E())}function m(){32==po.event.keyCode&&2==I&&(N[0]+=l[1],N[1]+=p[1],I=0,E())}function g(){var t=po.mouse(k),i=!1;w&&(t[0]+=w[0],t[1]+=w[1]),I||(po.event.altKey?(b||(b=[(l[0]+l[1])/2,(p[0]+p[1])/2]),N[0]=l[+(t[0]f?(i=r,r=f):i=f),m[0]!=r||m[1]!=i?(e?u=null:a=null,m[0]=r,m[1]=i,!0):void 0}function y(){g(),M.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),po.select("body").style("cursor",null),L.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),_({type:"brushend"})}var b,w,k=this,x=po.select(po.event.target),_=s.of(k,arguments),M=po.select(k),O=x.datum(),z=!/^(n|s)$/.test(O)&&c,S=!/^(e|w)$/.test(O)&&f,I=x.classed("extent"),A=tt(k),N=po.mouse(k),L=po.select(o(k)).on("keydown.brush",i).on("keyup.brush",m);if(po.event.changedTouches?L.on("touchmove.brush",g).on("touchend.brush",y):L.on("mousemove.brush",g).on("mouseup.brush",y),M.interrupt().selectAll("*").interrupt(),I)N[0]=l[0]-N[0],N[1]=p[0]-N[1];else if(O){var R=+/w$/.test(O),C=+/^n/.test(O);w=[l[1-R]-N[0],p[1-C]-N[1]],N[0]=l[R],N[1]=p[C]}else po.event.altKey&&(b=N.slice());M.style("pointer-events","none").selectAll(".resize").style("display",null),po.select("body").style("cursor",x.style("cursor")),_({type:"brushstart"}),g()}var a,u,s=N(t,"brushstart","brush","brushend"),c=null,f=null,l=[0,0],p=[0,0],h=!0,d=!0,m=Qs[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),n={x:l,y:p,i:a,j:u},e=this.__chart__||n;this.__chart__=n,Hs?po.select(this).transition().each("start.brush",function(){a=e.i,u=e.j,l=e.x,p=e.y,t({type:"brushstart"})}).tween("brush:brush",function(){var e=Or(l,n.x),r=Or(p,n.y);return a=u=null,function(i){l=n.x=e(i),p=n.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=n.i,u=n.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(n){return arguments.length?(c=n,m=Qs[!c<<1|!f],t):c},t.y=function(n){return arguments.length?(f=n,m=Qs[!c<<1|!f],t):f},t.clamp=function(n){return arguments.length?(c&&f?(h=!!n[0],d=!!n[1]):c?h=!!n:f&&(d=!!n),t):c&&f?[h,d]:c?h:f?d:null},t.extent=function(n){var e,r,i,o,s;return arguments.length?(c&&(e=n[0],r=n[1],f&&(e=e[0],r=r[0]),a=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(s=e,e=r,r=s),e==l[0]&&r==l[1]||(l=[e,r])),f&&(i=n[0],o=n[1],c&&(i=i[1],o=o[1]),u=[i,o],f.invert&&(i=f(i),o=f(o)),i>o&&(s=i,i=o,o=s),i==p[0]&&o==p[1]||(p=[i,o])),t):(c&&(a?(e=a[0],r=a[1]):(e=l[0],r=l[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(s=e,e=r,r=s))),f&&(u?(i=u[0],o=u[1]):(i=p[0],o=p[1],f.invert&&(i=f.invert(i),o=f.invert(o)),i>o&&(s=i,i=o,o=s))),c&&f?[[e,i],[r,o]]:c?[e,r]:f&&[i,o])},t.clear=function(){return t.empty()||(l=[0,0],p=[0,0],a=u=null),t},t.empty=function(){return!!c&&l[0]==l[1]||!!f&&p[0]==p[1]},po.rebind(t,s,"on")};var Ks={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qs=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],tc=bu.format=Ou.timeFormat,nc=tc.utc,ec=nc("%Y-%m-%dT%H:%M:%S.%LZ");tc.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?uo:ec,uo.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},uo.toString=ec.toString,bu.second=Ht(function(t){return new wu(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),bu.seconds=bu.second.range,bu.seconds.utc=bu.second.utc.range,bu.minute=Ht(function(t){return new wu(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),bu.minutes=bu.minute.range,bu.minutes.utc=bu.minute.utc.range,bu.hour=Ht(function(t){var n=t.getTimezoneOffset()/60;return new wu(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),bu.hours=bu.hour.range,bu.hours.utc=bu.hour.utc.range,bu.month=Ht(function(t){return t=bu.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),bu.months=bu.month.range,bu.months.utc=bu.month.utc.range;var rc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ic=[[bu.second,1],[bu.second,5],[bu.second,15],[bu.second,30],[bu.minute,1],[bu.minute,5],[bu.minute,15],[bu.minute,30],[bu.hour,1],[bu.hour,3],[bu.hour,6],[bu.hour,12],[bu.day,1],[bu.day,2],[bu.week,1],[bu.month,1],[bu.month,3],[bu.year,1]],ac=tc.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",jn]]),oc={range:function(t,n,e){return po.range(Math.ceil(t/e)*e,+n,e).map(co)},floor:_,ceil:_};ic.year=bu.year,bu.scale=function(){return so(po.scale.linear(),ic,ac)};var uc=ic.map(function(t){return[t[0].utc,t[1]]}),sc=nc.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",jn]]);uc.year=bu.year.utc,bu.scale.utc=function(){return so(po.scale.linear(),uc,sc)},po.text=Lt(function(t){return t.responseText}),po.json=function(t,n){return Rt(t,"application/json",fo,n)},po.html=function(t,n){return Rt(t,"text/html",lo,n)},po.xml=Lt(function(t){return t.responseXML}),this.d3=po,r=po,i="function"==typeof r?r.call(n,e,n,t):r,!(void 0!==i&&(t.exports=i))}()},function(t,n,e){"use strict";function r(t,n,e){this.fn=t,this.context=n,this.once=e||!1}function i(){}var a=Object.prototype.hasOwnProperty,o="function"!=typeof Object.create?"~":!1;i.prototype._events=void 0,i.prototype.eventNames=function(){var t,n=this._events,e=[];if(!n)return e;for(t in n)a.call(n,t)&&e.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e},i.prototype.listeners=function(t,n){var e=o?o+t:t,r=this._events&&this._events[e];if(n)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,u=new Array(a);a>i;i++)u[i]=r[i].fn;return u},i.prototype.emit=function(t,n,e,r,i,a){var u=o?o+t:t;if(!this._events||!this._events[u])return!1;var s,c,f=this._events[u],l=arguments.length;if("function"==typeof f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,n),!0;case 3:return f.fn.call(f.context,n,e),!0;case 4:return f.fn.call(f.context,n,e,r),!0;case 5:return f.fn.call(f.context,n,e,r,i),!0;case 6:return f.fn.call(f.context,n,e,r,i,a),!0}for(c=1,s=new Array(l-1);l>c;c++)s[c-1]=arguments[c];f.fn.apply(f.context,s)}else{var p,h=f.length;for(c=0;h>c;c++)switch(f[c].once&&this.removeListener(t,f[c].fn,void 0,!0),l){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,n);break;case 3:f[c].fn.call(f[c].context,n,e);break;default:if(!s)for(p=1,s=new Array(l-1);l>p;p++)s[p-1]=arguments[p];f[c].fn.apply(f[c].context,s)}}return!0},i.prototype.on=function(t,n,e){var i=new r(n,e||this),a=o?o+t:t;return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,
-this},i.prototype.once=function(t,n,e){var i=new r(n,e||this,!0),a=o?o+t:t;return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},i.prototype.removeListener=function(t,n,e,r){var i=o?o+t:t;if(!this._events||!this._events[i])return this;var a=this._events[i],u=[];if(n)if(a.fn)(a.fn!==n||r&&!a.once||e&&a.context!==e)&&u.push(a);else for(var s=0,c=a.length;c>s;s++)(a[s].fn!==n||r&&!a[s].once||e&&a[s].context!==e)&&u.push(a[s]);return u.length?this._events[i]=1===u.length?u[0]:u:delete this._events[i],this},i.prototype.removeAllListeners=function(t){return this._events?(t?delete this._events[o?o+t:t]:this._events=o?{}:Object.create(null),this):this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=o,t.exports=i},,function(t,n,e){var r=e(9);"string"==typeof r&&(r=[[t.id,r,""]]);e(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,n,e){var r=e(10);"string"==typeof r&&(r=[[t.id,r,""]]);e(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,n,e){var r=e(11);"string"==typeof r&&(r=[[t.id,r,""]]);e(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,n,e){var r=e(12);"string"==typeof r&&(r=[[t.id,r,""]]);e(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,n,e){function r(){}function i(t){var n={}.toString.call(t);switch(n){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function a(t){if(!b(t))return t;var n=[];for(var e in t)null!=t[e]&&o(n,e,t[e]);return n.join("&")}function o(t,n,e){return Array.isArray(e)?e.forEach(function(e){o(t,n,e)}):void t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}function u(t){for(var n,e,r={},i=t.split("&"),a=0,o=i.length;o>a;++a)e=i[a],n=e.split("="),r[decodeURIComponent(n[0])]=decodeURIComponent(n[1]);return r}function s(t){var n,e,r,i,a=t.split(/\r?\n/),o={};a.pop();for(var u=0,s=a.length;s>u;++u)e=a[u],n=e.indexOf(":"),r=e.slice(0,n).toLowerCase(),i=k(e.slice(n+1)),o[r]=i;return o}function c(t){return/[\/+]json\b/.test(t)}function f(t){return t.split(/ *; */).shift()}function l(t){return v(t.split(/ *; */),function(t,n){var e=n.split(/ *= */),r=e.shift(),i=e.shift();return r&&i&&(t[r]=i),t},{})}function p(t,n){n=n||{},this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=s(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function h(t,n){var e=this;this._query=this._query||[],this.method=t,this.url=n,this.header={},this._header={},this.on("end",function(){var t=null,n=null;try{n=new p(e)}catch(r){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=r,t.rawResponse=e.xhr&&e.xhr.responseText?e.xhr.responseText:null,t.statusCode=e.xhr&&e.xhr.status?e.xhr.status:null,e.callback(t)}if(e.emit("response",n),t)return e.callback(t,n);if(n.status>=200&&n.status<300)return e.callback(t,n);var i=new Error(n.statusText||"Unsuccessful HTTP response");i.original=t,i.response=n,i.status=n.status,e.callback(i,n)})}function d(t,n){var e=w("DELETE",t);return n&&e.end(n),e}var m,g=e(23),v=e(24),y=e(21),b=e(5);m="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var w=t.exports=e(22).bind(null,h);w.getXHR=function(){if(!(!m.XMLHttpRequest||m.location&&"file:"==m.location.protocol&&m.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}return!1};var k="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};w.serializeObject=a,w.parseString=u,w.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},w.serialize={"application/x-www-form-urlencoded":a,"application/json":JSON.stringify},w.parse={"application/x-www-form-urlencoded":u,"application/json":JSON.parse},p.prototype.get=function(t){return this.header[t.toLowerCase()]},p.prototype.setHeaderProperties=function(t){var n=this.header["content-type"]||"";this.type=f(n);var e=l(n);for(var r in e)this[r]=e[r]},p.prototype.parseBody=function(t){var n=w.parse[this.type];return!n&&c(this.type)&&(n=w.parse["application/json"]),n&&t&&(t.length||t instanceof Object)?n(t):null},p.prototype.setStatusProperties=function(t){1223===t&&(t=204);var n=t/100|0;this.status=this.statusCode=t,this.statusType=n,this.info=1==n,this.ok=2==n,this.clientError=4==n,this.serverError=5==n,this.error=4==n||5==n?this.toError():!1,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.notFound=404==t,this.forbidden=403==t},p.prototype.toError=function(){var t=this.req,n=t.method,e=t.url,r="cannot "+n+" "+e+" ("+this.status+")",i=new Error(r);return i.status=this.status,i.method=n,i.url=e,i},w.Response=p,g(h.prototype);for(var x in y)h.prototype[x]=y[x];h.prototype.abort=function(){return this.aborted?void 0:(this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this)},h.prototype.type=function(t){return this.set("Content-Type",w.types[t]||t),this},h.prototype.responseType=function(t){return this._responseType=t,this},h.prototype.accept=function(t){return this.set("Accept",w.types[t]||t),this},h.prototype.auth=function(t,n,e){switch(e||(e={type:"basic"}),e.type){case"basic":var r=btoa(t+":"+n);this.set("Authorization","Basic "+r);break;case"auto":this.username=t,this.password=n}return this},h.prototype.query=function(t){return"string"!=typeof t&&(t=a(t)),t&&this._query.push(t),this},h.prototype.attach=function(t,n,e){return this._getFormData().append(t,n,e||n.name),this},h.prototype._getFormData=function(){return this._formData||(this._formData=new m.FormData),this._formData},h.prototype.send=function(t){var n=b(t),e=this._header["content-type"];if(n&&b(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(e||this.type("form"),e=this._header["content-type"],"application/x-www-form-urlencoded"==e?this._data=this._data?this._data+"&"+t:t:this._data=(this._data||"")+t):this._data=t;return!n||i(t)?this:(e||this.type("json"),this)},p.prototype.parse=function(t){return m.console&&console.warn("Client-side parse() method has been renamed to serialize(). This method is not compatible with superagent v2.0"),this.serialize(t),this},p.prototype.serialize=function(t){return this._parser=t,this},h.prototype.callback=function(t,n){var e=this._callback;this.clearTimeout(),e(t,n)},h.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},h.prototype.timeoutError=function(){var t=this._timeout,n=new Error("timeout of "+t+"ms exceeded");n.timeout=t,this.callback(n)},h.prototype.withCredentials=function(){return this._withCredentials=!0,this},h.prototype.end=function(t){var n=this,e=this.xhr=w.getXHR(),a=this._query.join("&"),o=this._timeout,u=this._formData||this._data;this._callback=t||r,e.onreadystatechange=function(){if(4==e.readyState){var t;try{t=e.status}catch(r){t=0}if(0==t){if(n.timedout)return n.timeoutError();if(n.aborted)return;return n.crossDomainError()}n.emit("end")}};var s=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),t.direction="download",n.emit("progress",t)};this.hasListeners("progress")&&(e.onprogress=s);try{e.upload&&this.hasListeners("progress")&&(e.upload.onprogress=s)}catch(f){}if(o&&!this._timer&&(this._timer=setTimeout(function(){n.timedout=!0,n.abort()},o)),a&&(a=w.serializeObject(a),this.url+=~this.url.indexOf("?")?"&"+a:"?"+a),this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0),this._withCredentials&&(e.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof u&&!i(u)){var l=this._header["content-type"],p=this._parser||w.serialize[l?l.split(";")[0]:""];!p&&c(l)&&(p=w.serialize["application/json"]),p&&(u=p(u))}for(var h in this.header)null!=this.header[h]&&e.setRequestHeader(h,this.header[h]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send("undefined"!=typeof u?u:null),this},w.Request=h,w.get=function(t,n,e){var r=w("GET",t);return"function"==typeof n&&(e=n,n=null),n&&r.query(n),e&&r.end(e),r},w.head=function(t,n,e){var r=w("HEAD",t);return"function"==typeof n&&(e=n,n=null),n&&r.send(n),e&&r.end(e),r},w.del=d,w["delete"]=d,w.patch=function(t,n,e){var r=w("PATCH",t);return"function"==typeof n&&(e=n,n=null),n&&r.send(n),e&&r.end(e),r},w.post=function(t,n,e){var r=w("POST",t);return"function"==typeof n&&(e=n,n=null),n&&r.send(n),e&&r.end(e),r},w.put=function(t,n,e){var r=w("PUT",t);return"function"==typeof n&&(e=n,n=null),n&&r.send(n),e&&r.end(e),r}},function(t,n,e){var r=e(5);n.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},n.parse=function(t){return this._parser=t,this},n.timeout=function(t){return this._timeout=t,this},n.then=function(t,n){return this.end(function(e,r){e?n(e):t(r)})},n.use=function(t){return t(this),this},n.get=function(t){return this._header[t.toLowerCase()]},n.getHeader=n.get,n.set=function(t,n){if(r(t)){for(var e in t)this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=n,this.header[t]=n,this},n.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},n.field=function(t,n){return this._getFormData().append(t,n),this}},function(t,n){function e(t,n,e){return"function"==typeof e?new t("GET",n).end(e):2==arguments.length?new t("GET",n):new t(n,e)}t.exports=e},function(t,n,e){function r(t){return t?i(t):void 0}function i(t){for(var n in r.prototype)t[n]=r.prototype[n];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this},r.prototype.once=function(t,n){function e(){this.off(t,e),n.apply(this,arguments)}return e.fn=n,this.on(t,e),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i-1&&t%1==0&&t
"+(n.Spec.ContainerSpec.Args?n.Spec.ContainerSpec.Args:"")+"
updated : "+i.getDate()+"/"+(i.getMonth()+1)+" "+i.getHours()+":"+i.getMinutes()+"
ID : "+n.Status.ContainerStatus.ContainerID+"
";return n.tag=o,r.children.push(n),!0}})},l=function(t){var n=t.uuid,e=t.node,r=m.uuidRegExp.exec(e),i=s(r,1),a=i[0];d["default"].find(c,function(e){var r=d["default"].findWhere(e.children,{uuid:a});if(r){var i=d["default"].findWhere(r.children,{uuid:n})||{};if(i)return Object.assign(i,t),!0}})},p=function(){var t=d["default"].cloneDeep(c);return d["default"].remove(t,function(t){var n=t.uuid,e=t.children;return"BYON"===n&&!e.length}),{root:t}},h=function(t){var n=Object.assign({},t);n.children=[],console.log(n),c.push(n)},g=function(t){d["default"].remove(c,{uuid:t.uuid})},v=function(t){var n=d["default"].findWhere(c,{uuid:t.uuid});Object.assign(n,t)},y=function(t){var n=Object.assign({},t);n.children=[],console.log(n);var e="clusterid",r=d["default"].findWhere(c,{uuid:e});r&&r.children.push(n)},b=function(t,n){t.state=n},k=function(t){x(t[0]),_(t[1]),p()},x=function(t){console.log(t);var n=c[0].children,e=!0,r=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(e=(a=u.next()).done);e=!0){var s=a.value;if(o(n,s.ID)){var f=!0,l=!1,p=void 0;try{for(var h,d=n[Symbol.iterator]();!(f=(h=d.next()).done);f=!0){var m=h.value;s.ID==m.ID&&(name=s.Description.Hostname,name.length>0&&(m.Description.Hostname=name,m.name=name+"
"+object.Spec.Role+"
"+(object.Description.Resources.MemoryBytes/1e8).toFixed(0)+"G free"),b(m,s.state))}}catch(g){l=!0,p=g}finally{try{!f&&d["return"]&&d["return"]()}finally{if(l)throw p}}}else b(s,"ready"),y(s)}}catch(g){r=!0,i=g}finally{try{!e&&u["return"]&&u["return"]()}finally{if(r)throw i}}var v=!0,w=!1,k=void 0;try{for(var x,_=n[Symbol.iterator]();!(v=(x=_.next()).done);v=!0){var s=x.value;o(t,s.ID)||b(s,"down")}}catch(g){w=!0,k=g}finally{try{!v&&_["return"]&&_["return"]()}finally{if(w)throw k}}},_=function(t){var n=c[0].children,e=!0,r=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(e=(a=u.next()).done);e=!0)for(var s=a.value,l=s.NodeID,p=0,h=n.length;p
"+(r.Description.Resources.MemoryBytes/1e9).toFixed(0)+"G free",n.push(r)}return n.sort(function(t,n){return t.Description.Hostname>n.Description.Hostname?1:t.Description.Hostname0&&(t=t.slice(0,u));var c=Uo.get(t);return c&&(t=c,s=Q),u?n?i:r:n?S:a}function K(t,n){return function(e){var r=po.event;po.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{po.event=r}}}function Q(t,n){var e=K(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function tt(t){var n=".dragsuppress-"+ ++Xo,e="click"+n,r=po.select(o(t)).on("touchmove"+n,E).on("dragstart"+n,E).on("selectstart"+n,E);if(null==qo&&(qo=!("onselectstart"in t)&&O(t.style,"userSelect")),qo){var i=a(t).style,u=i[qo];i[qo]="none"}return function(t){if(r.on(n,null),qo&&(i[qo]=u),t){var a=function(){r.on(e,null)};r.on(e,function(){E(),a()},!0),setTimeout(a,0)}}}function nt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(Po<0){var i=o(t);if(i.scrollX||i.scrollY){e=po.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=e[0][0].getScreenCTM();Po=!(a.f||a.e),e.remove()}}return Po?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var u=t.getBoundingClientRect();return[n.clientX-u.left-t.clientLeft,n.clientY-u.top-t.clientTop]}function et(){return po.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function it(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function at(t){return t>1?0:t<-1?Fo:Math.acos(t)}function ot(t){return t>1?Wo:t<-1?-Wo:Math.asin(t)}function ut(t){return((t=Math.exp(t))-1/t)/2}function st(t){return((t=Math.exp(t))+1/t)/2}function ct(t){return((t=Math.exp(2*t))-1)/(t+1)}function ft(t){return(t=Math.sin(t/2))*t}function lt(){}function pt(t,n,e){return this instanceof pt?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof pt?new pt(t.h,t.s,t.l):St(""+t,zt,pt):new pt(t,n,e)}function ht(t,n,e){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?a+(o-a)*t/60:t<180?o:t<240?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:n<0?0:n>1?1:n,e=e<0?0:e>1?1:e,o=e<=.5?e*(1+n):e+n-e*n,a=2*e-o,new xt(i(t+120),i(t),i(t-120))}function dt(t,n,e){return this instanceof dt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof dt?new dt(t.h,t.c,t.l):t instanceof gt?yt(t.l,t.a,t.b):yt((t=It((t=po.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new dt(t,n,e)}function mt(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new gt(e,Math.cos(t*=Vo)*n,Math.sin(t)*n)}function gt(t,n,e){return this instanceof gt?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof gt?new gt(t.l,t.a,t.b):t instanceof dt?mt(t.h,t.c,t.l):It((t=xt(t)).r,t.g,t.b):new gt(t,n,e)}function vt(t,n,e){var r=(t+16)/116,i=r+n/500,a=r-e/200;return i=bt(i)*au,r=bt(r)*ou,a=bt(a)*uu,new xt(kt(3.2404542*i-1.5371385*r-.4985314*a),kt(-.969266*i+1.8760108*r+.041556*a),kt(.0556434*i-.2040259*r+1.0572252*a))}function yt(t,n,e){return t>0?new dt(Math.atan2(e,n)*Zo,Math.sqrt(n*n+e*e),t):new dt(NaN,NaN,t)}function bt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function wt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function kt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function xt(t,n,e){return this instanceof xt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof xt?new xt(t.r,t.g,t.b):St(""+t,xt,ht):new xt(t,n,e)}function _t(t){return new xt(t>>16,t>>8&255,255&t)}function Mt(t){return _t(t)+""}function Ot(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function St(t,n,e){var r,i,a,o=0,u=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(At(i[0]),At(i[1]),At(i[2]))}return(a=fu.get(t))?n(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o=o>>4|o,u=240&a,u=u>>4|u,s=15&a,s=s<<4|s):7===t.length&&(o=(16711680&a)>>16,u=(65280&a)>>8,s=255&a)),n(o,u,s))}function zt(t,n,e){var r,i,a=Math.min(t/=255,n/=255,e/=255),o=Math.max(t,n,e),u=o-a,s=(o+a)/2;return u?(i=s<.5?u/(o+a):u/(2-o-a),r=t==o?(n-e)/u+(nYo||Oo(i-e)>Yo)&&(u.splice(o,0,new or(ir(a.site,f,Oo(r-l)1)if(p>d){if(a){if(a.y>=c)return}else a={x:(s-i)/r,y:s};e={x:(c-i)/r,y:c}}else{if(a){if(a.y=u)return}else a={x:o,y:r*o+i};e={x:u,y:r*u+i}}else{if(a){if(a.x=c)return o;if(i)return i=!1,a;var n=f;if(34===t.charCodeAt(n)){for(var e=n;e++