Your IP : 52.14.110.186


Current Path : /var/www/u0635749/data/www/hobbyclick.ru/public/bitrix/js/main/d3js/dist/
Upload File :
Current File : /var/www/u0635749/data/www/hobbyclick.ru/public/bitrix/js/main/d3js/dist/d3js.bundle.min.js

this.BX=this.BX||{};(function(t){"use strict";var n="5.9.2";function e(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function r(t){if(t.length===1)t=i(t);return{left:function n(e,r,i,a){if(i==null)i=0;if(a==null)a=e.length;while(i<a){var u=i+a>>>1;if(t(e[u],r)<0)i=u+1;else a=u}return i},right:function n(e,r,i,a){if(i==null)i=0;if(a==null)a=e.length;while(i<a){var u=i+a>>>1;if(t(e[u],r)>0)a=u;else i=u+1}return i}}}function i(t){return function(n,r){return e(t(n),r)}}var a=r(e);var u=a.right;var o=a.left;function f(t,n){if(n==null)n=c;var e=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);while(e<r){a[e]=n(i,i=t[++e])}return a}function c(t,n){return[t,n]}function l(t,n,e){var r=t.length,i=n.length,a=new Array(r*i),u,o,f,l;if(e==null)e=c;for(u=f=0;u<r;++u){for(l=t[u],o=0;o<i;++o,++f){a[f]=e(l,n[o])}}return a}function s(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function h(t){return t===null?NaN:+t}function d(t,n){var e=t.length,r=0,i=-1,a=0,u,o,f=0;if(n==null){while(++i<e){if(!isNaN(u=h(t[i]))){o=u-a;a+=o/++r;f+=o*(u-a)}}}else{while(++i<e){if(!isNaN(u=h(n(t[i],i,t)))){o=u-a;a+=o/++r;f+=o*(u-a)}}}if(r>1)return f/(r-1)}function p(t,n){var e=d(t,n);return e?Math.sqrt(e):e}function v(t,n){var e=t.length,r=-1,i,a,u;if(n==null){while(++r<e){if((i=t[r])!=null&&i>=i){a=u=i;while(++r<e){if((i=t[r])!=null){if(a>i)a=i;if(u<i)u=i}}}}}else{while(++r<e){if((i=n(t[r],r,t))!=null&&i>=i){a=u=i;while(++r<e){if((i=n(t[r],r,t))!=null){if(a>i)a=i;if(u<i)u=i}}}}}return[a,u]}var y=Array.prototype;var g=y.slice;var b=y.map;function _(t){return function(){return t}}function m(t){return t}function w(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;var r=-1,i=Math.max(0,Math.ceil((n-t)/e))|0,a=new Array(i);while(++r<i){a[r]=t+r*e}return a}var x=Math.sqrt(50),M=Math.sqrt(10),k=Math.sqrt(2);function N(t,n,e){var r,i=-1,a,u,o;n=+n,t=+t,e=+e;if(t===n&&e>0)return[t];if(r=n<t)a=t,t=n,n=a;if((o=A(t,n,e))===0||!isFinite(o))return[];if(o>0){t=Math.ceil(t/o);n=Math.floor(n/o);u=new Array(a=Math.ceil(n-t+1));while(++i<a){u[i]=(t+i)*o}}else{t=Math.floor(t*o);n=Math.ceil(n*o);u=new Array(a=Math.ceil(t-n+1));while(++i<a){u[i]=(t-i)/o}}if(r)u.reverse();return u}function A(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=x?10:a>=M?5:a>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=x?10:a>=M?5:a>=k?2:1)}function T(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;if(a>=x)i*=10;else if(a>=M)i*=5;else if(a>=k)i*=2;return n<t?-i:i}function S(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function E(){var t=m,n=v,e=S;function r(r){var i,a=r.length,o,f=new Array(a);for(i=0;i<a;++i){f[i]=t(r[i],i,r)}var c=n(f),l=c[0],s=c[1],h=e(f,l,s);if(!Array.isArray(h)){h=T(l,s,h);h=w(Math.ceil(l/h)*h,s,h)}var d=h.length;while(h[0]<=l){h.shift(),--d}while(h[d-1]>s){h.pop(),--d}var p=new Array(d+1),v;for(i=0;i<=d;++i){v=p[i]=[];v.x0=i>0?h[i-1]:l;v.x1=i<d?h[i]:s}for(i=0;i<a;++i){o=f[i];if(l<=o&&o<=s){p[u(h,o,0,d)].push(r[i])}}return p}r.value=function(n){return arguments.length?(t=typeof n==="function"?n:_(n),r):t};r.domain=function(t){return arguments.length?(n=typeof t==="function"?t:_([t[0],t[1]]),r):n};r.thresholds=function(t){return arguments.length?(e=typeof t==="function"?t:Array.isArray(t)?_(g.call(t)):_(t),r):e};return r}function C(t,n,e){if(e==null)e=h;if(!(r=t.length))return;if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),u=+e(t[a],a,t),o=+e(t[a+1],a+1,t);return u+(o-u)*(i-a)}function P(t,n,r){t=b.call(t,h).sort(e);return Math.ceil((r-n)/(2*(C(t,.75)-C(t,.25))*Math.pow(t.length,-1/3)))}function z(t,n,e){return Math.ceil((e-n)/(3.5*p(t)*Math.pow(t.length,-1/3)))}function R(t,n){var e=t.length,r=-1,i,a;if(n==null){while(++r<e){if((i=t[r])!=null&&i>=i){a=i;while(++r<e){if((i=t[r])!=null&&i>a){a=i}}}}}else{while(++r<e){if((i=n(t[r],r,t))!=null&&i>=i){a=i;while(++r<e){if((i=n(t[r],r,t))!=null&&i>a){a=i}}}}}return a}function D(t,n){var e=t.length,r=e,i=-1,a,u=0;if(n==null){while(++i<e){if(!isNaN(a=h(t[i])))u+=a;else--r}}else{while(++i<e){if(!isNaN(a=h(n(t[i],i,t))))u+=a;else--r}}if(r)return u/r}function q(t,n){var r=t.length,i=-1,a,u=[];if(n==null){while(++i<r){if(!isNaN(a=h(t[i]))){u.push(a)}}}else{while(++i<r){if(!isNaN(a=h(n(t[i],i,t)))){u.push(a)}}}return C(u.sort(e),.5)}function L(t){var n=t.length,e,r=-1,i=0,a,u;while(++r<n){i+=t[r].length}a=new Array(i);while(--n>=0){u=t[n];e=u.length;while(--e>=0){a[--i]=u[e]}}return a}function U(t,n){var e=t.length,r=-1,i,a;if(n==null){while(++r<e){if((i=t[r])!=null&&i>=i){a=i;while(++r<e){if((i=t[r])!=null&&a>i){a=i}}}}}else{while(++r<e){if((i=n(t[r],r,t))!=null&&i>=i){a=i;while(++r<e){if((i=n(t[r],r,t))!=null&&a>i){a=i}}}}}return a}function I(t,n){var e=n.length,r=new Array(e);while(e--){r[e]=t[n[e]]}return r}function B(t,n){if(!(r=t.length))return;var r,i=0,a=0,u,o=t[a];if(n==null)n=e;while(++i<r){if(n(u=t[i],o)<0||n(o,o)!==0){o=u,a=i}}if(n(o,o)===0)return a}function O(t,n,e){var r=(e==null?t.length:e)-(n=n==null?0:+n),i,a;while(r){a=Math.random()*r--|0;i=t[r+n];t[r+n]=t[a+n];t[a+n]=i}return t}function Y(t,n){var e=t.length,r=-1,i,a=0;if(n==null){while(++r<e){if(i=+t[r])a+=i}}else{while(++r<e){if(i=+n(t[r],r,t))a+=i}}return a}function F(t){if(!(a=t.length))return[];for(var n=-1,e=U(t,H),r=new Array(e);++n<e;){for(var i=-1,a,u=r[n]=new Array(a);++i<a;){u[i]=t[i][n]}}return r}function H(t){return t.length}function j(){return F(arguments)}var X=Array.prototype.slice;function G(t){return t}var V=1,W=2,Z=3,$=4,Q=1e-6;function J(t){return"translate("+(t+.5)+",0)"}function K(t){return"translate(0,"+(t+.5)+")"}function tt(t){return function(n){return+t(n)}}function nt(t){var n=Math.max(0,t.bandwidth()-1)/2;if(t.round())n=Math.round(n);return function(e){return+t(e)+n}}function et(){return!this.__axis}function rt(t,n){var e=[],r=null,i=null,a=6,u=6,o=3,f=t===V||t===$?-1:1,c=t===$||t===W?"x":"y",l=t===V||t===Z?J:K;function s(s){var h=r==null?n.ticks?n.ticks.apply(n,e):n.domain():r,d=i==null?n.tickFormat?n.tickFormat.apply(n,e):G:i,p=Math.max(a,0)+o,v=n.range(),y=+v[0]+.5,g=+v[v.length-1]+.5,b=(n.bandwidth?nt:tt)(n.copy()),_=s.selection?s.selection():s,m=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(h,n).order(),x=w.exit(),M=w.enter().append("g").attr("class","tick"),k=w.select("line"),N=w.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor"));w=w.merge(M);k=k.merge(M.append("line").attr("stroke","currentColor").attr(c+"2",f*a));N=N.merge(M.append("text").attr("fill","currentColor").attr(c,f*p).attr("dy",t===V?"0em":t===Z?"0.71em":"0.32em"));if(s!==_){m=m.transition(s);w=w.transition(s);k=k.transition(s);N=N.transition(s);x=x.transition(s).attr("opacity",Q).attr("transform",function(t){return isFinite(t=b(t))?l(t):this.getAttribute("transform")});M.attr("opacity",Q).attr("transform",function(t){var n=this.parentNode.__axis;return l(n&&isFinite(n=n(t))?n:b(t))})}x.remove();m.attr("d",t===$||t==W?u?"M"+f*u+","+y+"H0.5V"+g+"H"+f*u:"M0.5,"+y+"V"+g:u?"M"+y+","+f*u+"V0.5H"+g+"V"+f*u:"M"+y+",0.5H"+g);w.attr("opacity",1).attr("transform",function(t){return l(b(t))});k.attr(c+"2",f*a);N.attr(c,f*p).text(d);_.filter(et).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===W?"start":t===$?"end":"middle");_.each(function(){this.__axis=b})}s.scale=function(t){return arguments.length?(n=t,s):n};s.ticks=function(){return e=X.call(arguments),s};s.tickArguments=function(t){return arguments.length?(e=t==null?[]:X.call(t),s):e.slice()};s.tickValues=function(t){return arguments.length?(r=t==null?null:X.call(t),s):r&&r.slice()};s.tickFormat=function(t){return arguments.length?(i=t,s):i};s.tickSize=function(t){return arguments.length?(a=u=+t,s):a};s.tickSizeInner=function(t){return arguments.length?(a=+t,s):a};s.tickSizeOuter=function(t){return arguments.length?(u=+t,s):u};s.tickPadding=function(t){return arguments.length?(o=+t,s):o};return s}function it(t){return rt(V,t)}function at(t){return rt(W,t)}function ut(t){return rt(Z,t)}function ot(t){return rt($,t)}var ft={value:function t(){}};function ct(){for(var t=0,n=arguments.length,e={},r;t<n;++t){if(!(r=arguments[t]+"")||r in e)throw new Error("illegal type: "+r);e[r]=[]}return new lt(e)}function lt(t){this._=t}function st(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0)e=t.slice(r+1),t=t.slice(0,r);if(t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}lt.prototype=ct.prototype={constructor:lt,on:function t(n,e){var r=this._,i=st(n+"",r),a,u=-1,o=i.length;if(arguments.length<2){while(++u<o){if((a=(n=i[u]).type)&&(a=ht(r[a],n.name)))return a}return}if(e!=null&&typeof e!=="function")throw new Error("invalid callback: "+e);while(++u<o){if(a=(n=i[u]).type)r[a]=dt(r[a],n.name,e);else if(e==null)for(a in r){r[a]=dt(r[a],n.name,null)}}return this},copy:function t(){var t={},n=this._;for(var e in n){t[e]=n[e].slice()}return new lt(t)},call:function t(n,e){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,u;i<a;++i){r[i]=arguments[i+2]}if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(u=this._[n],i=0,a=u.length;i<a;++i){u[i].value.apply(e,r)}},apply:function t(n,e,r){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var i=this._[n],a=0,u=i.length;a<u;++a){i[a].value.apply(e,r)}}};function ht(t,n){for(var e=0,r=t.length,i;e<r;++e){if((i=t[e]).name===n){return i.value}}}function dt(t,n,e){for(var r=0,i=t.length;r<i;++r){if(t[r].name===n){t[r]=ft,t=t.slice(0,r).concat(t.slice(r+1));break}}if(e!=null)t.push({name:n,value:e});return t}var pt="http://www.w3.org/1999/xhtml";var vt={svg:"http://www.w3.org/2000/svg",xhtml:pt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yt(t){var n=t+="",e=n.indexOf(":");if(e>=0&&(n=t.slice(0,e))!=="xmlns")t=t.slice(e+1);return vt.hasOwnProperty(n)?{space:vt[n],local:t}:t}function gt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===pt&&n.documentElement.namespaceURI===pt?n.createElement(t):n.createElementNS(e,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _t(t){var n=yt(t);return(n.local?bt:gt)(n)}function mt(){}function wt(t){return t==null?mt:function(){return this.querySelector(t)}}function xt(t){if(typeof t!=="function")t=wt(t);for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i){for(var a=n[i],u=a.length,o=r[i]=new Array(u),f,c,l=0;l<u;++l){if((f=a[l])&&(c=t.call(f,f.__data__,l,a))){if("__data__"in f)c.__data__=f.__data__;o[l]=c}}}return new ee(r,this._parents)}function Mt(){return[]}function kt(t){return t==null?Mt:function(){return this.querySelectorAll(t)}}function Nt(t){if(typeof t!=="function")t=kt(t);for(var n=this._groups,e=n.length,r=[],i=[],a=0;a<e;++a){for(var u=n[a],o=u.length,f,c=0;c<o;++c){if(f=u[c]){r.push(t.call(f,f.__data__,c,u));i.push(f)}}}return new ee(r,i)}function At(t){return function(){return this.matches(t)}}function Tt(t){if(typeof t!=="function")t=At(t);for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i){for(var a=n[i],u=a.length,o=r[i]=[],f,c=0;c<u;++c){if((f=a[c])&&t.call(f,f.__data__,c,a)){o.push(f)}}}return new ee(r,this._parents)}function St(t){return new Array(t.length)}function Et(){return new ee(this._enter||this._groups.map(St),this._parents)}function Ct(t,n){this.ownerDocument=t.ownerDocument;this.namespaceURI=t.namespaceURI;this._next=null;this._parent=t;this.__data__=n}Ct.prototype={constructor:Ct,appendChild:function t(n){return this._parent.insertBefore(n,this._next)},insertBefore:function t(n,e){return this._parent.insertBefore(n,e)},querySelector:function t(n){return this._parent.querySelector(n)},querySelectorAll:function t(n){return this._parent.querySelectorAll(n)}};function Pt(t){return function(){return t}}var zt="$";function Rt(t,n,e,r,i,a){var u=0,o,f=n.length,c=a.length;for(;u<c;++u){if(o=n[u]){o.__data__=a[u];r[u]=o}else{e[u]=new Ct(t,a[u])}}for(;u<f;++u){if(o=n[u]){i[u]=o}}}function Dt(t,n,e,r,i,a,u){var o,f,c={},l=n.length,s=a.length,h=new Array(l),d;for(o=0;o<l;++o){if(f=n[o]){h[o]=d=zt+u.call(f,f.__data__,o,n);if(d in c){i[o]=f}else{c[d]=f}}}for(o=0;o<s;++o){d=zt+u.call(t,a[o],o,a);if(f=c[d]){r[o]=f;f.__data__=a[o];c[d]=null}else{e[o]=new Ct(t,a[o])}}for(o=0;o<l;++o){if((f=n[o])&&c[h[o]]===f){i[o]=f}}}function qt(t,n){if(!t){d=new Array(this.size()),c=-1;this.each(function(t){d[++c]=t});return d}var e=n?Dt:Rt,r=this._parents,i=this._groups;if(typeof t!=="function")t=Pt(t);for(var a=i.length,u=new Array(a),o=new Array(a),f=new Array(a),c=0;c<a;++c){var l=r[c],s=i[c],h=s.length,d=t.call(l,l&&l.__data__,c,r),p=d.length,v=o[c]=new Array(p),y=u[c]=new Array(p),g=f[c]=new Array(h);e(l,s,v,y,g,d,n);for(var b=0,_=0,m,w;b<p;++b){if(m=v[b]){if(b>=_)_=b+1;while(!(w=y[_])&&++_<p){}m._next=w||null}}}u=new ee(u,r);u._enter=o;u._exit=f;return u}function Lt(){return new ee(this._exit||this._groups.map(St),this._parents)}function Ut(t,n,e){var r=this.enter(),i=this,a=this.exit();r=typeof t==="function"?t(r):r.append(t+"");if(n!=null)i=n(i);if(e==null)a.remove();else e(a);return r&&i?r.merge(i).order():i}function It(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,a=Math.min(r,i),u=new Array(r),o=0;o<a;++o){for(var f=n[o],c=e[o],l=f.length,s=u[o]=new Array(l),h,d=0;d<l;++d){if(h=f[d]||c[d]){s[d]=h}}}for(;o<r;++o){u[o]=n[o]}return new ee(u,this._parents)}function Bt(){for(var t=this._groups,n=-1,e=t.length;++n<e;){for(var r=t[n],i=r.length-1,a=r[i],u;--i>=0;){if(u=r[i]){if(a&&u.compareDocumentPosition(a)^4)a.parentNode.insertBefore(u,a);a=u}}}return this}function Ot(t){if(!t)t=Yt;function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}for(var e=this._groups,r=e.length,i=new Array(r),a=0;a<r;++a){for(var u=e[a],o=u.length,f=i[a]=new Array(o),c,l=0;l<o;++l){if(c=u[l]){f[l]=c}}f.sort(n)}return new ee(i,this._parents).order()}function Yt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Ft(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function Ht(){var t=new Array(this.size()),n=-1;this.each(function(){t[++n]=this});return t}function jt(){for(var t=this._groups,n=0,e=t.length;n<e;++n){for(var r=t[n],i=0,a=r.length;i<a;++i){var u=r[i];if(u)return u}}return null}function Xt(){var t=0;this.each(function(){++t});return t}function Gt(){return!this.node()}function Vt(t){for(var n=this._groups,e=0,r=n.length;e<r;++e){for(var i=n[e],a=0,u=i.length,o;a<u;++a){if(o=i[a])t.call(o,o.__data__,a,i)}}return this}function Wt(t){return function(){this.removeAttribute(t)}}function Zt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $t(t,n){return function(){this.setAttribute(t,n)}}function Qt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Jt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttribute(t);else this.setAttribute(t,e)}}function Kt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttributeNS(t.space,t.local);else this.setAttributeNS(t.space,t.local,e)}}function tn(t,n){var e=yt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Zt:Wt:typeof n==="function"?e.local?Kt:Jt:e.local?Qt:$t)(e,n))}function nn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function en(t){return function(){this.style.removeProperty(t)}}function rn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function an(t,n,e){return function(){var r=n.apply(this,arguments);if(r==null)this.style.removeProperty(t);else this.style.setProperty(t,r,e)}}function un(t,n,e){return arguments.length>1?this.each((n==null?en:typeof n==="function"?an:rn)(t,n,e==null?"":e)):on(this.node(),t)}function on(t,n){return t.style.getPropertyValue(n)||nn(t).getComputedStyle(t,null).getPropertyValue(n)}function fn(t){return function(){delete this[t]}}function cn(t,n){return function(){this[t]=n}}function ln(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function sn(t,n){return arguments.length>1?this.each((n==null?fn:typeof n==="function"?ln:cn)(t,n)):this.node()[t]}function hn(t){return t.trim().split(/^|\s+/)}function dn(t){return t.classList||new pn(t)}function pn(t){this._node=t;this._names=hn(t.getAttribute("class")||"")}pn.prototype={add:function t(n){var e=this._names.indexOf(n);if(e<0){this._names.push(n);this._node.setAttribute("class",this._names.join(" "))}},remove:function t(n){var e=this._names.indexOf(n);if(e>=0){this._names.splice(e,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function t(n){return this._names.indexOf(n)>=0}};function vn(t,n){var e=dn(t),r=-1,i=n.length;while(++r<i){e.add(n[r])}}function yn(t,n){var e=dn(t),r=-1,i=n.length;while(++r<i){e.remove(n[r])}}function gn(t){return function(){vn(this,t)}}function bn(t){return function(){yn(this,t)}}function _n(t,n){return function(){(n.apply(this,arguments)?vn:yn)(this,t)}}function mn(t,n){var e=hn(t+"");if(arguments.length<2){var r=dn(this.node()),i=-1,a=e.length;while(++i<a){if(!r.contains(e[i]))return false}return true}return this.each((typeof n==="function"?_n:n?gn:bn)(e,n))}function wn(){this.textContent=""}function xn(t){return function(){this.textContent=t}}function Mn(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function kn(t){return arguments.length?this.each(t==null?wn:(typeof t==="function"?Mn:xn)(t)):this.node().textContent}function Nn(){this.innerHTML=""}function An(t){return function(){this.innerHTML=t}}function Tn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function Sn(t){return arguments.length?this.each(t==null?Nn:(typeof t==="function"?Tn:An)(t)):this.node().innerHTML}function En(){if(this.nextSibling)this.parentNode.appendChild(this)}function Cn(){return this.each(En)}function Pn(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zn(){return this.each(Pn)}function Rn(t){var n=typeof t==="function"?t:_t(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Dn(){return null}function qn(t,n){var e=typeof t==="function"?t:_t(t),r=n==null?Dn:typeof n==="function"?n:wt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function Ln(){var t=this.parentNode;if(t)t.removeChild(this)}function Un(){return this.each(Ln)}function In(){return this.parentNode.insertBefore(this.cloneNode(false),this.nextSibling)}function Bn(){return this.parentNode.insertBefore(this.cloneNode(true),this.nextSibling)}function On(t){return this.select(t?Bn:In)}function Yn(t){return arguments.length?this.property("__data__",t):this.node().__data__}var Fn={};t.event=null;if(typeof document!=="undefined"){var Hn=document.documentElement;if(!("onmouseenter"in Hn)){Fn={mouseenter:"mouseover",mouseleave:"mouseout"}}}function jn(t,n,e){t=Xn(t,n,e);return function(n){var e=n.relatedTarget;if(!e||e!==this&&!(e.compareDocumentPosition(this)&8)){t.call(this,n)}}}function Xn(n,e,r){return function(i){var a=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=a}}}function Gn(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");if(e>=0)n=t.slice(e+1),t=t.slice(0,e);return{type:t,name:n}})}function Vn(t){return function(){var n=this.__on;if(!n)return;for(var e=0,r=-1,i=n.length,a;e<i;++e){if(a=n[e],(!t.type||a.type===t.type)&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.capture)}else{n[++r]=a}}if(++r)n.length=r;else delete this.__on}}function Wn(t,n,e){var r=Fn.hasOwnProperty(t.type)?jn:Xn;return function(i,a,u){var o=this.__on,f,c=r(n,a,u);if(o)for(var l=0,s=o.length;l<s;++l){if((f=o[l]).type===t.type&&f.name===t.name){this.removeEventListener(f.type,f.listener,f.capture);this.addEventListener(f.type,f.listener=c,f.capture=e);f.value=n;return}}this.addEventListener(t.type,c,e);f={type:t.type,name:t.name,value:n,listener:c,capture:e};if(!o)this.__on=[f];else o.push(f)}}function Zn(t,n,e){var r=Gn(t+""),i,a=r.length,u;if(arguments.length<2){var o=this.node().__on;if(o)for(var f=0,c=o.length,l;f<c;++f){for(i=0,l=o[f];i<a;++i){if((u=r[i]).type===l.type&&u.name===l.name){return l.value}}}return}o=n?Wn:Vn;if(e==null)e=false;for(i=0;i<a;++i){this.each(o(r[i],n,e))}return this}function $n(n,e,r,i){var a=t.event;n.sourceEvent=t.event;t.event=n;try{return e.apply(r,i)}finally{t.event=a}}function Qn(t,n,e){var r=nn(t),i=r.CustomEvent;if(typeof i==="function"){i=new i(n,e)}else{i=r.document.createEvent("Event");if(e)i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail;else i.initEvent(n,false,false)}t.dispatchEvent(i)}function Jn(t,n){return function(){return Qn(this,t,n)}}function Kn(t,n){return function(){return Qn(this,t,n.apply(this,arguments))}}function te(t,n){return this.each((typeof n==="function"?Kn:Jn)(t,n))}var ne=[null];function ee(t,n){this._groups=t;this._parents=n}function re(){return new ee([[document.documentElement]],ne)}ee.prototype=re.prototype={constructor:ee,select:xt,selectAll:Nt,filter:Tt,data:qt,enter:Et,exit:Lt,join:Ut,merge:It,order:Bt,sort:Ot,call:Ft,nodes:Ht,node:jt,size:Xt,empty:Gt,each:Vt,attr:tn,style:un,property:sn,classed:mn,text:kn,html:Sn,raise:Cn,lower:zn,append:Rn,insert:qn,remove:Un,clone:On,datum:Yn,on:Zn,dispatch:te};function ie(t){return typeof t==="string"?new ee([[document.querySelector(t)]],[document.documentElement]):new ee([[t]],ne)}function ae(t){return ie(_t(t).call(document.documentElement))}var ue=0;function oe(){return new fe}function fe(){this._="@"+(++ue).toString(36)}fe.prototype=oe.prototype={constructor:fe,get:function t(n){var e=this._;while(!(e in n)){if(!(n=n.parentNode))return}return n[e]},set:function t(n,e){return n[this._]=e},remove:function t(n){return this._ in n&&delete n[this._]},toString:function t(){return this._}};function ce(){var n=t.event,e;while(e=n.sourceEvent){n=e}return n}function le(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();r.x=n.clientX,r.y=n.clientY;r=r.matrixTransform(t.getScreenCTM().inverse());return[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}function se(t){var n=ce();if(n.changedTouches)n=n.changedTouches[0];return le(t,n)}function he(t){return typeof t==="string"?new ee([document.querySelectorAll(t)],[document.documentElement]):new ee([t==null?[]:t],ne)}function de(t,n,e){if(arguments.length<3)e=n,n=ce().changedTouches;for(var r=0,i=n?n.length:0,a;r<i;++r){if((a=n[r]).identifier===e){return le(t,a)}}return null}function pe(t,n){if(n==null)n=ce().touches;for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e){i[e]=le(t,n[e])}return i}function ve(){t.event.stopImmediatePropagation()}function ye(){t.event.preventDefault();t.event.stopImmediatePropagation()}function ge(t){var n=t.document.documentElement,e=ie(t).on("dragstart.drag",ye,true);if("onselectstart"in n){e.on("selectstart.drag",ye,true)}else{n.__noselect=n.style.MozUserSelect;n.style.MozUserSelect="none"}}function be(t,n){var e=t.document.documentElement,r=ie(t).on("dragstart.drag",null);if(n){r.on("click.drag",ye,true);setTimeout(function(){r.on("click.drag",null)},0)}if("onselectstart"in e){r.on("selectstart.drag",null)}else{e.style.MozUserSelect=e.__noselect;delete e.__noselect}}function _e(t){return function(){return t}}function me(t,n,e,r,i,a,u,o,f,c){this.target=t;this.type=n;this.subject=e;this.identifier=r;this.active=i;this.x=a;this.y=u;this.dx=o;this.dy=f;this._=c}me.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function we(){return!t.event.button}function xe(){return this.parentNode}function Me(n){return n==null?{x:t.event.x,y:t.event.y}:n}function ke(){return"ontouchstart"in this}function Ne(){var n=we,e=xe,r=Me,i=ke,a={},u=ct("start","drag","end"),o=0,f,c,l,s,h=0;function d(t){t.on("mousedown.drag",p).filter(i).on("touchstart.drag",g).on("touchmove.drag",b).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(s||!n.apply(this,arguments))return;var r=m("mouse",e.apply(this,arguments),se,this,arguments);if(!r)return;ie(t.event.view).on("mousemove.drag",v,true).on("mouseup.drag",y,true);ge(t.event.view);ve();l=false;f=t.event.clientX;c=t.event.clientY;r("start")}function v(){ye();if(!l){var n=t.event.clientX-f,e=t.event.clientY-c;l=n*n+e*e>h}a.mouse("drag")}function y(){ie(t.event.view).on("mousemove.drag mouseup.drag",null);be(t.event.view,l);ye();a.mouse("end")}function g(){if(!n.apply(this,arguments))return;var r=t.event.changedTouches,i=e.apply(this,arguments),a=r.length,u,o;for(u=0;u<a;++u){if(o=m(r[u].identifier,i,de,this,arguments)){ve();o("start")}}}function b(){var n=t.event.changedTouches,e=n.length,r,i;for(r=0;r<e;++r){if(i=a[n[r].identifier]){ye();i("drag")}}}function _(){var n=t.event.changedTouches,e=n.length,r,i;if(s)clearTimeout(s);s=setTimeout(function(){s=null},500);for(r=0;r<e;++r){if(i=a[n[r].identifier]){ve();i("end")}}}function m(n,e,i,f,c){var l=i(e,n),s,h,p,v=u.copy();if(!$n(new me(d,"beforestart",s,n,o,l[0],l[1],0,0,v),function(){if((t.event.subject=s=r.apply(f,c))==null)return false;h=s.x-l[0]||0;p=s.y-l[1]||0;return true}))return;return function t(r){var u=l,y;switch(r){case"start":a[n]=t,y=o++;break;case"end":delete a[n],--o;case"drag":l=i(e,n),y=o;break}$n(new me(d,r,s,n,y,l[0]+h,l[1]+p,l[0]-u[0],l[1]-u[1],v),v.apply,v,[r,f,c])}}d.filter=function(t){return arguments.length?(n=typeof t==="function"?t:_e(!!t),d):n};d.container=function(t){return arguments.length?(e=typeof t==="function"?t:_e(t),d):e};d.subject=function(t){return arguments.length?(r=typeof t==="function"?t:_e(t),d):r};d.touchable=function(t){return arguments.length?(i=typeof t==="function"?t:_e(!!t),d):i};d.on=function(){var t=u.on.apply(u,arguments);return t===u?d:t};d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)};return d}function Ae(t,n,e){t.prototype=n.prototype=e;e.constructor=t}function Te(t,n){var e=Object.create(t.prototype);for(var r in n){e[r]=n[r]}return e}function Se(){}var Ee=.7;var Ce=1/Ee;var Pe="\\s*([+-]?\\d+)\\s*",ze="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",De=/^#([0-9a-f]{3})$/,qe=/^#([0-9a-f]{6})$/,Le=new RegExp("^rgb\\("+[Pe,Pe,Pe]+"\\)$"),Ue=new RegExp("^rgb\\("+[Re,Re,Re]+"\\)$"),Ie=new RegExp("^rgba\\("+[Pe,Pe,Pe,ze]+"\\)$"),Be=new RegExp("^rgba\\("+[Re,Re,Re,ze]+"\\)$"),Oe=new RegExp("^hsl\\("+[ze,Re,Re]+"\\)$"),Ye=new RegExp("^hsla\\("+[ze,Re,Re,ze]+"\\)$");var Fe={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};Ae(Se,He,{displayable:function t(){return this.rgb().displayable()},hex:function t(){return this.rgb().hex()},toString:function t(){return this.rgb()+""}});function He(t){var n;t=(t+"").trim().toLowerCase();return(n=De.exec(t))?(n=parseInt(n[1],16),new We(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1)):(n=qe.exec(t))?je(parseInt(n[1],16)):(n=Le.exec(t))?new We(n[1],n[2],n[3],1):(n=Ue.exec(t))?new We(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Ie.exec(t))?Xe(n[1],n[2],n[3],n[4]):(n=Be.exec(t))?Xe(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Oe.exec(t))?$e(n[1],n[2]/100,n[3]/100,1):(n=Ye.exec(t))?$e(n[1],n[2]/100,n[3]/100,n[4]):Fe.hasOwnProperty(t)?je(Fe[t]):t==="transparent"?new We(NaN,NaN,NaN,0):null}function je(t){return new We(t>>16&255,t>>8&255,t&255,1)}function Xe(t,n,e,r){if(r<=0)t=n=e=NaN;return new We(t,n,e,r)}function Ge(t){if(!(t instanceof Se))t=He(t);if(!t)return new We;t=t.rgb();return new We(t.r,t.g,t.b,t.opacity)}function Ve(t,n,e,r){return arguments.length===1?Ge(t):new We(t,n,e,r==null?1:r)}function We(t,n,e,r){this.r=+t;this.g=+n;this.b=+e;this.opacity=+r}Ae(We,Ve,Te(Se,{brighter:function t(n){n=n==null?Ce:Math.pow(Ce,n);return new We(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function t(n){n=n==null?Ee:Math.pow(Ee,n);return new We(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function t(){return this},displayable:function t(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function t(){return"#"+Ze(this.r)+Ze(this.g)+Ze(this.b)},toString:function t(){var n=this.opacity;n=isNaN(n)?1:Math.max(0,Math.min(1,n));return(n===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(n===1?")":", "+n+")")}}));function Ze(t){t=Math.max(0,Math.min(255,Math.round(t)||0));return(t<16?"0":"")+t.toString(16)}function $e(t,n,e,r){if(r<=0)t=n=e=NaN;else if(e<=0||e>=1)t=n=NaN;else if(n<=0)t=NaN;return new Ke(t,n,e,r)}function Qe(t){if(t instanceof Ke)return new Ke(t.h,t.s,t.l,t.opacity);if(!(t instanceof Se))t=He(t);if(!t)return new Ke;if(t instanceof Ke)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),u=NaN,o=a-i,f=(a+i)/2;if(o){if(n===a)u=(e-r)/o+(e<r)*6;else if(e===a)u=(r-n)/o+2;else u=(n-e)/o+4;o/=f<.5?a+i:2-a-i;u*=60}else{o=f>0&&f<1?0:u}return new Ke(u,o,f,t.opacity)}function Je(t,n,e,r){return arguments.length===1?Qe(t):new Ke(t,n,e,r==null?1:r)}function Ke(t,n,e,r){this.h=+t;this.s=+n;this.l=+e;this.opacity=+r}Ae(Ke,Je,Te(Se,{brighter:function t(n){n=n==null?Ce:Math.pow(Ce,n);return new Ke(this.h,this.s,this.l*n,this.opacity)},darker:function t(n){n=n==null?Ee:Math.pow(Ee,n);return new Ke(this.h,this.s,this.l*n,this.opacity)},rgb:function t(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,a=2*r-i;return new We(tr(n>=240?n-240:n+120,a,i),tr(n,a,i),tr(n<120?n+240:n-120,a,i),this.opacity)},displayable:function t(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));function tr(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}var nr=Math.PI/180;var er=180/Math.PI;var rr=18,ir=.96422,ar=1,ur=.82521,or=4/29,fr=6/29,cr=3*fr*fr,lr=fr*fr*fr;function sr(t){if(t instanceof pr)return new pr(t.l,t.a,t.b,t.opacity);if(t instanceof xr){if(isNaN(t.h))return new pr(t.l,0,0,t.opacity);var n=t.h*nr;return new pr(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}if(!(t instanceof We))t=Ge(t);var e=br(t.r),r=br(t.g),i=br(t.b),a=vr((.2225045*e+.7168786*r+.0606169*i)/ar),u,o;if(e===r&&r===i)u=o=a;else{u=vr((.4360747*e+.3850649*r+.1430804*i)/ir);o=vr((.0139322*e+.0971045*r+.7141733*i)/ur)}return new pr(116*a-16,500*(u-a),200*(a-o),t.opacity)}function hr(t,n){return new pr(t,0,0,n==null?1:n)}function dr(t,n,e,r){return arguments.length===1?sr(t):new pr(t,n,e,r==null?1:r)}function pr(t,n,e,r){this.l=+t;this.a=+n;this.b=+e;this.opacity=+r}Ae(pr,dr,Te(Se,{brighter:function t(n){return new pr(this.l+rr*(n==null?1:n),this.a,this.b,this.opacity)},darker:function t(n){return new pr(this.l-rr*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function t(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,r=isNaN(this.b)?n:n-this.b/200;e=ir*yr(e);n=ar*yr(n);r=ur*yr(r);return new We(gr(3.1338561*e-1.6168667*n-.4906146*r),gr(-.9787684*e+1.9161415*n+.033454*r),gr(.0719453*e-.2289914*n+1.4052427*r),this.opacity)}}));function vr(t){return t>lr?Math.pow(t,1/3):t/cr+or}function yr(t){return t>fr?t*t*t:cr*(t-or)}function gr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function br(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _r(t){if(t instanceof xr)return new xr(t.h,t.c,t.l,t.opacity);if(!(t instanceof pr))t=sr(t);if(t.a===0&&t.b===0)return new xr(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*er;return new xr(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function mr(t,n,e,r){return arguments.length===1?_r(t):new xr(e,n,t,r==null?1:r)}function wr(t,n,e,r){return arguments.length===1?_r(t):new xr(t,n,e,r==null?1:r)}function xr(t,n,e,r){this.h=+t;this.c=+n;this.l=+e;this.opacity=+r}Ae(xr,wr,Te(Se,{brighter:function t(n){return new xr(this.h,this.c,this.l+rr*(n==null?1:n),this.opacity)},darker:function t(n){return new xr(this.h,this.c,this.l-rr*(n==null?1:n),this.opacity)},rgb:function t(){return sr(this).rgb()}}));var Mr=-.14861,kr=+1.78277,Nr=-.29227,Ar=-.90649,Tr=+1.97294,Sr=Tr*Ar,Er=Tr*kr,Cr=kr*Nr-Ar*Mr;function Pr(t){if(t instanceof Rr)return new Rr(t.h,t.s,t.l,t.opacity);if(!(t instanceof We))t=Ge(t);var n=t.r/255,e=t.g/255,r=t.b/255,i=(Cr*r+Sr*n-Er*e)/(Cr+Sr-Er),a=r-i,u=(Tr*(e-i)-Nr*a)/Ar,o=Math.sqrt(u*u+a*a)/(Tr*i*(1-i)),f=o?Math.atan2(u,a)*er-120:NaN;return new Rr(f<0?f+360:f,o,i,t.opacity)}function zr(t,n,e,r){return arguments.length===1?Pr(t):new Rr(t,n,e,r==null?1:r)}function Rr(t,n,e,r){this.h=+t;this.s=+n;this.l=+e;this.opacity=+r}Ae(Rr,zr,Te(Se,{brighter:function t(n){n=n==null?Ce:Math.pow(Ce,n);return new Rr(this.h,this.s,this.l*n,this.opacity)},darker:function t(n){n=n==null?Ee:Math.pow(Ee,n);return new Rr(this.h,this.s,this.l*n,this.opacity)},rgb:function t(){var n=isNaN(this.h)?0:(this.h+120)*nr,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(n),a=Math.sin(n);return new We(255*(e+r*(Mr*i+kr*a)),255*(e+r*(Nr*i+Ar*a)),255*(e+r*(Tr*i)),this.opacity)}}));function Dr(t,n,e,r,i){var a=t*t,u=a*t;return((1-3*t+3*a-u)*n+(4-6*a+3*u)*e+(1+3*t+3*a-3*u)*r+u*i)/6}function qr(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],a=t[r+1],u=r>0?t[r-1]:2*i-a,o=r<n-1?t[r+2]:2*a-i;return Dr((e-r/n)*n,u,i,a,o)}}function Lr(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],a=t[r%n],u=t[(r+1)%n],o=t[(r+2)%n];return Dr((e-r/n)*n,i,a,u,o)}}function Ur(t){return function(){return t}}function Ir(t,n){return function(e){return t+e*n}}function Br(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function Or(t,n){var e=n-t;return e?Ir(t,e>180||e<-180?e-360*Math.round(e/360):e):Ur(isNaN(t)?n:t)}function Yr(t){return(t=+t)===1?Fr:function(n,e){return e-n?Br(n,e,t):Ur(isNaN(n)?e:n)}}function Fr(t,n){var e=n-t;return e?Ir(t,e):Ur(isNaN(t)?n:t)}var Hr=function t(n){var e=Yr(n);function r(t,n){var r=e((t=Ve(t)).r,(n=Ve(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),u=Fr(t.opacity,n.opacity);return function(n){t.r=r(n);t.g=i(n);t.b=a(n);t.opacity=u(n);return t+""}}r.gamma=t;return r}(1);function jr(t){return function(n){var e=n.length,r=new Array(e),i=new Array(e),a=new Array(e),u,o;for(u=0;u<e;++u){o=Ve(n[u]);r[u]=o.r||0;i[u]=o.g||0;a[u]=o.b||0}r=t(r);i=t(i);a=t(a);o.opacity=1;return function(t){o.r=r(t);o.g=i(t);o.b=a(t);return o+""}}}var Xr=jr(qr);var Gr=jr(Lr);function Vr(t,n){var e=n?n.length:0,r=t?Math.min(e,t.length):0,i=new Array(r),a=new Array(e),u;for(u=0;u<r;++u){i[u]=ei(t[u],n[u])}for(;u<e;++u){a[u]=n[u]}return function(t){for(u=0;u<r;++u){a[u]=i[u](t)}return a}}function Wr(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}}function Zr(t,n){return t=+t,n-=t,function(e){return t+n*e}}function $r(t,n){var e={},r={},i;if(t===null||babelHelpers.typeof(t)!=="object")t={};if(n===null||babelHelpers.typeof(n)!=="object")n={};for(i in n){if(i in t){e[i]=ei(t[i],n[i])}else{r[i]=n[i]}}return function(t){for(i in e){r[i]=e[i](t)}return r}}var Qr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jr=new RegExp(Qr.source,"g");function Kr(t){return function(){return t}}function ti(t){return function(n){return t(n)+""}}function ni(t,n){var e=Qr.lastIndex=Jr.lastIndex=0,r,i,a,u=-1,o=[],f=[];t=t+"",n=n+"";while((r=Qr.exec(t))&&(i=Jr.exec(n))){if((a=i.index)>e){a=n.slice(e,a);if(o[u])o[u]+=a;else o[++u]=a}if((r=r[0])===(i=i[0])){if(o[u])o[u]+=i;else o[++u]=i}else{o[++u]=null;f.push({i:u,x:Zr(r,i)})}e=Jr.lastIndex}if(e<n.length){a=n.slice(e);if(o[u])o[u]+=a;else o[++u]=a}return o.length<2?f[0]?ti(f[0].x):Kr(n):(n=f.length,function(t){for(var e=0,r;e<n;++e){o[(r=f[e]).i]=r.x(t)}return o.join("")})}function ei(t,n){var e=babelHelpers.typeof(n),r;return n==null||e==="boolean"?Ur(n):(e==="number"?Zr:e==="string"?(r=He(n))?(n=r,Hr):ni:n instanceof He?Hr:n instanceof Date?Wr:Array.isArray(n)?Vr:typeof n.valueOf!=="function"&&typeof n.toString!=="function"||isNaN(n)?$r:Zr)(t,n)}function ri(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function ii(t,n){var e=Or(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}function ai(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}var ui=180/Math.PI;var oi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fi(t,n,e,r,i,a){var u,o,f;if(u=Math.sqrt(t*t+n*n))t/=u,n/=u;if(f=t*e+n*r)e-=t*f,r-=n*f;if(o=Math.sqrt(e*e+r*r))e/=o,r/=o,f/=o;if(t*r<n*e)t=-t,n=-n,f=-f,u=-u;return{translateX:i,translateY:a,rotate:Math.atan2(n,t)*ui,skewX:Math.atan(f)*ui,scaleX:u,scaleY:o}}var ci,li,si,hi;function di(t){if(t==="none")return oi;if(!ci)ci=document.createElement("DIV"),li=document.documentElement,si=document.defaultView;ci.style.transform=t;t=si.getComputedStyle(li.appendChild(ci),null).getPropertyValue("transform");li.removeChild(ci);t=t.slice(7,-1).split(",");return fi(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5])}function pi(t){if(t==null)return oi;if(!hi)hi=document.createElementNS("http://www.w3.org/2000/svg","g");hi.setAttribute("transform",t);if(!(t=hi.transform.baseVal.consolidate()))return oi;t=t.matrix;return fi(t.a,t.b,t.c,t.d,t.e,t.f)}function vi(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,u,o){if(t!==i||r!==a){var f=u.push("translate(",null,n,null,e);o.push({i:f-4,x:Zr(t,i)},{i:f-2,x:Zr(r,a)})}else if(i||a){u.push("translate("+i+n+a+e)}}function u(t,n,e,a){if(t!==n){if(t-n>180)n+=360;else if(n-t>180)t+=360;a.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Zr(t,n)})}else if(n){e.push(i(e)+"rotate("+n+r)}}function o(t,n,e,a){if(t!==n){a.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Zr(t,n)})}else if(n){e.push(i(e)+"skewX("+n+r)}}function f(t,n,e,r,a,u){if(t!==e||n!==r){var o=a.push(i(a)+"scale(",null,",",null,")");u.push({i:o-4,x:Zr(t,e)},{i:o-2,x:Zr(n,r)})}else if(e!==1||r!==1){a.push(i(a)+"scale("+e+","+r+")")}}return function(n,e){var r=[],i=[];n=t(n),e=t(e);a(n.translateX,n.translateY,e.translateX,e.translateY,r,i);u(n.rotate,e.rotate,r,i);o(n.skewX,e.skewX,r,i);f(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i);n=e=null;return function(t){var n=-1,e=i.length,a;while(++n<e){r[(a=i[n]).i]=a.x(t)}return r.join("")}}}var yi=vi(di,"px, ","px)","deg)");var gi=vi(pi,", ",")",")");var bi=Math.SQRT2,_i=2,mi=4,wi=1e-12;function xi(t){return((t=Math.exp(t))+1/t)/2}function Mi(t){return((t=Math.exp(t))-1/t)/2}function ki(t){return((t=Math.exp(2*t))-1)/(t+1)}function Ni(t,n){var e=t[0],r=t[1],i=t[2],a=n[0],u=n[1],o=n[2],f=a-e,c=u-r,l=f*f+c*c,s,h;if(l<wi){h=Math.log(o/i)/bi;s=function t(n){return[e+n*f,r+n*c,i*Math.exp(bi*n*h)]}}else{var d=Math.sqrt(l),p=(o*o-i*i+mi*l)/(2*i*_i*d),v=(o*o-i*i-mi*l)/(2*o*_i*d),y=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(v*v+1)-v);h=(g-y)/bi;s=function t(n){var a=n*h,u=xi(y),o=i/(_i*d)*(u*ki(bi*a+y)-Mi(y));return[e+o*f,r+o*c,i*u/xi(bi*a+y)]}}s.duration=h*1e3;return s}function Ai(t){return function(n,e){var r=t((n=Je(n)).h,(e=Je(e)).h),i=Fr(n.s,e.s),a=Fr(n.l,e.l),u=Fr(n.opacity,e.opacity);return function(t){n.h=r(t);n.s=i(t);n.l=a(t);n.opacity=u(t);return n+""}}}var Ti=Ai(Or);var Si=Ai(Fr);function Ei(t,n){var e=Fr((t=dr(t)).l,(n=dr(n)).l),r=Fr(t.a,n.a),i=Fr(t.b,n.b),a=Fr(t.opacity,n.opacity);return function(n){t.l=e(n);t.a=r(n);t.b=i(n);t.opacity=a(n);return t+""}}function Ci(t){return function(n,e){var r=t((n=wr(n)).h,(e=wr(e)).h),i=Fr(n.c,e.c),a=Fr(n.l,e.l),u=Fr(n.opacity,e.opacity);return function(t){n.h=r(t);n.c=i(t);n.l=a(t);n.opacity=u(t);return n+""}}}var Pi=Ci(Or);var zi=Ci(Fr);function Ri(t){return function n(e){e=+e;function r(n,r){var i=t((n=zr(n)).h,(r=zr(r)).h),a=Fr(n.s,r.s),u=Fr(n.l,r.l),o=Fr(n.opacity,r.opacity);return function(t){n.h=i(t);n.s=a(t);n.l=u(Math.pow(t,e));n.opacity=o(t);return n+""}}r.gamma=n;return r}(1)}var Di=Ri(Or);var qi=Ri(Fr);function Li(t,n){var e=0,r=n.length-1,i=n[0],a=new Array(r<0?0:r);while(e<r){a[e]=t(i,i=n[++e])}return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[n](t-n)}}function Ui(t,n){var e=new Array(n);for(var r=0;r<n;++r){e[r]=t(r/(n-1))}return e}var Ii=0,Bi=0,Oi=0,Yi=1e3,Fi,Hi,ji=0,Xi=0,Gi=0,Vi=(typeof performance==="undefined"?"undefined":babelHelpers.typeof(performance))==="object"&&performance.now?performance:Date,Wi=(typeof window==="undefined"?"undefined":babelHelpers.typeof(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Zi(){return Xi||(Wi($i),Xi=Vi.now()+Gi)}function $i(){Xi=0}function Qi(){this._call=this._time=this._next=null}Qi.prototype=Ji.prototype={constructor:Qi,restart:function t(n,e,r){if(typeof n!=="function")throw new TypeError("callback is not a function");r=(r==null?Zi():+r)+(e==null?0:+e);if(!this._next&&Hi!==this){if(Hi)Hi._next=this;else Fi=this;Hi=this}this._call=n;this._time=r;ra()},stop:function t(){if(this._call){this._call=null;this._time=Infinity;ra()}}};function Ji(t,n,e){var r=new Qi;r.restart(t,n,e);return r}function Ki(){Zi();++Ii;var t=Fi,n;while(t){if((n=Xi-t._time)>=0)t._call.call(null,n);t=t._next}--Ii}function ta(){Xi=(ji=Vi.now())+Gi;Ii=Bi=0;try{Ki()}finally{Ii=0;ea();Xi=0}}function na(){var t=Vi.now(),n=t-ji;if(n>Yi)Gi-=n,ji=t}function ea(){var t,n=Fi,e,r=Infinity;while(n){if(n._call){if(r>n._time)r=n._time;t=n,n=n._next}else{e=n._next,n._next=null;n=t?t._next=e:Fi=e}}Hi=t;ra(r)}function ra(t){if(Ii)return;if(Bi)Bi=clearTimeout(Bi);var n=t-Xi;if(n>24){if(t<Infinity)Bi=setTimeout(ta,t-Vi.now()-Gi);if(Oi)Oi=clearInterval(Oi)}else{if(!Oi)ji=Vi.now(),Oi=setInterval(na,Yi);Ii=1,Wi(ta)}}function ia(t,n,e){var r=new Qi;n=n==null?0:+n;r.restart(function(e){r.stop();t(e+n)},n,e);return r}function aa(t,n,e){var r=new Qi,i=n;if(n==null)return r.restart(t,n,e),r;n=+n,e=e==null?Zi():+e;r.restart(function a(u){u+=i;r.restart(a,i+=n,e);t(u)},n,e);return r}var ua=ct("start","end","cancel","interrupt");var oa=[];var fa=0;var ca=1;var la=2;var sa=3;var ha=4;var da=5;var pa=6;function va(t,n,e,r,i,a){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;_a(t,e,{name:n,index:r,group:i,on:ua,tween:oa,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:fa})}function ya(t,n){var e=ba(t,n);if(e.state>fa)throw new Error("too late; already scheduled");return e}function ga(t,n){var e=ba(t,n);if(e.state>sa)throw new Error("too late; already running");return e}function ba(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function _a(t,n,e){var r=t.__transition,i;r[n]=e;e.timer=Ji(a,0,e.time);function a(t){e.state=ca;e.timer.restart(u,e.delay,e.time);if(e.delay<=t)u(t-e.delay)}function u(a){var c,l,s,h;if(e.state!==ca)return f();for(c in r){h=r[c];if(h.name!==e.name)continue;if(h.state===sa)return ia(u);if(h.state===ha){h.state=pa;h.timer.stop();h.on.call("interrupt",t,t.__data__,h.index,h.group);delete r[c]}else if(+c<n){h.state=pa;h.timer.stop();h.on.call("cancel",t,t.__data__,h.index,h.group);delete r[c]}}ia(function(){if(e.state===sa){e.state=ha;e.timer.restart(o,e.delay,e.time);o(a)}});e.state=la;e.on.call("start",t,t.__data__,e.index,e.group);if(e.state!==la)return;e.state=sa;i=new Array(s=e.tween.length);for(c=0,l=-1;c<s;++c){if(h=e.tween[c].value.call(t,t.__data__,e.index,e.group)){i[++l]=h}}i.length=l+1}function o(n){var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(f),e.state=da,1),a=-1,u=i.length;while(++a<u){i[a].call(t,r)}if(e.state===da){e.on.call("end",t,t.__data__,e.index,e.group);f()}}function f(){e.state=pa;e.timer.stop();delete r[n];for(var i in r){return}delete t.__transition}}function ma(t,n){var e=t.__transition,r,i,a=true,u;if(!e)return;n=n==null?null:n+"";for(u in e){if((r=e[u]).name!==n){a=false;continue}i=r.state>la&&r.state<da;r.state=pa;r.timer.stop();r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group);delete e[u]}if(a)delete t.__transition}function wa(t){return this.each(function(){ma(this,t)})}function xa(t,n){var e,r;return function(){var i=ga(this,t),a=i.tween;if(a!==e){r=e=a;for(var u=0,o=r.length;u<o;++u){if(r[u].name===n){r=r.slice();r.splice(u,1);break}}}i.tween=r}}function Ma(t,n,e){var r,i;if(typeof e!=="function")throw new Error;return function(){var a=ga(this,t),u=a.tween;if(u!==r){i=(r=u).slice();for(var o={name:n,value:e},f=0,c=i.length;f<c;++f){if(i[f].name===n){i[f]=o;break}}if(f===c)i.push(o)}a.tween=i}}function ka(t,n){var e=this._id;t+="";if(arguments.length<2){var r=ba(this.node(),e).tween;for(var i=0,a=r.length,u;i<a;++i){if((u=r[i]).name===t){return u.value}}return null}return this.each((n==null?xa:Ma)(e,t,n))}function Na(t,n,e){var r=t._id;t.each(function(){var t=ga(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)});return function(t){return ba(t,r).value[n]}}function Aa(t,n){var e;return(typeof n==="number"?Zr:n instanceof He?Hr:(e=He(n))?(n=e,Hr):ni)(t,n)}function Ta(t){return function(){this.removeAttribute(t)}}function Sa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ea(t,n,e){var r,i=e+"",a;return function(){var u=this.getAttribute(t);return u===i?null:u===r?a:a=n(r=u,e)}}function Ca(t,n,e){var r,i=e+"",a;return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===r?a:a=n(r=u,e)}}function Pa(t,n,e){var r,i,a;return function(){var u,o=e(this),f;if(o==null)return void this.removeAttribute(t);u=this.getAttribute(t);f=o+"";return u===f?null:u===r&&f===i?a:(i=f,a=n(r=u,o))}}function za(t,n,e){var r,i,a;return function(){var u,o=e(this),f;if(o==null)return void this.removeAttributeNS(t.space,t.local);u=this.getAttributeNS(t.space,t.local);f=o+"";return u===f?null:u===r&&f===i?a:(i=f,a=n(r=u,o))}}function Ra(t,n){var e=yt(t),r=e==="transform"?gi:Aa;return this.attrTween(t,typeof n==="function"?(e.local?za:Pa)(e,r,Na(this,"attr."+t,n)):n==null?(e.local?Sa:Ta)(e):(e.local?Ca:Ea)(e,r,n))}function Da(t,n){return function(e){this.setAttribute(t,n(e))}}function qa(t,n){return function(e){this.setAttributeNS(t.space,t.local,n(e))}}function La(t,n){var e,r;function i(){var i=n.apply(this,arguments);if(i!==r)e=(r=i)&&qa(t,i);return e}i._value=n;return i}function Ua(t,n){var e,r;function i(){var i=n.apply(this,arguments);if(i!==r)e=(r=i)&&Da(t,i);return e}i._value=n;return i}function Ia(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!=="function")throw new Error;var r=yt(t);return this.tween(e,(r.local?La:Ua)(r,n))}function Ba(t,n){return function(){ya(this,t).delay=+n.apply(this,arguments)}}function Oa(t,n){return n=+n,function(){ya(this,t).delay=n}}function Ya(t){var n=this._id;return arguments.length?this.each((typeof t==="function"?Ba:Oa)(n,t)):ba(this.node(),n).delay}function Fa(t,n){return function(){ga(this,t).duration=+n.apply(this,arguments)}}function Ha(t,n){return n=+n,function(){ga(this,t).duration=n}}function ja(t){var n=this._id;return arguments.length?this.each((typeof t==="function"?Fa:Ha)(n,t)):ba(this.node(),n).duration}function Xa(t,n){if(typeof n!=="function")throw new Error;return function(){ga(this,t).ease=n}}function Ga(t){var n=this._id;return arguments.length?this.each(Xa(n,t)):ba(this.node(),n).ease}function Va(t){if(typeof t!=="function")t=At(t);for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i){for(var a=n[i],u=a.length,o=r[i]=[],f,c=0;c<u;++c){if((f=a[c])&&t.call(f,f.__data__,c,a)){o.push(f)}}}return new _u(r,this._parents,this._name,this._id)}function Wa(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,a=Math.min(r,i),u=new Array(r),o=0;o<a;++o){for(var f=n[o],c=e[o],l=f.length,s=u[o]=new Array(l),h,d=0;d<l;++d){if(h=f[d]||c[d]){s[d]=h}}}for(;o<r;++o){u[o]=n[o]}return new _u(u,this._parents,this._name,this._id)}function Za(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");if(n>=0)t=t.slice(0,n);return!t||t==="start"})}function $a(t,n,e){var r,i,a=Za(n)?ya:ga;return function(){var u=a(this,t),o=u.on;if(o!==r)(i=(r=o).copy()).on(n,e);u.on=i}}function Qa(t,n){var e=this._id;return arguments.length<2?ba(this.node(),e).on.on(t):this.each($a(e,t,n))}function Ja(t){return function(){var n=this.parentNode;for(var e in this.__transition){if(+e!==t)return}if(n)n.removeChild(this)}}function Ka(){return this.on("end.remove",Ja(this._id))}function tu(t){var n=this._name,e=this._id;if(typeof t!=="function")t=wt(t);for(var r=this._groups,i=r.length,a=new Array(i),u=0;u<i;++u){for(var o=r[u],f=o.length,c=a[u]=new Array(f),l,s,h=0;h<f;++h){if((l=o[h])&&(s=t.call(l,l.__data__,h,o))){if("__data__"in l)s.__data__=l.__data__;c[h]=s;va(c[h],n,e,h,c,ba(l,e))}}}return new _u(a,this._parents,n,e)}function nu(t){var n=this._name,e=this._id;if(typeof t!=="function")t=kt(t);for(var r=this._groups,i=r.length,a=[],u=[],o=0;o<i;++o){for(var f=r[o],c=f.length,l,s=0;s<c;++s){if(l=f[s]){for(var h=t.call(l,l.__data__,s,f),d,p=ba(l,e),v=0,y=h.length;v<y;++v){if(d=h[v]){va(d,n,e,v,h,p)}}a.push(h);u.push(l)}}}return new _u(a,u,n,e)}var eu=re.prototype.constructor;function ru(){return new eu(this._groups,this._parents)}function iu(t,n){var e,r,i;return function(){var a=on(this,t),u=(this.style.removeProperty(t),on(this,t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function au(t){return function(){this.style.removeProperty(t)}}function uu(t,n,e){var r,i=e+"",a;return function(){var u=on(this,t);return u===i?null:u===r?a:a=n(r=u,e)}}function ou(t,n,e){var r,i,a;return function(){var u=on(this,t),o=e(this),f=o+"";if(o==null)f=o=(this.style.removeProperty(t),on(this,t));return u===f?null:u===r&&f===i?a:(i=f,a=n(r=u,o))}}function fu(t,n){var e,r,i,a="style."+n,u="end."+a,o;return function(){var f=ga(this,t),c=f.on,l=f.value[a]==null?o||(o=au(n)):undefined;if(c!==e||i!==l)(r=(e=c).copy()).on(u,i=l);f.on=r}}function cu(t,n,e){var r=(t+="")==="transform"?yi:Aa;return n==null?this.styleTween(t,iu(t,r)).on("end.style."+t,au(t)):typeof n==="function"?this.styleTween(t,ou(t,r,Na(this,"style."+t,n))).each(fu(this._id,t)):this.styleTween(t,uu(t,r,n),e).on("end.style."+t,null)}function lu(t,n,e){return function(r){this.style.setProperty(t,n(r),e)}}function su(t,n,e){var r,i;function a(){var a=n.apply(this,arguments);if(a!==i)r=(i=a)&&lu(t,a,e);return r}a._value=n;return a}function hu(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!=="function")throw new Error;return this.tween(r,su(t,n,e==null?"":e))}function du(t){return function(){this.textContent=t}}function pu(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function vu(t){return this.tween("text",typeof t==="function"?pu(Na(this,"text",t)):du(t==null?"":t+""))}function yu(){var t=this._name,n=this._id,e=wu();for(var r=this._groups,i=r.length,a=0;a<i;++a){for(var u=r[a],o=u.length,f,c=0;c<o;++c){if(f=u[c]){var l=ba(f,n);va(f,t,e,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}}}return new _u(r,this._parents,t,e)}function gu(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(a,u){var o={value:u},f={value:function t(){if(--i===0)a()}};e.each(function(){var e=ga(this,r),i=e.on;if(i!==t){n=(t=i).copy();n._.cancel.push(o);n._.interrupt.push(o);n._.end.push(f)}e.on=n})})}var bu=0;function _u(t,n,e,r){this._groups=t;this._parents=n;this._name=e;this._id=r}function mu(t){return re().transition(t)}function wu(){return++bu}var xu=re.prototype;_u.prototype=mu.prototype={constructor:_u,select:tu,selectAll:nu,filter:Va,merge:Wa,selection:ru,transition:yu,call:xu.call,nodes:xu.nodes,node:xu.node,size:xu.size,empty:xu.empty,each:xu.each,on:Qa,attr:Ra,attrTween:Ia,style:cu,styleTween:hu,text:vu,remove:Ka,tween:ka,delay:Ya,duration:ja,ease:Ga,end:gu};function Mu(t){return+t}function ku(t){return t*t}function Nu(t){return t*(2-t)}function Au(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Tu(t){return t*t*t}function Su(t){return--t*t*t+1}function Eu(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Cu=3;var Pu=function t(n){n=+n;function e(t){return Math.pow(t,n)}e.exponent=t;return e}(Cu);var zu=function t(n){n=+n;function e(t){return 1-Math.pow(1-t,n)}e.exponent=t;return e}(Cu);var Ru=function t(n){n=+n;function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}e.exponent=t;return e}(Cu);var Du=Math.PI,qu=Du/2;function Lu(t){return 1-Math.cos(t*qu)}function Uu(t){return Math.sin(t*qu)}function Iu(t){return(1-Math.cos(Du*t))/2}function Bu(t){return Math.pow(2,10*t-10)}function Ou(t){return 1-Math.pow(2,-10*t)}function Yu(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Fu(t){return 1-Math.sqrt(1-t*t)}function Hu(t){return Math.sqrt(1- --t*t)}function ju(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Xu=4/11,Gu=6/11,Vu=8/11,Wu=3/4,Zu=9/11,$u=10/11,Qu=15/16,Ju=21/22,Ku=63/64,to=1/Xu/Xu;function no(t){return 1-eo(1-t)}function eo(t){return(t=+t)<Xu?to*t*t:t<Vu?to*(t-=Gu)*t+Wu:t<$u?to*(t-=Zu)*t+Qu:to*(t-=Ju)*t+Ku}function ro(t){return((t*=2)<=1?1-eo(1-t):eo(t-1)+1)/2}var io=1.70158;var ao=function t(n){n=+n;function e(t){return t*t*((n+1)*t-n)}e.overshoot=t;return e}(io);var uo=function t(n){n=+n;function e(t){return--t*t*((n+1)*t+n)+1}e.overshoot=t;return e}(io);var oo=function t(n){n=+n;function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}e.overshoot=t;return e}(io);var fo=2*Math.PI,co=1,lo=.3;var so=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=fo);function i(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/e)}i.amplitude=function(n){return t(n,e*fo)};i.period=function(e){return t(n,e)};return i}(co,lo);var ho=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=fo);function i(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/e)}i.amplitude=function(n){return t(n,e*fo)};i.period=function(e){return t(n,e)};return i}(co,lo);var po=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=fo);function i(t){return((t=t*2-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/e))/2}i.amplitude=function(n){return t(n,e*fo)};i.period=function(e){return t(n,e)};return i}(co,lo);var vo={time:null,delay:0,duration:250,ease:Eu};function yo(t,n){var e;while(!(e=t.__transition)||!(e=e[n])){if(!(t=t.parentNode)){return vo.time=Zi(),vo}}return e}function go(t){var n,e;if(t instanceof _u){n=t._id,t=t._name}else{n=wu(),(e=vo).time=Zi(),t=t==null?null:t+""}for(var r=this._groups,i=r.length,a=0;a<i;++a){for(var u=r[a],o=u.length,f,c=0;c<o;++c){if(f=u[c]){va(f,t,n,c,u,e||yo(f,n))}}}return new _u(r,this._parents,t,n)}re.prototype.interrupt=wa;re.prototype.transition=go;var bo=[null];function _o(t,n){var e=t.__transition,r,i;if(e){n=n==null?null:n+"";for(i in e){if((r=e[i]).state>ca&&r.name===n){return new _u([[t]],bo,n,+i)}}}return null}function mo(t){return function(){return t}}function wo(t,n,e){this.target=t;this.type=n;this.selection=e}function xo(){t.event.stopImmediatePropagation()}function Mo(){t.event.preventDefault();t.event.stopImmediatePropagation()}var ko={name:"drag"},No={name:"space"},Ao={name:"handle"},To={name:"center"};var So={name:"x",handles:["e","w"].map(Lo),input:function t(n,e){return n&&[[n[0],e[0][1]],[n[1],e[1][1]]]},output:function t(n){return n&&[n[0][0],n[1][0]]}};var Eo={name:"y",handles:["n","s"].map(Lo),input:function t(n,e){return n&&[[e[0][0],n[0]],[e[1][0],n[1]]]},output:function t(n){return n&&[n[0][1],n[1][1]]}};var Co={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Lo),input:function t(n){return n},output:function t(n){return n}};var Po={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"};var zo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var Ro={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var Do={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var qo={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function Lo(t){return{type:t}}function Uo(){return!t.event.button}function Io(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Bo(t){while(!t.__brush){if(!(t=t.parentNode))return}return t.__brush}function Oo(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Yo(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Fo(){return Xo(So)}function Ho(){return Xo(Eo)}function jo(){return Xo(Co)}function Xo(n){var e=Io,r=Uo,i=ct(o,"start","brush","end"),a=6,u;function o(t){var e=t.property("__brush",h).selectAll(".overlay").data([Lo("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Po.overlay).merge(e).each(function(){var t=Bo(this).extent;ie(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])});t.selectAll(".selection").data([Lo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Po.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(n.handles,function(t){return t.type});r.exit().remove();r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return Po[t.type]});t.each(f).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}o.move=function(t,e){if(t.selection){t.on("start.brush",function(){c(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){c(this,arguments).end()}).tween("brush",function(){var t=this,r=t.__brush,i=c(t,arguments),a=r.selection,u=n.input(typeof e==="function"?e.apply(this,arguments):e,r.extent),o=ei(a,u);function l(n){r.selection=n===1&&Oo(u)?null:o(n);f.call(t);i.brush()}return a&&u?l:l(1)})}else{t.each(function(){var t=this,r=arguments,i=t.__brush,a=n.input(typeof e==="function"?e.apply(t,r):e,i.extent),u=c(t,r).beforestart();ma(t);i.selection=a==null||Oo(a)?null:a;f.call(t);u.start().brush().end()})}};function f(){var t=ie(this),n=Bo(this).selection;if(n){t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]);t.selectAll(".handle").style("display",null).attr("x",function(t){return t.type[t.type.length-1]==="e"?n[1][0]-a/2:n[0][0]-a/2}).attr("y",function(t){return t.type[0]==="s"?n[1][1]-a/2:n[0][1]-a/2}).attr("width",function(t){return t.type==="n"||t.type==="s"?n[1][0]-n[0][0]+a:a}).attr("height",function(t){return t.type==="e"||t.type==="w"?n[1][1]-n[0][1]+a:a})}else{t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function c(t,n){return t.__brush.emitter||new l(t,n)}function l(t,n){this.that=t;this.args=n;this.state=t.__brush;this.active=0}l.prototype={beforestart:function t(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function t(){if(this.starting)this.starting=false,this.emit("start");return this},brush:function t(){this.emit("brush");return this},end:function t(){if(--this.active===0)delete this.state.emitter,this.emit("end");return this},emit:function t(e){$n(new wo(o,e,n.output(this.state.selection)),i.apply,i,[e,this.that,this.args])}};function s(){if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return Mo()}else if(u)return;if(!r.apply(this,arguments))return;var e=this,i=t.event.target.__data__.type,a=(t.event.metaKey?i="overlay":i)==="selection"?ko:t.event.altKey?To:Ao,o=n===Eo?null:Do[i],l=n===So?null:qo[i],s=Bo(e),h=s.extent,d=s.selection,p=h[0][0],v,y,g=h[0][1],b,_,m=h[1][0],w,x,M=h[1][1],k,N,A,T,S,E=o&&l&&t.event.shiftKey,C,P,z=se(e),R=z,D=c(e,arguments).beforestart();if(i==="overlay"){s.selection=d=[[v=n===Eo?p:z[0],b=n===So?g:z[1]],[w=n===Eo?m:v,k=n===So?M:b]]}else{v=d[0][0];b=d[0][1];w=d[1][0];k=d[1][1]}y=v;_=b;x=w;N=k;var q=ie(e).attr("pointer-events","none");var L=q.selectAll(".overlay").attr("cursor",Po[i]);if(t.event.touches){q.on("touchmove.brush",I,true).on("touchend.brush touchcancel.brush",O,true)}else{var U=ie(t.event.view).on("keydown.brush",Y,true).on("keyup.brush",F,true).on("mousemove.brush",I,true).on("mouseup.brush",O,true);ge(t.event.view)}xo();ma(e);f.call(e);D.start();function I(){var t=se(e);if(E&&!C&&!P){if(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1]))P=true;else C=true}R=t;S=true;Mo();B()}function B(){var t;A=R[0]-z[0];T=R[1]-z[1];switch(a){case No:case ko:{if(o)A=Math.max(p-v,Math.min(m-w,A)),y=v+A,x=w+A;if(l)T=Math.max(g-b,Math.min(M-k,T)),_=b+T,N=k+T;break}case Ao:{if(o<0)A=Math.max(p-v,Math.min(m-v,A)),y=v+A,x=w;else if(o>0)A=Math.max(p-w,Math.min(m-w,A)),y=v,x=w+A;if(l<0)T=Math.max(g-b,Math.min(M-b,T)),_=b+T,N=k;else if(l>0)T=Math.max(g-k,Math.min(M-k,T)),_=b,N=k+T;break}case To:{if(o)y=Math.max(p,Math.min(m,v-A*o)),x=Math.max(p,Math.min(m,w+A*o));if(l)_=Math.max(g,Math.min(M,b-T*l)),N=Math.max(g,Math.min(M,k+T*l));break}}if(x<y){o*=-1;t=v,v=w,w=t;t=y,y=x,x=t;if(i in zo)L.attr("cursor",Po[i=zo[i]])}if(N<_){l*=-1;t=b,b=k,k=t;t=_,_=N,N=t;if(i in Ro)L.attr("cursor",Po[i=Ro[i]])}if(s.selection)d=s.selection;if(C)y=d[0][0],x=d[1][0];if(P)_=d[0][1],N=d[1][1];if(d[0][0]!==y||d[0][1]!==_||d[1][0]!==x||d[1][1]!==N){s.selection=[[y,_],[x,N]];f.call(e);D.brush()}}function O(){xo();if(t.event.touches){if(t.event.touches.length)return;if(u)clearTimeout(u);u=setTimeout(function(){u=null},500);q.on("touchmove.brush touchend.brush touchcancel.brush",null)}else{be(t.event.view,S);U.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}q.attr("pointer-events","all");L.attr("cursor",Po.overlay);if(s.selection)d=s.selection;if(Oo(d))s.selection=null,f.call(e);D.end()}function Y(){switch(t.event.keyCode){case 16:{E=o&&l;break}case 18:{if(a===Ao){if(o)w=x-A*o,v=y+A*o;if(l)k=N-T*l,b=_+T*l;a=To;B()}break}case 32:{if(a===Ao||a===To){if(o<0)w=x-A;else if(o>0)v=y-A;if(l<0)k=N-T;else if(l>0)b=_-T;a=No;L.attr("cursor",Po.selection);B()}break}default:return}Mo()}function F(){switch(t.event.keyCode){case 16:{if(E){C=P=E=false;B()}break}case 18:{if(a===To){if(o<0)w=x;else if(o>0)v=y;if(l<0)k=N;else if(l>0)b=_;a=Ao;B()}break}case 32:{if(a===No){if(t.event.altKey){if(o)w=x-A*o,v=y+A*o;if(l)k=N-T*l,b=_+T*l;a=To}else{if(o<0)w=x;else if(o>0)v=y;if(l<0)k=N;else if(l>0)b=_;a=Ao}L.attr("cursor",Po[i]);B()}break}default:return}Mo()}}function h(){var t=this.__brush||{selection:null};t.extent=e.apply(this,arguments);t.dim=n;return t}o.extent=function(t){return arguments.length?(e=typeof t==="function"?t:mo([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),o):e};o.filter=function(t){return arguments.length?(r=typeof t==="function"?t:mo(!!t),o):r};o.handleSize=function(t){return arguments.length?(a=+t,o):a};o.on=function(){var t=i.on.apply(i,arguments);return t===i?o:t};return o}var Go=Math.cos;var Vo=Math.sin;var Wo=Math.PI;var Zo=Wo/2;var $o=Wo*2;var Qo=Math.max;function Jo(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Ko(){var t=0,n=null,e=null,r=null;function i(i){var a=i.length,u=[],o=w(a),f=[],c=[],l=c.groups=new Array(a),s=new Array(a*a),h,d,p,v,y,g;h=0,y=-1;while(++y<a){d=0,g=-1;while(++g<a){d+=i[y][g]}u.push(d);f.push(w(a));h+=d}if(n)o.sort(function(t,e){return n(u[t],u[e])});if(e)f.forEach(function(t,n){t.sort(function(t,r){return e(i[n][t],i[n][r])})});h=Qo(0,$o-t*a)/h;v=h?t:$o/a;d=0,y=-1;while(++y<a){p=d,g=-1;while(++g<a){var b=o[y],_=f[b][g],m=i[b][_],x=d,M=d+=m*h;s[_*a+b]={index:b,subindex:_,startAngle:x,endAngle:M,value:m}}l[b]={index:b,startAngle:p,endAngle:d,value:u[b]};d+=v}y=-1;while(++y<a){g=y-1;while(++g<a){var k=s[g*a+y],N=s[y*a+g];if(k.value||N.value){c.push(k.value<N.value?{source:N,target:k}:{source:k,target:N})}}}return r?c.sort(r):c}i.padAngle=function(n){return arguments.length?(t=Qo(0,n),i):t};i.sortGroups=function(t){return arguments.length?(n=t,i):n};i.sortSubgroups=function(t){return arguments.length?(e=t,i):e};i.sortChords=function(t){return arguments.length?(t==null?r=null:(r=Jo(t))._=t,i):r&&r._};return i}var tf=Array.prototype.slice;function nf(t){return function(){return t}}var ef=Math.PI,rf=2*ef,af=1e-6,uf=rf-af;function of(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function ff(){return new of}of.prototype=ff.prototype={constructor:of,moveTo:function t(n,e){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+e)},closePath:function t(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function t(n,e){this._+="L"+(this._x1=+n)+","+(this._y1=+e)},quadraticCurveTo:function t(n,e,r,i){this._+="Q"+ +n+","+ +e+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function t(n,e,r,i,a,u){this._+="C"+ +n+","+ +e+","+ +r+","+ +i+","+(this._x1=+a)+","+(this._y1=+u)},arcTo:function t(n,e,r,i,a){n=+n,e=+e,r=+r,i=+i,a=+a;var u=this._x1,o=this._y1,f=r-n,c=i-e,l=u-n,s=o-e,h=l*l+s*s;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null){this._+="M"+(this._x1=n)+","+(this._y1=e)}else if(!(h>af));else if(!(Math.abs(s*f-c*l)>af)||!a){this._+="L"+(this._x1=n)+","+(this._y1=e)}else{var d=r-u,p=i-o,v=f*f+c*c,y=d*d+p*p,g=Math.sqrt(v),b=Math.sqrt(h),_=a*Math.tan((ef-Math.acos((v+h-y)/(2*g*b)))/2),m=_/b,w=_/g;if(Math.abs(m-1)>af){this._+="L"+(n+m*l)+","+(e+m*s)}this._+="A"+a+","+a+",0,0,"+ +(s*d>l*p)+","+(this._x1=n+w*f)+","+(this._y1=e+w*c)}},arc:function t(n,e,r,i,a,u){n=+n,e=+e,r=+r;var o=r*Math.cos(i),f=r*Math.sin(i),c=n+o,l=e+f,s=1^u,h=u?i-a:a-i;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+c+","+l}else if(Math.abs(this._x1-c)>af||Math.abs(this._y1-l)>af){this._+="L"+c+","+l}if(!r)return;if(h<0)h=h%rf+rf;if(h>uf){this._+="A"+r+","+r+",0,1,"+s+","+(n-o)+","+(e-f)+"A"+r+","+r+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l)}else if(h>af){this._+="A"+r+","+r+",0,"+ +(h>=ef)+","+s+","+(this._x1=n+r*Math.cos(a))+","+(this._y1=e+r*Math.sin(a))}},rect:function t(n,e,r,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function t(){return this._}};function cf(t){return t.source}function lf(t){return t.target}function sf(t){return t.radius}function hf(t){return t.startAngle}function df(t){return t.endAngle}function pf(){var t=cf,n=lf,e=sf,r=hf,i=df,a=null;function u(){var u,o=tf.call(arguments),f=t.apply(this,o),c=n.apply(this,o),l=+e.apply(this,(o[0]=f,o)),s=r.apply(this,o)-Zo,h=i.apply(this,o)-Zo,d=l*Go(s),p=l*Vo(s),v=+e.apply(this,(o[0]=c,o)),y=r.apply(this,o)-Zo,g=i.apply(this,o)-Zo;if(!a)a=u=ff();a.moveTo(d,p);a.arc(0,0,l,s,h);if(s!==y||h!==g){a.quadraticCurveTo(0,0,v*Go(y),v*Vo(y));a.arc(0,0,v,y,g)}a.quadraticCurveTo(0,0,d,p);a.closePath();if(u)return a=null,u+""||null}u.radius=function(t){return arguments.length?(e=typeof t==="function"?t:nf(+t),u):e};u.startAngle=function(t){return arguments.length?(r=typeof t==="function"?t:nf(+t),u):r};u.endAngle=function(t){return arguments.length?(i=typeof t==="function"?t:nf(+t),u):i};u.source=function(n){return arguments.length?(t=n,u):t};u.target=function(t){return arguments.length?(n=t,u):n};u.context=function(t){return arguments.length?(a=t==null?null:t,u):a};return u}var vf="$";function yf(){}yf.prototype=gf.prototype={constructor:yf,has:function t(n){return vf+n in this},get:function t(n){return this[vf+n]},set:function t(n,e){this[vf+n]=e;return this},remove:function t(n){var e=vf+n;return e in this&&delete this[e]},clear:function t(){for(var n in this){if(n[0]===vf)delete this[n]}},keys:function t(){var t=[];for(var n in this){if(n[0]===vf)t.push(n.slice(1))}return t},values:function t(){var t=[];for(var n in this){if(n[0]===vf)t.push(this[n])}return t},entries:function t(){var t=[];for(var n in this){if(n[0]===vf)t.push({key:n.slice(1),value:this[n]})}return t},size:function t(){var t=0;for(var n in this){if(n[0]===vf)++t}return t},empty:function t(){for(var n in this){if(n[0]===vf)return false}return true},each:function t(n){for(var e in this){if(e[0]===vf)n(this[e],e.slice(1),this)}}};function gf(t,n){var e=new yf;if(t instanceof yf)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r=-1,i=t.length,a;if(n==null)while(++r<i){e.set(r,t[r])}else while(++r<i){e.set(n(a=t[r],r,t),a)}}else if(t)for(var u in t){e.set(u,t[u])}return e}function bf(){var t=[],n=[],e,r,i;function a(n,i,u,o){if(i>=t.length){if(e!=null)n.sort(e);return r!=null?r(n):n}var f=-1,c=n.length,l=t[i++],s,h,d=gf(),p,v=u();while(++f<c){if(p=d.get(s=l(h=n[f])+"")){p.push(h)}else{d.set(s,[h])}}d.each(function(t,n){o(v,n,a(t,i,u,o))});return v}function u(e,i){if(++i>t.length)return e;var a,o=n[i-1];if(r!=null&&i>=t.length)a=e.entries();else a=[],e.each(function(t,n){a.push({key:n,values:u(t,i)})});return o!=null?a.sort(function(t,n){return o(t.key,n.key)}):a}return i={object:function t(n){return a(n,0,_f,mf)},map:function t(n){return a(n,0,wf,xf)},entries:function t(n){return u(a(n,0,wf,xf),0)},key:function n(e){t.push(e);return i},sortKeys:function e(r){n[t.length-1]=r;return i},sortValues:function t(n){e=n;return i},rollup:function t(n){r=n;return i}}}function _f(){return{}}function mf(t,n,e){t[n]=e}function wf(){return gf()}function xf(t,n,e){t.set(n,e)}function Mf(){}var kf=gf.prototype;Mf.prototype=Nf.prototype={constructor:Mf,has:kf.has,add:function t(n){n+="";this[vf+n]=n;return this},remove:kf.remove,clear:kf.clear,values:kf.keys,size:kf.size,empty:kf.empty,each:kf.each};function Nf(t,n){var e=new Mf;if(t instanceof Mf)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(n==null)while(++r<i){e.add(t[r])}else while(++r<i){e.add(n(t[r],r,t))}}return e}function Af(t){var n=[];for(var e in t){n.push(e)}return n}function Tf(t){var n=[];for(var e in t){n.push(t[e])}return n}function Sf(t){var n=[];for(var e in t){n.push({key:e,value:t[e]})}return n}var Ef=Array.prototype;var Cf=Ef.slice;function Pf(t,n){return t-n}function zf(t){var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];while(++n<e){r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1]}return r}function Rf(t){return function(){return t}}function Df(t,n){var e=-1,r=n.length,i;while(++e<r){if(i=qf(t,n[e]))return i}return 0}function qf(t,n){var e=n[0],r=n[1],i=-1;for(var a=0,u=t.length,o=u-1;a<u;o=a++){var f=t[a],c=f[0],l=f[1],s=t[o],h=s[0],d=s[1];if(Lf(f,s,n))return 0;if(l>r!==d>r&&e<(h-c)*(r-l)/(d-l)+c)i=-i}return i}function Lf(t,n,e){var r;return Uf(t,n,e)&&If(t[r=+(t[0]===n[0])],e[r],n[r])}function Uf(t,n,e){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])}function If(t,n,e){return t<=n&&n<=e||e<=n&&n<=t}function Bf(){}var Of=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Yf(){var t=1,n=1,e=S,r=f;function i(t){var n=e(t);if(!Array.isArray(n)){var r=v(t),i=r[0],u=r[1];n=T(i,u,n);n=w(Math.floor(i/n)*n,Math.floor(u/n)*n,n)}else{n=n.slice().sort(Pf)}return n.map(function(n){return a(t,n)})}function a(t,n){var e=[],i=[];u(t,n,function(a){r(a,t,n);if(zf(a)>0)e.push([a]);else i.push(a)});i.forEach(function(t){for(var n=0,r=e.length,i;n<r;++n){if(Df((i=e[n])[0],t)!==-1){i.push(t);return}}});return{type:"MultiPolygon",value:n,coordinates:e}}function u(e,r,i){var a=new Array,u=new Array,f,c,l,s,h,d;f=c=-1;s=e[0]>=r;Of[s<<1].forEach(p);while(++f<t-1){l=s,s=e[f+1]>=r;Of[l|s<<1].forEach(p)}Of[s<<0].forEach(p);while(++c<n-1){f=-1;s=e[c*t+t]>=r;h=e[c*t]>=r;Of[s<<1|h<<2].forEach(p);while(++f<t-1){l=s,s=e[c*t+t+f+1]>=r;d=h,h=e[c*t+f+1]>=r;Of[l|s<<1|h<<2|d<<3].forEach(p)}Of[s|h<<3].forEach(p)}f=-1;h=e[c*t]>=r;Of[h<<2].forEach(p);while(++f<t-1){d=h,h=e[c*t+f+1]>=r;Of[h<<2|d<<3].forEach(p)}Of[h<<3].forEach(p);function p(t){var n=[t[0][0]+f,t[0][1]+c],e=[t[1][0]+f,t[1][1]+c],r=o(n),l=o(e),s,h;if(s=u[r]){if(h=a[l]){delete u[s.end];delete a[h.start];if(s===h){s.ring.push(e);i(s.ring)}else{a[s.start]=u[h.end]={start:s.start,end:h.end,ring:s.ring.concat(h.ring)}}}else{delete u[s.end];s.ring.push(e);u[s.end=l]=s}}else if(s=a[l]){if(h=u[r]){delete a[s.start];delete u[h.end];if(s===h){s.ring.push(e);i(s.ring)}else{a[h.start]=u[s.end]={start:h.start,end:s.end,ring:h.ring.concat(s.ring)}}}else{delete a[s.start];s.ring.unshift(n);a[s.start=r]=s}}else{a[r]=u[l]={start:r,end:l,ring:[n,e]}}}}function o(n){return n[0]*2+n[1]*(t+1)*4}function f(e,r,i){e.forEach(function(e){var a=e[0],u=e[1],o=a|0,f=u|0,c,l=r[f*t+o];if(a>0&&a<t&&o===a){c=r[f*t+o-1];e[0]=a+(i-c)/(l-c)-.5}if(u>0&&u<n&&f===u){c=r[(f-1)*t+o];e[1]=u+(i-c)/(l-c)-.5}})}i.contour=a;i.size=function(e){if(!arguments.length)return[t,n];var r=Math.ceil(e[0]),a=Math.ceil(e[1]);if(!(r>0)||!(a>0))throw new Error("invalid size");return t=r,n=a,i};i.thresholds=function(t){return arguments.length?(e=typeof t==="function"?t:Array.isArray(t)?Rf(Cf.call(t)):Rf(t),i):e};i.smooth=function(t){return arguments.length?(r=t?f:Bf,i):r===f};return i}function Ff(t,n,e){var r=t.width,i=t.height,a=(e<<1)+1;for(var u=0;u<i;++u){for(var o=0,f=0;o<r+e;++o){if(o<r){f+=t.data[o+u*r]}if(o>=e){if(o>=a){f-=t.data[o-a+u*r]}n.data[o-e+u*r]=f/Math.min(o+1,r-1+a-o,a)}}}}function Hf(t,n,e){var r=t.width,i=t.height,a=(e<<1)+1;for(var u=0;u<r;++u){for(var o=0,f=0;o<i+e;++o){if(o<i){f+=t.data[u+o*r]}if(o>=e){if(o>=a){f-=t.data[u+(o-a)*r]}n.data[u+(o-e)*r]=f/Math.min(o+1,i-1+a-o,a)}}}}function jf(t){return t[0]}function Xf(t){return t[1]}function Gf(){return 1}function Vf(){var t=jf,n=Xf,e=Gf,r=960,i=500,a=20,u=2,o=a*3,f=r+o*2>>u,c=i+o*2>>u,l=Rf(20);function s(r){var i=new Float32Array(f*c),s=new Float32Array(f*c);r.forEach(function(r,a,l){var s=+t(r,a,l)+o>>u,h=+n(r,a,l)+o>>u,d=+e(r,a,l);if(s>=0&&s<f&&h>=0&&h<c){i[s+h*f]+=d}});Ff({width:f,height:c,data:i},{width:f,height:c,data:s},a>>u);Hf({width:f,height:c,data:s},{width:f,height:c,data:i},a>>u);Ff({width:f,height:c,data:i},{width:f,height:c,data:s},a>>u);Hf({width:f,height:c,data:s},{width:f,height:c,data:i},a>>u);Ff({width:f,height:c,data:i},{width:f,height:c,data:s},a>>u);Hf({width:f,height:c,data:s},{width:f,height:c,data:i},a>>u);var d=l(i);if(!Array.isArray(d)){var p=R(i);d=T(0,p,d);d=w(0,Math.floor(p/d)*d,d);d.shift()}return Yf().thresholds(d).size([f,c])(i).map(h)}function h(t){t.value*=Math.pow(2,-2*u);t.coordinates.forEach(d);return t}function d(t){t.forEach(p)}function p(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,u)-o;t[1]=t[1]*Math.pow(2,u)-o}function y(){o=a*3;f=r+o*2>>u;c=i+o*2>>u;return s}s.x=function(n){return arguments.length?(t=typeof n==="function"?n:Rf(+n),s):t};s.y=function(t){return arguments.length?(n=typeof t==="function"?t:Rf(+t),s):n};s.weight=function(t){return arguments.length?(e=typeof t==="function"?t:Rf(+t),s):e};s.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0)&&!(n>=0))throw new Error("invalid size");return r=n,i=e,y()};s.cellSize=function(t){if(!arguments.length)return 1<<u;if(!((t=+t)>=1))throw new Error("invalid cell size");return u=Math.floor(Math.log(t)/Math.LN2),y()};s.thresholds=function(t){return arguments.length?(l=typeof t==="function"?t:Array.isArray(t)?Rf(Cf.call(t)):Rf(t),s):l};s.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()};return s}var Wf={},Zf={},$f=34,Qf=10,Jf=13;function Kf(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function tc(t,n){var e=Kf(t);return function(r,i){return n(e(r),i,t)}}function nc(t){var n=Object.create(null),e=[];t.forEach(function(t){for(var r in t){if(!(r in n)){e.push(n[r]=r)}}});return e}function ec(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function rc(t){return t<0?"-"+ec(-t,6):t>9999?"+"+ec(t,6):ec(t,4)}function ic(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":rc(t.getUTCFullYear(),4)+"-"+ec(t.getUTCMonth()+1,2)+"-"+ec(t.getUTCDate(),2)+(i?"T"+ec(n,2)+":"+ec(e,2)+":"+ec(r,2)+"."+ec(i,3)+"Z":r?"T"+ec(n,2)+":"+ec(e,2)+":"+ec(r,2)+"Z":e||n?"T"+ec(n,2)+":"+ec(e,2)+"Z":"")}function ac(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var e,r,a=i(t,function(t,i){if(e)return e(t,i-1);r=t,e=n?tc(t,n):Kf(t)});a.columns=r||[];return a}function i(t,n){var r=[],i=t.length,a=0,u=0,o,f=i<=0,c=false;if(t.charCodeAt(i-1)===Qf)--i;if(t.charCodeAt(i-1)===Jf)--i;function l(){if(f)return Zf;if(c)return c=false,Wf;var n,r=a,u;if(t.charCodeAt(r)===$f){while(a++<i&&t.charCodeAt(a)!==$f||t.charCodeAt(++a)===$f){}if((n=a)>=i)f=true;else if((u=t.charCodeAt(a++))===Qf)c=true;else if(u===Jf){c=true;if(t.charCodeAt(a)===Qf)++a}return t.slice(r+1,n-1).replace(/""/g,'"')}while(a<i){if((u=t.charCodeAt(n=a++))===Qf)c=true;else if(u===Jf){c=true;if(t.charCodeAt(a)===Qf)++a}else if(u!==e)continue;return t.slice(r,n)}return f=true,t.slice(r,i)}while((o=l())!==Zf){var s=[];while(o!==Wf&&o!==Zf){s.push(o),o=l()}if(n&&(s=n(s,u++))==null)continue;r.push(s)}return r}function a(n,e){return n.map(function(n){return e.map(function(t){return l(n[t])}).join(t)})}function u(n,e){if(e==null)e=nc(n);return[e.map(l).join(t)].concat(a(n,e)).join("\n")}function o(t,n){if(n==null)n=nc(t);return a(t,n).join("\n")}function f(t){return t.map(c).join("\n")}function c(n){return n.map(l).join(t)}function l(t){return t==null?"":t instanceof Date?ic(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:r,parseRows:i,format:u,formatBody:o,formatRows:f}}var uc=ac(",");var oc=uc.parse;var fc=uc.parseRows;var cc=uc.format;var lc=uc.formatBody;var sc=uc.formatRows;var hc=ac("\t");var dc=hc.parse;var pc=hc.parseRows;var vc=hc.format;var yc=hc.formatBody;var gc=hc.formatRows;function bc(t){for(var n in t){var e=t[n].trim(),r;if(!e)e=null;else if(e==="true")e=true;else if(e==="false")e=false;else if(e==="NaN")e=NaN;else if(!isNaN(r=+e))e=r;else if(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/.test(e))e=new Date(e);else continue;t[n]=e}return t}function _c(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function mc(t,n){return fetch(t,n).then(_c)}function wc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function xc(t,n){return fetch(t,n).then(wc)}function Mc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function kc(t,n){return fetch(t,n).then(Mc)}function Nc(t){return function(n,e,r){if(arguments.length===2&&typeof e==="function")r=e,e=undefined;return kc(n,e).then(function(n){return t(n,r)})}}function Ac(t,n,e,r){if(arguments.length===3&&typeof e==="function")r=e,e=undefined;var i=ac(t);return kc(n,e).then(function(t){return i.parse(t,r)})}var Tc=Nc(oc);var Sc=Nc(dc);function Ec(t,n){return new Promise(function(e,r){var i=new Image;for(var a in n){i[a]=n[a]}i.onerror=r;i.onload=function(){e(i)};i.src=t})}function Cc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.json()}function Pc(t,n){return fetch(t,n).then(Cc)}function zc(t){return function(n,e){return kc(n,e).then(function(n){return(new DOMParser).parseFromString(n,t)})}}var Rc=zc("application/xml");var Dc=zc("text/html");var qc=zc("image/svg+xml");function Lc(t,n){var e;if(t==null)t=0;if(n==null)n=0;function r(){var r,i=e.length,a,u=0,o=0;for(r=0;r<i;++r){a=e[r],u+=a.x,o+=a.y}for(u=u/i-t,o=o/i-n,r=0;r<i;++r){a=e[r],a.x-=u,a.y-=o}}r.initialize=function(t){e=t};r.x=function(n){return arguments.length?(t=+n,r):t};r.y=function(t){return arguments.length?(n=+t,r):n};return r}function Uc(t){return function(){return t}}function Ic(){return(Math.random()-.5)*1e-6}function Bc(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Oc(this.cover(n,e),n,e,t)}function Oc(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,a=t._root,u={data:r},o=t._x0,f=t._y0,c=t._x1,l=t._y1,s,h,d,p,v,y,g,b;if(!a)return t._root=u,t;while(a.length){if(v=n>=(s=(o+c)/2))o=s;else c=s;if(y=e>=(h=(f+l)/2))f=h;else l=h;if(i=a,!(a=a[g=y<<1|v]))return i[g]=u,t}d=+t._x.call(null,a.data);p=+t._y.call(null,a.data);if(n===d&&e===p)return u.next=a,i?i[g]=u:t._root=u,t;do{i=i?i[g]=new Array(4):t._root=new Array(4);if(v=n>=(s=(o+c)/2))o=s;else c=s;if(y=e>=(h=(f+l)/2))f=h;else l=h}while((g=y<<1|v)===(b=(p>=h)<<1|d>=s));return i[b]=a,i[g]=u,t}function Yc(t){var n,e,r=t.length,i,a,u=new Array(r),o=new Array(r),f=Infinity,c=Infinity,l=-Infinity,s=-Infinity;for(e=0;e<r;++e){if(isNaN(i=+this._x.call(null,n=t[e]))||isNaN(a=+this._y.call(null,n)))continue;u[e]=i;o[e]=a;if(i<f)f=i;if(i>l)l=i;if(a<c)c=a;if(a>s)s=a}if(f>l||c>s)return this;this.cover(f,c).cover(l,s);for(e=0;e<r;++e){Oc(this,u[e],o[e],t[e])}return this}function Fc(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(e)){i=(e=Math.floor(t))+1;a=(r=Math.floor(n))+1}else{var u=i-e,o=this._root,f,c;while(e>t||t>=i||r>n||n>=a){c=(n<r)<<1|t<e;f=new Array(4),f[c]=o,o=f,u*=2;switch(c){case 0:i=e+u,a=r+u;break;case 1:e=i-u,a=r+u;break;case 2:i=e+u,r=a-u;break;case 3:e=i-u,r=a-u;break}}if(this._root&&this._root.length)this._root=o}this._x0=e;this._y0=r;this._x1=i;this._y1=a;return this}function Hc(){var t=[];this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)});return t}function jc(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?undefined:[[this._x0,this._y0],[this._x1,this._y1]]}function Xc(t,n,e,r,i){this.node=t;this.x0=n;this.y0=e;this.x1=r;this.y1=i}function Gc(t,n,e){var r,i=this._x0,a=this._y0,u,o,f,c,l=this._x1,s=this._y1,h=[],d=this._root,p,v;if(d)h.push(new Xc(d,i,a,l,s));if(e==null)e=Infinity;else{i=t-e,a=n-e;l=t+e,s=n+e;e*=e}while(p=h.pop()){if(!(d=p.node)||(u=p.x0)>l||(o=p.y0)>s||(f=p.x1)<i||(c=p.y1)<a)continue;if(d.length){var y=(u+f)/2,g=(o+c)/2;h.push(new Xc(d[3],y,g,f,c),new Xc(d[2],u,g,y,c),new Xc(d[1],y,o,f,g),new Xc(d[0],u,o,y,g));if(v=(n>=g)<<1|t>=y){p=h[h.length-1];h[h.length-1]=h[h.length-1-v];h[h.length-1-v]=p}}else{var b=t-+this._x.call(null,d.data),_=n-+this._y.call(null,d.data),m=b*b+_*_;if(m<e){var w=Math.sqrt(e=m);i=t-w,a=n-w;l=t+w,s=n+w;r=d.data}}}return r}function Vc(t){if(isNaN(l=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var n,e=this._root,r,i,a,u=this._x0,o=this._y0,f=this._x1,c=this._y1,l,s,h,d,p,v,y,g;if(!e)return this;if(e.length)while(true){if(p=l>=(h=(u+f)/2))u=h;else f=h;if(v=s>=(d=(o+c)/2))o=d;else c=d;if(!(n=e,e=e[y=v<<1|p]))return this;if(!e.length)break;if(n[y+1&3]||n[y+2&3]||n[y+3&3])r=n,g=y}while(e.data!==t){if(!(i=e,e=e.next))return this}if(a=e.next)delete e.next;if(i)return a?i.next=a:delete i.next,this;if(!n)return this._root=a,this;a?n[y]=a:delete n[y];if((e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length){if(r)r[g]=e;else this._root=e}return this}function Wc(t){for(var n=0,e=t.length;n<e;++n){this.remove(t[n])}return this}function Zc(){return this._root}function $c(){var t=0;this.visit(function(n){if(!n.length)do{++t}while(n=n.next)});return t}function Qc(t){var n=[],e,r=this._root,i,a,u,o,f;if(r)n.push(new Xc(r,this._x0,this._y0,this._x1,this._y1));while(e=n.pop()){if(!t(r=e.node,a=e.x0,u=e.y0,o=e.x1,f=e.y1)&&r.length){var c=(a+o)/2,l=(u+f)/2;if(i=r[3])n.push(new Xc(i,c,l,o,f));if(i=r[2])n.push(new Xc(i,a,l,c,f));if(i=r[1])n.push(new Xc(i,c,u,o,l));if(i=r[0])n.push(new Xc(i,a,u,c,l))}}return this}function Jc(t){var n=[],e=[],r;if(this._root)n.push(new Xc(this._root,this._x0,this._y0,this._x1,this._y1));while(r=n.pop()){var i=r.node;if(i.length){var a,u=r.x0,o=r.y0,f=r.x1,c=r.y1,l=(u+f)/2,s=(o+c)/2;if(a=i[0])n.push(new Xc(a,u,o,l,s));if(a=i[1])n.push(new Xc(a,l,o,f,s));if(a=i[2])n.push(new Xc(a,u,s,l,c));if(a=i[3])n.push(new Xc(a,l,s,f,c))}e.push(r)}while(r=e.pop()){t(r.node,r.x0,r.y0,r.x1,r.y1)}return this}function Kc(t){return t[0]}function tl(t){return arguments.length?(this._x=t,this):this._x}function nl(t){return t[1]}function el(t){return arguments.length?(this._y=t,this):this._y}function rl(t,n,e){var r=new il(n==null?Kc:n,e==null?nl:e,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function il(t,n,e,r,i,a){this._x=t;this._y=n;this._x0=e;this._y0=r;this._x1=i;this._y1=a;this._root=undefined}function al(t){var n={data:t.data},e=n;while(t=t.next){e=e.next={data:t.data}}return n}var ul=rl.prototype=il.prototype;ul.copy=function(){var t=new il(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,e,r;if(!n)return t;if(!n.length)return t._root=al(n),t;e=[{source:n,target:t._root=new Array(4)}];while(n=e.pop()){for(var i=0;i<4;++i){if(r=n.source[i]){if(r.length)e.push({source:r,target:n.target[i]=new Array(4)});else n.target[i]=al(r)}}}return t};ul.add=Bc;ul.addAll=Yc;ul.cover=Fc;ul.data=Hc;ul.extent=jc;ul.find=Gc;ul.remove=Vc;ul.removeAll=Wc;ul.root=Zc;ul.size=$c;ul.visit=Qc;ul.visitAfter=Jc;ul.x=tl;ul.y=el;function ol(t){return t.x+t.vx}function fl(t){return t.y+t.vy}function cl(t){var n,e,r=1,i=1;if(typeof t!=="function")t=Uc(t==null?1:+t);function a(){var t,a=n.length,o,f,c,l,s,h;for(var d=0;d<i;++d){o=rl(n,ol,fl).visitAfter(u);for(t=0;t<a;++t){f=n[t];s=e[f.index],h=s*s;c=f.x+f.vx;l=f.y+f.vy;o.visit(p)}}function p(t,n,e,i,a){var u=t.data,o=t.r,d=s+o;if(u){if(u.index>f.index){var p=c-u.x-u.vx,v=l-u.y-u.vy,y=p*p+v*v;if(y<d*d){if(p===0)p=Ic(),y+=p*p;if(v===0)v=Ic(),y+=v*v;y=(d-(y=Math.sqrt(y)))/y*r;f.vx+=(p*=y)*(d=(o*=o)/(h+o));f.vy+=(v*=y)*d;u.vx-=p*(d=1-d);u.vy-=v*d}}return}return n>c+d||i<c-d||e>l+d||a<l-d}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n){if(t[n]&&t[n].r>t.r){t.r=t[n].r}}}function o(){if(!n)return;var r,i=n.length,a;e=new Array(i);for(r=0;r<i;++r){a=n[r],e[a.index]=+t(a,r,n)}}a.initialize=function(t){n=t;o()};a.iterations=function(t){return arguments.length?(i=+t,a):i};a.strength=function(t){return arguments.length?(r=+t,a):r};a.radius=function(n){return arguments.length?(t=typeof n==="function"?n:Uc(+n),o(),a):t};return a}function ll(t){return t.index}function sl(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function hl(t){var n=ll,e=l,r,i=Uc(30),a,u,o,f,c=1;if(t==null)t=[];function l(t){return 1/Math.min(o[t.source.index],o[t.target.index])}function s(n){for(var e=0,i=t.length;e<c;++e){for(var u=0,o,l,s,h,d,p,v;u<i;++u){o=t[u],l=o.source,s=o.target;h=s.x+s.vx-l.x-l.vx||Ic();d=s.y+s.vy-l.y-l.vy||Ic();p=Math.sqrt(h*h+d*d);p=(p-a[u])/p*n*r[u];h*=p,d*=p;s.vx-=h*(v=f[u]);s.vy-=d*v;l.vx+=h*(v=1-v);l.vy+=d*v}}}function h(){if(!u)return;var e,i=u.length,c=t.length,l=gf(u,n),s;for(e=0,o=new Array(i);e<c;++e){s=t[e],s.index=e;if(babelHelpers.typeof(s.source)!=="object")s.source=sl(l,s.source);if(babelHelpers.typeof(s.target)!=="object")s.target=sl(l,s.target);o[s.source.index]=(o[s.source.index]||0)+1;o[s.target.index]=(o[s.target.index]||0)+1}for(e=0,f=new Array(c);e<c;++e){s=t[e],f[e]=o[s.source.index]/(o[s.source.index]+o[s.target.index])}r=new Array(c),d();a=new Array(c),p()}function d(){if(!u)return;for(var n=0,i=t.length;n<i;++n){r[n]=+e(t[n],n,t)}}function p(){if(!u)return;for(var n=0,e=t.length;n<e;++n){a[n]=+i(t[n],n,t)}}s.initialize=function(t){u=t;h()};s.links=function(n){return arguments.length?(t=n,h(),s):t};s.id=function(t){return arguments.length?(n=t,s):n};s.iterations=function(t){return arguments.length?(c=+t,s):c};s.strength=function(t){return arguments.length?(e=typeof t==="function"?t:Uc(+t),d(),s):e};s.distance=function(t){return arguments.length?(i=typeof t==="function"?t:Uc(+t),p(),s):i};return s}function dl(t){return t.x}function pl(t){return t.y}var vl=10,yl=Math.PI*(3-Math.sqrt(5));function gl(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),a=0,u=.6,o=gf(),f=Ji(l),c=ct("tick","end");if(t==null)t=[];function l(){s();c.call("tick",n);if(e<r){f.stop();c.call("end",n)}}function s(r){var f,c=t.length,l;if(r===undefined)r=1;for(var s=0;s<r;++s){e+=(a-e)*i;o.each(function(t){t(e)});for(f=0;f<c;++f){l=t[f];if(l.fx==null)l.x+=l.vx*=u;else l.x=l.fx,l.vx=0;if(l.fy==null)l.y+=l.vy*=u;else l.y=l.fy,l.vy=0}}return n}function h(){for(var n=0,e=t.length,r;n<e;++n){r=t[n],r.index=n;if(r.fx!=null)r.x=r.fx;if(r.fy!=null)r.y=r.fy;if(isNaN(r.x)||isNaN(r.y)){var i=vl*Math.sqrt(n),a=n*yl;r.x=i*Math.cos(a);r.y=i*Math.sin(a)}if(isNaN(r.vx)||isNaN(r.vy)){r.vx=r.vy=0}}}function d(n){if(n.initialize)n.initialize(t);return n}h();return n={tick:s,restart:function t(){return f.restart(l),n},stop:function t(){return f.stop(),n},nodes:function e(r){return arguments.length?(t=r,h(),o.each(d),n):t},alpha:function t(r){return arguments.length?(e=+r,n):e},alphaMin:function t(e){return arguments.length?(r=+e,n):r},alphaDecay:function t(e){return arguments.length?(i=+e,n):+i},alphaTarget:function t(e){return arguments.length?(a=+e,n):a},velocityDecay:function t(e){return arguments.length?(u=1-e,n):1-u},force:function t(e,r){return arguments.length>1?(r==null?o.remove(e):o.set(e,d(r)),n):o.get(e)},find:function n(e,r,i){var a=0,u=t.length,o,f,c,l,s;if(i==null)i=Infinity;else i*=i;for(a=0;a<u;++a){l=t[a];o=e-l.x;f=r-l.y;c=o*o+f*f;if(c<i)s=l,i=c}return s},on:function t(e,r){return arguments.length>1?(c.on(e,r),n):c.on(e)}}}function bl(){var t,n,e,r=Uc(-30),i,a=1,u=Infinity,o=.81;function f(r){var i,a=t.length,u=rl(t,dl,pl).visitAfter(l);for(e=r,i=0;i<a;++i){n=t[i],u.visit(s)}}function c(){if(!t)return;var n,e=t.length,a;i=new Array(e);for(n=0;n<e;++n){a=t[n],i[a.index]=+r(a,n,t)}}function l(t){var n=0,e,r,a=0,u,o,f;if(t.length){for(u=o=f=0;f<4;++f){if((e=t[f])&&(r=Math.abs(e.value))){n+=e.value,a+=r,u+=r*e.x,o+=r*e.y}}t.x=u/a;t.y=o/a}else{e=t;e.x=e.data.x;e.y=e.data.y;do{n+=i[e.data.index]}while(e=e.next)}t.value=n}function s(t,r,f,c){if(!t.value)return true;var l=t.x-n.x,s=t.y-n.y,h=c-r,d=l*l+s*s;if(h*h/o<d){if(d<u){if(l===0)l=Ic(),d+=l*l;if(s===0)s=Ic(),d+=s*s;if(d<a)d=Math.sqrt(a*d);n.vx+=l*t.value*e/d;n.vy+=s*t.value*e/d}return true}else if(t.length||d>=u)return;if(t.data!==n||t.next){if(l===0)l=Ic(),d+=l*l;if(s===0)s=Ic(),d+=s*s;if(d<a)d=Math.sqrt(a*d)}do{if(t.data!==n){h=i[t.data.index]*e/d;n.vx+=l*h;n.vy+=s*h}}while(t=t.next)}f.initialize=function(n){t=n;c()};f.strength=function(t){return arguments.length?(r=typeof t==="function"?t:Uc(+t),c(),f):r};f.distanceMin=function(t){return arguments.length?(a=t*t,f):Math.sqrt(a)};f.distanceMax=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)};f.theta=function(t){return arguments.length?(o=t*t,f):Math.sqrt(o)};return f}function _l(t,n,e){var r,i=Uc(.1),a,u;if(typeof t!=="function")t=Uc(+t);if(n==null)n=0;if(e==null)e=0;function o(t){for(var i=0,o=r.length;i<o;++i){var f=r[i],c=f.x-n||1e-6,l=f.y-e||1e-6,s=Math.sqrt(c*c+l*l),h=(u[i]-s)*a[i]*t/s;f.vx+=c*h;f.vy+=l*h}}function f(){if(!r)return;var n,e=r.length;a=new Array(e);u=new Array(e);for(n=0;n<e;++n){u[n]=+t(r[n],n,r);a[n]=isNaN(u[n])?0:+i(r[n],n,r)}}o.initialize=function(t){r=t,f()};o.strength=function(t){return arguments.length?(i=typeof t==="function"?t:Uc(+t),f(),o):i};o.radius=function(n){return arguments.length?(t=typeof n==="function"?n:Uc(+n),f(),o):t};o.x=function(t){return arguments.length?(n=+t,o):n};o.y=function(t){return arguments.length?(e=+t,o):e};return o}function ml(t){var n=Uc(.1),e,r,i;if(typeof t!=="function")t=Uc(t==null?0:+t);function a(t){for(var n=0,a=e.length,u;n<a;++n){u=e[n],u.vx+=(i[n]-u.x)*r[n]*t}}function u(){if(!e)return;var a,u=e.length;r=new Array(u);i=new Array(u);for(a=0;a<u;++a){r[a]=isNaN(i[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}a.initialize=function(t){e=t;u()};a.strength=function(t){return arguments.length?(n=typeof t==="function"?t:Uc(+t),u(),a):n};a.x=function(n){return arguments.length?(t=typeof n==="function"?n:Uc(+n),u(),a):t};return a}function wl(t){var n=Uc(.1),e,r,i;if(typeof t!=="function")t=Uc(t==null?0:+t);function a(t){for(var n=0,a=e.length,u;n<a;++n){u=e[n],u.vy+=(i[n]-u.y)*r[n]*t}}function u(){if(!e)return;var a,u=e.length;r=new Array(u);i=new Array(u);for(a=0;a<u;++a){r[a]=isNaN(i[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}a.initialize=function(t){e=t;u()};a.strength=function(t){return arguments.length?(n=typeof t==="function"?t:Uc(+t),u(),a):n};a.y=function(n){return arguments.length?(t=typeof n==="function"?n:Uc(+n),u(),a):t};return a}function xl(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Ml(t){return t=xl(Math.abs(t)),t?t[1]:NaN}function kl(t,n){return function(e,r){var i=e.length,a=[],u=0,o=t[0],f=0;while(i>0&&o>0){if(f+o+1>r)o=Math.max(1,r-f);a.push(e.substring(i-=o,i+o));if((f+=o+1)>r)break;o=t[u=(u+1)%t.length]}return a.reverse().join(n)}}function Nl(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}var Al=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tl(t){return new Sl(t)}Tl.prototype=Sl.prototype;function Sl(t){if(!(n=Al.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ";this.align=n[2]||">";this.sign=n[3]||"-";this.symbol=n[4]||"";this.zero=!!n[5];this.width=n[6]&&+n[6];this.comma=!!n[7];this.precision=n[8]&&+n[8].slice(1);this.trim=!!n[9];this.type=n[10]||""}Sl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function El(t){t:for(var n=t.length,e=1,r=-1,i;e<n;++e){switch(t[e]){case".":r=i=e;break;case"0":if(r===0)r=e;i=e;break;default:if(r>0){if(!+t[e])break t;r=0}break}}return r>0?t.slice(0,r)+t.slice(i+1):t}var Cl;function Pl(t,n){var e=xl(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(Cl=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=r.length;return a===u?r:a>u?r+new Array(a-u+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+xl(t,Math.max(0,n+a-1))[0]}function zl(t,n){var e=xl(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Rl={"%":function t(n,e){return(n*100).toFixed(e)},b:function t(n){return Math.round(n).toString(2)},c:function t(n){return n+""},d:function t(n){return Math.round(n).toString(10)},e:function t(n,e){return n.toExponential(e)},f:function t(n,e){return n.toFixed(e)},g:function t(n,e){return n.toPrecision(e)},o:function t(n){return Math.round(n).toString(8)},p:function t(n,e){return zl(n*100,e)},r:zl,s:Pl,X:function t(n){return Math.round(n).toString(16).toUpperCase()},x:function t(n){return Math.round(n).toString(16)}};function Dl(t){return t}var ql=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ll(t){var n=t.grouping&&t.thousands?kl(t.grouping,t.thousands):Dl,e=t.currency,r=t.decimal,i=t.numerals?Nl(t.numerals):Dl,a=t.percent||"%";function u(t){t=Tl(t);var u=t.fill,o=t.align,f=t.sign,c=t.symbol,l=t.zero,s=t.width,h=t.comma,d=t.precision,p=t.trim,v=t.type;if(v==="n")h=true,v="g";else if(!Rl[v])d==null&&(d=12),p=true,v="g";if(l||u==="0"&&o==="=")l=true,u="0",o="=";var y=c==="$"?e[0]:c==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",g=c==="$"?e[1]:/[%p]/.test(v)?a:"";var b=Rl[v],_=/[defgprs%]/.test(v);d=d==null?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d));function m(t){var e=y,a=g,c,m,w;if(v==="c"){a=b(t)+a;t=""}else{t=+t;var x=t<0;t=b(Math.abs(t),d);if(p)t=El(t);if(x&&+t===0)x=false;e=(x?f==="("?f:"-":f==="-"||f==="("?"":f)+e;a=(v==="s"?ql[8+Cl/3]:"")+a+(x&&f==="("?")":"");if(_){c=-1,m=t.length;while(++c<m){if(w=t.charCodeAt(c),48>w||w>57){a=(w===46?r+t.slice(c+1):t.slice(c))+a;t=t.slice(0,c);break}}}}if(h&&!l)t=n(t,Infinity);var M=e.length+t.length+a.length,k=M<s?new Array(s-M+1).join(u):"";if(h&&l)t=n(k+t,k.length?s-a.length:Infinity),k="";switch(o){case"<":t=e+t+a+k;break;case"=":t=e+k+t+a;break;case"^":t=k.slice(0,M=k.length>>1)+e+t+a+k.slice(M);break;default:t=k+e+t+a;break}return i(t)}m.toString=function(){return t+""};return m}function o(t,n){var e=u((t=Tl(t),t.type="f",t)),r=Math.max(-8,Math.min(8,Math.floor(Ml(n)/3)))*3,i=Math.pow(10,-r),a=ql[8+r/3];return function(t){return e(i*t)+a}}return{format:u,formatPrefix:o}}var Ul;Il({decimal:".",thousands:",",grouping:[3],currency:["$",""]});function Il(n){Ul=Ll(n);t.format=Ul.format;t.formatPrefix=Ul.formatPrefix;return Ul}function Bl(t){return Math.max(0,-Ml(Math.abs(t)))}function Ol(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ml(n)/3)))*3-Ml(Math.abs(t)))}function Yl(t,n){t=Math.abs(t),n=Math.abs(n)-t;return Math.max(0,Ml(n)-Ml(t))+1}function Fl(){return new Hl}function Hl(){this.reset()}Hl.prototype={constructor:Hl,reset:function t(){this.s=this.t=0},add:function t(n){Xl(jl,n,this.t);Xl(this,jl.s,this.s);if(this.s)this.t+=jl.t;else this.s=jl.t},valueOf:function t(){return this.s}};var jl=new Hl;function Xl(t,n,e){var r=t.s=n+e,i=r-n,a=r-i;t.t=n-a+(e-i)}var Gl=1e-6;var Vl=1e-12;var Wl=Math.PI;var Zl=Wl/2;var $l=Wl/4;var Ql=Wl*2;var Jl=180/Wl;var Kl=Wl/180;var ts=Math.abs;var ns=Math.atan;var es=Math.atan2;var rs=Math.cos;var is=Math.ceil;var as=Math.exp;var us=Math.log;var os=Math.pow;var fs=Math.sin;var cs=Math.sign||function(t){return t>0?1:t<0?-1:0};var ls=Math.sqrt;var ss=Math.tan;function hs(t){return t>1?0:t<-1?Wl:Math.acos(t)}function ds(t){return t>1?Zl:t<-1?-Zl:Math.asin(t)}function ps(t){return(t=fs(t/2))*t}function vs(){}function ys(t,n){if(t&&bs.hasOwnProperty(t.type)){bs[t.type](t,n)}}var gs={Feature:function t(n,e){ys(n.geometry,e)},FeatureCollection:function t(n,e){var r=n.features,i=-1,a=r.length;while(++i<a){ys(r[i].geometry,e)}}};var bs={Sphere:function t(n,e){e.sphere()},Point:function t(n,e){n=n.coordinates;e.point(n[0],n[1],n[2])},MultiPoint:function t(n,e){var r=n.coordinates,i=-1,a=r.length;while(++i<a){n=r[i],e.point(n[0],n[1],n[2])}},LineString:function t(n,e){_s(n.coordinates,e,0)},MultiLineString:function t(n,e){var r=n.coordinates,i=-1,a=r.length;while(++i<a){_s(r[i],e,0)}},Polygon:function t(n,e){ms(n.coordinates,e)},MultiPolygon:function t(n,e){var r=n.coordinates,i=-1,a=r.length;while(++i<a){ms(r[i],e)}},GeometryCollection:function t(n,e){var r=n.geometries,i=-1,a=r.length;while(++i<a){ys(r[i],e)}}};function _s(t,n,e){var r=-1,i=t.length-e,a;n.lineStart();while(++r<i){a=t[r],n.point(a[0],a[1],a[2])}n.lineEnd()}function ms(t,n){var e=-1,r=t.length;n.polygonStart();while(++e<r){_s(t[e],n,1)}n.polygonEnd()}function ws(t,n){if(t&&gs.hasOwnProperty(t.type)){gs[t.type](t,n)}else{ys(t,n)}}var xs=Fl();var Ms=Fl(),ks,Ns,As,Ts,Ss;var Es={point:vs,lineStart:vs,lineEnd:vs,polygonStart:function t(){xs.reset();Es.lineStart=Cs;Es.lineEnd=Ps},polygonEnd:function t(){var n=+xs;Ms.add(n<0?Ql+n:n);this.lineStart=this.lineEnd=this.point=vs},sphere:function t(){Ms.add(Ql)}};function Cs(){Es.point=zs}function Ps(){Rs(ks,Ns)}function zs(t,n){Es.point=Rs;ks=t,Ns=n;t*=Kl,n*=Kl;As=t,Ts=rs(n=n/2+$l),Ss=fs(n)}function Rs(t,n){t*=Kl,n*=Kl;n=n/2+$l;var e=t-As,r=e>=0?1:-1,i=r*e,a=rs(n),u=fs(n),o=Ss*u,f=Ts*a+o*rs(i),c=o*r*fs(i);xs.add(es(c,f));As=t,Ts=a,Ss=u}function Ds(t){Ms.reset();ws(t,Es);return Ms*2}function qs(t){return[es(t[1],t[0]),ds(t[2])]}function Ls(t){var n=t[0],e=t[1],r=rs(e);return[r*rs(n),r*fs(n),fs(e)]}function Us(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Is(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Bs(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Os(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Ys(t){var n=ls(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Fs,Hs,js,Xs,Gs,Vs,Ws,Zs,$s=Fl(),Qs,Js;var Ks={point:th,lineStart:eh,lineEnd:rh,polygonStart:function t(){Ks.point=ih;Ks.lineStart=ah;Ks.lineEnd=uh;$s.reset();Es.polygonStart()},polygonEnd:function t(){Es.polygonEnd();Ks.point=th;Ks.lineStart=eh;Ks.lineEnd=rh;if(xs<0)Fs=-(js=180),Hs=-(Xs=90);else if($s>Gl)Xs=90;else if($s<-Gl)Hs=-90;Js[0]=Fs,Js[1]=js}};function th(t,n){Qs.push(Js=[Fs=t,js=t]);if(n<Hs)Hs=n;if(n>Xs)Xs=n}function nh(t,n){var e=Ls([t*Kl,n*Kl]);if(Zs){var r=Is(Zs,e),i=[r[1],-r[0],0],a=Is(i,r);Ys(a);a=qs(a);var u=t-Gs,o=u>0?1:-1,f=a[0]*Jl*o,c,l=ts(u)>180;if(l^(o*Gs<f&&f<o*t)){c=a[1]*Jl;if(c>Xs)Xs=c}else if(f=(f+360)%360-180,l^(o*Gs<f&&f<o*t)){c=-a[1]*Jl;if(c<Hs)Hs=c}else{if(n<Hs)Hs=n;if(n>Xs)Xs=n}if(l){if(t<Gs){if(oh(Fs,t)>oh(Fs,js))js=t}else{if(oh(t,js)>oh(Fs,js))Fs=t}}else{if(js>=Fs){if(t<Fs)Fs=t;if(t>js)js=t}else{if(t>Gs){if(oh(Fs,t)>oh(Fs,js))js=t}else{if(oh(t,js)>oh(Fs,js))Fs=t}}}}else{Qs.push(Js=[Fs=t,js=t])}if(n<Hs)Hs=n;if(n>Xs)Xs=n;Zs=e,Gs=t}function eh(){Ks.point=nh}function rh(){Js[0]=Fs,Js[1]=js;Ks.point=th;Zs=null}function ih(t,n){if(Zs){var e=t-Gs;$s.add(ts(e)>180?e+(e>0?360:-360):e)}else{Vs=t,Ws=n}Es.point(t,n);nh(t,n)}function ah(){Es.lineStart()}function uh(){ih(Vs,Ws);Es.lineEnd();if(ts($s)>Gl)Fs=-(js=180);Js[0]=Fs,Js[1]=js;Zs=null}function oh(t,n){return(n-=t)<0?n+360:n}function fh(t,n){return t[0]-n[0]}function ch(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function lh(t){var n,e,r,i,a,u,o;Xs=js=-(Fs=Hs=Infinity);Qs=[];ws(t,Ks);if(e=Qs.length){Qs.sort(fh);for(n=1,r=Qs[0],a=[r];n<e;++n){i=Qs[n];if(ch(r,i[0])||ch(r,i[1])){if(oh(r[0],i[1])>oh(r[0],r[1]))r[1]=i[1];if(oh(i[0],r[1])>oh(r[0],r[1]))r[0]=i[0]}else{a.push(r=i)}}for(u=-Infinity,e=a.length-1,n=0,r=a[e];n<=e;r=i,++n){i=a[n];if((o=oh(r[1],i[0]))>u)u=o,Fs=i[0],js=r[1]}}Qs=Js=null;return Fs===Infinity||Hs===Infinity?[[NaN,NaN],[NaN,NaN]]:[[Fs,Hs],[js,Xs]]}var sh,hh,dh,ph,vh,yh,gh,bh,_h,mh,wh,xh,Mh,kh,Nh,Ah;var Th={sphere:vs,point:Sh,lineStart:Ch,lineEnd:Rh,polygonStart:function t(){Th.lineStart=Dh;Th.lineEnd=qh},polygonEnd:function t(){Th.lineStart=Ch;Th.lineEnd=Rh}};function Sh(t,n){t*=Kl,n*=Kl;var e=rs(n);Eh(e*rs(t),e*fs(t),fs(n))}function Eh(t,n,e){++sh;dh+=(t-dh)/sh;ph+=(n-ph)/sh;vh+=(e-vh)/sh}function Ch(){Th.point=Ph}function Ph(t,n){t*=Kl,n*=Kl;var e=rs(n);kh=e*rs(t);Nh=e*fs(t);Ah=fs(n);Th.point=zh;Eh(kh,Nh,Ah)}function zh(t,n){t*=Kl,n*=Kl;var e=rs(n),r=e*rs(t),i=e*fs(t),a=fs(n),u=es(ls((u=Nh*a-Ah*i)*u+(u=Ah*r-kh*a)*u+(u=kh*i-Nh*r)*u),kh*r+Nh*i+Ah*a);hh+=u;yh+=u*(kh+(kh=r));gh+=u*(Nh+(Nh=i));bh+=u*(Ah+(Ah=a));Eh(kh,Nh,Ah)}function Rh(){Th.point=Sh}function Dh(){Th.point=Lh}function qh(){Uh(xh,Mh);Th.point=Sh}function Lh(t,n){xh=t,Mh=n;t*=Kl,n*=Kl;Th.point=Uh;var e=rs(n);kh=e*rs(t);Nh=e*fs(t);Ah=fs(n);Eh(kh,Nh,Ah)}function Uh(t,n){t*=Kl,n*=Kl;var e=rs(n),r=e*rs(t),i=e*fs(t),a=fs(n),u=Nh*a-Ah*i,o=Ah*r-kh*a,f=kh*i-Nh*r,c=ls(u*u+o*o+f*f),l=ds(c),s=c&&-l/c;_h+=s*u;mh+=s*o;wh+=s*f;hh+=l;yh+=l*(kh+(kh=r));gh+=l*(Nh+(Nh=i));bh+=l*(Ah+(Ah=a));Eh(kh,Nh,Ah)}function Ih(t){sh=hh=dh=ph=vh=yh=gh=bh=_h=mh=wh=0;ws(t,Th);var n=_h,e=mh,r=wh,i=n*n+e*e+r*r;if(i<Vl){n=yh,e=gh,r=bh;if(hh<Gl)n=dh,e=ph,r=vh;i=n*n+e*e+r*r;if(i<Vl)return[NaN,NaN]}return[es(e,n)*Jl,ds(r/ls(i))*Jl]}function Bh(t){return function(){return t}}function Oh(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}if(t.invert&&n.invert)e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])};return e}function Yh(t,n){return[ts(t)>Wl?t+Math.round(-t/Ql)*Ql:t,n]}Yh.invert=Yh;function Fh(t,n,e){return(t%=Ql)?n||e?Oh(jh(t),Xh(n,e)):jh(t):n||e?Xh(n,e):Yh}function Hh(t){return function(n,e){return n+=t,[n>Wl?n-Ql:n<-Wl?n+Ql:n,e]}}function jh(t){var n=Hh(t);n.invert=Hh(-t);return n}function Xh(t,n){var e=rs(t),r=fs(t),i=rs(n),a=fs(n);function u(t,n){var u=rs(n),o=rs(t)*u,f=fs(t)*u,c=fs(n),l=c*e+o*r;return[es(f*i-l*a,o*e-c*r),ds(l*i+f*a)]}u.invert=function(t,n){var u=rs(n),o=rs(t)*u,f=fs(t)*u,c=fs(n),l=c*i-f*a;return[es(f*i+c*a,o*e+l*r),ds(l*e-o*r)]};return u}function Gh(t){t=Fh(t[0]*Kl,t[1]*Kl,t.length>2?t[2]*Kl:0);function n(n){n=t(n[0]*Kl,n[1]*Kl);return n[0]*=Jl,n[1]*=Jl,n}n.invert=function(n){n=t.invert(n[0]*Kl,n[1]*Kl);return n[0]*=Jl,n[1]*=Jl,n};return n}function Vh(t,n,e,r,i,a){if(!e)return;var u=rs(n),o=fs(n),f=r*e;if(i==null){i=n+r*Ql;a=n-f/2}else{i=Wh(u,i);a=Wh(u,a);if(r>0?i<a:i>a)i+=r*Ql}for(var c,l=i;r>0?l>a:l<a;l-=f){c=qs([u,-o*rs(l),-o*fs(l)]);t.point(c[0],c[1])}}function Wh(t,n){n=Ls(n),n[0]-=t;Ys(n);var e=hs(-n[1]);return((-n[2]<0?-e:e)+Ql-Gl)%Ql}function Zh(){var t=Bh([0,0]),n=Bh(90),e=Bh(6),r,i,a={point:u};function u(t,n){r.push(t=i(t,n));t[0]*=Jl,t[1]*=Jl}function o(){var u=t.apply(this,arguments),o=n.apply(this,arguments)*Kl,f=e.apply(this,arguments)*Kl;r=[];i=Fh(-u[0]*Kl,-u[1]*Kl,0).invert;Vh(a,o,f,1);u={type:"Polygon",coordinates:[r]};r=i=null;return u}o.center=function(n){return arguments.length?(t=typeof n==="function"?n:Bh([+n[0],+n[1]]),o):t};o.radius=function(t){return arguments.length?(n=typeof t==="function"?t:Bh(+t),o):n};o.precision=function(t){return arguments.length?(e=typeof t==="function"?t:Bh(+t),o):e};return o}function $h(){var t=[],n;return{point:function t(e,r){n.push([e,r])},lineStart:function e(){t.push(n=[])},lineEnd:vs,rejoin:function n(){if(t.length>1)t.push(t.pop().concat(t.shift()))},result:function e(){var e=t;t=[];n=null;return e}}}function Qh(t,n){return ts(t[0]-n[0])<Gl&&ts(t[1]-n[1])<Gl}function Jh(t,n,e,r){this.x=t;this.z=n;this.o=e;this.e=r;this.v=false;this.n=this.p=null}function Kh(t,n,e,r,i){var a=[],u=[],o,f;t.forEach(function(t){if((n=t.length-1)<=0)return;var n,e=t[0],r=t[n],f;if(Qh(e,r)){i.lineStart();for(o=0;o<n;++o){i.point((e=t[o])[0],e[1])}i.lineEnd();return}a.push(f=new Jh(e,t,null,true));u.push(f.o=new Jh(e,null,f,false));a.push(f=new Jh(r,t,null,false));u.push(f.o=new Jh(r,null,f,true))});if(!a.length)return;u.sort(n);td(a);td(u);for(o=0,f=u.length;o<f;++o){u[o].e=e=!e}var c=a[0],l,s;while(1){var h=c,d=true;while(h.v){if((h=h.n)===c)return}l=h.z;i.lineStart();do{h.v=h.o.v=true;if(h.e){if(d){for(o=0,f=l.length;o<f;++o){i.point((s=l[o])[0],s[1])}}else{r(h.x,h.n.x,1,i)}h=h.n}else{if(d){l=h.p.z;for(o=l.length-1;o>=0;--o){i.point((s=l[o])[0],s[1])}}else{r(h.x,h.p.x,-1,i)}h=h.p}h=h.o;l=h.z;d=!d}while(!h.v);i.lineEnd()}}function td(t){if(!(n=t.length))return;var n,e=0,r=t[0],i;while(++e<n){r.n=i=t[e];i.p=r;r=i}r.n=i=t[0];i.p=r}var nd=Fl();function ed(t,n){var e=n[0],r=n[1],i=fs(r),a=[fs(e),-rs(e),0],u=0,o=0;nd.reset();if(i===1)r=Zl+Gl;else if(i===-1)r=-Zl-Gl;for(var f=0,c=t.length;f<c;++f){if(!(s=(l=t[f]).length))continue;var l,s,h=l[s-1],d=h[0],p=h[1]/2+$l,v=fs(p),y=rs(p);for(var g=0;g<s;++g,d=_,v=w,y=x,h=b){var b=l[g],_=b[0],m=b[1]/2+$l,w=fs(m),x=rs(m),M=_-d,k=M>=0?1:-1,N=k*M,A=N>Wl,T=v*w;nd.add(es(T*k*fs(N),y*x+T*rs(N)));u+=A?M+k*Ql:M;if(A^d>=e^_>=e){var S=Is(Ls(h),Ls(b));Ys(S);var E=Is(a,S);Ys(E);var C=(A^M>=0?-1:1)*ds(E[2]);if(r>C||r===C&&(S[0]||S[1])){o+=A^M>=0?1:-1}}}}return(u<-Gl||u<Gl&&nd<-Gl)^o&1}function rd(t,n,e,r){return function(i){var a=n(i),u=$h(),o=n(u),f=false,c,l,s;var h={point:d,lineStart:v,lineEnd:y,polygonStart:function t(){h.point=g;h.lineStart=b;h.lineEnd=_;l=[];c=[]},polygonEnd:function t(){h.point=d;h.lineStart=v;h.lineEnd=y;l=L(l);var n=ed(c,r);if(l.length){if(!f)i.polygonStart(),f=true;Kh(l,ad,n,e,i)}else if(n){if(!f)i.polygonStart(),f=true;i.lineStart();e(null,null,1,i);i.lineEnd()}if(f)i.polygonEnd(),f=false;l=c=null},sphere:function t(){i.polygonStart();i.lineStart();e(null,null,1,i);i.lineEnd();i.polygonEnd()}};function d(n,e){if(t(n,e))i.point(n,e)}function p(t,n){a.point(t,n)}function v(){h.point=p;a.lineStart()}function y(){h.point=d;a.lineEnd()}function g(t,n){s.push([t,n]);o.point(t,n)}function b(){o.lineStart();s=[]}function _(){g(s[0][0],s[0][1]);o.lineEnd();var t=o.clean(),n=u.result(),e,r=n.length,a,h,d;s.pop();c.push(s);s=null;if(!r)return;if(t&1){h=n[0];if((a=h.length-1)>0){if(!f)i.polygonStart(),f=true;i.lineStart();for(e=0;e<a;++e){i.point((d=h[e])[0],d[1])}i.lineEnd()}return}if(r>1&&t&2)n.push(n.pop().concat(n.shift()));l.push(n.filter(id))}return h}}function id(t){return t.length>1}function ad(t,n){return((t=t.x)[0]<0?t[1]-Zl-Gl:Zl-t[1])-((n=n.x)[0]<0?n[1]-Zl-Gl:Zl-n[1])}var ud=rd(function(){return true},od,cd,[-Wl,-Zl]);function od(t){var n=NaN,e=NaN,r=NaN,i;return{lineStart:function n(){t.lineStart();i=1},point:function a(u,o){var f=u>0?Wl:-Wl,c=ts(u-n);if(ts(c-Wl)<Gl){t.point(n,e=(e+o)/2>0?Zl:-Zl);t.point(r,e);t.lineEnd();t.lineStart();t.point(f,e);t.point(u,e);i=0}else if(r!==f&&c>=Wl){if(ts(n-r)<Gl)n-=r*Gl;if(ts(u-f)<Gl)u-=f*Gl;e=fd(n,e,u,o);t.point(r,e);t.lineEnd();t.lineStart();t.point(f,e);i=0}t.point(n=u,e=o);r=f},lineEnd:function r(){t.lineEnd();n=e=NaN},clean:function t(){return 2-i}}}function fd(t,n,e,r){var i,a,u=fs(t-e);return ts(u)>Gl?ns((fs(n)*(a=rs(r))*fs(e)-fs(r)*(i=rs(n))*fs(t))/(i*a*u)):(n+r)/2}function cd(t,n,e,r){var i;if(t==null){i=e*Zl;r.point(-Wl,i);r.point(0,i);r.point(Wl,i);r.point(Wl,0);r.point(Wl,-i);r.point(0,-i);r.point(-Wl,-i);r.point(-Wl,0);r.point(-Wl,i)}else if(ts(t[0]-n[0])>Gl){var a=t[0]<n[0]?Wl:-Wl;i=e*a/2;r.point(-a,i);r.point(0,i);r.point(a,i)}else{r.point(n[0],n[1])}}function ld(t){var n=rs(t),e=6*Kl,r=n>0,i=ts(n)>Gl;function a(n,r,i,a){Vh(a,t,e,i,n,r)}function u(t,e){return rs(t)*rs(e)>n}function o(t){var n,e,a,o,l;return{lineStart:function t(){o=a=false;l=1},point:function s(h,d){var p=[h,d],v,y=u(h,d),g=r?y?0:c(h,d):y?c(h+(h<0?Wl:-Wl),d):0;if(!n&&(o=a=y))t.lineStart();if(y!==a){v=f(n,p);if(!v||Qh(n,v)||Qh(p,v)){p[0]+=Gl;p[1]+=Gl;y=u(p[0],p[1])}}if(y!==a){l=0;if(y){t.lineStart();v=f(p,n);t.point(v[0],v[1])}else{v=f(n,p);t.point(v[0],v[1]);t.lineEnd()}n=v}else if(i&&n&&r^y){var b;if(!(g&e)&&(b=f(p,n,true))){l=0;if(r){t.lineStart();t.point(b[0][0],b[0][1]);t.point(b[1][0],b[1][1]);t.lineEnd()}else{t.point(b[1][0],b[1][1]);t.lineEnd();t.lineStart();t.point(b[0][0],b[0][1])}}}if(y&&(!n||!Qh(n,p))){t.point(p[0],p[1])}n=p,a=y,e=g},lineEnd:function e(){if(a)t.lineEnd();n=null},clean:function t(){return l|(o&&a)<<1}}}function f(t,e,r){var i=Ls(t),a=Ls(e);var u=[1,0,0],o=Is(i,a),f=Us(o,o),c=o[0],l=f-c*c;if(!l)return!r&&t;var s=n*f/l,h=-n*c/l,d=Is(u,o),p=Os(u,s),v=Os(o,h);Bs(p,v);var y=d,g=Us(p,y),b=Us(y,y),_=g*g-b*(Us(p,p)-1);if(_<0)return;var m=ls(_),w=Os(y,(-g-m)/b);Bs(w,p);w=qs(w);if(!r)return w;var x=t[0],M=e[0],k=t[1],N=e[1],A;if(M<x)A=x,x=M,M=A;var T=M-x,S=ts(T-Wl)<Gl,E=S||T<Gl;if(!S&&N<k)A=k,k=N,N=A;if(E?S?k+N>0^w[1]<(ts(w[0]-x)<Gl?k:N):k<=w[1]&&w[1]<=N:T>Wl^(x<=w[0]&&w[0]<=M)){var C=Os(y,(-g+m)/b);Bs(C,p);return[w,qs(C)]}}function c(n,e){var i=r?t:Wl-t,a=0;if(n<-i)a|=1;else if(n>i)a|=2;if(e<-i)a|=4;else if(e>i)a|=8;return a}return rd(u,o,a,r?[0,-t]:[-Wl,t-Wl])}function sd(t,n,e,r,i,a){var u=t[0],o=t[1],f=n[0],c=n[1],l=0,s=1,h=f-u,d=c-o,p;p=e-u;if(!h&&p>0)return;p/=h;if(h<0){if(p<l)return;if(p<s)s=p}else if(h>0){if(p>s)return;if(p>l)l=p}p=i-u;if(!h&&p<0)return;p/=h;if(h<0){if(p>s)return;if(p>l)l=p}else if(h>0){if(p<l)return;if(p<s)s=p}p=r-o;if(!d&&p>0)return;p/=d;if(d<0){if(p<l)return;if(p<s)s=p}else if(d>0){if(p>s)return;if(p>l)l=p}p=a-o;if(!d&&p<0)return;p/=d;if(d<0){if(p>s)return;if(p>l)l=p}else if(d>0){if(p<l)return;if(p<s)s=p}if(l>0)t[0]=u+l*h,t[1]=o+l*d;if(s<1)n[0]=u+s*h,n[1]=o+s*d;return true}var hd=1e9,dd=-hd;function pd(t,n,e,r){function i(i,a){return t<=i&&i<=e&&n<=a&&a<=r}function a(i,a,o,c){var l=0,s=0;if(i==null||(l=u(i,o))!==(s=u(a,o))||f(i,a)<0^o>0){do{c.point(l===0||l===3?t:e,l>1?r:n)}while((l=(l+o+4)%4)!==s)}else{c.point(a[0],a[1])}}function u(r,i){return ts(r[0]-t)<Gl?i>0?0:3:ts(r[0]-e)<Gl?i>0?2:1:ts(r[1]-n)<Gl?i>0?1:0:i>0?3:2}function o(t,n){return f(t.x,n.x)}function f(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:e===0?n[1]-t[1]:e===1?t[0]-n[0]:e===2?t[1]-n[1]:n[0]-t[0]}return function(u){var f=u,c=$h(),l,s,h,d,p,v,y,g,b,_,m;var w={point:x,lineStart:A,lineEnd:T,polygonStart:k,polygonEnd:N};function x(t,n){if(i(t,n))f.point(t,n)}function M(){var n=0;for(var e=0,i=s.length;e<i;++e){for(var a=s[e],u=1,o=a.length,f=a[0],c,l,h=f[0],d=f[1];u<o;++u){c=h,l=d,f=a[u],h=f[0],d=f[1];if(l<=r){if(d>r&&(h-c)*(r-l)>(d-l)*(t-c))++n}else{if(d<=r&&(h-c)*(r-l)<(d-l)*(t-c))--n}}}return n}function k(){f=c,l=[],s=[],m=true}function N(){var t=M(),n=m&&t,e=(l=L(l)).length;if(n||e){u.polygonStart();if(n){u.lineStart();a(null,null,1,u);u.lineEnd()}if(e){Kh(l,o,t,a,u)}u.polygonEnd()}f=u,l=s=h=null}function A(){w.point=S;if(s)s.push(h=[]);_=true;b=false;y=g=NaN}function T(){if(l){S(d,p);if(v&&b)c.rejoin();l.push(c.result())}w.point=x;if(b)f.lineEnd()}function S(a,u){var o=i(a,u);if(s)h.push([a,u]);if(_){d=a,p=u,v=o;_=false;if(o){f.lineStart();f.point(a,u)}}else{if(o&&b)f.point(a,u);else{var c=[y=Math.max(dd,Math.min(hd,y)),g=Math.max(dd,Math.min(hd,g))],l=[a=Math.max(dd,Math.min(hd,a)),u=Math.max(dd,Math.min(hd,u))];if(sd(c,l,t,n,e,r)){if(!b){f.lineStart();f.point(c[0],c[1])}f.point(l[0],l[1]);if(!o)f.lineEnd();m=false}else if(o){f.lineStart();f.point(a,u);m=false}}}y=a,g=u,b=o}return w}}function vd(){var t=0,n=0,e=960,r=500,i,a,u;return u={stream:function u(o){return i&&a===o?i:i=pd(t,n,e,r)(a=o)},extent:function o(f){return arguments.length?(t=+f[0][0],n=+f[0][1],e=+f[1][0],r=+f[1][1],i=a=null,u):[[t,n],[e,r]]}}}var yd=Fl(),gd,bd,_d;var md={sphere:vs,point:vs,lineStart:wd,lineEnd:vs,polygonStart:vs,polygonEnd:vs};function wd(){md.point=Md;md.lineEnd=xd}function xd(){md.point=md.lineEnd=vs}function Md(t,n){t*=Kl,n*=Kl;gd=t,bd=fs(n),_d=rs(n);md.point=kd}function kd(t,n){t*=Kl,n*=Kl;var e=fs(n),r=rs(n),i=ts(t-gd),a=rs(i),u=fs(i),o=r*u,f=_d*e-bd*r*a,c=bd*e+_d*r*a;yd.add(es(ls(o*o+f*f),c));gd=t,bd=e,_d=r}function Nd(t){yd.reset();ws(t,md);return+yd}var Ad=[null,null],Td={type:"LineString",coordinates:Ad};function Sd(t,n){Ad[0]=t;Ad[1]=n;return Nd(Td)}var Ed={Feature:function t(n,e){return Pd(n.geometry,e)},FeatureCollection:function t(n,e){var r=n.features,i=-1,a=r.length;while(++i<a){if(Pd(r[i].geometry,e))return true}return false}};var Cd={Sphere:function t(){return true},Point:function t(n,e){return zd(n.coordinates,e)},MultiPoint:function t(n,e){var r=n.coordinates,i=-1,a=r.length;while(++i<a){if(zd(r[i],e))return true}return false},LineString:function t(n,e){return Rd(n.coordinates,e)},MultiLineString:function t(n,e){var r=n.coordinates,i=-1,a=r.length;while(++i<a){if(Rd(r[i],e))return true}return false},Polygon:function t(n,e){return Dd(n.coordinates,e)},MultiPolygon:function t(n,e){var r=n.coordinates,i=-1,a=r.length;while(++i<a){if(Dd(r[i],e))return true}return false},GeometryCollection:function t(n,e){var r=n.geometries,i=-1,a=r.length;while(++i<a){if(Pd(r[i],e))return true}return false}};function Pd(t,n){return t&&Cd.hasOwnProperty(t.type)?Cd[t.type](t,n):false}function zd(t,n){return Sd(t,n)===0}function Rd(t,n){var e=Sd(t[0],t[1]),r=Sd(t[0],n),i=Sd(n,t[1]);return r+i<=e+Gl}function Dd(t,n){return!!ed(t.map(qd),Ld(n))}function qd(t){return t=t.map(Ld),t.pop(),t}function Ld(t){return[t[0]*Kl,t[1]*Kl]}function Ud(t,n){return(t&&Ed.hasOwnProperty(t.type)?Ed[t.type]:Pd)(t,n)}function Id(t,n,e){var r=w(t,n-Gl,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Bd(t,n,e){var r=w(t,n-Gl,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function Od(){var t,n,e,r,i,a,u,o,f=10,c=f,l=90,s=360,h,d,p,v,y=2.5;function g(){return{type:"MultiLineString",coordinates:b()}}function b(){return w(is(r/l)*l,e,l).map(p).concat(w(is(o/s)*s,u,s).map(v)).concat(w(is(n/f)*f,t,f).filter(function(t){return ts(t%l)>Gl}).map(h)).concat(w(is(a/c)*c,i,c).filter(function(t){return ts(t%s)>Gl}).map(d))}g.lines=function(){return b().map(function(t){return{type:"LineString",coordinates:t}})};g.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(v(u).slice(1),p(e).reverse().slice(1),v(o).reverse().slice(1))]}};g.extent=function(t){if(!arguments.length)return g.extentMinor();return g.extentMajor(t).extentMinor(t)};g.extentMajor=function(t){if(!arguments.length)return[[r,o],[e,u]];r=+t[0][0],e=+t[1][0];o=+t[0][1],u=+t[1][1];if(r>e)t=r,r=e,e=t;if(o>u)t=o,o=u,u=t;return g.precision(y)};g.extentMinor=function(e){if(!arguments.length)return[[n,a],[t,i]];n=+e[0][0],t=+e[1][0];a=+e[0][1],i=+e[1][1];if(n>t)e=n,n=t,t=e;if(a>i)e=a,a=i,i=e;return g.precision(y)};g.step=function(t){if(!arguments.length)return g.stepMinor();return g.stepMajor(t).stepMinor(t)};g.stepMajor=function(t){if(!arguments.length)return[l,s];l=+t[0],s=+t[1];return g};g.stepMinor=function(t){if(!arguments.length)return[f,c];f=+t[0],c=+t[1];return g};g.precision=function(f){if(!arguments.length)return y;y=+f;h=Id(a,i,90);d=Bd(n,t,y);p=Id(o,u,90);v=Bd(r,e,y);return g};return g.extentMajor([[-180,-90+Gl],[180,90-Gl]]).extentMinor([[-180,-80-Gl],[180,80+Gl]])}function Yd(){return Od()()}function Fd(t,n){var e=t[0]*Kl,r=t[1]*Kl,i=n[0]*Kl,a=n[1]*Kl,u=rs(r),o=fs(r),f=rs(a),c=fs(a),l=u*rs(e),s=u*fs(e),h=f*rs(i),d=f*fs(i),p=2*ds(ls(ps(a-r)+u*f*ps(i-e))),v=fs(p);var y=p?function(t){var n=fs(t*=p)/v,e=fs(p-t)/v,r=e*l+n*h,i=e*s+n*d,a=e*o+n*c;return[es(i,r)*Jl,es(a,ls(r*r+i*i))*Jl]}:function(){return[e*Jl,r*Jl]};y.distance=p;return y}function Hd(t){return t}var jd=Fl(),Xd=Fl(),Gd,Vd,Wd,Zd;var $d={point:vs,lineStart:vs,lineEnd:vs,polygonStart:function t(){$d.lineStart=Qd;$d.lineEnd=tp},polygonEnd:function t(){$d.lineStart=$d.lineEnd=$d.point=vs;jd.add(ts(Xd));Xd.reset()},result:function t(){var n=jd/2;jd.reset();return n}};function Qd(){$d.point=Jd}function Jd(t,n){$d.point=Kd;Gd=Wd=t,Vd=Zd=n}function Kd(t,n){Xd.add(Zd*t-Wd*n);Wd=t,Zd=n}function tp(){Kd(Gd,Vd)}var np=Infinity,ep=np,rp=-np,ip=rp;var ap={point:up,lineStart:vs,lineEnd:vs,polygonStart:vs,polygonEnd:vs,result:function t(){var n=[[np,ep],[rp,ip]];rp=ip=-(ep=np=Infinity);return n}};function up(t,n){if(t<np)np=t;if(t>rp)rp=t;if(n<ep)ep=n;if(n>ip)ip=n}var op=0,fp=0,cp=0,lp=0,sp=0,hp=0,dp=0,pp=0,vp=0,yp,gp,bp,_p;var mp={point:wp,lineStart:xp,lineEnd:Np,polygonStart:function t(){mp.lineStart=Ap;mp.lineEnd=Tp},polygonEnd:function t(){mp.point=wp;mp.lineStart=xp;mp.lineEnd=Np},result:function t(){var n=vp?[dp/vp,pp/vp]:hp?[lp/hp,sp/hp]:cp?[op/cp,fp/cp]:[NaN,NaN];op=fp=cp=lp=sp=hp=dp=pp=vp=0;return n}};function wp(t,n){op+=t;fp+=n;++cp}function xp(){mp.point=Mp}function Mp(t,n){mp.point=kp;wp(bp=t,_p=n)}function kp(t,n){var e=t-bp,r=n-_p,i=ls(e*e+r*r);lp+=i*(bp+t)/2;sp+=i*(_p+n)/2;hp+=i;wp(bp=t,_p=n)}function Np(){mp.point=wp}function Ap(){mp.point=Sp}function Tp(){Ep(yp,gp)}function Sp(t,n){mp.point=Ep;wp(yp=bp=t,gp=_p=n)}function Ep(t,n){var e=t-bp,r=n-_p,i=ls(e*e+r*r);lp+=i*(bp+t)/2;sp+=i*(_p+n)/2;hp+=i;i=_p*t-bp*n;dp+=i*(bp+t);pp+=i*(_p+n);vp+=i*3;wp(bp=t,_p=n)}function Cp(t){this._context=t}Cp.prototype={_radius:4.5,pointRadius:function t(n){return this._radius=n,this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._context.closePath();this._point=NaN},point:function t(n,e){switch(this._point){case 0:{this._context.moveTo(n,e);this._point=1;break}case 1:{this._context.lineTo(n,e);break}default:{this._context.moveTo(n+this._radius,e);this._context.arc(n,e,this._radius,0,Ql);break}}},result:vs};var Pp=Fl(),zp,Rp,Dp,qp,Lp;var Up={point:vs,lineStart:function t(){Up.point=Ip},lineEnd:function t(){if(zp)Bp(Rp,Dp);Up.point=vs},polygonStart:function t(){zp=true},polygonEnd:function t(){zp=null},result:function t(){var n=+Pp;Pp.reset();return n}};function Ip(t,n){Up.point=Bp;Rp=qp=t,Dp=Lp=n}function Bp(t,n){qp-=t,Lp-=n;Pp.add(ls(qp*qp+Lp*Lp));qp=t,Lp=n}function Op(){this._string=[]}Op.prototype={_radius:4.5,_circle:Yp(4.5),pointRadius:function t(n){if((n=+n)!==this._radius)this._radius=n,this._circle=null;return this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._string.push("Z");this._point=NaN},point:function t(n,e){switch(this._point){case 0:{this._string.push("M",n,",",e);this._point=1;break}case 1:{this._string.push("L",n,",",e);break}default:{if(this._circle==null)this._circle=Yp(this._radius);this._string.push("M",n,",",e,this._circle);break}}},result:function t(){if(this._string.length){var t=this._string.join("");this._string=[];return t}else{return null}}};function Yp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Fp(t,n){var e=4.5,r,i;function a(t){if(t){if(typeof e==="function")i.pointRadius(+e.apply(this,arguments));ws(t,r(i))}return i.result()}a.area=function(t){ws(t,r($d));return $d.result()};a.measure=function(t){ws(t,r(Up));return Up.result()};a.bounds=function(t){ws(t,r(ap));return ap.result()};a.centroid=function(t){ws(t,r(mp));return mp.result()};a.projection=function(n){return arguments.length?(r=n==null?(t=null,Hd):(t=n).stream,a):t};a.context=function(t){if(!arguments.length)return n;i=t==null?(n=null,new Op):new Cp(n=t);if(typeof e!=="function")i.pointRadius(e);return a};a.pointRadius=function(t){if(!arguments.length)return e;e=typeof t==="function"?t:(i.pointRadius(+t),+t);return a};return a.projection(t).context(n)}function Hp(t){return{stream:jp(t)}}function jp(t){return function(n){var e=new Xp;for(var r in t){e[r]=t[r]}e.stream=n;return e}}function Xp(){}Xp.prototype={constructor:Xp,point:function t(n,e){this.stream.point(n,e)},sphere:function t(){this.stream.sphere()},lineStart:function t(){this.stream.lineStart()},lineEnd:function t(){this.stream.lineEnd()},polygonStart:function t(){this.stream.polygonStart()},polygonEnd:function t(){this.stream.polygonEnd()}};function Gp(t,n,e){var r=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(r!=null)t.clipExtent(null);ws(e,t.stream(ap));n(ap.result());if(r!=null)t.clipExtent(r);return t}function Vp(t,n,e){return Gp(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],a=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-a*(e[1][0]+e[0][0]))/2,o=+n[0][1]+(i-a*(e[1][1]+e[0][1]))/2;t.scale(150*a).translate([u,o])},e)}function Wp(t,n,e){return Vp(t,[[0,0],n],e)}function Zp(t,n,e){return Gp(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),a=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([a,u])},e)}function $p(t,n,e){return Gp(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),a=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([a,u])},e)}var Qp=16,Jp=rs(30*Kl);function Kp(t,n){return+n?nv(t,n):tv(t)}function tv(t){return jp({point:function n(e,r){e=t(e,r);this.stream.point(e[0],e[1])}})}function nv(t,n){function e(r,i,a,u,o,f,c,l,s,h,d,p,v,y){var g=c-r,b=l-i,_=g*g+b*b;if(_>4*n&&v--){var m=u+h,w=o+d,x=f+p,M=ls(m*m+w*w+x*x),k=ds(x/=M),N=ts(ts(x)-1)<Gl||ts(a-s)<Gl?(a+s)/2:es(w,m),A=t(N,k),T=A[0],S=A[1],E=T-r,C=S-i,P=b*E-g*C;if(P*P/_>n||ts((g*E+b*C)/_-.5)>.3||u*h+o*d+f*p<Jp){e(r,i,a,u,o,f,T,S,N,m/=M,w/=M,x,v,y);y.point(T,S);e(T,S,N,m,w,x,c,l,s,h,d,p,v,y)}}}return function(n){var r,i,a,u,o,f,c,l,s,h,d,p;var v={point:y,lineStart:g,lineEnd:_,polygonStart:function t(){n.polygonStart();v.lineStart=m},polygonEnd:function t(){n.polygonEnd();v.lineStart=g}};function y(e,r){e=t(e,r);n.point(e[0],e[1])}function g(){l=NaN;v.point=b;n.lineStart()}function b(r,i){var a=Ls([r,i]),u=t(r,i);e(l,s,c,h,d,p,l=u[0],s=u[1],c=r,h=a[0],d=a[1],p=a[2],Qp,n);n.point(l,s)}function _(){v.point=y;n.lineEnd()}function m(){g();v.point=w;v.lineEnd=x}function w(t,n){b(r=t,n),i=l,a=s,u=h,o=d,f=p;v.point=b}function x(){e(l,s,c,h,d,p,i,a,r,u,o,f,Qp,n);v.lineEnd=_;_()}return v}}var ev=jp({point:function t(n,e){this.stream.point(n*Kl,e*Kl)}});function rv(t){return jp({point:function n(e,r){var i=t(e,r);return this.stream.point(i[0],i[1])}})}function iv(t,n,e){function r(r,i){return[n+t*r,e-t*i]}r.invert=function(r,i){return[(r-n)/t,(e-i)/t]};return r}function av(t,n,e,r){var i=rs(r),a=fs(r),u=i*t,o=a*t,f=i/t,c=a/t,l=(a*e-i*n)/t,s=(a*n+i*e)/t;function h(t,r){return[u*t-o*r+n,e-o*t-u*r]}h.invert=function(t,n){return[f*t-c*n+l,s-c*t-f*n]};return h}function uv(t){return ov(function(){return t})()}function ov(t){var n,e=150,r=480,i=250,a=0,u=0,o=0,f=0,c=0,l,s=0,h=null,d=ud,p=null,v,y,g,b=Hd,_=.5,m,w,x,M,k;function N(t){return x(t[0]*Kl,t[1]*Kl)}function A(t){t=x.invert(t[0],t[1]);return t&&[t[0]*Jl,t[1]*Jl]}N.stream=function(t){return M&&k===t?M:M=ev(rv(l)(d(m(b(k=t)))))};N.preclip=function(t){return arguments.length?(d=t,h=undefined,S()):d};N.postclip=function(t){return arguments.length?(b=t,p=v=y=g=null,S()):b};N.clipAngle=function(t){return arguments.length?(d=+t?ld(h=t*Kl):(h=null,ud),S()):h*Jl};N.clipExtent=function(t){return arguments.length?(b=t==null?(p=v=y=g=null,Hd):pd(p=+t[0][0],v=+t[0][1],y=+t[1][0],g=+t[1][1]),S()):p==null?null:[[p,v],[y,g]]};N.scale=function(t){return arguments.length?(e=+t,T()):e};N.translate=function(t){return arguments.length?(r=+t[0],i=+t[1],T()):[r,i]};N.center=function(t){return arguments.length?(a=t[0]%360*Kl,u=t[1]%360*Kl,T()):[a*Jl,u*Jl]};N.rotate=function(t){return arguments.length?(o=t[0]%360*Kl,f=t[1]%360*Kl,c=t.length>2?t[2]%360*Kl:0,T()):[o*Jl,f*Jl,c*Jl]};N.angle=function(t){return arguments.length?(s=t%360*Kl,T()):s*Jl};N.precision=function(t){return arguments.length?(m=Kp(w,_=t*t),S()):ls(_)};N.fitExtent=function(t,n){return Vp(N,t,n)};N.fitSize=function(t,n){return Wp(N,t,n)};N.fitWidth=function(t,n){return Zp(N,t,n)};N.fitHeight=function(t,n){return $p(N,t,n)};function T(){var t=av(e,0,0,s).apply(null,n(a,u)),h=(s?av:iv)(e,r-t[0],i-t[1],s);l=Fh(o,f,c);w=Oh(n,h);x=Oh(l,w);m=Kp(w,_);return S()}function S(){M=k=null;return N}return function(){n=t.apply(this,arguments);N.invert=n.invert&&A;return T()}}function fv(t){var n=0,e=Wl/3,r=ov(t),i=r(n,e);i.parallels=function(t){return arguments.length?r(n=t[0]*Kl,e=t[1]*Kl):[n*Jl,e*Jl]};return i}function cv(t){var n=rs(t);function e(t,e){return[t*n,fs(e)/n]}e.invert=function(t,e){return[t/n,ds(e*n)]};return e}function lv(t,n){var e=fs(t),r=(e+fs(n))/2;if(ts(r)<Gl)return cv(t);var i=1+e*(2*r-e),a=ls(i)/r;function u(t,n){var e=ls(i-2*r*fs(n))/r;return[e*fs(t*=r),a-e*rs(t)]}u.invert=function(t,n){var e=a-n;return[es(t,ts(e))/r*cs(e),ds((i-(t*t+e*e)*r*r)/(2*r))]};return u}function sv(){return fv(lv).scale(155.424).center([0,33.6442])}function hv(){return sv().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function dv(t){var n=t.length;return{point:function e(r,i){var a=-1;while(++a<n){t[a].point(r,i)}},sphere:function e(){var r=-1;while(++r<n){t[r].sphere()}},lineStart:function e(){var r=-1;while(++r<n){t[r].lineStart()}},lineEnd:function e(){var r=-1;while(++r<n){t[r].lineEnd()}},polygonStart:function e(){var r=-1;while(++r<n){t[r].polygonStart()}},polygonEnd:function e(){var r=-1;while(++r<n){t[r].polygonEnd()}}}}function pv(){var t,n,e=hv(),r,i=sv().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,u=sv().rotate([157,0]).center([-3,19.9]).parallels([8,18]),o,f,c={point:function t(n,e){f=[n,e]}};function l(t){var n=t[0],e=t[1];return f=null,(r.point(n,e),f)||(a.point(n,e),f)||(o.point(n,e),f)}l.invert=function(t){var n=e.scale(),r=e.translate(),a=(t[0]-r[0])/n,o=(t[1]-r[1])/n;return(o>=.12&&o<.234&&a>=-.425&&a<-.214?i:o>=.166&&o<.234&&a>=-.214&&a<-.115?u:e).invert(t)};l.stream=function(r){return t&&n===r?t:t=dv([e.stream(n=r),i.stream(r),u.stream(r)])};l.precision=function(t){if(!arguments.length)return e.precision();e.precision(t),i.precision(t),u.precision(t);return s()};l.scale=function(t){if(!arguments.length)return e.scale();e.scale(t),i.scale(t*.35),u.scale(t);return l.translate(e.translate())};l.translate=function(t){if(!arguments.length)return e.translate();var n=e.scale(),f=+t[0],l=+t[1];r=e.translate(t).clipExtent([[f-.455*n,l-.238*n],[f+.455*n,l+.238*n]]).stream(c);a=i.translate([f-.307*n,l+.201*n]).clipExtent([[f-.425*n+Gl,l+.12*n+Gl],[f-.214*n-Gl,l+.234*n-Gl]]).stream(c);o=u.translate([f-.205*n,l+.212*n]).clipExtent([[f-.214*n+Gl,l+.166*n+Gl],[f-.115*n-Gl,l+.234*n-Gl]]).stream(c);return s()};l.fitExtent=function(t,n){return Vp(l,t,n)};l.fitSize=function(t,n){return Wp(l,t,n)};l.fitWidth=function(t,n){return Zp(l,t,n)};l.fitHeight=function(t,n){return $p(l,t,n)};function s(){t=n=null;return l}return l.scale(1070)}function vv(t){return function(n,e){var r=rs(n),i=rs(e),a=t(r*i);return[a*i*fs(n),a*fs(e)]}}function yv(t){return function(n,e){var r=ls(n*n+e*e),i=t(r),a=fs(i),u=rs(i);return[es(n*a,r*u),ds(r&&e*a/r)]}}var gv=vv(function(t){return ls(2/(1+t))});gv.invert=yv(function(t){return 2*ds(t/2)});function bv(){return uv(gv).scale(124.75).clipAngle(180-.001)}var _v=vv(function(t){return(t=hs(t))&&t/fs(t)});_v.invert=yv(function(t){return t});function mv(){return uv(_v).scale(79.4188).clipAngle(180-.001)}function wv(t,n){return[t,us(ss((Zl+n)/2))]}wv.invert=function(t,n){return[t,2*ns(as(n))-Zl]};function xv(){return Mv(wv).scale(961/Ql)}function Mv(t){var n=uv(t),e=n.center,r=n.scale,i=n.translate,a=n.clipExtent,u=null,o,f,c;n.scale=function(t){return arguments.length?(r(t),l()):r()};n.translate=function(t){return arguments.length?(i(t),l()):i()};n.center=function(t){return arguments.length?(e(t),l()):e()};n.clipExtent=function(t){return arguments.length?(t==null?u=o=f=c=null:(u=+t[0][0],o=+t[0][1],f=+t[1][0],c=+t[1][1]),l()):u==null?null:[[u,o],[f,c]]};function l(){var e=Wl*r(),i=n(Gh(n.rotate()).invert([0,0]));return a(u==null?[[i[0]-e,i[1]-e],[i[0]+e,i[1]+e]]:t===wv?[[Math.max(i[0]-e,u),o],[Math.min(i[0]+e,f),c]]:[[u,Math.max(i[1]-e,o)],[f,Math.min(i[1]+e,c)]])}return l()}function kv(t){return ss((Zl+t)/2)}function Nv(t,n){var e=rs(t),r=t===n?fs(t):us(e/rs(n))/us(kv(n)/kv(t)),i=e*os(kv(t),r)/r;if(!r)return wv;function a(t,n){if(i>0){if(n<-Zl+Gl)n=-Zl+Gl}else{if(n>Zl-Gl)n=Zl-Gl}var e=i/os(kv(n),r);return[e*fs(r*t),i-e*rs(r*t)]}a.invert=function(t,n){var e=i-n,a=cs(r)*ls(t*t+e*e);return[es(t,ts(e))/r*cs(e),2*ns(os(i/a,1/r))-Zl]};return a}function Av(){return fv(Nv).scale(109.5).parallels([30,30])}function Tv(t,n){return[t,n]}Tv.invert=Tv;function Sv(){return uv(Tv).scale(152.63)}function Ev(t,n){var e=rs(t),r=t===n?fs(t):(e-rs(n))/(n-t),i=e/r+t;if(ts(r)<Gl)return Tv;function a(t,n){var e=i-n,a=r*t;return[e*fs(a),i-e*rs(a)]}a.invert=function(t,n){var e=i-n;return[es(t,ts(e))/r*cs(e),i-cs(r)*ls(t*t+e*e)]};return a}function Cv(){return fv(Ev).scale(131.154).center([0,13.9389])}var Pv=1.340264,zv=-.081106,Rv=893e-6,Dv=.003796,qv=ls(3)/2,Lv=12;function Uv(t,n){var e=ds(qv*fs(n)),r=e*e,i=r*r*r;return[t*rs(e)/(qv*(Pv+3*zv*r+i*(7*Rv+9*Dv*r))),e*(Pv+zv*r+i*(Rv+Dv*r))]}Uv.invert=function(t,n){var e=n,r=e*e,i=r*r*r;for(var a=0,u,o,f;a<Lv;++a){o=e*(Pv+zv*r+i*(Rv+Dv*r))-n;f=Pv+3*zv*r+i*(7*Rv+9*Dv*r);e-=u=o/f,r=e*e,i=r*r*r;if(ts(u)<Vl)break}return[qv*t*(Pv+3*zv*r+i*(7*Rv+9*Dv*r))/rs(e),ds(fs(e)/qv)]};function Iv(){return uv(Uv).scale(177.158)}function Bv(t,n){var e=rs(n),r=rs(t)*e;return[e*fs(t)/r,fs(n)/r]}Bv.invert=yv(ns);function Ov(){return uv(Bv).scale(144.049).clipAngle(60)}function Yv(t,n,e,r){return t===1&&n===1&&e===0&&r===0?Hd:jp({point:function i(a,u){this.stream.point(a*t+e,u*n+r)}})}function Fv(){var t=1,n=0,e=0,r=1,i=1,a=Hd,u=null,o,f,c,l=Hd,s,h,d;function p(){s=h=null;return d}return d={stream:function t(n){return s&&h===n?s:s=a(l(h=n))},postclip:function t(n){return arguments.length?(l=n,u=o=f=c=null,p()):l},clipExtent:function t(n){return arguments.length?(l=n==null?(u=o=f=c=null,Hd):pd(u=+n[0][0],o=+n[0][1],f=+n[1][0],c=+n[1][1]),p()):u==null?null:[[u,o],[f,c]]},scale:function u(o){return arguments.length?(a=Yv((t=+o)*r,t*i,n,e),p()):t},translate:function u(o){return arguments.length?(a=Yv(t*r,t*i,n=+o[0],e=+o[1]),p()):[n,e]},reflectX:function u(o){return arguments.length?(a=Yv(t*(r=o?-1:1),t*i,n,e),p()):r<0},reflectY:function u(o){return arguments.length?(a=Yv(t*r,t*(i=o?-1:1),n,e),p()):i<0},fitExtent:function t(n,e){return Vp(d,n,e)},fitSize:function t(n,e){return Wp(d,n,e)},fitWidth:function t(n,e){return Zp(d,n,e)},fitHeight:function t(n,e){return $p(d,n,e)}}}function Hv(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(-.013791+r*(.003971*e-.001529*r))),n*(1.007226+e*(.015085+r*(-.044475+.028874*e-.005916*r)))]}Hv.invert=function(t,n){var e=n,r=25,i;do{var a=e*e,u=a*a;e-=i=(e*(1.007226+a*(.015085+u*(-.044475+.028874*a-.005916*u)))-n)/(1.007226+a*(.015085*3+u*(-.044475*7+.028874*9*a-.005916*11*u)))}while(ts(i)>Gl&&--r>0);return[t/(.8707+(a=e*e)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),e]};function jv(){return uv(Hv).scale(175.295)}function Xv(t,n){return[rs(n)*fs(t),fs(n)]}Xv.invert=yv(ds);function Gv(){return uv(Xv).scale(249.5).clipAngle(90+Gl)}function Vv(t,n){var e=rs(n),r=1+rs(t)*e;return[e*fs(t)/r,fs(n)/r]}Vv.invert=yv(function(t){return 2*ns(t)});function Wv(){return uv(Vv).scale(250).clipAngle(142)}function Zv(t,n){return[us(ss((Zl+n)/2)),-t]}Zv.invert=function(t,n){return[-n,2*ns(as(t))-Zl]};function $v(){var t=Mv(Zv),n=t.center,e=t.rotate;t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])};return e([0,0,90]).scale(159.155)}function Qv(t,n){return t.parent===n.parent?1:2}function Jv(t){return t.reduce(Kv,0)/t.length}function Kv(t,n){return t+n.x}function ty(t){return 1+t.reduce(ny,0)}function ny(t,n){return Math.max(t,n.y)}function ey(t){var n;while(n=t.children){t=n[0]}return t}function ry(t){var n;while(n=t.children){t=n[n.length-1]}return t}function iy(){var t=Qv,n=1,e=1,r=false;function i(i){var a,u=0;i.eachAfter(function(n){var e=n.children;if(e){n.x=Jv(e);n.y=ty(e)}else{n.x=a?u+=t(n,a):0;n.y=0;a=n}});var o=ey(i),f=ry(i),c=o.x-t(o,f)/2,l=f.x+t(f,o)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n;t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-c)/(l-c)*n;t.y=(1-(i.y?t.y/i.y:1))*e})}i.separation=function(n){return arguments.length?(t=n,i):t};i.size=function(t){return arguments.length?(r=false,n=+t[0],e=+t[1],i):r?null:[n,e]};i.nodeSize=function(t){return arguments.length?(r=true,n=+t[0],e=+t[1],i):r?[n,e]:null};return i}function ay(t){var n=0,e=t.children,r=e&&e.length;if(!r)n=1;else while(--r>=0){n+=e[r].value}t.value=n}function uy(){return this.eachAfter(ay)}function oy(t){var n=this,e,r=[n],i,a,u;do{e=r.reverse(),r=[];while(n=e.pop()){t(n),i=n.children;if(i)for(a=0,u=i.length;a<u;++a){r.push(i[a])}}}while(r.length);return this}function fy(t){var n=this,e=[n],r,i;while(n=e.pop()){t(n),r=n.children;if(r)for(i=r.length-1;i>=0;--i){e.push(r[i])}}return this}function cy(t){var n=this,e=[n],r=[],i,a,u;while(n=e.pop()){r.push(n),i=n.children;if(i)for(a=0,u=i.length;a<u;++a){e.push(i[a])}}while(n=r.pop()){t(n)}return this}function ly(t){return this.eachAfter(function(n){var e=+t(n.data)||0,r=n.children,i=r&&r.length;while(--i>=0){e+=r[i].value}n.value=e})}function sy(t){return this.eachBefore(function(n){if(n.children){n.children.sort(t)}})}function hy(t){var n=this,e=dy(n,t),r=[n];while(n!==e){n=n.parent;r.push(n)}var i=r.length;while(t!==e){r.splice(i,0,t);t=t.parent}return r}function dy(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop();n=r.pop();while(t===n){i=t;t=e.pop();n=r.pop()}return i}function py(){var t=this,n=[t];while(t=t.parent){n.push(t)}return n}function vy(){var t=[];this.each(function(n){t.push(n)});return t}function yy(){var t=[];this.eachBefore(function(n){if(!n.children){t.push(n)}});return t}function gy(){var t=this,n=[];t.each(function(e){if(e!==t){n.push({source:e.parent,target:e})}});return n}function by(t,n){var e=new My(t),r=+t.value&&(e.value=t.value),i,a=[e],u,o,f,c;if(n==null)n=my;while(i=a.pop()){if(r)i.value=+i.data.value;if((o=n(i.data))&&(c=o.length)){i.children=new Array(c);for(f=c-1;f>=0;--f){a.push(u=i.children[f]=new My(o[f]));u.parent=i;u.depth=i.depth+1}}}return e.eachBefore(xy)}function _y(){return by(this).eachBefore(wy)}function my(t){return t.children}function wy(t){t.data=t.data.data}function xy(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function My(t){this.data=t;this.depth=this.height=0;this.parent=null}My.prototype=by.prototype={constructor:My,count:uy,each:oy,eachAfter:cy,eachBefore:fy,sum:ly,sort:sy,path:hy,ancestors:py,descendants:vy,leaves:yy,links:gy,copy:_y};var ky=Array.prototype.slice;function Ny(t){var n=t.length,e,r;while(n){r=Math.random()*n--|0;e=t[n];t[n]=t[r];t[r]=e}return t}function Ay(t){var n=0,e=(t=Ny(ky.call(t))).length,r=[],i,a;while(n<e){i=t[n];if(a&&Ey(a,i))++n;else a=Py(r=Ty(r,i)),n=0}return a}function Ty(t,n){var e,r;if(Cy(n,t))return[n];for(e=0;e<t.length;++e){if(Sy(n,t[e])&&Cy(Ry(t[e],n),t)){return[t[e],n]}}for(e=0;e<t.length-1;++e){for(r=e+1;r<t.length;++r){if(Sy(Ry(t[e],t[r]),n)&&Sy(Ry(t[e],n),t[r])&&Sy(Ry(t[r],n),t[e])&&Cy(Dy(t[e],t[r],n),t)){return[t[e],t[r],n]}}}throw new Error}function Sy(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function Ey(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Cy(t,n){for(var e=0;e<n.length;++e){if(!Ey(t,n[e])){return false}}return true}function Py(t){switch(t.length){case 1:return zy(t[0]);case 2:return Ry(t[0],t[1]);case 3:return Dy(t[0],t[1],t[2])}}function zy(t){return{x:t.x,y:t.y,r:t.r}}function Ry(t,n){var e=t.x,r=t.y,i=t.r,a=n.x,u=n.y,o=n.r,f=a-e,c=u-r,l=o-i,s=Math.sqrt(f*f+c*c);return{x:(e+a+f/s*l)/2,y:(r+u+c/s*l)/2,r:(s+i+o)/2}}function Dy(t,n,e){var r=t.x,i=t.y,a=t.r,u=n.x,o=n.y,f=n.r,c=e.x,l=e.y,s=e.r,h=r-u,d=r-c,p=i-o,v=i-l,y=f-a,g=s-a,b=r*r+i*i-a*a,_=b-u*u-o*o+f*f,m=b-c*c-l*l+s*s,w=d*p-h*v,x=(p*m-v*_)/(w*2)-r,M=(v*y-p*g)/w,k=(d*_-h*m)/(w*2)-i,N=(h*g-d*y)/w,A=M*M+N*N-1,T=2*(a+x*M+k*N),S=x*x+k*k-a*a,E=-(A?(T+Math.sqrt(T*T-4*A*S))/(2*A):S/T);return{x:r+x+M*E,y:i+k+N*E,r:E}}function qy(t,n,e){var r=t.x-n.x,i,a,u=t.y-n.y,o,f,c=r*r+u*u;if(c){a=n.r+e.r,a*=a;f=t.r+e.r,f*=f;if(a>f){i=(c+f-a)/(2*c);o=Math.sqrt(Math.max(0,f/c-i*i));e.x=t.x-i*r-o*u;e.y=t.y-i*u+o*r}else{i=(c+a-f)/(2*c);o=Math.sqrt(Math.max(0,a/c-i*i));e.x=n.x+i*r-o*u;e.y=n.y+i*u+o*r}}else{e.x=n.x+e.r;e.y=n.y}}function Ly(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Uy(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,a=(n.y*e.r+e.y*n.r)/r;return i*i+a*a}function Iy(t){this._=t;this.next=null;this.previous=null}function By(t){if(!(i=t.length))return 0;var n,e,r,i,a,u,o,f,c,l,s;n=t[0],n.x=0,n.y=0;if(!(i>1))return n.r;e=t[1],n.x=-e.r,e.x=n.r,e.y=0;if(!(i>2))return n.r+e.r;qy(e,n,r=t[2]);n=new Iy(n),e=new Iy(e),r=new Iy(r);n.next=r.previous=e;e.next=n.previous=r;r.next=e.previous=n;t:for(o=3;o<i;++o){qy(n._,e._,r=t[o]),r=new Iy(r);f=e.next,c=n.previous,l=e._.r,s=n._.r;do{if(l<=s){if(Ly(f._,r._)){e=f,n.next=e,e.previous=n,--o;continue t}l+=f._.r,f=f.next}else{if(Ly(c._,r._)){n=c,n.next=e,e.previous=n,--o;continue t}s+=c._.r,c=c.previous}}while(f!==c.next);r.previous=n,r.next=e,n.next=e.previous=e=r;a=Uy(n);while((r=r.next)!==e){if((u=Uy(r))<a){n=r,a=u}}e=n.next}n=[e._],r=e;while((r=r.next)!==e){n.push(r._)}r=Ay(n);for(o=0;o<i;++o){n=t[o],n.x-=r.x,n.y-=r.y}return r.r}function Oy(t){By(t);return t}function Yy(t){return t==null?null:Fy(t)}function Fy(t){if(typeof t!=="function")throw new Error;return t}function Hy(){return 0}function jy(t){return function(){return t}}function Xy(t){return Math.sqrt(t.value)}function Gy(){var t=null,n=1,e=1,r=Hy;function i(i){i.x=n/2,i.y=e/2;if(t){i.eachBefore(Vy(t)).eachAfter(Wy(r,.5)).eachBefore(Zy(1))}else{i.eachBefore(Vy(Xy)).eachAfter(Wy(Hy,1)).eachAfter(Wy(r,i.r/Math.min(n,e))).eachBefore(Zy(Math.min(n,e)/(2*i.r)))}return i}i.radius=function(n){return arguments.length?(t=Yy(n),i):t};i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]};i.padding=function(t){return arguments.length?(r=typeof t==="function"?t:jy(+t),i):r};return i}function Vy(t){return function(n){if(!n.children){n.r=Math.max(0,+t(n)||0)}}}function Wy(t,n){return function(e){if(r=e.children){var r,i,a=r.length,u=t(e)*n||0,o;if(u)for(i=0;i<a;++i){r[i].r+=u}o=By(r);if(u)for(i=0;i<a;++i){r[i].r-=u}e.r=o+u}}}function Zy(t){return function(n){var e=n.parent;n.r*=t;if(e){n.x=e.x+t*n.x;n.y=e.y+t*n.y}}}function $y(t){t.x0=Math.round(t.x0);t.y0=Math.round(t.y0);t.x1=Math.round(t.x1);t.y1=Math.round(t.y1)}function Qy(t,n,e,r,i){var a=t.children,u,o=-1,f=a.length,c=t.value&&(r-n)/t.value;while(++o<f){u=a[o],u.y0=e,u.y1=i;u.x0=n,u.x1=n+=u.value*c}}function Jy(){var t=1,n=1,e=0,r=false;function i(i){var u=i.height+1;i.x0=i.y0=e;i.x1=t;i.y1=n/u;i.eachBefore(a(n,u));if(r)i.eachBefore($y);return i}function a(t,n){return function(r){if(r.children){Qy(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n)}var i=r.x0,a=r.y0,u=r.x1-e,o=r.y1-e;if(u<i)i=u=(i+u)/2;if(o<a)a=o=(a+o)/2;r.x0=i;r.y0=a;r.x1=u;r.y1=o}}i.round=function(t){return arguments.length?(r=!!t,i):r};i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]};i.padding=function(t){return arguments.length?(e=+t,i):e};return i}var Ky="$",tg={depth:-1},ng={};function eg(t){return t.id}function rg(t){return t.parentId}function ig(){var t=eg,n=rg;function e(e){var r,i,a=e.length,u,o,f,c=new Array(a),l,s,h={};for(i=0;i<a;++i){r=e[i],f=c[i]=new My(r);if((l=t(r,i,e))!=null&&(l+="")){s=Ky+(f.id=l);h[s]=s in h?ng:f}}for(i=0;i<a;++i){f=c[i],l=n(e[i],i,e);if(l==null||!(l+="")){if(u)throw new Error("multiple roots");u=f}else{o=h[Ky+l];if(!o)throw new Error("missing: "+l);if(o===ng)throw new Error("ambiguous: "+l);if(o.children)o.children.push(f);else o.children=[f];f.parent=o}}if(!u)throw new Error("no root");u.parent=tg;u.eachBefore(function(t){t.depth=t.parent.depth+1;--a}).eachBefore(xy);u.parent=null;if(a>0)throw new Error("cycle");return u}e.id=function(n){return arguments.length?(t=Fy(n),e):t};e.parentId=function(t){return arguments.length?(n=Fy(t),e):n};return e}function ag(t,n){return t.parent===n.parent?1:2}function ug(t){var n=t.children;return n?n[0]:t.t}function og(t){var n=t.children;return n?n[n.length-1]:t.t}function fg(t,n,e){var r=e/(n.i-t.i);n.c-=r;n.s+=e;t.c+=r;n.z+=e;n.m+=e}function cg(t){var n=0,e=0,r=t.children,i=r.length,a;while(--i>=0){a=r[i];a.z+=n;a.m+=n;n+=a.s+(e+=a.c)}}function lg(t,n,e){return t.a.parent===n.parent?t.a:e}function sg(t,n){this._=t;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=n}sg.prototype=Object.create(My.prototype);function hg(t){var n=new sg(t,0),e,r=[n],i,a,u,o;while(e=r.pop()){if(a=e._.children){e.children=new Array(o=a.length);for(u=o-1;u>=0;--u){r.push(i=e.children[u]=new sg(a[u],u));i.parent=e}}}(n.parent=new sg(null,0)).children=[n];return n}function dg(){var t=ag,n=1,e=1,r=null;function i(i){var o=hg(i);o.eachAfter(a),o.parent.m=-o.z;o.eachBefore(u);if(r)i.eachBefore(f);else{var c=i,l=i,s=i;i.eachBefore(function(t){if(t.x<c.x)c=t;if(t.x>l.x)l=t;if(t.depth>s.depth)s=t});var h=c===l?1:t(c,l)/2,d=h-c.x,p=n/(l.x+h+d),v=e/(s.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p;t.y=t.depth*v})}return i}function a(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){cg(n);var a=(e[0].z+e[e.length-1].z)/2;if(i){n.z=i.z+t(n._,i._);n.m=n.z-a}else{n.z=a}}else if(i){n.z=i.z+t(n._,i._)}n.parent.A=o(n,i,n.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function o(n,e,r){if(e){var i=n,a=n,u=e,o=i.parent.children[0],f=i.m,c=a.m,l=u.m,s=o.m,h;while(u=og(u),i=ug(i),u&&i){o=ug(o);a=og(a);a.a=n;h=u.z+l-i.z-f+t(u._,i._);if(h>0){fg(lg(u,n,r),n,h);f+=h;c+=h}l+=u.m;f+=i.m;s+=o.m;c+=a.m}if(u&&!og(a)){a.t=u;a.m+=l-c}if(i&&!ug(o)){o.t=i;o.m+=f-s;r=n}}return r}function f(t){t.x*=n;t.y=t.depth*e}i.separation=function(n){return arguments.length?(t=n,i):t};i.size=function(t){return arguments.length?(r=false,n=+t[0],e=+t[1],i):r?null:[n,e]};i.nodeSize=function(t){return arguments.length?(r=true,n=+t[0],e=+t[1],i):r?[n,e]:null};return i}function pg(t,n,e,r,i){var a=t.children,u,o=-1,f=a.length,c=t.value&&(i-e)/t.value;while(++o<f){u=a[o],u.x0=n,u.x1=r;u.y0=e,u.y1=e+=u.value*c}}var vg=(1+Math.sqrt(5))/2;function yg(t,n,e,r,i,a){var u=[],o=n.children,f,c,l=0,s=0,h=o.length,d,p,v=n.value,y,g,b,_,m,w,x;while(l<h){d=i-e,p=a-r;do{y=o[s++].value}while(!y&&s<h);g=b=y;w=Math.max(p/d,d/p)/(v*t);x=y*y*w;m=Math.max(b/x,x/g);for(;s<h;++s){y+=c=o[s].value;if(c<g)g=c;if(c>b)b=c;x=y*y*w;_=Math.max(b/x,x/g);if(_>m){y-=c;break}m=_}u.push(f={value:y,dice:d<p,children:o.slice(l,s)});if(f.dice)Qy(f,e,r,i,v?r+=p*y/v:a);else pg(f,e,r,v?e+=d*y/v:i,a);v-=y,l=s}return u}var gg=function t(n){function e(t,e,r,i,a){yg(n,t,e,r,i,a)}e.ratio=function(n){return t((n=+n)>1?n:1)};return e}(vg);function bg(){var t=gg,n=false,e=1,r=1,i=[0],a=Hy,u=Hy,o=Hy,f=Hy,c=Hy;function l(t){t.x0=t.y0=0;t.x1=e;t.y1=r;t.eachBefore(s);i=[0];if(n)t.eachBefore($y);return t}function s(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,s=n.x1-e,h=n.y1-e;if(s<r)r=s=(r+s)/2;if(h<l)l=h=(l+h)/2;n.x0=r;n.y0=l;n.x1=s;n.y1=h;if(n.children){e=i[n.depth+1]=a(n)/2;r+=c(n)-e;l+=u(n)-e;s-=o(n)-e;h-=f(n)-e;if(s<r)r=s=(r+s)/2;if(h<l)l=h=(l+h)/2;t(n,r,l,s,h)}}l.round=function(t){return arguments.length?(n=!!t,l):n};l.size=function(t){return arguments.length?(e=+t[0],r=+t[1],l):[e,r]};l.tile=function(n){return arguments.length?(t=Fy(n),l):t};l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()};l.paddingInner=function(t){return arguments.length?(a=typeof t==="function"?t:jy(+t),l):a};l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()};l.paddingTop=function(t){return arguments.length?(u=typeof t==="function"?t:jy(+t),l):u};l.paddingRight=function(t){return arguments.length?(o=typeof t==="function"?t:jy(+t),l):o};l.paddingBottom=function(t){return arguments.length?(f=typeof t==="function"?t:jy(+t),l):f};l.paddingLeft=function(t){return arguments.length?(c=typeof t==="function"?t:jy(+t),l):c};return l}function _g(t,n,e,r,i){var a=t.children,u,o=a.length,f,c=new Array(o+1);for(c[0]=f=u=0;u<o;++u){c[u+1]=f+=a[u].value}l(0,o,t.value,n,e,r,i);function l(t,n,e,r,i,u,o){if(t>=n-1){var f=a[t];f.x0=r,f.y0=i;f.x1=u,f.y1=o;return}var s=c[t],h=e/2+s,d=t+1,p=n-1;while(d<p){var v=d+p>>>1;if(c[v]<h)d=v+1;else p=v}if(h-c[d-1]<c[d]-h&&t+1<d)--d;var y=c[d]-s,g=e-y;if(u-r>o-i){var b=(r*g+u*y)/e;l(t,d,y,r,i,b,o);l(d,n,g,b,i,u,o)}else{var _=(i*g+o*y)/e;l(t,d,y,r,i,u,_);l(d,n,g,r,_,u,o)}}}function mg(t,n,e,r,i){(t.depth&1?pg:Qy)(t,n,e,r,i)}var wg=function t(n){function e(t,e,r,i,a){if((u=t._squarify)&&u.ratio===n){var u,o,f,c,l=-1,s,h=u.length,d=t.value;while(++l<h){o=u[l],f=o.children;for(c=o.value=0,s=f.length;c<s;++c){o.value+=f[c].value}if(o.dice)Qy(o,e,r,i,r+=(a-r)*o.value/d);else pg(o,e,r,e+=(i-e)*o.value/d,a);d-=o.value}}else{t._squarify=u=yg(n,t,e,r,i,a);u.ratio=n}}e.ratio=function(n){return t((n=+n)>1?n:1)};return e}(vg);function xg(t){var n=-1,e=t.length,r,i=t[e-1],a=0;while(++n<e){r=i;i=t[n];a+=r[1]*i[0]-r[0]*i[1]}return a/2}function Mg(t){var n=-1,e=t.length,r=0,i=0,a,u=t[e-1],o,f=0;while(++n<e){a=u;u=t[n];f+=o=a[0]*u[1]-u[0]*a[1];r+=(a[0]+u[0])*o;i+=(a[1]+u[1])*o}return f*=3,[r/f,i/f]}function kg(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function Ng(t,n){return t[0]-n[0]||t[1]-n[1]}function Ag(t){var n=t.length,e=[0,1],r=2;for(var i=2;i<n;++i){while(r>1&&kg(t[e[r-2]],t[e[r-1]],t[i])<=0){--r}e[r++]=i}return e.slice(0,r)}function Tg(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n){r[n]=[+t[n][0],+t[n][1],n]}r.sort(Ng);for(n=0;n<e;++n){i[n]=[r[n][0],-r[n][1]]}var a=Ag(r),u=Ag(i);var o=u[0]===a[0],f=u[u.length-1]===a[a.length-1],c=[];for(n=a.length-1;n>=0;--n){c.push(t[r[a[n]][2]])}for(n=+o;n<u.length-f;++n){c.push(t[r[u[n]][2]])}return c}function Sg(t,n){var e=t.length,r=t[e-1],i=n[0],a=n[1],u=r[0],o=r[1],f,c,l=false;for(var s=0;s<e;++s){r=t[s],f=r[0],c=r[1];if(c>a!==o>a&&i<(u-f)*(a-c)/(o-c)+f)l=!l;u=f,o=c}return l}function Eg(t){var n=-1,e=t.length,r=t[e-1],i,a,u=r[0],o=r[1],f=0;while(++n<e){i=u;a=o;r=t[n];u=r[0];o=r[1];i-=u;a-=o;f+=Math.sqrt(i*i+a*a)}return f}function Cg(){return Math.random()}var Pg=function t(n){function e(t,e){t=t==null?0:+t;e=e==null?1:+e;if(arguments.length===1)e=t,t=0;else e-=t;return function(){return n()*e+t}}e.source=t;return e}(Cg);var zg=function t(n){function e(t,e){var r,i;t=t==null?0:+t;e=e==null?1:+e;return function(){var a;if(r!=null)a=r,r=null;else do{r=n()*2-1;a=n()*2-1;i=r*r+a*a}while(!i||i>1);return t+e*a*Math.sqrt(-2*Math.log(i)/i)}}e.source=t;return e}(Cg);var Rg=function t(n){function e(){var t=zg.source(n).apply(this,arguments);return function(){return Math.exp(t())}}e.source=t;return e}(Cg);var Dg=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r){e+=n()}return e}}e.source=t;return e}(Cg);var qg=function t(n){function e(t){var e=Dg.source(n)(t);return function(){return e()/t}}e.source=t;return e}(Cg);var Lg=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}e.source=t;return e}(Cg);function Ug(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function Ig(t,n){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(n).domain(t);break}return this}var Bg=Array.prototype;var Og=Bg.map;var Yg=Bg.slice;var Fg={name:"implicit"};function Hg(){var t=gf(),n=[],e=[],r=Fg;function i(i){var a=i+"",u=t.get(a);if(!u){if(r!==Fg)return r;t.set(a,u=n.push(i))}return e[(u-1)%e.length]}i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=gf();var r=-1,a=e.length,u,o;while(++r<a){if(!t.has(o=(u=e[r])+""))t.set(o,n.push(u))}return i};i.range=function(t){return arguments.length?(e=Yg.call(t),i):e.slice()};i.unknown=function(t){return arguments.length?(r=t,i):r};i.copy=function(){return Hg(n,e).unknown(r)};Ug.apply(i,arguments);return i}function jg(){var t=Hg().unknown(undefined),n=t.domain,e=t.range,r=[0,1],i,a,u=false,o=0,f=0,c=.5;delete t.unknown;function l(){var t=n().length,l=r[1]<r[0],s=r[l-0],h=r[1-l];i=(h-s)/Math.max(1,t-o+f*2);if(u)i=Math.floor(i);s+=(h-s-i*(t-o))*c;a=i*(1-o);if(u)s=Math.round(s),a=Math.round(a);var d=w(t).map(function(t){return s+i*t});return e(l?d.reverse():d)}t.domain=function(t){return arguments.length?(n(t),l()):n()};t.range=function(t){return arguments.length?(r=[+t[0],+t[1]],l()):r.slice()};t.rangeRound=function(t){return r=[+t[0],+t[1]],u=true,l()};t.bandwidth=function(){return a};t.step=function(){return i};t.round=function(t){return arguments.length?(u=!!t,l()):u};t.padding=function(t){return arguments.length?(o=Math.min(1,f=+t),l()):o};t.paddingInner=function(t){return arguments.length?(o=Math.min(1,t),l()):o};t.paddingOuter=function(t){return arguments.length?(f=+t,l()):f};t.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c};t.copy=function(){return jg(n(),r).round(u).paddingInner(o).paddingOuter(f).align(c)};return Ug.apply(l(),arguments)}function Xg(t){var n=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return Xg(n())};return t}function Gg(){return Xg(jg.apply(null,arguments).paddingInner(1))}function Vg(t){return function(){return t}}function Wg(t){return+t}var Zg=[0,1];function $g(t){return t}function Qg(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Vg(isNaN(n)?NaN:.5)}function Jg(t){var n=t[0],e=t[t.length-1],r;if(n>e)r=n,n=e,e=r;return function(t){return Math.max(n,Math.min(e,t))}}function Kg(t,n,e){var r=t[0],i=t[1],a=n[0],u=n[1];if(i<r)r=Qg(i,r),a=e(u,a);else r=Qg(r,i),a=e(a,u);return function(t){return a(r(t))}}function tb(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),a=new Array(r),o=-1;if(t[r]<t[0]){t=t.slice().reverse();n=n.slice().reverse()}while(++o<r){i[o]=Qg(t[o],t[o+1]);a[o]=e(n[o],n[o+1])}return function(n){var e=u(t,n,1,r)-1;return a[e](i[e](n))}}function nb(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function eb(){var t=Zg,n=Zg,e=ei,r,i,a,u=$g,o,f,c;function l(){o=Math.min(t.length,n.length)>2?tb:Kg;f=c=null;return s}function s(i){return isNaN(i=+i)?a:(f||(f=o(t.map(r),n,e)))(r(u(i)))}s.invert=function(e){return u(i((c||(c=o(n,t.map(r),Zr)))(e)))};s.domain=function(n){return arguments.length?(t=Og.call(n,Wg),u===$g||(u=Jg(t)),l()):t.slice()};s.range=function(t){return arguments.length?(n=Yg.call(t),l()):n.slice()};s.rangeRound=function(t){return n=Yg.call(t),e=ai,l()};s.clamp=function(n){return arguments.length?(u=n?Jg(t):$g,s):u!==$g};s.interpolate=function(t){return arguments.length?(e=t,l()):e};s.unknown=function(t){return arguments.length?(a=t,s):a};return function(t,n){r=t,i=n;return l()}}function rb(t,n){return eb()(t,n)}function ib(n,e,r,i){var a=T(n,e,r),u;i=Tl(i==null?",f":i);switch(i.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(e));if(i.precision==null&&!isNaN(u=Ol(a,o)))i.precision=u;return t.formatPrefix(i,o)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(u=Yl(a,Math.max(Math.abs(n),Math.abs(e)))))i.precision=u-(i.type==="e");break}case"f":case"%":{if(i.precision==null&&!isNaN(u=Bl(a)))i.precision=u-(i.type==="%")*2;break}}return t.format(i)}function ab(t){var n=t.domain;t.ticks=function(t){var e=n();return N(e[0],e[e.length-1],t==null?10:t)};t.tickFormat=function(t,e){var r=n();return ib(r[0],r[r.length-1],t==null?10:t,e)};t.nice=function(e){if(e==null)e=10;var r=n(),i=0,a=r.length-1,u=r[i],o=r[a],f;if(o<u){f=u,u=o,o=f;f=i,i=a,a=f}f=A(u,o,e);if(f>0){u=Math.floor(u/f)*f;o=Math.ceil(o/f)*f;f=A(u,o,e)}else if(f<0){u=Math.ceil(u*f)/f;o=Math.floor(o*f)/f;f=A(u,o,e)}if(f>0){r[i]=Math.floor(u/f)*f;r[a]=Math.ceil(o/f)*f;n(r)}else if(f<0){r[i]=Math.ceil(u*f)/f;r[a]=Math.floor(o*f)/f;n(r)}return t};return t}function ub(){var t=rb($g,$g);t.copy=function(){return nb(t,ub())};Ug.apply(t,arguments);return ab(t)}function ob(t){var n;function e(t){return isNaN(t=+t)?n:t}e.invert=e;e.domain=e.range=function(n){return arguments.length?(t=Og.call(n,Wg),e):t.slice()};e.unknown=function(t){return arguments.length?(n=t,e):n};e.copy=function(){return ob(t).unknown(n)};t=arguments.length?Og.call(t,Wg):[0,1];return ab(e)}function fb(t,n){t=t.slice();var e=0,r=t.length-1,i=t[e],a=t[r],u;if(a<i){u=e,e=r,r=u;u=i,i=a,a=u}t[e]=n.floor(i);t[r]=n.ceil(a);return t}function cb(t){return Math.log(t)}function lb(t){return Math.exp(t)}function sb(t){return-Math.log(-t)}function hb(t){return-Math.exp(-t)}function db(t){return isFinite(t)?+("1e"+t):t<0?0:t}function pb(t){return t===10?db:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function vb(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function yb(t){return function(n){return-t(-n)}}function gb(n){var e=n(cb,lb),r=e.domain,i=10,a,u;function o(){a=vb(i),u=pb(i);if(r()[0]<0){a=yb(a),u=yb(u);n(sb,hb)}else{n(cb,lb)}return e}e.base=function(t){return arguments.length?(i=+t,o()):i};e.domain=function(t){return arguments.length?(r(t),o()):r()};e.ticks=function(t){var n=r(),e=n[0],o=n[n.length-1],f;if(f=o<e)c=e,e=o,o=c;var c=a(e),l=a(o),s,h,d,p=t==null?10:+t,v=[];if(!(i%1)&&l-c<p){c=Math.round(c)-1,l=Math.round(l)+1;if(e>0)for(;c<l;++c){for(h=1,s=u(c);h<i;++h){d=s*h;if(d<e)continue;if(d>o)break;v.push(d)}}else for(;c<l;++c){for(h=i-1,s=u(c);h>=1;--h){d=s*h;if(d<e)continue;if(d>o)break;v.push(d)}}}else{v=N(c,l,Math.min(l-c,p)).map(u)}return f?v.reverse():v};e.tickFormat=function(n,r){if(r==null)r=i===10?".0e":",";if(typeof r!=="function")r=t.format(r);if(n===Infinity)return r;if(n==null)n=10;var o=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/u(Math.round(a(t)));if(n*i<i-.5)n*=i;return n<=o?r(t):""}};e.nice=function(){return r(fb(r(),{floor:function t(n){return u(Math.floor(a(n)))},ceil:function t(n){return u(Math.ceil(a(n)))}}))};return e}function bb(){var t=gb(eb()).domain([1,10]);t.copy=function(){return nb(t,bb()).base(t.base())};Ug.apply(t,arguments);return t}function _b(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function mb(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function wb(t){var n=1,e=t(_b(n),mb(n));e.constant=function(e){return arguments.length?t(_b(n=+e),mb(n)):n};return ab(e)}function xb(){var t=wb(eb());t.copy=function(){return nb(t,xb()).constant(t.constant())};return Ug.apply(t,arguments)}function Mb(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function kb(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Nb(t){return t<0?-t*t:t*t}function Ab(t){var n=t($g,$g),e=1;function r(){return e===1?t($g,$g):e===.5?t(kb,Nb):t(Mb(e),Mb(1/e))}n.exponent=function(t){return arguments.length?(e=+t,r()):e};return ab(n)}function Tb(){var t=Ab(eb());t.copy=function(){return nb(t,Tb()).exponent(t.exponent())};Ug.apply(t,arguments);return t}function Sb(){return Tb.apply(null,arguments).exponent(.5)}function Eb(){var t=[],n=[],r=[],i;function a(){var e=0,i=Math.max(1,n.length);r=new Array(i-1);while(++e<i){r[e-1]=C(t,e/i)}return o}function o(t){return isNaN(t=+t)?i:n[u(r,t)]}o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]};o.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var r=0,i=n.length,u;r<i;++r){if(u=n[r],u!=null&&!isNaN(u=+u))t.push(u)}t.sort(e);return a()};o.range=function(t){return arguments.length?(n=Yg.call(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(i=t,o):i};o.quantiles=function(){return r.slice()};o.copy=function(){return Eb().domain(t).range(n).unknown(i)};return Ug.apply(o,arguments)}function Cb(){var t=0,n=1,e=1,r=[.5],i=[0,1],a;function o(t){return t<=t?i[u(r,t,0,e)]:a}function f(){var i=-1;r=new Array(e);while(++i<e){r[i]=((i+1)*n-(i-e)*t)/(e+1)}return o}o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],f()):[t,n]};o.range=function(t){return arguments.length?(e=(i=Yg.call(t)).length-1,f()):i.slice()};o.invertExtent=function(a){var u=i.indexOf(a);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=e?[r[e-1],n]:[r[u-1],r[u]]};o.unknown=function(t){return arguments.length?(a=t,o):o};o.thresholds=function(){return r.slice()};o.copy=function(){return Cb().domain([t,n]).range(i).unknown(a)};return Ug.apply(ab(o),arguments)}function Pb(){var t=[.5],n=[0,1],e,r=1;function i(i){return i<=i?n[u(t,i,0,r)]:e}i.domain=function(e){return arguments.length?(t=Yg.call(e),r=Math.min(t.length,n.length-1),i):t.slice()};i.range=function(e){return arguments.length?(n=Yg.call(e),r=Math.min(t.length,n.length-1),i):n.slice()};i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]};i.unknown=function(t){return arguments.length?(e=t,i):e};i.copy=function(){return Pb().domain(t).range(n).unknown(e)};return Ug.apply(i,arguments)}var zb=new Date,Rb=new Date;function Db(t,n,e,r){function i(n){return t(n=new Date(+n)),n}i.floor=i;i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e};i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e};i.offset=function(t,e){return n(t=new Date(+t),e==null?1:Math.floor(e)),t};i.range=function(e,r,a){var u=[],o;e=i.ceil(e);a=a==null?1:Math.floor(a);if(!(e<r)||!(a>0))return u;do{u.push(o=new Date(+e)),n(e,a),t(e)}while(o<e&&e<r);return u};i.filter=function(e){return Db(function(n){if(n>=n)while(t(n),!e(n)){n.setTime(n-1)}},function(t,r){if(t>=t){if(r<0)while(++r<=0){while(n(t,-1),!e(t)){}}else while(--r>=0){while(n(t,+1),!e(t)){}}}})};if(e){i.count=function(n,r){zb.setTime(+n),Rb.setTime(+r);t(zb),t(Rb);return Math.floor(e(zb,Rb))};i.every=function(t){t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?i:i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0})}}return i}var qb=Db(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});qb.every=function(t){t=Math.floor(t);if(!isFinite(t)||!(t>0))return null;if(!(t>1))return qb;return Db(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t})};var Lb=qb.range;var Ub=1e3;var Ib=6e4;var Bb=36e5;var Ob=864e5;var Yb=6048e5;var Fb=Db(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Ub)},function(t,n){return(n-t)/Ub},function(t){return t.getUTCSeconds()});var Hb=Fb.range;var jb=Db(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ub)},function(t,n){t.setTime(+t+n*Ib)},function(t,n){return(n-t)/Ib},function(t){return t.getMinutes()});var Xb=jb.range;var Gb=Db(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ub-t.getMinutes()*Ib)},function(t,n){t.setTime(+t+n*Bb)},function(t,n){return(n-t)/Bb},function(t){return t.getHours()});var Vb=Gb.range;var Wb=Db(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ib)/Ob},function(t){return t.getDate()-1});var Zb=Wb.range;function $b(t){return Db(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7);n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ib)/Yb})}var Qb=$b(0);var Jb=$b(1);var Kb=$b(2);var t_=$b(3);var n_=$b(4);var e_=$b(5);var r_=$b(6);var i_=Qb.range;var a_=Jb.range;var u_=Kb.range;var o_=t_.range;var f_=n_.range;var c_=e_.range;var l_=r_.range;var s_=Db(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var h_=s_.range;var d_=Db(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});d_.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Db(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t);n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)})};var p_=d_.range;var v_=Db(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Ib)},function(t,n){return(n-t)/Ib},function(t){return t.getUTCMinutes()});var y_=v_.range;var g_=Db(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*Bb)},function(t,n){return(n-t)/Bb},function(t){return t.getUTCHours()});var b_=g_.range;var __=Db(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Ob},function(t){return t.getUTCDate()-1});var m_=__.range;function w_(t){return Db(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7);n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/Yb})}var x_=w_(0);var M_=w_(1);var k_=w_(2);var N_=w_(3);var A_=w_(4);var T_=w_(5);var S_=w_(6);var E_=x_.range;var C_=M_.range;var P_=k_.range;var z_=N_.range;var R_=A_.range;var D_=T_.range;var q_=S_.range;var L_=Db(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var U_=L_.range;var I_=Db(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});I_.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Db(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t);n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})};var B_=I_.range;function O_(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);n.setFullYear(t.y);return n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Y_(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));n.setUTCFullYear(t.y);return n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function F_(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function H_(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,a=t.days,u=t.shortDays,o=t.months,f=t.shortMonths;var c=$_(i),l=Q_(i),s=$_(a),h=Q_(a),d=$_(u),p=Q_(u),v=$_(o),y=Q_(o),g=$_(f),b=Q_(f);var _={a:R,A:D,b:q,B:L,c:null,d:gm,e:gm,f:xm,H:bm,I:_m,j:mm,L:wm,m:Mm,M:km,p:U,Q:Jm,s:Km,S:Nm,u:Am,U:Tm,V:Sm,w:Em,W:Cm,x:null,X:null,y:Pm,Y:zm,Z:Rm,"%":Qm};var m={a:I,A:B,b:O,B:Y,c:null,d:Dm,e:Dm,f:Bm,H:qm,I:Lm,j:Um,L:Im,m:Om,M:Ym,p:F,Q:Jm,s:Km,S:Fm,u:Hm,U:jm,V:Xm,w:Gm,W:Vm,x:null,X:null,y:Wm,Y:Zm,Z:$m,"%":Qm};var w={a:A,A:T,b:S,B:E,c:C,d:om,e:om,f:dm,H:cm,I:cm,j:fm,L:hm,m:um,M:lm,p:N,Q:vm,s:ym,S:sm,u:K_,U:tm,V:nm,w:J_,W:em,x:P,X:z,y:im,Y:rm,Z:am,"%":pm};_.x=x(e,_);_.X=x(r,_);_.c=x(n,_);m.x=x(e,m);m.X=x(r,m);m.c=x(n,m);function x(t,n){return function(e){var r=[],i=-1,a=0,u=t.length,o,f,c;if(!(e instanceof Date))e=new Date(+e);while(++i<u){if(t.charCodeAt(i)===37){r.push(t.slice(a,i));if((f=j_[o=t.charAt(++i)])!=null)o=t.charAt(++i);else f=o==="e"?" ":"0";if(c=n[o])o=c(e,f);r.push(o);a=i+1}}r.push(t.slice(a,i));return r.join("")}}function M(t,n){return function(e){var r=F_(1900),i=k(r,t,e+="",0),a,u;if(i!=e.length)return null;if("Q"in r)return new Date(r.Q);if("p"in r)r.H=r.H%12+r.p*12;if("V"in r){if(r.V<1||r.V>53)return null;if(!("w"in r))r.w=1;if("Z"in r){a=Y_(F_(r.y)),u=a.getUTCDay();a=u>4||u===0?M_.ceil(a):M_(a);a=__.offset(a,(r.V-1)*7);r.y=a.getUTCFullYear();r.m=a.getUTCMonth();r.d=a.getUTCDate()+(r.w+6)%7}else{a=n(F_(r.y)),u=a.getDay();a=u>4||u===0?Jb.ceil(a):Jb(a);a=Wb.offset(a,(r.V-1)*7);r.y=a.getFullYear();r.m=a.getMonth();r.d=a.getDate()+(r.w+6)%7}}else if("W"in r||"U"in r){if(!("w"in r))r.w="u"in r?r.u%7:"W"in r?1:0;u="Z"in r?Y_(F_(r.y)).getUTCDay():n(F_(r.y)).getDay();r.m=0;r.d="W"in r?(r.w+6)%7+r.W*7-(u+5)%7:r.w+r.U*7-(u+6)%7}if("Z"in r){r.H+=r.Z/100|0;r.M+=r.Z%100;return Y_(r)}return n(r)}}function k(t,n,e,r){var i=0,a=n.length,u=e.length,o,f;while(i<a){if(r>=u)return-1;o=n.charCodeAt(i++);if(o===37){o=n.charAt(i++);f=w[o in j_?n.charAt(i++):o];if(!f||(r=f(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++)){return-1}}return r}function N(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1}function A(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1}function T(t,n,e){var r=s.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1}function S(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=b[r[0].toLowerCase()],e+r[0].length):-1}function E(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=y[r[0].toLowerCase()],e+r[0].length):-1}function C(t,e,r){return k(t,n,e,r)}function P(t,n,r){return k(t,e,n,r)}function z(t,n,e){return k(t,r,n,e)}function R(t){return u[t.getDay()]}function D(t){return a[t.getDay()]}function q(t){return f[t.getMonth()]}function L(t){return o[t.getMonth()]}function U(t){return i[+(t.getHours()>=12)]}function I(t){return u[t.getUTCDay()]}function B(t){return a[t.getUTCDay()]}function O(t){return f[t.getUTCMonth()]}function Y(t){return o[t.getUTCMonth()]}function F(t){return i[+(t.getUTCHours()>=12)]}return{format:function t(n){var e=x(n+="",_);e.toString=function(){return n};return e},parse:function t(n){var e=M(n+="",O_);e.toString=function(){return n};return e},utcFormat:function t(n){var e=x(n+="",m);e.toString=function(){return n};return e},utcParse:function t(n){var e=M(n,Y_);e.toString=function(){return n};return e}}}var j_={"-":"",_:" ",0:"0"},X_=/^\s*\d+/,G_=/^%/,V_=/[\\^$*+?|[\]().{}]/g;function W_(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<e?new Array(e-a+1).join(n)+i:i)}function Z_(t){return t.replace(V_,"\\$&")}function $_(t){return new RegExp("^(?:"+t.map(Z_).join("|")+")","i")}function Q_(t){var n={},e=-1,r=t.length;while(++e<r){n[t[e].toLowerCase()]=e}return n}function J_(t,n,e){var r=X_.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function K_(t,n,e){var r=X_.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function tm(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function nm(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function em(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function rm(t,n,e){var r=X_.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function im(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function am(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function um(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function om(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function fm(t,n,e){var r=X_.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function cm(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function lm(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function sm(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function hm(t,n,e){var r=X_.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function dm(t,n,e){var r=X_.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function pm(t,n,e){var r=G_.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function vm(t,n,e){var r=X_.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ym(t,n,e){var r=X_.exec(n.slice(e));return r?(t.Q=+r[0]*1e3,e+r[0].length):-1}function gm(t,n){return W_(t.getDate(),n,2)}function bm(t,n){return W_(t.getHours(),n,2)}function _m(t,n){return W_(t.getHours()%12||12,n,2)}function mm(t,n){return W_(1+Wb.count(d_(t),t),n,3)}function wm(t,n){return W_(t.getMilliseconds(),n,3)}function xm(t,n){return wm(t,n)+"000"}function Mm(t,n){return W_(t.getMonth()+1,n,2)}function km(t,n){return W_(t.getMinutes(),n,2)}function Nm(t,n){return W_(t.getSeconds(),n,2)}function Am(t){var n=t.getDay();return n===0?7:n}function Tm(t,n){return W_(Qb.count(d_(t),t),n,2)}function Sm(t,n){var e=t.getDay();t=e>=4||e===0?n_(t):n_.ceil(t);return W_(n_.count(d_(t),t)+(d_(t).getDay()===4),n,2)}function Em(t){return t.getDay()}function Cm(t,n){return W_(Jb.count(d_(t),t),n,2)}function Pm(t,n){return W_(t.getFullYear()%100,n,2)}function zm(t,n){return W_(t.getFullYear()%1e4,n,4)}function Rm(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+W_(n/60|0,"0",2)+W_(n%60,"0",2)}function Dm(t,n){return W_(t.getUTCDate(),n,2)}function qm(t,n){return W_(t.getUTCHours(),n,2)}function Lm(t,n){return W_(t.getUTCHours()%12||12,n,2)}function Um(t,n){return W_(1+__.count(I_(t),t),n,3)}function Im(t,n){return W_(t.getUTCMilliseconds(),n,3)}function Bm(t,n){return Im(t,n)+"000"}function Om(t,n){return W_(t.getUTCMonth()+1,n,2)}function Ym(t,n){return W_(t.getUTCMinutes(),n,2)}function Fm(t,n){return W_(t.getUTCSeconds(),n,2)}function Hm(t){var n=t.getUTCDay();return n===0?7:n}function jm(t,n){return W_(x_.count(I_(t),t),n,2)}function Xm(t,n){var e=t.getUTCDay();t=e>=4||e===0?A_(t):A_.ceil(t);return W_(A_.count(I_(t),t)+(I_(t).getUTCDay()===4),n,2)}function Gm(t){return t.getUTCDay()}function Vm(t,n){return W_(M_.count(I_(t),t),n,2)}function Wm(t,n){return W_(t.getUTCFullYear()%100,n,2)}function Zm(t,n){return W_(t.getUTCFullYear()%1e4,n,4)}function $m(){return"+0000"}function Qm(){return"%"}function Jm(t){return+t}function Km(t){return Math.floor(+t/1e3)}var tw;nw({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function nw(n){tw=H_(n);t.timeFormat=tw.format;t.timeParse=tw.parse;t.utcFormat=tw.utcFormat;t.utcParse=tw.utcParse;return tw}var ew="%Y-%m-%dT%H:%M:%S.%LZ";function rw(t){return t.toISOString()}var iw=Date.prototype.toISOString?rw:t.utcFormat(ew);function aw(t){var n=new Date(t);return isNaN(n)?null:n}var uw=+new Date("2000-01-01T00:00:00.000Z")?aw:t.utcParse(ew);var ow=1e3,fw=ow*60,cw=fw*60,lw=cw*24,sw=lw*7,hw=lw*30,dw=lw*365;function pw(t){return new Date(t)}function vw(t){return t instanceof Date?+t:+new Date(+t)}function yw(t,n,e,i,a,u,o,f,c){var l=rb($g,$g),s=l.invert,h=l.domain;var d=c(".%L"),p=c(":%S"),v=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),b=c("%b %d"),_=c("%B"),m=c("%Y");var w=[[o,1,ow],[o,5,5*ow],[o,15,15*ow],[o,30,30*ow],[u,1,fw],[u,5,5*fw],[u,15,15*fw],[u,30,30*fw],[a,1,cw],[a,3,3*cw],[a,6,6*cw],[a,12,12*cw],[i,1,lw],[i,2,2*lw],[e,1,sw],[n,1,hw],[n,3,3*hw],[t,1,dw]];function x(r){return(o(r)<r?d:u(r)<r?p:a(r)<r?v:i(r)<r?y:n(r)<r?e(r)<r?g:b:t(r)<r?_:m)(r)}function M(n,e,i,a){if(n==null)n=10;if(typeof n==="number"){var u=Math.abs(i-e)/n,o=r(function(t){return t[2]}).right(w,u);if(o===w.length){a=T(e/dw,i/dw,n);n=t}else if(o){o=w[u/w[o-1][2]<w[o][2]/u?o-1:o];a=o[1];n=o[0]}else{a=Math.max(T(e,i,n),1);n=f}}return a==null?n:n.every(a)}l.invert=function(t){return new Date(s(t))};l.domain=function(t){return arguments.length?h(Og.call(t,vw)):h().map(pw)};l.ticks=function(t,n){var e=h(),r=e[0],i=e[e.length-1],a=i<r,u;if(a)u=r,r=i,i=u;u=M(t,r,i,n);u=u?u.range(r,i+1):[];return a?u.reverse():u};l.tickFormat=function(t,n){return n==null?x:c(n)};l.nice=function(t,n){var e=h();return(t=M(t,e[0],e[e.length-1],n))?h(fb(e,t)):l};l.copy=function(){return nb(l,yw(t,n,e,i,a,u,o,f,c))};return l}function gw(){return Ug.apply(yw(d_,s_,Qb,Wb,Gb,jb,Fb,qb,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bw(){return Ug.apply(yw(I_,L_,x_,__,g_,v_,Fb,qb,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function _w(){var t=0,n=1,e,r,i,a,u=$g,o=false,f;function c(t){return isNaN(t=+t)?f:u(i===0?.5:(t=(a(t)-e)*i,o?Math.max(0,Math.min(1,t)):t))}c.domain=function(u){return arguments.length?(e=a(t=+u[0]),r=a(n=+u[1]),i=e===r?0:1/(r-e),c):[t,n]};c.clamp=function(t){return arguments.length?(o=!!t,c):o};c.interpolator=function(t){return arguments.length?(u=t,c):u};c.unknown=function(t){return arguments.length?(f=t,c):f};return function(u){a=u,e=u(t),r=u(n),i=e===r?0:1/(r-e);return c}}function mw(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ww(){var t=ab(_w()($g));t.copy=function(){return mw(t,ww())};return Ig.apply(t,arguments)}function xw(){var t=gb(_w()).domain([1,10]);t.copy=function(){return mw(t,xw()).base(t.base())};return Ig.apply(t,arguments)}function Mw(){var t=wb(_w());t.copy=function(){return mw(t,Mw()).constant(t.constant())};return Ig.apply(t,arguments)}function kw(){var t=Ab(_w());t.copy=function(){return mw(t,kw()).exponent(t.exponent())};return Ig.apply(t,arguments)}function Nw(){return kw.apply(null,arguments).exponent(.5)}function Aw(){var t=[],n=$g;function r(e){if(!isNaN(e=+e))return n((u(t,e)-1)/(t.length-1))}r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var i=0,a=n.length,u;i<a;++i){if(u=n[i],u!=null&&!isNaN(u=+u))t.push(u)}t.sort(e);return r};r.interpolator=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return Aw(n).domain(t)};return Ig.apply(r,arguments)}function Tw(){var t=0,n=.5,e=1,r,i,a,u,o,f=$g,c,l=false,s;function h(t){return isNaN(t=+t)?s:(t=.5+((t=+c(t))-i)*(t<i?u:o),f(l?Math.max(0,Math.min(1,t)):t))}h.domain=function(f){return arguments.length?(r=c(t=+f[0]),i=c(n=+f[1]),a=c(e=+f[2]),u=r===i?0:.5/(i-r),o=i===a?0:.5/(a-i),h):[t,n,e]};h.clamp=function(t){return arguments.length?(l=!!t,h):l};h.interpolator=function(t){return arguments.length?(f=t,h):f};h.unknown=function(t){return arguments.length?(s=t,h):s};return function(f){c=f,r=f(t),i=f(n),a=f(e),u=r===i?0:.5/(i-r),o=i===a?0:.5/(a-i);return h}}function Sw(){var t=ab(Tw()($g));t.copy=function(){return mw(t,Sw())};return Ig.apply(t,arguments)}function Ew(){var t=gb(Tw()).domain([.1,1,10]);t.copy=function(){return mw(t,Ew()).base(t.base())};return Ig.apply(t,arguments)}function Cw(){var t=wb(Tw());t.copy=function(){return mw(t,Cw()).constant(t.constant())};return Ig.apply(t,arguments)}function Pw(){var t=Ab(Tw());t.copy=function(){return mw(t,Pw()).exponent(t.exponent())};return Ig.apply(t,arguments)}function zw(){return Pw.apply(null,arguments).exponent(.5)}function Rw(t){var n=t.length/6|0,e=new Array(n),r=0;while(r<n){e[r]="#"+t.slice(r*6,++r*6)}return e}var Dw=Rw("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");var qw=Rw("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");var Lw=Rw("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");var Uw=Rw("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");var Iw=Rw("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");var Bw=Rw("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");var Ow=Rw("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");var Yw=Rw("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");var Fw=Rw("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Hw(t){return Xr(t[t.length-1])}var jw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Rw);var Xw=Hw(jw);var Gw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Rw);var Vw=Hw(Gw);var Ww=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Rw);var Zw=Hw(Ww);var $w=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Rw);var Qw=Hw($w);var Jw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Rw);var Kw=Hw(Jw);var tx=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Rw);var nx=Hw(tx);var ex=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Rw);var rx=Hw(ex);var ix=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Rw);var ax=Hw(ix);var ux=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Rw);var ox=Hw(ux);var fx=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Rw);var cx=Hw(fx);var lx=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Rw);var sx=Hw(lx);var hx=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Rw);var dx=Hw(hx);var px=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Rw);var vx=Hw(px);var yx=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Rw);var gx=Hw(yx);var bx=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Rw);var _x=Hw(bx);var mx=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Rw);var wx=Hw(mx);var xx=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Rw);var Mx=Hw(xx);var kx=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Rw);var Nx=Hw(kx);var Ax=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Rw);var Tx=Hw(Ax);var Sx=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Rw);var Ex=Hw(Sx);var Cx=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Rw);var Px=Hw(Cx);var zx=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Rw);var Rx=Hw(zx);var Dx=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Rw);var qx=Hw(Dx);var Lx=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Rw);var Ux=Hw(Lx);var Ix=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Rw);var Bx=Hw(Ix);var Ox=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Rw);var Yx=Hw(Ox);var Fx=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Rw);var Hx=Hw(Fx);var jx=qi(zr(300,.5,0),zr(-240,.5,1));var Xx=qi(zr(-100,.75,.35),zr(80,1.5,.8));var Gx=qi(zr(260,.75,.35),zr(80,1.5,.8));var Vx=zr();function Wx(t){if(t<0||t>1)t-=Math.floor(t);var n=Math.abs(t-.5);Vx.h=360*t-100;Vx.s=1.5-1.5*n;Vx.l=.8-.9*n;return Vx+""}var Zx=Ve(),$x=Math.PI/3,Qx=Math.PI*2/3;function Jx(t){var n;t=(.5-t)*Math.PI;Zx.r=255*(n=Math.sin(t))*n;Zx.g=255*(n=Math.sin(t+$x))*n;Zx.b=255*(n=Math.sin(t+Qx))*n;return Zx+""}function Kx(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var tM=Kx(Rw("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var nM=Kx(Rw("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));var eM=Kx(Rw("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));var rM=Kx(Rw("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function iM(t){return function n(){return t}}var aM=Math.abs;var uM=Math.atan2;var oM=Math.cos;var fM=Math.max;var cM=Math.min;var lM=Math.sin;var sM=Math.sqrt;var hM=1e-12;var dM=Math.PI;var pM=dM/2;var vM=2*dM;function yM(t){return t>1?0:t<-1?dM:Math.acos(t)}function gM(t){return t>=1?pM:t<=-1?-pM:Math.asin(t)}function bM(t){return t.innerRadius}function _M(t){return t.outerRadius}function mM(t){return t.startAngle}function wM(t){return t.endAngle}function xM(t){return t&&t.padAngle}function MM(t,n,e,r,i,a,u,o){var f=e-t,c=r-n,l=u-i,s=o-a,h=s*f-l*c;if(h*h<hM)return;h=(l*(n-a)-s*(t-i))/h;return[t+h*f,n+h*c]}function kM(t,n,e,r,i,a,u){var o=t-e,f=n-r,c=(u?a:-a)/sM(o*o+f*f),l=c*f,s=-c*o,h=t+l,d=n+s,p=e+l,v=r+s,y=(h+p)/2,g=(d+v)/2,b=p-h,_=v-d,m=b*b+_*_,w=i-a,x=h*v-p*d,M=(_<0?-1:1)*sM(fM(0,w*w*m-x*x)),k=(x*_-b*M)/m,N=(-x*b-_*M)/m,A=(x*_+b*M)/m,T=(-x*b+_*M)/m,S=k-y,E=N-g,C=A-y,P=T-g;if(S*S+E*E>C*C+P*P)k=A,N=T;return{cx:k,cy:N,x01:-l,y01:-s,x11:k*(i/w-1),y11:N*(i/w-1)}}function NM(){var t=bM,n=_M,e=iM(0),r=null,i=mM,a=wM,u=xM,o=null;function f(){var f,c,l=+t.apply(this,arguments),s=+n.apply(this,arguments),h=i.apply(this,arguments)-pM,d=a.apply(this,arguments)-pM,p=aM(d-h),v=d>h;if(!o)o=f=ff();if(s<l)c=s,s=l,l=c;if(!(s>hM))o.moveTo(0,0);else if(p>vM-hM){o.moveTo(s*oM(h),s*lM(h));o.arc(0,0,s,h,d,!v);if(l>hM){o.moveTo(l*oM(d),l*lM(d));o.arc(0,0,l,d,h,v)}}else{var y=h,g=d,b=h,_=d,m=p,w=p,x=u.apply(this,arguments)/2,M=x>hM&&(r?+r.apply(this,arguments):sM(l*l+s*s)),k=cM(aM(s-l)/2,+e.apply(this,arguments)),N=k,A=k,T,S;if(M>hM){var E=gM(M/l*lM(x)),C=gM(M/s*lM(x));if((m-=E*2)>hM)E*=v?1:-1,b+=E,_-=E;else m=0,b=_=(h+d)/2;if((w-=C*2)>hM)C*=v?1:-1,y+=C,g-=C;else w=0,y=g=(h+d)/2}var P=s*oM(y),z=s*lM(y),R=l*oM(_),D=l*lM(_);if(k>hM){var q=s*oM(g),L=s*lM(g),U=l*oM(b),I=l*lM(b),B;if(p<dM&&(B=MM(P,z,U,I,q,L,R,D))){var O=P-B[0],Y=z-B[1],F=q-B[0],H=L-B[1],j=1/lM(yM((O*F+Y*H)/(sM(O*O+Y*Y)*sM(F*F+H*H)))/2),X=sM(B[0]*B[0]+B[1]*B[1]);N=cM(k,(l-X)/(j-1));A=cM(k,(s-X)/(j+1))}}if(!(w>hM))o.moveTo(P,z);else if(A>hM){T=kM(U,I,P,z,s,A,v);S=kM(q,L,R,D,s,A,v);o.moveTo(T.cx+T.x01,T.cy+T.y01);if(A<k)o.arc(T.cx,T.cy,A,uM(T.y01,T.x01),uM(S.y01,S.x01),!v);else{o.arc(T.cx,T.cy,A,uM(T.y01,T.x01),uM(T.y11,T.x11),!v);o.arc(0,0,s,uM(T.cy+T.y11,T.cx+T.x11),uM(S.cy+S.y11,S.cx+S.x11),!v);o.arc(S.cx,S.cy,A,uM(S.y11,S.x11),uM(S.y01,S.x01),!v)}}else o.moveTo(P,z),o.arc(0,0,s,y,g,!v);if(!(l>hM)||!(m>hM))o.lineTo(R,D);else if(N>hM){T=kM(R,D,q,L,l,-N,v);S=kM(P,z,U,I,l,-N,v);o.lineTo(T.cx+T.x01,T.cy+T.y01);if(N<k)o.arc(T.cx,T.cy,N,uM(T.y01,T.x01),uM(S.y01,S.x01),!v);else{o.arc(T.cx,T.cy,N,uM(T.y01,T.x01),uM(T.y11,T.x11),!v);o.arc(0,0,l,uM(T.cy+T.y11,T.cx+T.x11),uM(S.cy+S.y11,S.cx+S.x11),v);o.arc(S.cx,S.cy,N,uM(S.y11,S.x11),uM(S.y01,S.x01),!v)}}else o.arc(0,0,l,_,b,v)}o.closePath();if(f)return o=null,f+""||null}f.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-dM/2;return[oM(r)*e,lM(r)*e]};f.innerRadius=function(n){return arguments.length?(t=typeof n==="function"?n:iM(+n),f):t};f.outerRadius=function(t){return arguments.length?(n=typeof t==="function"?t:iM(+t),f):n};f.cornerRadius=function(t){return arguments.length?(e=typeof t==="function"?t:iM(+t),f):e};f.padRadius=function(t){return arguments.length?(r=t==null?null:typeof t==="function"?t:iM(+t),f):r};f.startAngle=function(t){return arguments.length?(i=typeof t==="function"?t:iM(+t),f):i};f.endAngle=function(t){return arguments.length?(a=typeof t==="function"?t:iM(+t),f):a};f.padAngle=function(t){return arguments.length?(u=typeof t==="function"?t:iM(+t),f):u};f.context=function(t){return arguments.length?(o=t==null?null:t,f):o};return f}function AM(t){this._context=t}AM.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;default:this._context.lineTo(n,e);break}}};function TM(t){return new AM(t)}function SM(t){return t[0]}function EM(t){return t[1]}function CM(){var t=SM,n=EM,e=iM(true),r=null,i=TM,a=null;function u(u){var o,f=u.length,c,l=false,s;if(r==null)a=i(s=ff());for(o=0;o<=f;++o){if(!(o<f&&e(c=u[o],o,u))===l){if(l=!l)a.lineStart();else a.lineEnd()}if(l)a.point(+t(c,o,u),+n(c,o,u))}if(s)return a=null,s+""||null}u.x=function(n){return arguments.length?(t=typeof n==="function"?n:iM(+n),u):t};u.y=function(t){return arguments.length?(n=typeof t==="function"?t:iM(+t),u):n};u.defined=function(t){return arguments.length?(e=typeof t==="function"?t:iM(!!t),u):e};u.curve=function(t){return arguments.length?(i=t,r!=null&&(a=i(r)),u):i};u.context=function(t){return arguments.length?(t==null?r=a=null:a=i(r=t),u):r};return u}function PM(){var t=SM,n=null,e=iM(0),r=EM,i=iM(true),a=null,u=TM,o=null;function f(f){var c,l,s,h=f.length,d,p=false,v,y=new Array(h),g=new Array(h);if(a==null)o=u(v=ff());for(c=0;c<=h;++c){if(!(c<h&&i(d=f[c],c,f))===p){if(p=!p){l=c;o.areaStart();o.lineStart()}else{o.lineEnd();o.lineStart();for(s=c-1;s>=l;--s){o.point(y[s],g[s])}o.lineEnd();o.areaEnd()}}if(p){y[c]=+t(d,c,f),g[c]=+e(d,c,f);o.point(n?+n(d,c,f):y[c],r?+r(d,c,f):g[c])}}if(v)return o=null,v+""||null}function c(){return CM().defined(i).curve(u).context(a)}f.x=function(e){return arguments.length?(t=typeof e==="function"?e:iM(+e),n=null,f):t};f.x0=function(n){return arguments.length?(t=typeof n==="function"?n:iM(+n),f):t};f.x1=function(t){return arguments.length?(n=t==null?null:typeof t==="function"?t:iM(+t),f):n};f.y=function(t){return arguments.length?(e=typeof t==="function"?t:iM(+t),r=null,f):e};f.y0=function(t){return arguments.length?(e=typeof t==="function"?t:iM(+t),f):e};f.y1=function(t){return arguments.length?(r=t==null?null:typeof t==="function"?t:iM(+t),f):r};f.lineX0=f.lineY0=function(){return c().x(t).y(e)};f.lineY1=function(){return c().x(t).y(r)};f.lineX1=function(){return c().x(n).y(e)};f.defined=function(t){return arguments.length?(i=typeof t==="function"?t:iM(!!t),f):i};f.curve=function(t){return arguments.length?(u=t,a!=null&&(o=u(a)),f):u};f.context=function(t){return arguments.length?(t==null?a=o=null:o=u(a=t),f):a};return f}function zM(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function RM(t){return t}function DM(){var t=RM,n=zM,e=null,r=iM(0),i=iM(vM),a=iM(0);function u(u){var o,f=u.length,c,l,s=0,h=new Array(f),d=new Array(f),p=+r.apply(this,arguments),v=Math.min(vM,Math.max(-vM,i.apply(this,arguments)-p)),y,g=Math.min(Math.abs(v)/f,a.apply(this,arguments)),b=g*(v<0?-1:1),_;for(o=0;o<f;++o){if((_=d[h[o]=o]=+t(u[o],o,u))>0){s+=_}}if(n!=null)h.sort(function(t,e){return n(d[t],d[e])});else if(e!=null)h.sort(function(t,n){return e(u[t],u[n])});for(o=0,l=s?(v-f*b)/s:0;o<f;++o,p=y){c=h[o],_=d[c],y=p+(_>0?_*l:0)+b,d[c]={data:u[c],index:o,value:_,startAngle:p,endAngle:y,padAngle:g}}return d}u.value=function(n){return arguments.length?(t=typeof n==="function"?n:iM(+n),u):t};u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n};u.sort=function(t){return arguments.length?(e=t,n=null,u):e};u.startAngle=function(t){return arguments.length?(r=typeof t==="function"?t:iM(+t),u):r};u.endAngle=function(t){return arguments.length?(i=typeof t==="function"?t:iM(+t),u):i};u.padAngle=function(t){return arguments.length?(a=typeof t==="function"?t:iM(+t),u):a};return u}var qM=UM(TM);function LM(t){this._curve=t}LM.prototype={areaStart:function t(){this._curve.areaStart()},areaEnd:function t(){this._curve.areaEnd()},lineStart:function t(){this._curve.lineStart()},lineEnd:function t(){this._curve.lineEnd()},point:function t(n,e){this._curve.point(e*Math.sin(n),e*-Math.cos(n))}};function UM(t){function n(n){return new LM(t(n))}n._curve=t;return n}function IM(t){var n=t.curve;t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;t.curve=function(t){return arguments.length?n(UM(t)):n()._curve};return t}function BM(){return IM(CM().curve(qM))}function OM(){var t=PM().curve(qM),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;t.angle=t.x,delete t.x;t.startAngle=t.x0,delete t.x0;t.endAngle=t.x1,delete t.x1;t.radius=t.y,delete t.y;t.innerRadius=t.y0,delete t.y0;t.outerRadius=t.y1,delete t.y1;t.lineStartAngle=function(){return IM(e())},delete t.lineX0;t.lineEndAngle=function(){return IM(r())},delete t.lineX1;t.lineInnerRadius=function(){return IM(i())},delete t.lineY0;t.lineOuterRadius=function(){return IM(a())},delete t.lineY1;t.curve=function(t){return arguments.length?n(UM(t)):n()._curve};return t}function YM(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}var FM=Array.prototype.slice;function HM(t){return t.source}function jM(t){return t.target}function XM(t){var n=HM,e=jM,r=SM,i=EM,a=null;function u(){var u,o=FM.call(arguments),f=n.apply(this,o),c=e.apply(this,o);if(!a)a=u=ff();t(a,+r.apply(this,(o[0]=f,o)),+i.apply(this,o),+r.apply(this,(o[0]=c,o)),+i.apply(this,o));if(u)return a=null,u+""||null}u.source=function(t){return arguments.length?(n=t,u):n};u.target=function(t){return arguments.length?(e=t,u):e};u.x=function(t){return arguments.length?(r=typeof t==="function"?t:iM(+t),u):r};u.y=function(t){return arguments.length?(i=typeof t==="function"?t:iM(+t),u):i};u.context=function(t){return arguments.length?(a=t==null?null:t,u):a};return u}function GM(t,n,e,r,i){t.moveTo(n,e);t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function VM(t,n,e,r,i){t.moveTo(n,e);t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function WM(t,n,e,r,i){var a=YM(n,e),u=YM(n,e=(e+i)/2),o=YM(r,e),f=YM(r,i);t.moveTo(a[0],a[1]);t.bezierCurveTo(u[0],u[1],o[0],o[1],f[0],f[1])}function ZM(){return XM(GM)}function $M(){return XM(VM)}function QM(){var t=XM(WM);t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;return t}var JM={draw:function t(n,e){var r=Math.sqrt(e/dM);n.moveTo(r,0);n.arc(0,0,r,0,vM)}};var KM={draw:function t(n,e){var r=Math.sqrt(e/5)/2;n.moveTo(-3*r,-r);n.lineTo(-r,-r);n.lineTo(-r,-3*r);n.lineTo(r,-3*r);n.lineTo(r,-r);n.lineTo(3*r,-r);n.lineTo(3*r,r);n.lineTo(r,r);n.lineTo(r,3*r);n.lineTo(-r,3*r);n.lineTo(-r,r);n.lineTo(-3*r,r);n.closePath()}};var tk=Math.sqrt(1/3),nk=tk*2;var ek={draw:function t(n,e){var r=Math.sqrt(e/nk),i=r*tk;n.moveTo(0,-r);n.lineTo(i,0);n.lineTo(0,r);n.lineTo(-i,0);n.closePath()}};var rk=.8908130915292852,ik=Math.sin(dM/10)/Math.sin(7*dM/10),ak=Math.sin(vM/10)*ik,uk=-Math.cos(vM/10)*ik;var ok={draw:function t(n,e){var r=Math.sqrt(e*rk),i=ak*r,a=uk*r;n.moveTo(0,-r);n.lineTo(i,a);for(var u=1;u<5;++u){var o=vM*u/5,f=Math.cos(o),c=Math.sin(o);n.lineTo(c*r,-f*r);n.lineTo(f*i-c*a,c*i+f*a)}n.closePath()}};var fk={draw:function t(n,e){var r=Math.sqrt(e),i=-r/2;n.rect(i,i,r,r)}};var ck=Math.sqrt(3);var lk={draw:function t(n,e){var r=-Math.sqrt(e/(ck*3));n.moveTo(0,r*2);n.lineTo(-ck*r,-r);n.lineTo(ck*r,-r);n.closePath()}};var sk=-.5,hk=Math.sqrt(3)/2,dk=1/Math.sqrt(12),pk=(dk/2+1)*3;var vk={draw:function t(n,e){var r=Math.sqrt(e/pk),i=r/2,a=r*dk,u=i,o=r*dk+r,f=-u,c=o;n.moveTo(i,a);n.lineTo(u,o);n.lineTo(f,c);n.lineTo(sk*i-hk*a,hk*i+sk*a);n.lineTo(sk*u-hk*o,hk*u+sk*o);n.lineTo(sk*f-hk*c,hk*f+sk*c);n.lineTo(sk*i+hk*a,sk*a-hk*i);n.lineTo(sk*u+hk*o,sk*o-hk*u);n.lineTo(sk*f+hk*c,sk*c-hk*f);n.closePath()}};var yk=[JM,KM,ek,fk,ok,lk,vk];function gk(){var t=iM(JM),n=iM(64),e=null;function r(){var r;if(!e)e=r=ff();t.apply(this,arguments).draw(e,+n.apply(this,arguments));if(r)return e=null,r+""||null}r.type=function(n){return arguments.length?(t=typeof n==="function"?n:iM(n),r):t};r.size=function(t){return arguments.length?(n=typeof t==="function"?t:iM(+t),r):n};r.context=function(t){return arguments.length?(e=t==null?null:t,r):e};return r}function bk(){}function _k(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function mk(t){this._context=t}mk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 3:_k(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_k(this,n,e);break}this._x0=this._x1,this._x1=n;this._y0=this._y1,this._y1=e}};function wk(t){return new mk(t)}function xk(t){this._context=t}xk.prototype={areaStart:bk,areaEnd:bk,lineStart:function t(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2);this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break}case 3:{this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4);break}}},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;this._x2=n,this._y2=e;break;case 1:this._point=2;this._x3=n,this._y3=e;break;case 2:this._point=3;this._x4=n,this._y4=e;this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+e)/6);break;default:_k(this,n,e);break}this._x0=this._x1,this._x1=n;this._y0=this._y1,this._y1=e}};function Mk(t){return new xk(t)}function kk(t){this._context=t}kk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+n)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:_k(this,n,e);break}this._x0=this._x1,this._x1=n;this._y0=this._y1,this._y1=e}};function Nk(t){return new kk(t)}function Ak(t,n){this._basis=new mk(t);this._beta=n}Ak.prototype={lineStart:function t(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function t(){var n=this._x,e=this._y,r=n.length-1;if(r>0){var i=n[0],a=e[0],u=n[r]-i,o=e[r]-a,f=-1,c;while(++f<=r){c=f/r;this._basis.point(this._beta*n[f]+(1-this._beta)*(i+c*u),this._beta*e[f]+(1-this._beta)*(a+c*o))}}this._x=this._y=null;this._basis.lineEnd()},point:function t(n,e){this._x.push(+n);this._y.push(+e)}};var Tk=function t(n){function e(t){return n===1?new mk(t):new Ak(t,n)}e.beta=function(n){return t(+n)};return e}(.85);function Sk(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Ek(t,n){this._context=t;this._k=(1-n)/6}Ek.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Sk(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;this._x1=n,this._y1=e;break;case 2:this._point=3;default:Sk(this,n,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=n;this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ck=function t(n){function e(t){return new Ek(t,n)}e.tension=function(n){return t(+n)};return e}(0);function Pk(t,n){this._context=t;this._k=(1-n)/6}Pk.prototype={areaStart:bk,areaEnd:bk,lineStart:function t(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;this._x3=n,this._y3=e;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=e);break;case 2:this._point=3;this._x5=n,this._y5=e;break;default:Sk(this,n,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=n;this._y0=this._y1,this._y1=this._y2,this._y2=e}};var zk=function t(n){function e(t){return new Pk(t,n)}e.tension=function(n){return t(+n)};return e}(0);function Rk(t,n){this._context=t;this._k=(1-n)/6}Rk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sk(this,n,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=n;this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Dk=function t(n){function e(t){return new Rk(t,n)}e.tension=function(n){return t(+n)};return e}(0);function qk(t,n,e){var r=t._x1,i=t._y1,a=t._x2,u=t._y2;if(t._l01_a>hM){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/f;i=(i*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>hM){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-n*t._l12_2a)/l;u=(u*c+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,u,t._x2,t._y2)}function Lk(t,n){this._context=t;this._alpha=n}Lk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;if(this._point){var r=this._x2-n,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;break;case 2:this._point=3;default:qk(this,n,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=n;this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Uk=function t(n){function e(t){return n?new Lk(t,n):new Ek(t,0)}e.alpha=function(n){return t(+n)};return e}(.5);function Ik(t,n){this._context=t;this._alpha=n}Ik.prototype={areaStart:bk,areaEnd:bk,lineStart:function t(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function t(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function t(n,e){n=+n,e=+e;if(this._point){var r=this._x2-n,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=n,this._y3=e;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=e);break;case 2:this._point=3;this._x5=n,this._y5=e;break;default:qk(this,n,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=n;this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bk=function t(n){function e(t){return n?new Ik(t,n):new Pk(t,0)}e.alpha=function(n){return t(+n)};return e}(.5);function Ok(t,n){this._context=t;this._alpha=n}Ok.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(n,e){n=+n,e=+e;if(this._point){var r=this._x2-n,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qk(this,n,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=n;this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Yk=function t(n){function e(t){return n?new Ok(t,n):new Rk(t,0)}e.alpha=function(n){return t(+n)};return e}(.5);function Fk(t){this._context=t}Fk.prototype={areaStart:bk,areaEnd:bk,lineStart:function t(){this._point=0},lineEnd:function t(){if(this._point)this._context.closePath()},point:function t(n,e){n=+n,e=+e;if(this._point)this._context.lineTo(n,e);else this._point=1,this._context.moveTo(n,e)}};function Hk(t){return new Fk(t)}function jk(t){return t<0?-1:1}function Xk(t,n,e){var r=t._x1-t._x0,i=n-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),o=(a*i+u*r)/(r+i);return(jk(a)+jk(u))*Math.min(Math.abs(a),Math.abs(u),.5*Math.abs(o))||0}function Gk(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Vk(t,n,e){var r=t._x0,i=t._y0,a=t._x1,u=t._y1,o=(a-r)/3;t._context.bezierCurveTo(r+o,i+o*n,a-o,u-o*e,a,u)}function Wk(t){this._context=t}Wk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Vk(this,this._t0,Gk(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(n,e){var r=NaN;n=+n,e=+e;if(n===this._x1&&e===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;break;case 2:this._point=3;Vk(this,Gk(this,r=Xk(this,n,e)),r);break;default:Vk(this,this._t0,r=Xk(this,n,e));break}this._x0=this._x1,this._x1=n;this._y0=this._y1,this._y1=e;this._t0=r}};function Zk(t){this._context=new $k(t)}(Zk.prototype=Object.create(Wk.prototype)).point=function(t,n){Wk.prototype.point.call(this,n,t)};function $k(t){this._context=t}$k.prototype={moveTo:function t(n,e){this._context.moveTo(e,n)},closePath:function t(){this._context.closePath()},lineTo:function t(n,e){this._context.lineTo(e,n)},bezierCurveTo:function t(n,e,r,i,a,u){this._context.bezierCurveTo(e,n,i,r,u,a)}};function Qk(t){return new Wk(t)}function Jk(t){return new Zk(t)}function Kk(t){this._context=t}Kk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=[];this._y=[]},lineEnd:function t(){var n=this._x,e=this._y,r=n.length;if(r){this._line?this._context.lineTo(n[0],e[0]):this._context.moveTo(n[0],e[0]);if(r===2){this._context.lineTo(n[1],e[1])}else{var i=tN(n),a=tN(e);for(var u=0,o=1;o<r;++u,++o){this._context.bezierCurveTo(i[0][u],a[0][u],i[1][u],a[1][u],n[o],e[o])}}}if(this._line||this._line!==0&&r===1)this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function t(n,e){this._x.push(+n);this._y.push(+e)}};function tN(t){var n,e=t.length-1,r,i=new Array(e),a=new Array(e),u=new Array(e);i[0]=0,a[0]=2,u[0]=t[0]+2*t[1];for(n=1;n<e-1;++n){i[n]=1,a[n]=4,u[n]=4*t[n]+2*t[n+1]}i[e-1]=2,a[e-1]=7,u[e-1]=8*t[e-1]+t[e];for(n=1;n<e;++n){r=i[n]/a[n-1],a[n]-=r,u[n]-=r*u[n-1]}i[e-1]=u[e-1]/a[e-1];for(n=e-2;n>=0;--n){i[n]=(u[n]-i[n+1])/a[n]}a[e-1]=(t[e]+i[e-1])/2;for(n=0;n<e-1;++n){a[n]=2*t[n+1]-i[n+1]}return[i,a]}function nN(t){return new Kk(t)}function eN(t,n){this._context=t;this._t=n}eN.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=this._y=NaN;this._point=0},lineEnd:function t(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function t(n,e){n=+n,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,e);this._context.lineTo(n,e)}else{var r=this._x*(1-this._t)+n*this._t;this._context.lineTo(r,this._y);this._context.lineTo(r,e)}break}}this._x=n,this._y=e}};function rN(t){return new eN(t,.5)}function iN(t){return new eN(t,0)}function aN(t){return new eN(t,1)}function uN(t,n){if(!((u=t.length)>1))return;for(var e=1,r,i,a=t[n[0]],u,o=a.length;e<u;++e){i=a,a=t[n[e]];for(r=0;r<o;++r){a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}}}function oN(t){var n=t.length,e=new Array(n);while(--n>=0){e[n]=n}return e}function fN(t,n){return t[n]}function cN(){var t=iM([]),n=oN,e=uN,r=fN;function i(i){var a=t.apply(this,arguments),u,o=i.length,f=a.length,c=new Array(f),l;for(u=0;u<f;++u){for(var s=a[u],h=c[u]=new Array(o),d=0,p;d<o;++d){h[d]=p=[0,+r(i[d],s,d,i)];p.data=i[d]}h.key=s}for(u=0,l=n(c);u<f;++u){c[l[u]].index=u}e(c,l);return c}i.keys=function(n){return arguments.length?(t=typeof n==="function"?n:iM(FM.call(n)),i):t};i.value=function(t){return arguments.length?(r=typeof t==="function"?t:iM(+t),i):r};i.order=function(t){return arguments.length?(n=t==null?oN:typeof t==="function"?t:iM(FM.call(t)),i):n};i.offset=function(t){return arguments.length?(e=t==null?uN:t,i):e};return i}function lN(t,n){if(!((r=t.length)>0))return;for(var e,r,i=0,a=t[0].length,u;i<a;++i){for(u=e=0;e<r;++e){u+=t[e][i][1]||0}if(u)for(e=0;e<r;++e){t[e][i][1]/=u}}uN(t,n)}function sN(t,n){if(!((f=t.length)>0))return;for(var e,r=0,i,a,u,o,f,c=t[n[0]].length;r<c;++r){for(u=o=0,e=0;e<f;++e){if((a=(i=t[n[e]][r])[1]-i[0])>=0){i[0]=u,i[1]=u+=a}else if(a<0){i[1]=o,i[0]=o+=a}else{i[0]=u}}}}function hN(t,n){if(!((i=t.length)>0))return;for(var e=0,r=t[n[0]],i,a=r.length;e<a;++e){for(var u=0,o=0;u<i;++u){o+=t[u][e][1]||0}r[e][1]+=r[e][0]=-o/2}uN(t,n)}function dN(t,n){if(!((u=t.length)>0)||!((a=(i=t[n[0]]).length)>0))return;for(var e=0,r=1,i,a,u;r<a;++r){for(var o=0,f=0,c=0;o<u;++o){var l=t[n[o]],s=l[r][1]||0,h=l[r-1][1]||0,d=(s-h)/2;for(var p=0;p<o;++p){var v=t[n[p]],y=v[r][1]||0,g=v[r-1][1]||0;d+=y-g}f+=s,c+=d*s}i[r-1][1]+=i[r-1][0]=e;if(f)e-=c/f}i[r-1][1]+=i[r-1][0]=e;uN(t,n)}function pN(t){var n=t.map(vN);return oN(t).sort(function(t,e){return n[t]-n[e]})}function vN(t){var n=-1,e=0,r=t.length,i,a=-Infinity;while(++n<r){if((i=+t[n][1])>a)a=i,e=n}return e}function yN(t){var n=t.map(gN);return oN(t).sort(function(t,e){return n[t]-n[e]})}function gN(t){var n=0,e=-1,r=t.length,i;while(++e<r){if(i=+t[e][1])n+=i}return n}function bN(t){return yN(t).reverse()}function _N(t){var n=t.length,e,r,i=t.map(gN),a=pN(t),u=0,o=0,f=[],c=[];for(e=0;e<n;++e){r=a[e];if(u<o){u+=i[r];f.push(r)}else{o+=i[r];c.push(r)}}return c.reverse().concat(f)}function mN(t){return oN(t).reverse()}function wN(t){return function(){return t}}function xN(t){return t[0]}function MN(t){return t[1]}function kN(){this._=null}function NN(t){t.U=t.C=t.L=t.R=t.P=t.N=null}kN.prototype={constructor:kN,insert:function t(n,e){var r,i,a;if(n){e.P=n;e.N=n.N;if(n.N)n.N.P=e;n.N=e;if(n.R){n=n.R;while(n.L){n=n.L}n.L=e}else{n.R=e}r=n}else if(this._){n=SN(this._);e.P=null;e.N=n;n.P=n.L=e;r=n}else{e.P=e.N=null;this._=e;r=null}e.L=e.R=null;e.U=r;e.C=true;n=e;while(r&&r.C){i=r.U;if(r===i.L){a=i.R;if(a&&a.C){r.C=a.C=false;i.C=true;n=i}else{if(n===r.R){AN(this,r);n=r;r=n.U}r.C=false;i.C=true;TN(this,i)}}else{a=i.L;if(a&&a.C){r.C=a.C=false;i.C=true;n=i}else{if(n===r.L){TN(this,r);n=r;r=n.U}r.C=false;i.C=true;AN(this,i)}}r=n.U}this._.C=false},remove:function t(n){if(n.N)n.N.P=n.P;if(n.P)n.P.N=n.N;n.N=n.P=null;var e=n.U,r,i=n.L,a=n.R,u,o;if(!i)u=a;else if(!a)u=i;else u=SN(a);if(e){if(e.L===n)e.L=u;else e.R=u}else{this._=u}if(i&&a){o=u.C;u.C=n.C;u.L=i;i.U=u;if(u!==a){e=u.U;u.U=n.U;n=u.R;e.L=n;u.R=a;a.U=u}else{u.U=e;e=u;n=u.R}}else{o=n.C;n=u}if(n)n.U=e;if(o)return;if(n&&n.C){n.C=false;return}do{if(n===this._)break;if(n===e.L){r=e.R;if(r.C){r.C=false;e.C=true;AN(this,e);r=e.R}if(r.L&&r.L.C||r.R&&r.R.C){if(!r.R||!r.R.C){r.L.C=false;r.C=true;TN(this,r);r=e.R}r.C=e.C;e.C=r.R.C=false;AN(this,e);n=this._;break}}else{r=e.L;if(r.C){r.C=false;e.C=true;TN(this,e);r=e.L}if(r.L&&r.L.C||r.R&&r.R.C){if(!r.L||!r.L.C){r.R.C=false;r.C=true;AN(this,r);r=e.L}r.C=e.C;e.C=r.L.C=false;TN(this,e);n=this._;break}}r.C=true;n=e;e=e.U}while(!n.C);if(n)n.C=false}};function AN(t,n){var e=n,r=n.R,i=e.U;if(i){if(i.L===e)i.L=r;else i.R=r}else{t._=r}r.U=i;e.U=r;e.R=r.L;if(e.R)e.R.U=e;r.L=e}function TN(t,n){var e=n,r=n.L,i=e.U;if(i){if(i.L===e)i.L=r;else i.R=r}else{t._=r}r.U=i;e.U=r;e.L=r.R;if(e.L)e.L.U=e;r.R=e}function SN(t){while(t.L){t=t.L}return t}function EN(t,n,e,r){var i=[null,null],a=aA.push(i)-1;i.left=t;i.right=n;if(e)PN(i,t,n,e);if(r)PN(i,n,t,r);rA[t.index].halfedges.push(a);rA[n.index].halfedges.push(a);return i}function CN(t,n,e){var r=[n,e];r.left=t;return r}function PN(t,n,e,r){if(!t[0]&&!t[1]){t[0]=r;t.left=n;t.right=e}else if(t.left===e){t[1]=r}else{t[0]=r}}function zN(t,n,e,r,i){var a=t[0],u=t[1],o=a[0],f=a[1],c=u[0],l=u[1],s=0,h=1,d=c-o,p=l-f,v;v=n-o;if(!d&&v>0)return;v/=d;if(d<0){if(v<s)return;if(v<h)h=v}else if(d>0){if(v>h)return;if(v>s)s=v}v=r-o;if(!d&&v<0)return;v/=d;if(d<0){if(v>h)return;if(v>s)s=v}else if(d>0){if(v<s)return;if(v<h)h=v}v=e-f;if(!p&&v>0)return;v/=p;if(p<0){if(v<s)return;if(v<h)h=v}else if(p>0){if(v>h)return;if(v>s)s=v}v=i-f;if(!p&&v<0)return;v/=p;if(p<0){if(v>h)return;if(v>s)s=v}else if(p>0){if(v<s)return;if(v<h)h=v}if(!(s>0)&&!(h<1))return true;if(s>0)t[0]=[o+s*d,f+s*p];if(h<1)t[1]=[o+h*d,f+h*p];return true}function RN(t,n,e,r,i){var a=t[1];if(a)return true;var u=t[0],o=t.left,f=t.right,c=o[0],l=o[1],s=f[0],h=f[1],d=(c+s)/2,p=(l+h)/2,v,y;if(h===l){if(d<n||d>=r)return;if(c>s){if(!u)u=[d,e];else if(u[1]>=i)return;a=[d,i]}else{if(!u)u=[d,i];else if(u[1]<e)return;a=[d,e]}}else{v=(c-s)/(h-l);y=p-v*d;if(v<-1||v>1){if(c>s){if(!u)u=[(e-y)/v,e];else if(u[1]>=i)return;a=[(i-y)/v,i]}else{if(!u)u=[(i-y)/v,i];else if(u[1]<e)return;a=[(e-y)/v,e]}}else{if(l<h){if(!u)u=[n,v*n+y];else if(u[0]>=r)return;a=[r,v*r+y]}else{if(!u)u=[r,v*r+y];else if(u[0]<n)return;a=[n,v*n+y]}}}t[0]=u;t[1]=a;return true}function DN(t,n,e,r){var i=aA.length,a;while(i--){if(!RN(a=aA[i],t,n,e,r)||!zN(a,t,n,e,r)||!(Math.abs(a[0][0]-a[1][0])>tA||Math.abs(a[0][1]-a[1][1])>tA)){delete aA[i]}}}function qN(t){return rA[t.index]={site:t,halfedges:[]}}function LN(t,n){var e=t.site,r=n.left,i=n.right;if(e===i)i=r,r=e;if(i)return Math.atan2(i[1]-r[1],i[0]-r[0]);if(e===r)r=n[1],i=n[0];else r=n[0],i=n[1];return Math.atan2(r[0]-i[0],i[1]-r[1])}function UN(t,n){return n[+(n.left!==t.site)]}function IN(t,n){return n[+(n.left===t.site)]}function BN(){for(var t=0,n=rA.length,e,r,i,a;t<n;++t){if((e=rA[t])&&(a=(r=e.halfedges).length)){var u=new Array(a),o=new Array(a);for(i=0;i<a;++i){u[i]=i,o[i]=LN(e,aA[r[i]])}u.sort(function(t,n){return o[n]-o[t]});for(i=0;i<a;++i){o[i]=r[u[i]]}for(i=0;i<a;++i){r[i]=o[i]}}}}function ON(t,n,e,r){var i=rA.length,a,u,o,f,c,l,s,h,d,p,v,y,g=true;for(a=0;a<i;++a){if(u=rA[a]){o=u.site;c=u.halfedges;f=c.length;while(f--){if(!aA[c[f]]){c.splice(f,1)}}f=0,l=c.length;while(f<l){p=IN(u,aA[c[f]]),v=p[0],y=p[1];s=UN(u,aA[c[++f%l]]),h=s[0],d=s[1];if(Math.abs(v-h)>tA||Math.abs(y-d)>tA){c.splice(f,0,aA.push(CN(o,p,Math.abs(v-t)<tA&&r-y>tA?[t,Math.abs(h-t)<tA?d:r]:Math.abs(y-r)<tA&&e-v>tA?[Math.abs(d-r)<tA?h:e,r]:Math.abs(v-e)<tA&&y-n>tA?[e,Math.abs(h-e)<tA?d:n]:Math.abs(y-n)<tA&&v-t>tA?[Math.abs(d-n)<tA?h:t,n]:null))-1);++l}}if(l)g=false}}if(g){var b,_,m,w=Infinity;for(a=0,g=null;a<i;++a){if(u=rA[a]){o=u.site;b=o[0]-t;_=o[1]-n;m=b*b+_*_;if(m<w)w=m,g=u}}if(g){var x=[t,n],M=[t,r],k=[e,r],N=[e,n];g.halfedges.push(aA.push(CN(o=g.site,x,M))-1,aA.push(CN(o,M,k))-1,aA.push(CN(o,k,N))-1,aA.push(CN(o,N,x))-1)}}for(a=0;a<i;++a){if(u=rA[a]){if(!u.halfedges.length){delete rA[a]}}}}var YN=[];var FN;function HN(){NN(this);this.x=this.y=this.arc=this.site=this.cy=null}function jN(t){var n=t.P,e=t.N;if(!n||!e)return;var r=n.site,i=t.site,a=e.site;if(r===a)return;var u=i[0],o=i[1],f=r[0]-u,c=r[1]-o,l=a[0]-u,s=a[1]-o;var h=2*(f*s-c*l);if(h>=-nA)return;var d=f*f+c*c,p=l*l+s*s,v=(s*d-c*p)/h,y=(f*p-l*d)/h;var g=YN.pop()||new HN;g.arc=t;g.site=i;g.x=v+u;g.y=(g.cy=y+o)+Math.sqrt(v*v+y*y);t.circle=g;var b=null,_=iA._;while(_){if(g.y<_.y||g.y===_.y&&g.x<=_.x){if(_.L)_=_.L;else{b=_.P;break}}else{if(_.R)_=_.R;else{b=_;break}}}iA.insert(b,g);if(!b)FN=g}function XN(t){var n=t.circle;if(n){if(!n.P)FN=n.N;iA.remove(n);YN.push(n);NN(n);t.circle=null}}var GN=[];function VN(){NN(this);this.edge=this.site=this.circle=null}function WN(t){var n=GN.pop()||new VN;n.site=t;return n}function ZN(t){XN(t);eA.remove(t);GN.push(t);NN(t)}function $N(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],a=t.P,u=t.N,o=[t];ZN(t);var f=a;while(f.circle&&Math.abs(e-f.circle.x)<tA&&Math.abs(r-f.circle.cy)<tA){a=f.P;o.unshift(f);ZN(f);f=a}o.unshift(f);XN(f);var c=u;while(c.circle&&Math.abs(e-c.circle.x)<tA&&Math.abs(r-c.circle.cy)<tA){u=c.N;o.push(c);ZN(c);c=u}o.push(c);XN(c);var l=o.length,s;for(s=1;s<l;++s){c=o[s];f=o[s-1];PN(c.edge,f.site,c.site,i)}f=o[0];c=o[l-1];c.edge=EN(f.site,c.site,null,i);jN(f);jN(c)}function QN(t){var n=t[0],e=t[1],r,i,a,u,o=eA._;while(o){a=JN(o,e)-n;if(a>tA)o=o.L;else{u=n-KN(o,e);if(u>tA){if(!o.R){r=o;break}o=o.R}else{if(a>-tA){r=o.P;i=o}else if(u>-tA){r=o;i=o.N}else{r=i=o}break}}}qN(t);var f=WN(t);eA.insert(r,f);if(!r&&!i)return;if(r===i){XN(r);i=WN(r.site);eA.insert(f,i);f.edge=i.edge=EN(r.site,f.site);jN(r);jN(i);return}if(!i){f.edge=EN(r.site,f.site);return}XN(r);XN(i);var c=r.site,l=c[0],s=c[1],h=t[0]-l,d=t[1]-s,p=i.site,v=p[0]-l,y=p[1]-s,g=2*(h*y-d*v),b=h*h+d*d,_=v*v+y*y,m=[(y*b-d*_)/g+l,(h*_-v*b)/g+s];PN(i.edge,c,p,m);f.edge=EN(c,t,null,m);i.edge=EN(t,p,null,m);jN(r);jN(i)}function JN(t,n){var e=t.site,r=e[0],i=e[1],a=i-n;if(!a)return r;var u=t.P;if(!u)return-Infinity;e=u.site;var o=e[0],f=e[1],c=f-n;if(!c)return o;var l=o-r,s=1/a-1/c,h=l/c;if(s)return(-h+Math.sqrt(h*h-2*s*(l*l/(-2*c)-f+c/2+i-a/2)))/s+r;return(r+o)/2}function KN(t,n){var e=t.N;if(e)return JN(e,n);var r=t.site;return r[1]===n?r[0]:Infinity}var tA=1e-6;var nA=1e-12;var eA;var rA;var iA;var aA;function uA(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function oA(t,n){return n[1]-t[1]||n[0]-t[0]}function fA(t,n){var e=t.sort(oA).pop(),r,i,a;aA=[];rA=new Array(t.length);eA=new kN;iA=new kN;while(true){a=FN;if(e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x)){if(e[0]!==r||e[1]!==i){QN(e);r=e[0],i=e[1]}e=t.pop()}else if(a){$N(a.arc)}else{break}}BN();if(n){var u=+n[0][0],o=+n[0][1],f=+n[1][0],c=+n[1][1];DN(u,o,f,c);ON(u,o,f,c)}this.edges=aA;this.cells=rA;eA=iA=aA=rA=null}fA.prototype={constructor:fA,polygons:function t(){var n=this.edges;return this.cells.map(function(t){var e=t.halfedges.map(function(e){return UN(t,n[e])});e.data=t.site.data;return e})},triangles:function t(){var t=[],n=this.edges;this.cells.forEach(function(e,r){if(!(o=(a=e.halfedges).length))return;var i=e.site,a,u=-1,o,f,c=n[a[o-1]],l=c.left===i?c.right:c.left;while(++u<o){f=l;c=n[a[u]];l=c.left===i?c.right:c.left;if(f&&l&&r<f.index&&r<l.index&&uA(i,f,l)<0){t.push([i.data,f.data,l.data])}}});return t},links:function t(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function t(n,e,r){var i=this,a,u=i._found||0,o=i.cells.length,f;while(!(f=i.cells[u])){if(++u>=o)return null}var c=n-f.site[0],l=e-f.site[1],s=c*c+l*l;do{f=i.cells[a=u],u=null;f.halfedges.forEach(function(t){var r=i.edges[t],a=r.left;if((a===f.site||!a)&&!(a=r.right))return;var o=n-a[0],c=e-a[1],l=o*o+c*c;if(l<s)s=l,u=a.index})}while(u!==null);i._found=a;return r==null||s<=r*r?f.site:null}};function cA(){var t=xN,n=MN,e=null;function r(r){return new fA(r.map(function(e,i){var a=[Math.round(t(e,i,r)/tA)*tA,Math.round(n(e,i,r)/tA)*tA];a.index=i;a.data=e;return a}),e)}r.polygons=function(t){return r(t).polygons()};r.links=function(t){return r(t).links()};r.triangles=function(t){return r(t).triangles()};r.x=function(n){return arguments.length?(t=typeof n==="function"?n:wN(+n),r):t};r.y=function(t){return arguments.length?(n=typeof t==="function"?t:wN(+t),r):n};r.extent=function(t){return arguments.length?(e=t==null?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]};r.size=function(t){return arguments.length?(e=t==null?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]};return r}function lA(t){return function(){return t}}function sA(t,n,e){this.target=t;this.type=n;this.transform=e}function hA(t,n,e){this.k=t;this.x=n;this.y=e}hA.prototype={constructor:hA,scale:function t(n){return n===1?this:new hA(this.k*n,this.x,this.y)},translate:function t(n,e){return n===0&e===0?this:new hA(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function t(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function t(n){return n*this.k+this.x},applyY:function t(n){return n*this.k+this.y},invert:function t(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function t(n){return(n-this.x)/this.k},invertY:function t(n){return(n-this.y)/this.k},rescaleX:function t(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function t(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function t(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dA=new hA(1,0,0);pA.prototype=hA.prototype;function pA(t){return t.__zoom||dA}function vA(){t.event.stopImmediatePropagation()}function yA(){t.event.preventDefault();t.event.stopImmediatePropagation()}function gA(){return!t.event.button}function bA(){var t=this,n,e;if(t instanceof SVGElement){t=t.ownerSVGElement||t;n=t.width.baseVal.value;e=t.height.baseVal.value}else{n=t.clientWidth;e=t.clientHeight}return[[0,0],[n,e]]}function _A(){return this.__zoom||dA}function mA(){return-t.event.deltaY*(t.event.deltaMode?120:1)/500}function wA(){return"ontouchstart"in this}function xA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],a=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function MA(){var n=gA,e=bA,r=xA,i=mA,a=wA,u=[0,Infinity],o=[[-Infinity,-Infinity],[Infinity,Infinity]],f=250,c=Ni,l=[],s=ct("start","zoom","end"),h,d,p=500,v=150,y=0;function g(t){t.property("__zoom",_A).on("wheel.zoom",k).on("mousedown.zoom",N).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",T).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",_A);if(t!==e){w(t,n)}else{e.interrupt().each(function(){x(this,arguments).start().zoom(null,typeof n==="function"?n.apply(this,arguments):n).end()})}};g.scaleBy=function(t,n){g.scaleTo(t,function(){var t=this.__zoom.k,e=typeof n==="function"?n.apply(this,arguments):n;return t*e})};g.scaleTo=function(t,n){g.transform(t,function(){var t=e.apply(this,arguments),i=this.__zoom,a=m(t),u=i.invert(a),f=typeof n==="function"?n.apply(this,arguments):n;return r(_(b(i,f),a,u),t,o)})};g.translateBy=function(t,n,i){g.transform(t,function(){return r(this.__zoom.translate(typeof n==="function"?n.apply(this,arguments):n,typeof i==="function"?i.apply(this,arguments):i),e.apply(this,arguments),o)})};g.translateTo=function(t,n,i){g.transform(t,function(){var t=e.apply(this,arguments),a=this.__zoom,u=m(t);return r(dA.translate(u[0],u[1]).scale(a.k).translate(typeof n==="function"?-n.apply(this,arguments):-n,typeof i==="function"?-i.apply(this,arguments):-i),t,o)})};function b(t,n){n=Math.max(u[0],Math.min(u[1],n));return n===t.k?t:new hA(n,t.x,t.y)}function _(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new hA(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,n,r){t.on("start.zoom",function(){x(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).end()}).tween("zoom",function(){var t=this,i=arguments,a=x(t,i),u=e.apply(t,i),o=r||m(u),f=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),l=t.__zoom,s=typeof n==="function"?n.apply(t,i):n,h=c(l.invert(o).concat(f/l.k),s.invert(o).concat(f/s.k));return function(t){if(t===1)t=s;else{var n=h(t),e=f/n[2];t=new hA(e,o[0]-n[0]*e,o[1]-n[1]*e)}a.zoom(null,t)}})}function x(t,n){for(var e=0,r=l.length,i;e<r;++e){if((i=l[e]).that===t){return i}}return new M(t,n)}function M(t,n){this.that=t;this.args=n;this.index=-1;this.active=0;this.extent=e.apply(t,n)}M.prototype={start:function t(){if(++this.active===1){this.index=l.push(this)-1;this.emit("start")}return this},zoom:function t(n,e){if(this.mouse&&n!=="mouse")this.mouse[1]=e.invert(this.mouse[0]);if(this.touch0&&n!=="touch")this.touch0[1]=e.invert(this.touch0[0]);if(this.touch1&&n!=="touch")this.touch1[1]=e.invert(this.touch1[0]);this.that.__zoom=e;this.emit("zoom");return this},end:function t(){if(--this.active===0){l.splice(this.index,1);this.index=-1;this.emit("end")}return this},emit:function t(n){$n(new sA(g,n,this.that.__zoom),s.apply,s,[n,this.that,this.args])}};function k(){if(!n.apply(this,arguments))return;var t=x(this,arguments),e=this.__zoom,a=Math.max(u[0],Math.min(u[1],e.k*Math.pow(2,i.apply(this,arguments)))),f=se(this);if(t.wheel){if(t.mouse[0][0]!==f[0]||t.mouse[0][1]!==f[1]){t.mouse[1]=e.invert(t.mouse[0]=f)}clearTimeout(t.wheel)}else if(e.k===a)return;else{t.mouse=[f,e.invert(f)];ma(this);t.start()}yA();t.wheel=setTimeout(c,v);t.zoom("mouse",r(_(b(e,a),t.mouse[0],t.mouse[1]),t.extent,o));function c(){t.wheel=null;t.end()}}function N(){if(d||!n.apply(this,arguments))return;var e=x(this,arguments),i=ie(t.event.view).on("mousemove.zoom",c,true).on("mouseup.zoom",l,true),a=se(this),u=t.event.clientX,f=t.event.clientY;ge(t.event.view);vA();e.mouse=[a,this.__zoom.invert(a)];ma(this);e.start();function c(){yA();if(!e.moved){var n=t.event.clientX-u,i=t.event.clientY-f;e.moved=n*n+i*i>y}e.zoom("mouse",r(_(e.that.__zoom,e.mouse[0]=se(e.that),e.mouse[1]),e.extent,o))}function l(){i.on("mousemove.zoom mouseup.zoom",null);be(t.event.view,e.moved);yA();e.end()}}function A(){if(!n.apply(this,arguments))return;var i=this.__zoom,a=se(this),u=i.invert(a),c=i.k*(t.event.shiftKey?.5:2),l=r(_(b(i,c),a,u),e.apply(this,arguments),o);yA();if(f>0)ie(this).transition().duration(f).call(w,l,a);else ie(this).call(g.transform,l)}function T(){if(!n.apply(this,arguments))return;var e=x(this,arguments),r=t.event.changedTouches,i,a=r.length,u,o,f;vA();for(u=0;u<a;++u){o=r[u],f=de(this,r,o.identifier);f=[f,this.__zoom.invert(f),o.identifier];if(!e.touch0)e.touch0=f,i=true;else if(!e.touch1)e.touch1=f}if(h){h=clearTimeout(h);if(!e.touch1){e.end();f=ie(this).on("dblclick.zoom");if(f)f.apply(this,arguments);return}}if(i){h=setTimeout(function(){h=null},p);ma(this);e.start()}}function S(){var n=x(this,arguments),e=t.event.changedTouches,i=e.length,a,u,f,c;yA();if(h)h=clearTimeout(h);for(a=0;a<i;++a){u=e[a],f=de(this,e,u.identifier);if(n.touch0&&n.touch0[2]===u.identifier)n.touch0[0]=f;else if(n.touch1&&n.touch1[2]===u.identifier)n.touch1[0]=f}u=n.that.__zoom;if(n.touch1){var l=n.touch0[0],s=n.touch0[1],d=n.touch1[0],p=n.touch1[1],v=(v=d[0]-l[0])*v+(v=d[1]-l[1])*v,y=(y=p[0]-s[0])*y+(y=p[1]-s[1])*y;u=b(u,Math.sqrt(v/y));f=[(l[0]+d[0])/2,(l[1]+d[1])/2];c=[(s[0]+p[0])/2,(s[1]+p[1])/2]}else if(n.touch0)f=n.touch0[0],c=n.touch0[1];else return;n.zoom("touch",r(_(u,f,c),n.extent,o))}function E(){var n=x(this,arguments),e=t.event.changedTouches,r=e.length,i,a;vA();if(d)clearTimeout(d);d=setTimeout(function(){d=null},p);for(i=0;i<r;++i){a=e[i];if(n.touch0&&n.touch0[2]===a.identifier)delete n.touch0;else if(n.touch1&&n.touch1[2]===a.identifier)delete n.touch1}if(n.touch1&&!n.touch0)n.touch0=n.touch1,delete n.touch1;if(n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else n.end()}g.wheelDelta=function(t){return arguments.length?(i=typeof t==="function"?t:lA(+t),g):i};g.filter=function(t){return arguments.length?(n=typeof t==="function"?t:lA(!!t),g):n};g.touchable=function(t){return arguments.length?(a=typeof t==="function"?t:lA(!!t),g):a};g.extent=function(t){return arguments.length?(e=typeof t==="function"?t:lA([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):e};g.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],g):[u[0],u[1]]};g.translateExtent=function(t){return arguments.length?(o[0][0]=+t[0][0],o[1][0]=+t[1][0],o[0][1]=+t[0][1],o[1][1]=+t[1][1],g):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]};g.constrain=function(t){return arguments.length?(r=t,g):r};g.duration=function(t){return arguments.length?(f=+t,g):f};g.interpolate=function(t){return arguments.length?(c=t,g):c};g.on=function(){var t=s.on.apply(s,arguments);return t===s?g:t};g.clickDistance=function(t){return arguments.length?(y=(t=+t)*t,g):Math.sqrt(y)};return g}t.version=n;t.bisect=u;t.bisectRight=u;t.bisectLeft=o;t.ascending=e;t.bisector=r;t.cross=l;t.descending=s;t.deviation=p;t.extent=v;t.histogram=E;t.thresholdFreedmanDiaconis=P;t.thresholdScott=z;t.thresholdSturges=S;t.max=R;t.mean=D;t.median=q;t.merge=L;t.min=U;t.pairs=f;t.permute=I;t.quantile=C;t.range=w;t.scan=B;t.shuffle=O;t.sum=Y;t.ticks=N;t.tickIncrement=A;t.tickStep=T;t.transpose=F;t.variance=d;t.zip=j;t.axisTop=it;t.axisRight=at;t.axisBottom=ut;t.axisLeft=ot;t.brush=jo;t.brushX=Fo;t.brushY=Ho;t.brushSelection=Yo;t.chord=Ko;t.ribbon=pf;t.nest=bf;t.set=Nf;t.map=gf;t.keys=Af;t.values=Tf;t.entries=Sf;t.color=He;t.rgb=Ve;t.hsl=Je;t.lab=dr;t.hcl=wr;t.lch=mr;t.gray=hr;t.cubehelix=zr;t.contours=Yf;t.contourDensity=Vf;t.dispatch=ct;t.drag=Ne;t.dragDisable=ge;t.dragEnable=be;t.dsvFormat=ac;t.csvParse=oc;t.csvParseRows=fc;t.csvFormat=cc;t.csvFormatBody=lc;t.csvFormatRows=sc;t.tsvParse=dc;t.tsvParseRows=pc;t.tsvFormat=vc;t.tsvFormatBody=yc;t.tsvFormatRows=gc;t.autoType=bc;t.easeLinear=Mu;t.easeQuad=Au;t.easeQuadIn=ku;t.easeQuadOut=Nu;t.easeQuadInOut=Au;t.easeCubic=Eu;t.easeCubicIn=Tu;t.easeCubicOut=Su;t.easeCubicInOut=Eu;t.easePoly=Ru;t.easePolyIn=Pu;t.easePolyOut=zu;t.easePolyInOut=Ru;t.easeSin=Iu;t.easeSinIn=Lu;t.easeSinOut=Uu;t.easeSinInOut=Iu;t.easeExp=Yu;t.easeExpIn=Bu;t.easeExpOut=Ou;t.easeExpInOut=Yu;t.easeCircle=ju;t.easeCircleIn=Fu;t.easeCircleOut=Hu;t.easeCircleInOut=ju;t.easeBounce=eo;t.easeBounceIn=no;t.easeBounceOut=eo;t.easeBounceInOut=ro;t.easeBack=oo;t.easeBackIn=ao;t.easeBackOut=uo;t.easeBackInOut=oo;t.easeElastic=ho;t.easeElasticIn=so;t.easeElasticOut=ho;t.easeElasticInOut=po;t.blob=mc;t.buffer=xc;t.dsv=Ac;t.csv=Tc;t.tsv=Sc;t.image=Ec;t.json=Pc;t.text=kc;t.xml=Rc;t.html=Dc;t.svg=qc;t.forceCenter=Lc;t.forceCollide=cl;t.forceLink=hl;t.forceManyBody=bl;t.forceRadial=_l;t.forceSimulation=gl;t.forceX=ml;t.forceY=wl;t.formatDefaultLocale=Il;t.formatLocale=Ll;t.formatSpecifier=Tl;t.precisionFixed=Bl;t.precisionPrefix=Ol;t.precisionRound=Yl;t.geoArea=Ds;t.geoBounds=lh;t.geoCentroid=Ih;t.geoCircle=Zh;t.geoClipAntimeridian=ud;t.geoClipCircle=ld;t.geoClipExtent=vd;t.geoClipRectangle=pd;t.geoContains=Ud;t.geoDistance=Sd;t.geoGraticule=Od;t.geoGraticule10=Yd;t.geoInterpolate=Fd;t.geoLength=Nd;t.geoPath=Fp;t.geoAlbers=hv;t.geoAlbersUsa=pv;t.geoAzimuthalEqualArea=bv;t.geoAzimuthalEqualAreaRaw=gv;t.geoAzimuthalEquidistant=mv;t.geoAzimuthalEquidistantRaw=_v;t.geoConicConformal=Av;t.geoConicConformalRaw=Nv;t.geoConicEqualArea=sv;t.geoConicEqualAreaRaw=lv;t.geoConicEquidistant=Cv;t.geoConicEquidistantRaw=Ev;t.geoEqualEarth=Iv;t.geoEqualEarthRaw=Uv;t.geoEquirectangular=Sv;t.geoEquirectangularRaw=Tv;t.geoGnomonic=Ov;t.geoGnomonicRaw=Bv;t.geoIdentity=Fv;t.geoProjection=uv;t.geoProjectionMutator=ov;t.geoMercator=xv;t.geoMercatorRaw=wv;t.geoNaturalEarth1=jv;t.geoNaturalEarth1Raw=Hv;t.geoOrthographic=Gv;t.geoOrthographicRaw=Xv;t.geoStereographic=Wv;t.geoStereographicRaw=Vv;t.geoTransverseMercator=$v;t.geoTransverseMercatorRaw=Zv;t.geoRotation=Gh;t.geoStream=ws;t.geoTransform=Hp;t.cluster=iy;t.hierarchy=by;t.pack=Gy;t.packSiblings=Oy;t.packEnclose=Ay;t.partition=Jy;t.stratify=ig;t.tree=dg;t.treemap=bg;t.treemapBinary=_g;t.treemapDice=Qy;t.treemapSlice=pg;t.treemapSliceDice=mg;t.treemapSquarify=gg;t.treemapResquarify=wg;t.interpolate=ei;t.interpolateArray=Vr;t.interpolateBasis=qr;t.interpolateBasisClosed=Lr;t.interpolateDate=Wr;t.interpolateDiscrete=ri;t.interpolateHue=ii;t.interpolateNumber=Zr;t.interpolateObject=$r;t.interpolateRound=ai;t.interpolateString=ni;t.interpolateTransformCss=yi;t.interpolateTransformSvg=gi;t.interpolateZoom=Ni;t.interpolateRgb=Hr;t.interpolateRgbBasis=Xr;t.interpolateRgbBasisClosed=Gr;t.interpolateHsl=Ti;t.interpolateHslLong=Si;t.interpolateLab=Ei;t.interpolateHcl=Pi;t.interpolateHclLong=zi;t.interpolateCubehelix=Di;t.interpolateCubehelixLong=qi;t.piecewise=Li;t.quantize=Ui;t.path=ff;t.polygonArea=xg;t.polygonCentroid=Mg;t.polygonHull=Tg;t.polygonContains=Sg;t.polygonLength=Eg;t.quadtree=rl;t.randomUniform=Pg;t.randomNormal=zg;t.randomLogNormal=Rg;t.randomBates=qg;t.randomIrwinHall=Dg;t.randomExponential=Lg;t.scaleBand=jg;t.scalePoint=Gg;t.scaleIdentity=ob;t.scaleLinear=ub;t.scaleLog=bb;t.scaleSymlog=xb;t.scaleOrdinal=Hg;t.scaleImplicit=Fg;t.scalePow=Tb;t.scaleSqrt=Sb;t.scaleQuantile=Eb;t.scaleQuantize=Cb;t.scaleThreshold=Pb;t.scaleTime=gw;t.scaleUtc=bw;t.scaleSequential=ww;t.scaleSequentialLog=xw;t.scaleSequentialPow=kw;t.scaleSequentialSqrt=Nw;t.scaleSequentialSymlog=Mw;t.scaleSequentialQuantile=Aw;t.scaleDiverging=Sw;t.scaleDivergingLog=Ew;t.scaleDivergingPow=Pw;t.scaleDivergingSqrt=zw;t.scaleDivergingSymlog=Cw;t.tickFormat=ib;t.schemeCategory10=Dw;t.schemeAccent=qw;t.schemeDark2=Lw;t.schemePaired=Uw;t.schemePastel1=Iw;t.schemePastel2=Bw;t.schemeSet1=Ow;t.schemeSet2=Yw;t.schemeSet3=Fw;t.interpolateBrBG=Xw;t.schemeBrBG=jw;t.interpolatePRGn=Vw;t.schemePRGn=Gw;t.interpolatePiYG=Zw;t.schemePiYG=Ww;t.interpolatePuOr=Qw;t.schemePuOr=$w;t.interpolateRdBu=Kw;t.schemeRdBu=Jw;t.interpolateRdGy=nx;t.schemeRdGy=tx;t.interpolateRdYlBu=rx;t.schemeRdYlBu=ex;t.interpolateRdYlGn=ax;t.schemeRdYlGn=ix;t.interpolateSpectral=ox;t.schemeSpectral=ux;t.interpolateBuGn=cx;t.schemeBuGn=fx;t.interpolateBuPu=sx;t.schemeBuPu=lx;t.interpolateGnBu=dx;t.schemeGnBu=hx;t.interpolateOrRd=vx;t.schemeOrRd=px;t.interpolatePuBuGn=gx;t.schemePuBuGn=yx;t.interpolatePuBu=_x;t.schemePuBu=bx;t.interpolatePuRd=wx;t.schemePuRd=mx;t.interpolateRdPu=Mx;t.schemeRdPu=xx;t.interpolateYlGnBu=Nx;t.schemeYlGnBu=kx;t.interpolateYlGn=Tx;t.schemeYlGn=Ax;t.interpolateYlOrBr=Ex;t.schemeYlOrBr=Sx;t.interpolateYlOrRd=Px;t.schemeYlOrRd=Cx;t.interpolateBlues=Rx;t.schemeBlues=zx;t.interpolateGreens=qx;t.schemeGreens=Dx;t.interpolateGreys=Ux;t.schemeGreys=Lx;t.interpolatePurples=Bx;t.schemePurples=Ix;t.interpolateReds=Yx;t.schemeReds=Ox;t.interpolateOranges=Hx;t.schemeOranges=Fx;t.interpolateCubehelixDefault=jx;t.interpolateRainbow=Wx;t.interpolateWarm=Xx;t.interpolateCool=Gx;t.interpolateSinebow=Jx;t.interpolateViridis=tM;t.interpolateMagma=nM;t.interpolateInferno=eM;t.interpolatePlasma=rM;t.create=ae;t.creator=_t;t.local=oe;t.matcher=At;t.mouse=se;t.namespace=yt;t.namespaces=vt;t.clientPoint=le;t.select=ie;t.selectAll=he;t.selection=re;t.selector=wt;t.selectorAll=kt;t.style=on;t.touch=de;t.touches=pe;t.window=nn;t.customEvent=$n;t.arc=NM;t.area=PM;t.line=CM;t.pie=DM;t.areaRadial=OM;t.radialArea=OM;t.lineRadial=BM;t.radialLine=BM;t.pointRadial=YM;t.linkHorizontal=ZM;t.linkVertical=$M;t.linkRadial=QM;t.symbol=gk;t.symbols=yk;t.symbolCircle=JM;t.symbolCross=KM;t.symbolDiamond=ek;t.symbolSquare=fk;t.symbolStar=ok;t.symbolTriangle=lk;t.symbolWye=vk;t.curveBasisClosed=Mk;t.curveBasisOpen=Nk;t.curveBasis=wk;t.curveBundle=Tk;t.curveCardinalClosed=zk;t.curveCardinalOpen=Dk;t.curveCardinal=Ck;t.curveCatmullRomClosed=Bk;t.curveCatmullRomOpen=Yk;t.curveCatmullRom=Uk;t.curveLinearClosed=Hk;t.curveLinear=TM;t.curveMonotoneX=Qk;t.curveMonotoneY=Jk;t.curveNatural=nN;t.curveStep=rN;t.curveStepAfter=aN;t.curveStepBefore=iN;t.stack=cN;t.stackOffsetExpand=lN;t.stackOffsetDiverging=sN;t.stackOffsetNone=uN;t.stackOffsetSilhouette=hN;t.stackOffsetWiggle=dN;t.stackOrderAppearance=pN;t.stackOrderAscending=yN;t.stackOrderDescending=bN;t.stackOrderInsideOut=_N;t.stackOrderNone=oN;t.stackOrderReverse=mN;t.timeInterval=Db;t.timeMillisecond=qb;t.timeMilliseconds=Lb;t.utcMillisecond=qb;t.utcMilliseconds=Lb;t.timeSecond=Fb;t.timeSeconds=Hb;t.utcSecond=Fb;t.utcSeconds=Hb;t.timeMinute=jb;t.timeMinutes=Xb;t.timeHour=Gb;t.timeHours=Vb;t.timeDay=Wb;t.timeDays=Zb;t.timeWeek=Qb;t.timeWeeks=i_;t.timeSunday=Qb;t.timeSundays=i_;t.timeMonday=Jb;t.timeMondays=a_;t.timeTuesday=Kb;t.timeTuesdays=u_;t.timeWednesday=t_;t.timeWednesdays=o_;t.timeThursday=n_;t.timeThursdays=f_;t.timeFriday=e_;t.timeFridays=c_;t.timeSaturday=r_;t.timeSaturdays=l_;t.timeMonth=s_;t.timeMonths=h_;t.timeYear=d_;t.timeYears=p_;t.utcMinute=v_;t.utcMinutes=y_;t.utcHour=g_;t.utcHours=b_;t.utcDay=__;t.utcDays=m_;t.utcWeek=x_;t.utcWeeks=E_;t.utcSunday=x_;t.utcSundays=E_;t.utcMonday=M_;t.utcMondays=C_;t.utcTuesday=k_;t.utcTuesdays=P_;t.utcWednesday=N_;t.utcWednesdays=z_;t.utcThursday=A_;t.utcThursdays=R_;t.utcFriday=T_;t.utcFridays=D_;t.utcSaturday=S_;t.utcSaturdays=q_;t.utcMonth=L_;t.utcMonths=U_;t.utcYear=I_;t.utcYears=B_;t.timeFormatDefaultLocale=nw;t.timeFormatLocale=H_;t.isoFormat=iw;t.isoParse=uw;t.now=Zi;t.timer=Ji;t.timerFlush=Ki;t.timeout=ia;t.interval=aa;t.transition=mu;t.active=_o;t.interrupt=ma;t.voronoi=cA;t.zoom=MA;t.zoomTransform=pA;t.zoomIdentity=dA})(this.BX.Main=this.BX.Main||{});
//# sourceMappingURL=d3js.bundle.map.js