-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.bundle.js
1 lines (1 loc) · 82.3 KB
/
app.bundle.js
1
!function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=22)}({22:function(t,n,e){"use strict";e.r(n);var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return r(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}};var o=i(r),u=o.right,a=(o.left,u);var s=Array.prototype,l=(s.slice,s.map,Math.sqrt(50)),c=Math.sqrt(10),f=Math.sqrt(2),h=function(t,n,e){var r,i,o,u,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=p(t,n,e))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*u;else for(t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));++a<i;)o[a]=(t-a)/u;return r&&o.reverse(),o};function p(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=l?10:o>=c?5:o>=f?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=l?10:o>=c?5:o>=f?2:1)}function g(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=l?i*=10:o>=c?i*=5:o>=f&&(i*=2),n<t?-i:i}var d=Array.prototype.slice,v=function(t){return t};function y(t){return"translate("+(t+.5)+",0)"}function m(t){return"translate(0,"+(t+.5)+")"}function _(t){return function(n){return+t(n)}}function w(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function x(){return!this.__axis}function M(t,n){var e=[],r=null,i=null,o=6,u=6,a=3,s=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",c=1===t||3===t?y:m;function f(f){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):v:i,g=Math.max(o,0)+a,d=n.range(),y=+d[0]+.5,m=+d[d.length-1]+.5,M=(n.bandwidth?w:_)(n.copy()),b=f.selection?f.selection():f,C=b.selectAll(".domain").data([null]),N=b.selectAll(".tick").data(h,n).order(),A=N.exit(),T=N.enter().append("g").attr("class","tick"),k=N.select("line"),U=N.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(T),k=k.merge(T.append("line").attr("stroke","currentColor").attr(l+"2",s*o)),U=U.merge(T.append("text").attr("fill","currentColor").attr(l,s*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),f!==b&&(C=C.transition(f),N=N.transition(f),k=k.transition(f),U=U.transition(f),A=A.transition(f).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=M(t))?c(t):this.getAttribute("transform")})),T.attr("opacity",1e-6).attr("transform",(function(t){var n=this.parentNode.__axis;return c(n&&isFinite(n=n(t))?n:M(t))}))),A.remove(),C.attr("d",4===t||2==t?u?"M"+s*u+","+y+"H0.5V"+m+"H"+s*u:"M0.5,"+y+"V"+m:u?"M"+y+","+s*u+"V0.5H"+m+"V"+s*u:"M"+y+",0.5H"+m),N.attr("opacity",1).attr("transform",(function(t){return c(M(t))})),k.attr(l+"2",s*o),U.attr(l,s*g).text(p),b.filter(x).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=M}))}return f.scale=function(t){return arguments.length?(n=t,f):n},f.ticks=function(){return e=d.call(arguments),f},f.tickArguments=function(t){return arguments.length?(e=null==t?[]:d.call(t),f):e.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:d.call(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=u=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(u=+t,f):u},f.tickPadding=function(t){return arguments.length?(a=+t,f):a},f}var b={value:function(){}};function C(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new N(r)}function N(t){this._=t}function A(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)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function T(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function k(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=b,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}N.prototype=C.prototype={constructor:N,on:function(t,n){var e,r=this._,i=A(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=k(r[e],t.name,n);else if(null==n)for(e in r)r[e]=k(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=T(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new N(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var U=C;function L(){}var S=function(t){return null==t?L:function(){return this.querySelector(t)}};function D(){return[]}var E=function(t){return null==t?D:function(){return this.querySelectorAll(t)}},P=function(t){return function(){return this.matches(t)}},R=function(t){return new Array(t.length)};function F(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}F.prototype={constructor:F,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Y(t,n,e,r,i,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new F(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function H(t,n,e,r,i,o,u){var a,s,l,c={},f=n.length,h=o.length,p=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(p[a]=l="$"+u.call(s,s.__data__,a,n),l in c?i[a]=s:c[l]=s);for(a=0;a<h;++a)(s=c[l="$"+u.call(t,o[a],a,o)])?(r[a]=s,s.__data__=o[a],c[l]=null):e[a]=new F(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c[p[a]]===s&&(i[a]=s)}function q(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var O="http://www.w3.org/1999/xhtml",j={svg:"http://www.w3.org/2000/svg",xhtml:O,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},X=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),j.hasOwnProperty(n)?{space:j[n],local:t}:t};function z(t){return function(){this.removeAttribute(t)}}function $(t){return function(){this.removeAttributeNS(t.space,t.local)}}function V(t,n){return function(){this.setAttribute(t,n)}}function I(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Z(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function B(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var W=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Q(t){return function(){this.style.removeProperty(t)}}function J(t,n,e){return function(){this.style.setProperty(t,n,e)}}function G(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function K(t,n){return t.style.getPropertyValue(n)||W(t).getComputedStyle(t,null).getPropertyValue(n)}function tt(t){return function(){delete this[t]}}function nt(t,n){return function(){this[t]=n}}function et(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function rt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new ot(t)}function ot(t){this._node=t,this._names=rt(t.getAttribute("class")||"")}function ut(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function at(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function st(t){return function(){ut(this,t)}}function lt(t){return function(){at(this,t)}}function ct(t,n){return function(){(n.apply(this,arguments)?ut:at)(this,t)}}ot.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ft(){this.textContent=""}function ht(t){return function(){this.textContent=t}}function pt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function gt(){this.innerHTML=""}function dt(t){return function(){this.innerHTML=t}}function vt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function yt(){this.nextSibling&&this.parentNode.appendChild(this)}function mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _t(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===O&&n.documentElement.namespaceURI===O?n.createElement(t):n.createElementNS(e,t)}}function wt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var xt=function(t){var n=X(t);return(n.local?wt:_t)(n)};function Mt(){return null}function bt(){var t=this.parentNode;t&&t.removeChild(this)}function Ct(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Nt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var At={},Tt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(At={mouseenter:"mouseover",mouseleave:"mouseout"}));function kt(t,n,e){return t=Ut(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Ut(t,n,e){return function(r){var i=Tt;Tt=r;try{t.call(this,this.__data__,n,e)}finally{Tt=i}}}function Lt(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function St(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Dt(t,n,e){var r=At.hasOwnProperty(t.type)?kt:Ut;return function(i,o,u){var a,s=this.__on,l=r(n,o,u);if(s)for(var c=0,f=s.length;c<f;++c)if((a=s[c]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=e),void(a.value=n);this.addEventListener(t.type,l,e),a={type:t.type,name:t.name,value:n,listener:l,capture:e},s?s.push(a):this.__on=[a]}}function Et(t,n,e){var r=W(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Pt(t,n){return function(){return Et(this,t,n)}}function Rt(t,n){return function(){return Et(this,t,n.apply(this,arguments))}}var Ft=[null];function Yt(t,n){this._groups=t,this._parents=n}function Ht(){return new Yt([[document.documentElement]],Ft)}Yt.prototype=Ht.prototype={constructor:Yt,select:function(t){"function"!=typeof t&&(t=S(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],s=a.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new Yt(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=E(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new Yt(r,i)},filter:function(t){"function"!=typeof t&&(t=P(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new Yt(r,this._parents)},data:function(t,n){if(!t)return g=new Array(this.size()),c=-1,this.each((function(t){g[++c]=t})),g;var e,r=n?H:Y,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=i[c],h=o[c],p=h.length,g=t.call(f,f&&f.__data__,c,i),d=g.length,v=s[c]=new Array(d),y=a[c]=new Array(d);r(f,h,v,y,l[c]=new Array(p),g,n);for(var m,_,w=0,x=0;w<d;++w)if(m=v[w]){for(w>=x&&(x=w+1);!(_=y[x])&&++x<d;);m._next=_||null}}return(a=new Yt(a,i))._enter=s,a._exit=l,a},enter:function(){return new Yt(this._enter||this._groups.map(R),this._parents)},exit:function(){return new Yt(this._exit||this._groups.map(R),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],f=l.length,h=u[a]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;a<r;++a)u[a]=n[a];return new Yt(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=q);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,l=i[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new Yt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=X(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?$:z:"function"==typeof n?e.local?B:Z:e.local?I:V)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Q:"function"==typeof n?G:J)(t,n,null==e?"":e)):K(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?tt:"function"==typeof n?et:nt)(t,n)):this.node()[t]},classed:function(t,n){var e=rt(t+"");if(arguments.length<2){for(var r=it(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ct:n?st:lt)(e,n))},text:function(t){return arguments.length?this.each(null==t?ft:("function"==typeof t?pt:ht)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?gt:("function"==typeof t?vt:dt)(t)):this.node().innerHTML},raise:function(){return this.each(yt)},lower:function(){return this.each(mt)},append:function(t){var n="function"==typeof t?t:xt(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:xt(t),r=null==n?Mt:"function"==typeof n?n:S(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(bt)},clone:function(t){return this.select(t?Nt:Ct)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=Lt(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Dt:St,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(r=0,s=a[l];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?Rt:Pt)(t,n))}};var qt=Ht,Ot=function(t){return"string"==typeof t?new Yt([[document.querySelector(t)]],[document.documentElement]):new Yt([[t]],Ft)};var jt=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function Xt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function zt(){}var $t="\\s*([+-]?\\d+)\\s*",Vt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zt=/^#([0-9a-f]{3,8})$/,Bt=new RegExp("^rgb\\("+[$t,$t,$t]+"\\)$"),Wt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),Qt=new RegExp("^rgba\\("+[$t,$t,$t,Vt]+"\\)$"),Jt=new RegExp("^rgba\\("+[It,It,It,Vt]+"\\)$"),Gt=new RegExp("^hsl\\("+[Vt,It,It]+"\\)$"),Kt=new RegExp("^hsla\\("+[Vt,It,It,Vt]+"\\)$"),tn={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};function nn(){return this.rgb().formatHex()}function en(){return this.rgb().formatRgb()}function rn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Zt.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?on(n):3===e?new ln(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?un(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?un(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Bt.exec(t))?new ln(n[1],n[2],n[3],1):(n=Wt.exec(t))?new ln(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Qt.exec(t))?un(n[1],n[2],n[3],n[4]):(n=Jt.exec(t))?un(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Gt.exec(t))?pn(n[1],n[2]/100,n[3]/100,1):(n=Kt.exec(t))?pn(n[1],n[2]/100,n[3]/100,n[4]):tn.hasOwnProperty(t)?on(tn[t]):"transparent"===t?new ln(NaN,NaN,NaN,0):null}function on(t){return new ln(t>>16&255,t>>8&255,255&t,1)}function un(t,n,e,r){return r<=0&&(t=n=e=NaN),new ln(t,n,e,r)}function an(t){return t instanceof zt||(t=rn(t)),t?new ln((t=t.rgb()).r,t.g,t.b,t.opacity):new ln}function sn(t,n,e,r){return 1===arguments.length?an(t):new ln(t,n,e,null==r?1:r)}function ln(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function cn(){return"#"+hn(this.r)+hn(this.g)+hn(this.b)}function fn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function hn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function pn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new dn(t,n,e,r)}function gn(t){if(t instanceof dn)return new dn(t.h,t.s,t.l,t.opacity);if(t instanceof zt||(t=rn(t)),!t)return new dn;if(t instanceof dn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new dn(u,a,s,t.opacity)}function dn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function vn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function yn(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}jt(zt,rn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:nn,formatHex:nn,formatHsl:function(){return gn(this).formatHsl()},formatRgb:en,toString:en}),jt(ln,sn,Xt(zt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cn,formatHex:cn,formatRgb:fn,toString:fn})),jt(dn,(function(t,n,e,r){return 1===arguments.length?gn(t):new dn(t,n,e,null==r?1:r)}),Xt(zt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new dn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new dn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ln(vn(t>=240?t-240:t+120,i,r),vn(t,i,r),vn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var mn=function(t){return function(){return t}};function _n(t,n){return function(e){return t+e*n}}function wn(t){return 1==(t=+t)?xn:function(n,e){return e-n?function(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)}}(n,e,t):mn(isNaN(n)?e:n)}}function xn(t,n){var e=n-t;return e?_n(t,e):mn(isNaN(t)?n:t)}var Mn=function t(n){var e=wn(n);function r(t,n){var r=e((t=sn(t)).r,(n=sn(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=xn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function bn(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=sn(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}bn((function(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],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return yn((e-r/n)*n,u,i,o,a)}})),bn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return yn((e-r/n)*n,i,o,u,a)}}));var Cn=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}};function Nn(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function An(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=Rn(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}var Tn=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},kn=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},Un=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Rn(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},Ln=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sn=new RegExp(Ln.source,"g");var Dn,En,Pn=function(t,n){var e,r,i,o=Ln.lastIndex=Sn.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=Ln.exec(t))&&(r=Sn.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:kn(e,r)})),o=Sn.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})},Rn=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?mn(n):("number"===r?kn:"string"===r?(e=rn(n))?(n=e,Mn):Pn:n instanceof rn?Mn:n instanceof Date?Tn:Nn(n)?Cn:Array.isArray(n)?An:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Un:kn)(t,n)},Fn=function(){for(var t,n=Tt;t=n.sourceEvent;)n=t;return n},Yn=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Hn=function(t){var n=Fn();return n.changedTouches&&(n=n.changedTouches[0]),Yn(t,n)},qn=0,On=0,jn=0,Xn=0,zn=0,$n=0,Vn="object"==typeof performance&&performance.now?performance:Date,In="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Zn(){return zn||(In(Bn),zn=Vn.now()+$n)}function Bn(){zn=0}function Wn(){this._call=this._time=this._next=null}function Qn(t,n,e){var r=new Wn;return r.restart(t,n,e),r}function Jn(){zn=(Xn=Vn.now())+$n,qn=On=0;try{!function(){Zn(),++qn;for(var t,n=Dn;n;)(t=zn-n._time)>=0&&n._call.call(null,t),n=n._next;--qn}()}finally{qn=0,function(){var t,n,e=Dn,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Dn=n);En=t,Kn(r)}(),zn=0}}function Gn(){var t=Vn.now(),n=t-Xn;n>1e3&&($n-=n,Xn=t)}function Kn(t){qn||(On&&(On=clearTimeout(On)),t-zn>24?(t<1/0&&(On=setTimeout(Jn,t-Vn.now()-$n)),jn&&(jn=clearInterval(jn))):(jn||(Xn=Vn.now(),jn=setInterval(Gn,1e3)),qn=1,In(Jn)))}Wn.prototype=Qn.prototype={constructor:Wn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Zn():+e)+(null==n?0:+n),this._next||En===this||(En?En._next=this:Dn=this,En=this),this._call=t,this._time=e,Kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kn())}};var te=function(t,n,e){var r=new Wn;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},ne=U("start","end","cancel","interrupt"),ee=[],re=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(s){var l,c,f,h;if(1!==e.state)return a();for(l in i)if((h=i[l]).name===e.name){if(3===h.state)return te(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(te((function(){3===e.state&&(e.state=4,e.timer.restart(u,e.delay,e.time),u(s))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(f=e.tween.length),l=0,c=-1;l<f;++l)(h=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=h);r.length=c+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Qn((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:ne,tween:ee,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function ie(t,n){var e=ue(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function oe(t,n){var e=ue(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ue(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var ae,se,le,ce,fe=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},he=180/Math.PI,pe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ge=function(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*he,skewX:Math.atan(s)*he,scaleX:u,scaleY:a}};function de(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],s=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:kn(t,i)},{i:s-2,x:kn(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,s),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:kn(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:kn(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,s),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:kn(t,e)},{i:a-2,x:kn(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,s),o=u=null,function(t){for(var n,e=-1,r=s.length;++e<r;)a[(n=s[e]).i]=n.x(t);return a.join("")}}}var ve=de((function(t){return"none"===t?pe:(ae||(ae=document.createElement("DIV"),se=document.documentElement,le=document.defaultView),ae.style.transform=t,t=le.getComputedStyle(se.appendChild(ae),null).getPropertyValue("transform"),se.removeChild(ae),t=t.slice(7,-1).split(","),ge(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),ye=de((function(t){return null==t?pe:(ce||(ce=document.createElementNS("http://www.w3.org/2000/svg","g")),ce.setAttribute("transform",t),(t=ce.transform.baseVal.consolidate())?(t=t.matrix,ge(t.a,t.b,t.c,t.d,t.e,t.f)):pe)}),", ",")",")");function me(t,n){var e,r;return function(){var i=oe(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function _e(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=oe(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function we(t,n,e){var r=t._id;return t.each((function(){var t=oe(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return ue(t,r).value[n]}}var xe=function(t,n){var e;return("number"==typeof n?kn:n instanceof rn?Mn:(e=rn(n))?(n=e,Mn):Pn)(t,n)};function Me(t){return function(){this.removeAttribute(t)}}function be(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ce(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Ne(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function Ae(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function Te(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function ke(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ue(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Le(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Ue(t,i)),e}return i._value=n,i}function Se(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&ke(t,i)),e}return i._value=n,i}function De(t,n){return function(){ie(this,t).delay=+n.apply(this,arguments)}}function Ee(t,n){return n=+n,function(){ie(this,t).delay=n}}function Pe(t,n){return function(){oe(this,t).duration=+n.apply(this,arguments)}}function Re(t,n){return n=+n,function(){oe(this,t).duration=n}}function Fe(t,n){if("function"!=typeof n)throw new Error;return function(){oe(this,t).ease=n}}function Ye(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ie:oe;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var He=qt.prototype.constructor;function qe(t){return function(){this.style.removeProperty(t)}}function Oe(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function je(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&Oe(t,o,e)),r}return o._value=n,o}function Xe(t){return function(n){this.textContent=t.call(this,n)}}function ze(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Xe(r)),n}return r._value=t,r}var $e=0;function Ve(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ie(){return++$e}var Ze=qt.prototype;Ve.prototype=function(t){return qt().transition(t)}.prototype={constructor:Ve,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=S(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,l=r[u],c=l.length,f=o[u]=new Array(c),h=0;h<c;++h)(a=l[h])&&(s=t.call(a,a.__data__,h,l))&&("__data__"in a&&(s.__data__=a.__data__),f[h]=s,re(f[h],n,e,h,f,ue(a,e)));return new Ve(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,l=r[a],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),g=ue(s,e),d=0,v=p.length;d<v;++d)(h=p[d])&&re(h,n,e,d,p,g);o.push(p),u.push(s)}return new Ve(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=P(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new Ve(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],f=l.length,h=u[a]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;a<r;++a)u[a]=n[a];return new Ve(u,this._parents,this._name,this._id)},selection:function(){return new He(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Ie(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var c=ue(u,n);re(u,t,e,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ve(r,this._parents,t,e)},call:Ze.call,nodes:Ze.nodes,node:Ze.node,size:Ze.size,empty:Ze.empty,each:Ze.each,on:function(t,n){var e=this._id;return arguments.length<2?ue(this.node(),e).on.on(t):this.each(Ye(e,t,n))},attr:function(t,n){var e=X(t),r="transform"===e?ye:xe;return this.attrTween(t,"function"==typeof n?(e.local?Te:Ae)(e,r,we(this,"attr."+t,n)):null==n?(e.local?be:Me)(e):(e.local?Ne:Ce)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=X(t);return this.tween(e,(r.local?Le:Se)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?ve:xe;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=K(this,t),u=(this.style.removeProperty(t),K(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,qe(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=K(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=K(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,we(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=oe(this,t),l=s.on,c=null==s.value[u]?o||(o=qe(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(a,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=K(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,je(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(we(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,ze(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ue(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?me:_e)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?De:Ee)(n,t)):ue(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Pe:Re)(n,t)):ue(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(Fe(n,t)):ue(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=oe(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n}))}))}};var Be={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function We(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Be.time=Zn(),Be;return e}qt.prototype.interrupt=function(t){return this.each((function(){fe(this,t)}))},qt.prototype.transition=function(t){var n,e;t instanceof Ve?(n=t._id,t=t._name):(n=Ie(),(e=Be).time=Zn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)(u=a[l])&&re(u,t,n,l,a,e||We(u,n));return new Ve(r,this._parents,t,n)};function Qe(t){return[+t[0],+t[1]]}function Je(t){return[Qe(t[0]),Qe(t[1])]}["w","e"].map(Ge),["n","s"].map(Ge),["n","w","e","s","nw","ne","sw","se"].map(Ge);function Ge(t){return{type:t}}Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice;var Ke=Math.PI,tr=2*Ke,nr=tr-1e-6;function er(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function rr(){return new er}er.prototype=rr.prototype={constructor:er,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,s=r-n,l=o-t,c=u-n,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>1e-6)if(Math.abs(c*a-s*l)>1e-6&&i){var h=e-o,p=r-u,g=a*a+s*s,d=h*h+p*p,v=Math.sqrt(g),y=Math.sqrt(f),m=i*Math.tan((Ke-Math.acos((g+f-d)/(2*v*y)))/2),_=m/y,w=m/v;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*l)+","+(n+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*p)+","+(this._x1=t+w*a)+","+(this._y1=n+w*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),s=t+u,l=n+a,c=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+l:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+s+","+l),e&&(f<0&&(f=f%tr+tr),f>nr?this._+="A"+e+","+e+",0,1,"+c+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+c+","+(this._x1=s)+","+(this._y1=l):f>1e-6&&(this._+="A"+e+","+e+",0,"+ +(f>=Ke)+","+c+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};function ir(){}function or(t,n){var e=new ir;if(t instanceof ir)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}ir.prototype=or.prototype={constructor:ir,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var ur=or;function ar(){}var sr=ur.prototype;function lr(t,n){var e=new ar;if(t instanceof ar)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}ar.prototype=lr.prototype={constructor:ar,has:sr.has,add:function(t){return this["$"+(t+="")]=t,this},remove:sr.remove,clear:sr.clear,values:sr.keys,size:sr.size,empty:sr.empty,each:sr.each};Array.prototype.slice;function cr(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,s,l,c,f,h,p=t._root,g={data:r},d=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!p)return t._root=g,t;for(;p.length;)if((l=n>=(o=(d+y)/2))?d=o:y=o,(c=e>=(u=(v+m)/2))?v=u:m=u,i=p,!(p=p[f=c<<1|l]))return i[f]=g,t;if(a=+t._x.call(null,p.data),s=+t._y.call(null,p.data),n===a&&e===s)return g.next=p,i?i[f]=g:t._root=g,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=n>=(o=(d+y)/2))?d=o:y=o,(c=e>=(u=(v+m)/2))?v=u:m=u}while((f=c<<1|l)==(h=(s>=u)<<1|a>=o));return i[h]=p,i[f]=g,t}var fr=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function hr(t){return t[0]}function pr(t){return t[1]}function gr(t,n,e){var r=new dr(null==n?hr:n,null==e?pr:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function dr(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function vr(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var yr=gr.prototype=dr.prototype;yr.copy=function(){var t,n,e=new dr(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=vr(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=vr(n));return e},yr.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return cr(this.cover(n,e),n,e,t)},yr.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),s=1/0,l=1/0,c=-1/0,f=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<s&&(s=r),r>c&&(c=r),i<l&&(l=i),i>f&&(f=i));if(s>c||l>f)return this;for(this.cover(s,l).cover(c,f),e=0;e<o;++e)cr(this,u[e],a[e],t[e]);return this},yr.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var u,a,s=i-e,l=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,(u=new Array(4))[a]=l,l=u,s*=2,a){case 0:i=e+s,o=r+s;break;case 1:e=i-s,o=r+s;break;case 2:i=e+s,r=o-s;break;case 3:e=i-s,r=o-s}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},yr.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},yr.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},yr.find=function(t,n,e){var r,i,o,u,a,s,l,c=this._x0,f=this._y0,h=this._x1,p=this._y1,g=[],d=this._root;for(d&&g.push(new fr(d,c,f,h,p)),null==e?e=1/0:(c=t-e,f=n-e,h=t+e,p=n+e,e*=e);s=g.pop();)if(!(!(d=s.node)||(i=s.x0)>h||(o=s.y0)>p||(u=s.x1)<c||(a=s.y1)<f))if(d.length){var v=(i+u)/2,y=(o+a)/2;g.push(new fr(d[3],v,y,u,a),new fr(d[2],i,y,v,a),new fr(d[1],v,o,u,y),new fr(d[0],i,o,v,y)),(l=(n>=y)<<1|t>=v)&&(s=g[g.length-1],g[g.length-1]=g[g.length-1-l],g[g.length-1-l]=s)}else{var m=t-+this._x.call(null,d.data),_=n-+this._y.call(null,d.data),w=m*m+_*_;if(w<e){var x=Math.sqrt(e=w);c=t-x,f=n-x,h=t+x,p=n+x,r=d.data}}return r},yr.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,s,l,c,f,h,p=this._root,g=this._x0,d=this._y0,v=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((l=o>=(a=(g+v)/2))?g=a:v=a,(c=u>=(s=(d+y)/2))?d=s:y=s,n=p,!(p=p[f=c<<1|l]))return this;if(!p.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[h]=p:this._root=p),this):(this._root=i,this)},yr.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},yr.root=function(){return this._root},yr.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},yr.visit=function(t){var n,e,r,i,o,u,a=[],s=this._root;for(s&&a.push(new fr(s,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&s.length){var l=(r+o)/2,c=(i+u)/2;(e=s[3])&&a.push(new fr(e,l,c,o,u)),(e=s[2])&&a.push(new fr(e,r,c,l,u)),(e=s[1])&&a.push(new fr(e,l,i,o,c)),(e=s[0])&&a.push(new fr(e,r,i,l,c))}return this},yr.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new fr(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,s=n.x1,l=n.y1,c=(u+s)/2,f=(a+l)/2;(o=i[0])&&e.push(new fr(o,u,a,c,f)),(o=i[1])&&e.push(new fr(o,c,a,s,f)),(o=i[2])&&e.push(new fr(o,u,f,c,l)),(o=i[3])&&e.push(new fr(o,c,f,s,l))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},yr.x=function(t){return arguments.length?(this._x=t,this):this._x},yr.y=function(t){return arguments.length?(this._y=t,this):this._y};Math.PI,Math.sqrt(5);var mr=function(){return Math.random()},_r=(function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(mr),function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(mr)),wr=(function t(n){function e(){var t=_r.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(mr),function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(mr));(function t(n){function e(t){var e=wr.source(n)(t);return function(){return e()/t}}return e.source=t,e})(mr),function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(mr);function xr(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Mr=Array.prototype,br=Mr.map,Cr=Mr.slice;var Nr=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},Ar=function(t){return+t},Tr=[0,1];function kr(t){return t}function Ur(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Lr(t){var n,e=t[0],r=t[t.length-1];return e>r&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function Sr(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i<r?(r=Ur(i,r),o=e(u,o)):(r=Ur(r,i),o=e(o,u)),function(t){return o(r(t))}}function Dr(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),u=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<r;)i[u]=Ur(t[u],t[u+1]),o[u]=e(n[u],n[u+1]);return function(n){var e=a(t,n,1,r)-1;return o[e](i[e](n))}}function Er(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Pr(){var t,n,e,r,i,o,u=Tr,a=Tr,s=Rn,l=kr;function c(){return r=Math.min(u.length,a.length)>2?Dr:Sr,i=o=null,f}function f(n){return isNaN(n=+n)?e:(i||(i=r(u.map(t),a,s)))(t(l(n)))}return f.invert=function(e){return l(n((o||(o=r(a,u.map(t),kn)))(e)))},f.domain=function(t){return arguments.length?(u=br.call(t,Ar),l===kr||(l=Lr(u)),c()):u.slice()},f.range=function(t){return arguments.length?(a=Cr.call(t),c()):a.slice()},f.rangeRound=function(t){return a=Cr.call(t),s=Nr,c()},f.clamp=function(t){return arguments.length?(l=t?Lr(u):kr,f):l!==kr},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,c()}}function Rr(t,n){return Pr()(t,n)}var Fr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yr(t){if(!(n=Fr.exec(t)))throw new Error("invalid format: "+t);var n;return new Hr({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Hr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Yr.prototype=Hr.prototype,Hr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qr,Or,jr,Xr,zr=function(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)]},$r=function(t){return(t=zr(Math.abs(t)))?t[1]:NaN},Vr=function(t,n){var e=zr(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")},Ir={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Vr(100*t,n)},r:Vr,s:function(t,n){var e=zr(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(qr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+zr(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Zr=function(t){return t},Br=Array.prototype.map,Wr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Or=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Zr:(n=Br.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],u=0,a=n[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),o.push(t.substring(i-=a,i+a)),!((s+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Zr:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Br.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Yr(t)).fill,e=t.align,f=t.sign,h=t.symbol,p=t.zero,g=t.width,d=t.comma,v=t.precision,y=t.trim,m=t.type;"n"===m?(d=!0,m="g"):Ir[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===n&&"="===e)&&(p=!0,n="0",e="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?s:"",x=Ir[m],M=/[defgprs%]/.test(m);function b(t){var i,o,s,h=_,b=w;if("c"===m)b=x(t)+b,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),v),y&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),C&&0==+t&&"+"!==f&&(C=!1),h=(C?"("===f?f:l:"-"===f||"("===f?"":f)+h,b=("s"===m?Wr[8+qr/3]:"")+b+(C&&"("===f?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){b=(46===s?u+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}d&&!p&&(t=r(t,1/0));var N=h.length+t.length+b.length,A=N<g?new Array(g-N+1).join(n):"";switch(d&&p&&(t=r(A+t,A.length?g-b.length:1/0),A=""),e){case"<":t=h+t+b+A;break;case"=":t=h+A+t+b;break;case"^":t=A.slice(0,N=A.length>>1)+h+t+b+A.slice(N);break;default:t=A+h+t+b}return a(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),b.toString=function(){return t+""},b}return{format:f,formatPrefix:function(t,n){var e=f(((t=Yr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor($r(n)/3))),i=Math.pow(10,-r),o=Wr[8+r/3];return function(t){return e(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),jr=Or.format,Xr=Or.formatPrefix;var Qr=function(t,n,e,r){var i,o=g(t,n,e);switch((r=Yr(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($r(n)/3)))-$r(Math.abs(t)))}(o,u))||(r.precision=i),Xr(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,$r(n)-$r(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-$r(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return jr(r)};function Jr(t){var n=t.domain;return t.ticks=function(t){var e=n();return h(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Qr(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],s=i[u];return s<a&&(r=a,a=s,s=r,r=o,o=u,u=r),(r=p(a,s,e))>0?r=p(a=Math.floor(a/r)*r,s=Math.ceil(s/r)*r,e):r<0&&(r=p(a=Math.ceil(a*r)/r,s=Math.floor(s*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(s/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(s*r)/r,n(i)),t},t}function Gr(){var t=Rr(kr,kr);return t.copy=function(){return Er(t,Gr())},xr.apply(t,arguments),Jr(t)}var Kr=new Date,ti=new Date;function ni(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},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),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return ni((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return Kr.setTime(+n),ti.setTime(+r),t(Kr),t(ti),Math.floor(e(Kr,ti))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var ei=ni((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()}));ei.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ni((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)})):null};var ri=ei,ii=(ei.range,ni((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()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));ii.range;function oi(t){return ni((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var ui=oi(0),ai=oi(1),si=oi(2),li=oi(3),ci=oi(4),fi=oi(5),hi=oi(6),pi=(ui.range,ai.range,si.range,li.range,ci.range,fi.range,hi.range,ni((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),gi=pi,di=(pi.range,ni((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()}))),vi=(di.range,ni((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getMinutes()}))),yi=(vi.range,ni((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()}))),mi=(yi.range,ni((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t})));mi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ni((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):mi:null};mi.range;function _i(t){return ni((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/6048e5}))}var wi=_i(0),xi=_i(1),Mi=_i(2),bi=_i(3),Ci=_i(4),Ni=_i(5),Ai=_i(6),Ti=(wi.range,xi.range,Mi.range,bi.range,Ci.range,Ni.range,Ai.range,ni((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1}))),ki=Ti,Ui=(Ti.range,ni((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()})));Ui.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ni((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)})):null};var Li=Ui;Ui.range;function Si(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);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Di(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));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ei(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Pi,Ri={"-":"",_:" ",0:"0"},Fi=/^\s*\d+/,Yi=/^%/,Hi=/[\\^$*+?|[\]().{}]/g;function qi(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function Oi(t){return t.replace(Hi,"\\$&")}function ji(t){return new RegExp("^(?:"+t.map(Oi).join("|")+")","i")}function Xi(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function zi(t,n,e){var r=Fi.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function $i(t,n,e){var r=Fi.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Vi(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Ii(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Zi(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Bi(t,n,e){var r=Fi.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Wi(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Qi(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 Ji(t,n,e){var r=Fi.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Gi(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Ki(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function to(t,n,e){var r=Fi.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function no(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function eo(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function ro(t,n,e){var r=Fi.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function io(t,n,e){var r=Fi.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function oo(t,n,e){var r=Fi.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function uo(t,n,e){var r=Yi.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ao(t,n,e){var r=Fi.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function so(t,n,e){var r=Fi.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function lo(t,n){return qi(t.getDate(),n,2)}function co(t,n){return qi(t.getHours(),n,2)}function fo(t,n){return qi(t.getHours()%12||12,n,2)}function ho(t,n){return qi(1+gi.count(ri(t),t),n,3)}function po(t,n){return qi(t.getMilliseconds(),n,3)}function go(t,n){return po(t,n)+"000"}function vo(t,n){return qi(t.getMonth()+1,n,2)}function yo(t,n){return qi(t.getMinutes(),n,2)}function mo(t,n){return qi(t.getSeconds(),n,2)}function _o(t){var n=t.getDay();return 0===n?7:n}function wo(t,n){return qi(ui.count(ri(t)-1,t),n,2)}function xo(t,n){var e=t.getDay();return t=e>=4||0===e?ci(t):ci.ceil(t),qi(ci.count(ri(t),t)+(4===ri(t).getDay()),n,2)}function Mo(t){return t.getDay()}function bo(t,n){return qi(ai.count(ri(t)-1,t),n,2)}function Co(t,n){return qi(t.getFullYear()%100,n,2)}function No(t,n){return qi(t.getFullYear()%1e4,n,4)}function Ao(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+qi(n/60|0,"0",2)+qi(n%60,"0",2)}function To(t,n){return qi(t.getUTCDate(),n,2)}function ko(t,n){return qi(t.getUTCHours(),n,2)}function Uo(t,n){return qi(t.getUTCHours()%12||12,n,2)}function Lo(t,n){return qi(1+ki.count(Li(t),t),n,3)}function So(t,n){return qi(t.getUTCMilliseconds(),n,3)}function Do(t,n){return So(t,n)+"000"}function Eo(t,n){return qi(t.getUTCMonth()+1,n,2)}function Po(t,n){return qi(t.getUTCMinutes(),n,2)}function Ro(t,n){return qi(t.getUTCSeconds(),n,2)}function Fo(t){var n=t.getUTCDay();return 0===n?7:n}function Yo(t,n){return qi(wi.count(Li(t)-1,t),n,2)}function Ho(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Ci(t):Ci.ceil(t),qi(Ci.count(Li(t),t)+(4===Li(t).getUTCDay()),n,2)}function qo(t){return t.getUTCDay()}function Oo(t,n){return qi(xi.count(Li(t)-1,t),n,2)}function jo(t,n){return qi(t.getUTCFullYear()%100,n,2)}function Xo(t,n){return qi(t.getUTCFullYear()%1e4,n,4)}function zo(){return"+0000"}function $o(){return"%"}function Vo(t){return+t}function Io(t){return Math.floor(+t/1e3)}!function(t){Pi=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,l=ji(i),c=Xi(i),f=ji(o),h=Xi(o),p=ji(u),g=Xi(u),d=ji(a),v=Xi(a),y=ji(s),m=Xi(s),_={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:lo,e:lo,f:go,H:co,I:fo,j:ho,L:po,m:vo,M:yo,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Vo,s:Io,S:mo,u:_o,U:wo,V:xo,w:Mo,W:bo,x:null,X:null,y:Co,Y:No,Z:Ao,"%":$o},w={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:To,e:To,f:Do,H:ko,I:Uo,j:Lo,L:So,m:Eo,M:Po,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Vo,s:Io,S:Ro,u:Fo,U:Yo,V:Ho,w:qo,W:Oo,x:null,X:null,y:jo,Y:Xo,Z:zo,"%":$o},x={a:function(t,n,e){var r=p.exec(n.slice(e));return r?(t.w=g[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return C(t,n,e,r)},d:Ki,e:Ki,f:oo,H:no,I:no,j:to,L:io,m:Gi,M:eo,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=c[r[0].toLowerCase()],e+r[0].length):-1},q:Ji,Q:ao,s:so,S:ro,u:$i,U:Vi,V:Ii,w:zi,W:Zi,x:function(t,n,r){return C(t,e,n,r)},X:function(t,n,e){return C(t,r,n,e)},y:Wi,Y:Bi,Z:Qi,"%":uo};function M(t,n){return function(e){var r,i,o,u=[],a=-1,s=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++a<l;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(i=Ri[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function b(t,n){return function(e){var r,i,o=Ei(1900,void 0,1);if(C(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Di(Ei(o.y,0,1))).getUTCDay(),r=i>4||0===i?xi.ceil(r):xi(r),r=ki.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Si(Ei(o.y,0,1))).getDay(),r=i>4||0===i?ai.ceil(r):ai(r),r=gi.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Di(Ei(o.y,0,1)).getUTCDay():Si(Ei(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Di(o)):Si(o)}}function C(t,n,e,r){for(var i,o,u=0,a=n.length,s=e.length;u<a;){if(r>=s)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in Ri?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=M(e,_),_.X=M(r,_),_.c=M(n,_),w.x=M(e,w),w.X=M(r,w),w.c=M(n,w),{format:function(t){var n=M(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=b(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",w);return n.toString=function(){return t},n},utcParse:function(t){var n=b(t+="",!0);return n.toString=function(){return t},n}}}(t),Pi.format,Pi.parse,Pi.utcFormat,Pi.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Zo=ni((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()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Bo=(Zo.range,ni((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getUTCHours()}))),Wo=(Bo.range,ni((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getUTCMinutes()})));Wo.range;function Qo(){this._=null}function Jo(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Go(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Ko(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function tu(t){for(;t.L;)t=t.L;return t}Qo.prototype={constructor:Qo,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=tu(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Go(this,e),e=(t=e).U),e.C=!1,r.C=!0,Ko(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Ko(this,e),e=(t=e).U),e.C=!1,r.C=!0,Go(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?tu(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,Go(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Ko(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Go(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Ko(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Go(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Ko(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var nu=Qo;function eu(t,n,e,r){var i=[null,null],o=Au.push(i)-1;return i.left=t,i.right=n,e&&iu(i,t,n,e),r&&iu(i,n,t,r),Cu[t.index].halfedges.push(o),Cu[n.index].halfedges.push(o),i}function ru(t,n,e){var r=[n,e];return r.left=t,r}function iu(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function ou(t,n,e,r,i){var o,u=t[0],a=t[1],s=u[0],l=u[1],c=0,f=1,h=a[0]-s,p=a[1]-l;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>c&&(c=o)}if(o=r-s,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<f&&(f=o)}if(o=e-l,p||!(o>0)){if(o/=p,p<0){if(o<c)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>c&&(c=o)}if(o=i-l,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o<c)return;o<f&&(f=o)}return!(c>0||f<1)||(c>0&&(t[0]=[s+c*h,l+c*p]),f<1&&(t[1]=[s+f*h,l+f*p]),!0)}}}}}function uu(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,s=t[0],l=t.left,c=t.right,f=l[0],h=l[1],p=c[0],g=c[1],d=(f+p)/2,v=(h+g)/2;if(g===h){if(d<n||d>=r)return;if(f>p){if(s){if(s[1]>=i)return}else s=[d,e];o=[d,i]}else{if(s){if(s[1]<e)return}else s=[d,i];o=[d,e]}}else if(a=v-(u=(f-p)/(g-h))*d,u<-1||u>1)if(f>p){if(s){if(s[1]>=i)return}else s=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(s){if(s[1]<e)return}else s=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<g){if(s){if(s[0]>=r)return}else s=[n,u*n+a];o=[r,u*r+a]}else{if(s){if(s[0]<n)return}else s=[r,u*r+a];o=[n,u*n+a]}return t[0]=s,t[1]=o,!0}function au(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function su(t,n){return n[+(n.left!==t.site)]}function lu(t,n){return n[+(n.left===t.site)]}var cu,fu=[];function hu(){Jo(this),this.x=this.y=this.arc=this.site=this.cy=null}function pu(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i[0],a=i[1],s=r[0]-u,l=r[1]-a,c=o[0]-u,f=o[1]-a,h=2*(s*f-l*c);if(!(h>=-ku)){var p=s*s+l*l,g=c*c+f*f,d=(f*p-l*g)/h,v=(s*g-c*p)/h,y=fu.pop()||new hu;y.arc=t,y.site=i,y.x=d+u,y.y=(y.cy=v+a)+Math.sqrt(d*d+v*v),t.circle=y;for(var m=null,_=Nu._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Nu.insert(m,y),m||(cu=y)}}}}function gu(t){var n=t.circle;n&&(n.P||(cu=n.N),Nu.remove(n),fu.push(n),Jo(n),t.circle=null)}var du=[];function vu(){Jo(this),this.edge=this.site=this.circle=null}function yu(t){var n=du.pop()||new vu;return n.site=t,n}function mu(t){gu(t),bu.remove(t),du.push(t),Jo(t)}function _u(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];mu(t);for(var s=o;s.circle&&Math.abs(e-s.circle.x)<Tu&&Math.abs(r-s.circle.cy)<Tu;)o=s.P,a.unshift(s),mu(s),s=o;a.unshift(s),gu(s);for(var l=u;l.circle&&Math.abs(e-l.circle.x)<Tu&&Math.abs(r-l.circle.cy)<Tu;)u=l.N,a.push(l),mu(l),l=u;a.push(l),gu(l);var c,f=a.length;for(c=1;c<f;++c)l=a[c],s=a[c-1],iu(l.edge,s.site,l.site,i);s=a[0],(l=a[f-1]).edge=eu(s.site,l.site,null,i),pu(s),pu(l)}function wu(t){for(var n,e,r,i,o=t[0],u=t[1],a=bu._;a;)if((r=xu(a,u)-o)>Tu)a=a.L;else{if(!((i=o-Mu(a,u))>Tu)){r>-Tu?(n=a.P,e=a):i>-Tu?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){Cu[t.index]={site:t,halfedges:[]}}(t);var s=yu(t);if(bu.insert(n,s),n||e){if(n===e)return gu(n),e=yu(n.site),bu.insert(s,e),s.edge=e.edge=eu(n.site,s.site),pu(n),void pu(e);if(e){gu(n),gu(e);var l=n.site,c=l[0],f=l[1],h=t[0]-c,p=t[1]-f,g=e.site,d=g[0]-c,v=g[1]-f,y=2*(h*v-p*d),m=h*h+p*p,_=d*d+v*v,w=[(v*m-p*_)/y+c,(h*_-d*m)/y+f];iu(e.edge,l,g,w),s.edge=eu(l,t,null,w),e.edge=eu(t,g,null,w),pu(n),pu(e)}else s.edge=eu(n.site,s.site)}}function xu(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;var a=(e=u.site)[0],s=e[1],l=s-n;if(!l)return a;var c=a-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-s+l/2+i-o/2)))/f+r:(r+a)/2}function Mu(t,n){var e=t.N;if(e)return xu(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var bu,Cu,Nu,Au,Tu=1e-6,ku=1e-12;function Uu(t,n){return n[1]-t[1]||n[0]-t[0]}function Lu(t,n){var e,r,i,o=t.sort(Uu).pop();for(Au=[],Cu=new Array(t.length),bu=new nu,Nu=new nu;;)if(i=cu,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(wu(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;_u(i.arc)}if(function(){for(var t,n,e,r,i=0,o=Cu.length;i<o;++i)if((t=Cu[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;e<r;++e)u[e]=e,a[e]=au(t,Au[n[e]]);for(u.sort((function(t,n){return a[n]-a[t]})),e=0;e<r;++e)a[e]=n[u[e]];for(e=0;e<r;++e)n[e]=a[e]}}(),n){var u=+n[0][0],a=+n[0][1],s=+n[1][0],l=+n[1][1];!function(t,n,e,r){for(var i,o=Au.length;o--;)uu(i=Au[o],t,n,e,r)&&ou(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>Tu||Math.abs(i[0][1]-i[1][1])>Tu)||delete Au[o]}(u,a,s,l),function(t,n,e,r){var i,o,u,a,s,l,c,f,h,p,g,d,v=Cu.length,y=!0;for(i=0;i<v;++i)if(o=Cu[i]){for(u=o.site,a=(s=o.halfedges).length;a--;)Au[s[a]]||s.splice(a,1);for(a=0,l=s.length;a<l;)g=(p=lu(o,Au[s[a]]))[0],d=p[1],f=(c=su(o,Au[s[++a%l]]))[0],h=c[1],(Math.abs(g-f)>Tu||Math.abs(d-h)>Tu)&&(s.splice(a,0,Au.push(ru(u,p,Math.abs(g-t)<Tu&&r-d>Tu?[t,Math.abs(f-t)<Tu?h:r]:Math.abs(d-r)<Tu&&e-g>Tu?[Math.abs(h-r)<Tu?f:e,r]:Math.abs(g-e)<Tu&&d-n>Tu?[e,Math.abs(f-e)<Tu?h:n]:Math.abs(d-n)<Tu&&g-t>Tu?[Math.abs(h-n)<Tu?f:t,n]:null))-1),++l);l&&(y=!1)}if(y){var m,_,w,x=1/0;for(i=0,y=null;i<v;++i)(o=Cu[i])&&(w=(m=(u=o.site)[0]-t)*m+(_=u[1]-n)*_)<x&&(x=w,y=o);if(y){var M=[t,n],b=[t,r],C=[e,r],N=[e,n];y.halfedges.push(Au.push(ru(u=y.site,M,b))-1,Au.push(ru(u,b,C))-1,Au.push(ru(u,C,N))-1,Au.push(ru(u,N,M))-1)}}for(i=0;i<v;++i)(o=Cu[i])&&(o.halfedges.length||delete Cu[i])}(u,a,s,l)}this.edges=Au,this.cells=Cu,bu=Nu=Au=Cu=null}Lu.prototype={constructor:Lu,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return su(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a,s,l,c=e.site,f=-1,h=n[i[o-1]],p=h.left===c?h.right:h.left;++f<o;)u=p,p=(h=n[i[f]]).left===c?h.right:h.left,u&&p&&r<u.index&&r<p.index&&(s=u,l=p,((a=c)[0]-l[0])*(s[1]-a[1])-(a[0]-s[0])*(l[1]-a[1])<0)&&t.push([c.data,u.data,p.data])})),t},links:function(){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){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var s=t-i.site[0],l=n-i.site[1],c=s*s+l*l;do{i=o.cells[r=u],u=null,i.halfedges.forEach((function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var s=t-a[0],l=n-a[1],f=s*s+l*l;f<c&&(c=f,u=a.index)}}))}while(null!==u);return o._found=r,null==e||c<=e*e?i.site:null}};Math.SQRT2;function Su(t,n,e){this.k=t,this.x=n,this.y=e}Su.prototype={constructor:Su,scale:function(t){return 1===t?this:new Su(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Su(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Su(1,0,0);Su.prototype;const Du=(t,n,e,r)=>{let i=e.map(e=>({distance:Math.sqrt(Math.pow(e.x-t,2)+Math.pow(e.y-n,2)),x0:e.x,y0:e.y,x1:t,y1:n,label:e.label,top:!1}));i=i.sort((t,n)=>t.distance>n.distance?1:-1);const o={};for(let t=0;t<10;t++)o[""+(t+1)]=0;for(let t=0;t<r;t++)o[i[t].label]++,i[t].top=!0;let u,a=0;for(const t in o)o[t]>a&&(a=o[t],u=t);return{distances:i,winnerLabel:u}};((t,n,e)=>{const r=30,i=30,o=30,u=30,a=500-u-i,s=500-r-o,l=document.querySelector("#main");l.style.height="500px",l.style.width="500px";const c=[-2,2],f=[-2,2],h=Gr().domain([c[0],c[1]]).range([0,a]),p=(Gr().domain([0,a]).range([c[0],c[1]]),Gr().domain([f[0],f[1]]).range([s,0])),g=(Gr().range([f[0],f[1]]).domain([s,0]),{1:"#a5a5ff",2:"red",3:"orange"});if(e){const e=document.createElement("canvas");l.appendChild(e),e.width=a,e.height=s,e.style.position="absolute",e.style.left=u+"px",e.style.top=i+"px";const r=e.getContext("2d");e.style.opacity=.5;const o=.04;for(let e=c[0];e<c[1];e+=o)for(let i=f[0];i<f[1];i+=o){const u=Du(e,i,t,n),l=a*(e-c[0])/(c[1]-c[0]),h=s*(f[1]-i)/(f[1]-f[0]),p=a*o/(c[1]-c[0]);r.fillStyle=g[u.winnerLabel],r.fillRect(l,h,p+1,p+1)}}let d=[],v=document.querySelector("#svg");v.style.width=a+u+i,v.style.height=s+r+o,l.appendChild(v),v.style.position="absolute",v.style.left=0,v.style.top=0;const y=Ot(v).append("g").attr("transform","translate("+u+","+r+")");function m(n,e,r={}){const i=y.selectAll("circle.data").data(t),o=i.enter().append("circle").attr("class","data");i.merge(o).attr("cx",t=>h(t.x)).attr("cy",t=>p(t.y)).attr("r",5).style("fill",t=>g[t.label]);const u=null!=r.winnerLabel?[{winnerLabel:r.winnerLabel}]:[],a=y.selectAll("circle.mouse").data(u),s=a.enter().append("circle").attr("class","mouse");if(a.merge(s).attr("cx",t=>h(n)).attr("cy",t=>p(e)).attr("r",5).style("fill",t=>g[r.winnerLabel]),null!=r.distances){const t=y.selectAll("circle.winners").data(r.distances.filter(t=>t.top)),n=t.enter().append("circle").attr("class","winners");t.merge(n).attr("cx",(t,n)=>h(.1*n-2)+5).attr("cy",(t,n)=>-13).attr("r",5).style("fill",t=>g[t.label])}const l=y.selectAll("line.distances").data(d),c=l.enter().append("line").attr("class","distances");l.merge(c).attr("x1",t=>h(t.x0)).attr("y1",t=>p(t.y0)).attr("x2",t=>h(t.x1)).attr("y2",t=>p(t.y1)).attr("opacity",t=>t.top?1:0).attr("stroke",t=>t.top?g[t.label]:"#dedede").attr("stroke-width",t=>t.top?3:1)}Ot(l).on("mousemove",(function(){const e=Hn(this),r=(e[0]-20-a/2)/a*4,i=(e[1]-20-s/2)/s*-4;let o=Du(r,i,t,n);d=o.distances,m(r,i,o)})),m();var _,w=M(3,_).scale(h),x=function(t){return M(4,t)}().scale(p);y.append("g").attr("class","axis").attr("transform","translate(0, "+s/2+")").call(w),y.append("g").attr("class","axis").attr("transform","translate("+a/2+", 0)").call(x)})([{x:1,y:1,label:1},{x:1.2,y:.9,label:1},{x:.7,y:1.5,label:1},{x:1.5,y:1.1,label:1},{x:1.6,y:1.1,label:1},{x:1.1,y:1.2,label:1},{x:-1.5,y:-1,label:2},{x:-1.5,y:-1.1,label:2},{x:-1.3,y:-1.2,label:2},{x:-.9,y:-1.2,label:2},{x:-.78,y:-.8,label:2},{x:-1.2,y:-.84,label:2},{x:-.3,y:.4,label:3},{x:-.5,y:1.1,label:3},{x:-.3,y:1.2,label:3},{x:-.9,y:1.2,label:3},{x:-.78,y:.8,label:3},{x:-.2,y:.84,label:3}],5,1)}});