cl-react-graph
Version:
1 lines • 256 kB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("cl-react-graph",["react","react-dom"],n):"object"==typeof exports?exports["cl-react-graph"]=n(require("react"),require("react-dom")):t["cl-react-graph"]=n(t.React,t.ReactDOM)}(window,(function(t,n){return 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}return 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=67)}([function(t,n,e){"use strict";var r=new Date,i=new Date;function o(t,n,e,a){function u(n){return t(n=new Date(+n)),n}return u.floor=u,u.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},u.round=function(t){var n=u(t),e=u.ceil(t);return t-n<e-t?n:e},u.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,r,i){var o,a=[];if(e=u.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return a;do{a.push(o=new Date(+e)),n(e,i),t(e)}while(o<e&&e<r);return a},u.filter=function(e){return o((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&&(u.count=function(n,o){return r.setTime(+n),i.setTime(+o),t(r),t(i),Math.floor(e(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(n){return a(n)%t==0}:function(n){return u.count(0,n)%t==0}):u:null}),u}var a=o((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):a:null};var u=a,s=(a.range,6e4),c=6048e5,l=o((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()})),f=l,h=(l.range,o((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+n*s)}),(function(t,n){return(n-t)/s}),(function(t){return t.getMinutes()}))),d=h,p=(h.range,o((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*s)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()}))),v=p,y=(p.range,o((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())*s)/864e5}),(function(t){return t.getDate()-1}))),g=y;y.range;function _(t){return o((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-(n.getTimezoneOffset()-t.getTimezoneOffset())*s)/c}))}var m=_(0),x=_(1),b=_(2),w=_(3),M=_(4),k=_(5),O=_(6),A=(m.range,x.range,b.range,w.range,M.range,k.range,O.range,o((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()}))),j=A,S=(A.range,o((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()})));S.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o((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 N=S,C=(S.range,o((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*s)}),(function(t,n){return(n-t)/s}),(function(t){return t.getUTCMinutes()}))),T=C,P=(C.range,o((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()}))),E=P,D=(P.range,o((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}))),L=D;D.range;function z(t){return o((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)/c}))}var F=z(0),R=z(1),U=z(2),B=z(3),W=z(4),I=z(5),H=z(6),q=(F.range,R.range,U.range,B.range,W.range,I.range,H.range,o((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()}))),V=q,Y=(q.range,o((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()})));Y.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o((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 G=Y;Y.range;e.d(n,"c",(function(){return u})),e.d(n,"n",(function(){return u})),e.d(n,"g",(function(){return f})),e.d(n,"r",(function(){return f})),e.d(n,"d",(function(){return d})),e.d(n,"b",(function(){return v})),e.d(n,"a",(function(){return g})),e.d(n,"j",(function(){return m})),e.d(n,"h",(function(){return m})),e.d(n,"e",(function(){return x})),e.d(n,"i",(function(){return M})),e.d(n,"f",(function(){return j})),e.d(n,"k",(function(){return N})),e.d(n,"o",(function(){return T})),e.d(n,"m",(function(){return E})),e.d(n,"l",(function(){return L})),e.d(n,"u",(function(){return F})),e.d(n,"s",(function(){return F})),e.d(n,"p",(function(){return R})),e.d(n,"t",(function(){return W})),e.d(n,"q",(function(){return V})),e.d(n,"v",(function(){return G}))},function(t,n,e){"use strict";e.r(n);var r="http://www.w3.org/1999/xhtml",i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),i.hasOwnProperty(n)?{space:i[n],local:t}:t};function a(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===r&&n.documentElement.namespaceURI===r?n.createElement(t):n.createElementNS(e,t)}}function u(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var s=function(t){var n=o(t);return(n.local?u:a)(n)};function c(){}var l=function(t){return null==t?c:function(){return this.querySelector(t)}};function f(){return[]}var h=function(t){return null==t?f:function(){return this.querySelectorAll(t)}},d=function(t){return function(){return this.matches(t)}},p=function(t){return new Array(t.length)};function v(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}v.prototype={constructor:v,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)}};var y="$";function g(t,n,e,r,i,o){for(var a,u=0,s=n.length,c=o.length;u<c;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new v(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function _(t,n,e,r,i,o,a){var u,s,c,l={},f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(d[u]=c=y+a.call(s,s.__data__,u,n),c in l?i[u]=s:l[c]=s);for(u=0;u<h;++u)(s=l[c=y+a.call(t,o[u],u,o)])?(r[u]=s,s.__data__=o[u],l[c]=null):e[u]=new v(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&l[d[u]]===s&&(i[u]=s)}function m(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function x(t){return function(){this.removeAttribute(t)}}function b(t){return function(){this.removeAttributeNS(t.space,t.local)}}function w(t,n){return function(){this.setAttribute(t,n)}}function M(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function k(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function O(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 A=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function j(t){return function(){this.style.removeProperty(t)}}function S(t,n,e){return function(){this.style.setProperty(t,n,e)}}function N(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function C(t,n){return t.style.getPropertyValue(n)||A(t).getComputedStyle(t,null).getPropertyValue(n)}function T(t){return function(){delete this[t]}}function P(t,n){return function(){this[t]=n}}function E(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function D(t){return t.trim().split(/^|\s+/)}function L(t){return t.classList||new z(t)}function z(t){this._node=t,this._names=D(t.getAttribute("class")||"")}function F(t,n){for(var e=L(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function R(t,n){for(var e=L(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function U(t){return function(){F(this,t)}}function B(t){return function(){R(this,t)}}function W(t,n){return function(){(n.apply(this,arguments)?F:R)(this,t)}}z.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 I(){this.textContent=""}function H(t){return function(){this.textContent=t}}function q(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function V(){this.innerHTML=""}function Y(t){return function(){this.innerHTML=t}}function G(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function $(){this.nextSibling&&this.parentNode.appendChild(this)}function X(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Z(){return null}function Q(){var t=this.parentNode;t&&t.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function K(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var tt={},nt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tt={mouseenter:"mouseover",mouseleave:"mouseout"}));function et(t,n,e){return t=rt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function rt(t,n,e){return function(r){var i=nt;nt=r;try{t.call(this,this.__data__,n,e)}finally{nt=i}}}function it(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 ot(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 at(t,n,e){var r=tt.hasOwnProperty(t.type)?et:rt;return function(i,o,a){var u,s=this.__on,c=r(n,o,a);if(s)for(var l=0,f=s.length;l<f;++l)if((u=s[l]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(u):this.__on=[u]}}function ut(t,n,e,r){var i=nt;t.sourceEvent=nt,nt=t;try{return n.apply(e,r)}finally{nt=i}}function st(t,n,e){var r=A(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 ct(t,n){return function(){return st(this,t,n)}}function lt(t,n){return function(){return st(this,t,n.apply(this,arguments))}}var ft=[null];function ht(t,n){this._groups=t,this._parents=n}function dt(){return new ht([[document.documentElement]],ft)}ht.prototype=dt.prototype={constructor:ht,select:function(t){"function"!=typeof t&&(t=l(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,c=r[i]=new Array(s),f=0;f<s;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),c[f]=a);return new ht(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=h(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,c=0;c<s;++c)(a=u[c])&&(r.push(t.call(a,a.__data__,c,u)),i.push(a));return new ht(r,i)},filter:function(t){"function"!=typeof t&&(t=d(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new ht(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var e,r=n?_:g,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var a=o.length,u=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var f=i[l],h=o[l],d=h.length,p=t.call(f,f&&f.__data__,l,i),v=p.length,y=s[l]=new Array(v),m=u[l]=new Array(v);r(f,h,y,m,c[l]=new Array(d),p,n);for(var x,b,w=0,M=0;w<v;++w)if(x=y[w]){for(w>=M&&(M=w+1);!(b=m[M])&&++M<v;);x._next=b||null}}return(u=new ht(u,i))._enter=s,u._exit=c,u},enter:function(){return new ht(this._enter||this._groups.map(p),this._parents)},exit:function(){return new ht(this._exit||this._groups.map(p),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),a=new Array(r),u=0;u<o;++u)for(var s,c=n[u],l=e[u],f=c.length,h=a[u]=new Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;u<r;++u)a[u]=n[u];return new ht(a,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,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=m);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,c=i[o]=new Array(s),l=0;l<s;++l)(a=u[l])&&(c[l]=a);c.sort(n)}return new ht(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 a=r[i];if(a)return a}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],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,n){var e=o(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?b:x:"function"==typeof n?e.local?O:k:e.local?M:w)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?j:"function"==typeof n?N:S)(t,n,null==e?"":e)):C(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?T:"function"==typeof n?E:P)(t,n)):this.node()[t]},classed:function(t,n){var e=D(t+"");if(arguments.length<2){for(var r=L(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?W:n?U:B)(e,n))},text:function(t){return arguments.length?this.each(null==t?I:("function"==typeof t?q:H)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?V:("function"==typeof t?G:Y)(t)):this.node().innerHTML},raise:function(){return this.each($)},lower:function(){return this.each(X)},append:function(t){var n="function"==typeof t?t:s(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:s(t),r=null==n?Z:"function"==typeof n?n:l(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Q)},clone:function(t){return this.select(t?K:J)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=it(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?at:ot,null==e&&(e=!1),r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<a;++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?lt:ct)(t,n))}};var pt=dt,vt=function(t){return"string"==typeof t?new ht([[document.querySelector(t)]],[document.documentElement]):new ht([[t]],ft)},yt=function(t){return vt(s(t).call(document.documentElement))},gt=0;function _t(){return new mt}function mt(){this._="@"+(++gt).toString(36)}mt.prototype=_t.prototype={constructor:mt,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var xt=function(){for(var t,n=nt;t=n.sourceEvent;)n=t;return n},bt=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]},wt=function(t){var n=xt();return n.changedTouches&&(n=n.changedTouches[0]),bt(t,n)},Mt=function(t){return"string"==typeof t?new ht([document.querySelectorAll(t)],[document.documentElement]):new ht([null==t?[]:t],ft)},kt=function(t,n,e){arguments.length<3&&(e=n,n=xt().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return bt(t,r);return null},Ot=function(t,n){null==n&&(n=xt().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=bt(t,n[e]);return i};e.d(n,"create",(function(){return yt})),e.d(n,"creator",(function(){return s})),e.d(n,"local",(function(){return _t})),e.d(n,"matcher",(function(){return d})),e.d(n,"mouse",(function(){return wt})),e.d(n,"namespace",(function(){return o})),e.d(n,"namespaces",(function(){return i})),e.d(n,"clientPoint",(function(){return bt})),e.d(n,"select",(function(){return vt})),e.d(n,"selectAll",(function(){return Mt})),e.d(n,"selection",(function(){return pt})),e.d(n,"selector",(function(){return l})),e.d(n,"selectorAll",(function(){return h})),e.d(n,"style",(function(){return C})),e.d(n,"touch",(function(){return kt})),e.d(n,"touches",(function(){return Ot})),e.d(n,"window",(function(){return A})),e.d(n,"event",(function(){return nt})),e.d(n,"customEvent",(function(){return ut}))},function(t,n,e){"use strict";n.a=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}},function(t,n,e){"use strict";var r=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function i(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function o(){}var a="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3})$/,l=/^#([0-9a-f]{6})$/,f=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgba\\("+[a,a,a,u]+"\\)$"),p=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),v=new RegExp("^hsl\\("+[u,s,s]+"\\)$"),y=new RegExp("^hsla\\("+[u,s,s,u]+"\\)$"),g={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 _(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function x(t){var n;return t=(t+"").trim().toLowerCase(),(n=c.exec(t))?new O((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=l.exec(t))?b(parseInt(n[1],16)):(n=f.exec(t))?new O(n[1],n[2],n[3],1):(n=h.exec(t))?new O(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=d.exec(t))?w(n[1],n[2],n[3],n[4]):(n=p.exec(t))?w(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=v.exec(t))?N(n[1],n[2]/100,n[3]/100,1):(n=y.exec(t))?N(n[1],n[2]/100,n[3]/100,n[4]):g.hasOwnProperty(t)?b(g[t]):"transparent"===t?new O(NaN,NaN,NaN,0):null}function b(t){return new O(t>>16&255,t>>8&255,255&t,1)}function w(t,n,e,r){return r<=0&&(t=n=e=NaN),new O(t,n,e,r)}function M(t){return t instanceof o||(t=x(t)),t?new O((t=t.rgb()).r,t.g,t.b,t.opacity):new O}function k(t,n,e,r){return 1===arguments.length?M(t):new O(t,n,e,null==r?1:r)}function O(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function A(){return"#"+S(this.r)+S(this.g)+S(this.b)}function j(){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 S(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function N(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new P(t,n,e,r)}function C(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=x(t)),!t)return new P;if(t instanceof P)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),u=NaN,s=a-i,c=(a+i)/2;return s?(u=n===a?(e-r)/s+6*(e<r):e===a?(r-n)/s+2:(n-e)/s+4,s/=c<.5?a+i:2-a-i,u*=60):s=c>0&&c<1?0:u,new P(u,s,c,t.opacity)}function T(t,n,e,r){return 1===arguments.length?C(t):new P(t,n,e,null==r?1:r)}function P(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function E(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}r(o,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_,formatHex:_,formatHsl:function(){return C(this).formatHsl()},formatRgb:m,toString:m}),r(O,k,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new O(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:A,formatHex:A,formatRgb:j,toString:j})),r(P,T,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new P(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new P(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 O(E(t>=240?t-240:t+120,i,r),E(t,i,r),E(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 D=Math.PI/180,L=180/Math.PI,z=.96422,F=1,R=.82521,U=4/29,B=6/29,W=3*B*B,I=B*B*B;function H(t){if(t instanceof V)return new V(t.l,t.a,t.b,t.opacity);if(t instanceof J)return K(t);t instanceof O||(t=M(t));var n,e,r=X(t.r),i=X(t.g),o=X(t.b),a=Y((.2225045*r+.7168786*i+.0606169*o)/F);return r===i&&i===o?n=e=a:(n=Y((.4360747*r+.3850649*i+.1430804*o)/z),e=Y((.0139322*r+.0971045*i+.7141733*o)/R)),new V(116*a-16,500*(n-a),200*(a-e),t.opacity)}function q(t,n,e,r){return 1===arguments.length?H(t):new V(t,n,e,null==r?1:r)}function V(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Y(t){return t>I?Math.pow(t,1/3):t/W+U}function G(t){return t>B?t*t*t:W*(t-U)}function $(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function X(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Z(t){if(t instanceof J)return new J(t.h,t.c,t.l,t.opacity);if(t instanceof V||(t=H(t)),0===t.a&&0===t.b)return new J(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*L;return new J(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Q(t,n,e,r){return 1===arguments.length?Z(t):new J(t,n,e,null==r?1:r)}function J(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function K(t){if(isNaN(t.h))return new V(t.l,0,0,t.opacity);var n=t.h*D;return new V(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}r(V,q,i(o,{brighter:function(t){return new V(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new V(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new O($(3.1338561*(n=z*G(n))-1.6168667*(t=F*G(t))-.4906146*(e=R*G(e))),$(-.9787684*n+1.9161415*t+.033454*e),$(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),r(J,Q,i(o,{brighter:function(t){return new J(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new J(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return K(this).rgb()}}));var tt=-.14861,nt=1.78277,et=-.29227,rt=-.90649,it=1.97294,ot=it*rt,at=it*nt,ut=nt*et-rt*tt;function st(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ct)return new ct(t.h,t.s,t.l,t.opacity);t instanceof O||(t=M(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(ut*r+ot*n-at*e)/(ut+ot-at),o=r-i,a=(it*(e-i)-et*o)/rt,u=Math.sqrt(a*a+o*o)/(it*i*(1-i)),s=u?Math.atan2(a,o)*L-120:NaN;return new ct(s<0?s+360:s,u,i,t.opacity)}(t):new ct(t,n,e,null==r?1:r)}function ct(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}r(ct,st,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ct(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ct(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*D,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new O(255*(n+e*(tt*r+nt*i)),255*(n+e*(et*r+rt*i)),255*(n+e*(it*r)),this.opacity)}})),e.d(n,"a",(function(){return x})),e.d(n,"f",(function(){return k})),e.d(n,"d",(function(){return T})),e.d(n,"e",(function(){return q})),e.d(n,"c",(function(){return Q})),e.d(n,"b",(function(){return st}))},function(t,n,e){"use strict";e.r(n);var r=e(24),i=e(2),o=e(38);function a(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function u(t){return 0|t.length}function s(t){return!(t>0)}function c(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function l(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(c)).map(u),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(s))return o;for(;;){o.push(i.map((n,e)=>t[e][n]));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}}var f=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN};function h(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(o+=(e=n-i)*(n-(i+=e/++r)));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(o+=(e=u-i)*(u-(i+=e/++r)))}if(r>1)return o/(r-1)}function d(t,n){const e=h(t,n);return e?Math.sqrt(e):e}var p=function(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]},v=function(t){return t};function y(t,...n){return x(t,v,v,n)}function g(t,...n){return x(t,Array.from,v,n)}function _(t,n,...e){return x(t,v,n,e)}function m(t,n,...e){return x(t,Array.from,n,e)}function x(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new Map,u=r[o++];let s=-1;for(const t of i){const n=u(t,++s,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}var b=Array.prototype,w=b.slice,M=b.map,k=function(t){return function(){return t}},O=e(37),A=e(23),j=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},S=function(){var t=v,n=p,e=j;function i(i){Array.isArray(i)||(i=Array.from(i));var o,a,u=i.length,s=new Array(u);for(o=0;o<u;++o)s[o]=t(i[o],o,i);var c=n(s),l=c[0],f=c[1],h=e(s,l,f);Array.isArray(h)||(h=Object(A.c)(l,f,h),h=Object(O.a)(Math.ceil(l/h)*h,f,h));for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,v=new Array(d+1);for(o=0;o<=d;++o)(p=v[o]=[]).x0=o>0?h[o-1]:l,p.x1=o<d?h[o]:f;for(o=0;o<u;++o)l<=(a=s[o])&&a<=f&&v[Object(r.c)(h,a,0,d)].push(i[o]);return v}return i.value=function(n){return arguments.length?(t="function"==typeof n?n:k(n),i):t},i.domain=function(t){return arguments.length?(n="function"==typeof t?t:k([t[0],t[1]]),i):n},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?k(w.call(t)):k(t),i):e},i},N=e(15),C=e(9),T=function(t,n,e){return t=M.call(t,N.a).sort(i.a),Math.ceil((e-n)/(2*(Object(C.a)(t,.75)-Object(C.a)(t,.25))*Math.pow(t.length,-1/3)))},P=function(t,n,e){return Math.ceil((e-n)/(3.5*d(t)*Math.pow(t.length,-1/3)))};function E(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function D(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function L(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function z(t,n,e=0,r=t.length-1,o=i.a){for(;r>e;){if(r-e>600){const i=r-e+1,a=n-e+1,u=Math.log(i),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(i-s)/i)*(a-i/2<0?-1:1);z(t,n,Math.max(e,Math.floor(n-a*s/i+c)),Math.min(r,Math.floor(n+(i-a)*s/i+c)),o)}const i=t[n];let a=e,u=r;for(F(t,e,n),o(t[r],i)>0&&F(t,e,r);a<u;){for(F(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?F(t,e,u):F(t,++u,r),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function F(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}var R=function(t,n){if(!(t=Float64Array.from(Object(N.b)(t,n))).length)return;const e=t.length,r=e>>1;return z(t,r-1,0),0==(1&e)&&z(t,r,r),Object(C.a)(t,.5)};function U(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function B(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function W(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function I(t,n=H){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function H(t,n){return[t,n]}var q=function(t,n){return Array.from(n,n=>t[n])};function V(t,n=i.a){let e,r=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(r?Object(i.a)(t,o)<0:0===Object(i.a)(t,t))&&(e=a,o=t,r=!0)}}else for(const i of t)(r?n(i,e)<0:0===n(i,i))&&(e=i,r=!0);return e}function Y(t,n=i.a){if(1===n.length)return W(t,n);let e,r=-1,o=-1;for(const i of t)++o,(r<0?0===n(i,i):n(i,e)<0)&&(e=i,r=o);return r}function G(t,n=i.a){let e,r=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(r?Object(i.a)(t,o)>0:0===Object(i.a)(t,t))&&(e=a,o=t,r=!0)}}else for(const i of t)(r?n(i,e)>0:0===n(i,i))&&(e=i,r=!0);return e}function $(t,n=i.a){if(1===n.length)return D(t,n);let e,r=-1,o=-1;for(const i of t)++o,(r<0?0===n(i,i):n(i,e)>0)&&(e=i,r=o);return r}function X(t,n){const e=Y(t,n);return e<0?void 0:e}function Z(t,n=0,e=t.length){for(var r,i,o=e-(n=+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t}function Q(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}var J=function(t){if(!(i=t.length))return[];for(var n=-1,e=B(t,K),r=new Array(e);++n<e;)for(var i,o=-1,a=r[n]=new Array(i);++o<i;)a[o]=t[o][n];return r};function K(t){return t.length}var tt=function(){return J(arguments)};e.d(n,"bisect",(function(){return r.c})),e.d(n,"bisectRight",(function(){return r.b})),e.d(n,"bisectLeft",(function(){return r.a})),e.d(n,"ascending",(function(){return i.a})),e.d(n,"bisector",(function(){return o.a})),e.d(n,"count",(function(){return a})),e.d(n,"cross",(function(){return l})),e.d(n,"descending",(function(){return f})),e.d(n,"deviation",(function(){return d})),e.d(n,"extent",(function(){return p})),e.d(n,"group",(function(){return y})),e.d(n,"groups",(function(){return g})),e.d(n,"rollup",(function(){return _})),e.d(n,"rollups",(function(){return m})),e.d(n,"bin",(function(){return S})),e.d(n,"histogram",(function(){return S})),e.d(n,"thresholdFreedmanDiaconis",(function(){return T})),e.d(n,"thresholdScott",(function(){return P})),e.d(n,"thresholdSturges",(function(){return j})),e.d(n,"max",(function(){return E})),e.d(n,"maxIndex",(function(){return D})),e.d(n,"mean",(function(){return L})),e.d(n,"median",(function(){return R})),e.d(n,"merge",(function(){return U})),e.d(n,"min",(function(){return B})),e.d(n,"minIndex",(function(){return W})),e.d(n,"pairs",(function(){return I})),e.d(n,"permute",(function(){return q})),e.d(n,"quantile",(function(){return C.a})),e.d(n,"quantileSorted",(function(){return C.b})),e.d(n,"quickselect",(function(){return z})),e.d(n,"range",(function(){return O.a})),e.d(n,"least",(function(){return V})),e.d(n,"leastIndex",(function(){return Y})),e.d(n,"greatest",(function(){return G})),e.d(n,"greatestIndex",(function(){return $})),e.d(n,"scan",(function(){return X})),e.d(n,"shuffle",(function(){return Z})),e.d(n,"sum",(function(){return Q})),e.d(n,"ticks",(function(){return A.a})),e.d(n,"tickIncrement",(function(){return A.b})),e.d(n,"tickStep",(function(){return A.c})),e.d(n,"transpose",(function(){return J})),e.d(n,"variance",(function(){return h})),e.d(n,"zip",(function(){return tt}))},function(t,n,e){"use strict";e.r(n);var r=e(3);function i(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}var o=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),o=t[r],a=t[r+1],u=r>0?t[r-1]:2*o-a,s=r<n-1?t[r+2]:2*a-o;return i((e-r/n)*n,u,o,a,s)}},a=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],a=t[r%n],u=t[(r+1)%n],s=t[(r+2)%n];return i((e-r/n)*n,o,a,u,s)}},u=function(t){return function(){return t}};function s(t,n){return function(e){return t+e*n}}function c(t,n){var e=n-t;return e?s(t,e>180||e<-180?e-360*Math.round(e/360):e):u(isNaN(t)?n:t)}function l(t){return 1==(t=+t)?f: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):u(isNaN(n)?e:n)}}function f(t,n){var e=n-t;return e?s(t,e):u(isNaN(t)?n:t)}var h=function t(n){var e=l(n);function i(t,n){var i=e((t=Object(r.f)(t)).r,(n=Object(r.f)(n)).r),o=e(t.g,n.g),a=e(t.b,n.b),u=f(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=o(n),t.b=a(n),t.opacity=u(n),t+""}}return i.gamma=t,i}(1);function d(t){return function(n){var e,i,o=n.length,a=new Array(o),u=new Array(o),s=new Array(o);for(e=0;e<o;++e)i=Object(r.f)(n[e]),a[e]=i.r||0,u[e]=i.g||0,s[e]=i.b||0;return a=t(a),u=t(u),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=u(t),i.b=s(t),i+""}}}var p=d(o),v=d(a),y=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=j(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}},g=function(t,n){var e=new Date;return n-=t=+t,function(r){return e.setTime(t+n*r),e}},_=function(t,n){return n-=t=+t,function(e){return t+n*e}},m=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]=j(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,b=new RegExp(x.source,"g");var w,M,k,O,A=function(t,n){var e,r,i,o=x.lastIndex=b.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=x.exec(t))&&(r=b.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:_(e,r)})),o=b.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.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)u[(e=s[r]).i]=e.x(t);return u.join("")})},j=function(t,n){var e,i=typeof n;return null==n||"boolean"===i?u(n):("number"===i?_:"string"===i?(e=Object(r.a)(n))?(n=e,h):A:n instanceof r.a?h:n instanceof Date?g:Array.isArray(n)?y:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?m:_)(t,n)},S=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},N=function(t,n){var e=c(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},C=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}},T=180/Math.PI,P={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},E=function(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*T,skewX:Math.atan(s)*T,scaleX:a,scaleY:u}};function D(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:_(t,i)},{i:s-2,x:_(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}(o.translateX,o.translateY,a.translateX,a.translateY,u,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:_(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:_(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,s),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:_(t,e)},{i:u-2,x:_(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var n,e=-1,r=s.length;++e<r;)u[(n=s[e]).i]=n.x(t);return u.join("")}}}var L=D((function(t){return"none"===t?P:(w||(w=document.createElement("DIV"),M=document.documentElement,k=document.defaultView),w.style.transform=t,t=k.getComputedStyle(M.appendChild(w),null).getPropertyValue("transform"),M.removeChild(w),t=t.slice(7,-1).split(","),E(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),z=D((function(t){return null==t?P:(O||(O=document.createElementNS("http://www.w3.org/2000/svg","g")),O.setAttribute("transform",t),(t=O.transform.baseVal.consolidate())?(t=t.matrix,E(t.a,t.b,t.c,t.d,t.e,t.f)):P)}),", ",")",")"),F=Math.SQRT2;function R(t){return((t=Math.exp(t))+1/t)/2}var U=function(t,n){var e,r,i=t[0],o=t[1],a=t[2],u=n[0],s=n[1],c=n[2],l=u-i,f=s-o,h=l*l+f*f;if(h<1e-12)r=Math.log(c/a)/F,e=function(t){return[i+t*l,o+t*f,a*Math.exp(F*t*r)]};else{var d=Math.sqrt(h),p=(c*c-a*a+4*h)/(2*a*2*d),v=(c*c-a*a-4*h)/(2*c*2*d),y=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-y)/F,e=function(t){var n,e=t*r,u=R(y),s=a/(2*d)*(u*(n=F*e+y,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y));return[i+s*l,o+s*f,a*u/R(F*e+y)]}}return e.duration=1e3*r,e};function B(t){return function(n,e){var i=t((n=Object(r.d)(n)).h,(e=Object(r.d)(e)).h),o=f(n.s,e.s),a=f(n.l,e.l),u=f(n.opacity,e.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(t),n.opacity=u(t),n+""}}}var W=B(c),I=B(f);function H(t,n){var e=f((t=Object(r.e)(t)).l,(n=Object(r.e)(n)).l),i=f(t.a,n.a),o=f(t.b,n.b),a=f(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=i(n),t.b=o(n),t.opacity=a(n),t+""}}function q(t){return function(n,e){var i=t((n=Object(r.c)(n)).h,(e=Object(r.c)(e)).h),o=f(n.c,e.c),a=f(n.l,e.l),u=f(n.opacity,e.opacity);return function(t){return n.h=i(t),n.c=o(t),n.l=a(t),n.opacity=u(t),n+""}}}var V=q(c),Y=q(f);function G(t){return function n(e){function i(n,i){var o=t((n=Object(r.b)(n)).h,(i=Object(r.b)(i)).h),a=f(n.s,i.s),u=f(n.l,i.l),s=f(n.opacity,i.opacity);return function(t){return n.h=o(t),n.s=a(t),n.l=u(Math.pow(t,e)),n.opacity=s(t),n+""}}return e=+e,i.gamma=n,i}(1)}var $=G(c),X=G(f);function Z(t,n){for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}var Q=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e};e.d(n,"interpolate",(function(){return j})),e.d(n,"interpolateArray",(function(){return y})),e.d(n,"interpolateBasis",(function(){return o})),e.d(n,"interpolateBasisClosed",(function(){return a})),e.d(n,"interpolateDate",(function(){return g})),e.d(n,"interpolateDiscrete",(function(){return S})),e.d(n,"interpolateHue",(function(){return N})),e.d(n,"interpolateNumber",(function(){return _})),e.d(n,"interpolateObject",(function(){return m})),e.d(n,"interpolateRound",(function(){return C})),e.d(n,"interpolateString",(function(){return A})),e.d(n,"interpolateTransformCss",(function(){return L})),e.d(n,"interpolateTransformSvg",(function(){return z})),e.d(n,"interpolateZoom",(function(){return U})),e.d(n,"interpolateRgb",(function(){return h})),e.d(n,"interpolateRgbBasis",(function(){return p})),e.d(n,"interpolateRgbBasisClosed",(function(){return v})),e.d(n,"interpolateHsl",(function(){return W})),e.d(n,"interpolateHslLong",(function(){return I})),e.d(n,"interpolateLab",(function(){return H})),e.d(n,"interpolateHcl",(function(){return V})),e.d(n,"interpolateHclLong",(function(){return Y})),e.d(n,"interpolateCubehelix",(function(){return $})),e.d(n,"interpolateCubehelixLong",(function(){return X})),e.d(n,"piecewise",(function(){return Z})),e.d(n,"quantize",(function(){return Q}))},function(t,n,e){"use strict";e.r(n);var r=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)]},i=function(t){return(t=r(Math.abs(t)))?t[1]:NaN},o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(n=o.exec(t)))throw new Error("invalid format: "+t);var n;return new u({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 u(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+""}a.prototype=u.prototype,u.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 s,c,l,f,h=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(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},d=function(t,n){var e=r(t,n);if(!e)return t+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")},p={"%":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 d(100*t,n)},r:d,s:function(t,n){var e=r(t,n);if(!e)return t+"";var i=e[0],o=e[1],a=o-(s=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+new Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+r(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},v=function(t){return t},y=Array.prototype.map,g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],_=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?v:(n=y.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),o=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?v:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(y.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",d=void 0===t.minus?"-":t.minus+"",_=void 0===t.nan?"NaN":t.nan+"";function m(t){var n=(t=a(t)).fill,e=t.align,i=t.sign,v=t.symbol,y=t.zero,m=t.width,x=t.comma,b=t.precision,w=t.trim,M=t.type;"n"===M?(x=!0,M="g"):p[M]||(void 0===b&&(b=12),w=!0,M="g"),(y||"0"===n&&"="===e)&&(y=!0,n="0",e="=");var k="$"===v?o:"#"===v&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",O="$"===v?u:/[%p]/.test(M)?f:"",A=p[M],j=/[defgprs%]/.test(M);function S(t){var o,a,u,f=k,p=O;if("c"===M)p=A(t)+p,t="";else{var v=(t=+t)<0;if(t=isNaN(t)?_:A(Math.abs(t),b),w&&(t=h(t)),v&&0==+t&&(v=!1),f=(v?"("===i?i:d:"-"===i||"("===i?"":i)+f,p=("s"===M?g[8+s/3]:"")+p+(v&&"("===i?")":""),j)for(o=-1,a=t.length;++o<a;)if(48>(u=t.charCodeAt(o))||u>57){p=(46===u?c+t.slice(o+1):t.slice(o))+p,t=t.slice(0,o);break}}x&&!y&&(t=r(t,1/0));var S=f.length+t.length+p.length,N=S<m?new Array(m-S+1).join(n):"";switch(x&&y&&(t=r(N+t,N.length?m-p.length:1/0),N=""),e){case"<":t=f+t+p+N;break;case"=":