concourse/web/public/1.bundle.js

1 line
167 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,function(n,t,e){"use strict";e.r(t);e(2);function r(){this._nodes={},this._edges=[]}function i(){this.spaces=[]}function o(n){this.index=n,this.nodes=[],this.ordering=new i}function u(n){this.id=n.id,this.name=n.name,this.icon=n.icon,this.class=n.class,this.status=n.status,this.repeatable=n.repeatable,this.key=n.key,this.url=n.url,this.svg=n.svg,this.equivalentBy=n.equivalentBy,this.label=void 0,this._edgeTargets={},this._edgeSources={},this._edgeKeys=[],this._inEdges=[],this._outEdges=[],this._cachedRank=-1,this._cachedWidth=0,this._keyOffset=0,this._position={x:0,y:0}}function a(n,t,e,r){this.source=n,this.target=t,this.key=e,this.customData=r}function c(n,t){this.node=n,this.key=t}function s(n,t){this.node=n,this.key=t}function l(n,t){var e=n.length-t.length;return 0!=e?e:n.localeCompare(t)}function f(n){for(var t in n)return!1;return!0}function h(n){return function(n){if(Array.isArray(n)){for(var t=0,e=new Array(n.length);t<n.length;t++)e[t]=n[t];return e}}(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.prototype.setNode=function(n,t){this._nodes[n]=t},r.prototype.removeNode=function(n){var t=this._nodes[n];for(var e in t._inEdges){var r=(u=t._inEdges[e]).source.node,i=r._outEdges.indexOf(u);r._outEdges.splice(i,1);var o=this._edges.indexOf(u);this._edges.splice(o,1)}for(var e in t._outEdges){var u,a=(u=t._outEdges[e]).target.node;i=a._inEdges.indexOf(u);a._inEdges.splice(i,1);o=this._edges.indexOf(u);this._edges.splice(o,1)}delete this._nodes[n]},r.prototype.addEdge=function(n,t,e,r){var i=this._nodes[n];if(void 0===i)throw"source node does not exist: "+n;var o=this._nodes[t];if(void 0===o)throw"target node does not exist: "+t;for(var u in o._inEdges)if(o._inEdges[u].source.node.id==i.id)return;-1==i._edgeKeys.indexOf(e)&&i._edgeKeys.push(e),-1==o._edgeKeys.indexOf(e)&&o._edgeKeys.push(e);var l=i._edgeSources[e];l||(l=new c(i,e),i._edgeSources[e]=l);var f=o._edgeTargets[e];f||(f=new s(o,e),o._edgeTargets[e]=f);var h=new a(l,f,e,r);o._inEdges.push(h),i._outEdges.push(h),this._edges.push(h)},r.prototype.removeEdge=function(n){var t=n.target.node._inEdges.indexOf(n);n.target.node._inEdges.splice(t,1);var e=n.source.node._outEdges.indexOf(n);n.source.node._outEdges.splice(e,1);var r=this._edges.indexOf(n);this._edges.splice(r,1)},r.prototype.node=function(n){return this._nodes[n]},r.prototype.nodes=function(){var n=[];for(var t in this._nodes)n.push(this._nodes[t]);return n},r.prototype.edges=function(){return this._edges},r.prototype.layout=function(){var n=[];for(var t in this._nodes){var e=(r=this._nodes[t]).rank();(i=n[e])||(i=new o(e),n[e]=i),i.nodes.push(r)}for(var t in this._nodes){var r,i=(r=this._nodes[t]).rank(),u=0;for(var a in n)a<i&&(u+=n[a].width()+50);r._position.x=u+(n[i].width()-r.width())/2,r._edgeKeys.sort((function(n,t){var e=r._edgeTargets[n],i=r._edgeTargets[t];if(e&&!i)return-1;if(!e&&i)return 1;if(e&&i){var o=e.rankOfFirstAppearance(),u=i.rankOfFirstAppearance();if(o<u)return-1;if(o>u)return 1}var a=r._edgeSources[n],c=r._edgeSources[t];return a&&!c?-1:!a&&c?1:l(n,t)}))}for(var c=0;c<2;c++)for(var a in n)n[a].sortNodes(),n[a].layout();if("#untug"!=window.location.hash)for(var s=!0;s;)for(var a in s=!1,n)n[a].tug()&&(s=!0)},r.prototype.computeRanks=function(){var n={};for(var t in this._nodes){0==(i=this._nodes[t])._inEdges.length&&(i._cachedRank=0,n[i.id]=i)}for(var e={};!f(n);){var r={};for(var t in n){var i=n[t];for(var o in 0==i._outEdges.length&&(e[i.id]=i),i._outEdges){var u=i._outEdges[o].target.node;if(u._cachedRank=Math.max(u._cachedRank,i._cachedRank+1),u._cachedRank>1e4)throw new Error("Likely infinite loop involving: ["+i.id+"] and ["+u.id+"]");r[u.id]=u}}n=r}for(var a=e;!f(a);){var c={};for(var t in a){i=a[t];for(var o in i._inEdges){var s=i._inEdges[o].source.node,l=s.latestPossibleRank();void 0!==l&&(s._cachedRank=l),c[s.id]=s}}a=c}},r.prototype.collapseEquivalentNodes=function(){var n=[];for(var t in this._nodes){var e=this._nodes[t],r=n[e.rank()];void 0===r&&(r={},n[e.rank()]=r),void 0!==e.equivalentBy&&(void 0===(o=r[e.equivalentBy])&&(o=[],r[e.equivalentBy]=o),o.push(e))}for(var i in n){var o=n[i];for(var u in o){var a=o[u];if(1!=a.length)for(var c=a[0],s=1;s<a.length;s++){var l=a[s];for(var f in l._inEdges){var h=l._inEdges[f];this.addEdge(h.source.node.id,c.id,h.key,h.customData)}for(var p in l._outEdges){h=l._outEdges[p];this.addEdge(c.id,h.target.node.id,h.key,h.customData)}this.removeNode(l.id)}}}},r.prototype.addSpacingNodes=function(){var n=[];for(var t in this._edges){var e=this._edges[t],r=e.target.node.rank()-e.source.node.rank();if(r>1){var i,o,u,a=e.source.node,c=e.target.node;e.source.node.repeatable?(i=a,o=null,u=e.customData):(i=c,o=e.customData,u=null);for(var s=0;s<r-1;s++){var l=e.id()+"-spacing-"+s,f=this.node(l);f||((f=i.copy()).id=l,f._cachedRank=a.rank()+1,this.setNode(f.id,f));var h=0==s?o:null;this.addEdge(a.id,f.id,e.key,h),a=f}this.addEdge(a.id,e.target.node.id,e.key,u),n.push(e)}}for(var t in n)this.removeEdge(n[t])},i.prototype.fill=function(n,t){for(var e=n;e<n+t;e++)this.spaces[e]=!0},i.prototype.free=function(n,t){for(var e=n;e<n+t;e++)this.spaces[e]=!1},i.prototype.isFree=function(n,t){for(var e=n;e<n+t;e++)if(this.spaces[e])return!1;return!0},o.prototype.sortNodes=function(){var n=this.nodes,t=this.nodes.slice();n.sort((function(n,t){var e;if(n._inEdges.length&&t._inEdges.length&&0!=(e=n.highestUpstreamSource()-t.highestUpstreamSource()))return e;if(n._outEdges.length&&t._outEdges.length&&0!=(e=n.highestDownstreamTarget()-t.highestDownstreamTarget()))return e;if(n._inEdges.length&&t._outEdges.length&&0!=(e=n.highestUpstreamSource()-t.highestDownstreamTarget()))return e;if(n._outEdges.length&&t._inEdges.length&&0!=(e=n.highestDownstreamTarget()-t.highestUpstreamSource()))return e;var r=n.passedThroughAnyPreviousNode(),i=t.passedThroughAnyPreviousNode();if(r&&!i)return-1;var o=n.passesThroughAnyNextNode(),u=t.passesThroughAnyNextNode();if(o&&!u)return-1;var a=t._outEdges.length-n._outEdges.length;return 0!=a?a:!o&&u?1:(n.debugMarked=!0,t.debugMarked=!0,l(n.name,t.name))}));var e=!1;for(var r in n)n[r]!==t[r]&&(e=!0);return e},o.prototype.mark=function(){for(var n in this.nodes)this.nodes[n].rankGroupMarked=!0},o.prototype.width=function(){var n=0;for(var t in this.nodes)n=Math.max(n,this.nodes[t].width());return n},o.prototype.layout=function(){var n=0;for(var t in this.ordering=new i,this.nodes){var e=this.nodes[t];e._keyOffset=n,this.ordering.fill(n,e._edgeKeys.length),n+=Math.max(e._edgeKeys.length,1)}},o.prototype.tug=function(){for(var n=!1,t=this.nodes.length-1;t>=0;t--){var e=this.nodes[t],r=e.inAlignment();void 0!==r&&e._keyOffset<r&&this.ordering.isFree(r,e._edgeKeys.length)?(this.ordering.free(e._keyOffset,e._edgeKeys.length),e._keyOffset=r,this.ordering.fill(e._keyOffset,e._edgeKeys.length),n=!0):void 0!==(r=e.outAlignment())&&e._keyOffset<r&&this.ordering.isFree(r,e._edgeKeys.length)&&(this.ordering.free(e._keyOffset,e._edgeKeys.length),e._keyOffset=r,this.ordering.fill(e._keyOffset,e._edgeKeys.length),n=!0)}return this.nodes.sort((function(n,t){return n._keyOffset-t._keyOffset})),n},u.prototype.copy=function(){return new u({id:this.id,name:this.name,class:this.class,status:this.status,repeatable:this.repeatable,key:this.key,url:this.url,svg:this.svg,equivalentBy:this.equivalentBy})},u.prototype.width=function(){if(0==this._cachedWidth){var n=this.id,t=this.svg.selectAll("g.node").filter((function(t){return t.id==n})),e=t.select("text").node(),r=t.select("image").node(),i=t.select("use").node(),o=0;if(e&&(o+=e.getBBox().width),r&&(o+=r.getBBox().width),i&&(o+=Math.max(i.getBBox().width,i.width.baseVal.value)),e&&r&&i&&(o+=10),(e&&r&&!i||e&&!r&&i||!e&&r&&i)&&(o+=5),0==o)return 0;this._cachedWidth=o}return this._cachedWidth+10},u.prototype.padding=function(){return 5},u.prototype.pinned=function(){return this.class.includes("pinned")},u.prototype.has_icon=function(){return void 0!==this.icon},u.prototype.height=function(){var n=Math.max(this._edgeKeys.length,1);return 20*n+10*(n-1)},u.prototype.position=function(){return{x:this._position.x,y:30*this._keyOffset}},u.prototype.animationRadius=function(){return this.class.search("job")>-1?70:0},u.prototype.rank=function(){return this._cachedRank},u.prototype.latestPossibleRank=function(){var n;for(var t in this._outEdges){var e=this._outEdges[t].target.node.rank()-1;n=void 0===n?e:Math.min(n,e)}return n},u.prototype.dependsOn=function(n,t){for(var e in this._inEdges){var r=this._inEdges[e].source.node;if(r==n)return!0;if(-1==t.indexOf(this)&&(t.push(this),r.dependsOn(n,t)))return!0}return!1},u.prototype.highestUpstreamSource=function(){var n,t;for(var e in this._inEdges)t=this._inEdges[e].source.effectiveKeyOffset(),(void 0===n||t<n)&&(n=t);return n},u.prototype.highestDownstreamTarget=function(){var n,t;for(var e in this._outEdges)t=this._outEdges[e].target.effectiveKeyOffset(),(void 0===n||t<n)&&(n=t);return n},u.prototype.inAlignment=function(){var n;for(var t in this._inEdges){var e=this._inEdges[t],r=e.source.effectiveKeyOffset();(void 0===n||r<n)&&(n=r-this._edgeKeys.indexOf(e.key))}return n},u.prototype.outAlignment=function(){var n;for(var t in this._outEdges){var e=this._outEdges[t],r=e.target.effectiveKeyOffset();(void 0===n||r<n)&&(n=r-this._edgeKeys.indexOf(e.key))}return n},u.prototype.passedThroughAnyPreviousNode=function(){for(var n in this._inEdges){var t=this._inEdges[n];if(t.key in t.source.node._edgeTargets)return!0}return!1},u.prototype.passesThroughAnyNextNode=function(){for(var n in this._outEdges){var t=this._outEdges[n];if(t.key in t.target.node._edgeSources)return!0}return!1},a.prototype.id=function(){return this.source.id()+"-to-"+this.target.id()},a.prototype.bezierPoints=function(){var n,t,e=this.source.position(),r=this.target.position();if(e.x>r.x){var i=this.source.node.position().y+this.source.node.height(),o=this.target.node.position().y+this.target.node.height();n={x:e.x+100,y:i+100},t={x:r.x-100,y:o+100}}else{var u=d3.interpolateNumber(e.x,r.x);n={x:u(.5),y:e.y},t={x:u(.5),y:r.y}}return[e,n,t,r]},a.prototype.path=function(){var n=this.bezierPoints();return"M"+n[0].x+","+n[0].y+" C"+n[1].x+","+n[1].y+" "+n[2].x+","+n[2].y+" "+n[3].x+","+n[3].y},c.prototype.width=function(){return 0},c.prototype.height=function(){return 0},c.prototype.effectiveKeyOffset=function(){return this.node._keyOffset+this.node._edgeKeys.indexOf(this.key)},c.prototype.id=function(){return this.node.id+"-"+this.key+"-source"},c.prototype.position=function(){return{x:this.node.position().x+this.node.width(),y:10+30*this.effectiveKeyOffset()}},s.prototype.width=function(){return 0},s.prototype.height=function(){return 0},s.prototype.effectiveKeyOffset=function(){return this.node._keyOffset+this.node._edgeKeys.indexOf(this.key)},s.prototype.rankOfFirstAppearance=function(){if(void 0!==this._rankOfFirstAppearance)return this._rankOfFirstAppearance;var n=this.node._inEdges,t=1/0;for(var e in n){var r=n[e];if(r.source.key==this.key){var i=r.source.node._inEdges;if(0==i.length){t=r.source.node.rank();break}var o=!1;for(var u in i){var a=i[u];if(a.target.key==this.key){o=!0;var c=a.target.rankOfFirstAppearance();c<t&&(t=c)}}if(!o){t=r.source.node.rank();break}}}return this._rankOfFirstAppearance=t,t},s.prototype.id=function(){return this.node.id+"-"+this.key+"-target"},s.prototype.position=function(){return{x:this.node.position().x,y:10+30*this.effectiveKeyOffset()}},e.d(t,"renderPipeline",(function(){return g})),e.d(t,"resetPipelineFocus",(function(){return M}));var p,d=e.e(2).then(e.bind(null,3));function g(n,t,e){var i=function(n){var t=d3.select("g.test");t.empty()&&(n.append("defs").append("filter").attr("id","embiggen").append("feMorphology").attr("operator","dilate").attr("radius","4"),t=n.append("g").attr("class","test"),n.on("mousedown",(function(){var n=d3.event;(n.button||n.ctrlKey)&&n.stopImmediatePropagation()})).call(m().scaleExtent([.5,10]).on("zoom",(function(){var n=d3.event;x?(x=!1,M()):t.attr("transform","translate("+n.translate+") scale("+n.scale+")")}))));return t}(d3.select(".pipeline-graph"));null!=i.node()&&function(n,t,e,i){(function(n,t,e,i){return function(){d3.select(n.node().parentNode).attr("viewBox","0 0 0 0");var o=function(n,t,e){var i=new r,o={},a={},c={},s={};for(var l in e){var f=e[l];o[f.name]="/teams/"+f.team_name+"/pipelines/"+f.pipeline_name+"/resources/"+encodeURIComponent(f.name),a[f.name]=f.failing_to_check,c[f.name]=f.pinned_version,s[f.name]=f.icon}for(var l in t){var h=b((q=t[l]).name),p=["job"],d="/teams/"+q.team_name+"/pipelines/"+q.pipeline_name+"/jobs/"+encodeURIComponent(q.name);if(q.next_build){var g=q.next_build;d="/teams/"+g.team_name+"/pipelines/"+g.pipeline_name+"/jobs/"+encodeURIComponent(g.job_name)+"/builds/"+g.name}else if(q.finished_build){g=q.finished_build;d="/teams/"+g.team_name+"/pipelines/"+g.pipeline_name+"/jobs/"+encodeURIComponent(g.job_name)+"/builds/"+g.name}z=q.paused?"paused":q.finished_build?q.finished_build.status:"no-builds",p.push(z),q.next_build&&p.push(q.next_build.status),i.setNode(h,new u({id:h,name:q.name,class:p.join(" "),status:z,url:d,svg:n}))}var v=function(n){var t="";return a[n]&&(t+=" failing"),c[n]&&(t+=" pinned"),t};for(var l in t){h=b((q=t[l]).name);for(var y in q.outputs){var m=q.outputs[y],x=w(q.name,m.resource),M=i.node(x);M||(_(s[m.resource],x),M=new u({id:x,name:m.resource,icon:s[m.resource],key:m.resource,class:"output"+v(m.resource),repeatable:!0,url:o[m.resource],svg:n}),i.setNode(x,M)),i.addEdge(h,x,m.resource,null)}}for(var l in t){h=b((q=t[l]).name);for(var y in q.inputs){if((T=q.inputs[y]).passed&&T.passed.length>0)for(var E in T.passed){var S,N=b(T.passed[E]),A=w(T.passed[E],T.resource),C=k(T.passed[E],T.resource);i.node(A)?S=A:(i.node(C)||(_(s[T.resource],C),i.setNode(C,new u({id:C,name:T.resource,icon:s[T.resource],key:T.resource,class:"constrained-input"+(c[T.resource]?" pinned":""),repeatable:!0,url:o[T.resource],svg:n}))),i.node(N)&&i.addEdge(N,C,T.resource,null),S=C),i.addEdge(S,h,T.resource,{trigger:T.trigger})}}}for(var l in t){var q;h=b((q=t[l]).name),i.node(h);for(var y in q.inputs){var T=q.inputs[y],z="";if(!T.passed||0==T.passed.length){var L=k(q.name,T.resource+"-unconstrained");i.node(L)||(_(s[T.resource],L),i.setNode(L,new u({id:L,name:T.resource,icon:s[T.resource],key:T.resource,class:"input"+v(T.resource),status:z,repeatable:!0,url:o[T.resource],svg:n,equivalentBy:T.resource+"-unconstrained"}))),i.addEdge(L,h,T.resource,{trigger:T.trigger})}}}return i.computeRanks(),i.collapseEquivalentNodes(),i.addSpacingNodes(),i}(n,t,e);n.selectAll("g.edge").remove(),n.selectAll("g.node").remove();var a=n.selectAll("g.edge").data(o.edges());a.exit().remove();var c=n.selectAll("g.node").data(o.nodes());c.exit().remove();var s=a.enter().append("g").attr("class",(function(n){return"edge "+n.source.node.status}));function l(n){n.key&&(p=n.key,a.each((function(t){t.source.key==n.key&&d3.select(this).classed({active:!0})})),c.each((function(t){t.key==n.key&&d3.select(this).classed({active:!0})})))}function f(n){n.key&&(p=void 0,a.classed({active:!1}),c.classed({active:!1}))}a.each((function(n){null!==n.customData&&!1===n.customData.trigger&&d3.select(this).classed("trigger-false",!0)}));var d=c.enter().append("g").attr("class",(function(n){return"node "+n.class})).on("mouseover",l).on("mouseout",f),g=d.append("svg:a").attr("xlink:href",(function(n){return n.url})).on("click",(function(n){var t=d3.event;t.defaultPrevented||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey||0==t.button&&(t.preventDefault(),i.send(n.url))})),y=g.append("rect").attr("height",(function(n){return n.height()})),m=g.append("foreignObject").attr("class","js-animation-wrapper").attr("height",(function(n){return n.height()+2*n.animationRadius()})).attr("x",(function(n){return-n.animationRadius()})).attr("y",(function(n){return-n.animationRadius()})),x=m.append("xhtml:div").style("padding",(function(n){return n.animationRadius()+"px"}));x.style("height",(function(n){return n.height()+"px"}));var M=x.append("xhtml:div");M.attr("class","animation"),M.style("height",(function(n){return n.height()+"px"}));g.filter((function(n){return n.pinned()})).append("image").attr("xlink:href","/public/images/pin-ic-white.svg").attr("width",6).attr("y",(function(n){return n.height()/2-4.875})).attr("x",(function(n){return n.padding()}));g.filter((function(n){return n.has_icon()})).append("use").attr("xlink:href",(function(n){return"#"+n.id+"-svg-icon"})).attr("width",12).attr("height",12).attr("fill","white").attr("y",(function(n){return n.height()/2-6})).attr("x",(function(n){return n.padding()+(n.pinned()?6+n.padding():0)})),g.append("text").text((function(n){return n.name})).attr("dominant-baseline","middle").attr("text-anchor",(function(n){return n.pinned()||n.has_icon()?"end":"middle"})).attr("x",(function(n){return n.pinned()||n.has_icon()?n.width()-n.padding():n.width()/2})).attr("y",(function(n){return n.height()/2})),y.attr("width",(function(n){return n.width()})),m.attr("width",(function(n){return n.width()+2*n.animationRadius()})),M.style("width",(function(n){return n.width()+"px"})),x.style("width",(function(n){return n.width()+"px"})),o.layout();var E=[],S=o.nodes();for(var N in S)if("failed"==S[N].status){var A=S[N].position().x+S[N].width()/2,C=!1;for(var N in E)if(Math.abs(A-E[N])<2){C=!0;break}C||E.push(A)}n.selectAll("g.fail-triangle-node").remove();for(var N in E){var q=n.append("g").attr("class","fail-triangle-node"),T=(q.append("path").attr("class","fail-triangle-outline").attr("d","M191.62,136.3778H179.7521a5,5,0,0,1-4.3309-7.4986l5.9337-10.2851a5,5,0,0,1,8.6619,0l5.9337,10.2851A5,5,0,0,1,191.62,136.3778Z").attr("transform","translate(-174.7446 -116.0927)"),q.append("path").attr("class","fail-triangle").attr("d","M191.4538,133.0821H179.9179a2,2,0,0,1-1.7324-2.9994l5.7679-9.9978a2,2,0,0,1,3.4647,0l5.7679,9.9978A2,2,0,0,1,191.4538,133.0821Z").attr("transform","translate(-174.7446 -116.0927)"),q.node().getBBox()),z=24/T.height,L=T.width*z,R=E[N]-L/2;q.attr("transform","translate("+R+", "+-44+") scale("+z+")")}g.attr("class",(function(n){var t=[];return n.debugMarked&&t.push("marked"),n.columnMarked&&t.push("column-marked"),t.join(" ")})),d.attr("transform",(function(n){var t=n.position();return"translate("+t.x+", "+t.y+")"})),s.append("path").attr("d",(function(n){return n.path()})).on("mouseover",l).on("mouseout",f);var O=n.node().getBBox();d3.select(n.node().parentNode).attr("viewBox",O.x-20+" "+(O.y-20)+" "+(O.width+40)+" "+(O.height+40));var D=h(document.querySelectorAll(".job")),j=D.map((function(n){return n.cloneNode(!0)}));j.forEach((function(n){var t=n.querySelector("foreignObject");null!=t&&v(t),n.classList.remove("job"),n.classList.add("job-animation-node"),n.querySelectorAll("a").forEach(v),null!=t&&v(t),n.appendChild(t),n.querySelectorAll("text").forEach(v)})),D.forEach((function(n){return n.querySelectorAll(".js-animation-wrapper").forEach(v)}));var P=document.querySelector("svg > g");null!=P&&P.prepend.apply(P,h(j));var U=Math.max(O.width,O.height);document.querySelectorAll(".animation").forEach((function(n){U<500?n.classList.add("animation-small"):U<1500?n.classList.add("animation-medium"):U<3e3?n.classList.add("animation-large"):n.classList.add("animation-xlarge")})),p&&(c.each((function(n){n.key==p&&l(n)})),a.each((function(n){n.key==p&&l(n)})))}})(n,t,e,i)()}(i,n,t,e)}function v(n){null!=n&&null!=n.parentNode&&n.parentNode.removeChild(n)}var y,m=function(){return y=y||d3.behavior.zoom()},x=!1;function M(){var n=d3.select("g.test");return n.empty()?x=!0:(n.attr("transform",""),m().translate([0,0]).scale(1).center(0,0)),n}function _(n,t){d.then((function(e){var r=t+"-svg-icon";if(null===document.getElementById(r)){var i=e.svg(n,r),o=document.createElement("template");o.innerHTML=i;var u=o.content.firstChild;document.getElementById("icon-store").appendChild(u)}}))}function b(n){return"job-"+n}function w(n,t){return"job-"+n+"-output-"+t}function k(n,t){return"job-"+n+"-input-"+t}},function(n,t,e){var r,i;function o(n){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}(function(){function u(n){return n&&(n.ownerDocument||n.document||n).documentElement}function a(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function c(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function s(n){return null===n?NaN:+n}function l(n){return!isNaN(n)}function f(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}function h(n){return n.length}function p(n){for(var t=1;n*t%1;)t*=10;return t}function d(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function g(){this._=Object.create(null)}function v(n){return(n+="")===bo||n[0]===wo?wo+n:n}function y(n){return(n+="")[0]===wo?n.slice(1):n}function m(n){return v(n)in this._}function x(n){return(n=v(n))in this._&&delete this._[n]}function M(){var n=[];for(var t in this._)n.push(y(t));return n}function _(){var n=0;for(var t in this._)++n;return n}function b(){for(var n in this._)return!1;return!0}function w(){this._=Object.create(null)}function k(n){return n}function E(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function S(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=ko.length;r>e;++e){var i=ko[e]+t;if(i in n)return i}}function N(){}function A(){}function C(n){function t(){for(var t,r=e,i=-1,o=r.length;++i<o;)(t=r[i].on)&&t.apply(this,arguments);return n}var e=[],r=new g;return t.on=function(t,i){var o,u=r.get(t);return arguments.length<2?u&&u.on:(u&&(u.on=null,e=e.slice(0,o=e.indexOf(u)).concat(e.slice(o+1)),r.remove(t)),i&&e.push(r.set(t,{on:i})),n)},t}function q(){lo.event.preventDefault()}function T(){for(var n,t=lo.event;n=t.sourceEvent;)t=n;return t}function z(n){for(var t=new A,e=0,r=arguments.length;++e<r;)t[arguments[e]]=C(t);return t.of=function(e,r){return function(i){try{var o=i.sourceEvent=lo.event;i.target=n,lo.event=i,t[i.type].apply(e,r)}finally{lo.event=o}}},t}function L(n){return So(n,qo),n}function R(n){return"function"==typeof n?n:function(){return No(n,this)}}function O(n){return"function"==typeof n?n:function(){return Ao(n,this)}}function D(n,t){return n=lo.ns.qualify(n),null==t?n.local?function(){this.removeAttributeNS(n.space,n.local)}:function(){this.removeAttribute(n)}:"function"==typeof t?n.local?function(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}:function(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}:n.local?function(){this.setAttributeNS(n.space,n.local,t)}:function(){this.setAttribute(n,t)}}function j(n){return n.trim().replace(/\s+/g," ")}function P(n){return new RegExp("(?:^|\\s+)"+lo.requote(n)+"(?:\\s+|$)","g")}function U(n){return(n+"").trim().split(/^|\s+/)}function F(n,t){var e=(n=U(n).map(H)).length;return"function"==typeof t?function(){for(var r=-1,i=t.apply(this,arguments);++r<e;)n[r](this,i)}:function(){for(var r=-1;++r<e;)n[r](this,t)}}function H(n){var t=P(n);return function(e,r){if(i=e.classList)return r?i.add(n):i.remove(n);var i=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||e.setAttribute("class",j(i+" "+n))):e.setAttribute("class",j(i.replace(t," ")))}}function I(n,t,e){return null==t?function(){this.style.removeProperty(n)}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}:function(){this.style.setProperty(n,t,e)}}function B(n,t){return null==t?function(){delete this[n]}:"function"==typeof t?function(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}:function(){this[n]=t}}function K(n){return"function"==typeof n?n:(n=lo.ns.qualify(n)).local?function(){return this.ownerDocument.createElementNS(n.space,n.local)}:function(){var t=this.ownerDocument,e=this.namespaceURI;return e?t.createElementNS(e,n):t.createElement(n)}}function Y(){var n=this.parentNode;n&&n.removeChild(this)}function Z(n){return{__data__:n}}function V(n){return function(){return Co(this,n)}}function X(n){return arguments.length||(n=c),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function $(n,t){for(var e=0,r=n.length;r>e;e++)for(var i,o=n[e],u=0,a=o.length;a>u;u++)(i=o[u])&&t(i,u,e);return n}function W(n){return So(n,zo),n}function J(n){var t,e;return function(r,i,o){var u,a=n[o].update,c=a.length;for(o!=e&&(e=o,t=0),i>=t&&(t=i+1);!(u=a[t])&&++t<c;);return u}}function G(n,t,e){function r(){var t=this[i];t&&(this.removeEventListener(n,t,t.$),delete this[i])}var i="__on"+n,o=n.indexOf("."),u=Q;o>0&&(n=n.slice(0,o));var a=Lo.get(n);return a&&(n=a,u=nn),o?t?function(){var o=u(t,ho(arguments));r.call(this),this.addEventListener(n,this[i]=o,o.$=e),o._=t}:r:t?N:function(){var t,e=new RegExp("^__on([^.]+)"+lo.requote(n)+"$");for(var r in this)if(t=r.match(e)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}function Q(n,t){return function(e){var r=lo.event;lo.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{lo.event=r}}}function nn(n,t){var e=Q(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function tn(n){var t=".dragsuppress-"+ ++Oo,e="click"+t,r=lo.select(a(n)).on("touchmove"+t,q).on("dragstart"+t,q).on("selectstart"+t,q);if(null==Ro&&(Ro=!("onselectstart"in n)&&S(n.style,"userSelect")),Ro){var i=u(n).style,o=i[Ro];i[Ro]="none"}return function(n){if(r.on(t,null),Ro&&(i[Ro]=o),n){var u=function(){r.on(e,null)};r.on(e,(function(){q(),u()}),!0),setTimeout(u,0)}}}function en(n,t){t.changedTouches&&(t=t.changedTouches[0]);var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>Do){var i=a(n);if(i.scrollX||i.scrollY){var o=(e=lo.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Do=!(o.f||o.e),e.remove()}}return Do?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}var u=n.getBoundingClientRect();return[t.clientX-u.left-n.clientLeft,t.clientY-u.top-n.clientTop]}function rn(){return lo.event.changedTouches[0].identifier}function on(n){return n>0?1:0>n?-1:0}function un(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function an(n){return n>1?0:-1>n?Uo:Math.acos(n)}function cn(n){return n>1?Io:-1>n?-Io:Math.asin(n)}function sn(n){return((n=Math.exp(n))+1/n)/2}function ln(n){return(n=Math.sin(n/2))*n}function fn(){}function hn(n,t,e){return this instanceof hn?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof hn?new hn(n.h,n.s,n.l):Sn(""+n,Nn,hn):new hn(n,t,e)}function pn(n,t,e){function r(n){return Math.round(255*function(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(o-i)*n/60:180>n?o:240>n?i+(o-i)*(240-n)/60:i}(n))}var i,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,i=2*(e=0>e?0:e>1?1:e)-(o=.5>=e?e*(1+t):e+t-e*t),new bn(r(n+120),r(n),r(n-120))}function dn(n,t,e){return this instanceof dn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof dn?new dn(n.h,n.c,n.l):mn(n instanceof vn?n.l:(n=An((n=lo.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new dn(n,t,e)}function gn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new vn(e,Math.cos(n*=Bo)*t,Math.sin(n)*t)}function vn(n,t,e){return this instanceof vn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof vn?new vn(n.l,n.a,n.b):n instanceof dn?gn(n.h,n.c,n.l):An((n=bn(n)).r,n.g,n.b):new vn(n,t,e)}function yn(n,t,e){var r=(n+16)/116,i=r+t/500,o=r-e/200;return new bn(_n(3.2404542*(i=xn(i)*Go)-1.5371385*(r=xn(r)*Qo)-.4985314*(o=xn(o)*nu)),_n(-.969266*i+1.8760108*r+.041556*o),_n(.0556434*i-.2040259*r+1.0572252*o))}function mn(n,t,e){return n>0?new dn(Math.atan2(e,t)*Ko,Math.sqrt(t*t+e*e),n):new dn(NaN,NaN,n)}function xn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function Mn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function _n(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function bn(n,t,e){return this instanceof bn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof bn?new bn(n.r,n.g,n.b):Sn(""+n,bn,pn):new bn(n,t,e)}function wn(n){return new bn(n>>16,n>>8&255,255&n)}function kn(n){return wn(n)+""}function En(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function Sn(n,t,e){var r,i,o,u=0,a=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(n))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 t(qn(i[0]),qn(i[1]),qn(i[2]))}return(o=ru.get(n.toLowerCase()))?t(o.r,o.g,o.b):(null==n||"#"!==n.charAt(0)||isNaN(o=parseInt(n.slice(1),16))||(4===n.length?(u=(3840&o)>>4,u|=u>>4,a=240&o,a|=a>>4,c=15&o,c|=c<<4):7===n.length&&(u=(16711680&o)>>16,a=(65280&o)>>8,c=255&o)),t(u,a,c))}function Nn(n,t,e){var r,i,o=Math.min(n/=255,t/=255,e/=255),u=Math.max(n,t,e),a=u-o,c=(u+o)/2;return a?(i=.5>c?a/(u+o):a/(2-u-o),r=n==u?(t-e)/a+(e>t?6:0):t==u?(e-n)/a+2:(n-t)/a+4,r*=60):(r=NaN,i=c>0&&1>c?0:r),new hn(r,i,c)}function An(n,t,e){var r=Mn((.4124564*(n=Cn(n))+.3575761*(t=Cn(t))+.1804375*(e=Cn(e)))/Go),i=Mn((.2126729*n+.7151522*t+.072175*e)/Qo);return vn(116*i-16,500*(r-i),200*(i-Mn((.0193339*n+.119192*t+.9503041*e)/nu)))}function Cn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function qn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function Tn(n){return"function"==typeof n?n:function(){return n}}function zn(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Ln(t,e,n,r)}}function Ln(n,t,e,r){function i(){var n,t=c.status;if(!t&&function(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}(c)||t>=200&&300>t||304===t){try{n=e.call(o,c)}catch(n){return void u.error.call(o,n)}u.load.call(o,n)}else u.error.call(o,c)}var o={},u=lo.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,s=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(n)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=i:c.onreadystatechange=function(){c.readyState>3&&i()},c.onprogress=function(n){var t=lo.event;lo.event=n;try{u.progress.call(o,c)}finally{lo.event=t}},o.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",o)},o.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",o):t},o.responseType=function(n){return arguments.length?(s=n,o):s},o.response=function(n){return e=n,o},["get","post"].forEach((function(n){o[n]=function(){return o.send.apply(o,[n].concat(ho(arguments)))}})),o.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),c.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),c.setRequestHeader)for(var l in a)c.setRequestHeader(l,a[l]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=s&&(c.responseType=s),null!=i&&o.on("error",i).on("load",(function(n){i(null,n)})),u.beforesend.call(o,c),c.send(null==r?null:r),o},o.abort=function(){return c.abort(),o},lo.rebind(o,u,"on"),null==r?o:o.get(function(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}(r))}function Rn(){var n=On(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(au),au=setTimeout(Rn,t)),uu=0):(uu=1,su(Rn))}function On(){var n=Date.now();for(cu=iu;cu;)n>=cu.t&&(cu.f=cu.c(n-cu.t)),cu=cu.n;return n}function Dn(){for(var n,t=iu,e=1/0;t;)t.f?t=n?n.n=t.n:iu=t.n:(t.t<e&&(e=t.t),t=(n=t).n);return ou=n,e}function jn(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function Pn(n){var t=n.decimal,e=n.thousands,r=n.grouping,i=n.currency,o=r&&e?function(n,t){for(var i=n.length,o=[],u=0,a=r[0],c=0;i>0&&a>0&&(c+a+1>t&&(a=Math.max(1,t-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>t));)a=r[u=(u+1)%r.length];return o.reverse().join(e)}:k;return function(n){var e=fu.exec(n),r=e[1]||" ",u=e[2]||">",a=e[3]||"-",c=e[4]||"",s=e[5],l=+e[6],f=e[7],h=e[8],p=e[9],d=1,g="",v="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(s||"0"===r&&"="===u)&&(s=r="0",u="="),p){case"n":f=!0,p="g";break;case"%":d=100,v="%",p="f";break;case"p":d=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(g="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":d=-1,p="r"}"$"===c&&(g=i[0],v=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):("e"==p||"f"==p)&&(h=Math.max(0,Math.min(20,h)))),p=hu.get(p)||Un;var x=s&&f;return function(n){var e=v;if(y&&n%1)return"";var i=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===a?"":a;if(0>d){var c=lo.formatPrefix(n,h);n=c.scale(n),e=c.symbol+v}else n*=d;var M,_,b=(n=p(n,h)).lastIndexOf(".");if(0>b){var w=m?n.lastIndexOf("e"):-1;0>w?(M=n,_=""):(M=n.substring(0,w),_=n.substring(w))}else M=n.substring(0,b),_=t+n.substring(b+1);!s&&f&&(M=o(M,1/0));var k=g.length+M.length+_.length+(x?0:i.length),E=l>k?new Array(k=l-k+1).join(r):"";return x&&(M=o(E+M,E.length?l-_.length:1/0)),i+=g,n=M+_,("<"===u?i+n+E:">"===u?E+i+n:"^"===u?E.substring(0,k>>=1)+i+n+E.substring(k):i+(x?n:E+n))+e}}}function Un(n){return n+""}function Fn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Hn(n,t,e){function r(t){var e=n(t),r=o(e,1);return r-t>t-e?e:r}function i(e){return t(e=n(new du(e-1)),1),e}function o(n,e){return t(n=new du(+n),e),n}function u(n,r,o){var u=i(n),a=[];if(o>1)for(;r>u;)e(u)%o||a.push(new Date(+u)),t(u,1);else for(;r>u;)a.push(new Date(+u)),t(u,1);return a}n.floor=n,n.round=r,n.ceil=i,n.offset=o,n.range=u;var a=n.utc=In(n);return a.floor=a,a.round=In(r),a.ceil=In(i),a.offset=In(o),a.range=function(n,t,e){try{du=Fn;var r=new Fn;return r._=n,u(r,t,e)}finally{du=Date}},n}function In(n){return function(t,e){try{du=Fn;var r=new Fn;return r._=t,n(r,e)._}finally{du=Date}}}function Bn(n){function t(n){function t(t){for(var e,i,o,u=[],a=-1,c=0;++a<r;)37===n.charCodeAt(a)&&(u.push(n.slice(c,a)),null!=(i=vu[e=n.charAt(++a)])&&(e=n.charAt(++a)),(o=M[e])&&(e=o(t,null==i?"e"===e?" ":"0":i)),u.push(e),c=a+1);return u.push(n.slice(c,a)),u.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(e(r,n,t,0)!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&du!==Fn,o=new(i?Fn:du);return"j"in r?o.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?o._:o},t.toString=function(){return n},t}function e(n,t,e,r){for(var i,o,u,a=0,c=t.length,s=e.length;c>a;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(u=t.charAt(a++),!(o=_[u in vu?t.charAt(a++):u])||(r=o(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}var r=n.dateTime,i=n.date,o=n.time,u=n.periods,a=n.days,c=n.shortDays,s=n.months,l=n.shortMonths;t.utc=function(n){function e(n){try{var t=new(du=Fn);return t._=n,r(t)}finally{du=Date}}var r=t(n);return e.parse=function(n){try{du=Fn;var t=r.parse(n);return t&&t._}finally{du=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var f=lo.map(),h=Yn(a),p=Zn(a),d=Yn(c),g=Zn(c),v=Yn(s),y=Zn(s),m=Yn(l),x=Zn(l);u.forEach((function(n,t){f.set(n.toLowerCase(),t)}));var M={a:function(n){return c[n.getDay()]},A:function(n){return a[n.getDay()]},b:function(n){return l[n.getMonth()]},B:function(n){return s[n.getMonth()]},c:t(r),d:function(n,t){return Kn(n.getDate(),t,2)},e:function(n,t){return Kn(n.getDate(),t,2)},H:function(n,t){return Kn(n.getHours(),t,2)},I:function(n,t){return Kn(n.getHours()%12||12,t,2)},j:function(n,t){return Kn(1+pu.dayOfYear(n),t,3)},L:function(n,t){return Kn(n.getMilliseconds(),t,3)},m:function(n,t){return Kn(n.getMonth()+1,t,2)},M:function(n,t){return Kn(n.getMinutes(),t,2)},p:function(n){return u[+(n.getHours()>=12)]},S:function(n,t){return Kn(n.getSeconds(),t,2)},U:function(n,t){return Kn(pu.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Kn(pu.mondayOfYear(n),t,2)},x:t(i),X:t(o),y:function(n,t){return Kn(n.getFullYear()%100,t,2)},Y:function(n,t){return Kn(n.getFullYear()%1e4,t,4)},Z:ut,"%":function(){return"%"}},_={a:function(n,t,e){d.lastIndex=0;var r=d.exec(t.slice(e));return r?(n.w=g.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(n,t,e){h.lastIndex=0;var r=h.exec(t.slice(e));return r?(n.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(n,t,e){m.lastIndex=0;var r=m.exec(t.slice(e));return r?(n.m=x.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(n,t,e){v.lastIndex=0;var r=v.exec(t.slice(e));return r?(n.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(n,t,r){return e(n,M.c.toString(),t,r)},d:nt,e:nt,H:et,I:et,j:tt,L:ot,m:Qn,M:rt,p:function(n,t,e){var r=f.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)},S:it,U:Xn,w:Vn,W:$n,x:function(n,t,r){return e(n,M.x.toString(),t,r)},X:function(n,t,r){return e(n,M.X.toString(),t,r)},y:Jn,Y:Wn,Z:Gn,"%":at};return t}function Kn(n,t,e){var r=0>n?"-":"",i=(r?-n:n)+"",o=i.length;return r+(e>o?new Array(e-o+1).join(t)+i:i)}function Yn(n){return new RegExp("^(?:"+n.map(lo.requote).join("|")+")","i")}function Zn(n){for(var t=new g,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function Vn(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Xn(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function $n(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function Wn(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Jn(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+2));return r?(n.y=function(n){return n+(n>68?1900:2e3)}(+r[0]),e+r[0].length):-1}function Gn(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Qn(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function nt(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function tt(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function et(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function rt(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function it(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ot(n,t,e){yu.lastIndex=0;var r=yu.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ut(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=_o(t)/60|0,i=_o(t)%60;return e+Kn(r,"0",2)+Kn(i,"0",2)}function at(n,t,e){mu.lastIndex=0;var r=mu.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function st(){}function lt(n,t,e){var r=e.s=n+t,i=r-n,o=r-i;e.t=n-o+(t-i)}function ft(n,t){n&&bu.hasOwnProperty(n.type)&&bu[n.type](n,t)}function ht(n,t,e){var r,i=-1,o=n.length-e;for(t.lineStart();++i<o;)r=n[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function pt(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)ht(n[e],t,1);t.polygonEnd()}function dt(){function n(n,t){t=t*Bo/2+Uo/4;var e=(n*=Bo)-r,u=e>=0?1:-1,a=u*e,c=Math.cos(t),s=Math.sin(t),l=o*s,f=i*c+l*Math.cos(a),h=l*u*Math.sin(a);ku.add(Math.atan2(h,f)),r=n,i=c,o=s}var t,e,r,i,o;Eu.point=function(u,a){Eu.point=n,r=(t=u)*Bo,i=Math.cos(a=(e=a)*Bo/2+Uo/4),o=Math.sin(a)},Eu.lineEnd=function(){n(t,e)}}function gt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function vt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function yt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Mt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),cn(n[2])]}function bt(n,t){return _o(n[0]-t[0])<jo&&_o(n[1]-t[1])<jo}function wt(n,t){n*=Bo;var e=Math.cos(t*=Bo);kt(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function kt(n,t,e){++Su,Au+=(n-Au)/Su,Cu+=(t-Cu)/Su,qu+=(e-qu)/Su}function Et(){function n(n,i){n*=Bo;var o=Math.cos(i*=Bo),u=o*Math.cos(n),a=o*Math.sin(n),c=Math.sin(i),s=Math.atan2(Math.sqrt((s=e*c-r*a)*s+(s=r*u-t*c)*s+(s=t*a-e*u)*s),t*u+e*a+r*c);Nu+=s,Tu+=s*(t+(t=u)),zu+=s*(e+(e=a)),Lu+=s*(r+(r=c)),kt(t,e,r)}var t,e,r;ju.point=function(i,o){i*=Bo;var u=Math.cos(o*=Bo);t=u*Math.cos(i),e=u*Math.sin(i),r=Math.sin(o),ju.point=n,kt(t,e,r)}}function St(){ju.point=wt}function Nt(){function n(n,t){n*=Bo;var e=Math.cos(t*=Bo),u=e*Math.cos(n),a=e*Math.sin(n),c=Math.sin(t),s=i*c-o*a,l=o*u-r*c,f=r*a-i*u,h=Math.sqrt(s*s+l*l+f*f),p=r*u+i*a+o*c,d=h&&-an(p)/h,g=Math.atan2(h,p);Ru+=d*s,Ou+=d*l,Du+=d*f,Nu+=g,Tu+=g*(r+(r=u)),zu+=g*(i+(i=a)),Lu+=g*(o+(o=c)),kt(r,i,o)}var t,e,r,i,o;ju.point=function(u,a){t=u,e=a,ju.point=n,u*=Bo;var c=Math.cos(a*=Bo);r=c*Math.cos(u),i=c*Math.sin(u),o=Math.sin(a),kt(r,i,o)},ju.lineEnd=function(){n(t,e),ju.lineEnd=St,ju.point=wt}}function At(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return(e=t.invert(e,r))&&n.invert(e[0],e[1])}),e}function Ct(){return!0}function qt(n,t,e,r,i){var o=[],u=[];if(n.forEach((function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(bt(e,r)){i.lineStart();for(var a=0;t>a;++a)i.point((e=n[a])[0],e[1]);return void i.lineEnd()}var c=new zt(e,n,null,!0),s=new zt(e,null,c,!1);c.o=s,o.push(c),u.push(s),c=new zt(r,n,null,!1),s=new zt(r,null,c,!0),c.o=s,o.push(c),u.push(s)}})),u.sort(t),Tt(o),Tt(u),o.length){for(var a=0,c=e,s=u.length;s>a;++a)u[a].e=c=!c;for(var l,f,h=o[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;l=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(a=0,s=l.length;s>a;++a)i.point((f=l[a])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d)for(a=(l=p.p.z).length-1;a>=0;--a)i.point((f=l[a])[0],f[1]);else r(p.x,p.p.x,-1,i);p=p.p}l=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Tt(n){if(t=n.length){for(var t,e,r=0,i=n[0];++r<t;)i.n=e=n[r],e.p=i,i=e;i.n=e=n[0],e.p=i}}function zt(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Lt(n,t,e,r){return function(i,o){function u(t,e){var r=i(t,e);n(t=r[0],e=r[1])&&o.point(t,e)}function a(n,t){var e=i(n,t);v.point(e[0],e[1])}function c(){m.point=a,v.lineStart()}function s(){m.point=u,v.lineEnd()}function l(n,t){g.push([n,t]);var e=i(n,t);M.point(e[0],e[1])}function f(){M.lineStart(),g=[]}function h(){l(g[0][0],g[0][1]),M.lineEnd();var n,t=M.clean(),e=x.buffer(),r=e.length;if(g.pop(),d.push(g),g=null,r)if(1&t){var i,u=-1;if((r=(n=e[0]).length-1)>0){for(_||(o.polygonStart(),_=!0),o.lineStart();++u<r;)o.point((i=n[u])[0],i[1]);o.lineEnd()}}else r>1&&2&t&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Rt))}var p,d,g,v=t(o),y=i.invert(r[0],r[1]),m={point:u,lineStart:c,lineEnd:s,polygonStart:function(){m.point=l,m.lineStart=f,m.lineEnd=h,p=[],d=[]},polygonEnd:function(){m.point=u,m.lineStart=c,m.lineEnd=s,p=lo.merge(p);var n=function(n,t){var e=n[0],r=n[1],i=[Math.sin(e),-Math.cos(e),0],o=0,u=0;ku.reset();for(var a=0,c=t.length;c>a;++a){var s=t[a],l=s.length;if(l)for(var f=s[0],h=f[0],p=f[1]/2+Uo/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===l&&(v=0);var y=(n=s[v])[0],m=n[1]/2+Uo/4,x=Math.sin(m),M=Math.cos(m),_=y-h,b=_>=0?1:-1,w=b*_,k=w>Uo,E=d*x;if(ku.add(Math.atan2(E*b*Math.sin(w),g*M+E*Math.cos(w))),o+=k?_+b*Fo:_,k^h>=e^y>=e){var S=yt(gt(f),gt(n));Mt(S);var N=yt(i,S);Mt(N);var A=(k^_>=0?-1:1)*cn(N[2]);(r>A||r===A&&(S[0]||S[1]))&&(u+=k^_>=0?1:-1)}if(!v++)break;h=y,d=x,g=M,f=n}}return(-jo>o||jo>o&&0>ku)^1&u}(y,d);p.length?(_||(o.polygonStart(),_=!0),qt(p,Dt,n,e,o)):n&&(_||(o.polygonStart(),_=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),_&&(o.polygonEnd(),_=!1),p=d=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Ot(),M=t(x),_=!1;return m}}function Rt(n){return n.length>1}function Ot(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:N,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Dt(n,t){return((n=n.x)[0]<0?n[1]-Io-jo:Io-n[1])-((t=t.x)[0]<0?t[1]-Io-jo:Io-t[1])}function jt(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n,t,e){var r=[1,0,0],o=yt(gt(n),gt(t)),u=vt(o,o),a=o[0],c=u-a*a;if(!c)return!e&&n;var s=i*u/c,l=-i*a/c,f=yt(r,o),h=xt(r,s);mt(h,xt(o,l));var p=f,d=vt(h,p),g=vt(p,p),v=d*d-g*(vt(h,h)-1);if(!(0>v)){var y=Math.sqrt(v),m=xt(p,(-d-y)/g);if(mt(m,h),m=_t(m),!e)return m;var x,M=n[0],_=t[0],b=n[1],w=t[1];M>_&&(x=M,M=_,_=x);var k=_-M,E=_o(k-Uo)<jo;if(!E&&b>w&&(x=b,b=w,w=x),E||jo>k?E?b+w>0^m[1]<(_o(m[0]-M)<jo?b:w):b<=m[1]&&m[1]<=w:k>Uo^(M<=m[0]&&m[0]<=_)){var S=xt(p,(-d+y)/g);return mt(S,h),[m,_t(S)]}}}function r(t,e){var r=o?n:Uo-n,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var i=Math.cos(n),o=i>0,u=_o(i)>jo;return Lt(t,(function(n){var i,a,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var p,d=[f,h],g=t(f,h),v=o?g?0:r(f,h):g?r(f+(0>f?Uo:-Uo),h):0;if(!i&&(s=c=g)&&n.lineStart(),g!==c&&(p=e(i,d),(bt(i,p)||bt(d,p))&&(d[0]+=jo,d[1]+=jo,g=t(d[0],d[1]))),g!==c)l=0,g?(n.lineStart(),p=e(d,i),n.point(p[0],p[1])):(p=e(i,d),n.point(p[0],p[1]),n.lineEnd()),i=p;else if(u&&i&&o^g){var y;v&a||!(y=e(d,i,!0))||(l=0,o?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!g||i&&bt(i,d)||n.point(d[0],d[1]),i=d,c=g,a=v},lineEnd:function(){c&&n.lineEnd(),i=null},clean:function(){return l|(s&&c)<<1}}}),se(n,6*Bo),o?[0,-n]:[-Uo,n-Uo])}function Pt(n,t,e,r){return function(i){var o,u=i.a,a=i.b,c=u.x,s=u.y,l=0,f=1,h=a.x-c,p=a.y-s;if(o=n-c,h||!(o>0)){if(o/=h,0>h){if(l>o)return;f>o&&(f=o)}else if(h>0){if(o>f)return;o>l&&(l=o)}if(o=e-c,h||!(0>o)){if(o/=h,0>h){if(o>f)return;o>l&&(l=o)}else if(h>0){if(l>o)return;f>o&&(f=o)}if(o=t-s,p||!(o>0)){if(o/=p,0>p){if(l>o)return;f>o&&(f=o)}else if(p>0){if(o>f)return;o>l&&(l=o)}if(o=r-s,p||!(0>o)){if(o/=p,0>p){if(o>f)return;o>l&&(l=o)}else if(p>0){if(l>o)return;f>o&&(f=o)}return l>0&&(i.a={x:c+l*h,y:s+l*p}),1>f&&(i.b={x:c+f*h,y:s+f*p}),i}}}}}}function Ut(n,t,e,r){function i(r,i){return _o(r[0]-n)<jo?i>0?0:3:_o(r[0]-e)<jo?i>0?2:1:_o(r[1]-t)<jo?i>0?1:0:i>0?3:2}function o(n,t){return u(n.x,t.x)}function u(n,t){var e=i(n,1),r=i(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function c(o,a,c,s){var l=0,f=0;if(null==o||(l=i(o,c))!==(f=i(a,c))||u(o,a)<0^c>0)do{s.point(0===l||3===l?n:e,l>1?r:t)}while((l=(l+c+4)%4)!==f);else s.point(a[0],a[1])}function s(i,o){return i>=n&&e>=i&&o>=t&&r>=o}function l(n,t){s(n,t)&&a.point(n,t)}function f(n,t){var e=s(n=Math.max(-Uu,Math.min(Uu,n)),t=Math.max(-Uu,Math.min(Uu,t)));if(p&&d.push([n,t]),_)g=n,v=t,y=e,_=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&M)a.point(n,t);else{var r={a:{x:m,y:x},b:{x:n,y:t}};E(r)?(M||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),b=!1):e&&(a.lineStart(),a.point(n,t),b=!1)}m=n,x=t,M=e}var h,p,d,g,v,y,m,x,M,_,b,w=a,k=Ot(),E=Pt(n,t,e,r),S={point:l,lineStart:function(){S.point=f,p&&p.push(d=[]),_=!0,M=!1,m=x=NaN},lineEnd:function(){h&&(f(g,v),y&&M&&k.rejoin(),h.push(k.buffer())),S.point=l,M&&a.lineEnd()},polygonStart:function(){a=k,h=[],p=[],b=!0},polygonEnd:function(){a=w,h=lo.merge(h);var t=function(n){for(var t=0,e=p.length,r=n[1],i=0;e>i;++i)for(var o,u=1,a=p[i],c=a.length,s=a[0];c>u;++u)o=a[u],s[1]<=r?o[1]>r&&un(s,o,n)>0&&++t:o[1]<=r&&un(s,o,n)<0&&--t,s=o;return 0!==t}([n,r]),e=b&&t,i=h.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),c(null,null,1,a),a.lineEnd()),i&&qt(h,o,t,c,a),a.polygonEnd()),h=p=d=null}};return S}}function Ft(n){var t=0,e=Uo/3,r=te(n),i=r(t,e);return i.parallels=function(n){return arguments.length?r(t=n[0]*Uo/180,e=n[1]*Uo/180):[t/Uo*180,e/Uo*180]},i}function Ht(n,t){function e(n,t){var e=Math.sqrt(o-2*i*Math.sin(t))/i;return[e*Math.sin(n*=i),u-e*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,o=1+r*(2*i-r),u=Math.sqrt(o)/i;return e.invert=function(n,t){var e=u-t;return[Math.atan2(n,e)/i,cn((o-(n*n+e*e)*i*i)/(2*i))]},e}function It(){function n(n,t){Hu+=i*n-r*t,r=n,i=t}var t,e,r,i;Zu.point=function(o,u){Zu.point=n,t=r=o,e=i=u},Zu.lineEnd=function(){n(t,e)}}function Bt(){function n(n,t){u.push("M",n,",",t,o)}function t(n,t){u.push("M",n,",",t),a.point=e}function e(n,t){u.push("L",n,",",t)}function r(){a.point=n}function i(){u.push("Z")}var o=Kt(4.5),u=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return o=Kt(n),a},result:function(){if(u.length){var n=u.join("");return u=[],n}}};return a}function Kt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Yt(n,t){Au+=n,Cu+=t,++qu}function Zt(){function n(n,r){var i=n-t,o=r-e,u=Math.sqrt(i*i+o*o);Tu+=u*(t+n)/2,zu+=u*(e+r)/2,Lu+=u,Yt(t=n,e=r)}var t,e;Xu.point=function(r,i){Xu.point=n,Yt(t=r,e=i)}}function Vt(){Xu.point=Yt}function Xt(){function n(n,t){var e=n-r,o=t-i,u=Math.sqrt(e*e+o*o);Tu+=u*(r+n)/2,zu+=u*(i+t)/2,Lu+=u,Ru+=(u=i*n-r*t)*(r+n),Ou+=u*(i+t),Du+=3*u,Yt(r=n,i=t)}var t,e,r,i;Xu.point=function(o,u){Xu.point=n,Yt(t=r=o,e=i=u)},Xu.lineEnd=function(){n(t,e)}}function $t(n){function t(t,e){n.moveTo(t+u,e),n.arc(t,e,u,0,Fo)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function i(){a.point=t}function o(){n.closePath()}var u=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=o},polygonEnd:function(){a.lineEnd=i,a.point=t},pointRadius:function(n){return u=n,a},result:N};return a}function Wt(n){function t(n){return(a?r:e)(n)}function e(t){return Qt(t,(function(e,r){e=n(e,r),t.point(e[0],e[1])}))}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){m=NaN,w.point=o,t.lineStart()}function o(e,r){var o=gt([e,r]),u=n(e,r);i(m,x,y,M,_,b,m=u[0],x=u[1],y=e,M=o[0],_=o[1],b=o[2],a,t),t.point(m,x)}function u(){w.point=e,t.lineEnd()}function c(){r(),w.point=s,w.lineEnd=l}function s(n,t){o(f=n,t),h=m,p=x,d=M,g=_,v=b,w.point=o}function l(){i(m,x,y,M,_,b,h,p,f,d,g,v,a,t),w.lineEnd=u,u()}var f,h,p,d,g,v,y,m,x,M,_,b,w={point:e,lineStart:r,lineEnd:u,polygonStart:function(){t.polygonStart(),w.lineStart=c},polygonEnd:function(){t.polygonEnd(),w.lineStart=r}};return w}function i(t,e,r,a,c,s,l,f,h,p,d,g,v,y){var m=l-t,x=f-e,M=m*m+x*x;if(M>4*o&&v--){var _=a+p,b=c+d,w=s+g,k=Math.sqrt(_*_+b*b+w*w),E=Math.asin(w/=k),S=_o(_o(w)-1)<jo||_o(r-h)<jo?(r+h)/2:Math.atan2(b,_),N=n(S,E),A=N[0],C=N[1],q=A-t,T=C-e,z=x*q-m*T;(z*z/M>o||_o((m*q+x*T)/M-.5)>.3||u>a*p+c*d+s*g)&&(i(t,e,r,a,c,s,A,C,S,_/=k,b/=k,w,v,y),y.point(A,C),i(A,C,S,_,b,w,l,f,h,p,d,g,v,y))}}var o=.5,u=Math.cos(30*Bo),a=16;return t.precision=function(n){return arguments.length?(a=(o=n*n)>0&&16,t):Math.sqrt(o)},t}function Jt(n){var t=Wt((function(t,e){return n([t*Ko,e*Ko])}));return function(n){return ee(t(n))}}function Gt(n){this.stream=n}function Qt(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ne(n){return te((function(){return n}))()}function te(n){function t(n){return[(n=a(n[0]*Bo,n[1]*Bo))[0]*h+c,s-n[1]*h]}function e(n){return(n=a.invert((n[0]-c)/h,(s-n[1])/h))&&[n[0]*Ko,n[1]*Ko]}function r(){a=At(u=oe(y,m,x),o);var n=o(g,v);return c=p-n[0]*h,s=d+n[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),t}var o,u,a,c,s,l,f=Wt((function(n,t){return[(n=o(n,t))[0]*h+c,s-n[1]*h]})),h=150,p=480,d=250,g=0,v=0,y=0,m=0,x=0,M=Pu,_=k,b=null,w=null;return t.stream=function(n){return l&&(l.valid=!1),(l=ee(M(u,f(_(n))))).valid=!0,l},t.clipAngle=function(n){return arguments.length?(M=null==n?(b=n,Pu):jt((b=+n)*Bo),i()):b},t.clipExtent=function(n){return arguments.length?(w=n,_=n?Ut(n[0][0],n[0][1],n[1][0],n[1][1]):k,i()):w},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],d=+n[1],r()):[p,d]},t.center=function(n){return arguments.length?(g=n[0]%360*Bo,v=n[1]%360*Bo,r()):[g*Ko,v*Ko]},t.rotate=function(n){return arguments.length?(y=n[0]%360*Bo,m=n[1]%360*Bo,x=n.length>2?n[2]%360*Bo:0,r()):[y*Ko,m*Ko,x*Ko]},lo.rebind(t,f,"precision"),function(){return o=n.apply(this,arguments),t.invert=o.invert&&e,r()}}function ee(n){return Qt(n,(function(t,e){n.point(t*Bo,e*Bo)}))}function re(n,t){return[n,t]}function ie(n,t){return[n>Uo?n-Fo:-Uo>n?n+Fo:n,t]}function oe(n,t,e){return n?t||e?At(ae(n),ce(t,e)):ae(n):t||e?ce(t,e):ie}function ue(n){return function(t,e){return[(t+=n)>Uo?t-Fo:-Uo>t?t+Fo:t,e]}}function ae(n){var t=ue(n);return t.invert=ue(-n),t}function ce(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*r+a*i;return[Math.atan2(c*o-l*u,a*r-s*i),cn(l*o+c*u)]}var r=Math.cos(n),i=Math.sin(n),o=Math.cos(t),u=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*o-c*u;return[Math.atan2(c*o+s*u,a*r+l*i),cn(l*r-a*i)]},e}function se(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,o,u,a){var c=u*t;null!=i?(i=le(e,i),o=le(e,o),(u>0?o>i:i>o)&&(i+=u*Fo)):(i=n+u*Fo,o=n-.5*c);for(var s,l=i;u>0?l>o:o>l;l-=c)a.point((s=_t([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],s[1])}}function le(n,t){var e=gt(t);e[0]-=n,Mt(e);var r=an(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-jo)%(2*Math.PI)}function fe(n,t,e){var r=lo.range(n,t-jo,e).concat(t);return function(n){return r.map((function(t){return[n,t]}))}}function he(n,t,e){var r=lo.range(n,t-jo,e).concat(t);return function(n){return r.map((function(t){return[t,n]}))}}function pe(n){return n.source}function de(n){return n.target}function ge(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),o=n(r*i);return[o*i*Math.sin(t),o*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),o=Math.sin(i),u=Math.cos(i);return[Math.atan2(n*o,r*u),Math.asin(r&&e*o/r)]},e}function ve(n,t){function e(n,t){u>0?-Io+jo>t&&(t=-Io+jo):t>Io-jo&&(t=Io-jo);var e=u/Math.pow(i(t),o);return[e*Math.sin(o*n),u-e*Math.cos(o*n)]}var r=Math.cos(n),i=function(n){return Math.tan(Uo/4+n/2)},o=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),u=r*Math.pow(i(n),o)/o;return o?(e.invert=function(n,t){var e=u-t,r=on(o)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/o,2*Math.atan(Math.pow(u/r,1/o))-Io]},e):me}function ye(n,t){function e(n,t){var e=o-t;return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),i=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),o=r/i+n;return _o(i)<jo?re:(e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/i,o-on(i)*Math.sqrt(n*n+e*e)]},e)}function me(n,t){return[n,Math.log(Math.tan(Uo/4+t/2))]}function xe(n){var t,e=ne(n),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=i.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var u=o.apply(e,arguments);if(u===e){if(t=null==n){var a=Uo*r(),c=i();o([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(u=null);return u},e.clipExtent(null)}function Me(n,t){return[Math.log(Math.tan(Uo/4+t/2)),-n]}function _e(n){return n[0]}function be(n){return n[1]}function we(n){for(var t=n.length,e=[0,1],r=2,i=2;t>i;i++){for(;r>1&&un(n[e[r-2]],n[e[r-1]],n[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function ke(n,t){return n[0]-t[0]||n[1]-t[1]}function Ee(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Se(n,t,e,r){var i=n[0],o=e[0],u=t[0]-i,a=r[0]-o,c=n[1],s=e[1],l=t[1]-c,f=r[1]-s,h=(a*(c-s)-f*(i-o))/(f*u-a*l);return[i+h*u,c+h*l]}function Ne(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Ae(){Ve(this),this.edge=this.site=this.circle=null}function Ce(n){var t=ca.pop()||new Ae;return t.site=n,t}function qe(n){Ue(n),oa.remove(n),ca.push(n),Ve(n)}function Te(n){var t=n.circle,e=t.x,r=t.cy,i={x:e,y:r},o=n.P,u=n.N,a=[n];qe(n);for(var c=o;c.circle&&_o(e-c.circle.x)<jo&&_o(r-c.circle.cy)<jo;)o=c.P,a.unshift(c),qe(c),c=o;a.unshift(c),Ue(c);for(var s=u;s.circle&&_o(e-s.circle.x)<jo&&_o(r-s.circle.cy)<jo;)u=s.N,a.push(s),qe(s),s=u;a.push(s),Ue(s);var l,f=a.length;for(l=1;f>l;++l)s=a[l],c=a[l-1],Ke(s.edge,c.site,s.site,i);c=a[0],(s=a[f-1]).edge=Ie(c.site,s.site,null,i),Pe(c),Pe(s)}function ze(n){for(var t,e,r,i,o=n.x,u=n.y,a=oa._;a;)if((r=Le(a,u)-o)>jo)a=a.L;else{if(!((i=o-Re(a,u))>jo)){r>-jo?(t=a.P,e=a):i>-jo?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Ce(n);if(oa.insert(t,c),t||e){if(t===e)return Ue(t),e=Ce(t.site),oa.insert(c,e),c.edge=e.edge=Ie(t.site,c.site),Pe(t),void Pe(e);if(!e)return void(c.edge=Ie(t.site,c.site));Ue(t),Ue(e);var s=t.site,l=s.x,f=s.y,h=n.x-l,p=n.y-f,d=e.site,g=d.x-l,v=d.y-f,y=2*(h*v-p*g),m=h*h+p*p,x=g*g+v*v,M={x:(v*m-p*x)/y+l,y:(h*x-g*m)/y+f};Ke(e.edge,s,d,M),c.edge=Ie(s,n,null,M),e.edge=Ie(n,d,null,M),Pe(t),Pe(e)}}function Le(n,t){var e=n.site,r=e.x,i=e.y,o=i-t;if(!o)return r;var u=n.P;if(!u)return-1/0;var a=(e=u.site).x,c=e.y,s=c-t;if(!s)return a;var l=a-r,f=1/o-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+a)/2}function Re(n,t){var e=n.N;if(e)return Le(e,t);var r=n.site;return r.y===t?r.x:1/0}function Oe(n){this.site=n,this.edges=[]}function De(n,t){return t.angle-n.angle}function je(){Ve(this),this.x=this.y=this.arc=this.site=this.cy=null}function Pe(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,i=n.site,o=e.site;if(r!==o){var u=i.x,a=i.y,c=r.x-u,s=r.y-a,l=o.x-u,f=2*(c*(v=o.y-a)-s*l);if(!(f>=-Po)){var h=c*c+s*s,p=l*l+v*v,d=(v*h-s*p)/f,g=(c*p-l*h)/f,v=g+a,y=sa.pop()||new je;y.arc=n,y.site=i,y.x=d+u,y.y=v+Math.sqrt(d*d+g*g),y.cy=v,n.circle=y;for(var m=null,x=aa._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}aa.insert(m,y),m||(ua=y)}}}}function Ue(n){var t=n.circle;t&&(t.P||(ua=t.N),aa.remove(t),sa.push(t),Ve(t),n.circle=null)}function Fe(n,t){var e=n.b;if(e)return!0;var r,i,o=n.a,u=t[0][0],a=t[1][0],c=t[0][1],s=t[1][1],l=n.l,f=n.r,h=l.x,p=l.y,d=f.x,g=f.y,v=(h+d)/2,y=(p+g)/2;if(g===p){if(u>v||v>=a)return;if(h>d){if(o){if(o.y>=s)return}else o={x:v,y:c};e={x:v,y:s}}else{if(o){if(o.y<c)return}else o={x:v,y:s};e={x:v,y:c}}}else if(i=y-(r=(h-d)/(g-p))*v,-1>r||r>1)if(h>d){if(o){if(o.y>=s)return}else o={x:(c-i)/r,y:c};e={x:(s-i)/r,y:s}}else{if(o){if(o.y<c)return}else o={x:(s-i)/r,y:s};e={x:(c-i)/r,y:c}}else if(g>p){if(o){if(o.x>=a)return}else o={x:u,y:r*u+i};e={x:a,y:r*a+i}}else{if(o){if(o.x<u)return}else o={x:a,y:r*a+i};e={x:u,y:r*u+i}}return n.a=o,n.b=e,!0}function He(n,t){this.l=n,this.r=t,this.a=this.b=null}function Ie(n,t,e,r){var i=new He(n,t);return ra.push(i),e&&Ke(i,n,t,e),r&&Ke(i,t,n,r),ia[n.i].edges.push(new Ye(i,n,t)),ia[t.i].edges.push(new Ye(i,t,n)),i}function Be(n,t,e){var r=new He(n,null);return r.a=t,r.b=e,ra.push(r),r}function Ke(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function Ye(n,t,e){var r=n.a,i=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Ze(){this._=null}function Ve(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Xe(n,t){var e=t,r=t.R,i=e.U;i?i.L===e?i.L=r:i.R=r:n._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function $e(n,t){var e=t,r=t.L,i=e.U;i?i.L===e?i.L=r:i.R=r:n._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function We(n){for(;n.L;)n=n.L;return n}function Je(n,t){var e,r,i,o=n.sort(Ge).pop();for(ra=[],ia=new Array(n.length),oa=new Ze,aa=new Ze;;)if(i=ua,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))(o.x!==e||o.y!==r)&&(ia[o.i]=new Oe(o),ze(o),e=o.x,r=o.y),o=n.pop();else{if(!i)break;Te(i.arc)}t&&(function(n){for(var t,e=ra,r=Pt(n[0][0],n[0][1],n[1][0],n[1][1]),i=e.length;i--;)(!Fe(t=e[i],n)||!r(t)||_o(t.a.x-t.b.x)<jo&&_o(t.a.y-t.b.y)<jo)&&(t.a=t.b=null,e.splice(i,1))}(t),function(n){for(var t,e,r,i,o,u,a,c,s,l,f=n[0][0],h=n[1][0],p=n[0][1],d=n[1][1],g=ia,v=g.length;v--;)if((o=g[v])&&o.prepare())for(c=(a=o.edges).length,u=0;c>u;)r=(l=a[u].end()).x,i=l.y,t=(s=a[++u%c].start()).x,e=s.y,(_o(r-t)>jo||_o(i-e)>jo)&&(a.splice(u,0,new Ye(Be(o.site,l,_o(r-f)<jo&&d-i>jo?{x:f,y:_o(t-f)<jo?e:d}:_o(i-d)<jo&&h-r>jo?{x:_o(e-d)<jo?t:h,y:d}:_o(r-h)<jo&&i-p>jo?{x:h,y:_o(t-h)<jo?e:p}:_o(i-p)<jo&&r-f>jo?{x:_o(e-p)<jo?t:f,y:p}:null),o.site,null)),++c)}(t));var u={cells:ia,edges:ra};return oa=aa=ra=ia=null,u}function Ge(n,t){return t.y-n.y||t.x-n.x}function Qe(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function nr(n){return n.x}function tr(n){return n.y}function er(n,t,e,r,i,o){if(!n(t,e,r,i,o)){var u=.5*(e+i),a=.5*(r+o),c=t.nodes;c[0]&&er(n,c[0],e,r,u,a),c[1]&&er(n,c[1],u,r,i,a),c[2]&&er(n,c[2],e,a,u,o),c[3]&&er(n,c[3],u,a,i,o)}}function rr(n,t,e,r,i,o,u){var a,c=1/0;return function n(s,l,f,h,p){if(!(l>o||f>u||r>h||i>p)){if(d=s.point){var d,g=t-s.x,v=e-s.y,y=g*g+v*v;if(c>y){var m=Math.sqrt(c=y);r=t-m,i=e-m,o=t+m,u=e+m,a=d}}for(var x=s.nodes,M=.5*(l+h),_=.5*(f+p),b=(e>=_)<<1|t>=M,w=b+4;w>b;++b)if(s=x[3&b])switch(3&b){case 0:n(s,l,f,M,_);break;case 1:n(s,M,f,h,_);break;case 2:n(s,l,_,M,p);break;case 3:n(s,M,_,h,p)}}}(n,r,i,o,u),a}function ir(n,t){n=lo.rgb(n),t=lo.rgb(t);var e=n.r,r=n.g,i=n.b,o=t.r-e,u=t.g-r,a=t.b-i;return function(n){return"#"+En(Math.round(e+o*n))+En(Math.round(r+u*n))+En(Math.round(i+a*n))}}function or(n,t){var e,r={},i={};for(e in n)e in t?r[e]=cr(n[e],t[e]):i[e]=n[e];for(e in t)e in n||(i[e]=t[e]);return function(n){for(e in r)i[e]=r[e](n);return i}}function ur(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function ar(n,t){var e,r,i,o=fa.lastIndex=ha.lastIndex=0,u=-1,a=[],c=[];for(n+="",t+="";(e=fa.exec(n))&&(r=ha.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:ur(e,r)})),o=ha.lastIndex;return o<t.length&&(i=t.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?(t=c[0].x,function(n){return t(n)+""}):function(){return t}:(t=c.length,function(n){for(var e,r=0;t>r;++r)a[(e=c[r]).i]=e.x(n);return a.join("")})}function cr(n,t){for(var e,r=lo.interpolators.length;--r>=0&&!(e=lo.interpolators[r](n,t)););return e}function sr(n,t){var e,r=[],i=[],o=n.length,u=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(cr(n[e],t[e]));for(;o>e;++e)i[e]=n[e];for(;u>e;++e)i[e]=t[e];return function(n){for(e=0;a>e;++e)i[e]=r[e](n);return i}}function lr(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function fr(n){return function(t){return 1-n(1-t)}}function hr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function pr(n){return n*n}function dr(n){return n*n*n}function gr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function vr(n){return 1-Math.cos(n*Io)}function yr(n){return Math.pow(2,10*(n-1))}function mr(n){return 1-Math.sqrt(1-n*n)}function xr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Mr(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function _r(n){var t=[n.a,n.b],e=[n.c,n.d],r=wr(t),i=br(t,e),o=wr(function(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}(e,t,-i))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Ko,this.translate=[n.e,n.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Ko:0}function br(n,t){return n[0]*t[0]+n[1]*t[1]}function wr(n){var t=Math.sqrt(br(n,n));return t&&(n[0]/=t,n[1]/=t),t}function kr(n,t){var e,r=[],i=[],o=lo.transform(n),u=lo.transform(t),a=o.translate,c=u.translate,s=o.rotate,l=u.rotate,f=o.skew,h=u.skew,p=o.scale,d=u.scale;return a[0]!=c[0]||a[1]!=c[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:ur(a[0],c[0])},{i:3,x:ur(a[1],c[1])})):r.push(c[0]||c[1]?"translate("+c+")":""),s!=l?(s-l>180?l+=360:l-s>180&&(s+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:ur(s,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:ur(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),p[0]!=d[0]||p[1]!=d[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:e-4,x:ur(p[0],d[0])},{i:e-2,x:ur(p[1],d[1])})):(1!=d[0]||1!=d[1])&&r.push(r.pop()+"scale("+d+")"),e=i.length,function(n){for(var t,o=-1;++o<e;)r[(t=i[o]).i]=t.x(n);return r.join("")}}function Er(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Sr(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Nr(n){for(var t=n.source,e=n.target,r=function(n,t){if(n===t)return n;for(var e=Ar(n),r=Ar(t),i=e.pop(),o=r.pop(),u=null;i===o;)u=i,i=e.pop(),o=r.pop();return u}(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var o=i.length;e!==r;)i.splice(o,0,e),e=e.parent;return i}function Ar(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Cr(n){n.fixed|=2}function qr(n){n.fixed&=-7}function Tr(n){n.fixed|=4,n.px=n.x,n.py=n.y}function zr(n){n.fixed&=-5}function Lr(n,t){return lo.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=Ur,n}function Rr(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(i=n.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function Or(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(o=n.children)&&(i=o.length))for(var i,o,u=-1;++u<i;)e.push(o[u]);for(;null!=(n=r.pop());)t(n)}function Dr(n){return n.children}function jr(n){return n.value}function Pr(n,t){return t.value-n.value}function Ur(n){return lo.merge(n.map((function(n){return(n.children||[]).map((function(t){return{source:n,target:t}}))})))}function Fr(n){return n.x}function Hr(n){return n.y}function Ir(n,t,e){n.y0=t,n.y=e}function Br(n){return lo.range(n.length)}function Kr(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function Yr(n){for(var t,e=1,r=0,i=n[0][1],o=n.length;o>e;++e)(t=n[e][1])>i&&(r=e,i=t);return r}function Zr(n){return n.reduce(Vr,0)}function Vr(n,t){return n+t[1]}function Xr(n,t){return $r(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function $r(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,o=[];++e<=t;)o[e]=i*e+r;return o}function Wr(n){return[lo.min(n),lo.max(n)]}function Jr(n,t){return n.value-t.value}function Gr(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Qr(n,t){n._pack_next=t,t._pack_prev=n}function ni(n,t){var e=t.x-n.x,r=t.y-n.y,i=n.r+t.r;return.999*i*i>e*e+r*r}function ti(n){function t(n){l=Math.min(n.x-n.r,l),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),p=Math.max(n.y+n.r,p)}if((e=n.children)&&(s=e.length)){var e,r,i,o,u,a,c,s,l=1/0,f=-1/0,h=1/0,p=-1/0;if(e.forEach(ei),(r=e[0]).x=-r.r,r.y=0,t(r),s>1&&((i=e[1]).x=i.r,i.y=0,t(i),s>2))for(ii(r,i,o=e[2]),t(o),Gr(r,o),r._pack_prev=o,Gr(o,i),i=r._pack_next,u=3;s>u;u++){ii(r,i,o=e[u]);var d=0,g=1,v=1;for(a=i._pack_next;a!==i;a=a._pack_next,g++)if(ni(a,o)){d=1;break}if(1==d)for(c=r._pack_prev;c!==a._pack_prev&&!ni(c,o);c=c._pack_prev,v++);d?(v>g||g==v&&i.r<r.r?Qr(r,i=a):Qr(r=c,i),u--):(Gr(r,o),i=o,t(o))}var y=(l+f)/2,m=(h+p)/2,x=0;for(u=0;s>u;u++)(o=e[u]).x-=y,o.y-=m,x=Math.max(x,o.r+Math.sqrt(o.x*o.x+o.y*o.y));n.r=x,e.forEach(ri)}}function ei(n){n._pack_next=n._pack_prev=n}function ri(n){delete n._pack_next,delete n._pack_prev}function ii(n,t,e){var r=n.r+e.r,i=t.x-n.x,o=t.y-n.y;if(r&&(i||o)){var u=t.r+e.r,a=i*i+o*o,c=.5+((r*=r)-(u*=u))/(2*a),s=Math.sqrt(Math.max(0,2*u*(r+a)-(r-=a)*r-u*u))/(2*a);e.x=n.x+c*i+s*o,e.y=n.y+c*o-s*i}else e.x=n.x+r,e.y=n.y}function oi(n,t){return n.parent==t.parent?1:2}function ui(n){var t=n.children;return t.length?t[0]:n.t}function ai(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function ci(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function si(n,t,e){return n.a.parent===t.parent?n.a:e}function li(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function fi(n,t){var e=n.x+t[3],r=n.y+t[0],i=n.dx-t[1]-t[3],o=n.dy-t[0]-t[2];return 0>i&&(e+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:e,y:r,dx:i,dy:o}}function hi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function pi(n){return n.rangeExtent?n.rangeExtent():hi(n.range())}function di(n,t,e,r){var i=e(n[0],n[1]),o=r(t[0],t[1]);return function(n){return o(i(n))}}function gi(n,t){var e,r=0,i=n.length-1,o=n[r],u=n[i];return o>u&&(e=r,r=i,i=e,e=o,o=u,u=e),n[r]=t.floor(o),n[i]=t.ceil(u),n}function vi(n,t,e,r){var i=[],o=[],u=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<=a;)i.push(e(n[u-1],n[u])),o.push(r(t[u-1],t[u]));return function(t){var e=lo.bisect(n,t,1,a)-1;return o[e](i[e](t))}}function yi(n,t){return lo.rebind(n,t,"range","rangeRound","interpolate","clamp")}function mi(n,t){return gi(n,function(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:wa}(xi(n,t)[2]))}function xi(n,t){null==t&&(t=10);var e=hi(n),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Mi(n,t){return lo.range.apply(lo,xi(n,t))}function _i(n,t,e){var r=xi(n,t);if(e){var i=fu.exec(e);if(i.shift(),"s"===i[8]){var o=lo.formatPrefix(Math.max(_o(r[0]),_o(r[1])));return i[7]||(i[7]="."+bi(o.scale(r[2]))),i[8]="f",e=lo.format(i.join("")),function(n){return e(o.scale(n))+o.symbol}}i[7]||(i[7]="."+function(n,t){var e=bi(t[2]);return n in ka?Math.abs(e-bi(Math.max(_o(t[0]),_o(t[1]))))+ +("e"!==n):e-2*("%"===n)}(i[8],r)),e=i.join("")}else e=",."+bi(r[2])+"f";return lo.format(e)}function bi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function wi(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ki(){return 0}function Ei(n){return n.innerRadius}function Si(n){return n.outerRadius}function Ni(n){return n.startAngle}function Ai(n){return n.endAngle}function Ci(n){return n&&n.padAngle}function qi(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function Ti(n,t,e,r,i){var o=n[0]-t[0],u=n[1]-t[1],a=(i?r:-r)/Math.sqrt(o*o+u*u),c=a*u,s=-a*o,l=n[0]+c,f=n[1]+s,h=t[0]+c,p=t[1]+s,d=(l+h)/2,g=(f+p)/2,v=h-l,y=p-f,m=v*v+y*y,x=e-r,M=l*p-h*f,_=(0>y?-1:1)*Math.sqrt(x*x*m-M*M),b=(M*y-v*_)/m,w=(-M*v-y*_)/m,k=(M*y+v*_)/m,E=(-M*v+y*_)/m,S=b-d,N=w-g,A=k-d,C=E-g;return S*S+N*N>A*A+C*C&&(b=k,w=E),[[b-c,w-s],[b*e/x,w*e/x]]}function zi(n){function t(t){function u(){s.push("M",o(n(l),a))}for(var c,s=[],l=[],f=-1,h=t.length,p=Tn(e),d=Tn(r);++f<h;)i.call(this,c=t[f],f)?l.push([+p.call(this,c,f),+d.call(this,c,f)]):l.length&&(u(),l=[]);return l.length&&u(),s.length?s.join(""):null}var e=_e,r=be,i=Ct,o=Li,u=o.key,a=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(i=n,t):i},t.interpolate=function(n){return arguments.length?(u="function"==typeof n?o=n:(o=za.get(n)||Li).key,t):u},t.tension=function(n){return arguments.length?(a=n,t):a},t}function Li(n){return n.join("L")}function Ri(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("V",(r=n[t])[1],"H",r[0]);return i.join("")}function Oi(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("H",(r=n[t])[0],"V",r[1]);return i.join("")}function Di(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return Li(n);var e=n.length!=t.length,r="",i=n[0],o=n[1],u=t[0],a=u,c=1;if(e&&(r+="Q"+(o[0]-2*u[0]/3)+","+(o[1]-2*u[1]/3)+","+o[0]+","+o[1],i=n[1],c=2),t.length>1){a=t[1],o=n[c],c++,r+="C"+(i[0]+u[0])+","+(i[1]+u[1])+","+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1];for(var s=2;s<t.length;s++,c++)o=n[c],a=t[s],r+="S"+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1]}if(e){var l=n[c];r+="Q"+(o[0]+2*a[0]/3)+","+(o[1]+2*a[1]/3)+","+l[0]+","+l[1]}return r}function ji(n,t){for(var e,r=[],i=(1-t)/2,o=n[0],u=n[1],a=1,c=n.length;++a<c;)e=o,o=u,u=n[a],r.push([i*(u[0]-e[0]),i*(u[1]-e[1])]);return r}function Pi(n){if(n.length<3)return Li(n);var t=1,e=n.length,r=n[0],i=r[0],o=r[1],u=[i,i,i,(r=n[1])[0]],a=[o,o,o,r[1]],c=[i,",",o,"L",Ui(Oa,u),",",Ui(Oa,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],u.shift(),u.push(r[0]),a.shift(),a.push(r[1]),Fi(c,u,a);return n.pop(),c.push("L",r),c.join("")}function Ui(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Fi(n,t,e){n.push("C",Ui(La,t),",",Ui(La,e),",",Ui(Ra,t),",",Ui(Ra,e),",",Ui(Oa,t),",",Ui(Oa,e))}function Hi(n,t){return(t[1]-n[1])/(t[0]-n[0])}function Ii(n){for(var t,e,r,i,o=[],u=function(n){for(var t=0,e=n.length-1,r=[],i=n[0],o=n[1],u=r[0]=Hi(i,o);++t<e;)r[t]=(u+(u=Hi(i=o,o=n[t+1])))/2;return r[t]=u,r}(n),a=-1,c=n.length-1;++a<c;)t=Hi(n[a],n[a+1]),_o(t)<jo?u[a]=u[a+1]=0:(i=(e=u[a]/t)*e+(r=u[a+1]/t)*r)>9&&(i=3*t/Math.sqrt(i),u[a]=i*e,u[a+1]=i*r);for(a=-1;++a<=c;)i=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+u[a]*u[a])),o.push([i||0,u[a]*i||0]);return o}function Bi(n){for(var t,e,r,i=-1,o=n.length;++i<o;)e=(t=n[i])[0],r=t[1]-Io,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Ki(n){function t(t){function c(){g.push("M",a(n(y),f),l,s(n(v.reverse()),f),"Z")}for(var h,p,d,g=[],v=[],y=[],m=-1,x=t.length,M=Tn(e),_=Tn(i),b=e===r?function(){return p}:Tn(r),w=i===o?function(){return d}:Tn(o);++m<x;)u.call(this,h=t[m],m)?(v.push([p=+M.call(this,h,m),d=+_.call(this,h,m)]),y.push([+b.call(this,h,m),+w.call(this,h,m)])):v.length&&(c(),v=[],y=[]);return v.length&&c(),g.length?g.join(""):null}var e=_e,r=_e,i=0,o=be,u=Ct,a=Li,c=a.key,s=a,l="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(i=o=n,t):o},t.y0=function(n){return arguments.length?(i=n,t):i},t.y1=function(n){return arguments.length?(o=n,t):o},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?a=n:(a=za.get(n)||Li).key,s=a.reverse||a,l=a.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(f=n,t):f},t}function Yi(n){return n.radius}function Zi(n){return[n.x,n.y]}function Vi(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Io;return[e*Math.cos(r),e*Math.sin(r)]}}function Xi(){return 64}function $i(){return"circle"}function Wi(n){var t=Math.sqrt(n/Uo);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Ji(n){return function(){var t,e;(t=this[n])&&(e=t[t.active])&&(--t.count?delete t[t.active]:delete this[n],t.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function Gi(n,t,e){return So(n,Ia),n.namespace=t,n.id=e,n}function Qi(n,t,e,r){var i=n.id,o=n.namespace;return $(n,"function"==typeof e?function(n,u,a){n[o][i].tween.set(t,r(e.call(n,n.__data__,u,a)))}:(e=r(e),function(n){n[o][i].tween.set(t,e)}))}function no(n){return null==n&&(n=""),function(){this.textContent=n}}function to(n){return null==n?"__transition__":"__transition_"+n+"__"}function eo(n,t,e,r,i){var o=n[e]||(n[e]={active:0,count:0}),u=o[r];if(!u){var a=i.time;u=o[r]={tween:new g,time:a,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++o.count,lo.timer((function(i){function c(e){if(o.active>r)return l();var i=o[o.active];i&&(--o.count,delete o[o.active],i.event&&i.event.interrupt.call(n,n.__data__,i.index)),o.active=r,u.event&&u.event.start.call(n,n.__data__,t),u.tween.forEach((function(e,r){(r=r.call(n,n.__data__,t))&&g.push(r)})),h=u.ease,f=u.duration,lo.timer((function(){return d.c=s(e||1)?Ct:s,1}),0,a)}function s(e){if(o.active!==r)return 1;for(var i=e/f,a=h(i),c=g.length;c>0;)g[--c].call(n,a);return i>=1?(u.event&&u.event.end.call(n,n.__data__,t),l()):void 0}function l(){return--o.count?delete o[r]:delete n[e],1}var f,h,p=u.delay,d=cu,g=[];return d.t=p+a,i>=p?c(i-p):void(d.c=c)}),0,a)}}function ro(n,t,e){n.attr("transform",(function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"}))}function io(n,t,e){n.attr("transform",(function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"}))}function oo(n){return n.toISOString()}function uo(n,t,e){function r(t){return n(t)}function i(n,e){var r=(n[1]-n[0])/e,i=lo.bisect(Ja,r);return i==Ja.length?[t.year,xi(n.map((function(n){return n/31536e6})),e)[2]]:i?t[r/Ja[i-1]<Ja[i]/r?i-1:i]:[nc,xi(n,e)[2]]}return r.invert=function(t){return ao(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(ao)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,ao(+e+1),t).length}var o=r.domain(),u=hi(o),a=null==n?i(u,10):"number"==typeof n&&i(u,n);return a&&(n=a[0],t=a[1]),r.domain(gi(o,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=ao(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=ao(+t+1);return t}}:n))},r.ticks=function(n,t){var e=hi(r.domain()),o=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return o&&(n=o[0],t=o[1]),n.range(e[0],ao(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return uo(n.copy(),t,e)},yi(r,n)}function ao(n){return new Date(n)}function co(n){return JSON.parse(n.responseText)}function so(n){var t=po.createRange();return t.selectNode(po.body),t.createContextualFragment(n.responseText)}var lo={version:"3.5.5"},fo=[].slice,ho=function(n){return fo.call(n)},po=this.document;if(po)try{ho(po.documentElement.childNodes)[0].nodeType}catch(n){ho=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),po)try{po.createElement("DIV").style.setProperty("opacity",0,"")}catch(n){var go=this.Element.prototype,vo=go.setAttribute,yo=go.setAttributeNS,mo=this.CSSStyleDeclaration.prototype,xo=mo.setProperty;go.setAttribute=function(n,t){vo.call(this,n,t+"")},go.setAttributeNS=function(n,t,e){yo.call(this,n,t,e+"")},mo.setProperty=function(n,t,e){xo.call(this,n,t+"",e)}}lo.ascending=c,lo.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},lo.min=function(n,t){var e,r,i=-1,o=n.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=n[i])&&e>r&&(e=r)}else{for(;++i<o;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=r;break}for(;++i<o;)null!=(r=t.call(n,n[i],i))&&e>r&&(e=r)}return e},lo.max=function(n,t){var e,r,i=-1,o=n.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=n[i])&&r>e&&(e=r)}else{for(;++i<o;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=r;break}for(;++i<o;)null!=(r=t.call(n,n[i],i))&&r>e&&(e=r)}return e},lo.extent=function(n,t){var e,r,i,o=-1,u=n.length;if(1===arguments.length){for(;++o<u;)if(null!=(r=n[o])&&r>=r){e=i=r;break}for(;++o<u;)null!=(r=n[o])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++o<u;)if(null!=(r=t.call(n,n[o],o))&&r>=r){e=i=r;break}for(;++o<u;)null!=(r=t.call(n,n[o],o))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},lo.sum=function(n,t){var e,r=0,i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)l(e=+n[o])&&(r+=e);else for(;++o<i;)l(e=+t.call(n,n[o],o))&&(r+=e);return r},lo.mean=function(n,t){var e,r=0,i=n.length,o=-1,u=i;if(1===arguments.length)for(;++o<i;)l(e=s(n[o]))?r+=e:--u;else for(;++o<i;)l(e=s(t.call(n,n[o],o)))?r+=e:--u;return u?r/u:void 0},lo.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],o=e-r;return o?i+o*(n[r]-i):i},lo.median=function(n,t){var e,r=[],i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)l(e=s(n[o]))&&r.push(e);else for(;++o<i;)l(e=s(t.call(n,n[o],o)))&&r.push(e);return r.length?lo.quantile(r.sort(c),.5):void 0},lo.variance=function(n,t){var e,r,i=n.length,o=0,u=0,a=-1,c=0;if(1===arguments.length)for(;++a<i;)l(e=s(n[a]))&&(u+=(r=e-o)*(e-(o+=r/++c)));else for(;++a<i;)l(e=s(t.call(n,n[a],a)))&&(u+=(r=e-o)*(e-(o+=r/++c)));return c>1?u/(c-1):void 0},lo.deviation=function(){var n=lo.variance.apply(this,arguments);return n?Math.sqrt(n):n};var Mo=f(c);lo.bisectLeft=Mo.left,lo.bisect=lo.bisectRight=Mo.right,lo.bisector=function(n){return f(1===n.length?function(t,e){return c(n(t),e)}:n)},lo.shuffle=function(n,t,e){(o=arguments.length)<3&&(e=n.length,2>o&&(t=0));for(var r,i,o=e-t;o;)i=Math.random()*o--|0,r=n[o+t],n[o+t]=n[i+t],n[i+t]=r;return n},lo.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},lo.pairs=function(n){for(var t=0,e=n.length-1,r=n[0],i=new Array(0>e?0:e);e>t;)i[t]=[r,r=n[++t]];return i},lo.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=lo.min(arguments,h),e=new Array(t);++n<t;)for(var r,i=-1,o=e[n]=new Array(r);++i<r;)o[i]=arguments[i][n];return e},lo.transpose=function(n){return lo.zip.apply(lo,n)},lo.keys=function(n){var t=[];for(var e in n)t.push(e);return t},lo.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},lo.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},lo.merge=function(n){for(var t,e,r,i=n.length,o=-1,u=0;++o<i;)u+=n[o].length;for(e=new Array(u);--i>=0;)for(t=(r=n[i]).length;--t>=0;)e[--u]=r[t];return e};var _o=Math.abs;lo.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e==1/0)throw new Error("infinite range");var r,i=[],o=p(_o(e)),u=-1;if(n*=o,t*=o,0>(e*=o))for(;(r=n+e*++u)>t;)i.push(r/o);else for(;(r=n+e*++u)<t;)i.push(r/o);return i},lo.map=function(n,t){var e=new g;if(n instanceof g)n.forEach((function(n,t){e.set(n,t)}));else if(Array.isArray(n)){var r,i=-1,o=n.length;if(1===arguments.length)for(;++i<o;)e.set(i,n[i]);else for(;++i<o;)e.set(t.call(n,r=n[i],i),r)}else for(var u in n)e.set(u,n[u]);return e};var bo="__proto__",wo="\0";d(g,{has:m,get:function(n){return this._[v(n)]},set:function(n,t){return this._[v(n)]=t},remove:x,keys:M,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:y(t),value:this._[t]});return n},size:_,empty:b,forEach:function(n){for(var t in this._)n.call(this,y(t),this._[t])}}),lo.nest=function(){function n(o,u,a){if(a>=i.length)return e?e.call(r,u):t?u.sort(t):u;for(var c,s,l,f,h=-1,p=u.length,d=i[a++],v=new g;++h<p;)(f=v.get(c=d(s=u[h])))?f.push(s):v.set(c,[s]);return o?(s=o(),l=function(t,e){s.set(t,n(o,e,a))}):(s={},l=function(t,e){s[t]=n(o,e,a)}),v.forEach(l),s}var t,e,r={},i=[],o=[];return r.map=function(t,e){return n(e,t,0)},r.entries=function(t){return function n(t,e){if(e>=i.length)return t;var r=[],u=o[e++];return t.forEach((function(t,i){r.push({key:t,values:n(i,e)})})),u?r.sort((function(n,t){return u(n.key,t.key)})):r}(n(lo.map,t,0),0)},r.key=function(n){return i.push(n),r},r.sortKeys=function(n){return o[i.length-1]=n,r},r.sortValues=function(n){return t=n,r},r.rollup=function(n){return e=n,r},r},lo.set=function(n){var t=new w;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},d(w,{has:m,add:function(n){return this._[v(n+="")]=!0,n},remove:x,values:M,size:_,empty:b,forEach:function(n){for(var t in this._)n.call(this,y(t))}}),lo.behavior={},lo.rebind=function(n,t){for(var e,r=1,i=arguments.length;++r<i;)n[e=arguments[r]]=E(n,t,t[e]);return n};var ko=["webkit","ms","moz","Moz","o","O"];lo.dispatch=function(){for(var n=new A,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=C(n);return n},A.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},lo.event=null,lo.requote=function(n){return n.replace(Eo,"\\$&")};var Eo=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,So={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},No=function(n,t){return t.querySelector(n)},Ao=function(n,t){return t.querySelectorAll(n)},Co=function(n,t){var e=n.matches||n[S(n,"matchesSelector")];return(Co=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(No=function(n,t){return Sizzle(n,t)[0]||null},Ao=Sizzle,Co=Sizzle.matchesSelector),lo.selection=function(){return lo.select(po.documentElement)};var qo=lo.selection.prototype=[];qo.select=function(n){var t,e,r,i,o=[];n=R(n);for(var u=-1,a=this.length;++u<a;){o.push(t=[]),t.parentNode=(r=this[u]).parentNode;for(var c=-1,s=r.length;++c<s;)(i=r[c])?(t.push(e=n.call(i,i.__data__,c,u)),e&&"__data__"in i&&(e.__data__=i.__data__)):t.push(null)}return L(o)},qo.selectAll=function(n){var t,e,r=[];n=O(n);for(var i=-1,o=this.length;++i<o;)for(var u=this[i],a=-1,c=u.length;++a<c;)(e=u[a])&&(r.push(t=ho(n.call(e,e.__data__,a,i))),t.parentNode=e);return L(r)};var To={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};lo.ns={prefix:To,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&(e=n.slice(0,t),n=n.slice(t+1)),To.hasOwnProperty(e)?{space:To[e],local:n}:n}},qo.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return(n=lo.ns.qualify(n)).local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(D(t,n[t]));return this}return this.each(D(n,t))},qo.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=U(n)).length,i=-1;if(t=e.classList){for(;++i<r;)if(!t.contains(n[i]))return!1}else for(t=e.getAttribute("class");++i<r;)if(!P(n[i]).test(t))return!1;return!0}for(t in n)this.each(F(t,n[t]));return this}return this.each(F(n,t))},qo.style=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){for(e in 2>r&&(t=""),n)this.each(I(e,n[e],t));return this}if(2>r){var i=this.node();return a(i).getComputedStyle(i,null).getPropertyValue(n)}e=""}return this.each(I(n,t,e))},qo.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(B(t,n[t]));return this}return this.each(B(n,t))},qo.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},qo.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},qo.append=function(n){return n=K(n),this.select((function(){return this.appendChild(n.apply(this,arguments))}))},qo.insert=function(n,t){return n=K(n),t=R(t),this.select((function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)}))},qo.remove=function(){return this.each(Y)},qo.data=function(n,t){function e(n,e){var r,i,o,u=n.length,l=e.length,f=Math.min(u,l),h=new Array(l),p=new Array(l),d=new Array(u);if(t){var v,y=new g,m=new Array(u);for(r=-1;++r<u;)y.has(v=t.call(i=n[r],i.__data__,r))?d[r]=i:y.set(v,i),m[r]=v;for(r=-1;++r<l;)(i=y.get(v=t.call(e,o=e[r],r)))?!0!==i&&(h[r]=i,i.__data__=o):p[r]=Z(o),y.set(v,!0);for(r=-1;++r<u;)!0!==y.get(m[r])&&(d[r]=n[r])}else{for(r=-1;++r<f;)i=n[r],o=e[r],i?(i.__data__=o,h[r]=i):p[r]=Z(o);for(;l>r;++r)p[r]=Z(e[r]);for(;u>r;++r)d[r]=n[r]}p.update=h,p.parentNode=h.parentNode=d.parentNode=n.parentNode,a.push(p),c.push(h),s.push(d)}var r,i,o=-1,u=this.length;if(!arguments.length){for(n=new Array(u=(r=this[0]).length);++o<u;)(i=r[o])&&(n[o]=i.__data__);return n}var a=W([]),c=L([]),s=L([]);if("function"==typeof n)for(;++o<u;)e(r=this[o],n.call(r,r.parentNode.__data__,o));else for(;++o<u;)e(r=this[o],n);return c.enter=function(){return a},c.exit=function(){return s},c},qo.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},qo.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=V(n));for(var o=0,u=this.length;u>o;o++){i.push(t=[]),t.parentNode=(e=this[o]).parentNode;for(var a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,o)&&t.push(r)}return L(i)},qo.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],i=r.length-1,o=r[i];--i>=0;)(e=r[i])&&(o&&o!==e.nextSibling&&o.parentNode.insertBefore(e,o),o=e);return this},qo.sort=function(n){n=X.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},qo.each=function(n){return $(this,(function(t,e,r){n.call(t,t.__data__,e,r)}))},qo.call=function(n){var t=ho(arguments);return n.apply(t[0]=this,t),this},qo.empty=function(){return!this.node()},qo.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,i=e.length;i>r;r++){var o=e[r];if(o)return o}return null},qo.size=function(){var n=0;return $(this,(function(){++n})),n};var zo=[];lo.selection.enter=W,lo.selection.enter.prototype=zo,zo.append=qo.append,zo.empty=qo.empty,zo.node=qo.node,zo.call=qo.call,zo.size=qo.size,zo.select=function(n){for(var t,e,r,i,o,u=[],a=-1,c=this.length;++a<c;){r=(i=this[a]).update,u.push(t=[]),t.parentNode=i.parentNode;for(var s=-1,l=i.length;++s<l;)(o=i[s])?(t.push(r[s]=e=n.call(i.parentNode,o.__data__,s,a)),e.__data__=o.__data__):t.push(null)}return L(u)},zo.insert=function(n,t){return arguments.length<2&&(t=J(this)),qo.insert.call(this,n,t)},lo.select=function(n){var t;return"string"==typeof n?(t=[No(n,po)]).parentNode=po.documentElement:(t=[n]).parentNode=u(n),L([t])},lo.selectAll=function(n){var t;return"string"==typeof n?(t=ho(Ao(n,po))).parentNode=po.documentElement:(t=n).parentNode=null,L([t])},qo.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){for(e in 2>r&&(t=!1),n)this.each(G(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(G(n,t,e))};var Lo=lo.map({mouseenter:"mouseover",mouseleave:"mouseout"});po&&Lo.forEach((function(n){"on"+n in po&&Lo.remove(n)}));var Ro,Oo=0;lo.mouse=function(n){return en(n,T())};var Do=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;lo.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=T().changedTouches),t)for(var r,i=0,o=t.length;o>i;++i)if((r=t[i]).identifier===e)return en(n,r)},lo.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function t(n,t,i,o,u){return function(){function a(){var n,e,r=t(h,g);r&&(n=r[0]-x[0],e=r[1]-x[1],d|=n|e,x=r,p({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:n,dy:e}))}function c(){t(h,g)&&(y.on(o+v,null).on(u+v,null),m(d&&lo.event.target===f),p({type:"dragend"}))}var s,l=this,f=lo.event.target,h=l.parentNode,p=e.of(l,arguments),d=0,g=n(),v=".drag"+(null==g?"":"-"+g),y=lo.select(i(f)).on(o+v,a).on(u+v,c),m=tn(f),x=t(h,g);r?s=[(s=r.apply(l,arguments)).x-x[0],s.y-x[1]]:s=[0,0],p({type:"dragstart"})}}var e=z(n,"drag","dragstart","dragend"),r=null,i=t(N,lo.mouse,a,"mousemove","mouseup"),o=t(rn,lo.touch,k,"touchmove","touchend");return n.origin=function(t){return arguments.length?(r=t,n):r},lo.rebind(n,e,"on")},lo.touches=function(n,t){return arguments.length<2&&(t=T().touches),t?ho(t).map((function(t){var e=en(n,t);return e.identifier=t.identifier,e})):[]};var jo=1e-6,Po=jo*jo,Uo=Math.PI,Fo=2*Uo,Ho=Fo-jo,Io=Uo/2,Bo=Uo/180,Ko=180/Uo,Yo=Math.SQRT2;lo.interpolateZoom=function(n,t){function e(n){var t=n*y;if(v){var e=sn(g),u=o/(2*h)*(e*function(n){return((n=Math.exp(2*n))-1)/(n+1)}(Yo*t+g)-function(n){return((n=Math.exp(n))-1/n)/2}(g));return[r+u*s,i+u*l,o*e/sn(Yo*t+g)]}return[r+n*s,i+n*l,o*Math.exp(Yo*t)]}var r=n[0],i=n[1],o=n[2],u=t[0],a=t[1],c=t[2],s=u-r,l=a-i,f=s*s+l*l,h=Math.sqrt(f),p=(c*c-o*o+4*f)/(2*o*2*h),d=(c*c-o*o-4*f)/(2*c*2*h),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(d*d+1)-d)-g,y=(v||Math.log(c/o))/Yo;return e.duration=1e3*y,e},lo.behavior.zoom=function(){function n(n){n.on(A,l).on(Vo+".zoom",h).on("dblclick.zoom",p).on(L,f)}function t(n){return[(n[0]-w.x)/w.k,(n[1]-w.y)/w.k]}function e(n){w.k=Math.max(E[0],Math.min(E[1],n))}function r(n,t){t=function(n){return[n[0]*w.k+w.x,n[1]*w.k+w.y]}(t),w.x+=n[0]-t[0],w.y+=n[1]-t[1]}function i(t,i,o,u){t.__chart__={x:w.x,y:w.y,k:w.k},e(Math.pow(2,u)),r(g=i,o),t=lo.select(t),S>0&&(t=t.transition().duration(S)),t.call(n.event)}function o(){M&&M.domain(x.range().map((function(n){return(n-w.x)/w.k})).map(x.invert)),b&&b.domain(_.range().map((function(n){return(n-w.y)/w.k})).map(_.invert))}function u(n){N++||n({type:"zoomstart"})}function c(n){o(),n({type:"zoom",scale:w.k,translate:[w.x,w.y]})}function s(n){--N||n({type:"zoomend"}),g=null}function l(){function n(){f=1,r(lo.mouse(i),p),c(l)}function e(){h.on(C,null).on(T,null),d(f&&lo.event.target===o),s(l)}var i=this,o=lo.event.target,l=R.of(i,arguments),f=0,h=lo.select(a(i)).on(C,n).on(T,e),p=t(lo.mouse(i)),d=tn(i);Ha.call(i),u(l)}function f(){function n(){var n=lo.touches(d);return p=w.k,n.forEach((function(n){n.identifier in v&&(v[n.identifier]=t(n))})),n}function o(){var t=lo.event.target;lo.select(t).on(M,a).on(_,h),b.push(t);for(var e=lo.event.changedTouches,r=0,o=e.length;o>r;++r)v[e[r].identifier]=null;var u=n(),c=Date.now();if(1===u.length){if(500>c-m){var s=u[0];i(d,s,v[s.identifier],Math.floor(Math.log(w.k)/Math.LN2)+1),q()}m=c}else if(u.length>1){s=u[0];var l=u[1],f=s[0]-l[0],p=s[1]-l[1];y=f*f+p*p}}function a(){var n,t,i,o,u=lo.touches(d);Ha.call(d);for(var a=0,s=u.length;s>a;++a,o=null)if(i=u[a],o=v[i.identifier]){if(t)break;n=i,t=o}if(o){var l=(l=i[0]-n[0])*l+(l=i[1]-n[1])*l,f=y&&Math.sqrt(l/y);n=[(n[0]+i[0])/2,(n[1]+i[1])/2],t=[(t[0]+o[0])/2,(t[1]+o[1])/2],e(f*p)}m=null,r(n,t),c(g)}function h(){if(lo.event.touches.length){for(var t=lo.event.changedTouches,e=0,r=t.length;r>e;++e)delete v[t[e].identifier];for(var i in v)return void n()}lo.selectAll(b).on(x,null),k.on(A,l).on(L,f),E(),s(g)}var p,d=this,g=R.of(d,arguments),v={},y=0,x=".zoom-"+lo.event.changedTouches[0].identifier,M="touchmove"+x,_="touchend"+x,b=[],k=lo.select(d),E=tn(d);o(),u(g),k.on(A,null).on(L,o)}function h(){var n=R.of(this,arguments);y?clearTimeout(y):(d=t(g=v||lo.mouse(this)),Ha.call(this),u(n)),y=setTimeout((function(){y=null,s(n)}),50),q(),e(Math.pow(2,.002*Zo())*w.k),r(g,d),c(n)}function p(){var n=lo.mouse(this),e=Math.log(w.k)/Math.LN2;i(this,n,t(n),lo.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var d,g,v,y,m,x,M,_,b,w={x:0,y:0,k:1},k=[960,500],E=Xo,S=250,N=0,A="mousedown.zoom",C="mousemove.zoom",T="mouseup.zoom",L="touchstart.zoom",R=z(n,"zoomstart","zoom","zoomend");return Vo||(Vo="onwheel"in po?(Zo=function(){return-lo.event.deltaY*(lo.event.deltaMode?120:1)},"wheel"):"onmousewheel"in po?(Zo=function(){return lo.event.wheelDelta},"mousewheel"):(Zo=function(){return-lo.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each((function(){var n=R.of(this,arguments),t=w;Ua?lo.select(this).transition().each("start.zoom",(function(){w=this.__chart__||{x:0,y:0,k:1},u(n)})).tween("zoom:zoom",(function(){var e=k[0],r=k[1],i=g?g[0]:e/2,o=g?g[1]:r/2,u=lo.interpolateZoom([(i-w.x)/w.k,(o-w.y)/w.k,e/w.k],[(i-t.x)/t.k,(o-t.y)/t.k,e/t.k]);return function(t){var r=u(t),a=e/r[2];this.__chart__=w={x:i-r[0]*a,y:o-r[1]*a,k:a},c(n)}})).each("interrupt.zoom",(function(){s(n)})).each("end.zoom",(function(){s(n)})):(this.__chart__=w,u(n),c(n),s(n))}))},n.translate=function(t){return arguments.length?(w={x:+t[0],y:+t[1],k:w.k},o(),n):[w.x,w.y]},n.scale=function(t){return arguments.length?(w={x:w.x,y:w.y,k:+t},o(),n):w.k},n.scaleExtent=function(t){return arguments.length?(E=null==t?Xo:[+t[0],+t[1]],n):E},n.center=function(t){return arguments.length?(v=t&&[+t[0],+t[1]],n):v},n.size=function(t){return arguments.length?(k=t&&[+t[0],+t[1]],n):k},n.duration=function(t){return arguments.length?(S=+t,n):S},n.x=function(t){return arguments.length?(M=t,x=t.copy(),w={x:0,y:0,k:1},n):M},n.y=function(t){return arguments.length?(b=t,_=t.copy(),w={x:0,y:0,k:1},n):b},lo.rebind(n,R,"on")};var Zo,Vo,Xo=[0,1/0];lo.color=fn,fn.prototype.toString=function(){return this.rgb()+""},lo.hsl=hn;var $o=hn.prototype=new fn;$o.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new hn(this.h,this.s,this.l/n)},$o.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new hn(this.h,this.s,n*this.l)},$o.rgb=function(){return pn(this.h,this.s,this.l)},lo.hcl=dn;var Wo=dn.prototype=new fn;Wo.brighter=function(n){return new dn(this.h,this.c,Math.min(100,this.l+Jo*(arguments.length?n:1)))},Wo.darker=function(n){return new dn(this.h,this.c,Math.max(0,this.l-Jo*(arguments.length?n:1)))},Wo.rgb=function(){return gn(this.h,this.c,this.l).rgb()},lo.lab=vn;var Jo=18,Go=.95047,Qo=1,nu=1.08883,tu=vn.prototype=new fn;tu.brighter=function(n){return new vn(Math.min(100,this.l+Jo*(arguments.length?n:1)),this.a,this.b)},tu.darker=function(n){return new vn(Math.max(0,this.l-Jo*(arguments.length?n:1)),this.a,this.b)},tu.rgb=function(){return yn(this.l,this.a,this.b)},lo.rgb=bn;var eu=bn.prototype=new fn;eu.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,i=30;return t||e||r?(t&&i>t&&(t=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new bn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new bn(i,i,i)},eu.darker=function(n){return new bn((n=Math.pow(.7,arguments.length?n:1))*this.r,n*this.g,n*this.b)},eu.hsl=function(){return Nn(this.r,this.g,this.b)},eu.toString=function(){return"#"+En(this.r)+En(this.g)+En(this.b)};var ru=lo.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});ru.forEach((function(n,t){ru.set(n,wn(t))})),lo.functor=Tn,lo.xhr=zn(k),lo.dsv=function(n,t){function e(n,e,o){arguments.length<3&&(o=e,e=null);var u=Ln(n,t,null==e?r:i(e),o);return u.row=function(n){return arguments.length?u.response(null==(e=n)?r:i(n)):e},u}function r(n){return e.parse(n.responseText)}function i(n){return function(t){return e.parse(t.responseText,n)}}function o(t){return t.map(u).join(n)}function u(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),c=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,(function(n,e){if(r)return r(n,e-1);var i=new Function("d","return {"+n.map((function(n,t){return JSON.stringify(n)+": d["+t+"]"})).join(",")+"}");r=t?function(n,e){return t(i(n),e)}:i}))},e.parseRows=function(n,t){function e(){if(l>=s)return u;if(i)return i=!1,o;var t=l;if(34===n.charCodeAt(t)){for(var e=t;e++<s;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}return l=e+2,13===(r=n.charCodeAt(e+1))?(i=!0,10===n.charCodeAt(e+2)&&++l):10===r&&(i=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;s>l;){var r,a=1;if(10===(r=n.charCodeAt(l++)))i=!0;else if(13===r)i=!0,10===n.charCodeAt(l)&&(++l,++a);else if(r!==c)continue;return n.slice(t,l-a)}return n.slice(t)}for(var r,i,o={},u={},a=[],s=n.length,l=0,f=0;(r=e())!==u;){for(var h=[];r!==o&&r!==u;)h.push(r),r=e();t&&null==(h=t(h,f++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new w,i=[];return t.forEach((function(n){for(var t in n)r.has(t)||i.push(r.add(t))})),[i.map(u).join(n)].concat(t.map((function(t){return i.map((function(n){return u(t[n])})).join(n)}))).join("\n")},e.formatRows=function(n){return n.map(o).join("\n")},e},lo.csv=lo.dsv(",","text/csv"),lo.tsv=lo.dsv("\t","text/tab-separated-values");var iu,ou,uu,au,cu,su=this[S(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};lo.timer=function(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var i=e+t,o={c:n,t:i,f:!1,n:null};ou?ou.n=o:iu=o,ou=o,uu||(au=clearTimeout(au),uu=1,su(Rn))},lo.timer.flush=function(){On(),Dn()},lo.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var lu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(n,t){var e=Math.pow(10,3*_o(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}));lo.formatPrefix=function(n,t){var e=0;return n&&(0>n&&(n*=-1),t&&(n=lo.round(n,jn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),lu[8+e/3]};var fu=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,hu=lo.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=lo.round(n,jn(n,t))).toFixed(Math.max(0,Math.min(20,jn(n*(1+1e-15),t))))}}),pu=lo.time={},du=Date;Fn.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(){gu.setUTCDate.apply(this._,arguments)},setDay:function(){gu.setUTCDay.apply(this._,arguments)},setFullYear:function(){gu.setUTCFullYear.apply(this._,arguments)},setHours:function(){gu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){gu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){gu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){gu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){gu.setUTCSeconds.apply(this._,arguments)},setTime:function(){gu.setTime.apply(this._,arguments)}};var gu=Date.prototype;pu.year=Hn((function(n){return(n=pu.day(n)).setMonth(0,1),n}),(function(n,t){n.setFullYear(n.getFullYear()+t)}),(function(n){return n.getFullYear()})),pu.years=pu.year.range,pu.years.utc=pu.year.utc.range,pu.day=Hn((function(n){var t=new du(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t}),(function(n,t){n.setDate(n.getDate()+t)}),(function(n){return n.getDate()-1})),pu.days=pu.day.range,pu.days.utc=pu.day.utc.range,pu.dayOfYear=function(n){var t=pu.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(n,t){t=7-t;var e=pu[n]=Hn((function(n){return(n=pu.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n}),(function(n,t){n.setDate(n.getDate()+7*Math.floor(t))}),(function(n){var e=pu.year(n).getDay();return Math.floor((pu.dayOfYear(n)+(e+t)%7)/7)-(e!==t)}));pu[n+"s"]=e.range,pu[n+"s"].utc=e.utc.range,pu[n+"OfYear"]=function(n){var e=pu.year(n).getDay();return Math.floor((pu.dayOfYear(n)+(e+t)%7)/7)}})),pu.week=pu.sunday,pu.weeks=pu.sunday.range,pu.weeks.utc=pu.sunday.utc.range,pu.weekOfYear=pu.sundayOfYear;var vu={"-":"",_:" ",0:"0"},yu=/^\s*\d+/,mu=/^%/;lo.locale=function(n){return{numberFormat:Pn(n),timeFormat:Bn(n)}};var xu=lo.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});lo.format=xu.numberFormat,lo.geo={},st.prototype={s:0,t:0,add:function(n){lt(n,this.t,Mu),lt(Mu.s,this.s,this),this.s?this.t+=Mu.t:this.s=Mu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Mu=new st;lo.geo.stream=function(n,t){n&&_u.hasOwnProperty(n.type)?_u[n.type](n,t):ft(n,t)};var _u={Feature:function(n,t){ft(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++r<i;)ft(e[r].geometry,t)}},bu={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){ht(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)ht(e[r],t,0)},Polygon:function(n,t){pt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)pt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,i=e.length;++r<i;)ft(e[r],t)}};lo.geo.area=function(n){return wu=0,lo.geo.stream(n,Eu),wu};var wu,ku=new st,Eu={sphere:function(){wu+=4*Uo},point:N,lineStart:N,lineEnd:N,polygonStart:function(){ku.reset(),Eu.lineStart=dt},polygonEnd:function(){var n=2*ku;wu+=0>n?4*Uo+n:n,Eu.lineStart=Eu.lineEnd=Eu.point=N}};lo.geo.bounds=function(){function n(n,t){x.push(M=[l=n,h=n]),f>t&&(f=t),t>p&&(p=t)}function t(t,e){var r=gt([t*Bo,e*Bo]);if(y){var i=yt(y,r),o=yt([i[1],-i[0],0],i);Mt(o),o=_t(o);var u=t-d,c=u>0?1:-1,s=o[0]*Ko*c,g=_o(u)>180;if(g^(s>c*d&&c*t>s))(v=o[1]*Ko)>p&&(p=v);else if(g^((s=(s+360)%360-180)>c*d&&c*t>s)){var v=-o[1]*Ko;f>v&&(f=v)}else f>e&&(f=e),e>p&&(p=e);g?d>t?a(l,t)>a(l,h)&&(h=t):a(t,h)>a(l,h)&&(l=t):h>=l?(l>t&&(l=t),t>h&&(h=t)):t>d?a(l,t)>a(l,h)&&(h=t):a(t,h)>a(l,h)&&(l=t)}else n(t,e);y=r,d=t}function e(){_.point=t}function r(){M[0]=l,M[1]=h,_.point=n,y=null}function i(n,e){if(y){var r=n-d;m+=_o(r)>180?r+(r>0?360:-360):r}else g=n,v=e;Eu.point(n,e),t(n,e)}function o(){Eu.lineStart()}function u(){i(g,v),Eu.lineEnd(),_o(m)>jo&&(l=-(h=180)),M[0]=l,M[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function c(n,t){return n[0]-t[0]}function s(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var l,f,h,p,d,g,v,y,m,x,M,_={point:n,lineStart:e,lineEnd:r,polygonStart:function(){_.point=i,_.lineStart=o,_.lineEnd=u,m=0,Eu.polygonStart()},polygonEnd:function(){Eu.polygonEnd(),_.point=n,_.lineStart=e,_.lineEnd=r,0>ku?(l=-(h=180),f=-(p=90)):m>jo?p=90:-jo>m&&(f=-90),M[0]=l,M[1]=h}};return function(n){if(p=h=-(l=f=1/0),x=[],lo.geo.stream(n,_),o=x.length){x.sort(c);for(var t=1,e=[d=x[0]];o>t;++t)s((i=x[t])[0],d)||s(i[1],d)?(a(d[0],i[1])>a(d[0],d[1])&&(d[1]=i[1]),a(i[0],d[1])>a(d[0],d[1])&&(d[0]=i[0])):e.push(d=i);for(var r,i,o,u=-1/0,d=(t=0,e[o=e.length-1]);o>=t;d=i,++t)i=e[t],(r=a(d[1],i[0]))>u&&(u=r,l=i[0],h=d[1])}return x=M=null,1/0===l||1/0===f?[[NaN,NaN],[NaN,NaN]]:[[l,f],[h,p]]}}(),lo.geo.centroid=function(n){Su=Nu=Au=Cu=qu=Tu=zu=Lu=Ru=Ou=Du=0,lo.geo.stream(n,ju);var t=Ru,e=Ou,r=Du,i=t*t+e*e+r*r;return Po>i&&(t=Tu,e=zu,r=Lu,jo>Nu&&(t=Au,e=Cu,r=qu),Po>(i=t*t+e*e+r*r))?[NaN,NaN]:[Math.atan2(e,t)*Ko,cn(r/Math.sqrt(i))*Ko]};var Su,Nu,Au,Cu,qu,Tu,zu,Lu,Ru,Ou,Du,ju={sphere:N,point:wt,lineStart:Et,lineEnd:St,polygonStart:function(){ju.lineStart=Nt},polygonEnd:function(){ju.lineStart=Et}},Pu=Lt(Ct,(function(n){var t,e=NaN,r=NaN,i=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(o,u){var a=o>0?Uo:-Uo,c=_o(o-e);_o(c-Uo)<jo?(n.point(e,r=(r+u)/2>0?Io:-Io),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(o,r),t=0):i!==a&&c>=Uo&&(_o(e-i)<jo&&(e-=i*jo),_o(o-a)<jo&&(o-=a*jo),r=function(n,t,e,r){var i,o,u=Math.sin(n-e);return _o(u)>jo?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(t))*Math.sin(n))/(i*o*u)):(t+r)/2}(e,r,o,u),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),t=0),n.point(e=o,r=u),i=a},lineEnd:function(){n.lineEnd(),e=r=NaN},clean:function(){return 2-t}}}),(function(n,t,e,r){var i;if(null==n)i=e*Io,r.point(-Uo,i),r.point(0,i),r.point(Uo,i),r.point(Uo,0),r.point(Uo,-i),r.point(0,-i),r.point(-Uo,-i),r.point(-Uo,0),r.point(-Uo,i);else if(_o(n[0]-t[0])>jo){var o=n[0]<t[0]?Uo:-Uo;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Uo,-Uo/2]),Uu=1e9;lo.geo.clipExtent=function(){var n,t,e,r,i,o,u={stream:function(n){return i&&(i.valid=!1),(i=o(n)).valid=!0,i},extent:function(a){return arguments.length?(o=Ut(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),u):[[n,t],[e,r]]}};return u.extent([[0,0],[960,500]])},(lo.geo.conicEqualArea=function(){return Ft(Ht)}).raw=Ht,lo.geo.albers=function(){return lo.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},lo.geo.albersUsa=function(){function n(n){var o=n[0],u=n[1];return t=null,e(o,u),t||(r(o,u),t)||i(o,u),t}var t,e,r,i,o=lo.geo.albers(),u=lo.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=lo.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=o.scale(),e=o.translate(),r=(n[0]-e[0])/t,i=(n[1]-e[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?u:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:o).invert(n)},n.stream=function(n){var t=o.stream(n),e=u.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(o.precision(t),u.precision(t),a.precision(t),n):o.precision()},n.scale=function(t){return arguments.length?(o.scale(t),u.scale(.35*t),a.scale(t),n.translate(o.translate())):o.scale()},n.translate=function(t){if(!arguments.length)return o.translate();var s=o.scale(),l=+t[0],f=+t[1];return e=o.translate(t).clipExtent([[l-.455*s,f-.238*s],[l+.455*s,f+.238*s]]).stream(c).point,r=u.translate([l-.307*s,f+.201*s]).clipExtent([[l-.425*s+jo,f+.12*s+jo],[l-.214*s-jo,f+.234*s-jo]]).stream(c).point,i=a.translate([l-.205*s,f+.212*s]).clipExtent([[l-.214*s+jo,f+.166*s+jo],[l-.115*s-jo,f+.234*s-jo]]).stream(c).point,n},n.scale(1070)};var Fu,Hu,Iu,Bu,Ku,Yu,Zu={point:N,lineStart:N,lineEnd:N,polygonStart:function(){Hu=0,Zu.lineStart=It},polygonEnd:function(){Zu.lineStart=Zu.lineEnd=Zu.point=N,Fu+=_o(Hu/2)}},Vu={point:function(n,t){Iu>n&&(Iu=n),n>Ku&&(Ku=n),Bu>t&&(Bu=t),t>Yu&&(Yu=t)},lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N},Xu={point:Yt,lineStart:Zt,lineEnd:Vt,polygonStart:function(){Xu.lineStart=Xt},polygonEnd:function(){Xu.point=Yt,Xu.lineStart=Zt,Xu.lineEnd=Vt}};lo.geo.path=function(){function n(n){return n&&("function"==typeof a&&o.pointRadius(+a.apply(this,arguments)),u&&u.valid||(u=i(o)),lo.geo.stream(n,u)),o.result()}function t(){return u=null,n}var e,r,i,o,u,a=4.5;return n.area=function(n){return Fu=0,lo.geo.stream(n,i(Zu)),Fu},n.centroid=function(n){return Au=Cu=qu=Tu=zu=Lu=Ru=Ou=Du=0,lo.geo.stream(n,i(Xu)),Du?[Ru/Du,Ou/Du]:Lu?[Tu/Lu,zu/Lu]:qu?[Au/qu,Cu/qu]:[NaN,NaN]},n.bounds=function(n){return Ku=Yu=-(Iu=Bu=1/0),lo.geo.stream(n,i(Vu)),[[Iu,Bu],[Ku,Yu]]},n.projection=function(n){return arguments.length?(i=(e=n)?n.stream||Jt(n):k,t()):e},n.context=function(n){return arguments.length?(o=null==(r=n)?new Bt:new $t(n),"function"!=typeof a&&o.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(o.pointRadius(+t),+t),n):a},n.projection(lo.geo.albersUsa()).context(null)},lo.geo.transform=function(n){return{stream:function(t){var e=new Gt(t);for(var r in n)e[r]=n[r];return e}}},Gt.prototype={point:function(n,t){this.stream.point(n,t)},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()}},lo.geo.projection=ne,lo.geo.projectionMutator=te,(lo.geo.equirectangular=function(){return ne(re)}).raw=re.invert=re,lo.geo.rotation=function(n){function t(t){return(t=n(t[0]*Bo,t[1]*Bo))[0]*=Ko,t[1]*=Ko,t}return n=oe(n[0]%360*Bo,n[1]*Bo,n.length>2?n[2]*Bo:0),t.invert=function(t){return(t=n.invert(t[0]*Bo,t[1]*Bo))[0]*=Ko,t[1]*=Ko,t},t},ie.invert=re,lo.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=oe(-n[0]*Bo,-n[1]*Bo,0).invert,i=[];return e(null,null,1,{point:function(n,e){i.push(n=t(n,e)),n[0]*=Ko,n[1]*=Ko}}),{type:"Polygon",coordinates:[i]}}var t,e,r=[0,0],i=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=se((t=+r)*Bo,i*Bo),n):t},n.precision=function(r){return arguments.length?(e=se(t*Bo,(i=+r)*Bo),n):i},n.angle(90)},lo.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Bo,i=n[1]*Bo,o=t[1]*Bo,u=Math.sin(r),a=Math.cos(r),c=Math.sin(i),s=Math.cos(i),l=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((e=f*u)*e+(e=s*l-c*f*a)*e),c*l+s*f*a)},lo.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return lo.range(Math.ceil(o/v)*v,i,v).map(h).concat(lo.range(Math.ceil(s/y)*y,c,y).map(p)).concat(lo.range(Math.ceil(r/d)*d,e,d).filter((function(n){return _o(n%v)>jo})).map(l)).concat(lo.range(Math.ceil(a/g)*g,u,g).filter((function(n){return _o(n%y)>jo})).map(f))}var e,r,i,o,u,a,c,s,l,f,h,p,d=10,g=d,v=90,y=360,m=2.5;return n.lines=function(){return t().map((function(n){return{type:"LineString",coordinates:n}}))},n.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(c).slice(1),h(i).reverse().slice(1),p(s).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],s=+t[0][1],c=+t[1][1],o>i&&(t=o,o=i,i=t),s>c&&(t=s,s=c,c=t),n.precision(m)):[[o,s],[i,c]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),a>u&&(t=a,a=u,u=t),n.precision(m)):[[r,a],[e,u]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(v=+t[0],y=+t[1],n):[v,y]},n.minorStep=function(t){return arguments.length?(d=+t[0],g=+t[1],n):[d,g]},n.precision=function(t){return arguments.length?(m=+t,l=fe(a,u,90),f=he(r,e,m),h=fe(s,c,90),p=he(o,i,m),n):m},n.majorExtent([[-180,-90+jo],[180,90-jo]]).minorExtent([[-180,-80-jo],[180,80+jo]])},lo.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}var t,e,r=pe,i=de;return n.distance=function(){return lo.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(i=t,e="function"==typeof t?null:t,n):i},n.precision=function(){return arguments.length?n:0},n},lo.geo.interpolate=function(n,t){return function(n,t,e,r){var i=Math.cos(t),o=Math.sin(t),u=Math.cos(r),a=Math.sin(r),c=i*Math.cos(n),s=i*Math.sin(n),l=u*Math.cos(e),f=u*Math.sin(e),h=2*Math.asin(Math.sqrt(ln(r-t)+i*u*ln(e-n))),p=1/Math.sin(h),d=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*c+t*l,i=e*s+t*f,u=e*o+t*a;return[Math.atan2(i,r)*Ko,Math.atan2(u,Math.sqrt(r*r+i*i))*Ko]}:function(){return[n*Ko,t*Ko]};return d.distance=h,d}(n[0]*Bo,n[1]*Bo,t[0]*Bo,t[1]*Bo)},lo.geo.length=function(n){return $u=0,lo.geo.stream(n,Wu),$u};var $u,Wu={sphere:N,point:N,lineStart:function(){function n(n,i){var o=Math.sin(i*=Bo),u=Math.cos(i),a=_o((n*=Bo)-t),c=Math.cos(a);$u+=Math.atan2(Math.sqrt((a=u*Math.sin(a))*a+(a=r*o-e*u*c)*a),e*o+r*u*c),t=n,e=o,r=u}var t,e,r;Wu.point=function(i,o){t=i*Bo,e=Math.sin(o*=Bo),r=Math.cos(o),Wu.point=n},Wu.lineEnd=function(){Wu.point=Wu.lineEnd=N}},lineEnd:N,polygonStart:N,polygonEnd:N},Ju=ge((function(n){return Math.sqrt(2/(1+n))}),(function(n){return 2*Math.asin(n/2)}));(lo.geo.azimuthalEqualArea=function(){return ne(Ju)}).raw=Ju;var Gu=ge((function(n){var t=Math.acos(n);return t&&t/Math.sin(t)}),k);(lo.geo.azimuthalEquidistant=function(){return ne(Gu)}).raw=Gu,(lo.geo.conicConformal=function(){return Ft(ve)}).raw=ve,(lo.geo.conicEquidistant=function(){return Ft(ye)}).raw=ye;var Qu=ge((function(n){return 1/n}),Math.atan);(lo.geo.gnomonic=function(){return ne(Qu)}).raw=Qu,me.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Io]},(lo.geo.mercator=function(){return xe(me)}).raw=me;var na=ge((function(){return 1}),Math.asin);(lo.geo.orthographic=function(){return ne(na)}).raw=na;var ta=ge((function(n){return 1/(1+n)}),(function(n){return 2*Math.atan(n)}));(lo.geo.stereographic=function(){return ne(ta)}).raw=ta,Me.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Io]},(lo.geo.transverseMercator=function(){var n=xe(Me),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):[(n=t())[1],-n[0]]},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):[(n=e())[0],n[1],n[2]-90]},e([0,0,90])}).raw=Me,lo.geom={},lo.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,i=Tn(e),o=Tn(r),u=n.length,a=[],c=[];for(t=0;u>t;t++)a.push([+i.call(this,n[t],t),+o.call(this,n[t],t),t]);for(a.sort(ke),t=0;u>t;t++)c.push([a[t][0],-a[t][1]]);var s=we(a),l=we(c),f=l[0]===s[0],h=l[l.length-1]===s[s.length-1],p=[];for(t=s.length-1;t>=0;--t)p.push(n[a[s[t]][2]]);for(t=+f;t<l.length-h;++t)p.push(n[a[l[t]][2]]);return p}var e=_e,r=be;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},lo.geom.polygon=function(n){return So(n,ea),n};var ea=lo.geom.polygon.prototype=[];ea.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],i=0;++t<e;)n=r,r=this[t],i+=n[1]*r[0]-n[0]*r[1];return.5*i},ea.centroid=function(n){var t,e,r=-1,i=this.length,o=0,u=0,a=this[i-1];for(arguments.length||(n=-1/(6*this.area()));++r<i;)t=a,a=this[r],e=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*e,u+=(t[1]+a[1])*e;return[o*n,u*n]},ea.clip=function(n){for(var t,e,r,i,o,u,a=Ne(n),c=-1,s=this.length-Ne(this),l=this[s-1];++c<s;){for(t=n.slice(),n.length=0,i=this[c],o=t[(r=t.length-a)-1],e=-1;++e<r;)Ee(u=t[e],l,i)?(Ee(o,l,i)||n.push(Se(o,u,l,i)),n.push(u)):Ee(o,l,i)&&n.push(Se(o,u,l,i)),o=u;a&&n.push(n[0]),l=i}return n};var ra,ia,oa,ua,aa,ca=[],sa=[];Oe.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)(n=t[e].edge).b&&n.a||t.splice(e,1);return t.sort(De),t.length},Ye.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Ze.prototype={insert:function(n,t){var e,r,i;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=We(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,n=r):(n===e.R&&(Xe(this,e),e=(n=e).U),e.C=!1,r.C=!0,$e(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,n=r):(n===e.L&&($e(this,e),e=(n=e).U),e.C=!1,r.C=!0,Xe(this,r)),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,i=n.U,o=n.L,u=n.R;if(e=o?u?We(u):o:u,i?i.L===n?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=n.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=n.U,n=e.R,i.L=n,e.R=u,u.U=e):(e.U=i,i=e,n=e.R)):(r=n.C,n=e),n&&(n.U=i),!r){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Xe(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,$e(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Xe(this,i),n=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,$e(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Xe(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,$e(this,i),n=this._;break}t.C=!0,n=i,i=i.U}while(!n.C);n&&(n.C=!1)}}},lo.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=a[0][0],i=a[0][1],o=a[1][0],u=a[1][1];return Je(e(n),a).cells.forEach((function(e,a){var c=e.edges,s=e.site;(t[a]=c.length?c.map((function(n){var t=n.start();return[t.x,t.y]})):s.x>=r&&s.x<=o&&s.y>=i&&s.y<=u?[[r,u],[o,u],[o,i],[r,i]]:[]).point=n[a]})),t}function e(n){return n.map((function(n,t){return{x:Math.round(o(n,t)/jo)*jo,y:Math.round(u(n,t)/jo)*jo,i:t}}))}var r=_e,i=be,o=r,u=i,a=la;return n?t(n):(t.links=function(n){return Je(e(n)).edges.filter((function(n){return n.l&&n.r})).map((function(t){return{source:n[t.l.i],target:n[t.r.i]}}))},t.triangles=function(n){var t=[];return Je(e(n)).cells.forEach((function(e,r){for(var i,o=e.site,u=e.edges.sort(De),a=-1,c=u.length,s=u[c-1].edge,l=s.l===o?s.r:s.l;++a<c;)s,i=l,l=(s=u[a].edge).l===o?s.r:s.l,r<i.i&&r<l.i&&Qe(o,i,l)<0&&t.push([n[r],n[i.i],n[l.i]])})),t},t.x=function(n){return arguments.length?(o=Tn(r=n),t):r},t.y=function(n){return arguments.length?(u=Tn(i=n),t):i},t.clipExtent=function(n){return arguments.length?(a=null==n?la:n,t):a===la?null:a},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):a===la?null:a&&a[1]},t)};var la=[[-1e6,-1e6],[1e6,1e6]];lo.geom.delaunay=function(n){return lo.geom.voronoi().triangles(n)},lo.geom.quadtree=function(n,t,e,r,i){function o(n){function o(n,t,e,r,i,o,u,a){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var c=n.x,l=n.y;if(null!=c)if(_o(c-e)+_o(l-r)<.01)s(n,t,e,r,i,o,u,a);else{var f=n.point;n.x=n.y=n.point=null,s(n,f,c,l,i,o,u,a),s(n,t,e,r,i,o,u,a)}else n.x=e,n.y=r,n.point=t}else s(n,t,e,r,i,o,u,a)}function s(n,t,e,r,i,u,a,c){var s=.5*(i+a),l=.5*(u+c),f=e>=s,h=r>=l,p=h<<1|f;n.leaf=!1,f?i=s:a=s,h?u=l:c=l,o(n=n.nodes[p]||(n.nodes[p]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,e,r,i,u,a,c)}var l,f,h,p,d,g,v,y,m,x=Tn(a),M=Tn(c);if(null!=t)g=t,v=e,y=r,m=i;else if(y=m=-(g=v=1/0),f=[],h=[],d=n.length,u)for(p=0;d>p;++p)(l=n[p]).x<g&&(g=l.x),l.y<v&&(v=l.y),l.x>y&&(y=l.x),l.y>m&&(m=l.y),f.push(l.x),h.push(l.y);else for(p=0;d>p;++p){var _=+x(l=n[p],p),b=+M(l,p);g>_&&(g=_),v>b&&(v=b),_>y&&(y=_),b>m&&(m=b),f.push(_),h.push(b)}var w=y-g,k=m-v;w>k?m=v+w:y=g+k;var E={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(n){o(E,n,+x(n,++p),+M(n,p),g,v,y,m)},visit:function(n){er(n,E,g,v,y,m)},find:function(n){return rr(E,n[0],n[1],g,v,y,m)}};if(p=-1,null==t){for(;++p<d;)o(E,n[p],f[p],h[p],g,v,y,m);--p}else n.forEach(E.add);return f=h=n=l=null,E}var u,a=_e,c=be;return(u=arguments.length)?(a=nr,c=tr,3===u&&(i=e,r=t,e=t=0),o(n)):(o.x=function(n){return arguments.length?(a=n,o):a},o.y=function(n){return arguments.length?(c=n,o):c},o.extent=function(n){return arguments.length?(null==n?t=e=r=i=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],i=+n[1][1]),o):null==t?null:[[t,e],[r,i]]},o.size=function(n){return arguments.length?(null==n?t=e=r=i=null:(t=e=0,r=+n[0],i=+n[1]),o):null==t?null:[r-t,i-e]},o)},lo.interpolateRgb=ir,lo.interpolateObject=or,lo.interpolateNumber=ur,lo.interpolateString=ar;var fa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ha=new RegExp(fa.source,"g");lo.interpolate=cr,lo.interpolators=[function(n,t){var e=o(t);return("string"===e?ru.has(t)||/^(#|rgb\(|hsl\()/.test(t)?ir:ar:t instanceof fn?ir:Array.isArray(t)?sr:"object"===e&&isNaN(t)?or:ur)(n,t)}],lo.interpolateArray=sr;var pa=function(){return k},da=lo.map({linear:pa,poly:function(n){return function(t){return Math.pow(t,n)}},quad:function(){return pr},cubic:function(){return dr},sin:function(){return vr},exp:function(){return yr},circle:function(){return mr},elastic:function(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Fo*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Fo/t)}},back:function(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}},bounce:function(){return xr}}),ga=lo.map({in:k,out:fr,"in-out":hr,"out-in":function(n){return hr(fr(n))}});lo.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=da.get(e)||pa,lr((r=ga.get(r)||k)(e.apply(null,fo.call(arguments,1))))},lo.interpolateHcl=function(n,t){n=lo.hcl(n),t=lo.hcl(t);var e=n.h,r=n.c,i=n.l,o=t.h-e,u=t.c-r,a=t.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?t.c:r),isNaN(o)?(o=0,e=isNaN(e)?t.h:e):o>180?o-=360:-180>o&&(o+=360),function(n){return gn(e+o*n,r+u*n,i+a*n)+""}},lo.interpolateHsl=function(n,t){n=lo.hsl(n),t=lo.hsl(t);var e=n.h,r=n.s,i=n.l,o=t.h-e,u=t.s-r,a=t.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?t.s:r),isNaN(o)?(o=0,e=isNaN(e)?t.h:e):o>180?o-=360:-180>o&&(o+=360),function(n){return pn(e+o*n,r+u*n,i+a*n)+""}},lo.interpolateLab=function(n,t){n=lo.lab(n),t=lo.lab(t);var e=n.l,r=n.a,i=n.b,o=t.l-e,u=t.a-r,a=t.b-i;return function(n){return yn(e+o*n,r+u*n,i+a*n)+""}},lo.interpolateRound=Mr,lo.transform=function(n){var t=po.createElementNS(lo.ns.prefix.svg,"g");return(lo.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new _r(e?e.matrix:va)})(n)},_r.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var va={a:1,b:0,c:0,d:1,e:0,f:0};lo.interpolateTransform=kr,lo.layout={},lo.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Nr(n[e]));return t}},lo.layout.chord=function(){function n(){var n,s,f,h,p,d={},g=[],v=lo.range(o),y=[];for(e=[],r=[],n=0,h=-1;++h<o;){for(s=0,p=-1;++p<o;)s+=i[h][p];g.push(s),y.push(lo.range(o)),n+=s}for(u&&v.sort((function(n,t){return u(g[n],g[t])})),a&&y.forEach((function(n,t){n.sort((function(n,e){return a(i[t][n],i[t][e])}))})),n=(Fo-l*o)/n,s=0,h=-1;++h<o;){for(f=s,p=-1;++p<o;){var m=v[h],x=y[m][p],M=i[m][x],_=s,b=s+=M*n;d[m+"-"+x]={index:m,subindex:x,startAngle:_,endAngle:b,value:M}}r[m]={index:m,startAngle:f,endAngle:s,value:(s-f)/n},s+=l}for(h=-1;++h<o;)for(p=h-1;++p<o;){var w=d[h+"-"+p],k=d[p+"-"+h];(w.value||k.value)&&e.push(w.value<k.value?{source:k,target:w}:{source:w,target:k})}c&&t()}function t(){e.sort((function(n,t){return c((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)}))}var e,r,i,o,u,a,c,s={},l=0;return s.matrix=function(n){return arguments.length?(o=(i=n)&&i.length,e=r=null,s):i},s.padding=function(n){return arguments.length?(l=n,e=r=null,s):l},s.sortGroups=function(n){return arguments.length?(u=n,e=r=null,s):u},s.sortSubgroups=function(n){return arguments.length?(a=n,e=null,s):a},s.sortChords=function(n){return arguments.length?(c=n,e&&t(),s):c},s.chords=function(){return e||n(),e},s.groups=function(){return r||n(),r},s},lo.layout.force=function(){function n(n){return function(t,e,r,i){if(t.point!==n){var o=t.cx-n.x,u=t.cy-n.y,a=i-e,c=o*o+u*u;if(c>a*a/v){if(d>c){var s=t.charge/c;n.px-=o*s,n.py-=u*s}return!0}if(t.point&&c&&d>c){s=t.pointCharge/c;n.px-=o*s,n.py-=u*s}}return!t.charge}}function t(n){n.px=lo.event.x,n.py=lo.event.y,a.resume()}var e,r,i,o,u,a={},c=lo.dispatch("start","tick","end"),s=[1,1],l=.9,f=ya,h=ma,p=-30,d=xa,g=.1,v=.64,y=[],m=[];return a.tick=function(){if((r*=.99)<.005)return c.end({type:"end",alpha:r=0}),!0;var t,e,a,f,h,d,v,x,M,_=y.length,b=m.length;for(e=0;b>e;++e)f=(a=m[e]).source,(d=(x=(h=a.target).x-f.x)*x+(M=h.y-f.y)*M)&&(x*=d=r*o[e]*((d=Math.sqrt(d))-i[e])/d,M*=d,h.x-=x*(v=f.weight/(h.weight+f.weight)),h.y-=M*v,f.x+=x*(v=1-v),f.y+=M*v);if((v=r*g)&&(x=s[0]/2,M=s[1]/2,e=-1,v))for(;++e<_;)(a=y[e]).x+=(x-a.x)*v,a.y+=(M-a.y)*v;if(p)for(function n(t,e,r){var i=0,o=0;if(t.charge=0,!t.leaf)for(var u,a=t.nodes,c=a.length,s=-1;++s<c;)null!=(u=a[s])&&(n(u,e,r),t.charge+=u.charge,i+=u.charge*u.cx,o+=u.charge*u.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var l=e*r[t.point.index];t.charge+=t.pointCharge=l,i+=l*t.point.x,o+=l*t.point.y}t.cx=i/t.charge,t.cy=o/t.charge}(t=lo.geom.quadtree(y),r,u),e=-1;++e<_;)(a=y[e]).fixed||t.visit(n(a));for(e=-1;++e<_;)(a=y[e]).fixed?(a.x=a.px,a.y=a.py):(a.x-=(a.px-(a.px=a.x))*l,a.y-=(a.py-(a.py=a.y))*l);c.tick({type:"tick",alpha:r})},a.nodes=function(n){return arguments.length?(y=n,a):y},a.links=function(n){return arguments.length?(m=n,a):m},a.size=function(n){return arguments.length?(s=n,a):s},a.linkDistance=function(n){return arguments.length?(f="function"==typeof n?n:+n,a):f},a.distance=a.linkDistance,a.linkStrength=function(n){return arguments.length?(h="function"==typeof n?n:+n,a):h},a.friction=function(n){return arguments.length?(l=+n,a):l},a.charge=function(n){return arguments.length?(p="function"==typeof n?n:+n,a):p},a.chargeDistance=function(n){return arguments.length?(d=n*n,a):Math.sqrt(d)},a.gravity=function(n){return arguments.length?(g=+n,a):g},a.theta=function(n){return arguments.length?(v=n*n,a):Math.sqrt(v)},a.alpha=function(n){return arguments.length?(n=+n,r?r=n>0?n:0:n>0&&(c.start({type:"start",alpha:r=n}),lo.timer(a.tick)),a):r},a.start=function(){function n(n,r){if(!e){for(e=new Array(c),a=0;c>a;++a)e[a]=[];for(a=0;l>a;++a){var i=m[a];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var o,u=e[t],a=-1,s=u.length;++a<s;)if(!isNaN(o=u[a][n]))return o;return Math.random()*r}var t,e,r,c=y.length,l=m.length,d=s[0],g=s[1];for(t=0;c>t;++t)(r=y[t]).index=t,r.weight=0;for(t=0;l>t;++t)"number"==typeof(r=m[t]).source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(t=0;c>t;++t)r=y[t],isNaN(r.x)&&(r.x=n("x",d)),isNaN(r.y)&&(r.y=n("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(t=0;l>t;++t)i[t]=+f.call(this,m[t],t);else for(t=0;l>t;++t)i[t]=f;if(o=[],"function"==typeof h)for(t=0;l>t;++t)o[t]=+h.call(this,m[t],t);else for(t=0;l>t;++t)o[t]=h;if(u=[],"function"==typeof p)for(t=0;c>t;++t)u[t]=+p.call(this,y[t],t);else for(t=0;c>t;++t)u[t]=p;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return e||(e=lo.behavior.drag().origin(k).on("dragstart.force",Cr).on("drag.force",t).on("dragend.force",qr)),arguments.length?void this.on("mouseover.force",Tr).on("mouseout.force",zr).call(e):e},lo.rebind(a,c,"on")};var ya=20,ma=1,xa=1/0;lo.layout.hierarchy=function(){function n(i){var o,u=[i],a=[];for(i.depth=0;null!=(o=u.pop());)if(a.push(o),(s=e.call(n,o,o.depth))&&(c=s.length)){for(var c,s,l;--c>=0;)u.push(l=s[c]),l.parent=o,l.depth=o.depth+1;r&&(o.value=0),o.children=s}else r&&(o.value=+r.call(n,o,o.depth)||0),delete o.children;return Or(i,(function(n){var e,i;t&&(e=n.children)&&e.sort(t),r&&(i=n.parent)&&(i.value+=n.value)})),a}var t=Pr,e=Dr,r=jr;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Rr(t,(function(n){n.children&&(n.value=0)})),Or(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},n},lo.layout.partition=function(){function n(n,r){var i=t.call(this,n,r);return function n(t,e,r,i){var o=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(u=o.length)){var u,a,c,s=-1;for(r=t.value?r/t.value:0;++s<u;)n(a=o[s],e,c=a.value*r,i),e+=c}}(i[0],0,e[0],e[1]/function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,o=-1;++o<i;)r=Math.max(r,n(e[o]));return 1+r}(i[0])),i}var t=lo.layout.hierarchy(),e=[1,1];return n.size=function(t){return arguments.length?(e=t,n):e},Lr(n,t)},lo.layout.pie=function(){function n(u){var a,c=u.length,s=u.map((function(e,r){return+t.call(n,e,r)})),l=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof i?i.apply(this,arguments):i)-l,h=Math.min(Math.abs(f)/c,+("function"==typeof o?o.apply(this,arguments):o)),p=h*(0>f?-1:1),d=(f-c*p)/lo.sum(s),g=lo.range(c),v=[];return null!=e&&g.sort(e===Ma?function(n,t){return s[t]-s[n]}:function(n,t){return e(u[n],u[t])}),g.forEach((function(n){v[n]={data:u[n],value:a=s[n],startAngle:l,endAngle:l+=a*d+p,padAngle:h}})),v}var t=Number,e=Ma,r=0,i=Fo,o=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(i=t,n):i},n.padAngle=function(t){return arguments.length?(o=t,n):o},n};var Ma={};lo.layout.stack=function(){function n(a,c){if(!(h=a.length))return a;var s=a.map((function(e,r){return t.call(n,e,r)})),l=s.map((function(t){return t.map((function(t,e){return[o.call(n,t,e),u.call(n,t,e)]}))})),f=e.call(n,l,c);s=lo.permute(s,f),l=lo.permute(l,f);var h,p,d,g,v=r.call(n,l,c),y=s[0].length;for(d=0;y>d;++d)for(i.call(n,s[0][d],g=v[d],l[0][d][1]),p=1;h>p;++p)i.call(n,s[p][d],g+=l[p-1][d][1],l[p][d][1]);return a}var t=k,e=Br,r=Kr,i=Ir,o=Fr,u=Hr;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:_a.get(t)||Br,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:ba.get(t)||Kr,n):r},n.x=function(t){return arguments.length?(o=t,n):o},n.y=function(t){return arguments.length?(u=t,n):u},n.out=function(t){return arguments.length?(i=t,n):i},n};var _a=lo.map({"inside-out":function(n){var t,e,r=n.length,i=n.map(Yr),o=n.map(Zr),u=lo.range(r).sort((function(n,t){return i[n]-i[t]})),a=0,c=0,s=[],l=[];for(t=0;r>t;++t)e=u[t],c>a?(a+=o[e],s.push(e)):(c+=o[e],l.push(e));return l.reverse().concat(s)},reverse:function(n){return lo.range(n.length).reverse()},default:Br}),ba=lo.map({silhouette:function(n){var t,e,r,i=n.length,o=n[0].length,u=[],a=0,c=[];for(e=0;o>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];r>a&&(a=r),u.push(r)}for(e=0;o>e;++e)c[e]=(a-u[e])/2;return c},wiggle:function(n){var t,e,r,i,o,u,a,c,s,l=n.length,f=n[0],h=f.length,p=[];for(p[0]=c=s=0,e=1;h>e;++e){for(t=0,i=0;l>t;++t)i+=n[t][e][1];for(t=0,o=0,a=f[e][0]-f[e-1][0];l>t;++t){for(r=0,u=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)u+=(n[r][e][1]-n[r][e-1][1])/a;o+=u*n[t][e][1]}p[e]=c-=i?o/i*a:0,s>c&&(s=c)}for(e=0;h>e;++e)p[e]-=s;return p},expand:function(n){var t,e,r,i=n.length,o=n[0].length,u=1/i,a=[];for(e=0;o>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];if(r)for(t=0;i>t;t++)n[t][e][1]/=r;else for(t=0;i>t;t++)n[t][e][1]=u}for(e=0;o>e;++e)a[e]=0;return a},zero:Kr});lo.layout.histogram=function(){function n(n,o){for(var u,a,c=[],s=n.map(e,this),l=r.call(this,s,o),f=i.call(this,l,s,o),h=(o=-1,s.length),p=f.length-1,d=t?1:1/h;++o<p;)(u=c[o]=[]).dx=f[o+1]-(u.x=f[o]),u.y=0;if(p>0)for(o=-1;++o<h;)(a=s[o])>=l[0]&&a<=l[1]&&((u=c[lo.bisect(f,a,1,p)-1]).y+=d,u.push(n[o]));return c}var t=!0,e=Number,r=Wr,i=Xr;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=Tn(t),n):r},n.bins=function(t){return arguments.length?(i="number"==typeof t?function(n){return $r(n,t)}:Tn(t),n):i},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},lo.layout.pack=function(){function n(n,o){var u=e.call(this,n,o),a=u[0],c=i[0],s=i[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,Or(a,(function(n){n.r=+l(n.value)})),Or(a,ti),r){var f=r*(t?1:Math.max(2*a.r/c,2*a.r/s))/2;Or(a,(function(n){n.r+=f})),Or(a,ti),Or(a,(function(n){n.r-=f}))}return function n(t,e,r,i){var o=t.children;if(t.x=e+=i*t.x,t.y=r+=i*t.y,t.r*=i,o)for(var u=-1,a=o.length;++u<a;)n(o[u],e,r,i)}(a,c/2,s/2,t?1:1/Math.max(2*a.r/c,2*a.r/s)),u}var t,e=lo.layout.hierarchy().sort(Jr),r=0,i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},Lr(n,e)},lo.layout.tree=function(){function n(n,c){var s=i.call(this,n,c),l=s[0],f=function(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var i,o=t.children,u=0,a=o.length;a>u;++u)r.push((o[u]=i={_:o[u],parent:t,children:(i=o[u].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=i);return e.children[0]}(l);if(Or(f,t),f.parent.m=-f.z,Rr(f,e),a)Rr(l,r);else{var h=l,p=l,d=l;Rr(l,(function(n){n.x<h.x&&(h=n),n.x>p.x&&(p=n),n.depth>d.depth&&(d=n)}));var g=o(h,p)/2-h.x,v=u[0]/(p.x+o(p,h)/2+g),y=u[1]/(d.depth||1);Rr(l,(function(n){n.x=(n.x+g)*v,n.y=n.depth*y}))}return s}function t(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){!function(n){for(var t,e=0,r=0,i=n.children,o=i.length;--o>=0;)(t=i[o]).z+=e,t.m+=e,e+=t.s+(r+=t.c)}(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+o(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+o(n._,r._));n.parent.A=function(n,t,e){if(t){for(var r,i=n,u=n,a=t,c=i.parent.children[0],s=i.m,l=u.m,f=a.m,h=c.m;a=ai(a),i=ui(i),a&&i;)c=ui(c),(u=ai(u)).a=n,(r=a.z+f-i.z-s+o(a._,i._))>0&&(ci(si(a,n,e),n,r),s+=r,l+=r),f+=a.m,s+=i.m,h+=c.m,l+=u.m;a&&!ai(u)&&(u.t=a,u.m+=f-l),i&&!ui(c)&&(c.t=i,c.m+=s-h,e=n)}return e}(n,r,n.parent.A||e[0])}function e(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function r(n){n.x*=u[0],n.y=n.depth*u[1]}var i=lo.layout.hierarchy().sort(null).value(null),o=oi,u=[1,1],a=null;return n.separation=function(t){return arguments.length?(o=t,n):o},n.size=function(t){return arguments.length?(a=null==(u=t)?r:null,n):a?null:u},n.nodeSize=function(t){return arguments.length?(a=null==(u=t)?null:r,n):a?u:null},Lr(n,i)},lo.layout.cluster=function(){function n(n,o){var u,a=t.call(this,n,o),c=a[0],s=0;Or(c,(function(n){var t=n.children;t&&t.length?(n.x=function(n){return n.reduce((function(n,t){return n+t.x}),0)/n.length}(t),n.y=function(n){return 1+lo.max(n,(function(n){return n.y}))}(t)):(n.x=u?s+=e(n,u):0,n.y=0,u=n)}));var l=function n(t){var e=t.children;return e&&e.length?n(e[0]):t}(c),f=function n(t){var e,r=t.children;return r&&(e=r.length)?n(r[e-1]):t}(c),h=l.x-e(l,f)/2,p=f.x+e(f,l)/2;return Or(c,i?function(n){n.x=(n.x-c.x)*r[0],n.y=(c.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(p-h)*r[0],n.y=(1-(c.y?n.y/c.y:1))*r[1]}),a}var t=lo.layout.hierarchy().sort(null).value(null),e=oi,r=[1,1],i=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(i=null==(r=t),n):i?null:r},n.nodeSize=function(t){return arguments.length?(i=null!=(r=t),n):i?r:null},Lr(n,t)},lo.layout.treemap=function(){function n(n,t){for(var e,r,i=-1,o=n.length;++i<o;)r=(e=n[i]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var o=e.children;if(o&&o.length){var u,a,c,s=h(e),l=[],f=o.slice(),p=1/0,g="slice"===d?s.dx:"dice"===d?s.dy:"slice-dice"===d?1&e.depth?s.dy:s.dx:Math.min(s.dx,s.dy);for(n(f,s.dx*s.dy/e.value),l.area=0;(c=f.length)>0;)l.push(u=f[c-1]),l.area+=u.area,"squarify"!==d||(a=r(l,g))<=p?(f.pop(),p=a):(l.area-=l.pop().area,i(l,g,s,!1),g=Math.min(s.dx,s.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,s,!0),l.length=l.area=0),o.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var o,u=h(t),a=r.slice(),c=[];for(n(a,u.dx*u.dy/t.value),c.area=0;o=a.pop();)c.push(o),c.area+=o.area,null!=o.z&&(i(c,o.z?u.dx:u.dy,u,!a.length),c.length=c.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,i=0,o=1/0,u=-1,a=n.length;++u<a;)(e=n[u].area)&&(o>e&&(o=e),e>i&&(i=e));return t*=t,(r*=r)?Math.max(t*i*g/r,r/(t*o*g)):1/0}function i(n,t,e,r){var i,o=-1,u=n.length,a=e.x,c=e.y,l=t?s(n.area/t):0;if(t==e.dx){for((r||l>e.dy)&&(l=e.dy);++o<u;)(i=n[o]).x=a,i.y=c,i.dy=l,a+=i.dx=Math.min(e.x+e.dx-a,l?s(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-a,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++o<u;)(i=n[o]).x=a,i.y=c,i.dx=l,c+=i.dy=Math.min(e.y+e.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=l,e.dx-=l}}function u(r){var i=a||c(r),o=i[0];return o.x=0,o.y=0,o.dx=l[0],o.dy=l[1],a&&c.revalue(o),n([o],o.dx*o.dy/o.value),(a?e:t)(o),p&&(a=i),i}var a,c=lo.layout.hierarchy(),s=Math.round,l=[1,1],f=null,h=li,p=!1,d="squarify",g=.5*(1+Math.sqrt(5));return u.size=function(n){return arguments.length?(l=n,u):l},u.padding=function(n){function t(t){var e=n.call(u,t,t.depth);return null==e?li(t):fi(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return fi(t,n)}return arguments.length?(h=null==(f=n)?li:"function"==(r=o(n))?t:"number"===r?(n=[n,n,n,n],e):e,u):f;var r},u.round=function(n){return arguments.length?(s=n?Math.round:Number,u):s!=Number},u.sticky=function(n){return arguments.length?(p=n,a=null,u):p},u.ratio=function(n){return arguments.length?(g=n,u):g},u.mode=function(n){return arguments.length?(d=n+"",u):d},Lr(u,c)},lo.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,i;do{i=(e=2*Math.random()-1)*e+(r=2*Math.random()-1)*r}while(!i||i>1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=lo.random.normal.apply(lo,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=lo.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},lo.scale={};var wa={floor:k,ceil:k};lo.scale.linear=function(){return function n(t,e,r,i){function o(){var n=Math.min(t.length,e.length)>2?vi:di,o=i?Sr:Er;return a=n(t,e,o,r),c=n(e,t,o,cr),u}function u(n){return a(n)}var a,c;return u.invert=function(n){return c(n)},u.domain=function(n){return arguments.length?(t=n.map(Number),o()):t},u.range=function(n){return arguments.length?(e=n,o()):e},u.rangeRound=function(n){return u.range(n).interpolate(Mr)},u.clamp=function(n){return arguments.length?(i=n,o()):i},u.interpolate=function(n){return arguments.length?(r=n,o()):r},u.ticks=function(n){return Mi(t,n)},u.tickFormat=function(n,e){return _i(t,n,e)},u.nice=function(n){return mi(t,n),o()},u.copy=function(){return n(t,e,r,i)},o()}([0,1],[0,1],cr,!1)};var ka={s:1,g:1,p:1,r:1,e:1};lo.scale.log=function(){return function n(t,e,r,i){function o(n){return(r?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(e)}function u(n){return r?Math.pow(e,n):-Math.pow(e,-n)}function a(n){return t(o(n))}return a.invert=function(n){return u(t.invert(n))},a.domain=function(n){return arguments.length?(r=n[0]>=0,t.domain((i=n.map(Number)).map(o)),a):i},a.base=function(n){return arguments.length?(e=+n,t.domain(i.map(o)),a):e},a.nice=function(){var n=gi(i.map(o),r?Math:Sa);return t.domain(n),i=n.map(u),a},a.ticks=function(){var n=hi(i),t=[],a=n[0],c=n[1],s=Math.floor(o(a)),l=Math.ceil(o(c)),f=e%1?2:e;if(isFinite(l-s)){if(r){for(;l>s;s++)for(var h=1;f>h;h++)t.push(u(s)*h);t.push(u(s))}else for(t.push(u(s));s++<l;)for(h=f-1;h>0;h--)t.push(u(s)*h);for(s=0;t[s]<a;s++);for(l=t.length;t[l-1]>c;l--);t=t.slice(s,l)}return t},a.tickFormat=function(n,t){if(!arguments.length)return Ea;arguments.length<2?t=Ea:"function"!=typeof t&&(t=lo.format(t));var e,i=Math.max(.1,n/a.ticks().length),c=r?(e=1e-12,Math.ceil):(e=-1e-12,Math.floor);return function(n){return n/u(c(o(n)+e))<=i?t(n):""}},a.copy=function(){return n(t.copy(),e,r,i)},yi(a,t)}(lo.scale.linear().domain([0,1]),10,!0,[1,10])};var Ea=lo.format(".0e"),Sa={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};lo.scale.pow=function(){return function n(t,e,r){function i(n){return t(o(n))}var o=wi(e),u=wi(1/e);return i.invert=function(n){return u(t.invert(n))},i.domain=function(n){return arguments.length?(t.domain((r=n.map(Number)).map(o)),i):r},i.ticks=function(n){return Mi(r,n)},i.tickFormat=function(n,t){return _i(r,n,t)},i.nice=function(n){return i.domain(mi(r,n))},i.exponent=function(n){return arguments.length?(o=wi(e=n),u=wi(1/e),t.domain(r.map(o)),i):e},i.copy=function(){return n(t.copy(),e,r)},yi(i,t)}(lo.scale.linear(),1,[0,1])},lo.scale.sqrt=function(){return lo.scale.pow().exponent(.5)},lo.scale.ordinal=function(){return function n(t,e){function r(n){return u[((o.get(n)||("range"===e.t?o.set(n,t.push(n)):NaN))-1)%u.length]}function i(n,e){return lo.range(t.length).map((function(t){return n+e*t}))}var o,u,a;return r.domain=function(n){if(!arguments.length)return t;t=[],o=new g;for(var i,u=-1,a=n.length;++u<a;)o.has(i=n[u])||o.set(i,t.push(i));return r[e.t].apply(r,e.a)},r.range=function(n){return arguments.length?(u=n,a=0,e={t:"range",a:arguments},r):u},r.rangePoints=function(n,o){arguments.length<2&&(o=0);var c=n[0],s=n[1],l=t.length<2?(c=(c+s)/2,0):(s-c)/(t.length-1+o);return u=i(c+l*o/2,l),a=0,e={t:"rangePoints",a:arguments},r},r.rangeRoundPoints=function(n,o){arguments.length<2&&(o=0);var c=n[0],s=n[1],l=t.length<2?(c=s=Math.round((c+s)/2),0):(s-c)/(t.length-1+o)|0;return u=i(c+Math.round(l*o/2+(s-c-(t.length-1+o)*l)/2),l),a=0,e={t:"rangeRoundPoints",a:arguments},r},r.rangeBands=function(n,o,c){arguments.length<2&&(o=0),arguments.length<3&&(c=o);var s=n[1]<n[0],l=n[s-0],f=n[1-s],h=(f-l)/(t.length-o+2*c);return u=i(l+h*c,h),s&&u.reverse(),a=h*(1-o),e={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(n,o,c){arguments.length<2&&(o=0),arguments.length<3&&(c=o);var s=n[1]<n[0],l=n[s-0],f=n[1-s],h=Math.floor((f-l)/(t.length-o+2*c));return u=i(l+Math.round((f-l-(t.length-o)*h)/2),h),s&&u.reverse(),a=Math.round(h*(1-o)),e={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return a},r.rangeExtent=function(){return hi(e.a[0])},r.copy=function(){return n(t,e)},r.domain(t)}([],{t:"range",a:[[]]})},lo.scale.category10=function(){return lo.scale.ordinal().range(Na)},lo.scale.category20=function(){return lo.scale.ordinal().range(Aa)},lo.scale.category20b=function(){return lo.scale.ordinal().range(Ca)},lo.scale.category20c=function(){return lo.scale.ordinal().range(qa)};var Na=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(kn),Aa=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(kn),Ca=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(kn),qa=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(kn);lo.scale.quantile=function(){return function n(t,e){function r(){var n=0,r=e.length;for(o=[];++n<r;)o[n-1]=lo.quantile(t,n/r);return i}function i(n){return isNaN(n=+n)?void 0:e[lo.bisect(o,n)]}var o;return i.domain=function(n){return arguments.length?(t=n.map(s).filter(l).sort(c),r()):t},i.range=function(n){return arguments.length?(e=n,r()):e},i.quantiles=function(){return o},i.invertExtent=function(n){return 0>(n=e.indexOf(n))?[NaN,NaN]:[n>0?o[n-1]:t[0],n<o.length?o[n]:t[t.length-1]]},i.copy=function(){return n(t,e)},r()}([],[])},lo.scale.quantize=function(){return function n(t,e,r){function i(n){return r[Math.max(0,Math.min(a,Math.floor(u*(n-t))))]}function o(){return u=r.length/(e-t),a=r.length-1,i}var u,a;return i.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],o()):[t,e]},i.range=function(n){return arguments.length?(r=n,o()):r},i.invertExtent=function(n){return[n=0>(n=r.indexOf(n))?NaN:n/u+t,n+1/u]},i.copy=function(){return n(t,e,r)},o()}(0,1,[0,1])},lo.scale.threshold=function(){return function n(t,e){function r(n){return n>=n?e[lo.bisect(t,n)]:void 0}return r.domain=function(n){return arguments.length?(t=n,r):t},r.range=function(n){return arguments.length?(e=n,r):e},r.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},r.copy=function(){return n(t,e)},r}([.5],[0,1])},lo.scale.identity=function(){return function n(t){function e(n){return+n}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(n){return Mi(t,n)},e.tickFormat=function(n,e){return _i(t,n,e)},e.copy=function(){return n(t)},e}([0,1])},lo.svg={},lo.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),s=Math.max(0,+r.apply(this,arguments)),l=u.apply(this,arguments)-Io,f=a.apply(this,arguments)-Io,h=Math.abs(f-l),p=l>f?0:1;if(n>s&&(d=s,s=n,n=d),h>=Ho)return t(s,p)+(n?t(n,1-p):"")+"Z";var d,g,v,y,m,x,M,_,b,w,k,E,S=0,N=0,A=[];if((y=(+c.apply(this,arguments)||0)/2)&&(v=o===Ta?Math.sqrt(n*n+s*s):+o.apply(this,arguments),p||(N*=-1),s&&(N=cn(v/s*Math.sin(y))),n&&(S=cn(v/n*Math.sin(y)))),s){m=s*Math.cos(l+N),x=s*Math.sin(l+N),M=s*Math.cos(f-N),_=s*Math.sin(f-N);var C=Math.abs(f-l-2*N)<=Uo?0:1;if(N&&qi(m,x,M,_)===p^C){var q=(l+f)/2;m=s*Math.cos(q),x=s*Math.sin(q),M=_=null}}else m=x=0;if(n){b=n*Math.cos(f-S),w=n*Math.sin(f-S),k=n*Math.cos(l+S),E=n*Math.sin(l+S);var T=Math.abs(l-f+2*S)<=Uo?0:1;if(S&&qi(b,w,k,E)===1-p^T){var z=(l+f)/2;b=n*Math.cos(z),w=n*Math.sin(z),k=E=null}}else b=w=0;if((d=Math.min(Math.abs(s-n)/2,+i.apply(this,arguments)))>.001){g=s>n^p?0:1;var L=null==k?[b,w]:null==M?[m,x]:Se([m,x],[k,E],[M,_],[b,w]),R=m-L[0],O=x-L[1],D=M-L[0],j=_-L[1],P=1/Math.sin(Math.acos((R*D+O*j)/(Math.sqrt(R*R+O*O)*Math.sqrt(D*D+j*j)))/2),U=Math.sqrt(L[0]*L[0]+L[1]*L[1]);if(null!=M){var F=Math.min(d,(s-U)/(P+1)),H=Ti(null==k?[b,w]:[k,E],[m,x],s,F,p),I=Ti([M,_],[b,w],s,F,p);d===F?A.push("M",H[0],"A",F,",",F," 0 0,",g," ",H[1],"A",s,",",s," 0 ",1-p^qi(H[1][0],H[1][1],I[1][0],I[1][1]),",",p," ",I[1],"A",F,",",F," 0 0,",g," ",I[0]):A.push("M",H[0],"A",F,",",F," 0 1,",g," ",I[0])}else A.push("M",m,",",x);if(null!=k){var B=Math.min(d,(n-U)/(P-1)),K=Ti([m,x],[k,E],n,-B,p),Y=Ti([b,w],null==M?[m,x]:[M,_],n,-B,p);d===B?A.push("L",Y[0],"A",B,",",B," 0 0,",g," ",Y[1],"A",n,",",n," 0 ",p^qi(Y[1][0],Y[1][1],K[1][0],K[1][1]),",",1-p," ",K[1],"A",B,",",B," 0 0,",g," ",K[0]):A.push("L",Y[0],"A",B,",",B," 0 0,",g," ",K[0])}else A.push("L",b,",",w)}else A.push("M",m,",",x),null!=M&&A.push("A",s,",",s," 0 ",C,",",p," ",M,",",_),A.push("L",b,",",w),null!=k&&A.push("A",n,",",n," 0 ",T,",",1-p," ",k,",",E);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=Ei,r=Si,i=ki,o=Ta,u=Ni,a=Ai,c=Ci;return n.innerRadius=function(t){return arguments.length?(e=Tn(t),n):e},n.outerRadius=function(t){return arguments.length?(r=Tn(t),n):r},n.cornerRadius=function(t){return arguments.length?(i=Tn(t),n):i},n.padRadius=function(t){return arguments.length?(o=t==Ta?Ta:Tn(t),n):o},n.startAngle=function(t){return arguments.length?(u=Tn(t),n):u},n.endAngle=function(t){return arguments.length?(a=Tn(t),n):a},n.padAngle=function(t){return arguments.length?(c=Tn(t),n):c},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+u.apply(this,arguments)+ +a.apply(this,arguments))/2-Io;return[Math.cos(t)*n,Math.sin(t)*n]},n};var Ta="auto";lo.svg.line=function(){return zi(k)};var za=lo.map({linear:Li,"linear-closed":function(n){return Li(n)+"Z"},step:function(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&i.push("H",r[0]),i.join("")},"step-before":Ri,"step-after":Oi,basis:Pi,"basis-open":function(n){if(n.length<4)return Li(n);for(var t,e=[],r=-1,i=n.length,o=[0],u=[0];++r<3;)t=n[r],o.push(t[0]),u.push(t[1]);for(e.push(Ui(Oa,o)+","+Ui(Oa,u)),--r;++r<i;)t=n[r],o.shift(),o.push(t[0]),u.shift(),u.push(t[1]),Fi(e,o,u);return e.join("")},"basis-closed":function(n){for(var t,e,r=-1,i=n.length,o=i+4,u=[],a=[];++r<4;)e=n[r%i],u.push(e[0]),a.push(e[1]);for(t=[Ui(Oa,u),",",Ui(Oa,a)],--r;++r<o;)e=n[r%i],u.shift(),u.push(e[0]),a.shift(),a.push(e[1]),Fi(t,u,a);return t.join("")},bundle:function(n,t){var e=n.length-1;if(e)for(var r,i,o=n[0][0],u=n[0][1],a=n[e][0]-o,c=n[e][1]-u,s=-1;++s<=e;)i=s/e,(r=n[s])[0]=t*r[0]+(1-t)*(o+i*a),r[1]=t*r[1]+(1-t)*(u+i*c);return Pi(n)},cardinal:function(n,t){return n.length<3?Li(n):n[0]+Di(n,ji(n,t))},"cardinal-open":function(n,t){return n.length<4?Li(n):n[1]+Di(n.slice(1,-1),ji(n,t))},"cardinal-closed":function(n,t){return n.length<3?Li(n):n[0]+Di((n.push(n[0]),n),ji([n[n.length-2]].concat(n,[n[1]]),t))},monotone:function(n){return n.length<3?Li(n):n[0]+Di(n,Ii(n))}});za.forEach((function(n,t){t.key=n,t.closed=/-closed$/.test(n)}));var La=[0,2/3,1/3,0],Ra=[0,1/3,2/3,0],Oa=[0,1/6,2/3,1/6];lo.svg.line.radial=function(){var n=zi(Bi);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},Ri.reverse=Oi,Oi.reverse=Ri,lo.svg.area=function(){return Ki(k)},lo.svg.area.radial=function(){var n=Ki(Bi);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},lo.svg.chord=function(){function n(n,u){var a=t(this,i,n,u),c=t(this,o,n,u);return"M"+a.p0+e(a.r,a.p1,a.a1-a.a0)+(function(n,t){return n.a0==t.a0&&n.a1==t.a1}(a,c)?r(a.r,a.p1,a.r,a.p0):r(a.r,a.p1,c.r,c.p0)+e(c.r,c.p1,c.a1-c.a0)+r(c.r,c.p1,a.r,a.p0))+"Z"}function t(n,t,e,r){var i=t.call(n,e,r),o=u.call(n,i,r),s=a.call(n,i,r)-Io,l=c.call(n,i,r)-Io;return{r:o,a0:s,a1:l,p0:[o*Math.cos(s),o*Math.sin(s)],p1:[o*Math.cos(l),o*Math.sin(l)]}}function e(n,t,e){return"A"+n+","+n+" 0 "+ +(e>Uo)+",1 "+t}function r(n,t,e,r){return"Q 0,0 "+r}var i=pe,o=de,u=Yi,a=Ni,c=Ai;return n.radius=function(t){return arguments.length?(u=Tn(t),n):u},n.source=function(t){return arguments.length?(i=Tn(t),n):i},n.target=function(t){return arguments.length?(o=Tn(t),n):o},n.startAngle=function(t){return arguments.length?(a=Tn(t),n):a},n.endAngle=function(t){return arguments.length?(c=Tn(t),n):c},n},lo.svg.diagonal=function(){function n(n,i){var o=t.call(this,n,i),u=e.call(this,n,i),a=(o.y+u.y)/2,c=[o,{x:o.x,y:a},{x:u.x,y:a},u];return"M"+(c=c.map(r))[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=pe,e=de,r=Zi;return n.source=function(e){return arguments.length?(t=Tn(e),n):t},n.target=function(t){return arguments.length?(e=Tn(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},lo.svg.diagonal.radial=function(){var n=lo.svg.diagonal(),t=Zi,e=n.projection;return n.projection=function(n){return arguments.length?e(Vi(t=n)):t},n},lo.svg.symbol=function(){function n(n,r){return(Da.get(t.call(this,n,r))||Wi)(e.call(this,n,r))}var t=$i,e=Xi;return n.type=function(e){return arguments.length?(t=Tn(e),n):t},n.size=function(t){return arguments.length?(e=Tn(t),n):e},n};var Da=lo.map({circle:Wi,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Pa)),e=t*Pa;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/ja),e=t*ja/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/ja),e=t*ja/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});lo.svg.symbolTypes=Da.keys();var ja=Math.sqrt(3),Pa=Math.tan(30*Bo);qo.transition=function(n){for(var t,e,r=Ua||++Ba,i=to(n),o=[],u=Fa||{time:Date.now(),ease:gr,delay:0,duration:250},a=-1,c=this.length;++a<c;){o.push(t=[]);for(var s=this[a],l=-1,f=s.length;++l<f;)(e=s[l])&&eo(e,l,i,r,u),t.push(e)}return Gi(o,i,r)},qo.interrupt=function(n){return this.each(null==n?Ha:Ji(to(n)))};var Ua,Fa,Ha=Ji(to()),Ia=[],Ba=0;Ia.call=qo.call,Ia.empty=qo.empty,Ia.node=qo.node,Ia.size=qo.size,lo.transition=function(n,t){return n&&n.transition?Ua?n.transition(t):n:lo.selection().transition(n)},lo.transition.prototype=Ia,Ia.select=function(n){var t,e,r,i=this.id,o=this.namespace,u=[];n=R(n);for(var a=-1,c=this.length;++a<c;){u.push(t=[]);for(var s=this[a],l=-1,f=s.length;++l<f;)(r=s[l])&&(e=n.call(r,r.__data__,l,a))?("__data__"in r&&(e.__data__=r.__data__),eo(e,l,o,i,r[o][i]),t.push(e)):t.push(null)}return Gi(u,o,i)},Ia.selectAll=function(n){var t,e,r,i,o,u=this.id,a=this.namespace,c=[];n=O(n);for(var s=-1,l=this.length;++s<l;)for(var f=this[s],h=-1,p=f.length;++h<p;)if(r=f[h]){o=r[a][u],e=n.call(r,r.__data__,h,s),c.push(t=[]);for(var d=-1,g=e.length;++d<g;)(i=e[d])&&eo(i,d,a,u,o),t.push(i)}return Gi(c,a,u)},Ia.filter=function(n){var t,e,r=[];"function"!=typeof n&&(n=V(n));for(var i=0,o=this.length;o>i;i++){r.push(t=[]);for(var u,a=0,c=(u=this[i]).length;c>a;a++)(e=u[a])&&n.call(e,e.__data__,a,i)&&t.push(e)}return Gi(r,this.namespace,this.id)},Ia.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):$(this,null==t?function(t){t[r][e].tween.remove(n)}:function(i){i[r][e].tween.set(n,t)})},Ia.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function i(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=u(e,n),function(n){this.setAttribute(a,t(n))})})}function o(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=u(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var u="transform"==n?kr:cr,a=lo.ns.qualify(n);return Qi(this,"attr."+n,t,a.local?o:i)},Ia.attrTween=function(n,t){var e=lo.ns.qualify(n);return this.tween("attr."+n,e.local?function(n,r){var i=t.call(this,n,r,this.getAttributeNS(e.space,e.local));return i&&function(n){this.setAttributeNS(e.space,e.local,i(n))}}:function(n,r){var i=t.call(this,n,r,this.getAttribute(e));return i&&function(n){this.setAttribute(e,i(n))}})},Ia.style=function(n,t,e){function r(){this.style.removeProperty(n)}function i(t){return null==t?r:(t+="",function(){var r,i=a(this).getComputedStyle(this,null).getPropertyValue(n);return i!==t&&(r=cr(i,t),function(t){this.style.setProperty(n,r(t),e)})})}var o=arguments.length;if(3>o){if("string"!=typeof n){for(e in 2>o&&(t=""),n)this.style(e,n[e],t);return this}e=""}return Qi(this,"style."+n,t,i)},Ia.styleTween=function(n,t,e){function r(r,i){var o=t.call(this,r,i,a(this).getComputedStyle(this,null).getPropertyValue(n));return o&&function(t){this.style.setProperty(n,o(t),e)}}return arguments.length<3&&(e=""),this.tween("style."+n,r)},Ia.text=function(n){return Qi(this,"text",n,no)},Ia.remove=function(){var n=this.namespace;return this.each("end.transition",(function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},Ia.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=lo.ease.apply(lo,arguments)),$(this,(function(r){r[e][t].ease=n})))},Ia.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:$(this,"function"==typeof n?function(r,i,o){r[e][t].delay=+n.call(r,r.__data__,i,o)}:(n=+n,function(r){r[e][t].delay=n}))},Ia.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:$(this,"function"==typeof n?function(r,i,o){r[e][t].duration=Math.max(1,n.call(r,r.__data__,i,o))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Ia.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Fa,o=Ua;try{Ua=e,$(this,(function(t,i,o){Fa=t[r][e],n.call(t,t.__data__,i,o)}))}finally{Fa=i,Ua=o}}else $(this,(function(i){var o=i[r][e];(o.event||(o.event=lo.dispatch("start","end","interrupt"))).on(n,t)}));return this},Ia.transition=function(){for(var n,t,e,r=this.id,i=++Ba,o=this.namespace,u=[],a=0,c=this.length;c>a;a++){u.push(n=[]);for(var s,l=0,f=(s=this[a]).length;f>l;l++)(t=s[l])&&eo(t,l,o,i,{time:(e=t[o][r]).time,ease:e.ease,delay:e.delay+e.duration,duration:e.duration}),n.push(t)}return Gi(u,o,i)},lo.svg.axis=function(){function n(n){n.each((function(){var n,s=lo.select(this),l=this.__chart__||e,f=this.__chart__=e.copy(),h=null==c?f.ticks?f.ticks.apply(f,a):f.domain():c,p=null==t?f.tickFormat?f.tickFormat.apply(f,a):k:t,d=s.selectAll(".tick").data(h,f),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",jo),v=lo.transition(d.exit()).style("opacity",jo).remove(),y=lo.transition(d.order()).style("opacity",1),m=Math.max(i,0)+u,x=pi(f),M=s.selectAll(".domain").data([0]),_=(M.enter().append("path").attr("class","domain"),lo.transition(M));g.append("line"),g.append("text");var b,w,E,S,N=g.select("line"),A=y.select("line"),C=d.select("text").text(p),q=g.select("text"),T=y.select("text"),z="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=ro,b="x",E="y",w="x2",S="y2",C.attr("dy",0>z?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+z*o+"V0H"+x[1]+"V"+z*o)):(n=io,b="y",E="x",w="y2",S="x2",C.attr("dy",".32em").style("text-anchor",0>z?"end":"start"),_.attr("d","M"+z*o+","+x[0]+"H0V"+x[1]+"H"+z*o)),N.attr(S,z*i),q.attr(E,z*m),A.attr(w,0).attr(S,z*i),T.attr(b,0).attr(E,z*m),f.rangeBand){var L=f,R=L.rangeBand()/2;l=f=function(n){return L(n)+R}}else l.rangeBand?l=f:v.call(n,f,l);g.call(n,l,f),y.call(n,f,f)}))}var t,e=lo.scale.linear(),r=Ka,i=6,o=6,u=3,a=[10],c=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Ya?t+"":Ka,n):r},n.ticks=function(){return arguments.length?(a=arguments,n):a},n.tickValues=function(t){return arguments.length?(c=t,n):c},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(i=+t,o=+arguments[e-1],n):i},n.innerTickSize=function(t){return arguments.length?(i=+t,n):i},n.outerTickSize=function(t){return arguments.length?(o=+t,n):o},n.tickPadding=function(t){return arguments.length?(u=+t,n):u},n.tickSubdivide=function(){return arguments.length&&n},n};var Ka="bottom",Ya={top:1,right:1,bottom:1,left:1};lo.svg.brush=function(){function n(o){o.each((function(){var o=lo.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),u=o.selectAll(".background").data([0]);u.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=o.selectAll(".resize").data(g,k);a.exit().remove(),a.enter().append("g").attr("class",(function(n){return"resize "+n})).style("cursor",(function(n){return Za[n]})).append("rect").attr("x",(function(n){return/[ew]$/.test(n)?-3:null})).attr("y",(function(n){return/^[ns]/.test(n)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var c,f=lo.transition(o),h=lo.transition(u);s&&(c=pi(s),h.attr("x",c[0]).attr("width",c[1]-c[0]),e(f)),l&&(c=pi(l),h.attr("y",c[0]).attr("height",c[1]-c[0]),r(f)),t(f)}))}function t(n){n.selectAll(".resize").attr("transform",(function(n){return"translate("+f[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"}))}function e(n){n.select(".extent").attr("x",f[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function r(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==lo.event.keyCode&&(A||(x=null,T[0]-=f[1],T[1]-=h[1],A=2),q())}function g(){32==lo.event.keyCode&&2==A&&(T[0]+=f[1],T[1]+=h[1],A=0,q())}function v(){var n=lo.mouse(_),i=!1;M&&(n[0]+=M[0],n[1]+=M[1]),A||(lo.event.altKey?(x||(x=[(f[0]+f[1])/2,(h[0]+h[1])/2]),T[0]=f[+(n[0]<x[0])],T[1]=h[+(n[1]<x[1])]):x=null),S&&y(n,s,0)&&(e(k),i=!0),N&&y(n,l,1)&&(r(k),i=!0),i&&(t(k),w({type:"brush",mode:A?"move":"resize"}))}function y(n,t,e){var r,i,a=pi(t),c=a[0],s=a[1],l=T[e],g=e?h:f,v=g[1]-g[0];return A&&(c-=l,s-=v+l),r=(e?d:p)?Math.max(c,Math.min(s,n[e])):n[e],A?i=(r+=l)+v:(x&&(l=Math.max(c,Math.min(s,2*x[e]-r))),r>l?(i=r,r=l):i=l),g[0]!=r||g[1]!=i?(e?u=null:o=null,g[0]=r,g[1]=i,!0):void 0}function m(){v(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),lo.select("body").style("cursor",null),z.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),C(),w({type:"brushend"})}var x,M,_=this,b=lo.select(lo.event.target),w=c.of(_,arguments),k=lo.select(_),E=b.datum(),S=!/^(n|s)$/.test(E)&&s,N=!/^(e|w)$/.test(E)&&l,A=b.classed("extent"),C=tn(_),T=lo.mouse(_),z=lo.select(a(_)).on("keydown.brush",i).on("keyup.brush",g);if(lo.event.changedTouches?z.on("touchmove.brush",v).on("touchend.brush",m):z.on("mousemove.brush",v).on("mouseup.brush",m),k.interrupt().selectAll("*").interrupt(),A)T[0]=f[0]-T[0],T[1]=h[0]-T[1];else if(E){var L=+/w$/.test(E),R=+/^n/.test(E);M=[f[1-L]-T[0],h[1-R]-T[1]],T[0]=f[L],T[1]=h[R]}else lo.event.altKey&&(x=T.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),lo.select("body").style("cursor",b.style("cursor")),w({type:"brushstart"}),v()}var o,u,c=z(n,"brushstart","brush","brushend"),s=null,l=null,f=[0,0],h=[0,0],p=!0,d=!0,g=Va[0];return n.event=function(n){n.each((function(){var n=c.of(this,arguments),t={x:f,y:h,i:o,j:u},e=this.__chart__||t;this.__chart__=t,Ua?lo.select(this).transition().each("start.brush",(function(){o=e.i,u=e.j,f=e.x,h=e.y,n({type:"brushstart"})})).tween("brush:brush",(function(){var e=sr(f,t.x),r=sr(h,t.y);return o=u=null,function(i){f=t.x=e(i),h=t.y=r(i),n({type:"brush",mode:"resize"})}})).each("end.brush",(function(){o=t.i,u=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})})):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))}))},n.x=function(t){return arguments.length?(g=Va[!(s=t)<<1|!l],n):s},n.y=function(t){return arguments.length?(g=Va[!s<<1|!(l=t)],n):l},n.clamp=function(t){return arguments.length?(s&&l?(p=!!t[0],d=!!t[1]):s?p=!!t:l&&(d=!!t),n):s&&l?[p,d]:s?p:l?d:null},n.extent=function(t){var e,r,i,a,c;return arguments.length?(s&&(e=t[0],r=t[1],l&&(e=e[0],r=r[0]),o=[e,r],s.invert&&(e=s(e),r=s(r)),e>r&&(c=e,e=r,r=c),(e!=f[0]||r!=f[1])&&(f=[e,r])),l&&(i=t[0],a=t[1],s&&(i=i[1],a=a[1]),u=[i,a],l.invert&&(i=l(i),a=l(a)),i>a&&(c=i,i=a,a=c),(i!=h[0]||a!=h[1])&&(h=[i,a])),n):(s&&(o?(e=o[0],r=o[1]):(e=f[0],r=f[1],s.invert&&(e=s.invert(e),r=s.invert(r)),e>r&&(c=e,e=r,r=c))),l&&(u?(i=u[0],a=u[1]):(i=h[0],a=h[1],l.invert&&(i=l.invert(i),a=l.invert(a)),i>a&&(c=i,i=a,a=c))),s&&l?[[e,i],[r,a]]:s?[e,r]:l&&[i,a])},n.clear=function(){return n.empty()||(f=[0,0],h=[0,0],o=u=null),n},n.empty=function(){return!!s&&f[0]==f[1]||!!l&&h[0]==h[1]},lo.rebind(n,c,"on")};var Za={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Va=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xa=pu.format=xu.timeFormat,$a=Xa.utc,Wa=$a("%Y-%m-%dT%H:%M:%S.%LZ");Xa.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?oo:Wa,oo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},oo.toString=Wa.toString,pu.second=Hn((function(n){return new du(1e3*Math.floor(n/1e3))}),(function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))}),(function(n){return n.getSeconds()})),pu.seconds=pu.second.range,pu.seconds.utc=pu.second.utc.range,pu.minute=Hn((function(n){return new du(6e4*Math.floor(n/6e4))}),(function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))}),(function(n){return n.getMinutes()})),pu.minutes=pu.minute.range,pu.minutes.utc=pu.minute.utc.range,pu.hour=Hn((function(n){var t=n.getTimezoneOffset()/60;return new du(36e5*(Math.floor(n/36e5-t)+t))}),(function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))}),(function(n){return n.getHours()})),pu.hours=pu.hour.range,pu.hours.utc=pu.hour.utc.range,pu.month=Hn((function(n){return(n=pu.day(n)).setDate(1),n}),(function(n,t){n.setMonth(n.getMonth()+t)}),(function(n){return n.getMonth()})),pu.months=pu.month.range,pu.months.utc=pu.month.utc.range;var Ja=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ga=[[pu.second,1],[pu.second,5],[pu.second,15],[pu.second,30],[pu.minute,1],[pu.minute,5],[pu.minute,15],[pu.minute,30],[pu.hour,1],[pu.hour,3],[pu.hour,6],[pu.hour,12],[pu.day,1],[pu.day,2],[pu.week,1],[pu.month,1],[pu.month,3],[pu.year,1]],Qa=Xa.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",Ct]]),nc={range:function(n,t,e){return lo.range(Math.ceil(n/e)*e,+t,e).map(ao)},floor:k,ceil:k};Ga.year=pu.year,pu.scale=function(){return uo(lo.scale.linear(),Ga,Qa)};var tc=Ga.map((function(n){return[n[0].utc,n[1]]})),ec=$a.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",Ct]]);tc.year=pu.year.utc,pu.scale.utc=function(){return uo(lo.scale.linear(),tc,ec)},lo.text=zn((function(n){return n.responseText})),lo.json=function(n,t){return Ln(n,"application/json",co,t)},lo.html=function(n,t){return Ln(n,"text/html",so,t)},lo.xml=zn((function(n){return n.responseXML})),void 0!==(i="function"==typeof(r=lo)?r.call(t,e,t,n):r)&&(n.exports=i),this.d3=lo}).apply(self)}]]);