!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}([function(e,t,n){e.exports=n(56)()},function(e,t){e.exports=React},function(e,t,n){var r;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}void 0!==e&&e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.r(t);var r=n(6),a=function(e){return function(){return e}},i=Math.abs,o=Math.atan2,u=Math.cos,c=Math.max,s=Math.min,l=Math.sin,f=Math.sqrt,d=1e-12,h=Math.PI,p=h/2,m=2*h;function _(e){return e>=1?p:e<=-1?-p:Math.asin(e)}function g(e){return e.innerRadius}function y(e){return e.outerRadius}function v(e){return e.startAngle}function b(e){return e.endAngle}function w(e){return e&&e.padAngle}function x(e,t,n,r,a,i,o){var u=e-n,s=t-r,l=(o?i:-i)/f(u*u+s*s),d=l*s,h=-l*u,p=e+d,m=t+h,_=n+d,g=r+h,y=(p+_)/2,v=(m+g)/2,b=_-p,w=g-m,x=b*b+w*w,k=a-i,M=p*g-_*m,O=(w<0?-1:1)*f(c(0,k*k*x-M*M)),T=(M*w-b*O)/x,E=(-M*b-w*O)/x,j=(M*w+b*O)/x,S=(-M*b+w*O)/x,N=T-y,C=E-v,P=j-y,R=S-v;return N*N+C*C>P*P+R*R&&(T=j,E=S),{cx:T,cy:E,x01:-d,y01:-h,x11:T*(a/k-1),y11:E*(a/k-1)}}var k=function(){var e=g,t=y,n=a(0),c=null,k=v,M=b,O=w,T=null;function E(){var a,g,y=+e.apply(this,arguments),v=+t.apply(this,arguments),b=k.apply(this,arguments)-p,w=M.apply(this,arguments)-p,E=i(w-b),j=w>b;if(T||(T=a=Object(r.a)()),v<y&&(g=v,v=y,y=g),v>d)if(E>m-d)T.moveTo(v*u(b),v*l(b)),T.arc(0,0,v,b,w,!j),y>d&&(T.moveTo(y*u(w),y*l(w)),T.arc(0,0,y,w,b,j));else{var S,N,C=b,P=w,R=b,D=w,A=E,L=E,W=O.apply(this,arguments)/2,F=W>d&&(c?+c.apply(this,arguments):f(y*y+v*v)),z=s(i(v-y)/2,+n.apply(this,arguments)),B=z,U=z;if(F>d){var q=_(F/y*l(W)),H=_(F/v*l(W));(A-=2*q)>d?(R+=q*=j?1:-1,D-=q):(A=0,R=D=(b+w)/2),(L-=2*H)>d?(C+=H*=j?1:-1,P-=H):(L=0,C=P=(b+w)/2)}var I=v*u(C),Y=v*l(C),G=y*u(D),V=y*l(D);if(z>d){var X=v*u(P),$=v*l(P),Z=y*u(R),J=y*l(R);if(E<h){var Q=A>d?function(e,t,n,r,a,i,o,u){var c=n-e,s=r-t,l=o-a,f=u-i,d=(l*(t-i)-f*(e-a))/(f*c-l*s);return[e+d*c,t+d*s]}(I,Y,Z,J,X,$,G,V):[G,V],K=I-Q[0],ee=Y-Q[1],te=X-Q[0],ne=$-Q[1],re=1/l(function(e){return e>1?0:e<-1?h:Math.acos(e)}((K*te+ee*ne)/(f(K*K+ee*ee)*f(te*te+ne*ne)))/2),ae=f(Q[0]*Q[0]+Q[1]*Q[1]);B=s(z,(y-ae)/(re-1)),U=s(z,(v-ae)/(re+1))}}L>d?U>d?(S=x(Z,J,I,Y,v,U,j),N=x(X,$,G,V,v,U,j),T.moveTo(S.cx+S.x01,S.cy+S.y01),U<z?T.arc(S.cx,S.cy,U,o(S.y01,S.x01),o(N.y01,N.x01),!j):(T.arc(S.cx,S.cy,U,o(S.y01,S.x01),o(S.y11,S.x11),!j),T.arc(0,0,v,o(S.cy+S.y11,S.cx+S.x11),o(N.cy+N.y11,N.cx+N.x11),!j),T.arc(N.cx,N.cy,U,o(N.y11,N.x11),o(N.y01,N.x01),!j))):(T.moveTo(I,Y),T.arc(0,0,v,C,P,!j)):T.moveTo(I,Y),y>d&&A>d?B>d?(S=x(G,V,X,$,y,-B,j),N=x(I,Y,Z,J,y,-B,j),T.lineTo(S.cx+S.x01,S.cy+S.y01),B<z?T.arc(S.cx,S.cy,B,o(S.y01,S.x01),o(N.y01,N.x01),!j):(T.arc(S.cx,S.cy,B,o(S.y01,S.x01),o(S.y11,S.x11),!j),T.arc(0,0,y,o(S.cy+S.y11,S.cx+S.x11),o(N.cy+N.y11,N.cx+N.x11),j),T.arc(N.cx,N.cy,B,o(N.y11,N.x11),o(N.y01,N.x01),!j))):T.arc(0,0,y,D,R,j):T.lineTo(G,V)}else T.moveTo(0,0);if(T.closePath(),a)return T=null,a+""||null}return E.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-h/2;return[u(r)*n,l(r)*n]},E.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:a(+t),E):e},E.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:a(+e),E):t},E.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:a(+e),E):n},E.padRadius=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:a(+e),E):c},E.startAngle=function(e){return arguments.length?(k="function"==typeof e?e:a(+e),E):k},E.endAngle=function(e){return arguments.length?(M="function"==typeof e?e:a(+e),E):M},E.padAngle=function(e){return arguments.length?(O="function"==typeof e?e:a(+e),E):O},E.context=function(e){return arguments.length?(T=null==e?null:e,E):T},E};function M(e){this._context=e}M.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var O=function(e){return new M(e)};function T(e){return e[0]}function E(e){return e[1]}var j=function(){var e=T,t=E,n=a(!0),i=null,o=O,u=null;function c(a){var c,s,l,f=a.length,d=!1;for(null==i&&(u=o(l=Object(r.a)())),c=0;c<=f;++c)!(c<f&&n(s=a[c],c,a))===d&&((d=!d)?u.lineStart():u.lineEnd()),d&&u.point(+e(s,c,a),+t(s,c,a));if(l)return u=null,l+""||null}return c.x=function(t){return arguments.length?(e="function"==typeof t?t:a(+t),c):e},c.y=function(e){return arguments.length?(t="function"==typeof e?e:a(+e),c):t},c.defined=function(e){return arguments.length?(n="function"==typeof e?e:a(!!e),c):n},c.curve=function(e){return arguments.length?(o=e,null!=i&&(u=o(i)),c):o},c.context=function(e){return arguments.length?(null==e?i=u=null:u=o(i=e),c):i},c},S=function(){var e=T,t=null,n=a(0),i=E,o=a(!0),u=null,c=O,s=null;function l(a){var l,f,d,h,p,m=a.length,_=!1,g=new Array(m),y=new Array(m);for(null==u&&(s=c(p=Object(r.a)())),l=0;l<=m;++l){if(!(l<m&&o(h=a[l],l,a))===_)if(_=!_)f=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=l-1;d>=f;--d)s.point(g[d],y[d]);s.lineEnd(),s.areaEnd()}_&&(g[l]=+e(h,l,a),y[l]=+n(h,l,a),s.point(t?+t(h,l,a):g[l],i?+i(h,l,a):y[l]))}if(p)return s=null,p+""||null}function f(){return j().defined(o).curve(c).context(u)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:a(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:a(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:a(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:a(+e),i=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:a(+e),l):n},l.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:a(+e),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(n)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:a(!!e),l):o},l.curve=function(e){return arguments.length?(c=e,null!=u&&(s=c(u)),l):c},l.context=function(e){return arguments.length?(null==e?u=s=null:s=c(u=e),l):u},l},N=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},C=function(e){return e},P=function(){var e=C,t=N,n=null,r=a(0),i=a(m),o=a(0);function u(a){var u,c,s,l,f,d=a.length,h=0,p=new Array(d),_=new Array(d),g=+r.apply(this,arguments),y=Math.min(m,Math.max(-m,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),b=v*(y<0?-1:1);for(u=0;u<d;++u)(f=_[p[u]=u]=+e(a[u],u,a))>0&&(h+=f);for(null!=t?p.sort(function(e,n){return t(_[e],_[n])}):null!=n&&p.sort(function(e,t){return n(a[e],a[t])}),u=0,s=h?(y-d*b)/h:0;u<d;++u,g=l)c=p[u],l=g+((f=_[c])>0?f*s:0)+b,_[c]={data:a[c],index:u,value:f,startAngle:g,endAngle:l,padAngle:v};return _}return u.value=function(t){return arguments.length?(e="function"==typeof t?t:a(+t),u):e},u.sortValues=function(e){return arguments.length?(t=e,n=null,u):t},u.sort=function(e){return arguments.length?(n=e,t=null,u):n},u.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:a(+e),u):r},u.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:a(+e),u):i},u.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:a(+e),u):o},u},R=A(O);function D(e){this._curve=e}function A(e){function t(t){return new D(e(t))}return t._curve=e,t}function L(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(A(e)):t()._curve},e}D.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var W=function(){return L(j().curve(R))},F=function(){var e=S().curve(R),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return L(n())},delete e.lineX0,e.lineEndAngle=function(){return L(r())},delete e.lineX1,e.lineInnerRadius=function(){return L(a())},delete e.lineY0,e.lineOuterRadius=function(){return L(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(A(e)):t()._curve},e},z=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},B=Array.prototype.slice;function U(e){return e.source}function q(e){return e.target}function H(e){var t=U,n=q,i=T,o=E,u=null;function c(){var a,c=B.call(arguments),s=t.apply(this,c),l=n.apply(this,c);if(u||(u=a=Object(r.a)()),e(u,+i.apply(this,(c[0]=s,c)),+o.apply(this,c),+i.apply(this,(c[0]=l,c)),+o.apply(this,c)),a)return u=null,a+""||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(i="function"==typeof e?e:a(+e),c):i},c.y=function(e){return arguments.length?(o="function"==typeof e?e:a(+e),c):o},c.context=function(e){return arguments.length?(u=null==e?null:e,c):u},c}function I(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,a,r,a)}function Y(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+a)/2,r,n,r,a)}function G(e,t,n,r,a){var i=z(t,n),o=z(t,n=(n+a)/2),u=z(r,n),c=z(r,a);e.moveTo(i[0],i[1]),e.bezierCurveTo(o[0],o[1],u[0],u[1],c[0],c[1])}function V(){return H(I)}function X(){return H(Y)}function $(){var e=H(G);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var Z={draw:function(e,t){var n=Math.sqrt(t/h);e.moveTo(n,0),e.arc(0,0,n,0,m)}},J={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Q=Math.sqrt(1/3),K=2*Q,ee={draw:function(e,t){var n=Math.sqrt(t/K),r=n*Q;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},te=Math.sin(h/10)/Math.sin(7*h/10),ne=Math.sin(m/10)*te,re=-Math.cos(m/10)*te,ae={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ne*n,a=re*n;e.moveTo(0,-n),e.lineTo(r,a);for(var i=1;i<5;++i){var o=m*i/5,u=Math.cos(o),c=Math.sin(o);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*a,c*r+u*a)}e.closePath()}},ie={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},oe=Math.sqrt(3),ue={draw:function(e,t){var n=-Math.sqrt(t/(3*oe));e.moveTo(0,2*n),e.lineTo(-oe*n,-n),e.lineTo(oe*n,-n),e.closePath()}},ce=Math.sqrt(3)/2,se=1/Math.sqrt(12),le=3*(se/2+1),fe={draw:function(e,t){var n=Math.sqrt(t/le),r=n/2,a=n*se,i=r,o=n*se+n,u=-i,c=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(u,c),e.lineTo(-.5*r-ce*a,ce*r+-.5*a),e.lineTo(-.5*i-ce*o,ce*i+-.5*o),e.lineTo(-.5*u-ce*c,ce*u+-.5*c),e.lineTo(-.5*r+ce*a,-.5*a-ce*r),e.lineTo(-.5*i+ce*o,-.5*o-ce*i),e.lineTo(-.5*u+ce*c,-.5*c-ce*u),e.closePath()}},de=[Z,J,ee,ie,ae,ue,fe],he=function(){var e=a(Z),t=a(64),n=null;function i(){var a;if(n||(n=a=Object(r.a)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(t){return arguments.length?(e="function"==typeof t?t:a(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:a(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},pe=function(){};function me(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function _e(e){this._context=e}_e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:me(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var ge=function(e){return new _e(e)};function ye(e){this._context=e}ye.prototype={areaStart:pe,areaEnd:pe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var ve=function(e){return new ye(e)};function be(e){this._context=e}be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var we=function(e){return new be(e)};function xe(e,t){this._basis=new _e(e),this._beta=t}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,a=e[0],i=t[0],o=e[n]-a,u=t[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(a+r*o),this._beta*t[c]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ke=function e(t){function n(e){return 1===t?new _e(e):new xe(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Me(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oe(e,t){this._context=e,this._k=(1-t)/6}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Me(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Te=function e(t){function n(e){return new Oe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ee(e,t){this._context=e,this._k=(1-t)/6}Ee.prototype={areaStart:pe,areaEnd:pe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var je=function e(t){function n(e){return new Ee(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Se(e,t){this._context=e,this._k=(1-t)/6}Se.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ne=function e(t){function n(e){return new Se(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ce(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>d){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>d){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*s+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*s+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function Pe(e,t){this._context=e,this._alpha=t}Pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ce(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Re=function e(t){function n(e){return t?new Pe(e,t):new Oe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function De(e,t){this._context=e,this._alpha=t}De.prototype={areaStart:pe,areaEnd:pe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ce(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ae=function e(t){function n(e){return t?new De(e,t):new Ee(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Le(e,t){this._context=e,this._alpha=t}Le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ce(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var We=function e(t){function n(e){return t?new Le(e,t):new Se(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Fe(e){this._context=e}Fe.prototype={areaStart:pe,areaEnd:pe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var ze=function(e){return new Fe(e)};function Be(e){return e<0?-1:1}function Ue(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),u=(i*a+o*r)/(r+a);return(Be(i)+Be(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(u))||0}function qe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function He(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,a+u*t,i-u,o-u*n,i,o)}function Ie(e){this._context=e}function Ye(e){this._context=new Ge(e)}function Ge(e){this._context=e}function Ve(e){return new Ie(e)}function Xe(e){return new Ye(e)}function $e(e){this._context=e}function Ze(e){var t,n,r=e.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:He(this,this._t0,qe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,He(this,qe(this,n=Ue(this,e,t)),n);break;default:He(this,this._t0,n=Ue(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Ye.prototype=Object.create(Ie.prototype)).point=function(e,t){Ie.prototype.point.call(this,t,e)},Ge.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}},$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Ze(e),a=Ze(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Je=function(e){return new $e(e)};function Qe(e,t){this._context=e,this._t=t}Qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Ke=function(e){return new Qe(e,.5)};function et(e){return new Qe(e,0)}function tt(e){return new Qe(e,1)}var nt=function(e,t){if((a=e.length)>1)for(var n,r,a,i=1,o=e[t[0]],u=o.length;i<a;++i)for(r=o,o=e[t[i]],n=0;n<u;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},rt=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function at(e,t){return e[t]}var it=function(){var e=a([]),t=rt,n=nt,r=at;function i(a){var i,o,u=e.apply(this,arguments),c=a.length,s=u.length,l=new Array(s);for(i=0;i<s;++i){for(var f,d=u[i],h=l[i]=new Array(c),p=0;p<c;++p)h[p]=f=[0,+r(a[p],d,p,a)],f.data=a[p];h.key=d}for(i=0,o=t(l);i<s;++i)l[o[i]].index=i;return n(l,o),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:a(B.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:a(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?rt:"function"==typeof e?e:a(B.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?nt:e,i):n},i},ot=function(e,t){if((r=e.length)>0){for(var n,r,a,i=0,o=e[0].length;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}nt(e,t)}},ut=function(e,t){if((u=e.length)>1)for(var n,r,a,i,o,u,c=0,s=e[t[0]].length;c<s;++c)for(i=o=0,n=0;n<u;++n)(a=(r=e[t[n]][c])[1]-r[0])>=0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):r[0]=i},ct=function(e,t){if((n=e.length)>0){for(var n,r=0,a=e[t[0]],i=a.length;r<i;++r){for(var o=0,u=0;o<n;++o)u+=e[o][r][1]||0;a[r][1]+=a[r][0]=-u/2}nt(e,t)}},st=function(e,t){if((a=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,a,i=0,o=1;o<r;++o){for(var u=0,c=0,s=0;u<a;++u){for(var l=e[t[u]],f=l[o][1]||0,d=(f-(l[o-1][1]||0))/2,h=0;h<u;++h){var p=e[t[h]];d+=(p[o][1]||0)-(p[o-1][1]||0)}c+=f,s+=d*f}n[o-1][1]+=n[o-1][0]=i,c&&(i-=s/c)}n[o-1][1]+=n[o-1][0]=i,nt(e,t)}},lt=function(e){var t=e.map(ft);return rt(e).sort(function(e,n){return t[e]-t[n]})};function ft(e){for(var t,n=0,r=-1,a=e.length;++r<a;)(t=+e[r][1])&&(n+=t);return n}var dt=function(e){return lt(e).reverse()},ht=function(e){var t,n,r=e.length,a=e.map(ft),i=rt(e).sort(function(e,t){return a[t]-a[e]}),o=0,u=0,c=[],s=[];for(t=0;t<r;++t)n=i[t],o<u?(o+=a[n],c.push(n)):(u+=a[n],s.push(n));return s.reverse().concat(c)},pt=function(e){return rt(e).reverse()};n.d(t,"arc",function(){return k}),n.d(t,"area",function(){return S}),n.d(t,"line",function(){return j}),n.d(t,"pie",function(){return P}),n.d(t,"areaRadial",function(){return F}),n.d(t,"radialArea",function(){return F}),n.d(t,"lineRadial",function(){return W}),n.d(t,"radialLine",function(){return W}),n.d(t,"pointRadial",function(){return z}),n.d(t,"linkHorizontal",function(){return V}),n.d(t,"linkVertical",function(){return X}),n.d(t,"linkRadial",function(){return $}),n.d(t,"symbol",function(){return he}),n.d(t,"symbols",function(){return de}),n.d(t,"symbolCircle",function(){return Z}),n.d(t,"symbolCross",function(){return J}),n.d(t,"symbolDiamond",function(){return ee}),n.d(t,"symbolSquare",function(){return ie}),n.d(t,"symbolStar",function(){return ae}),n.d(t,"symbolTriangle",function(){return ue}),n.d(t,"symbolWye",function(){return fe}),n.d(t,"curveBasisClosed",function(){return ve}),n.d(t,"curveBasisOpen",function(){return we}),n.d(t,"curveBasis",function(){return ge}),n.d(t,"curveBundle",function(){return ke}),n.d(t,"curveCardinalClosed",function(){return je}),n.d(t,"curveCardinalOpen",function(){return Ne}),n.d(t,"curveCardinal",function(){return Te}),n.d(t,"curveCatmullRomClosed",function(){return Ae}),n.d(t,"curveCatmullRomOpen",function(){return We}),n.d(t,"curveCatmullRom",function(){return Re}),n.d(t,"curveLinearClosed",function(){return ze}),n.d(t,"curveLinear",function(){return O}),n.d(t,"curveMonotoneX",function(){return Ve}),n.d(t,"curveMonotoneY",function(){return Xe}),n.d(t,"curveNatural",function(){return Je}),n.d(t,"curveStep",function(){return Ke}),n.d(t,"curveStepAfter",function(){return tt}),n.d(t,"curveStepBefore",function(){return et}),n.d(t,"stack",function(){return it}),n.d(t,"stackOffsetExpand",function(){return ot}),n.d(t,"stackOffsetDiverging",function(){return ut}),n.d(t,"stackOffsetNone",function(){return nt}),n.d(t,"stackOffsetSilhouette",function(){return ct}),n.d(t,"stackOffsetWiggle",function(){return st}),n.d(t,"stackOrderAscending",function(){return lt}),n.d(t,"stackOrderDescending",function(){return dt}),n.d(t,"stackOrderInsideOut",function(){return ht}),n.d(t,"stackOrderNone",function(){return rt}),n.d(t,"stackOrderReverse",function(){return pt})},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},a=function(e){return 1===e.length&&(e=function(e){return function(t,n){return r(e(t),n)}}(e)),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}};var i=a(r),o=i.right,u=i.left,c=o,s=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,a=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(a,a=e[++n]);return i};function l(e,t){return[e,t]}var f=function(e,t,n){var r,a,i,o,u=e.length,c=t.length,s=new Array(u*c);for(null==n&&(n=l),r=i=0;r<u;++r)for(o=e[r],a=0;a<c;++a,++i)s[i]=n(o,t[a]);return s},d=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},h=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,a=e.length,i=0,o=-1,u=0,c=0;if(null==t)for(;++o<a;)isNaN(n=h(e[o]))||(c+=(r=n-u)*(n-(u+=r/++i)));else for(;++o<a;)isNaN(n=h(t(e[o],o,e)))||(c+=(r=n-u)*(n-(u+=r/++i)));if(i>1)return c/(i-1)},m=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},_=function(e,t){var n,r,a,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=a=n;++o<i;)null!=(n=e[o])&&(r>n&&(r=n),a<n&&(a=n))}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=a=n;++o<i;)null!=(n=t(e[o],o,e))&&(r>n&&(r=n),a<n&&(a=n));return[r,a]},g=Array.prototype,y=g.slice,v=g.map,b=function(e){return function(){return e}},w=function(e){return e},x=function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e+r*n;return i},k=Math.sqrt(50),M=Math.sqrt(10),O=Math.sqrt(2),T=function(e,t,n){var r,a,i,o,u=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),0===(o=E(e,t,n))||!isFinite(o))return[];if(o>0)for(e=Math.ceil(e/o),t=Math.floor(t/o),i=new Array(a=Math.ceil(t-e+1));++u<a;)i[u]=(e+u)*o;else for(e=Math.floor(e*o),t=Math.ceil(t*o),i=new Array(a=Math.ceil(e-t+1));++u<a;)i[u]=(e-u)/o;return r&&i.reverse(),i};function E(e,t,n){var r=(t-e)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,a);return a>=0?(i>=k?10:i>=M?5:i>=O?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=k?10:i>=M?5:i>=O?2:1)}function j(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=k?a*=10:i>=M?a*=5:i>=O&&(a*=2),t<e?-a:a}var S=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},N=function(){var e=w,t=_,n=S;function r(r){var a,i,o=r.length,u=new Array(o);for(a=0;a<o;++a)u[a]=e(r[a],a,r);var s=t(u),l=s[0],f=s[1],d=n(u,l,f);Array.isArray(d)||(d=j(l,f,d),d=x(Math.ceil(l/d)*d,f,d));for(var h=d.length;d[0]<=l;)d.shift(),--h;for(;d[h-1]>f;)d.pop(),--h;var p,m=new Array(h+1);for(a=0;a<=h;++a)(p=m[a]=[]).x0=a>0?d[a-1]:l,p.x1=a<h?d[a]:f;for(a=0;a<o;++a)l<=(i=u[a])&&i<=f&&m[c(d,i,0,h)].push(r[a]);return m}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:b(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:b([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?b(y.call(e)):b(e),r):n},r},C=function(e,t,n){if(null==n&&(n=h),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e);return o+(+n(e[i+1],i+1,e)-o)*(a-i)}},P=function(e,t,n){return e=v.call(e,h).sort(r),Math.ceil((n-t)/(2*(C(e,.75)-C(e,.25))*Math.pow(e.length,-1/3)))},R=function(e,t,n){return Math.ceil((n-t)/(3.5*m(e)*Math.pow(e.length,-1/3)))},D=function(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<a;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<a;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r},A=function(e,t){var n,r=e.length,a=r,i=-1,o=0;if(null==t)for(;++i<r;)isNaN(n=h(e[i]))?--a:o+=n;else for(;++i<r;)isNaN(n=h(t(e[i],i,e)))?--a:o+=n;if(a)return o/a},L=function(e,t){var n,a=e.length,i=-1,o=[];if(null==t)for(;++i<a;)isNaN(n=h(e[i]))||o.push(n);else for(;++i<a;)isNaN(n=h(t(e[i],i,e)))||o.push(n);return C(o.sort(r),.5)},W=function(e){for(var t,n,r,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(n=new Array(o);--a>=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n},F=function(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<a;)null!=(n=e[i])&&r>n&&(r=n)}else for(;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<a;)null!=(n=t(e[i],i,e))&&r>n&&(r=n);return r},z=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},B=function(e,t){if(n=e.length){var n,a,i=0,o=0,u=e[o];for(null==t&&(t=r);++i<n;)(t(a=e[i],u)<0||0!==t(u,u))&&(u=a,o=i);return 0===t(u,u)?o:void 0}},U=function(e,t,n){for(var r,a,i=(null==n?e.length:n)-(t=null==t?0:+t);i;)a=Math.random()*i--|0,r=e[i+t],e[i+t]=e[a+t],e[a+t]=r;return e},q=function(e,t){var n,r=e.length,a=-1,i=0;if(null==t)for(;++a<r;)(n=+e[a])&&(i+=n);else for(;++a<r;)(n=+t(e[a],a,e))&&(i+=n);return i},H=function(e){if(!(a=e.length))return[];for(var t=-1,n=F(e,I),r=new Array(n);++t<n;)for(var a,i=-1,o=r[t]=new Array(a);++i<a;)o[i]=e[i][t];return r};function I(e){return e.length}var Y=function(){return H(arguments)};n.d(t,"bisect",function(){return c}),n.d(t,"bisectRight",function(){return o}),n.d(t,"bisectLeft",function(){return u}),n.d(t,"ascending",function(){return r}),n.d(t,"bisector",function(){return a}),n.d(t,"cross",function(){return f}),n.d(t,"descending",function(){return d}),n.d(t,"deviation",function(){return m}),n.d(t,"extent",function(){return _}),n.d(t,"histogram",function(){return N}),n.d(t,"thresholdFreedmanDiaconis",function(){return P}),n.d(t,"thresholdScott",function(){return R}),n.d(t,"thresholdSturges",function(){return S}),n.d(t,"max",function(){return D}),n.d(t,"mean",function(){return A}),n.d(t,"median",function(){return L}),n.d(t,"merge",function(){return W}),n.d(t,"min",function(){return F}),n.d(t,"pairs",function(){return s}),n.d(t,"permute",function(){return z}),n.d(t,"quantile",function(){return C}),n.d(t,"range",function(){return x}),n.d(t,"scan",function(){return B}),n.d(t,"shuffle",function(){return U}),n.d(t,"sum",function(){return q}),n.d(t,"ticks",function(){return T}),n.d(t,"tickIncrement",function(){return E}),n.d(t,"tickStep",function(){return j}),n.d(t,"transpose",function(){return H}),n.d(t,"variance",function(){return p}),n.d(t,"zip",function(){return Y})},function(e,t,n){"use strict";n.r(t),n.d(t,"Group",function(){return s});var r=n(1),a=n.n(r),i=n(2),o=n.n(i),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};function s(e){var t=e.top,n=void 0===t?0:t,r=e.left,i=void 0===r?0:r,s=e.transform,l=e.className,f=e.children,d=c(e,["top","left","transform","className","children"]);return a.a.createElement("g",u({className:o()("vx-group",l),transform:s||"translate("+i+", "+n+")"},d),f)}},function(e,t,n){"use strict";var r=Math.PI,a=2*r,i=a-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new o}o.prototype=u.prototype={constructor:o,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(e,t,n,a,i){e=+e,t=+t,n=+n,a=+a,i=+i;var o=this._x1,u=this._y1,c=n-e,s=a-t,l=o-e,f=u-t,d=l*l+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(f*c-s*l)>1e-6&&i){var h=n-o,p=a-u,m=c*c+s*s,_=h*h+p*p,g=Math.sqrt(m),y=Math.sqrt(d),v=i*Math.tan((r-Math.acos((m+d-_)/(2*g*y)))/2),b=v/y,w=v/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>l*p)+","+(this._x1=e+w*c)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,o,u,c){e=+e,t=+t;var s=(n=+n)*Math.cos(o),l=n*Math.sin(o),f=e+s,d=t+l,h=1^c,p=c?o-u:u-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),n&&(p<0&&(p=p%a+a),p>i?this._+="A"+n+","+n+",0,1,"+h+","+(e-s)+","+(t-l)+"A"+n+","+n+",0,1,"+h+","+(this._x1=f)+","+(this._y1=d):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+h+","+(this._x1=e+n*Math.cos(u))+","+(this._y1=t+n*Math.sin(u))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var c=u;n.d(t,"a",function(){return c})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){var n=t.x,a=void 0===n?0:n,i=t.y,o=void 0===i?0:i;r(this,e),this.x=a,this.y=o}return a(e,[{key:"value",value:function(){return{x:this.x,y:this.y}}},{key:"toArray",value:function(){return[this.x,this.y]}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},a=function(e){return(e=r(Math.abs(e)))?e[1]:NaN},i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){return new u(e)}function u(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}o.prototype=u.prototype,u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var c,s,l,f,d=function(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(a>0){if(!+e[r])break e;a=0}}return a>0?e.slice(0,a)+e.slice(t+1):e},h=function(e,t){var n=r(e,t);if(!n)return e+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")},p={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return h(100*e,t)},r:h,s:function(e,t){var n=r(e,t);if(!n)return e+"";var a=n[0],i=n[1],o=i-(c=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=a.length;return o===u?a:o>u?a+new Array(o-u+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+r(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},m=function(e){return e},_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],g=function(e){var t=e.grouping&&e.thousands?function(e,t){return function(n,r){for(var a=n.length,i=[],o=0,u=e[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=e[o=(o+1)%e.length];return i.reverse().join(t)}}(e.grouping,e.thousands):m,n=e.currency,r=e.decimal,i=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):m,u=e.percent||"%";function s(e){var a=(e=o(e)).fill,s=e.align,l=e.sign,f=e.symbol,h=e.zero,m=e.width,g=e.comma,y=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):p[b]||(null==y&&(y=12),v=!0,b="g"),(h||"0"===a&&"="===s)&&(h=!0,a="0",s="=");var w="$"===f?n[0]:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===f?n[1]:/[%p]/.test(b)?u:"",k=p[b],M=/[defgprs%]/.test(b);function O(e){var n,o,u,f=w,p=x;if("c"===b)p=k(e)+p,e="";else{var O=(e=+e)<0;if(e=k(Math.abs(e),y),v&&(e=d(e)),O&&0==+e&&(O=!1),f=(O?"("===l?l:"-":"-"===l||"("===l?"":l)+f,p=("s"===b?_[8+c/3]:"")+p+(O&&"("===l?")":""),M)for(n=-1,o=e.length;++n<o;)if(48>(u=e.charCodeAt(n))||u>57){p=(46===u?r+e.slice(n+1):e.slice(n))+p,e=e.slice(0,n);break}}g&&!h&&(e=t(e,1/0));var T=f.length+e.length+p.length,E=T<m?new Array(m-T+1).join(a):"";switch(g&&h&&(e=t(E+e,E.length?m-p.length:1/0),E=""),s){case"<":e=f+e+p+E;break;case"=":e=f+E+e+p;break;case"^":e=E.slice(0,T=E.length>>1)+f+e+p+E.slice(T);break;default:e=E+f+e+p}return i(e)}return y=null==y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return e+""},O}return{format:s,formatPrefix:function(e,t){var n=s(((e=o(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(a(t)/3))),i=Math.pow(10,-r),u=_[8+r/3];return function(e){return n(i*e)+u}}}};function y(e){return s=g(e),l=s.format,f=s.formatPrefix,s}y({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var v=function(e){return Math.max(0,-a(Math.abs(e)))},b=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(a(t)/3)))-a(Math.abs(e)))},w=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,a(t)-a(e))+1};n.d(t,"formatDefaultLocale",function(){return y}),n.d(t,"format",function(){return l}),n.d(t,"formatPrefix",function(){return f}),n.d(t,"formatLocale",function(){return g}),n.d(t,"formatSpecifier",function(){return o}),n.d(t,"precisionFixed",function(){return v}),n.d(t,"precisionPrefix",function(){return b}),n.d(t,"precisionRound",function(){return w})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arcBuilder=t.pathBuilder=t.lineBuilder=void 0;var r=n(3);t.lineBuilder=function(e){var t=e.data,n=e.curve,a=void 0===n?r.curveLinear:n,i=e.canvasContext,o=e.className,u=e.classID,c=(0,r.line)().curve(a),s={type:"path",className:o,classID:u,data:t};return i?(c.context(i),s.pathMethods=c):s.attrs={d:c(t)},s},t.pathBuilder=function(e){var t=e.d,n=e.curve,a=void 0===n?r.curveLinear:n,i=e.canvasContext,o=e.className,u=e.classID,c=(0,r.line)().curve(a),s={type:"path",className:o,classID:u};return i?c.context(i):s.attrs={d:t},s},t.arcBuilder=function(e){var t=e.data,n=e.canvasContext,a={type:"path",className:e.className,classID:e.classID,data:t},i=(0,r.arc)().innerRadius(t.innerRadius||0).outerRadius(t.outerRadius||t.radius||2).startAngle(t.startAngle||0).endAngle(t.endAngle||2*Math.PI);return n?i.context(n):a.attrs={d:i()},a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ").trim()}},function(e,t,n){e.exports=n(71)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.default,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.default,_=e.disable,g=void 0===_?[]:_,y=e.connector,v=e.note,b=e.subject,w=e.x,x=e.y,k=e.dx,M=e.dy,O=e.nx,T=e.ny,E=e.color,j=e.className,S=e.onDrag,N=e.onDragStart,C=e.onDragEnd,P=e.editMode,R=e.events,D={type:{curve:s.default,line:u.default,elbow:c.default},end:{dot:l.default,arrow:f.default}},A=void 0,L=void 0;-1===g.indexOf("connector")&&(A=y&&D.type[y.type]||t,L=y&&D.end[y.end]);var W=m(e.editMode);return a.default.createElement(W,r({x:w,y:x,dx:k,dy:M,nx:O,ny:T,color:E,className:j,onDrag:S,onDragStart:N,onDragEnd:C,editMode:P},o,b,{events:R}),A&&a.default.createElement(A,y,L&&a.default.createElement(L,null)),i&&-1===g.indexOf("subject")&&a.default.createElement(i,null),v&&-1===g.indexOf("note")&&a.default.createElement(p,r({},n,v)))};var a=p(n(1)),i=p(n(27)),o=p(n(43)),u=p(n(18)),c=p(n(14)),s=p(n(23)),l=p(n(33)),f=p(n(35)),d=p(n(13)),h=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}var m=function(e){return e?o.default:i.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(1)),o=u(n(24));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),a(t,[{key:"getComponents",value:function(){}},{key:"render",value:function(){var e=this,t=this.props,n=t.editMode,a=t.color,u=this.getComponents(this.props)||{},c=void 0;return n&&(c=[i.default.createElement(o.default,{key:"subject-handle",handleStart:this.props.dragStart,handleStop:this.props.dragEnd,handleDrag:this.props.dragSubject})],u.handles&&(c=c.concat(u.handles.map(function(t,n){return i.default.createElement(o.default,{key:"subjecthandle-"+n,handleStart:e.props.dragStart,handleStop:e.props.dragEnd,x:t.x,y:t.y,offsetParent:t.offsetParent&&e.subject,handleDrag:function(n,r){e.props.dragSubjectSettings(n,u.handleFunction(t,r))}})})))),i.default.createElement("g",r({className:"annotation-subject"},this.props.gAttrs,{ref:function(t){e.subject=t}}),u.components&&u.components.map(function(e,t){var n={};return e?(Object.keys(e.attrs).forEach(function(t){e.attrs[t]&&"text"!==t&&(n[t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})]=e.attrs[t])}),i.default.createElement(e.type,r({key:t,className:e.className,fill:"none",stroke:a},n),e.attrs.text)):null}),c)}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(o(n(1)),o(n(69))),i=o(n(17));function o(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.x,n=e.y,r=e.dy,i=e.dx,o=e.radius,u=e.radiusPadding,c=e.outerRadius,s=e.width,l=e.height;return(0,a.default)({x:t,y:n,dx:i,dy:r,radius:o,radiusPadding:u,outerRadius:c,width:s,height:l})}}]),t}();t.default=u},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Text",function(){return ze}),n.d(t,"getStringWidth",function(){return De});var r=n(1),a=n.n(r),i=n(19),o=n.n(i),u="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function c(e){return function(){return e}}var s=function(){};s.thatReturns=c,s.thatReturnsFalse=c(!1),s.thatReturnsTrue=c(!0),s.thatReturnsNull=c(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(e){return e};var l=s,f=function(e){};var d=function(e,t,n,r,a,i,o,u){if(f(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,u],l=0;(c=new Error(t.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}},h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}})()&&Object.assign;var _="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var g=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){e.exports=function(){function e(e,t,n,r,a,i){i!==_&&d(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=l,n.PropTypes=n,n}()}),y="object"==typeof u&&u&&u.Object===Object&&u,v="object"==typeof self&&self&&self.Object===Object&&self,b=y||v||Function("return this")(),w=b.Symbol,x=Object.prototype,k=x.hasOwnProperty,M=x.toString,O=w?w.toStringTag:void 0;var T=function(e){var t=k.call(e,O),n=e[O];try{e[O]=void 0}catch(e){}var r=M.call(e);return t?e[O]=n:delete e[O],r},E=Object.prototype.toString;var j=function(e){return E.call(e)},S="[object Null]",N="[object Undefined]",C=w?w.toStringTag:void 0;var P=function(e){return null==e?void 0===e?N:S:C&&C in Object(e)?T(e):j(e)};var R=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},D="[object AsyncFunction]",A="[object Function]",L="[object GeneratorFunction]",W="[object Proxy]";var F=function(e){if(!R(e))return!1;var t=P(e);return t==A||t==L||t==D||t==W},z=b["__core-js_shared__"],B=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var U=function(e){return!!B&&B in e},q=Function.prototype.toString;var H=function(e){if(null!=e){try{return q.call(e)}catch(e){}try{return e+""}catch(e){}}return""},I=/^\[object .+?Constructor\]$/,Y=Function.prototype,G=Object.prototype,V=Y.toString,X=G.hasOwnProperty,$=RegExp("^"+V.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Z=function(e){return!(!R(e)||U(e))&&(F(e)?$:I).test(H(e))};var J=function(e,t){return null==e?void 0:e[t]};var Q=function(e,t){var n=J(e,t);return Z(n)?n:void 0},K=Q(Object,"create");var ee=function(){this.__data__=K?K(null):{},this.size=0};var te=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne="__lodash_hash_undefined__",re=Object.prototype.hasOwnProperty;var ae=function(e){var t=this.__data__;if(K){var n=t[e];return n===ne?void 0:n}return re.call(t,e)?t[e]:void 0},ie=Object.prototype.hasOwnProperty;var oe=function(e){var t=this.__data__;return K?void 0!==t[e]:ie.call(t,e)},ue="__lodash_hash_undefined__";var ce=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?ue:t,this};function se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}se.prototype.clear=ee,se.prototype.delete=te,se.prototype.get=ae,se.prototype.has=oe,se.prototype.set=ce;var le=se;var fe=function(){this.__data__=[],this.size=0};var de=function(e,t){return e===t||e!=e&&t!=t};var he=function(e,t){for(var n=e.length;n--;)if(de(e[n][0],t))return n;return-1},pe=Array.prototype.splice;var me=function(e){var t=this.__data__,n=he(t,e);return!(n<0||(n==t.length-1?t.pop():pe.call(t,n,1),--this.size,0))};var _e=function(e){var t=this.__data__,n=he(t,e);return n<0?void 0:t[n][1]};var ge=function(e){return he(this.__data__,e)>-1};var ye=function(e,t){var n=this.__data__,r=he(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ve.prototype.clear=fe,ve.prototype.delete=me,ve.prototype.get=_e,ve.prototype.has=ge,ve.prototype.set=ye;var be=ve,we=Q(b,"Map");var xe=function(){this.size=0,this.__data__={hash:new le,map:new(we||be),string:new le}};var ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Me=function(e,t){var n=e.__data__;return ke(t)?n["string"==typeof t?"string":"hash"]:n.map};var Oe=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t};var Te=function(e){return Me(this,e).get(e)};var Ee=function(e){return Me(this,e).has(e)};var je=function(e,t){var n=Me(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Se.prototype.clear=xe,Se.prototype.delete=Oe,Se.prototype.get=Te,Se.prototype.has=Ee,Se.prototype.set=je;var Ne=Se,Ce="Expected a function";function Pe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Ce);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Pe.Cache||Ne),n}Pe.Cache=Ne;var Re="__react_svg_text_measurement_id";var De=Pe(function(e,t){try{var n=document.getElementById(Re);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.width=0,r.style.height=0,(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",Re),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)}),Ae=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),We=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ze=function(e){function t(e){Ae(this,t);var n=Fe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={wordsByLines:[]},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),Le(t,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.children!==e.children||this.props.style!==e.style;this.updateWordsByLines(e,t)}},{key:"updateWordsByLines",value:function(e,t){if(e.width||e.scaleToFit){if(t){var n=e.children?e.children.toString().split(/\s+/):[];this.wordsWithComputedWidth=n.map(function(t){return{word:t,width:De(t,e.style)}}),this.spaceWidth=De(" ",e.style)}var r=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,e.width);this.setState({wordsByLines:r})}else this.updateWordsWithoutCalculate(e)}},{key:"updateWordsWithoutCalculate",value:function(e){var t=e.children?e.children.toString().split(/\s+/):[];this.setState({wordsByLines:[{words:t}]})}},{key:"calculateWordsByLines",value:function(e,t,n){var r=this.props.scaleToFit;return e.reduce(function(e,a){var i=a.word,o=a.width,u=e[e.length-1];if(u&&(null==n||r||u.width+o+t<n))u.words.push(i),u.width+=o+t;else{var c={words:[i],width:o};e.push(c)}return e},[])}},{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,i=e.verticalAnchor,u=e.scaleToFit,c=e.angle,s=e.lineHeight,l=e.capHeight,f=e.innerRef,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","innerRef"]),h=this.state.wordsByLines,p=d.x,m=d.y,_=void 0;switch(i){case"start":_=o()("calc("+l+")");break;case"middle":_=o()("calc("+(h.length-1)/2+" * -"+s+" + ("+l+" / 2))");break;default:_=o()("calc("+(h.length-1)+" * -"+s+")")}var g=[];if(u&&h.length){var y=h[0].width,v=this.props.width/y,b=v,w=p-v*p,x=m-b*m;g.push("matrix("+v+", 0, 0, "+b+", "+w+", "+x+")")}return c&&g.push("rotate("+c+", "+p+", "+m+")"),g.length&&(d.transform=g.join(" ")),a.a.createElement("svg",{ref:f,x:t,y:n,fontSize:d.fontSize,style:{overflow:"visible"}},a.a.createElement("text",We({},d,{textAnchor:r}),h.map(function(e,t){return a.a.createElement("tspan",{x:p,dy:0===t?_:s,key:t},e.words.join(" "))})))}}]),t}();ze.defaultProps={x:0,y:0,dx:0,dy:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},ze.propTypes={scaleToFit:g.bool,angle:g.number,textAnchor:g.oneOf(["start","middle","end","inherit"]),verticalAnchor:g.oneOf(["start","middle","end"]),style:g.object,innerRef:g.func}}.call(this,n(22))},function(e,t,n){"use strict";n.r(t),n.d(t,"Arc",function(){return g}),n.d(t,"Pie",function(){return y}),n.d(t,"Line",function(){return v}),n.d(t,"LinePath",function(){return b}),n.d(t,"LineRadial",function(){return w}),n.d(t,"Area",function(){return x}),n.d(t,"AreaClosed",function(){return k}),n.d(t,"AreaStack",function(){return M}),n.d(t,"Bar",function(){return O}),n.d(t,"BarGroup",function(){return T}),n.d(t,"BarGroupHorizontal",function(){return E}),n.d(t,"BarStack",function(){return j}),n.d(t,"BarStackHorizontal",function(){return S}),n.d(t,"Stack",function(){return L}),n.d(t,"callOrValue",function(){return h}),n.d(t,"stackOffset",function(){return A}),n.d(t,"STACK_OFFSETS",function(){return R}),n.d(t,"STACK_OFFSET_NAMES",function(){return D}),n.d(t,"stackOrder",function(){return P}),n.d(t,"STACK_ORDERS",function(){return N}),n.d(t,"STACK_ORDER_NAMES",function(){return C}),n.d(t,"LinkHorizontal",function(){return F}),n.d(t,"pathHorizontalDiagonal",function(){return W}),n.d(t,"LinkVertical",function(){return B}),n.d(t,"pathVerticalDiagonal",function(){return z}),n.d(t,"LinkRadial",function(){return q}),n.d(t,"pathRadialDiagonal",function(){return U}),n.d(t,"LinkHorizontalCurve",function(){return I}),n.d(t,"pathHorizontalCurve",function(){return H}),n.d(t,"LinkVerticalCurve",function(){return G}),n.d(t,"pathVerticalCurve",function(){return Y}),n.d(t,"LinkRadialCurve",function(){return X}),n.d(t,"pathRadialCurve",function(){return V}),n.d(t,"LinkHorizontalLine",function(){return Z}),n.d(t,"pathHorizontalLine",function(){return $}),n.d(t,"LinkVerticalLine",function(){return Q}),n.d(t,"pathVerticalLine",function(){return J}),n.d(t,"LinkRadialLine",function(){return ee}),n.d(t,"pathRadialLine",function(){return K}),n.d(t,"LinkHorizontalStep",function(){return ne}),n.d(t,"pathHorizontalStep",function(){return te}),n.d(t,"LinkVerticalStep",function(){return ae}),n.d(t,"pathVerticalStep",function(){return re}),n.d(t,"LinkRadialStep",function(){return oe}),n.d(t,"pathRadialStep",function(){return ie});var r=n(1),a=n.n(r),i=n(2),o=n.n(i),u=n(3),c=n(5),s=n(0),l=n.n(s),f=n(7),d=n(6);function h(e,t){return"function"==typeof e?e(t):e}function p(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=h(e[r],t),n},{})}var m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};function g(e){var t=e.className,n=e.data,r=e.centroid,i=e.innerRadius,c=e.outerRadius,s=e.cornerRadius,l=e.startAngle,f=e.endAngle,d=e.padAngle,h=e.padRadius,g=_(e,["className","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius"]),y=Object(u.arc)();return r&&y.centroid(r),i&&y.innerRadius(i),c&&y.outerRadius(c),s&&y.cornerRadius(s),l&&y.startAngle(l),f&&y.endAngle(f),d&&y.padAngle(d),h&&y.padRadius(h),a.a.createElement("path",m({className:o()("vx-arc",t),d:y(n)},p(g,n)))}function y(e){var t=e.className,n=void 0===t?"":t,r=e.top,i=void 0===r?0:r,s=e.left,l=void 0===s?0:s,f=e.data,d=e.centroid,h=e.innerRadius,g=void 0===h?0:h,y=e.outerRadius,v=e.cornerRadius,b=e.startAngle,w=void 0===b?0:b,x=e.endAngle,k=e.padAngle,M=e.padRadius,O=e.pieSort,T=e.pieSortValues,E=e.pieValue,j=e.children,S=_(e,["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children"]),N=Object(u.arc)();N.innerRadius(g),y&&N.outerRadius(y),v&&N.cornerRadius(v),M&&N.padRadius(M);var C=Object(u.pie)();void 0!==O&&C.sort(O),void 0!==T&&C.sortValues(T),E&&C.value(E),null!=k&&C.padAngle(k),null!=w&&C.startAngle(w),null!=x&&C.endAngle(x);var P=C(f),R={arcs:P,generatePathProps:function(e,t){return m({className:o()("vx-pie-arc",n),d:N(e)},p(S,m({},e,{index:t,centroid:d?N.centroid(e):void 0})))},generateCentroid:function(e){return d&&d(N.centroid(e),e)}};return a.a.createElement(c.Group,{className:"vx-pie-arcs-group",top:i,left:l},j?j(R):P.map(function(e,t){var n=R.generatePathProps(e,t);return a.a.createElement("g",{key:"pie-arc-"+t},a.a.createElement("path",n),R.generateCentroid(e))}))}function v(e){var t=e.from,n=void 0===t?new f.a({x:0,y:0}):t,r=e.to,i=void 0===r?new f.a({x:1,y:1}):r,u=e.stroke,c=void 0===u?"black":u,s=e.strokeWidth,l=void 0===s?1:s,d=e.strokeDasharray,h=void 0===d?"":d,g=e.transform,y=void 0===g?"":g,v=e.className,b=void 0===v?"":v,w=e.data,x=e.innerRef,k=_(e,["from","to","stroke","strokeWidth","strokeDasharray","transform","className","data","innerRef"]);return a.a.createElement("line",m({ref:x,className:o()("vx-line",b),x1:n.x,y1:n.y,x2:i.x,y2:i.y,stroke:c,strokeWidth:l,strokeDasharray:h,transform:y},p(k,w)))}function b(e){var t=e.children,n=e.data,r=e.xScale,i=e.yScale,c=e.x,s=e.y,l=e.defined,f=void 0===l?function(){return!0}:l,d=e.className,h=e.stroke,g=void 0===h?"steelblue":h,y=e.strokeWidth,v=void 0===y?2:y,b=e.strokeDasharray,w=void 0===b?"":b,x=e.strokeDashoffset,k=void 0===x?0:x,M=e.fill,O=void 0===M?"none":M,T=e.curve,E=void 0===T?u.curveLinear:T,j=e.glyph,S=e.innerRef,N=_(e,["children","data","xScale","yScale","x","y","defined","className","stroke","strokeWidth","strokeDasharray","strokeDashoffset","fill","curve","glyph","innerRef"]),C=Object(u.line)().x(function(){return r(c.apply(void 0,arguments))}).y(function(){return i(s.apply(void 0,arguments))}).defined(f).curve(E);return t?t({path:C}):a.a.createElement("g",null,a.a.createElement("path",m({ref:S,className:o()("vx-linepath",d),d:C(n),stroke:g,strokeWidth:v,strokeDasharray:w,strokeDashoffset:k,fill:O},p(N,n))),j&&a.a.createElement("g",{className:"vx-linepath-glyphs"},n.map(j)))}function w(e){var t=e.className,n=void 0===t?"":t,r=e.angle,i=e.radius,c=e.defined,s=e.curve,l=e.data,f=e.innerRef,d=_(e,["className","angle","radius","defined","curve","data","innerRef"]),h=Object(u.radialLine)();return r&&h.angle(r),i&&h.radius(i),c&&h.defined(c),s&&h.curve(s),a.a.createElement("g",null,a.a.createElement("path",m({ref:f,className:o()("vx-line-radial",n),d:h(l)},p(d,l))))}function x(e){var t=e.children,n=e.x,r=e.x0,i=e.x1,c=e.y,s=e.y0,l=e.y1,f=e.xScale,d=e.yScale,h=e.data,g=void 0===h?[]:h,y=e.defined,v=void 0===y?function(){return!0}:y,b=e.className,w=e.strokeDasharray,x=e.strokeWidth,k=void 0===x?2:x,M=e.stroke,O=void 0===M?"black":M,T=e.fill,E=void 0===T?"rgba(0,0,0,0.3)":T,j=e.curve,S=e.innerRef,N=_(e,["children","x","x0","x1","y","y0","y1","xScale","yScale","data","defined","className","strokeDasharray","strokeWidth","stroke","fill","curve","innerRef"]),C=Object(u.area)();return n&&C.x(function(){return f(n.apply(void 0,arguments))}),r&&C.x0(function(){return f(r.apply(void 0,arguments))}),i&&C.x1(function(){return f(i.apply(void 0,arguments))}),c&&C.y(function(){return d(c.apply(void 0,arguments))}),s&&C.y0(function(){return d(s.apply(void 0,arguments))}),l&&C.y1(function(){return d(l.apply(void 0,arguments))}),v&&C.defined(v),j&&C.curve(j),t?t({path:C}):a.a.createElement("g",null,a.a.createElement("path",m({ref:S,className:o()("vx-area",b),d:C(g),stroke:O,strokeWidth:k,strokeDasharray:w,fill:E},p(N,g))))}function k(e){var t=e.x,n=e.y,r=e.y0,i=e.xScale,c=e.yScale,s=e.data,l=e.defined,f=void 0===l?function(){return!0}:l,d=e.className,h=e.strokeDasharray,g=e.strokeWidth,y=void 0===g?2:g,v=e.stroke,b=void 0===v?"black":v,w=e.fill,x=void 0===w?"rgba(0,0,0,0.3)":w,k=e.curve,M=e.innerRef,O=_(e,["x","y","y0","xScale","yScale","data","defined","className","strokeDasharray","strokeWidth","stroke","fill","curve","innerRef"]),T=Object(u.area)().x(function(){return i(t.apply(void 0,arguments))}).y0(r||c.range()[0]).y1(function(){return c(n.apply(void 0,arguments))}).defined(f);return k&&T.curve(k),a.a.createElement("g",null,a.a.createElement("path",m({ref:M,className:o()("vx-area-closed",d),d:T(s),stroke:b,strokeWidth:y,strokeDasharray:h,fill:x},p(O,s))))}function M(e){var t=e.className,n=(e.top,e.left,e.keys),r=e.data,i=e.curve,c=e.defined,s=e.x,l=e.x0,f=e.x1,d=e.y0,h=e.y1,g=e.glyph,y=e.reverse,v=void 0!==y&&y,b=_(e,["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","glyph","reverse"]),w=Object(u.stack)();n&&w.keys(n);var x=Object(u.area)();s&&x.x(s),l&&x.x0(l),f&&x.x1(f),d&&x.y0(d),h&&x.y1(h),i&&x.curve(i),c&&x.defined(c);var k=w(r);return v&&k.reverse(),a.a.createElement("g",null,k.map(function(e,n){return a.a.createElement("path",m({className:o()("vx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:x(e)},p(b,{datum:e[n],index:n,series:e})))}),!!g&&a.a.createElement("g",{className:"vx-area-stack-glyphs"},r.map(g)))}function O(e){var t=e.className,n=e.innerRef,r=e.data,i=e.x,u=void 0===i?0:i,c=e.y,s=void 0===c?0:c,l=e.width,f=e.height,d=e.rx,h=e.ry,g=e.fill,y=void 0===g?"steelblue":g,v=e.fillOpacity,b=e.stroke,w=e.strokeWidth,x=e.strokeDasharray,k=e.strokeLinecap,M=e.strokeLinejoin,O=e.strokeMiterlimit,T=e.strokeOpacity,E=_(e,["className","innerRef","data","x","y","width","height","rx","ry","fill","fillOpacity","stroke","strokeWidth","strokeDasharray","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity"]);return a.a.createElement("rect",m({ref:n,className:o()("vx-bar",t),x:u,y:s,width:l,height:f,rx:d,ry:h,fill:y,fillOpacity:v,stroke:b,strokeWidth:w,strokeDasharray:x,strokeLinecap:k,strokeLinejoin:M,strokeMiterlimit:O,strokeOpacity:T},p(E,r)))}function T(e){var t=e.data,n=e.className,r=e.top,i=e.left,u=e.x0,s=e.x0Scale,l=e.x1Scale,f=e.yScale,d=e.zScale,h=e.keys,p=e.height,g=_(e,["data","className","top","left","x0","x0Scale","x1Scale","yScale","zScale","keys","height"]),y=s.tickFormat?s.tickFormat():function(e){return e};return a.a.createElement(c.Group,{className:o()("vx-bar-group",n),top:r,left:i},t&&t.map(function(e,t){return a.a.createElement(c.Group,{key:"bar-group-"+t+"-"+u(e),left:s(u(e))},h&&h.map(function(t,n){var r=e[t];return a.a.createElement(O,m({key:"bar-group-bar-"+n+"-"+r+"-"+t,x:l(t),y:f(r),width:l.bandwidth(),height:p-f(r),fill:d(t),data:{key:t,value:r,x:y(u(e)),data:e}},g))}))}))}function E(e){var t=e.data,n=e.className,r=e.top,i=e.left,u=e.y0,s=e.y0Scale,l=e.y1Scale,f=e.xScale,d=e.zScale,h=e.keys,p=e.width,g=_(e,["data","className","top","left","y0","y0Scale","y1Scale","xScale","zScale","keys","width"]),y=s.tickFormat?s.tickFormat():function(e){return e};return a.a.createElement(c.Group,{className:o()("vx-bar-group-horizontal",n),top:r,left:i},t&&t.map(function(e,t){return a.a.createElement(c.Group,{key:"bar-group-"+t+"-"+u(e),top:s(u(e))},h&&h.map(function(t,n){var r=e[t];return a.a.createElement(O,m({key:"bar-group-bar-"+n+"-"+r+"-"+t,x:0,y:l(t),width:p-f(r),height:l.bandwidth(),fill:d(t),data:{key:t,value:r,y:y(u(e)),data:e}},g))}))}))}function j(e){var t=e.data,n=e.className,r=e.top,i=e.left,s=e.x,l=e.xScale,f=e.yScale,d=e.zScale,h=e.keys,p=(e.height,_(e,["data","className","top","left","x","xScale","yScale","zScale","keys","height"])),g=Object(u.stack)().keys(h)(t),y=l.tickFormat?l.tickFormat():function(e){return e},v=l.bandwidth(),b=l.step(),w=l.paddingInner(),x=l.paddingOuter();return a.a.createElement(c.Group,{className:o()("vx-bar-stack",n),top:r,left:i},g&&g.map(function(e,t){return a.a.createElement(c.Group,{key:"vx-bar-stack-"+t},e.map(function(n,r){var i=f(n[0])-f(n[1]);return a.a.createElement(O,m({key:"bar-group-bar-"+t+"-"+r+"-"+e.key,x:l(s(n.data)),y:f(n[1]),width:v,height:i,fill:d(e.key),data:{bandwidth:v,paddingInner:w,paddingOuter:x,step:b,key:e.key,value:n[1],height:i,width:v,x:s(n.data),xFormatted:y(s(n.data)),data:n.data}},p))}))}))}function S(e){var t=e.data,n=e.className,r=e.top,i=e.left,s=e.y,l=e.xScale,f=e.yScale,d=e.zScale,h=e.keys,p=(e.height,_(e,["data","className","top","left","y","xScale","yScale","zScale","keys","height"])),g=Object(u.stack)().keys(h)(t),y=f.tickFormat?f.tickFormat():function(e){return e},v=f.bandwidth(),b=f.step(),w=f.paddingInner(),x=f.paddingOuter();return a.a.createElement(c.Group,{className:o()("vx-bar-stack-horizontal",n),top:r,left:i},g&&g.map(function(e,t){return a.a.createElement(c.Group,{key:"vx-bar-stack-horizontal-"+t},e.map(function(n,r){var i=l(n[1])-l(n[0]);return a.a.createElement(O,m({key:"bar-group-bar-"+t+"-"+r+"-"+e.key,x:l(n[0]),y:f(s(n.data)),width:i,height:v,fill:d(e.key),data:{bandwidth:v,paddingInner:w,paddingOuter:x,step:b,key:e.key,value:n[0],height:v,width:i,y:s(n.data),yFormatted:y(s(n.data)),data:n.data}},p))}))}))}v.propTypes={innerRef:l.a.func},b.propTypes={innerRef:l.a.func,xScale:l.a.func,yScale:l.a.func,data:l.a.array,x:l.a.func,y:l.a.func,defined:l.a.func,stroke:l.a.string,strokeWidth:l.a.number,glyph:l.a.func,curve:l.a.func},w.propTypes={innerRef:l.a.func},x.propTypes={x:l.a.func,x0:l.a.func,x1:l.a.func,y:l.a.func,y0:l.a.func,y1:l.a.func,xScale:l.a.func,yScale:l.a.func,data:l.a.array,defined:l.a.func,className:l.a.oneOfType([l.a.string,l.a.bool,l.a.object,l.a.array]),innerRef:l.a.func,strokeDasharray:l.a.string,strokeWidth:l.a.number,stroke:l.a.string,fill:l.a.string,curve:l.a.func},k.propTypes={innerRef:l.a.func},O.propTypes={innerRef:l.a.func},T.propTypes={data:l.a.array.isRequired,x0:l.a.func.isRequired,x0Scale:l.a.func.isRequired,x1Scale:l.a.func.isRequired,yScale:l.a.func.isRequired,zScale:l.a.func.isRequired,keys:l.a.array.isRequired,height:l.a.number.isRequired,className:l.a.string,top:l.a.number,left:l.a.number},E.propTypes={data:l.a.array.isRequired,y0:l.a.func.isRequired,y0Scale:l.a.func.isRequired,y1Scale:l.a.func.isRequired,xScale:l.a.func.isRequired,zScale:l.a.func.isRequired,keys:l.a.array.isRequired,width:l.a.number.isRequired,className:l.a.string,top:l.a.number,left:l.a.number},j.propTypes={data:l.a.array.isRequired,x:l.a.func.isRequired,xScale:l.a.func.isRequired,yScale:l.a.func.isRequired,zScale:l.a.func.isRequired,keys:l.a.array.isRequired,className:l.a.string,top:l.a.number,left:l.a.number},S.propTypes={data:l.a.array.isRequired,y:l.a.func.isRequired,xScale:l.a.func.isRequired,yScale:l.a.func.isRequired,zScale:l.a.func.isRequired,keys:l.a.array.isRequired,className:l.a.string,top:l.a.number,left:l.a.number};var N={ascending:u.stackOrderAscending,descending:u.stackOrderDescending,insideout:u.stackOrderInsideOut,none:u.stackOrderNone,reverse:u.stackOrderReverse},C=Object.keys(N);function P(e){return N[e]||N.none}var R={expand:u.stackOffsetExpand,diverging:u.stackOffsetDiverging,none:u.stackOffsetNone,silhouette:u.stackOffsetSilhouette,wiggle:u.stackOffsetWiggle},D=Object.keys(R);function A(e){return R[e]||R.none}function L(e){var t=e.className,n=e.top,r=void 0===n?0:n,i=e.left,s=void 0===i?0:i,l=e.keys,f=e.data,d=e.curve,h=e.defined,g=e.x,y=e.x0,v=e.x1,b=e.y0,w=e.y1,x=e.value,k=e.order,M=e.offset,O=e.render,T=e.reverse,E=void 0!==T&&T,j=_(e,["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","render","reverse"]),S=Object(u.stack)();l&&S.keys(l),x&&S.value(x),k&&S.order(P(k)),M&&S.offset(A(M));var N=Object(u.area)();g&&N.x(g),y&&N.x0(y),v&&N.x1(v),b&&N.y0(b),w&&N.y1(w),d&&N.curve(d),h&&N.defined(h);var C=S(f);return E&&C.reverse(),O?a.a.createElement(c.Group,{top:r,left:s},O({seriesData:C,path:N})):a.a.createElement(c.Group,{top:r,left:s},C.map(function(e,n){return a.a.createElement("path",m({className:o()("vx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:N(e)},p(j,{datum:e[n],index:n,series:e})))}))}function W(e){var t=e.source,n=e.target,r=e.x,a=e.y;return function(e){var i=Object(u.linkHorizontal)();return i.x(r),i.y(a),i.source(t),i.target(n),i(e)}}function F(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.y}:u,s=e.y,l=void 0===s?function(e){return e.x}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","x","y","source","target"]);return i=i||W({source:d,target:g,x:c,y:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link-horizontal",t),d:i(r)},p(y,r)))}function z(e){var t=e.source,n=e.target,r=e.x,a=e.y;return function(e){var i=Object(u.linkVertical)();return i.x(r),i.y(a),i.source(t),i.target(n),i(e)}}function B(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.x}:u,s=e.y,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","x","y","source","target"]);return i=i||z({source:d,target:g,x:c,y:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link-vertical",t),d:i(r)},p(y,r)))}function U(e){var t=e.source,n=e.target,r=e.angle,a=e.radius;return function(e){var i=Object(u.linkRadial)();return i.angle(r),i.radius(a),i.source(t),i.target(n),i(e)}}function q(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.angle,c=void 0===u?function(e){return e.x}:u,s=e.radius,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","angle","radius","source","target"]);return i=i||U({source:d,target:g,angle:c,radius:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link-radius",t),d:i(r)},p(y,r)))}function H(e){var t=e.source,n=e.target,r=e.x,a=e.y,i=e.percent;return function(e){var o=t(e),u=n(e),c=r(o),s=a(o),l=r(u),f=a(u),h=l-c,p=f-s,m=i*(h+p),_=i*(p-h),g=Object(d.a)();return g.moveTo(c,s),g.bezierCurveTo(c+m,s+_,l+_,f-m,l,f),g.toString()}}function I(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.y}:u,s=e.y,l=void 0===s?function(e){return e.x}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=e.percent,v=void 0===y?.2:y,b=_(e,["className","innerRef","data","path","x","y","source","target","percent"]);return i=i||H({source:d,target:g,x:c,y:l,percent:v}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(b,r)))}function Y(e){var t=e.source,n=e.target,r=e.x,a=e.y,i=e.percent;return function(e){var o=t(e),u=n(e),c=r(o),s=a(o),l=r(u),f=a(u),h=l-c,p=f-s,m=i*(h+p),_=i*(p-h),g=Object(d.a)();return g.moveTo(c,s),g.bezierCurveTo(c+m,s+_,l+_,f-m,l,f),g.toString()}}function G(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.x}:u,s=e.y,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=e.percent,v=void 0===y?.2:y,b=_(e,["className","innerRef","data","path","x","y","source","target","percent"]);return i=i||Y({source:d,target:g,x:c,y:l,percent:v}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(b,r)))}function V(e){var t=e.source,n=e.target,r=e.x,a=e.y,i=e.percent;return function(e){var o=t(e),u=n(e),c=r(o)-Math.PI/2,s=a(o),l=r(u)-Math.PI/2,f=a(u),h=s*Math.cos(c),p=s*Math.sin(c),m=f*Math.cos(l),_=f*Math.sin(l),g=m-h,y=_-p,v=i*(g+y),b=i*(y-g),w=Object(d.a)();return w.moveTo(h,p),w.bezierCurveTo(h+v,p+b,m+b,_-v,m,_),w.toString()}}function X(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.x}:u,s=e.y,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=e.percent,v=void 0===y?.2:y,b=_(e,["className","innerRef","data","path","x","y","source","target","percent"]);return i=i||V({source:d,target:g,x:c,y:l,percent:v}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(b,r)))}function $(e){var t=e.source,n=e.target,r=e.x,a=e.y;return function(e){var i=t(e),o=n(e),u=r(i),c=a(i),s=r(o),l=a(o),f=Object(d.a)();return f.moveTo(u,c),f.lineTo(s,l),f.toString()}}function Z(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.y}:u,s=e.y,l=void 0===s?function(e){return e.x}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","x","y","source","target"]);return i=i||$({source:d,target:g,x:c,y:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(y,r)))}function J(e){var t=e.source,n=e.target,r=e.x,a=e.y;return function(e){var i=t(e),o=n(e),u=r(i),c=a(i),s=r(o),l=a(o),f=Object(d.a)();return f.moveTo(u,c),f.lineTo(s,l),f.toString()}}function Q(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.x}:u,s=e.y,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","x","y","source","target"]);return i=i||J({source:d,target:g,x:c,y:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(y,r)))}function K(e){var t=e.source,n=e.target,r=e.x,a=e.y;return function(e){var i=t(e),o=n(e),u=r(i)-Math.PI/2,c=a(i),s=r(o)-Math.PI/2,l=a(o),f=Math.cos(u),h=Math.sin(u),p=Math.cos(s),m=Math.sin(s),_=Object(d.a)();return _.moveTo(c*f,c*h),_.lineTo(l*p,l*m),_.toString()}}function ee(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.x}:u,s=e.y,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","x","y","source","target"]);return i=i||K({source:d,target:g,x:c,y:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(y,r)))}function te(e){var t=e.source,n=e.target,r=e.x,a=e.y,i=e.percent;return function(e){var o=t(e),u=n(e),c=r(o),s=a(o),l=r(u),f=a(u),h=Object(d.a)();return h.moveTo(c,s),h.lineTo(c+(l-c)*i,s),h.lineTo(c+(l-c)*i,f),h.lineTo(l,f),h.toString()}}function ne(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.percent,c=void 0===u?.5:u,s=e.x,l=void 0===s?function(e){return e.y}:s,f=e.y,d=void 0===f?function(e){return e.x}:f,h=e.source,g=void 0===h?function(e){return e.source}:h,y=e.target,v=void 0===y?function(e){return e.target}:y,b=_(e,["className","innerRef","data","path","percent","x","y","source","target"]);return i=i||te({source:g,target:v,x:l,y:d,percent:c}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(b,r)))}function re(e){var t=e.source,n=e.target,r=e.x,a=e.y,i=e.percent;return function(e){var o=t(e),u=n(e),c=r(o),s=a(o),l=r(u),f=a(u),h=Object(d.a)();return h.moveTo(c,s),h.lineTo(c,s+(f-s)*i),h.lineTo(l,s+(f-s)*i),h.lineTo(l,f),h.toString()}}function ae(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.percent,c=void 0===u?.5:u,s=e.x,l=void 0===s?function(e){return e.x}:s,f=e.y,d=void 0===f?function(e){return e.y}:f,h=e.source,g=void 0===h?function(e){return e.source}:h,y=e.target,v=void 0===y?function(e){return e.target}:y,b=_(e,["className","innerRef","data","path","percent","x","y","source","target"]);return i=i||re({source:g,target:v,x:l,y:d,percent:c}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(b,r)))}function ie(e){var t=e.source,n=e.target,r=e.x,a=e.y;return function(e){var i=t(e),o=n(e),u=r(i),c=a(i),s=r(o),l=a(o),f=u-Math.PI/2,d=c,h=s-Math.PI/2,p=l,m=Math.cos(f),_=Math.sin(f),g=Math.cos(h),y=Math.sin(h);return"\n      M"+d*m+","+d*_+"\n      A"+d+","+d+",0,0,"+((Math.abs(h-f)>Math.PI?h<=f:h>f)?1:0)+","+d*g+","+d*y+"\n      L"+p*g+","+p*y+"\n    "}}function oe(e){var t=e.className,n=e.innerRef,r=e.data,i=e.path,u=e.x,c=void 0===u?function(e){return e.x}:u,s=e.y,l=void 0===s?function(e){return e.y}:s,f=e.source,d=void 0===f?function(e){return e.source}:f,h=e.target,g=void 0===h?function(e){return e.target}:h,y=_(e,["className","innerRef","data","path","x","y","source","target"]);return i=i||ie({source:d,target:g,x:c,y:l}),a.a.createElement("path",m({ref:n,className:o()("vx-link",t),d:i(r)},p(y,r)))}F.propTypes={innerRef:l.a.func,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},B.propTypes={innerRef:l.a.func,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},q.propTypes={innerRef:l.a.func,angle:l.a.func,radius:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},I.propTypes={innerRef:l.a.func,percent:l.a.number,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},G.propTypes={innerRef:l.a.func,percent:l.a.number,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},X.propTypes={innerRef:l.a.func,percent:l.a.number,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},Z.propTypes={innerRef:l.a.func,path:l.a.func,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func},Q.propTypes={innerRef:l.a.func,path:l.a.func,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func},ee.propTypes={innerRef:l.a.func,path:l.a.func,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func},ne.propTypes={innerRef:l.a.func,percent:l.a.number,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},ae.propTypes={innerRef:l.a.func,percent:l.a.number,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func},oe.propTypes={innerRef:l.a.func,x:l.a.func,y:l.a.func,source:l.a.func,target:l.a.func,path:l.a.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),a(t,[{key:"getComponents",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.color,n=e.dx,a=e.dy,o=e.customID;if(0===n&&0===a)return i.default.createElement("g",{className:"annotation-connector"});var u=this.getComponents(this.props)||[],c=Object.assign({},this.props);delete c.children;var s=i.default.Children.map(this.props.children,function(e){return i.default.cloneElement(e,r({},c,e.props,{scale:c.endScale||e.props.endScale,lineData:u.components[0].data}))});return i.default.createElement("g",r({className:"annotation-connector"},this.props.gAttrs),u.components&&u.components.map(function(e,n){var a={};return e?(Object.keys(e.attrs).forEach(function(t){e.attrs[t]&&"text"!==t&&(a[t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})]=e.attrs[t])}),i.default.createElement(e.type,r({mask:o?"url(#"+o+")":void 0,key:n,className:e.className,fill:"none",stroke:t},a),e.attrs.text)):null}),s)}}]),t}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(o(n(1)),o(n(32))),i=o(n(17));function o(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.x,n=e.y,r=e.dy,i=e.dx,o=e.radius,u=e.outerRadius,c=e.width,s=e.height;return(0,a.default)({x:t,y:n,dx:i,dy:r,radius:o,outerRadius:u,width:c,height:s})}}]),t}();t.default=u},function(e,t,n){var r,a=n(59),i=n(60),o=n(62),u=100,c=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){function n(e,i,s){if(r++>u)throw r=0,new Error("Call stack overflow for "+s);if(""===e)throw new Error(i+"(): '"+s+"' must contain a non-whitespace string");var l=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,a=r.exec(e);for(;a;)a&&a[1]&&(-1===n.indexOf(a[1].toLowerCase())&&(t.push(a[1]),n.push(a[1].toLowerCase())),a=r.exec(e));return t}(e=function(e,t){var r,i="",o=e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(;r=c.exec(o);){r[0].index>0&&(i+=o.substring(0,r[0].index));var u=a("(",")",o.substring([0].index));if(""===u.body)throw new Error("'"+e+"' must contain a non-whitespace string");var s=n(u.body,"",t);i+=u.pre+s,o=u.post}return i+o}(e,s));if(l.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var f=l[0]||"";"%"===f&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var d,h=e.replace(new RegExp(f,"gi"),"");try{d=o.eval(h)}catch(t){return i+"("+e+")"}return"%"===f&&(d*=100),(i.length||"%"===f)&&(d=Math.round(d*t)/t),d+=f}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Legend",function(){return b}),n.d(t,"LegendQuantile",function(){return x}),n.d(t,"LegendLinear",function(){return k}),n.d(t,"LegendOrdinal",function(){return O}),n.d(t,"LegendThreshold",function(){return E}),n.d(t,"LegendSize",function(){return j});var r=n(1),a=n.n(r),i=n(0),o=n.n(i),u=n(5),c=n(2),s=n.n(c);var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},d=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function h(e){var t=e.children,n=e.flexDirection,r=e.margin,i=e.label,o=f(e,["children","flexDirection","margin","label"]);return a.a.createElement("div",l({className:"vx-legend-item",style:{display:"flex",alignItems:"center",flexDirection:n,margin:r}},function(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=function(e,t){return"function"==typeof e?e(t):e}(e[r],t),n},{})}(o,i)),t)}function p(e){var t=e.label,n=e.margin,r=e.align;return a.a.createElement("div",{className:"vx-legend-label",style:{justifyContent:r,display:"flex",flex:"1",margin:n}},t)}function m(e){var t=e.fill,n=e.width,r=e.height,i=e.style;return a.a.createElement("div",{style:l({width:n,height:r,background:t},i)})}function _(e){var t=e.fill,n=e.width,r=e.height,i=e.style;"string"==typeof n&&(n=0),"string"==typeof r&&(r=0);var o=Math.max(n,r),c=o/2;return a.a.createElement("svg",{width:o,height:o},a.a.createElement(u.Group,{top:c,left:c},a.a.createElement("circle",{r:c,fill:t,style:i})))}function g(e){return e&&e.value?e.value:e}function y(e){var t=e.shape,n=void 0===t?m:t,r=e.width,i=e.height,o=e.margin,u=e.label,c=e.fill,s=e.size,f=e.shapeStyle;return a.a.createElement("div",{className:"vx-legend-shape",style:{display:"flex",width:s?s(l({},u)):r,height:s?s(l({},u)):i,margin:o}},function(e){var t=e.shape,n=void 0===t?"rect":t,r=e.fill,i=void 0===r?g:r,o=e.size,u=void 0===o?g:o,c=e.width,s=e.height,f=e.label,d=e.shapeStyle,h=void 0===d?function(e){}:d,p={width:c,height:s,label:f,fill:i(l({},f)),size:u(l({},f)),style:h(l({},f))};return"string"==typeof n?"rect"===n?a.a.createElement(m,p):a.a.createElement(_,p):a.a.isValidElement(n)?a.a.cloneElement(n,p):a.a.createElement(n,p)}({shape:n,label:u,width:r,height:i,fill:c,shapeStyle:f}))}h.propTypes={flexDirection:o.a.string,margin:o.a.string,label:o.a.object.isRequired},p.propTypes={label:o.a.string.isRequired,margin:o.a.string.isRequired},b.propTypes={className:o.a.string,style:o.a.object,scale:o.a.oneOfType([o.a.func,o.a.object]).isRequired,shapeWidth:o.a.oneOfType([o.a.number,o.a.string]),shapeHeight:o.a.oneOfType([o.a.number,o.a.string]),shapeMargin:o.a.string,labelMargin:o.a.string,itemMargin:o.a.string,direction:o.a.string,itemDirection:o.a.string,fill:o.a.func,shape:o.a.oneOfType([o.a.func,o.a.string]),labelFormat:o.a.func,labelTransform:o.a.func};var v={display:"flex"};function b(e){var t=e.className,n=e.style,r=void 0===n?v:n,i=e.shapeStyle,o=e.scale,u=e.shape,c=e.domain,d=e.fill,m=void 0===d?g:d,_=e.size,b=void 0===_?g:_,x=e.labelFormat,k=void 0===x?g:x,M=e.labelTransform,O=void 0===M?w:M,T=e.shapeWidth,E=void 0===T?15:T,j=e.shapeHeight,S=void 0===j?15:j,N=e.shapeMargin,C=void 0===N?"2px 4px 2px 0":N,P=e.labelAlign,R=void 0===P?"left":P,D=e.labelMargin,A=void 0===D?"0 4px":D,L=e.itemMargin,W=void 0===L?"0":L,F=e.direction,z=void 0===F?"column":F,B=e.itemDirection,U=void 0===B?"row":B,q=f(e,["className","style","shapeStyle","scale","shape","domain","fill","size","labelFormat","labelTransform","shapeWidth","shapeHeight","shapeMargin","labelAlign","labelMargin","itemMargin","direction","itemDirection"]),H=(c=c||o.domain()).map(O({scale:o,labelFormat:k}));return a.a.createElement("div",{className:s()("vx-legend",t),style:l({},r,{flexDirection:z})},H.map(function(e,t){var n=e.text;return a.a.createElement(h,l({key:"legend-"+e+"-"+t,margin:W,flexDirection:U,label:e},q),a.a.createElement(y,{shape:u,height:S,width:E,margin:C,label:e,fill:m,size:b,shapeStyle:i}),a.a.createElement(p,{label:n,margin:A,align:R}))}))}function w(e){var t=e.scale,n=e.labelFormat;return function(e,r){return{datum:e,index:r,text:""+n(e,r),value:t(e)}}}function x(e){var t=e.scale,n=e.domain,r=e.labelFormat,i=void 0===r?function(e){return e}:r,o=e.labelTransform,u=e.labelDelimiter,c=void 0===u?"-":u,s=f(e,["scale","domain","labelFormat","labelTransform","labelDelimiter"]);return n=n||t.range(),o=o||function(e){var t=e.labelDelimiter;return function(e){var n=e.scale,r=e.labelFormat;return function(e,a){var i=n.invertExtent(e),o=d(i,2),u=o[0],c=o[1];return{extent:[u,c],text:r(u,a)+" "+t+" "+r(c,a),value:n(u),datum:e,index:a}}}}({labelDelimiter:c}),a.a.createElement(b,l({scale:t,domain:n,labelFormat:i,labelTransform:o},s))}function k(e){var t=e.scale,n=e.domain,r=e.steps,i=void 0===r?5:r,o=e.labelFormat,u=void 0===o?function(e){return e}:o,c=e.labelTransform,s=void 0===c?M:c,d=f(e,["scale","domain","steps","labelFormat","labelTransform"]);return n=n||function(e){var t=e.steps,n=e.scale.domain(),r=n[0],a=(n[n.length-1]-r)/(t-1);return new Array(t).fill(1).reduce(function(e,t,n){return e.push(r+n*a),e},[])}({steps:i,scale:t}),a.a.createElement(b,l({scale:t,domain:n,labelFormat:u,labelTransform:s},d))}function M(e){var t=e.scale,n=e.labelFormat;return function(e,r){return{text:""+n(e,r),value:t(e)}}}function O(e){var t=e.scale,n=e.domain,r=e.labelTransform,i=void 0===r?T:r,o=e.labelFormat,u=void 0===o?g:o,c=f(e,["scale","domain","labelTransform","labelFormat"]);return a.a.createElement(b,l({scale:t,domain:n,labelFormat:u,labelTransform:i},c))}function T(e){var t=e.scale,n=e.labelFormat;return function(e,r){return{datum:e,index:r,text:""+n(e,r),value:t(e)}}}function E(e){var t=e.scale,n=e.domain,r=e.labelFormat,i=void 0===r?function(e){return e}:r,o=e.labelTransform,u=e.labelDelimiter,c=void 0===u?"to":u,s=e.labelLower,h=void 0===s?"Less than ":s,p=e.labelUpper,m=void 0===p?"More than ":p,_=f(e,["scale","domain","labelFormat","labelTransform","labelDelimiter","labelLower","labelUpper"]);return n=n||t.range(),o=o||function(e){var t=e.labelDelimiter,n=e.labelLower,r=e.labelUpper;return function(e){var a=e.scale,i=e.labelFormat;function o(e,t,n){var r=e(t,n);return 0===r?"0":r||""}return function(e,u){var c=a.invertExtent(e),s=d(c,2),l=s[0],f=s[1],h=" "+t+" ",p=void 0;return 0===l||l||0!==f&&!f?0!==l&&!l||0!==f&&!f?f||0!==l&&!l||(p=l+a.domain()[1],f=l,l=void 0,h=r):p=l:(p=f-1,h=n),{extent:[l,f],text:""+o(i,l,u)+h+o(i,f,u),value:a(p),datum:e,index:u}}}}({labelDelimiter:c,labelLower:h,labelUpper:m}),a.a.createElement(b,l({scale:t,domain:n,labelFormat:i,labelTransform:o},_))}function j(e){var t=e.scale,n=e.domain,r=e.steps,i=void 0===r?5:r,o=e.labelFormat,u=void 0===o?function(e){return e}:o,c=e.labelTransform,s=void 0===c?S:c,d=f(e,["scale","domain","steps","labelFormat","labelTransform"]);return n=n||function(e){var t=e.steps,n=e.scale.domain(),r=n[0],a=(n[n.length-1]-r)/(t-1);return new Array(t).fill(1).reduce(function(e,t,n){return e.push(r+n*a),e},[])}({steps:i,scale:t}),a.a.createElement(b,l({scale:t,domain:n,labelFormat:u,labelTransform:s},d))}function S(e){var t=e.scale,n=e.labelFormat;return function(e,r){return{text:""+n(e,r),value:t(e),datum:e,index:r}}}x.propTypes={scale:o.a.func.isRequired,domain:o.a.array,labelFormat:o.a.func,labelTransform:o.a.func,labelDelimiter:o.a.string},k.propTypes={scale:o.a.func.isRequired,domain:o.a.array,steps:o.a.number,labelFormat:o.a.func,labelTransform:o.a.func},O.propTypes={scale:o.a.func.isRequired,domain:o.a.array,labelTransform:o.a.func,labelFormat:o.a.func},E.propTypes={scale:o.a.func.isRequired,domain:o.a.array,labelTransform:o.a.func,labelFormat:o.a.func,labelDelimiter:o.a.string,labelLower:o.a.string,labelUpper:o.a.string}},function(e,t,n){"use strict";n.r(t),n.d(t,"Axis",function(){return y}),n.d(t,"AxisLeft",function(){return b}),n.d(t,"AxisRight",function(){return x}),n.d(t,"AxisTop",function(){return M}),n.d(t,"AxisBottom",function(){return T}),n.d(t,"Orientation",function(){return p});var r=n(1),a=n.n(r),i=n(0),o=n.n(i),u=n(2),c=n.n(u),s=n(16),l=n(7),f=n(5),d=n(15);function h(e){return e}var p={top:"top",left:"left",right:"right",bottom:"bottom"},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)};var g={axisClassName:o.a.string,axisLineClassName:o.a.string,hideAxisLine:o.a.bool,hideTicks:o.a.bool,hideZero:o.a.bool,label:o.a.string,labelClassName:o.a.string,labelOffset:o.a.number,labelProps:o.a.object,left:o.a.number,numTicks:o.a.number,orientation:o.a.oneOf([p.top,p.right,p.bottom,p.left]),rangePadding:o.a.number,scale:o.a.func.isRequired,stroke:o.a.string,strokeWidth:o.a.number,strokeDasharray:o.a.string,tickClassName:o.a.string,tickFormat:o.a.func,tickLabelProps:o.a.func,tickLength:o.a.number,tickStroke:o.a.string,tickTransform:o.a.string,tickValues:o.a.array,tickComponent:o.a.func,top:o.a.number,children:o.a.func};function y(e){var t=e.children,n=e.axisClassName,r=e.axisLineClassName,i=e.hideAxisLine,o=void 0!==i&&i,u=e.hideTicks,g=void 0!==u&&u,y=e.hideZero,v=void 0!==y&&y,b=e.label,w=void 0===b?"":b,x=e.labelClassName,k=e.labelOffset,M=void 0===k?14:k,O=e.labelProps,T=void 0===O?{textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"black"}:O,E=e.left,j=void 0===E?0:E,S=e.numTicks,N=void 0===S?10:S,C=e.orientation,P=void 0===C?p.bottom:C,R=e.rangePadding,D=void 0===R?0:R,A=e.scale,L=e.stroke,W=void 0===L?"black":L,F=e.strokeWidth,z=void 0===F?1:F,B=e.strokeDasharray,U=e.tickClassName,q=e.tickFormat,H=e.tickLabelProps,I=void 0===H?function(e,t){return{textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"black"}}:H,Y=e.tickLength,G=void 0===Y?8:Y,V=e.tickStroke,X=void 0===V?"black":V,$=e.tickTransform,Z=e.tickValues,J=e.tickComponent,Q=e.top,K=void 0===Q?0:Q,ee=A.ticks?A.ticks(N):A.domain();Z&&(ee=Z);var te=A.tickFormat?A.tickFormat():h;q&&(te=q);var ne=A.range(),re=ne[0]+.5-D,ae=ne[ne.length-1]+.5+D,ie=P!==p.left&&P!==p.right,oe=P===p.left,ue=P===p.top,ce=oe||ue?-1:1,se=(A.bandwidth?function(e){var t=e.bandwidth()/2;return e.round()&&(t=Math.round(t)),function(n){return e(n)+t}}:h)(A.copy()),le=new l.a({x:ie?re:0,y:ie?0:re}),fe=new l.a({x:ie?ae:0,y:ie?0:ae}),de=10;return t?a.a.createElement(f.Group,{className:c()("vx-axis",n),top:K,left:j},t({axisFromPoint:le,axisToPoint:fe,horizontal:ie,tickSign:ce,numTicks:N,label:w,rangePadding:D,tickLength:G,tickFormat:te,tickPosition:se,ticks:ee.map(function(e,t){return{value:e,index:t,from:new l.a({x:ie?se(e):0,y:ie?0:se(e)}),to:new l.a({x:ie?se(e):ce*G,y:ie?G*ce:se(e)}),formattedValue:te(e,t)}})})):a.a.createElement(f.Group,{className:c()("vx-axis",n),top:K,left:j},ee.map(function(e,t){if(v&&0===e)return null;var n=new l.a({x:ie?se(e):0,y:ie?0:se(e)}),r=new l.a({x:ie?se(e):ce*G,y:ie?G*ce:se(e)}),i=I(e,t);return de=Math.max(de,i.fontSize||0),a.a.createElement(f.Group,{key:"vx-tick-"+e+"-"+t,className:c()("vx-axis-tick",U),transform:$},!g&&a.a.createElement(s.Line,{from:n,to:r,stroke:X}),J?J(m({x:r.x,y:r.y+(ie&&!ue?de:0),formattedValue:te(e,t)},i)):a.a.createElement(d.Text,m({x:r.x,y:r.y+(ie&&!ue?de:0)},i),te(e,t)))}),!o&&a.a.createElement(s.Line,{className:c()("vx-axis-line",r),from:le,to:fe,stroke:W,strokeWidth:z,strokeDasharray:B}),w&&a.a.createElement(d.Text,m({className:c()("vx-axis-label",x)},function(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,a=e.range,i=e.tickLabelFontSize,o=e.tickLength,u=r===p.left||r===p.top?-1:1,c=void 0,s=void 0,l=null;return r===p.top||r===p.bottom?(c=Math.max.apply(Math,_(a))/2,s=u*(o+t+i+(r===p.bottom?n.fontSize:0))):(c=u*(Math.max.apply(Math,_(a))/2),s=-(o+t),l="rotate("+90*u+")"),{x:c,y:s,transform:l}}({labelOffset:M,labelProps:T,orientation:P,range:ne,tickLabelFontSize:de,tickLength:G}),T),w))}y.propTypes=g;var v={axisClassName:o.a.string,axisLineClassName:o.a.string,hideAxisLine:o.a.bool,hideTicks:o.a.bool,hideZero:o.a.bool,label:o.a.string,labelClassName:o.a.string,labelOffset:o.a.number,labelProps:o.a.object,left:o.a.number,numTicks:o.a.number,rangePadding:o.a.number,scale:o.a.func.isRequired,stroke:o.a.string,strokeWidth:o.a.number,strokeDasharray:o.a.string,tickClassName:o.a.string,tickFormat:o.a.func,tickLabelProps:o.a.func,tickLength:o.a.number,tickStroke:o.a.string,tickTransform:o.a.string,tickValues:o.a.array,tickComponent:o.a.func,top:o.a.number,children:o.a.func};function b(e){var t=e.children,n=e.axisClassName,r=e.axisLineClassName,i=e.hideAxisLine,o=e.hideTicks,u=e.hideZero,s=e.label,l=e.labelClassName,f=e.labelOffset,d=void 0===f?36:f,h=e.labelProps,m=e.left,_=e.numTicks,g=e.rangePadding,v=e.scale,b=e.stroke,w=e.strokeWidth,x=e.strokeDasharray,k=e.tickClassName,M=e.tickFormat,O=e.tickLabelProps,T=void 0===O?function(e){e.tick,e.index;return{dx:"-0.25em",dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"end"}}:O,E=e.tickLength,j=void 0===E?8:E,S=e.tickStroke,N=e.tickTransform,C=e.tickValues,P=e.tickComponent,R=e.top;return a.a.createElement(y,{axisClassName:c()("vx-axis-left",n),axisLineClassName:r,hideAxisLine:i,hideTicks:o,hideZero:u,label:s,labelClassName:l,labelOffset:d,labelProps:h,left:m,numTicks:_,orientation:p.left,rangePadding:g,scale:v,stroke:b,strokeWidth:w,strokeDasharray:x,tickClassName:k,tickFormat:M,tickLabelProps:T,tickLength:j,tickStroke:S,tickTransform:N,tickValues:C,tickComponent:P,top:R,children:t})}b.propTypes=v;var w={axisClassName:o.a.string,axisLineClassName:o.a.string,hideAxisLine:o.a.bool,hideTicks:o.a.bool,hideZero:o.a.bool,label:o.a.string,labelClassName:o.a.string,labelOffset:o.a.number,labelProps:o.a.object,left:o.a.number,numTicks:o.a.number,rangePadding:o.a.number,scale:o.a.func.isRequired,stroke:o.a.string,strokeWidth:o.a.number,strokeDasharray:o.a.string,tickClassName:o.a.string,tickFormat:o.a.func,tickLabelProps:o.a.func,tickLength:o.a.number,tickStroke:o.a.string,tickTransform:o.a.string,tickValues:o.a.array,tickComponent:o.a.func,top:o.a.number,children:o.a.func};function x(e){var t=e.children,n=e.axisClassName,r=e.axisLineClassName,i=e.hideAxisLine,o=e.hideTicks,u=e.hideZero,s=e.label,l=e.labelClassName,f=e.labelOffset,d=void 0===f?36:f,h=e.labelProps,m=e.left,_=e.numTicks,g=e.rangePadding,v=e.scale,b=e.stroke,w=e.strokeWidth,x=e.strokeDasharray,k=e.tickClassName,M=e.tickFormat,O=e.tickLabelProps,T=void 0===O?function(e){e.tick,e.index;return{dx:"0.25em",dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"start"}}:O,E=e.tickLength,j=void 0===E?8:E,S=e.tickStroke,N=e.tickTransform,C=e.tickValues,P=e.tickComponent,R=e.top;return a.a.createElement(y,{axisClassName:c()("vx-axis-right",n),axisLineClassName:r,hideAxisLine:i,hideTicks:o,hideZero:u,label:s,labelClassName:l,labelOffset:d,labelProps:h,left:m,numTicks:_,orientation:p.right,rangePadding:g,scale:v,stroke:b,strokeWidth:w,strokeDasharray:x,tickClassName:k,tickFormat:M,tickLabelProps:T,tickLength:j,tickStroke:S,tickTransform:N,tickValues:C,tickComponent:P,top:R,children:t})}x.propTypes=w;var k={axisClassName:o.a.string,axisLineClassName:o.a.string,hideAxisLine:o.a.bool,hideTicks:o.a.bool,hideZero:o.a.bool,label:o.a.string,labelClassName:o.a.string,labelOffset:o.a.number,labelProps:o.a.object,left:o.a.number,numTicks:o.a.number,rangePadding:o.a.number,scale:o.a.func.isRequired,stroke:o.a.string,strokeWidth:o.a.number,strokeDasharray:o.a.string,tickClassName:o.a.string,tickFormat:o.a.func,tickLabelProps:o.a.func,tickLength:o.a.number,tickStroke:o.a.string,tickTransform:o.a.string,tickValues:o.a.array,tickComponent:o.a.func,top:o.a.number,children:o.a.func};function M(e){var t=e.children,n=e.axisClassName,r=e.axisLineClassName,i=e.hideAxisLine,o=e.hideTicks,u=e.hideZero,s=e.label,l=e.labelClassName,f=e.labelOffset,d=void 0===f?8:f,h=e.labelProps,m=e.left,_=e.numTicks,g=e.rangePadding,v=e.scale,b=e.stroke,w=e.strokeWidth,x=e.strokeDasharray,k=e.tickClassName,M=e.tickFormat,O=e.tickLabelProps,T=void 0===O?function(e){e.tick,e.index;return{dy:"-0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"middle"}}:O,E=e.tickLength,j=void 0===E?8:E,S=e.tickStroke,N=e.tickTransform,C=e.tickValues,P=e.tickComponent,R=e.top;return a.a.createElement(y,{axisClassName:c()("vx-axis-top",n),axisLineClassName:r,hideAxisLine:i,hideTicks:o,hideZero:u,label:s,labelClassName:l,labelOffset:d,labelProps:h,left:m,numTicks:_,orientation:p.top,rangePadding:g,scale:v,stroke:b,strokeWidth:w,strokeDasharray:x,tickClassName:k,tickFormat:M,tickLabelProps:T,tickLength:j,tickStroke:S,tickTransform:N,tickValues:C,tickComponent:P,top:R,children:t})}M.propTypes=k;var O={axisClassName:o.a.string,axisLineClassName:o.a.string,hideAxisLine:o.a.bool,hideTicks:o.a.bool,hideZero:o.a.bool,label:o.a.string,labelClassName:o.a.string,labelOffset:o.a.number,labelProps:o.a.object,left:o.a.number,numTicks:o.a.number,rangePadding:o.a.number,scale:o.a.func.isRequired,stroke:o.a.string,strokeWidth:o.a.number,strokeDasharray:o.a.string,tickClassName:o.a.string,tickFormat:o.a.func,tickLabelProps:o.a.func,tickLength:o.a.number,tickStroke:o.a.string,tickTransform:o.a.string,tickValues:o.a.array,tickComponent:o.a.func,top:o.a.number,children:o.a.func};function T(e){var t=e.children,n=e.axisClassName,r=e.axisLineClassName,i=e.hideAxisLine,o=e.hideTicks,u=e.hideZero,s=e.label,l=e.labelClassName,f=e.labelOffset,d=void 0===f?8:f,h=e.labelProps,m=e.left,_=e.numTicks,g=e.rangePadding,v=e.scale,b=e.stroke,w=e.strokeWidth,x=e.strokeDasharray,k=e.tickClassName,M=e.tickFormat,O=e.tickLabelProps,T=void 0===O?function(e){e.tick,e.index;return{dy:"0.25em",fill:"black",fontFamily:"Arial",fontSize:10,textAnchor:"middle"}}:O,E=e.tickLength,j=void 0===E?8:E,S=e.tickStroke,N=e.tickTransform,C=e.tickValues,P=e.tickComponent,R=e.top;return a.a.createElement(y,{axisClassName:c()("vx-axis-bottom",n),axisLineClassName:r,hideAxisLine:i,hideTicks:o,hideZero:u,label:s,labelClassName:l,labelOffset:d,labelProps:h,left:m,numTicks:_,orientation:p.bottom,rangePadding:g,scale:v,stroke:b,strokeWidth:w,strokeDasharray:x,tickClassName:k,tickFormat:M,tickLabelProps:T,tickLength:j,tickStroke:S,tickTransform:N,tickValues:C,tickComponent:P,top:R,children:t})}T.propTypes=O},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(o(n(1)),o(n(68))),i=o(n(17));function o(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.curve,n=e.points,r=e.x,i=e.y,o=e.dx,u=e.dy,c=e.radius,s=e.outerRadius,l=e.width,f=e.height;return(0,a.default)({curve:t,points:n,x:r,y:i,dx:o,dy:u,radius:c,outerRadius:s,width:l,height:f})}}]),t}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=o(n(1)),i=o(n(11));function o(e){return e&&e.__esModule?e:{default:e}}var u={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchemove",stop:"touchend"}},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,c=t.r,s=void 0===c?10:c,l=t.handleStart,f=t.handleDrag,d=t.handleStop;return a.default.createElement("circle",{className:"handle",cx:r,cy:o,r:s,onMouseDown:function(e){return function(t){t.preventDefault();var n="clientX",r="clientY",a=t.nativeEvent[n],i=t.nativeEvent[r],o=a,c=i;l();var s=function(e){e.preventDefault(),f(e,{deltaX:e[n]-o,deltaY:e[r]-c,oDeltaX:e[n]-a,oDeltaY:e[r]-i}),o=e[n],c=e[r]};document.addEventListener(u[e].move,s),document.addEventListener(u[e].stop,function(t){t.preventDefault(),document.removeEventListener(u[e].move,s),document.removeEventListener(u[e].stop,s),d()})}}("mouse"),strokeDasharray:"5",stroke:"grey",fill:"white",ref:function(t){e.handle=t},fillOpacity:0})}}]),t}();t.default=c,c.propTypes={x:i.default.number,y:i.default.number,r:i.default.number,handleStart:i.default.func,handleStop:i.default.func,handleDrag:i.default.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(1)),u=d(n(26)),c=d(n(24)),s=d(n(81)),l=d(n(82)),f=d(n(11));function d(e){return e&&e.__esModule?e:{default:e}}var h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return[].concat(t).reduce(function(e,t){if(t){var n=t.getBBox();e.x=Math.min(e.x,n.x),e.y=Math.min(e.y,n.y),e.width=Math.max(e.width,n.width);var r=t&&t.attributes&&t.attributes.y;e.height=Math.max(e.height,(r&&parseFloat(r.value)||0)+n.height)}return e},{x:0,y:0,width:0,height:0})},p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={translateX:0,translateY:0,labelOffset:0,changed:0,bbox:{width:0,height:0,x:0,y:0}},n.updateText=n.updateText.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentDidMount",value:function(){this.updateText(this.props)}},{key:"componentWillReceiveProps",value:function(e){e.title===this.props.title&&e.label===this.props.label&&e.wrap===this.props.wrap||this.updateText(e),!e.editMode||"dynamic"!==e.align&&e.align||this.updateText(e)}},{key:"updateText",value:function(e){var t=this,n=e.orientation,r=e.padding,a=e.align,i=e.lineType,o=e.label,c=e.title,s=e.wrap,l=e.wrapSplitter,f=e.dx,d=e.dy,p={titleWrapped:null,labelWrapped:null};p.changed=this.state.changed+1,c&&(p.titleWrapped=this.title&&this.wrapText(this.title,p.changed,c,s,l)),o&&(p.labelWrapped=this.label&&this.wrapText(this.label,p.changed,o,s,l)),this.setState(p,function(){t.setState({labelOffset:c&&t.title.getBBox().height||0},function(){var e=h(t.title,t.label),o={padding:r,bbox:e,offset:{x:f,y:d},orientation:n,align:a};"vertical"===i?o.orientation="leftRight":"horizontal"===i&&(o.orientation="topBottom");var c=(0,u.default)(o),s=c.x,l=c.y;t.setState({translateX:s,translateY:l,bbox:e})})})}},{key:"wrapText",value:function(e,t,n,r,i){for(var u={x:0,dy:"1.2em"},c=n.split(i||/[ \t\r\n]+/).reverse().filter(function(e){return""!==e}),s=void 0,l=[],f=[];s=c.pop();){l.push(s),e.lastChild.textContent=l.join(" ");var d=e.lastChild.getComputedTextLength();e.lastChild.textContent="",d>r&&l.length>1&&(l.pop(),f.push(o.default.createElement("tspan",a({key:f.length+n},u),l.join(" "))),l=[s])}return 0!==l.length&&f.push(o.default.createElement("tspan",a({key:f.length+n},u),l.join(" "))),o.default.createElement("tspan",a({},u,{key:t+n}),f)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.orientation,r=t.padding,a=t.align,i=t.dx,o=t.dy,c=t.lineType;if(!this.state.bbox.width||e.dx===this.props.dx&&e.dy===this.props.dy||!this.title&&!this.label){if(this.state.align!==e.align||this.props.orientation!==e.orientation||this.props.padding!==e.padding){var s={padding:r,bbox:this.state.bbox,offset:{x:i,y:o},orientation:n,align:a};"vertical"===c?s.orientation="leftRight":"horizontal"===c&&(s.orientation="topBottom");var l=(0,u.default)(s),f=l.x,d=l.y,p={};this.state.translateX!==f&&(p.translateX=f),this.state.translateY!==d&&(p.translateY=d),void 0===p.translateX&&void 0===p.translateY||this.setState(p)}}else{var m=h(this.title,this.label),_={padding:r,bbox:m,offset:{x:i,y:o},orientation:n,align:a};"vertical"===c?_.orientation="leftRight":"horizontal"===c&&(_.orientation="topBottom");var g=(0,u.default)(_),y=g.x,v=g.y,b={bbox:m};this.state.translateX!==y&&(b.translateX=y),this.state.translateY!==v&&(b.translateY=v),void 0===b.translateX&&void 0===b.translateY||this.setState(b)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.dx,i=t.dy,u=t.title,f=t.label,d=t.align,h=t.editMode,p=t.lineType,m=t.color,_=t.titleColor,g=t.labelColor,y=t.bgPadding,v={top:0,bottom:0,left:0,right:0};"number"==typeof y?v={top:y,bottom:y,left:y,right:y}:y&&"object"===(void 0===y?"undefined":r(y))&&(v=Object.assign(v,y));var b=void 0,w=void 0,x=void 0;if(u&&(b=o.default.createElement("text",{ref:function(t){return e.title=t},className:"annotation-note-title",fontWeight:"bold",key:"title",fill:_||m},this.state.titleWrapped||o.default.createElement("tspan",{x:0,dy:".8em"},u))),f&&(w=o.default.createElement("text",{ref:function(t){return e.label=t},className:"annotation-note-label",y:1.1*this.state.labelOffset,key:"label",fill:g||m},this.state.labelWrapped||o.default.createElement("tspan",{x:0,dy:".8em"},f))),p&&this.state.bbox.width){var k={bbox:this.state.bbox,align:d,offset:{x:n,y:i}},M=("vertical"===p&&(0,s.default)(k)||"horizontal"===p&&(0,l.default)(k)).components[0];x=o.default.createElement(M.type,a({className:M.className},M.attrs,{stroke:m}))}var O=void 0;return h&&(O=o.default.createElement(c.default,{handleStart:this.props.dragStart,handleStop:this.props.dragEnd,handleDrag:this.props.dragNote})),o.default.createElement("g",a({transform:"translate("+n+", "+i+")",className:"annotation-note"},this.props.gProps),o.default.createElement("g",{className:"annotation-note-content",transform:"translate("+this.state.translateX+",\n          "+this.state.translateY+")",ref:function(t){return e.note=t}},o.default.createElement("rect",{className:"annotation-note-bg",width:this.state.bbox.width+v.left+v.right,x:-v.left,y:-v.top,height:this.state.bbox.height+v.top+v.bottom,stroke:"none",fill:"white",fillOpacity:"0"}),b,w),x,O)}}]),t}();t.default=p,p.defaultProps={wrap:120,align:"dynamic",orientation:"topBottom",padding:3},p.propTypes={dx:f.default.number,dy:f.default.number,title:f.default.string,label:f.default.string,orientation:f.default.oneOf(["leftRight","topBottom"]),padding:f.default.number,bgPadding:f.default.oneOfType([f.default.number,f.default.object]),align:f.default.oneOf(["left","right","middle","top","bottom","dynamic"]),editMode:f.default.bool,lineType:f.default.oneOf(["vertical","horizontal"]),color:f.default.string,titleColor:f.default.string,labelColor:f.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.leftRightDynamic=function(e,t){return e&&"dynamic"!==e&&"left"!==e&&"right"!==e||(e=t<0?"top":"bottom"),e},a=t.topBottomDynamic=function(e,t){return e&&"dynamic"!==e&&"top"!==e&&"bottom"!==e||(e=t<0?"right":"left"),e},i=["topBottom","top","bottom"],o=["leftRight","left","right"];t.default=function(e){var t=e.padding,n=void 0===t?0:t,u=e.bbox,c=void 0===u?{x:0,y:0,width:0,height:0}:u,s=e.align,l=e.orientation,f=e.offset,d=void 0===f?{x:0,y:0}:f,h=-c.x,p=-c.y;return-1!==i.indexOf(l)?(s=a(s,d.x),d.y<0&&"topBottom"===l||"top"===l?p-=c.height+n:p+=n,"middle"===s?h-=c.width/2:"right"===s&&(h-=c.width)):-1!==o.indexOf(l)&&(s=r(s,d.y),d.x<0&&"leftRight"===l||"left"===l?h-=c.width+n:h+=n,"middle"===s?p-=c.height/2:"top"===s&&(p-=c.height)),{x:h,y:p}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(1)),o=c(n(10)),u=c(n(11));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.x,a=t.y,u=t.nx,c=t.ny,s=t.events,l=Object.assign({},this.props);delete l.children,void 0!==u&&(l.dx=u-n),void 0!==c&&(l.dy=c-a);var f=i.default.Children.toArray(this.props.children).map(function(e){return i.default.cloneElement(e,r({},l,e.props))});return Object.keys(s).forEach(function(t){s[t]=s[t].bind(e,e.props,e.state)}),i.default.createElement("g",r({className:(0,o.default)("annotation",this.props.className),transform:"translate("+n+", "+a+")"},s),f)}}]),t}();t.default=s,s.defaultProps={x:0,y:0,dx:0,dy:0,color:"grey",events:{}},s.propTypes={x:u.default.number,y:u.default.number,dx:u.default.number,dy:u.default.number,color:u.default.string,editMode:u.default.bool,events:u.default.object}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ScaleSVG",function(){return c}),n.d(t,"ParentSize",function(){return G}),n.d(t,"withParentSize",function(){return V}),n.d(t,"withScreenSize",function(){return X});var r=n(1),a=n.n(r),i=n(0),o=n.n(i),u=n(45);function c(e){var t=e.children,n=e.width,r=e.height,i=e.xOrigin,o=void 0===i?0:i,u=e.yOrigin,c=void 0===u?0:u,s=e.preserveAspectRatio,l=void 0===s?"xMinYMin meet":s;return a.a.createElement("div",{style:{display:"inline-block",position:"relative",width:"100%",verticalAlign:"top",overflow:"hidden"}},a.a.createElement("svg",{preserveAspectRatio:l,viewBox:o+" "+c+" "+n+" "+r},t))}var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},l="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},f="object"==typeof l&&l&&l.Object===Object&&l,d="object"==typeof self&&self&&self.Object===Object&&self,h=f||d||Function("return this")(),p=function(){return h.Date.now()},m=h.Symbol,_=Object.prototype,g=_.hasOwnProperty,y=_.toString,v=m?m.toStringTag:void 0;var b=function(e){var t=g.call(e,v),n=e[v];try{e[v]=void 0}catch(e){}var r=y.call(e);return t?e[v]=n:delete e[v],r},w=Object.prototype.toString;var x=function(e){return w.call(e)},k="[object Null]",M="[object Undefined]",O=m?m.toStringTag:void 0;var T=function(e){return null==e?void 0===e?M:k:O&&O in Object(e)?b(e):x(e)};var E=function(e){return null!=e&&"object"==typeof e},j="[object Symbol]";var S=function(e){return"symbol"==typeof e||E(e)&&T(e)==j},N=NaN,C=/^\s+|\s+$/g,P=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,D=/^0o[0-7]+$/i,A=parseInt;var L=function(e){if("number"==typeof e)return e;if(S(e))return N;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(C,"");var n=R.test(e);return n||D.test(e)?A(e.slice(2),n?2:8):P.test(e)?N:+e},W="Expected a function",F=Math.max,z=Math.min;var B=function(e,t,n){var r,a,i,o,u,c,l=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(W);function m(t){var n=r,i=a;return r=a=void 0,l=t,o=e.apply(i,n)}function _(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=i}function g(){var e=p();if(_(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-c);return d?z(n,i-(e-l)):n}(e))}function y(e){return u=void 0,h&&r?m(e):(r=a=void 0,o)}function v(){var e=p(),n=_(e);if(r=arguments,a=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),f?m(e):o}(c);if(d)return u=setTimeout(g,t),m(c)}return void 0===u&&(u=setTimeout(g,t)),o}return t=L(t)||0,s(n)&&(f=!!n.leading,i=(d="maxWait"in n)?F(L(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=c=a=u=void 0},v.flush=function(){return void 0===u?o:y(p())},v},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},q=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},G=function(e){function t(e){U(this,t);var n=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={width:0,height:0,top:0,left:0},n.resize=B(n.resize.bind(n),e.debounceTime),n.setTarget=n.setTarget.bind(n),n.animationFrameID=null,n}return I(t,e),q(t,[{key:"componentDidMount",value:function(){var e=this;this.ro=new u.a(function(t,n){var r=function(t){var n=t.contentRect,r=n.left,a=n.top,i=n.width,o=n.height;e.animationFrameID=window.requestAnimationFrame(function(){e.resize({width:i,height:o,top:a,left:r})})},a=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){r(u.value)}}catch(e){i=!0,o=e}finally{try{!a&&c.return&&c.return()}finally{if(i)throw o}}}),this.ro.observe(this.target)}},{key:"componentWillUnmount",value:function(){window.cancelAnimationFrame(this.animationFrameID),this.ro.disconnect()}},{key:"resize",value:function(e){var t=e.width,n=e.height,r=e.top,a=e.left;this.setState(function(){return{width:t,height:n,top:r,left:a}})}},{key:"setTarget",value:function(e){this.target=e}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children;return a.a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.setTarget,className:t},n(H({},this.state,{ref:this.target,resize:this.resize})))}}]),t}(a.a.Component);function V(e){var t=function(t){function n(e){U(this,n);var t=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={parentWidth:null,parentHeight:null},t.handleResize=B(t.resize.bind(t),e.windowResizeDebounceTime).bind(t),t}return I(n,t),q(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize,!1),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize,!1)}},{key:"resize",value:function(e){if(this.container){var t=this.container.getBoundingClientRect();this.setState(function(e,n){return{parentWidth:t.width,parentHeight:t.height}})}}},{key:"render",value:function(){var t=this,n=this.state,r=n.parentWidth,i=n.parentHeight;return a.a.createElement("div",{style:{width:"100%",height:"100%"},ref:function(e){t.container=e}},null!==r&&null!==i&&a.a.createElement(e,H({parentWidth:r,parentHeight:i},this.props)))}}]),n}(a.a.Component);return t.defaultProps={windowResizeDebounceTime:300},t}function X(e){var t=function(t){function n(e){U(this,n);var t=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={screenWidth:null,screenHeight:null},t.handleResize=B(t.resize.bind(t),e.windowResizeDebounceTime).bind(t),t}return I(n,t),q(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize,!1),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize,!1)}},{key:"resize",value:function(e){this.setState(function(e,t){return{screenWidth:window.innerWidth,screenHeight:window.innerHeight}})}},{key:"render",value:function(){var t=this.state,n=t.screenWidth,r=t.screenHeight;return n||r?a.a.createElement(e,H({screenWidth:n,screenHeight:r},this.props)):null}}]),n}(a.a.Component);return t.defaultProps={windowResizeDebounceTime:300},t}G.defaultProps={debounceTime:300},G.propTypes={className:o.a.string,children:o.a.func.isRequired,debounceTime:o.a.number}}.call(this,n(22))},function(e,t,n){"use strict";n.r(t);var r=n(4);function a(){}function i(e,t){var n=new a;if(e instanceof a)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var u in e)n.set(u,e[u]);return n}a.prototype=i.prototype={constructor:a,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var o=i;function u(){}var c=o.prototype;function s(e,t){var n=new u;if(e instanceof u)e.each(function(e){n.add(e)});else if(e){var r=-1,a=e.length;if(null==t)for(;++r<a;)n.add(e[r]);else for(;++r<a;)n.add(t(e[r],r,e))}return n}u.prototype=s.prototype={constructor:u,has:c.has,add:function(e){return this["$"+(e+="")]=e,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};var l=Array.prototype,f=l.map,d=l.slice,h={name:"implicit"};function p(e){var t=o(),n=[],r=h;function a(a){var i=a+"",o=t.get(i);if(!o){if(r!==h)return r;t.set(i,o=n.push(a))}return e[(o-1)%e.length]}return e=null==e?[]:d.call(e),a.domain=function(e){if(!arguments.length)return n.slice();n=[],t=o();for(var r,i,u=-1,c=e.length;++u<c;)t.has(i=(r=e[u])+"")||t.set(i,n.push(r));return a},a.range=function(t){return arguments.length?(e=d.call(t),a):e.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.copy=function(){return p().domain(n).range(e).unknown(r)},a}function m(){var e,t,n=p().unknown(void 0),a=n.domain,i=n.range,o=[0,1],u=!1,c=0,s=0,l=.5;function f(){var n=a().length,f=o[1]<o[0],d=o[f-0],h=o[1-f];e=(h-d)/Math.max(1,n-c+2*s),u&&(e=Math.floor(e)),d+=(h-d-e*(n-c))*l,t=e*(1-c),u&&(d=Math.round(d),t=Math.round(t));var p=Object(r.range)(n).map(function(t){return d+e*t});return i(f?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),f()):a()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],f()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],u=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(u=!!e,f()):u},n.padding=function(e){return arguments.length?(c=s=Math.max(0,Math.min(1,e)),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},n.paddingOuter=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return m().domain(a()).range(o).round(u).paddingInner(c).paddingOuter(s).align(l)},f()}function _(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(m().paddingInner(1))}var g=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function y(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function v(){}var b="\\s*([+-]?\\d+)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k=/^#([0-9a-f]{3})$/,M=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),T=new RegExp("^rgb\\("+[x,x,x]+"\\)$"),E=new RegExp("^rgba\\("+[b,b,b,w]+"\\)$"),j=new RegExp("^rgba\\("+[x,x,x,w]+"\\)$"),S=new RegExp("^hsl\\("+[w,x,x]+"\\)$"),N=new RegExp("^hsla\\("+[w,x,x,w]+"\\)$"),C={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 P(e){var t;return e=(e+"").trim().toLowerCase(),(t=k.exec(e))?new W((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=M.exec(e))?R(parseInt(t[1],16)):(t=O.exec(e))?new W(t[1],t[2],t[3],1):(t=T.exec(e))?new W(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=E.exec(e))?D(t[1],t[2],t[3],t[4]):(t=j.exec(e))?D(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=S.exec(e))?z(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?z(t[1],t[2]/100,t[3]/100,t[4]):C.hasOwnProperty(e)?R(C[e]):"transparent"===e?new W(NaN,NaN,NaN,0):null}function R(e){return new W(e>>16&255,e>>8&255,255&e,1)}function D(e,t,n,r){return r<=0&&(e=t=n=NaN),new W(e,t,n,r)}function A(e){return e instanceof v||(e=P(e)),e?new W((e=e.rgb()).r,e.g,e.b,e.opacity):new W}function L(e,t,n,r){return 1===arguments.length?A(e):new W(e,t,n,null==r?1:r)}function W(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function F(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function z(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new U(e,t,n,r)}function B(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof U)return new U(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=P(e)),!e)return new U;if(e instanceof U)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,u=i-a,c=(i+a)/2;return u?(o=t===i?(n-r)/u+6*(n<r):n===i?(r-t)/u+2:(t-n)/u+4,u/=c<.5?i+a:2-i-a,o*=60):u=c>0&&c<1?0:o,new U(o,u,c,e.opacity)}(e):new U(e,t,n,null==r?1:r)}function U(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function q(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}g(v,P,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),g(W,L,y(v,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new W(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new W(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+F(this.r)+F(this.g)+F(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}})),g(U,B,y(v,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new U(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new U(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new W(q(e>=240?e-240:e+120,a,r),q(e,a,r),q(e<120?e+240:e-120,a,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}}));var H=Math.PI/180,I=180/Math.PI,Y=.96422,G=1,V=.82521,X=4/29,$=6/29,Z=3*$*$,J=$*$*$;function Q(e){if(e instanceof ee)return new ee(e.l,e.a,e.b,e.opacity);if(e instanceof ue){if(isNaN(e.h))return new ee(e.l,0,0,e.opacity);var t=e.h*H;return new ee(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof W||(e=A(e));var n,r,a=ae(e.r),i=ae(e.g),o=ae(e.b),u=te((.2225045*a+.7168786*i+.0606169*o)/G);return a===i&&i===o?n=r=u:(n=te((.4360747*a+.3850649*i+.1430804*o)/Y),r=te((.0139322*a+.0971045*i+.7141733*o)/V)),new ee(116*u-16,500*(n-u),200*(u-r),e.opacity)}function K(e,t,n,r){return 1===arguments.length?Q(e):new ee(e,t,n,null==r?1:r)}function ee(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function te(e){return e>J?Math.pow(e,1/3):e/Z+X}function ne(e){return e>$?e*e*e:Z*(e-X)}function re(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ae(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ie(e){if(e instanceof ue)return new ue(e.h,e.c,e.l,e.opacity);if(e instanceof ee||(e=Q(e)),0===e.a&&0===e.b)return new ue(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*I;return new ue(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function oe(e,t,n,r){return 1===arguments.length?ie(e):new ue(e,t,n,null==r?1:r)}function ue(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}g(ee,K,y(v,{brighter:function(e){return new ee(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new ee(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new W(re(3.1338561*(t=Y*ne(t))-1.6168667*(e=G*ne(e))-.4906146*(n=V*ne(n))),re(-.9787684*t+1.9161415*e+.033454*n),re(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),g(ue,oe,y(v,{brighter:function(e){return new ue(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new ue(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Q(this).rgb()}}));var ce=-.14861,se=1.78277,le=-.29227,fe=-.90649,de=1.97294,he=de*fe,pe=de*se,me=se*le-fe*ce;function _e(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);e instanceof W||(e=A(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(me*r+he*t-pe*n)/(me+he-pe),i=r-a,o=(de*(n-a)-le*i)/fe,u=Math.sqrt(o*o+i*i)/(de*a*(1-a)),c=u?Math.atan2(o,i)*I-120:NaN;return new ge(c<0?c+360:c,u,a,e.opacity)}(e):new ge(e,t,n,null==r?1:r)}function ge(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ye(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}g(ge,_e,y(v,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ge(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*H,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new W(255*(t+n*(ce*r+se*a)),255*(t+n*(le*r+fe*a)),255*(t+n*(de*r)),this.opacity)}}));var ve=function(e){return function(){return e}};function be(e,t){return function(n){return e+n*t}}function we(e,t){var n=t-e;return n?be(e,n>180||n<-180?n-360*Math.round(n/360):n):ve(isNaN(e)?t:e)}function xe(e){return 1==(e=+e)?ke:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ve(isNaN(t)?n:t)}}function ke(e,t){var n=t-e;return n?be(e,n):ve(isNaN(e)?t:e)}var Me=function e(t){var n=xe(t);function r(e,t){var r=n((e=L(e)).r,(t=L(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),o=ke(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function Oe(e){return function(t){var n,r,a=t.length,i=new Array(a),o=new Array(a),u=new Array(a);for(n=0;n<a;++n)r=L(t[n]),i[n]=r.r||0,o[n]=r.g||0,u[n]=r.b||0;return i=e(i),o=e(o),u=e(u),r.opacity=1,function(e){return r.r=i(e),r.g=o(e),r.b=u(e),r+""}}}Oe(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,u=r<t-1?e[r+2]:2*i-a;return ye((n-r/t)*t,o,a,i,u)}}),Oe(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],i=e[r%t],o=e[(r+1)%t],u=e[(r+2)%t];return ye((n-r/t)*t,a,i,o,u)}});var Te=function(e,t){return t-=e=+e,function(n){return e+t*n}},Ee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,je=new RegExp(Ee.source,"g");var Se,Ne,Ce,Pe,Re=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?ve(t):("number"===r?Te:"string"===r?(n=P(t))?(t=n,Me):function(e,t){var n,r,a,i=Ee.lastIndex=je.lastIndex=0,o=-1,u=[],c=[];for(e+="",t+="";(n=Ee.exec(e))&&(r=je.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:Te(n,r)})),i=je.lastIndex;return i<t.length&&(a=t.slice(i),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})}:t instanceof P?Me:t instanceof Date?function(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}:Array.isArray(t)?function(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=Re(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=i[n](e);return o}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,r={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Re(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}:Te)(e,t)},De=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},Ae=180/Math.PI,Le={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},We=function(e,t,n,r,a,i){var o,u,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*Ae,skewX:Math.atan(c)*Ae,scaleX:o,scaleY:u}};function Fe(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}return function(i,o){var u=[],c=[];return i=e(i),o=e(o),function(e,r,a,i,o,u){if(e!==a||r!==i){var c=o.push("translate(",null,t,null,n);u.push({i:c-4,x:Te(e,a)},{i:c-2,x:Te(r,i)})}else(a||i)&&o.push("translate("+a+t+i+n)}(i.translateX,i.translateY,o.translateX,o.translateY,u,c),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Te(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(i.rotate,o.rotate,u,c),function(e,t,n,i){e!==t?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Te(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(i.skewX,o.skewX,u,c),function(e,t,n,r,i,o){if(e!==n||t!==r){var u=i.push(a(i)+"scale(",null,",",null,")");o.push({i:u-4,x:Te(e,n)},{i:u-2,x:Te(t,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,u,c),i=o=null,function(e){for(var t,n=-1,r=c.length;++n<r;)u[(t=c[n]).i]=t.x(e);return u.join("")}}}Fe(function(e){return"none"===e?Le:(Se||(Se=document.createElement("DIV"),Ne=document.documentElement,Ce=document.defaultView),Se.style.transform=e,e=Ce.getComputedStyle(Ne.appendChild(Se),null).getPropertyValue("transform"),Ne.removeChild(Se),e=e.slice(7,-1).split(","),We(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),Fe(function(e){return null==e?Le:(Pe||(Pe=document.createElementNS("http://www.w3.org/2000/svg","g")),Pe.setAttribute("transform",e),(e=Pe.transform.baseVal.consolidate())?(e=e.matrix,We(e.a,e.b,e.c,e.d,e.e,e.f)):Le)},", ",")",")"),Math.SQRT2;function ze(e){return function(t,n){var r=e((t=B(t)).h,(n=B(n)).h),a=ke(t.s,n.s),i=ke(t.l,n.l),o=ke(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=a(e),t.l=i(e),t.opacity=o(e),t+""}}}ze(we),ze(ke);function Be(e){return function(t,n){var r=e((t=oe(t)).h,(n=oe(n)).h),a=ke(t.c,n.c),i=ke(t.l,n.l),o=ke(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=a(e),t.l=i(e),t.opacity=o(e),t+""}}}Be(we),Be(ke);function Ue(e){return function t(n){function r(t,r){var a=e((t=_e(t)).h,(r=_e(r)).h),i=ke(t.s,r.s),o=ke(t.l,r.l),u=ke(t.opacity,r.opacity);return function(e){return t.h=a(e),t.s=i(e),t.l=o(Math.pow(e,n)),t.opacity=u(e),t+""}}return n=+n,r.gamma=t,r}(1)}Ue(we),Ue(ke);var qe=function(e){return function(){return e}},He=function(e){return+e},Ie=[0,1];function Ye(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:qe(t)}function Ge(e,t,n,r){var a=e[0],i=e[1],o=t[0],u=t[1];return i<a?(a=n(i,a),o=r(u,o)):(a=n(a,i),o=r(o,u)),function(e){return o(a(e))}}function Ve(e,t,n,a){var i=Math.min(e.length,t.length)-1,o=new Array(i),u=new Array(i),c=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++c<i;)o[c]=n(e[c],e[c+1]),u[c]=a(t[c],t[c+1]);return function(t){var n=Object(r.bisect)(e,t,1,i)-1;return u[n](o[n](t))}}function Xe(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function $e(e,t){var n,r,a,i=Ie,o=Ie,u=Re,c=!1;function s(){return n=Math.min(i.length,o.length)>2?Ve:Ge,r=a=null,l}function l(t){return(r||(r=n(i,o,c?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,u)))(+t)}return l.invert=function(e){return(a||(a=n(o,i,Ye,c?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},l.domain=function(e){return arguments.length?(i=f.call(e,He),s()):i.slice()},l.range=function(e){return arguments.length?(o=d.call(e),s()):o.slice()},l.rangeRound=function(e){return o=d.call(e),u=De,s()},l.clamp=function(e){return arguments.length?(c=!!e,s()):c},l.interpolate=function(e){return arguments.length?(u=e,s()):u},s()}var Ze=n(8),Je=function(e,t,n){var a,i=e[0],o=e[e.length-1],u=Object(r.tickStep)(i,o,null==t?10:t);switch((n=Object(Ze.formatSpecifier)(null==n?",f":n)).type){case"s":var c=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(a=Object(Ze.precisionPrefix)(u,c))||(n.precision=a),Object(Ze.formatPrefix)(n,c);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=Object(Ze.precisionRound)(u,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=Object(Ze.precisionFixed)(u))||(n.precision=a-2*("%"===n.type))}return Object(Ze.format)(n)};function Qe(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(r.ticks)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Je(t(),e,n)},e.nice=function(n){null==n&&(n=10);var a,i=t(),o=0,u=i.length-1,c=i[o],s=i[u];return s<c&&(a=c,c=s,s=a,a=o,o=u,u=a),(a=Object(r.tickIncrement)(c,s,n))>0?(c=Math.floor(c/a)*a,s=Math.ceil(s/a)*a,a=Object(r.tickIncrement)(c,s,n)):a<0&&(c=Math.ceil(c*a)/a,s=Math.floor(s*a)/a,a=Object(r.tickIncrement)(c,s,n)),a>0?(i[o]=Math.floor(c/a)*a,i[u]=Math.ceil(s/a)*a,t(i)):a<0&&(i[o]=Math.ceil(c*a)/a,i[u]=Math.floor(s*a)/a,t(i)),e},e}var Ke=function(e,t){var n,r=0,a=(e=e.slice()).length-1,i=e[r],o=e[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),e[r]=t.floor(i),e[a]=t.ceil(o),e};function et(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:qe(t)}function tt(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function nt(e){return isFinite(e)?+("1e"+e):e<0?0:e}function rt(e){return 10===e?nt:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function at(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function it(e){return function(t){return-e(-t)}}function ot(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function ut(){var e=1,t=$e(function(t,n){return(n=ot(n,e)-(t=ot(t,e)))?function(r){return(ot(r,e)-t)/n}:qe(n)},function(t,n){return n=ot(n,e)-(t=ot(t,e)),function(r){return ot(t+n*r,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return Xe(t,ut().exponent(e))},Qe(t)}var ct=new Date,st=new Date;function lt(e,t,n,r){function a(t){return e(t=new Date(+t)),t}return a.floor=a,a.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},a.round=function(e){var t=a(e),n=a.ceil(e);return e-t<n-e?t:n},a.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},a.range=function(n,r,i){var o,u=[];if(n=a.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return u;do{u.push(o=new Date(+n)),t(n,i),e(n)}while(o<n&&n<r);return u},a.filter=function(n){return lt(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(a.count=function(t,r){return ct.setTime(+t),st.setTime(+r),e(ct),e(st),Math.floor(n(ct,st))},a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(r?function(t){return r(t)%e==0}:function(t){return a.count(0,t)%e==0}):a:null}),a}var ft=lt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ft.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?lt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ft:null};var dt=ft,ht=(ft.range,6e4),pt=6048e5,mt=lt(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),_t=mt,gt=(mt.range,lt(function(e){e.setTime(Math.floor(e/ht)*ht)},function(e,t){e.setTime(+e+t*ht)},function(e,t){return(t-e)/ht},function(e){return e.getMinutes()})),yt=gt,vt=(gt.range,lt(function(e){var t=e.getTimezoneOffset()*ht%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),bt=vt,wt=(vt.range,lt(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ht)/864e5},function(e){return e.getDate()-1})),xt=wt;wt.range;function kt(e){return lt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ht)/pt})}var Mt=kt(0),Ot=kt(1),Tt=kt(2),Et=kt(3),jt=kt(4),St=kt(5),Nt=kt(6),Ct=(Mt.range,Ot.range,Tt.range,Et.range,jt.range,St.range,Nt.range,lt(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()})),Pt=Ct,Rt=(Ct.range,lt(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));Rt.every=function(e){return isFinite(e=Math.floor(e))&&e>0?lt(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Dt=Rt,At=(Rt.range,lt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ht)},function(e,t){return(t-e)/ht},function(e){return e.getUTCMinutes()})),Lt=At,Wt=(At.range,lt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})),Ft=Wt,zt=(Wt.range,lt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})),Bt=zt;zt.range;function Ut(e){return lt(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/pt})}var qt=Ut(0),Ht=Ut(1),It=Ut(2),Yt=Ut(3),Gt=Ut(4),Vt=Ut(5),Xt=Ut(6),$t=(qt.range,Ht.range,It.range,Yt.range,Gt.range,Vt.range,Xt.range,lt(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),Zt=$t,Jt=($t.range,lt(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}));Jt.every=function(e){return isFinite(e=Math.floor(e))&&e>0?lt(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Qt=Jt;Jt.range;function Kt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function en(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tn(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var nn,rn,an,on,un={"-":"",_:" ",0:"0"},cn=/^\s*\d+/,sn=/^%/,ln=/[\\^$*+?|[\]().{}]/g;function fn(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function dn(e){return e.replace(ln,"\\$&")}function hn(e){return new RegExp("^(?:"+e.map(dn).join("|")+")","i")}function pn(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function mn(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _n(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function gn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function yn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function vn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function bn(e,t,n){var r=cn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function wn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function xn(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function kn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Mn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function On(e,t,n){var r=cn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Tn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function En(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jn(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Sn(e,t,n){var r=cn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Nn(e,t,n){var r=cn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Cn(e,t,n){var r=sn.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pn(e,t,n){var r=cn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rn(e,t,n){var r=cn.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Dn(e,t){return fn(e.getDate(),t,2)}function An(e,t){return fn(e.getHours(),t,2)}function Ln(e,t){return fn(e.getHours()%12||12,t,2)}function Wn(e,t){return fn(1+xt.count(Dt(e),e),t,3)}function Fn(e,t){return fn(e.getMilliseconds(),t,3)}function zn(e,t){return Fn(e,t)+"000"}function Bn(e,t){return fn(e.getMonth()+1,t,2)}function Un(e,t){return fn(e.getMinutes(),t,2)}function qn(e,t){return fn(e.getSeconds(),t,2)}function Hn(e){var t=e.getDay();return 0===t?7:t}function In(e,t){return fn(Mt.count(Dt(e),e),t,2)}function Yn(e,t){var n=e.getDay();return e=n>=4||0===n?jt(e):jt.ceil(e),fn(jt.count(Dt(e),e)+(4===Dt(e).getDay()),t,2)}function Gn(e){return e.getDay()}function Vn(e,t){return fn(Ot.count(Dt(e),e),t,2)}function Xn(e,t){return fn(e.getFullYear()%100,t,2)}function $n(e,t){return fn(e.getFullYear()%1e4,t,4)}function Zn(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fn(t/60|0,"0",2)+fn(t%60,"0",2)}function Jn(e,t){return fn(e.getUTCDate(),t,2)}function Qn(e,t){return fn(e.getUTCHours(),t,2)}function Kn(e,t){return fn(e.getUTCHours()%12||12,t,2)}function er(e,t){return fn(1+Bt.count(Qt(e),e),t,3)}function tr(e,t){return fn(e.getUTCMilliseconds(),t,3)}function nr(e,t){return tr(e,t)+"000"}function rr(e,t){return fn(e.getUTCMonth()+1,t,2)}function ar(e,t){return fn(e.getUTCMinutes(),t,2)}function ir(e,t){return fn(e.getUTCSeconds(),t,2)}function or(e){var t=e.getUTCDay();return 0===t?7:t}function ur(e,t){return fn(qt.count(Qt(e),e),t,2)}function cr(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Gt(e):Gt.ceil(e),fn(Gt.count(Qt(e),e)+(4===Qt(e).getUTCDay()),t,2)}function sr(e){return e.getUTCDay()}function lr(e,t){return fn(Ht.count(Qt(e),e),t,2)}function fr(e,t){return fn(e.getUTCFullYear()%100,t,2)}function dr(e,t){return fn(e.getUTCFullYear()%1e4,t,4)}function hr(){return"+0000"}function pr(){return"%"}function mr(e){return+e}function _r(e){return Math.floor(+e/1e3)}!function(e){nn=function(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=hn(a),l=pn(a),f=hn(i),d=pn(i),h=hn(o),p=pn(o),m=hn(u),_=pn(u),g=hn(c),y=pn(c),v={a:function(e){return o[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:Dn,e:Dn,f:zn,H:An,I:Ln,j:Wn,L:Fn,m:Bn,M:Un,p:function(e){return a[+(e.getHours()>=12)]},Q:mr,s:_r,S:qn,u:Hn,U:In,V:Yn,w:Gn,W:Vn,x:null,X:null,y:Xn,Y:$n,Z:Zn,"%":pr},b={a:function(e){return o[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:Jn,e:Jn,f:nr,H:Qn,I:Kn,j:er,L:tr,m:rr,M:ar,p:function(e){return a[+(e.getUTCHours()>=12)]},Q:mr,s:_r,S:ir,u:or,U:ur,V:cr,w:sr,W:lr,x:null,X:null,y:fr,Y:dr,Z:hr,"%":pr},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:Mn,e:Mn,f:Nn,H:Tn,I:Tn,j:On,L:Sn,m:kn,M:En,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:Pn,s:Rn,S:jn,u:_n,U:gn,V:yn,w:mn,W:vn,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:wn,Y:bn,Z:xn,"%":Cn};function x(e,t){return function(n){var r,a,i,o=[],u=-1,c=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===e.charCodeAt(u)&&(o.push(e.slice(c,u)),null!=(a=un[r=e.charAt(++u)])?r=e.charAt(++u):a="e"===r?" ":"0",(i=t[r])&&(r=i(n,a)),o.push(r),c=u+1);return o.push(e.slice(c,u)),o.join("")}}function k(e,t){return function(n){var r,a,i=tn(1900);if(M(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(r=(a=(r=en(tn(i.y))).getUTCDay())>4||0===a?Ht.ceil(r):Ht(r),r=Bt.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=(a=(r=t(tn(i.y))).getDay())>4||0===a?Ot.ceil(r):Ot(r),r=xt.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),a="Z"in i?en(tn(i.y)).getUTCDay():t(tn(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,en(i)):t(i)}}function M(e,t,n,r){for(var a,i,o=0,u=t.length,c=n.length;o<u;){if(r>=c)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=w[a in un?t.charAt(o++):a])||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}return v.x=x(n,v),v.X=x(r,v),v.c=x(t,v),b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),{format:function(e){var t=x(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",Kt);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e,en);return t.toString=function(){return e},t}}}(e),rn=nn.format,nn.parse,an=nn.utcFormat,on=nn.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"]});Date.prototype.toISOString||an("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||on("%Y-%m-%dT%H:%M:%S.%LZ");var gr=1e3,yr=60*gr,vr=60*yr,br=24*vr,wr=7*br,xr=30*br,kr=365*br;function Mr(e){return new Date(e)}function Or(e){return e instanceof Date?+e:+new Date(+e)}function Tr(e,t,n,a,i,o,u,c,s){var l=$e(Ye,Te),d=l.invert,h=l.domain,p=s(".%L"),m=s(":%S"),_=s("%I:%M"),g=s("%I %p"),y=s("%a %d"),v=s("%b %d"),b=s("%B"),w=s("%Y"),x=[[u,1,gr],[u,5,5*gr],[u,15,15*gr],[u,30,30*gr],[o,1,yr],[o,5,5*yr],[o,15,15*yr],[o,30,30*yr],[i,1,vr],[i,3,3*vr],[i,6,6*vr],[i,12,12*vr],[a,1,br],[a,2,2*br],[n,1,wr],[t,1,xr],[t,3,3*xr],[e,1,kr]];function k(r){return(u(r)<r?p:o(r)<r?m:i(r)<r?_:a(r)<r?g:t(r)<r?n(r)<r?y:v:e(r)<r?b:w)(r)}function M(t,n,a,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(a-n)/t,u=Object(r.bisector)(function(e){return e[2]}).right(x,o);u===x.length?(i=Object(r.tickStep)(n/kr,a/kr,t),t=e):u?(i=(u=x[o/x[u-1][2]<x[u][2]/o?u-1:u])[1],t=u[0]):(i=Math.max(Object(r.tickStep)(n,a,t),1),t=c)}return null==i?t:t.every(i)}return l.invert=function(e){return new Date(d(e))},l.domain=function(e){return arguments.length?h(f.call(e,Or)):h().map(Mr)},l.ticks=function(e,t){var n,r=h(),a=r[0],i=r[r.length-1],o=i<a;return o&&(n=a,a=i,i=n),n=(n=M(e,a,i,t))?n.range(a,i+1):[],o?n.reverse():n},l.tickFormat=function(e,t){return null==t?k:s(t)},l.nice=function(e,t){var n=h();return(e=M(e,n[0],n[n.length-1],t))?h(Ke(n,e)):l},l.copy=function(){return Xe(l,Tr(e,t,n,a,i,o,u,c,s))},l}n.d(t,"scaleBand",function(){return Er}),n.d(t,"scalePoint",function(){return jr}),n.d(t,"scaleLinear",function(){return Sr}),n.d(t,"scaleTime",function(){return Nr}),n.d(t,"scaleUtc",function(){return Cr}),n.d(t,"scaleLog",function(){return Pr}),n.d(t,"scalePower",function(){return Rr}),n.d(t,"scaleOrdinal",function(){return Dr}),n.d(t,"scaleQuantize",function(){return Ar}),n.d(t,"scaleQuantile",function(){return Lr}),n.d(t,"scaleThreshold",function(){return Wr}),n.d(t,"updateScale",function(){return zr});var Er=function(e){var t=e.range,n=e.rangeRound,r=e.domain,a=e.padding,i=e.paddingInner,o=e.paddingOuter,u=e.align,c=e.tickFormat,s=m();return t&&s.range(t),n&&s.rangeRound(n),r&&s.domain(r),a&&s.padding(a),i&&s.paddingInner(i),o&&s.paddingOuter(o),u&&s.align(u),c&&(s.tickFormat=c),s},jr=function(e){var t=e.range,n=e.rangeRound,r=e.domain,a=e.padding,i=e.align,o=e.nice,u=void 0!==o&&o,c=_();return t&&c.range(t),n&&c.rangeRound(n),r&&c.domain(r),u&&c.nice(),a&&c.padding(a),i&&c.align(i),c},Sr=function(e){var t=e.range,n=e.rangeRound,r=e.domain,a=e.nice,i=void 0!==a&&a,o=e.clamp,u=void 0!==o&&o,c=function e(){var t=$e(Ye,Te);return t.copy=function(){return Xe(t,e())},Qe(t)}();return t&&c.range(t),n&&c.rangeRound(n),r&&c.domain(r),i&&c.nice(),u&&c.clamp(!0),c},Nr=function(e){var t=e.range,n=e.rangeRound,r=e.domain,a=e.nice,i=void 0!==a&&a,o=e.clamp,u=void 0!==o&&o,c=Tr(Dt,Pt,Mt,xt,bt,yt,_t,dt,rn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]);return t&&c.range(t),n&&c.rangeRound(n),r&&c.domain(r),i&&c.nice(),u&&c.clamp(!0),c},Cr=function(e){var t=e.range,n=e.rangeRound,r=e.domain,a=e.nice,i=void 0!==a&&a,o=e.clamp,u=void 0!==o&&o,c=Tr(Qt,Zt,qt,Bt,Ft,Lt,_t,dt,an).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]);return t&&c.range(t),n&&c.rangeRound(n),r&&c.domain(r),i&&c.nice(),u&&c.clamp(!0),c},Pr=function(e){var t=e.range,n=e.rangeRound,a=e.domain,i=e.base,o=e.nice,u=void 0!==o&&o,c=e.clamp,s=void 0!==c&&c,l=function e(){var t=$e(et,tt).domain([1,10]),n=t.domain,a=10,i=at(10),o=rt(10);function u(){return i=at(a),o=rt(a),n()[0]<0&&(i=it(i),o=it(o)),t}return t.base=function(e){return arguments.length?(a=+e,u()):a},t.domain=function(e){return arguments.length?(n(e),u()):n()},t.ticks=function(e){var t,u=n(),c=u[0],s=u[u.length-1];(t=s<c)&&(h=c,c=s,s=h);var l,f,d,h=i(c),p=i(s),m=null==e?10:+e,_=[];if(!(a%1)&&p-h<m){if(h=Math.round(h)-1,p=Math.round(p)+1,c>0){for(;h<p;++h)for(f=1,l=o(h);f<a;++f)if(!((d=l*f)<c)){if(d>s)break;_.push(d)}}else for(;h<p;++h)for(f=a-1,l=o(h);f>=1;--f)if(!((d=l*f)<c)){if(d>s)break;_.push(d)}}else _=Object(r.ticks)(h,p,Math.min(p-h,m)).map(o);return t?_.reverse():_},t.tickFormat=function(e,n){if(null==n&&(n=10===a?".0e":","),"function"!=typeof n&&(n=Object(Ze.format)(n)),e===1/0)return n;null==e&&(e=10);var r=Math.max(1,a*e/t.ticks().length);return function(e){var t=e/o(Math.round(i(e)));return t*a<a-.5&&(t*=a),t<=r?n(e):""}},t.nice=function(){return n(Ke(n(),{floor:function(e){return o(Math.floor(i(e)))},ceil:function(e){return o(Math.ceil(i(e)))}}))},t.copy=function(){return Xe(t,e().base(a))},t}();return t&&l.range(t),n&&l.rangeRound(n),a&&l.domain(a),u&&l.nice(),s&&l.clamp(!0),i&&l.base(i),l},Rr=function(e){var t=e.range,n=e.rangeRound,r=e.domain,a=e.exponent,i=e.nice,o=void 0!==i&&i,u=e.clamp,c=void 0!==u&&u,s=ut();return t&&s.range(t),n&&s.rangeRound(n),r&&s.domain(r),o&&s.nice(),c&&s.clamp(!0),a&&s.exponent(a),s},Dr=function(e){var t=e.range,n=e.domain,r=e.unknown,a=p();return t&&a.range(t),n&&a.domain(n),r&&a.unknown(r),a},Ar=function(e){var t=e.range,n=e.domain,a=e.ticks,i=e.tickFormat,o=e.nice,u=void 0!==o&&o,c=function e(){var t=0,n=1,a=1,i=[.5],o=[0,1];function u(e){if(e<=e)return o[Object(r.bisect)(i,e,0,a)]}function c(){var e=-1;for(i=new Array(a);++e<a;)i[e]=((e+1)*n-(e-a)*t)/(a+1);return u}return u.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],c()):[t,n]},u.range=function(e){return arguments.length?(a=(o=d.call(e)).length-1,c()):o.slice()},u.invertExtent=function(e){var r=o.indexOf(e);return r<0?[NaN,NaN]:r<1?[t,i[0]]:r>=a?[i[a-1],n]:[i[r-1],i[r]]},u.copy=function(){return e().domain([t,n]).range(o)},Qe(u)}();return t&&c.range(t),n&&c.domain(n),u&&c.nice(),a&&c.ticks(a),i&&c.tickFormat(i),c},Lr=function(e){var t=e.range,n=e.domain,a=function e(){var t=[],n=[],a=[];function i(){var e=0,i=Math.max(1,n.length);for(a=new Array(i-1);++e<i;)a[e-1]=Object(r.quantile)(t,e/i);return o}function o(e){if(!isNaN(e=+e))return n[Object(r.bisect)(a,e)]}return o.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?a[r-1]:t[0],r<a.length?a[r]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,a=0,o=e.length;a<o;++a)null==(n=e[a])||isNaN(n=+n)||t.push(n);return t.sort(r.ascending),i()},o.range=function(e){return arguments.length?(n=d.call(e),i()):n.slice()},o.quantiles=function(){return a.slice()},o.copy=function(){return e().domain(t).range(n)},o}();return t&&a.range(t),n&&a.domain(n),a},Wr=function(e){var t=e.range,n=e.domain,a=function e(){var t=[.5],n=[0,1],a=1;function i(e){if(e<=e)return n[Object(r.bisect)(t,e,0,a)]}return i.domain=function(e){return arguments.length?(t=d.call(e),a=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=d.call(e),a=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.copy=function(){return e().domain(t).range(n)},i}();return t&&a.range(t),n&&a.domain(n),a},Fr=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};function zr(e,t){var n=Fr(t,[]),r=e.copy();return Object.keys(n).forEach(function(e){r.hasOwnProperty(e)&&r[e](n[e])}),r}},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),i=n(0),o=n.n(i),u=n(2),c=n.n(u),s=n(31),l=n.n(s),f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},_={top:0,right:0,bottom:0,left:0,width:0,height:0},g=o.a.shape({top:o.a.number.isRequired,right:o.a.number.isRequired,bottom:o.a.number.isRequired,left:o.a.number.isRequired,width:o.a.number.isRequired,height:o.a.number.isRequired}),y={getRects:o.a.func,rect:g,parentRect:g};n.d(t,"withTooltip",function(){return O}),n.d(t,"Tooltip",function(){return T}),n.d(t,"TooltipWithBounds",function(){return S});var v=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},k=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},M=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};o.a.bool,o.a.number,o.a.number,o.a.object,o.a.func,o.a.func,o.a.func;function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{style:{position:"relative",width:"inherit",height:"inherit"}};return function(n){function r(e){v(this,r);var t=M(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0},t.updateTooltip=t.updateTooltip.bind(t),t.showTooltip=t.showTooltip.bind(t),t.hideTooltip=t.hideTooltip.bind(t),t}return x(r,n),b(r,[{key:"updateTooltip",value:function(e){var t=e.tooltipOpen,n=e.tooltipLeft,r=e.tooltipTop,a=e.tooltipData;this.setState(function(e){return w({},e,{tooltipOpen:t,tooltipLeft:n,tooltipTop:r,tooltipData:a})})}},{key:"showTooltip",value:function(e){var t=e.tooltipLeft,n=e.tooltipTop,r=e.tooltipData;this.updateTooltip({tooltipOpen:!0,tooltipLeft:t,tooltipTop:n,tooltipData:r})}},{key:"hideTooltip",value:function(){this.updateTooltip({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}},{key:"render",value:function(){return a.a.createElement("div",t,a.a.createElement(e,w({updateTooltip:this.updateTooltip,showTooltip:this.showTooltip,hideTooltip:this.hideTooltip},this.state,this.props)))}}]),r}(a.a.PureComponent)}function T(e){var t=e.className,n=e.top,r=e.left,i=e.style,o=e.children,u=k(e,["className","top","left","style","children"]);return a.a.createElement("div",w({className:c()("vx-tooltip-portal",t),style:w({position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none",top:n,left:r},i)},u),o)}T.propTypes={left:o.a.oneOfType([o.a.number,o.a.string]),top:o.a.oneOfType([o.a.number,o.a.string]),className:o.a.string,style:o.a.object,children:o.a.any};var E=w({},y,T.propTypes,{offsetLeft:o.a.number,offsetTop:o.a.number});function j(e){var t=e.left,n=e.top,r=e.offsetLeft,i=void 0===r?10:r,o=e.offsetTop,u=void 0===o?10:o,c=e.rect,s=e.parentRect,l=(e.getRects,e.children),f=e.style,d=k(e,["left","top","offsetLeft","offsetTop","rect","parentRect","getRects","children","style"]),h=t,p=n;return c&&s&&(h=i+c.right>s.right||i+c.right>window.innerWidth?h-c.width-i:h+i,p=u+c.bottom>s.bottom||u+c.bottom>window.innerHeight?p-c.height-u:p+u),a.a.createElement(T,w({style:w({top:0,transform:"translate("+h+"px, "+p+"px)"},f)},d),l)}j.propTypes=E,j.defaultProps={};var S=function(e){var t=function(t){function n(e){f(this,n);var t=m(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={rect:void 0,parentRect:void 0},t.getRects=t.getRects.bind(t),t}return p(n,t),d(n,[{key:"componentDidMount",value:function(){var e=this;this.node=l.a.findDOMNode(this),this.setState(function(){return e.getRects()})}},{key:"getRects",value:function(){if(!this.node)return this.state;var e=this.node,t=this.node.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():_,parentRect:t&&t.getBoundingClientRect?t.getBoundingClientRect():_}}},{key:"render",value:function(){return a.a.createElement(e,h({getRects:this.getRects},this.state,this.props))}}]),n}(a.a.PureComponent);return t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,t.displayName="withBoundingRects("+(e.displayName||"")+")",t}(j)},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineSetup=void 0;var r=n(9),a=t.lineSetup=function(e){var t=e.dx,n=e.dy,r=e.radius,a=e.outerRadius,i=e.radiusPadding,o=e.width,u=e.height,c=0,s=t,l=0,f=n;if(a||r){var d=Math.sqrt((c-s)*(c-s)+(l-f)*(l-f)),h=Math.asin(-f/d),p=(a||r)+(i||0);c=Math.abs(Math.cos(h)*p)*(s<0?-1:1),l=Math.abs(Math.sin(h)*p)*(f<0?-1:1)}return o&&u&&((o>0&&t>0||o<0&&t<0)&&(c=Math.abs(o)>Math.abs(t)?o/2:o),(u>0&&n>0||u<0&&n<0)&&(l=Math.abs(u)>Math.abs(n)?u/2:u),c===o/2&&l===u/2&&(c=s,l=f)),[[c,l],[s,f]]};t.default=function(e){var t=a(e);return{components:[(0,r.lineBuilder)({data:t,className:"connector"})]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(70))),i=u(n(34)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.x,n=e.y,r=e.dy,i=e.dx,o=e.lineData,u=e.scale;return(0,a.default)({x:t,y:n,dx:i,dy:r,lineData:o,scale:u})}}]),t}();t.default=c,c.propTypes={x:o.default.number,y:o.default.number,dx:o.default.number,dy:o.default.number,scale:o.default.number,lineData:o.default.array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),a(t,[{key:"getComponents",value:function(){}},{key:"render",value:function(){var e=this.props.color,t=(this.getComponents(this.props)||[]).components[0];return i.default.createElement(t.type,r({className:t.className},t.attrs,{fill:e}))}}]),t}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(75))),i=u(n(34)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.x,n=e.y,r=e.dy,i=e.dx,o=e.lineData,u=e.scale,c=o[1],s=o[0];return Math.sqrt(Math.pow(c[0]-s[0],2)+Math.pow(c[1]-s[1],2))<5&&o[2]&&(c=o[2]),(0,a.default)({x:t,y:n,dx:i,dy:r,start:c,end:s,scale:u})}}]),t}();t.default=c,c.propTypes={x:o.default.number,y:o.default.number,dx:o.default.number,dy:o.default.number,scale:o.default.number,lineData:o.default.array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(76))),i=u(n(13)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.leftRight,n=e.topBottom,r=e.text,i=e.editMode,o=e.color,u=e.radius,c=(0,a.default)({leftRight:t,topBottom:n,text:r,editMode:i,color:o,radius:u});return c.handleKeys={leftRight:t,topBottom:n},c.handleFunction=function(e,t){return{leftRight:t.oDeltaX<2*-u?"left":t.oDeltaX>2*u?"right":void 0,topBottom:t.oDeltaY<2*-u?"top":t.oDeltaY>2*u?"bottom":void 0}},c}}]),t}();t.default=c,c.propTypes={leftRight:o.default.oneOf(["left","right"]),topBottom:o.default.oneOf(["top","bottom"]),text:o.default.oneOfType([o.default.string,o.default.number]),color:o.default.string,editMode:o.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(77))),i=u(n(13)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.radius,n=void 0===t?20:t,r=e.innerRadius,i=e.outerRadius,o=e.radiusPadding,u=e.editMode,c=(0,a.default)({radius:n,radiusPadding:o,innerRadius:r,outerRadius:i,editMode:u});return c.handleKeys={radius:n,innerRadius:r,outerRadius:i},c.handleFunction=function(e,t){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.key,c.handleKeys[e.key]+t.oDeltaX*Math.sqrt(2))},c}}]),t}();t.default=c,c.propTypes={radius:o.default.number,innerRadius:o.default.number,outerRadius:o.default.number,radiusPadding:o.default.number,editMode:o.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(78))),i=u(n(13)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.width,n=void 0===t?100:t,r=e.height,i=void 0===r?100:r,o=e.editMode,u=(0,a.default)({width:n,height:i,editMode:o});return u.handleKeys={width:n,height:i},u.handleFunction=function(e,t){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.key,"width"===e.key?n+t.oDeltaX:i+t.oDeltaY)},u}}]),t}();t.default=c,c.propTypes={width:o.default.number,height:o.default.number,editMode:o.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(79))),i=u(n(13)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.x,u=e.y,c=e.editMode;return(0,a.default)({x1:t,x2:n,y1:r,y2:i,x:o,y:u,editMode:c})}}]),t}();t.default=c,c.propTypes={x:o.default.number,x1:o.default.number,x2:o.default.number,y:o.default.number,y1:o.default.number,y2:o.default.number,editMode:o.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(u(n(1)),u(n(80))),i=u(n(13)),o=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"getComponents",value:function(e){var t=e.height,n=e.width,r=e.depth,i=void 0===r?20:r,o=e.type,u=void 0===o?"square":o,c=e.editMode,s=(0,a.default)({height:t,width:n,depth:i,type:u,editMode:c}),l={height:t,width:n,depth:i};return s.handleFunction=function(e,t){return"depth"===e.key?{depth:i+t["oDelta"+e.type]}:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.key,l[e.key]+t["width"===e.key?"oDeltaX":"oDeltaY"])},s}}]),t}();t.default=c,c.propTypes={width:o.default.number,height:o.default.number,depth:o.default.number,editMode:o.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(1)),i=c(n(13)),o=c(n(11)),u=c(n(24));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),r(t,[{key:"render",value:function(){var e=this.props,t=e.custom,n=void 0===t?"M0,0":t,r=e.customID,i=e.editMode,o=e.transform,c=void 0;return i&&(c=a.default.createElement(u.default,{handleStart:this.props.dragStart,handleStop:this.props.dragEnd,handleDrag:this.props.dragSubject})),a.default.createElement("g",{className:"annotation-subject"},a.default.createElement("g",{transform:o},"string"==typeof n?a.default.createElement("path",{d:n,pointerEvents:"none"}):a.default.createElement("g",{pointerEvents:"none"},n),a.default.createElement("mask",{id:r,pointerEvents:"none"},a.default.createElement("g",{transform:o},a.default.createElement("rect",{x:"-100%",y:"-100%",height:"200%",width:"200%",fill:"white",pointerEvents:"none"}),"string"==typeof n?a.default.createElement("path",{d:n,fill:"black",pointerEvents:"none"}):a.default.createElement("g",{fill:"black",pointerEvents:"none"},n.map(function(e,t){return a.default.cloneElement(e,Object.assign({},e.props,{fill:"black",opacity:1,key:"customSubject-"+t}))})),"}"))),c)}}]),t}();t.default=s,s.propTypes={editMode:o.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.width,n=e.height,o=e.depth,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["width","height","depth"]),c=u.dx,s=void 0,l=u.dy;n?(l||(l=n/2),c||(c=o),s="leftRight"):t&&(c||(c=t/2),l||(l=o),s="topBottom");return a.default.createElement(i.default,r({align:"middle",orientation:s,padding:10},u,{editMode:!1,dx:c,dy:l}))};var a=o(n(1)),i=o(n(25));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(1)),o=c(n(27)),u=c(n(10));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={x:0,y:0,dx:0,dy:0},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),a(t,[{key:"componentWillMount",value:function(){this.setState({x:this.props.x,y:this.props.y,dx:this.props.dx,dy:this.props.dy})}},{key:"getData",value:function(){return Object.assign({},this.props,this.state)}},{key:"dragEnd",value:function(){this.props.onDragEnd&&this.props.onDragEnd(this.getData())}},{key:"dragStart",value:function(){this.props.onDragStart&&this.props.onDragStart(this.getData())}},{key:"dragSubject",value:function(e,t){var n=this;this.setState({x:this.state.x+t.deltaX,y:this.state.y+t.deltaY},function(){n.props.onDrag&&n.props.onDrag(n.getData())})}},{key:"dragSubjectSettings",value:function(e,t){var n=this;this.setState(t,function(){n.props.onDrag&&n.props.onDrag(n.getData())})}},{key:"dragNote",value:function(e,t){var n=this;this.setState({dx:this.state.dx+t.deltaX,dy:this.state.dy+t.deltaY},function(){n.props.onDrag&&n.props.onDrag(n.getData())})}},{key:"render",value:function(){var e=Object.assign({},this.props,r({},this.state,{dragSubject:this.dragSubject.bind(this),dragNote:this.dragNote.bind(this),dragSubjectSettings:this.dragSubjectSettings.bind(this),dragEnd:this.dragEnd.bind(this),dragStart:this.dragStart.bind(this),editMode:!0,className:(0,u.default)(this.props.className,"editable")}));return i.default.createElement(o.default,e)}}]),t}();t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"localPoint",function(){return a}),n.d(t,"touchPoint",function(){return i});var r=n(7);function a(e,t){if(e){if(e.target)for(e=(t=e).target.ownerSVGElement;e.ownerSVGElement;)e=e.ownerSVGElement;var n=t,a=n.clientX,i=n.clientY;if(t.changedTouches&&(a=t.changedTouches[0].clientX,i=t.changedTouches[0].clientY),e.createSVGPoint){var o=e.createSVGPoint();return o.x=a,o.y=i,o=o.matrixTransform(e.getScreenCTM().inverse()),new r.a({x:o.x,y:o.y})}var u=e.getBoundingClientRect();return new r.a({x:a-u.left-e.clientLeft,y:i-u.top-e.clientTop})}}function i(e,t){if(e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=t.changedTouches[0].clientX,a.y=t.changedTouches[0].clientY,a=a.matrixTransform(e.getScreenCTM().inverse()),new r.a({x:a.x,y:a.y})}var i=e.getBoundingClientRect();return new r.a({x:t.changedTouches[0].clientX-i.left-e.clientLeft,y:t.changedTouches[0].clientY-i.top-e.clientTop})}}},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var a=r[n];e.call(t,a[1],a[0])}},Object.defineProperties(t.prototype,n),t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},o=2,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function u(){n&&(n=!1,e()),r&&s()}function c(){i(u)}function s(){var e=Date.now();if(n){if(e-a<o)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=e}return s}(this.refresh.bind(this),20)};s.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},s.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},s.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},s.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},s.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},s.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},s.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),u.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null;var l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n+=1){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},d=y(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var a=r[n],i=e["padding-"+a];t[a]=h(i)}return t}(r),i=a.left+a.right,o=a.top+a.bottom,u=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=p(r,"left","right")+i),Math.round(c+o)!==n&&(c-=p(r,"top","bottom")+o)),!function(e){return e===f(e).document.documentElement}(e)){var s=Math.round(u+i)-t,l=Math.round(c+o)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return y(a.left,a.top,u,c)}var _="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?_(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e};v.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},v.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var b=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,a=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(i.prototype);return l(o,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),o}(t);l(this,{target:e,contentRect:n})},w=function(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r};w.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},w.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},w.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},w.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},w.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new b(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},w.prototype.clearActive=function(){this.activeObservations_.splice(0)},w.prototype.hasActive=function(){return this.activeObservations_.length>0};var x="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(e){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=s.getInstance(),n=new w(e,t,this);x.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){return(t=x.get(this))[e].apply(t,arguments);var t}});var M=void 0!==a.ResizeObserver?a.ResizeObserver:k;t.a=M}).call(this,n(22))},function(e,t,n){e.exports=n(47)},function(e,t,n){"use strict";n(48);var r=n(53),a=(n(96),s(n(31))),i=s(n(54)),o=s(n(93)),u=s(n(94)),c=n(95);function s(e){return e&&e.__esModule?e:{default:e}}var l={"viz__jobs-by-wage-and-gender":function(e){a.default.render(React.createElement(i.default,{title:"Occupations, by Median Earnings and Percent Women",figureNumber:1,height:550,width:850,data:r.scatterData,note:"<sup>1</sup>&nbsp;Even as professions appear to be evenly divided by men and women, vertical segregation (men managing women) can lead to men holding more power than women.",source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__high-wage-male-dominated":function(e){a.default.render(React.createElement(i.default,{title:"High Wage, Male-Dominated Occupations",figureNumber:6,height:550,width:850,filter:function(e){return"High Wage, Male-Dominated"===e.category},data:r.scatterData,source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__high-wage-female-dominated":function(e){a.default.render(React.createElement(i.default,{title:"Middle to High Wage, Female-Dominated Occupations",figureNumber:5,height:550,width:850,filter:function(e){return"Middle to High Wage, Female-Dominated"===e.category},data:r.scatterData,source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__low-wage-male-dominated":function(e){a.default.render(React.createElement(i.default,{title:"Low to Middle Wage, Male-Dominated Occupations",figureNumber:4,height:550,width:850,filter:function(e){return"Low to Middle Wage, Male-Dominated"===e.category},data:r.scatterData,source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__low-wage-female-dominated":function(e){a.default.render(React.createElement(i.default,{title:"Low Wage, Female-Dominated Occupations",figureNumber:3,height:550,width:850,filter:function(e){return"Low Wage, Female-Dominated"===e.category},data:r.scatterData,source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__common-occupation-female":function(e){a.default.render(React.createElement(o.default,{title:"Top 10 Occupations Held by Women",figureNumber:"X",height:550,width:850,TooltipTemplate:c.WomenBarTip,x:function(e){return e.Women},xAxisLabel:"​Number of fulltime workers, Women",data:r.barData.sort(function(e,t){return t.Women-e.Men}).slice(0,10),source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__common-occupation-male":function(e){a.default.render(React.createElement(o.default,{title:"Top 10 Occupations Held by Men",figureNumber:"X",height:550,width:850,TooltipTemplate:c.MenBarTip,x:function(e){return e.Men},xAxisLabel:"​Number of fulltime workers, Men",data:r.barData.sort(function(e,t){return t.Men-e.Women}).slice(0,10),source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)},"viz__common-occupation-all":function(e){a.default.render(React.createElement(u.default,{title:"Top 10 Occupations, by Gender",height:650,width:850,figureNumber:2,data:r.barData.sort(function(e,t){return t.number_full_time-e.number_full_time}).slice(0,14),source:'Source: <a href="https://www.dol.gov/cgi-bin/leave-dol.asp?exiturl=https://www.census.gov/data/tables/time-series/demo/industry-occupation/median-earnings.html&exitTitle=United_States_Census_Bureau"> U.S. Census Bureau, American Community Survey 2016</a>.'}),e)}};window.renderDataViz=function(e){var t=e.getAttribute("id"),n=l[t];n&&n(e)}},function(e,t,n){var r=n(49);"string"==typeof r&&(r=[[e.i,r,""]]);var a={transform:void 0};n(51)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(50)(!1)).push([e.i,"",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([a]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<e.length;a++){var o=e[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){var r={},a=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),i=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=function(e){return document.querySelector(e)}.call(this,e)),t[e]}}(),o=null,u=0,c=[],s=n(52);function l(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=r[a.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](a.parts[o]);for(;o<a.parts.length;o++)i.parts.push(_(a.parts[o],t))}else{var u=[];for(o=0;o<a.parts.length;o++)u.push(_(a.parts[o],t));r[a.id]={id:a.id,refs:1,parts:u}}}}function f(e,t){for(var n=[],r={},a=0;a<e.length;a++){var i=e[a],o=t.base?i[0]+t.base:i[0],u={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(u):n.push(r[o]={id:o,parts:[u]})}return n}function d(e,t){var n=i(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function p(e){var t=document.createElement("style");return e.attrs.type="text/css",m(t,e.attrs),d(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function _(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=u++;n=o||(o=p(t)),r=y.bind(null,n,c,!1),a=y.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",m(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=s(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(o),u&&URL.revokeObjectURL(u)}.bind(null,n,t),a=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return l(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var o=n[i];(u=r[o.id]).refs--,a.push(u)}e&&l(f(e,t),t);for(i=0;i<a.length;i++){var u;if(0===(u=a[i]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete r[u.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.scatterData=[{occupation:"Nursing, psychiatric, and home health aides",number_full_time:1256050,Men:174528,Women:1081522,percent_women:.86,median_earning:26056,median_earning_men:29503,median_earning_women:25706,women_earning_percent_of_men:.87,category:"Low Wage, Female-Dominated",percent_men:.14},{occupation:"Cashiers",number_full_time:1019364,Men:293166,Women:726198,percent_women:.71,median_earning:21e3,median_earning_men:22413,median_earning_women:20482,women_earning_percent_of_men:.91,category:"Low Wage, Female-Dominated",percent_men:.29000000000000004},{occupation:"Maids and housekeeping cleaners",number_full_time:790133,Men:128212,Women:661921,percent_women:.84,median_earning:21476,median_earning_men:25788,median_earning_women:21e3,women_earning_percent_of_men:.81,category:"Low Wage, Female-Dominated",percent_men:.16000000000000003},{occupation:"Childcare workers",number_full_time:551286,Men:34354,Women:516932,percent_women:.94,median_earning:21395,median_earning_men:25324,median_earning_women:21212,women_earning_percent_of_men:.84,category:"Low Wage, Female-Dominated",percent_men:.06000000000000005},{occupation:"Waiters and waitresses",number_full_time:734635,Men:263439,Women:471196,percent_women:.64,median_earning:22252,median_earning_men:25855,median_earning_women:21182,women_earning_percent_of_men:.82,category:"Low Wage, Female-Dominated",percent_men:.36},{occupation:"Food preparation workers",number_full_time:347692,Men:155856,Women:191836,percent_women:.55,median_earning:20506,median_earning_men:21359,median_earning_women:19894,women_earning_percent_of_men:.93,category:"Low Wage, Female-Dominated",percent_men:.44999999999999996},{occupation:"Sewing machine operators",number_full_time:129635,Men:38708,Women:90927,percent_women:.7,median_earning:23027,median_earning_men:25189,median_earning_women:22358,women_earning_percent_of_men:.89,category:"Low Wage, Female-Dominated",percent_men:.30000000000000004},{occupation:"Receptionists and information clerks",number_full_time:654662,Men:62554,Women:592108,percent_women:.9,median_earning:28555,median_earning_men:29582,median_earning_women:28444,women_earning_percent_of_men:.96,category:"Low Wage, Female-Dominated",percent_men:.09999999999999998},{occupation:"Personal care aides",number_full_time:692735,Men:132541,Women:560194,percent_women:.81,median_earning:22578,median_earning_men:25856,median_earning_women:22159,women_earning_percent_of_men:.86,category:"Low Wage, Female-Dominated",percent_men:.18999999999999995},{occupation:"Customer service representatives",number_full_time:1782634,Men:624476,Women:1158158,percent_women:.65,median_earning:33442,median_earning_men:36744,median_earning_women:32095,women_earning_percent_of_men:.87,category:"Low Wage, Female-Dominated",percent_men:.35},{occupation:"Janitors and building cleaners",number_full_time:1553626,Men:1136790,Women:416836,percent_women:.27,median_earning:27742,median_earning_men:30654,median_earning_women:22962,women_earning_percent_of_men:.75,category:"Low to Middle Wage, Male-Dominated",percent_men:.73},{occupation:"Miscellaneous assemblers and fabricators",number_full_time:811317,Men:511277,Women:300040,percent_women:.37,median_earning:31485,median_earning_men:33412,median_earning_women:28313,women_earning_percent_of_men:.85,category:"Low to Middle Wage, Male-Dominated",percent_men:.63},{occupation:"Driver/sales workers and truck drivers",number_full_time:2695081,Men:2570385,Women:124696,percent_women:.05,median_earning:42200,median_earning_men:42435,median_earning_women:32237,women_earning_percent_of_men:.76,category:"Low to Middle Wage, Male-Dominated",percent_men:.95},{occupation:"Police and sheriff patrol officers",number_full_time:669550,Men:582716,Women:86834,percent_women:.13,median_earning:62852,median_earning_men:64792,median_earning_women:57402,women_earning_percent_of_men:.89,category:"Low to Middle Wage, Male-Dominated",percent_men:.87},{occupation:"Miscellaneous agricultural workers",number_full_time:470635,Men:398935,Women:71700,percent_women:.15,median_earning:25442,median_earning_men:26404,median_earning_women:20399,women_earning_percent_of_men:.77,category:"Low to Middle Wage, Male-Dominated",percent_men:.85},{occupation:"Metal workers and plastic workers, all other",number_full_time:326498,Men:258055,Women:68443,percent_women:.21,median_earning:35076,median_earning_men:36748,median_earning_women:29096,women_earning_percent_of_men:.79,category:"Low to Middle Wage, Male-Dominated",percent_men:.79},{occupation:"Food processing workers, all other",number_full_time:113094,Men:74917,Women:38177,percent_women:.34,median_earning:31967,median_earning_men:34446,median_earning_women:29998,women_earning_percent_of_men:.87,category:"Low to Middle Wage, Male-Dominated",percent_men:.6599999999999999},{occupation:"Construction laborers",number_full_time:1180144,Men:1150257,Women:29887,percent_women:.03,median_earning:32162,median_earning_men:32214,median_earning_women:30378,women_earning_percent_of_men:.94,category:"Low to Middle Wage, Male-Dominated",percent_men:.97},{occupation:"Firefighters",number_full_time:265198,Men:253361,Women:11837,percent_women:.05,median_earning:67598,median_earning_men:68680,median_earning_women:51926,women_earning_percent_of_men:.76,category:"Low to Middle Wage, Male-Dominated",percent_men:.95},{occupation:"Operating engineers and other construction equipment operators, including pile-driver operators",number_full_time:269313,Men:262747,Women:6566,percent_women:.02,median_earning:46503,median_earning_men:46485,median_earning_women:50129,women_earning_percent_of_men:1.08,category:"Low to Middle Wage, Male-Dominated",percent_men:.98},{occupation:"Registered nurses",number_full_time:2317493,Men:281048,Women:2036445,percent_women:.88,median_earning:65331,median_earning_men:70952,median_earning_women:64413,women_earning_percent_of_men:.91,category:"Middle to High Wage, Female-Dominated",percent_men:.12},{occupation:"Elementary and middle school teachers",number_full_time:2398445,Men:530970,Women:1867475,percent_women:.78,median_earning:50659,median_earning_men:53096,median_earning_women:50021,women_earning_percent_of_men:.94,category:"Middle to High Wage, Female-Dominated",percent_men:.21999999999999997},{occupation:"Social workers",number_full_time:704192,Men:133995,Women:570197,percent_women:.81,median_earning:44669,median_earning_men:44973,median_earning_women:44603,women_earning_percent_of_men:.99,category:"Middle to High Wage, Female-Dominated",percent_men:.18999999999999995},{occupation:"Human resources workers",number_full_time:678049,Men:188438,Women:489611,percent_women:.72,median_earning:57369,median_earning_men:66412,median_earning_women:54975,women_earning_percent_of_men:.83,category:"Middle to High Wage, Female-Dominated",percent_men:.28},{occupation:"Insurance underwriters",number_full_time:98194,Men:36949,Women:61245,percent_women:.62,median_earning:61197,median_earning_men:73389,median_earning_women:56465,women_earning_percent_of_men:.77,category:"Middle to High Wage, Female-Dominated",percent_men:.38},{occupation:"Dietitians and nutritionists",number_full_time:70729,Men:8095,Women:62634,percent_women:.89,median_earning:49841,median_earning_men:47439,median_earning_women:49886,women_earning_percent_of_men:1.05,category:"Middle to High Wage, Female-Dominated",percent_men:.10999999999999999},{occupation:"Physical therapists",number_full_time:162536,Men:60163,Women:102373,percent_women:.63,median_earning:77605,median_earning_men:85149,median_earning_women:74555,women_earning_percent_of_men:.88,category:"Middle to High Wage, Female-Dominated",percent_men:.37},{occupation:"Fundraisers",number_full_time:68581,Men:20709,Women:47872,percent_women:.7,median_earning:66048,median_earning_men:77186,median_earning_women:64272,women_earning_percent_of_men:.83,category:"Middle to High Wage, Female-Dominated",percent_men:.30000000000000004},{occupation:"Accountants and auditors",number_full_time:1628824,Men:656553,Women:972271,percent_women:.6,median_earning:63740,median_earning_men:76129,median_earning_women:57370,women_earning_percent_of_men:.75,category:"Middle to High Wage, Female-Dominated",percent_men:.4},{occupation:"Nurse practitioners",number_full_time:116166,Men:14128,Women:102038,percent_women:.88,median_earning:100639,median_earning_men:111130,median_earning_women:100030,women_earning_percent_of_men:.9,category:"Middle to High Wage, Female-Dominated",percent_men:.12},{occupation:"Software developers, applications and systems software",number_full_time:1124661,Men:918865,Women:205796,percent_women:.18,median_earning:100760,median_earning_men:101969,median_earning_women:88759,women_earning_percent_of_men:.87,category:"High Wage, Male-Dominated",percent_men:.8200000000000001},{occupation:"Engineers, all other",number_full_time:471817,Men:411849,Women:59968,percent_women:.13,median_earning:93058,median_earning_men:95214,median_earning_women:85464,women_earning_percent_of_men:.9,category:"High Wage, Male-Dominated",percent_men:.87},{occupation:"Personal financial advisors",number_full_time:327459,Men:231444,Women:96015,percent_women:.29,median_earning:91150,median_earning_men:101634,median_earning_women:69479,women_earning_percent_of_men:.68,category:"High Wage, Male-Dominated",percent_men:.71},{occupation:"Marketing and sales managers",number_full_time:843840,Men:464995,Women:378845,percent_women:.45,median_earning:82357,median_earning_men:100137,median_earning_women:69079,women_earning_percent_of_men:.69,category:"High Wage, Male-Dominated",percent_men:.55},{occupation:"Legislators",number_full_time:13966,Men:7431,Women:6535,percent_women:.47,median_earning:65592,median_earning_men:67233,median_earning_women:63788,women_earning_percent_of_men:.95,category:"High Wage, Male-Dominated",percent_men:.53},{occupation:"Artists and related workers",number_full_time:121771,Men:76519,Women:45252,percent_women:.37,median_earning:45124,median_earning_men:51669,median_earning_women:36922,women_earning_percent_of_men:.72,category:"High Wage, Male-Dominated",percent_men:.63},{occupation:"Architects, except naval",number_full_time:157568,Men:119954,Women:37614,percent_women:.24,median_earning:76154,median_earning_men:81075,median_earning_women:61765,women_earning_percent_of_men:.76,category:"High Wage, Male-Dominated",percent_men:.76},{occupation:"Editors",number_full_time:125387,Men:64120,Women:61267,percent_women:.49,median_earning:55140,median_earning_men:57665,median_earning_women:52078,women_earning_percent_of_men:.9,category:"High Wage, Male-Dominated",percent_men:.51},{occupation:"Producers and directors",number_full_time:121999,Men:77794,Women:44205,percent_women:.36,median_earning:68571,median_earning_men:71577,median_earning_women:62435,women_earning_percent_of_men:.87,category:"High Wage, Male-Dominated",percent_men:.64}],t.barData=[{occupation:"Secretaries and administrative assistants",number_full_time:2226591,percent_women:.9470000000000001,median_earning_women:36929,median_earning_men:42411,women_earning_percent_of_men:.871,Men:118009.32299999986,Women:2108582,percent_men:.052999999999999936},{occupation:"Elementary and middle school teachers",number_full_time:2398445,percent_women:.779,median_earning_women:50021,median_earning_men:53096,women_earning_percent_of_men:.9420000000000001,Men:530056.345,Women:1868389,percent_men:.22099999999999997},{occupation:"Registered nurses",number_full_time:2317493,percent_women:.879,median_earning_women:64413,median_earning_men:70952,women_earning_percent_of_men:.9079999999999999,Men:280416.653,Women:2037076,percent_men:.121},{occupation:"Nursing, psychiatric, and home health aides",number_full_time:1256050,percent_women:.861,median_earning_women:25706,median_earning_men:29503,women_earning_percent_of_men:.871,Men:174590.95,Women:1081459,percent_men:.139},{occupation:"First-line supervisors of retail sales workers",number_full_time:2677578,percent_women:.426,median_earning_women:33778,median_earning_men:46343,women_earning_percent_of_men:.7290000000000001,Men:1536929.772,Women:1140648,percent_men:.5740000000000001},{occupation:"Customer service representatives",number_full_time:1782634,percent_women:.65,median_earning_women:32095,median_earning_men:36744,women_earning_percent_of_men:.873,Men:623921.8999999999,Women:1158712,percent_men:.35},{occupation:"Managers, all other",number_full_time:3758629,percent_women:.342,median_earning_women:67769,median_earning_men:84600,women_earning_percent_of_men:.8009999999999999,Men:2473177.8819999998,Women:1285451,percent_men:.6579999999999999},{occupation:"Cashiers",number_full_time:1019364,percent_women:.7120000000000001,median_earning_women:20482,median_earning_men:22413,women_earning_percent_of_men:.914,Men:293576.83199999994,Women:725787,percent_men:.2879999999999999},{occupation:"Accountants and auditors",number_full_time:1628824,percent_women:.597,median_earning_women:57370,median_earning_men:76129,women_earning_percent_of_men:.754,Men:656416.072,Women:972408,percent_men:.403},{occupation:"Receptionists and information clerks",number_full_time:654662,percent_women:.904,median_earning_women:28444,median_earning_men:29582,women_earning_percent_of_men:.9620000000000001,Men:62847.55199999998,Women:591814,percent_men:.09599999999999997},{occupation:"First-line supervisors of office and administrative support workers",number_full_time:1187429,percent_women:.596,median_earning_women:45996,median_earning_men:56346,women_earning_percent_of_men:.816,Men:479721.31600000005,Women:707708,percent_men:.404},{occupation:"Office clerks, general",number_full_time:841347,percent_women:.828,median_earning_women:33492,median_earning_men:39885,women_earning_percent_of_men:.84,Men:144711.68400000004,Women:696635,percent_men:.17200000000000004},{occupation:"Bookkeeping, accounting, and auditing clerks",number_full_time:829531,percent_women:.872,median_earning_women:38665,median_earning_men:42013,women_earning_percent_of_men:.92,Men:106179.96800000001,Women:723351,percent_men:.128},{occupation:"Retail salespersons",number_full_time:1716984,percent_women:.39,median_earning_women:26781,median_earning_men:40116,women_earning_percent_of_men:.6679999999999999,Men:1047360.24,Women:669624,percent_men:.61},{occupation:"Maids and housekeeping cleaners",number_full_time:790133,percent_women:.838,median_earning_women:21e3,median_earning_men:25788,women_earning_percent_of_men:.8140000000000001,Men:128001.54600000003,Women:662131,percent_men:.16200000000000003},{occupation:"Financial managers",number_full_time:1067163,percent_women:.526,median_earning_women:62089,median_earning_men:100505,women_earning_percent_of_men:.618,Men:505835.262,Women:561328,percent_men:.474},{occupation:"Social workers",number_full_time:704192,percent_women:.81,median_earning_women:44603,median_earning_men:44973,women_earning_percent_of_men:.992,Men:133796.47999999995,Women:570396,percent_men:.18999999999999995},{occupation:"Secondary school teachers",number_full_time:536264,percent_women:.569,median_earning_women:51608,median_earning_men:55800,women_earning_percent_of_men:.925,Men:231129.784,Women:305134,percent_men:.43100000000000005},{occupation:"Waiters and waitresses",number_full_time:734635,percent_women:.6409999999999999,median_earning_women:21182,median_earning_men:25855,women_earning_percent_of_men:.8190000000000001,Men:263733.9650000001,Women:470901,percent_men:.3590000000000001},{occupation:"Personal care aides",number_full_time:692735,percent_women:.809,median_earning_women:22159,median_earning_men:25856,women_earning_percent_of_men:.857,Men:132312.38499999995,Women:560423,percent_men:.19099999999999995},{occupation:"Teacher assistants",number_full_time:421376,percent_women:.873,median_earning_women:22095,median_earning_men:31063,women_earning_percent_of_men:.711,Men:53514.752,Women:367861,percent_men:.127},{occupation:"Preschool and kindergarten teachers",number_full_time:339677,percent_women:.98,median_earning_women:25021,median_earning_men:29102,women_earning_percent_of_men:.86,Men:6793.540000000006,Women:332883,percent_men:.020000000000000018},{occupation:"Education administrators",number_full_time:747962,percent_women:.623,median_earning_women:64509,median_earning_men:80380,women_earning_percent_of_men:.8029999999999999,Men:281981.674,Women:465980,percent_men:.377},{occupation:"Licensed practical and licensed vocational nurses",number_full_time:602316,percent_women:.871,median_earning_women:38523,median_earning_men:40939,women_earning_percent_of_men:.941,Men:77698.764,Women:524617,percent_men:.129},{occupation:"Janitors and building cleaners",number_full_time:1553626,percent_women:.268,median_earning_women:22962,median_earning_men:30654,women_earning_percent_of_men:.7490000000000001,Men:1137254.232,Women:416372,percent_men:.732},{occupation:"First-line supervisors of retail sales workers",number_full_time:2677578,percent_women:.426,median_earning_women:33778,median_earning_men:46343,women_earning_percent_of_men:.7290000000000001,Men:1536929.772,Women:1140648,percent_men:.5740000000000001},{occupation:"Laborers and freight, stock, and material movers, hand",number_full_time:1340831,percent_women:.174,median_earning_women:26312,median_earning_men:31424,women_earning_percent_of_men:.8370000000000001,Men:1107526.4060000002,Women:233305,percent_men:.8260000000000001},{occupation:"Retail salespersons",number_full_time:1716984,percent_women:.39,median_earning_women:26781,median_earning_men:40116,women_earning_percent_of_men:.6679999999999999,Men:1047360.24,Women:669624,percent_men:.61},{occupation:"Construction laborers",number_full_time:1180144,percent_women:.025,median_earning_women:30378,median_earning_men:32214,women_earning_percent_of_men:.943,Men:1150640.4,Women:29504,percent_men:.975},{occupation:"Janitors and building cleaners",number_full_time:1553626,percent_women:.268,median_earning_women:22962,median_earning_men:30654,women_earning_percent_of_men:.7490000000000001,Men:1137254.232,Women:416372,percent_men:.732},{occupation:"Software developers, applications and systems software",number_full_time:1124661,percent_women:.183,median_earning_women:88759,median_earning_men:101969,women_earning_percent_of_men:.87,Men:918848.0369999999,Women:205813,percent_men:.817},{occupation:"Sales representatives, wholesale and manufacturing",number_full_time:1182664,percent_women:.257,median_earning_women:54077,median_earning_men:70464,women_earning_percent_of_men:.767,Men:878719.352,Women:303945,percent_men:.743},{occupation:"Grounds maintenance workers",number_full_time:802064,percent_women:.05,median_earning_women:22944,median_earning_men:25838,women_earning_percent_of_men:.888,Men:761960.7999999999,Women:40103,percent_men:.95},{occupation:"Cooks",number_full_time:1201892,percent_women:.355,median_earning_women:20320,median_earning_men:22575,women_earning_percent_of_men:.9,Men:775220.34,Women:426672,percent_men:.645},{occupation:"Carpenters",number_full_time:863456,percent_women:.019,median_earning_women:31637,median_earning_men:36414,women_earning_percent_of_men:.8690000000000001,Men:847050.336,Women:16406,percent_men:.981},{occupation:"Chief executives",number_full_time:1068258,percent_women:.23800000000000002,median_earning_women:103564,median_earning_men:141108,women_earning_percent_of_men:.7340000000000001,Men:814012.596,Women:254245,percent_men:.762},{occupation:"Automotive service technicians and mechanics",number_full_time:726437,percent_women:.012,median_earning_women:28342,median_earning_men:36695,women_earning_percent_of_men:.772,Men:717719.7559999999,Women:8717,percent_men:.988},{occupation:"Stock clerks and order fillers",number_full_time:905020,percent_women:.335,median_earning_women:26749,median_earning_men:27445,women_earning_percent_of_men:.975,Men:601838.3,Women:303182,percent_men:.665},{occupation:"First line supervisors of production and operating workers",number_full_time:836803,percent_women:.191,median_earning_women:41397,median_earning_men:56343,women_earning_percent_of_men:.735,Men:676973.627,Women:159829,percent_men:.8089999999999999},{occupation:"Production workers, all other",number_full_time:953539,percent_women:.262,median_earning_women:27236,median_earning_men:37414,women_earning_percent_of_men:.728,Men:703711.782,Women:249827,percent_men:.738},{occupation:"Electricians",number_full_time:647922,percent_women:.02,median_earning_women:50082,median_earning_men:51289,women_earning_percent_of_men:.976,Men:634963.5599999999,Women:12958,percent_men:.98},{occupation:"General and operations managers",number_full_time:834005,percent_women:.295,median_earning_women:56906,median_earning_men:76246,women_earning_percent_of_men:.746,Men:587973.525,Women:246031,percent_men:.7050000000000001},{occupation:"Accountants and auditors",number_full_time:1628824,percent_women:.597,median_earning_women:57370,median_earning_men:76129,women_earning_percent_of_men:.754,Men:656416.072,Women:972408,percent_men:.403},{occupation:"Customer service representatives",number_full_time:1782634,percent_women:.65,median_earning_women:32095,median_earning_men:36744,women_earning_percent_of_men:.873,Men:623921.8999999999,Women:1158712,percent_men:.35},{occupation:"Miscellaneous assemblers and fabricators",number_full_time:811317,percent_women:.37,median_earning_women:28313,median_earning_men:33412,women_earning_percent_of_men:.847,Men:511129.71,Women:300187,percent_men:.63},{occupation:"Marketing and sales managers",number_full_time:843840,percent_women:.449,median_earning_women:69079,median_earning_men:100137,women_earning_percent_of_men:.69,Men:464955.83999999997,Women:378884,percent_men:.5509999999999999},{occupation:"Police and sheriff's patrol officers",number_full_time:669550,percent_women:.13,median_earning_women:57402,median_earning_men:64792,women_earning_percent_of_men:.8859999999999999,Men:582508.5,Women:87042,percent_men:.87},{occupation:"Managers, all other",number_full_time:3758629,percent_women:.342,median_earning_women:67769,median_earning_men:84600,women_earning_percent_of_men:.8009999999999999,Men:2473177.8819999998,Women:1285451,percent_men:.6579999999999999},{occupation:"Driver/sales workers and truck drivers",number_full_time:2695081,percent_women:.046,median_earning_women:32237,median_earning_men:42435,women_earning_percent_of_men:.76,Men:2571107.2739999997,Women:123974,percent_men:.954},{occupation:"First-line supervisors of non-retail sales workers",number_full_time:1074798,percent_women:.303,median_earning_women:58166,median_earning_men:67434,women_earning_percent_of_men:.863,Men:749134.2060000001,Women:325664,percent_men:.6970000000000001},{occupation:"Lawyers",number_full_time:891088,percent_women:.36200000000000004,median_earning_women:102484,median_earning_men:136043,women_earning_percent_of_men:.753,Men:568514.1439999999,Women:322574,percent_men:.6379999999999999},{occupation:"Elementary School Teachers",number_full_time:2398445,percent_women:.779,median_earning_women:53096,median_earning_men:50021,women_earning_percent_of_men:.9420000000000001,Men:530056.345,Women:1868389,percent_men:.22099999999999997},{occupation:"First-line supervisors of construction trades and extraction workers",number_full_time:670638,percent_women:.031,median_earning_women:45174,median_earning_men:60145,women_earning_percent_of_men:.7509999999999999,Men:649848.222,Women:20790,percent_men:.969}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(5),i=n(55),o=n(20),u=(n(58),n(29)),c=n(21),s=n(4),l=n(8),f=n(30),d=(n(67),n(28)),h=n(15);var p=function(e){return e.percent_women},m=function(e){return e.median_earning},_=function(e){return e.number_full_time},g=function(e){return e.category},y=(0,l.format)(".0%"),v=(0,l.format)("$,.0f"),b=(0,l.format)(",.0f"),w=125,x=50,k=25,M=25,O=void 0;t.default=(0,f.withTooltip)(function(e){var t=e.height,n=e.data,l=e.tooltipData,T=e.title,E=e.filter,j=e.note,S=e.source,N=e.figureNumber,C=e.subtitle;return r.default.createElement(d.ParentSize,null,function(d){var P=d.width,R=P-k-M,D=t-w-x;(0,s.max)(n,m);if(P<10)return null;var A=(0,u.scaleLinear)({domain:[0,1],range:[0,R],clamp:!0}),L=(0,u.scaleLinear)({domain:[0,11e4],range:[D,0],clamp:!0}),W=(0,u.scaleLinear)({domain:(0,s.extent)(n,_),range:[2,40],clamp:!0}),F=(0,u.scaleOrdinal)({domain:["Low Wage, Female-Dominated","Low to Middle Wage, Male-Dominated","Middle to High Wage, Female-Dominated","High Wage, Male-Dominated"],range:["#7CA3E4","#C28949","#22C8A3","#FF6677"]});return r.default.createElement("div",null,r.default.createElement("svg",{width:P,height:t},r.default.createElement("rect",{x:0,y:0,width:P,height:t,fill:"rgba(51,51,51,0)"}),r.default.createElement("g",{transform:"translate(0,35)"},r.default.createElement("text",{fontSize:"16px",fontWeight:"bold"},"Figure ",N,"  |  "),r.default.createElement(h.Text,{transform:"translate(83.44,"+(P<650-k-M-83.44?0:-6)+")",width:P-83.44-k-M,verticalAnchor:"middle"},T)),C&&r.default.createElement("g",{transform:"translate("+k+",55)"},r.default.createElement(h.Text,{transform:"translate(83.44,"+(P<650-k-M-83.44?0:-6)+")",style:{fontStyle:"italic"},width:P-83.44-k-M,verticalAnchor:"middle"},C)),r.default.createElement("g",{transform:"translate("+k+", "+w+")"},r.default.createElement(a.Group,{onTouchStart:function(){return function(t){O&&clearTimeout(O),e.hideTooltip()}}},n.sort(function(e,t){return _(t)-_(e)}).map(function(t,n){var a=E?E(t)?F(g(t)):"#eee":F(g(t));return r.default.createElement(i.GlyphCircle,{className:"dot",key:"point-"+n,stroke:"#eee"===a?"none":"rgba(51,51,51,0.6)",fill:a,left:A(p(t)),top:L(m(t)),style:{cursor:"pointer"},size:Math.PI*W(_(t))*W(_(t)),onMouseEnter:function(){return function(n){O&&clearTimeout(O),e.showTooltip({tooltipLeft:A(p(t))+(p(t)>.5?-275:50),tooltipTop:L(m(t))+20,tooltipData:t})}},onTouchStart:function(){return function(n){O&&clearTimeout(O),e.showTooltip({tooltipLeft:A(p(t)),tooltipTop:L(m(t))-30,tooltipData:t})}},onMouseLeave:function(){return function(t){O=setTimeout(function(){e.hideTooltip()},300)}}})})),r.default.createElement(c.AxisLeft,{scale:L,left:A(.5),tickFormat:v,stroke:"rgba(0,0,0,0.15)",hideTicks:!0,label:"Median Earning",numTicks:5,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"11px",textAnchor:"end",fill:"#333"}},tickValues:[0,2e4,6e4,8e4,1e5],labelProps:{x:0,y:-25,transform:"none",textAnchor:"middle",fill:"#333",fontSize:"14px",fontWeight:"bold"}}),r.default.createElement(c.AxisBottom,{scale:A,top:L(4e4),tickFormat:y,stroke:"rgba(0,0,0,0.15)",hideTicks:!0,label:"% Women",numTicks:5,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"11px",dy:"1.5em",fill:"#333",textAnchor:"middle"}},tickTransform:"translate(0,10px)",labelProps:{transform:"translate("+A(.5)+", -15)",textAnchor:"end",fill:"#333",fontSize:"14px",fontWeight:"bold"}}),!E&&r.default.createElement(r.default.Fragment,null))),!E&&r.default.createElement(o.LegendOrdinal,{direction:"row",itemDirection:"row",shapeMargin:"0",labelMargin:"0 0 0 4px",itemMargin:"0 15px 0 0",scale:F,style:{fontSize:"11px",display:"flex",flexDirection:"row",position:"relative",top:"-25px"}}),!E&&r.default.createElement("h6",{className:"margin-5",dangerouslySetInnerHTML:{__html:j}}),r.default.createElement("h6",{className:"margin-5",dangerouslySetInnerHTML:{__html:S}}),e.tooltipOpen&&r.default.createElement(f.Tooltip,{left:e.tooltipLeft,top:e.tooltipTop,style:{borderRadius:0,borderTop:"3px solid "+F(l.category),width:"250px"}},r.default.createElement("div",null,r.default.createElement("h4",{className:"margin-0",style:{color:F(l.category)}},l.occupation),r.default.createElement("h6",{className:"margin-top-0 margin-bottom-10",style:{borderBottom:"1px solid rgba(0,0,0,0.15)",paddingBottom:"5px",fontSize:"10px",fontStyle:"italic"}},"(",l.category,")"),r.default.createElement("h5",{className:"margin-5"},"% Women"),r.default.createElement("h6",{className:"margin-top-0 margin-bottom-10"},y(l.percent_women)),r.default.createElement("h5",{className:"margin-5"},"Median Earning"),r.default.createElement("h6",{className:"margin-top-0 margin-bottom-10"},v(l.median_earning)),r.default.createElement("h5",{className:"margin-5"},"# of Workers"),r.default.createElement("h6",{className:"margin-top-0 margin-bottom-10"},b(l.number_full_time)))))})})},function(e,t,n){"use strict";n.r(t),n.d(t,"Glyph",function(){return s}),n.d(t,"GlyphDot",function(){return d}),n.d(t,"GlyphCross",function(){return p}),n.d(t,"GlyphDiamond",function(){return m}),n.d(t,"GlyphStar",function(){return _}),n.d(t,"GlyphTriangle",function(){return g}),n.d(t,"GlyphWye",function(){return y}),n.d(t,"GlyphSquare",function(){return v}),n.d(t,"GlyphCircle",function(){return b});var r=n(1),a=n.n(r),i=n(5),o=n(2),u=n.n(o),c=n(3);function s(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,c=e.className,s=e.children;return a.a.createElement(i.Group,{className:u()("vx-glyph",c),top:n,left:o},s)}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};function d(e){var t=e.top,n=void 0===t?0:t,r=e.left,i=void 0===r?0:r,o=e.className,c=e.children,d=e.cx,h=e.cy,p=e.r,m=e.fill,_=e.stroke,g=e.strokeWidth,y=e.strokeDasharray,v=f(e,["top","left","className","children","cx","cy","r","fill","stroke","strokeWidth","strokeDasharray"]);return a.a.createElement(s,{top:n,left:i},a.a.createElement("circle",l({className:u()("vx-glyph-dot",o),cx:d,cy:h,r:p,fill:m,stroke:_,strokeWidth:g,strokeDasharray:y},v)),c)}function h(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=function(e,t){return"function"==typeof e?e(t):e}(e[r],t),n},{})}function p(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolCross),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-cross",n),d:p()},h(d))),t)}function m(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolDiamond),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-diamond",n),d:p()},h(d))),t)}function _(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolStar),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-star",n),d:p()},h(d))),t)}function g(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolTriangle),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-triangle",n),d:p()},h(d))),t)}function y(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolWye),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-wye",n),d:p()},h(d))),t)}function v(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolSquare),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-square",n),d:p()},h(d))),t)}function b(e){var t=e.children,n=e.className,r=e.top,i=e.left,o=e.size,d=f(e,["children","className","top","left","size"]),p=Object(c.symbol)();return p.type(c.symbolCircle),o&&p.size(o),a.a.createElement(s,{top:r,left:i},a.a.createElement("path",l({className:u()("vx-glyph-circle",n),d:p()},h(d))),t)}},function(e,t,n){"use strict";var r=n(57);function a(){}e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),n.d(t,"LinearGradient",function(){return s}),n.d(t,"RadialGradient",function(){return l}),n.d(t,"GradientDarkgreenGreen",function(){return f}),n.d(t,"GradientLightgreenGreen",function(){return d}),n.d(t,"GradientOrangeRed",function(){return h}),n.d(t,"GradientPinkBlue",function(){return p}),n.d(t,"GradientPinkRed",function(){return m}),n.d(t,"GradientPurpleOrange",function(){return _}),n.d(t,"GradientPurpleRed",function(){return g}),n.d(t,"GradientPurpleTeal",function(){return y}),n.d(t,"GradientSteelPurple",function(){return v}),n.d(t,"GradientTealBlue",function(){return b});var r=n(1),a=n.n(r),i=n(0),o=n.n(i),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n};function s(e){var t=e.children,n=e.id,r=e.from,i=e.to,o=e.x1,s=e.y1,l=e.x2,f=e.y2,d=e.fromOffset,h=void 0===d?"0%":d,p=e.fromOpacity,m=void 0===p?1:p,_=e.toOffset,g=void 0===_?"100%":_,y=e.toOpacity,v=void 0===y?1:y,b=e.rotate,w=e.transform,x=e.vertical,k=void 0===x||x,M=c(e,["children","id","from","to","x1","y1","x2","y2","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform","vertical"]);return!k||o||l||s||f||(o="0",l="0",s="0",f="1"),a.a.createElement("defs",null,a.a.createElement("linearGradient",u({id:n,x1:o,y1:s,x2:l,y2:f,gradientTransform:b?"rotate("+b+")":w},M),!!t&&t,!t&&a.a.createElement("stop",{offset:h,stopColor:r,stopOpacity:m}),!t&&a.a.createElement("stop",{offset:g,stopColor:i,stopOpacity:v})))}function l(e){var t=e.children,n=e.id,r=e.from,i=e.to,o=e.fromOffset,s=void 0===o?"0%":o,l=e.fromOpacity,f=void 0===l?1:l,d=e.toOffset,h=void 0===d?"100%":d,p=e.toOpacity,m=void 0===p?1:p,_=e.rotate,g=e.transform,y=c(e,["children","id","from","to","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform"]);return a.a.createElement("defs",null,a.a.createElement("radialGradient",u({id:n,gradientTransform:_?"rotate("+_+")":g},y),!!t&&t,!t&&a.a.createElement("stop",{offset:s,stopColor:r,stopOpacity:f}),!t&&a.a.createElement("stop",{offset:h,stopColor:i,stopOpacity:m})))}s.propTypes={id:o.a.string.isRequired,from:o.a.string,to:o.a.string,x1:o.a.string,y1:o.a.string,y2:o.a.string,fromOffset:o.a.string,fromOpacity:o.a.number,toOffset:o.a.string,toOpacity:o.a.number,rotate:o.a.oneOfType([o.a.string,o.a.number]),transform:o.a.string},l.propTypes={id:o.a.string.isRequired,from:o.a.string,to:o.a.string,fromOffset:o.a.string,fromOpacity:o.a.number,toOffset:o.a.string,toOpacity:o.a.number,rotate:o.a.oneOfType([o.a.string,o.a.number]),transform:o.a.string};var f=function(e){return a.a.createElement(s,u({from:"#184E86",to:"#57CA85"},e))},d=function(e){return a.a.createElement(s,u({from:"#42E695",to:"#3BB2B8"},e))},h=function(e){return a.a.createElement(s,u({from:"#FCE38A",to:"#F38181"},e))},p=function(e){return a.a.createElement(s,u({from:"#F02FC2",to:"#6094EA"},e))},m=function(e){return a.a.createElement(s,u({from:"#F54EA2",to:"#FF7676"},e))},_=function(e){return a.a.createElement(s,u({from:"#7117EA",to:"#EA6060"},e))},g=function(e){return a.a.createElement(s,u({from:"#622774",to:"#C53364"},e))},y=function(e){return a.a.createElement(s,u({from:"#5B247A",to:"#1BCEDF"},e))},v=function(e){return a.a.createElement(s,u({from:"#65799B",to:"#5E2563"},e))},b=function(e){return a.a.createElement(s,u({from:"#17EAD9",to:"#6078EA"},e))}},function(e,t){function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var i=a(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}function a(e,t,n){var r,a,i,o,u,c=n.indexOf(e),s=n.indexOf(t,c+1),l=c;if(c>=0&&s>0){for(r=[],i=n.length;l>=0&&!u;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?u=[r.pop(),s]:((a=r.pop())<i&&(i=a,o=s),s=n.indexOf(t,l+1)),l=c<s&&c>=0?c:s;r.length&&(u=[i,o])}return u}e.exports=n,n.range=a},function(e,t,n){var r=n(61);function a(e,t,n){var i=e;return function(e,t){var n=[],a="string"==typeof t?new RegExp("\\b("+t+")\\("):t;do{var i=a.exec(e);if(!i)return n;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=i[1],u=i.index,c=r("(",")",e.substring(u));if(!c||c.start!==i[0].length-1)throw new SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:c,functionIdentifier:o}),e=c.post}while(a.test(e));return n}(e,t).reduce(function(e,r){return e.replace(r.functionIdentifier+"("+r.matches.body+")",function(e,t,n,r,i){return n(a(e,i,n),t,r)}(r.matches.body,r.functionIdentifier,n,i,t))},e)}e.exports=a},function(e,t){function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var i=a(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}function a(e,t,n){var r,a,i,o,u,c=n.indexOf(e),s=n.indexOf(t,c+1),l=c;if(c>=0&&s>0){for(r=[],i=n.length;l>=0&&!u;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?u=[r.pop(),s]:((a=r.pop())<i&&(i=a,o=s),s=n.indexOf(t,l+1)),l=c<s&&c>=0?c:s;r.length&&(u=[i,o])}return u}e.exports=n,n.range=a},function(e,t,n){var r=n(63);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],a=this.value,i=0;i<a.length;i++)1===a[i].type||3===a[i].type?r.push({value:3===a[i].type?a[i].show:a[i].value,type:1}):13===a[i].type?r.push({value:a[i].show,type:1}):0===a[i].type?r[r.length-1]={value:a[i].show+("-"!=a[i].show?"(":"")+r[r.length-1].value+("-"!=a[i].show?")":""),type:0}:7===a[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+a[i].show,type:7}:10===a[i].type?(e=r.pop(),t=r.pop(),"P"===a[i].show||"C"===a[i].show?r.push({value:"<sup>"+t.value+"</sup>"+a[i].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===a[i].type||9===a[i].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+a[i].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:a[i].type})):12===a[i].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:a[i].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},function(e,t,n){var r=n(64);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,a,i=[],o=this.value,u=void 0!==e.n,c=0;c<o.length;c++)1===o[c].type?i.push({value:o[c].value,type:1}):3===o[c].type?i.push({value:e[o[c].value],type:1}):0===o[c].type?void 0===i[i.length-1].type?i[i.length-1].value.push(o[c]):i[i.length-1].value=o[c].value(i[i.length-1].value):7===o[c].type?void 0===i[i.length-1].type?i[i.length-1].value.push(o[c]):i[i.length-1].value=o[c].value(i[i.length-1].value):8===o[c].type?(t=i.pop(),n=i.pop(),i.push({type:1,value:o[c].value(n.value,t.value)})):10===o[c].type?(t=i.pop(),void 0===(n=i.pop()).type?(n.value=n.concat(t),n.value.push(o[c]),i.push(n)):void 0===t.type?(t.unshift(n),t.push(o[c]),i.push(t)):i.push({type:1,value:o[c].value(n.value,t.value)})):2===o[c].type||9===o[c].type?(t=i.pop(),void 0===(n=i.pop()).type?(console.log(n),(n=n.concat(t)).push(o[c]),i.push(n)):void 0===t.type?(t.unshift(n),t.push(o[c]),i.push(t)):i.push({type:1,value:o[c].value(n.value,t.value)})):12===o[c].type?(void 0!==(t=i.pop()).type&&(t=[t]),n=i.pop(),a=i.pop(),i.push({type:1,value:o[c].value(a.value,n.value,new r(t))})):13===o[c].type&&(u?i.push({value:e[o[c].value],type:3}):i.push([o[c]]));if(i.length>1)throw new r.exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0===n?void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},function(e,t,n){var r=n(65);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,a,i,o=[],u=[{value:"(",type:4,pre:0}],c=this.value,s=1;s<c.length;s++)if(1===c[s].type||3===c[s].type||13===c[s].type)1===c[s].type&&(c[s].value=Number(c[s].value)),o.push(c[s]);else if(4===c[s].type)u.push(c[s]);else if(5===c[s].type)for(;4!==(t=u.pop()).type;)o.push(t);else if(11===c[s].type){for(;4!==(t=u.pop()).type;)o.push(t);u.push(t)}else{a=(e=c[s]).pre,n=(i=u[u.length-1]).pre;var l="Math.pow"==i.value&&"Math.pow"==e.value;if(a>n)u.push(e);else{for(;n>=a&&!l||l&&a<n;)t=u.pop(),i=u[u.length-1],o.push(t),n=i.pre,l="Math.pow"==e.value&&"Math.pow"==i.value;u.push(e)}}return new r(o)},e.exports=r},function(e,t,n){var r=n(66);function a(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}var o=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],u=["sin","cos","tan","&pi;","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","&divide;","!","tanh","atanh"," Mod ","1","2","3","&times;","sinh","asinh","e"," log","0",".","+","-",",","&Sigma;","n","&Pi;","pow"],c=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],s={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},l=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],f={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},d={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},h={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},p={},m={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},_={1:!0},g=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function v(e,t,n,r){for(var a=0;a<r;a++)if(e[n+a]!==t[a])return!1;return!0}r.addToken=function(e){for(i=0;i<e.length;i++){x=e[i].token.length;var t=-1;if(x<g.length)for(y=0;y<g[x].length;y++)if(e[i].token===g[x][y]){t=o.indexOf(g[x][y]);break}-1===t?(o.push(e[i].token),l.push(e[i].type),g.length<=e[i].token.length&&(g[e[i].token.length]=[]),g[e[i].token.length].push(e[i].token),c.push(e[i].value),u.push(e[i].show)):(o[t]=e[i].token,l[t]=e[i].type,c[t]=e[i].value,u[t]=e[i].show)}},r.lex=function(e,t){"use strict";var n,i,y,b,w=[{type:4,value:"(",show:"(",pre:0}],x=[],k=e,M=0,O=f,T=0,E=p,j="";void 0!==t&&r.addToken(t);var S={};for(i=0;i<k.length;i++)if(" "!=k[i]){n="";e:for(y=k.length-i>g.length-2?g.length-1:k.length-i;y>0;y--)for(b=0;b<g[y].length;b++)if(v(k,g[y][b],i,y)){n=g[y][b];break e}if(i+=n.length-1,""===n)throw new r.exception("Can't understand after "+k.slice(i));var N=o.indexOf(n),C=n,P=l[N],R=c[N],D=s[P],A=u[N],L=w[w.length-1];for(W=x.length;W--;)if(0===x[W]&&-1!==[0,2,3,5,9,11,12,13].indexOf(P)){if(!0!==O[P])throw new r.exception(n+" is not allowed after "+j);w.push({value:")",type:5,pre:0,show:")"}),O=d,E=m,a(x,-1).pop()}if(!0!==O[P])throw new r.exception(n+" is not allowed after "+j);if(!0===E[P]&&(P=2,R=r.math.mul,A="&times;",D=3,i-=n.length),S={value:R,type:P,pre:D,show:A},0===P)O=f,E=p,a(x,2).push(2),w.push(S),w.push({value:"(",type:4,pre:0,show:"("});else if(1===P)1===L.type?(L.value+=R,a(x,1)):w.push(S),O=d,E=h;else if(2===P)O=f,E=p,a(x,2),w.push(S);else if(3===P)w.push(S),O=d,E=m;else if(4===P)M+=x.length,x=[],T++,O=f,E=p,w.push(S);else if(5===P){if(!T)throw new r.exception("Closing parenthesis are more than opening one, wait What!!!");for(;M--;)w.push({value:")",type:5,pre:0,show:")"});M=0,T--,O=d,E=m,w.push(S)}else if(6===P){if(L.hasDec)throw new r.exception("Two decimals are not allowed in one number");1!==L.type&&(L={value:0,type:1,pre:0},w.push(L),a(x,-1)),O=_,a(x,1),E=p,L.value+=R,L.hasDec=!0}else 7===P&&(O=d,E=m,a(x,1),w.push(S));8===P?(O=f,E=p,a(x,4).push(4),w.push(S),w.push({value:"(",type:4,pre:0,show:"("})):9===P?(9===L.type?L.value===r.math.add?(L.value=R,L.show=A,a(x,1)):L.value===r.math.sub&&"-"===A&&(L.value=r.math.add,L.show="+",a(x,1)):5!==L.type&&7!==L.type&&1!==L.type&&3!==L.type&&13!==L.type?"-"===C&&(O=f,E=p,a(x,2).push(2),w.push({value:r.math.changeSign,type:0,pre:21,show:"-"}),w.push({value:"(",type:4,pre:0,show:"("})):(w.push(S),a(x,2)),O=f,E=p):10===P?(O=f,E=p,a(x,2),w.push(S)):11===P?(O=f,E=p,w.push(S)):12===P?(O=f,E=p,a(x,6).push(6),w.push(S),w.push({value:"(",type:4,pre:0})):13===P&&(O=d,E=m,w.push(S)),a(x,-1),j=n}for(var W=x.length;W--;)0===x[W]&&(w.push({value:")",show:")",type:5,pre:3}),a(x,-1).pop());if(!0!==O[5])throw new r.exception("complete the expression");for(;T--;)w.push({value:")",show:")",type:5,pre:3});return w.push({type:5,value:")",show:")",pre:0}),new r(w)},e.exports=r},function(e,t){var n=function(e){this.value=e};n.math={isDegree:!0,acos:function(e){return n.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return n.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return n.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var r=1,a=e-t,i=t;i<a&&(i=a,a=t);for(var o=i+1;o<=e;o++)r*=o;return r/n.math.fact(a)},changeSign:function(e){return-e},cos:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!=0)return"NAN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,a=e;a<=t;a++)r*=Number(n.postfixEval({n:a}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,a=e;a<=t;a++)r+=Number(n.postfixEval({n:a}));return r},sin:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return n.math.isDegree&&(e=n.math.toRadian(e)),Math.tan(e)},tanh:function(e){return n.sinha(e)/n.cosha(e)},toRadian:function(e){return e*Math.PI/180}},n.exception=function(e){this.message=e},e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationCalloutCustom=t.AnnotationBracket=t.AnnotationBadge=t.AnnotationXYThreshold=t.AnnotationCalloutRect=t.AnnotationCalloutElbow=t.AnnotationCalloutCurve=t.AnnotationCalloutCircle=t.AnnotationCallout=t.AnnotationLabel=t.EditableAnnotation=t.Annotation=t.BracketNote=t.Note=t.SubjectCustom=t.SubjectBracket=t.SubjectThreshold=t.SubjectRect=t.SubjectCircle=t.SubjectBadge=t.Subject=t.ConnectorEndArrow=t.ConnectorEndDot=t.ConnectorLine=t.ConnectorElbow=t.ConnectorCurve=t.Connector=void 0;var r=N(n(17)),a=N(n(23)),i=N(n(14)),o=N(n(18)),u=N(n(33)),c=N(n(35)),s=N(n(13)),l=N(n(36)),f=N(n(37)),d=N(n(38)),h=N(n(39)),p=N(n(40)),m=N(n(41)),_=N(n(25)),g=N(n(42)),y=N(n(27)),v=N(n(43)),b=N(n(83)),w=N(n(84)),x=N(n(85)),k=N(n(86)),M=N(n(87)),O=N(n(88)),T=N(n(89)),E=N(n(90)),j=N(n(91)),S=N(n(92));function N(e){return e&&e.__esModule?e:{default:e}}t.Connector=r.default,t.ConnectorCurve=a.default,t.ConnectorElbow=i.default,t.ConnectorLine=o.default,t.ConnectorEndDot=u.default,t.ConnectorEndArrow=c.default,t.Subject=s.default,t.SubjectBadge=l.default,t.SubjectCircle=f.default,t.SubjectRect=d.default,t.SubjectThreshold=h.default,t.SubjectBracket=p.default,t.SubjectCustom=m.default,t.Note=_.default,t.BracketNote=g.default,t.Annotation=y.default,t.EditableAnnotation=v.default,t.AnnotationLabel=b.default,t.AnnotationCallout=w.default,t.AnnotationCalloutCircle=M.default,t.AnnotationCalloutCurve=k.default,t.AnnotationCalloutElbow=x.default,t.AnnotationCalloutRect=O.default,t.AnnotationXYThreshold=T.default,t.AnnotationBadge=E.default,t.AnnotationBracket=j.default,t.AnnotationCalloutCustom=S.default,t.default={Connector:r.default,ConnectorCurve:a.default,ConnectorElbow:i.default,ConnectorLine:o.default,ConnectorEndDot:u.default,ConnectorEndArrow:c.default,Subject:s.default,SubjectBadge:l.default,SubjectCircle:f.default,SubjectRect:d.default,SubjectThreshold:h.default,SubjectBracket:p.default,SubjectCustom:m.default,Note:_.default,BracketNote:g.default,Annotation:y.default,EditableAnnotation:v.default,AnnotationLabel:b.default,AnnotationCallout:w.default,AnnotationCalloutCircle:M.default,AnnotationCalloutCurve:k.default,AnnotationCalloutElbow:x.default,AnnotationCalloutRect:O.default,AnnotationXYThreshold:T.default,AnnotationBadge:E.default,AnnotationBracket:j.default,AnnotationCalloutCustom:S.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),a=n(32),i=n(3);t.default=function(e){var t=e.curve,n=e.points,o=e.x,u=e.y,c=e.dx,s=e.dy,l=e.radius,f=e.outerRadius,d=e.width,h=e.height;n&&"number"!=typeof n||(n=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e.x/(t+1),r=e.y/(t+1),a=[],i=1;i<=t;i++)a.push([n*i+i%2*20,r*i-i%2*20]);return a}({x:c,y:s},n)),t||(t=i.curveCatmullRom);var p=(0,a.lineSetup)({x:o,y:u,dx:c,dy:s,radius:l,outerRadius:f,width:d,height:h});return p=[p[0]].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n),[p[1]]),{components:[(0,r.lineBuilder)({data:p,curve:t,className:"connector"})],handles:[]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.dx,n=e.dy,a=e.radius,i=e.outerRadius,o=e.radiusPadding,u=e.width,c=e.height,s=0,l=t,f=0,d=n;u&&c&&((u>0&&t>0||u<0&&t<0)&&(s=Math.abs(u)>Math.abs(t)?u/2:u),(c>0&&n>0||c<0&&n<0)&&(f=Math.abs(c)>Math.abs(n)?c/2:c),s===u/2&&f===c/2&&(s=l,f=d));var h=[[s,f],[l,d]],p=d-f,m=l-s,_=l,g=d,y=d<f&&l>s||l<s&&d>f?-1:1;if(Math.abs(m)<Math.abs(p)?(_=l,g=f+m*y):(g=d,_=s+p*y),i||a){var v=(i||a)+(o||0),b=v/Math.sqrt(2);if(Math.abs(m)>b&&Math.abs(p)>b)h=[[s=b*(l<0?-1:1),f=b*(d<0?-1:1)],[_,g],[l,d]];else if(Math.abs(m)>Math.abs(p)){var w=Math.asin(-d/v);h=[[s=Math.abs(Math.cos(w)*v)*(l<0?-1:1),d],[l,d]]}else{var x=Math.acos(l/v);h=[[l,f=Math.abs(Math.sin(x)*v)*(d<0?-1:1)],[l,d]]}}else h=[[s,f],[_,g],[l,d]];return{components:[(0,r.lineBuilder)({data:h,className:"connector"})]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.lineData,n=e.scale,a=void 0===n?1:n,i=(0,r.arcBuilder)({className:"connector-end connector-dot",classID:"connector-end",data:{radius:3*Math.sqrt(a)}});return i.attrs.transform="translate("+t[0][0]+", "+t[0][1]+")",{components:[i]}}},function(e,t,n){"use strict";var r=n(72),a=n(73),i=n(74);e.exports=function(){function e(e,t,n,r,o,u){u!==i&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,a,i,o,u,c){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,i,o,u,c],f=0;(s=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.dx,n=e.dy,a=e.start,i=e.end,o=e.scale,u=void 0===o?1:o;a=a?[-i[0]+a[0],-i[1]+a[1]]:[t,n],i||(i=[0,0]);var c=i[0],s=i[1],l=10*u,f=16/180*Math.PI,d=Math.atan(a[1]/a[0]);a[0]<0&&(d+=Math.PI);var h=[[c,s],[Math.cos(d+f)*l+c,Math.sin(d+f)*l+s],[Math.cos(d-f)*l+c,Math.sin(d-f)*l+s],[c,s]];return{components:[(0,r.lineBuilder)({data:h,className:"connector-end connector-arrow",classID:"connector-end"})]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.radius,n=void 0===t?14:t,a=e.leftRight,i=e.topBottom,o=e.text,u=e.color,c=e.editMode,s=[],l=[],f=.7*n,d=0,h=0,p=Math.sqrt(2)*n,m={xleftcorner:-n,xrightcorner:n,ytopcorner:-n,ybottomcorner:n,xleft:-p,xright:p,ytop:-p,ybottom:p};a&&!i?d=m["x"+a]:i&&!a?h=m["y"+i]:a&&i&&(d=m["x"+a+"corner"],h=m["y"+i+"corner"]);var _="translate("+d+", "+h+")",g=(0,r.arcBuilder)({className:"subject",data:{radius:n}});g.attrs.transform=_,g.attrs.fill=u,g.attrs["stroke-linecap"]="round",g.attrs["stroke-width"]="3px";var y=(0,r.arcBuilder)({className:"subject-ring",data:{outerRadius:n,innerRadius:f}});y.attrs.transform=_,y.attrs["stroke-width"]="3px",y.attrs.fill="white";var v=void 0;if(d&&h||!d&&!h)v=(0,r.lineBuilder)({className:"subject-pointer",data:[[0,0],[d||0,0],[0,h||0],[0,0]]});else if(d||h){var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e&&e/Math.sqrt(2)/Math.sqrt(2)||t*n/Math.sqrt(2)};v=(0,r.lineBuilder)({className:"subject-pointer",data:[[0,0],[b(d),b(h)],[b(d,-1),b(h,-1)],[0,0]]})}if(v&&(v.attrs.fill=u,v.attrs["stroke-linecap"]="round",v.attrs["stroke-width"]="3px",l.push(v)),c){var w={x:2*d,y:2*h,offsetParent:!0};w.x||w.y||(w.y=-n),s=[w]}var x=void 0;return o&&(x={type:"text",className:"badge-text",attrs:{fill:"white",stroke:"none","font-size":".7em",text:o,"text-anchor":"middle",dy:".25em",x:d,y:h}}),l.push(g),l.push(y),l.push(x),{components:l,handles:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circleHandles=void 0;var r=n(9),a=t.circleHandles=function(e){var t=e.cx,n=void 0===t?0:t,r=e.cy,a=void 0===r?0:r,i=e.r1,o=e.r2,u=e.padding,c={move:{x:n,y:a}};return void 0!==i&&(c.r1={x:n+i/Math.sqrt(2),y:a+i/Math.sqrt(2)}),void 0!==o&&(c.r2={x:n+o/Math.sqrt(2),y:a+o/Math.sqrt(2)}),void 0!==u&&(c.padding={x:n+i+u,y:a}),c};t.default=function(e){var t=e.radius,n=e.radiusPadding,i=e.outerRadius,o=e.innerRadius,u=e.editMode,c=[],s=(0,r.arcBuilder)({data:{radius:t,outerRadius:i,innerRadius:o},className:"subject"});if(u){var l=a({r1:s.data.outerRadius||s.data.radius,r2:s.data.innerRadius,padding:n}),f=[{x:l.r1.x,y:l.r1.y,key:s.data.outerRadius?"outerRadius":"radius"}];o&&f.push({x:l.r2.x,y:l.r2.y,key:"innerRadius"}),c=f}return s.attrs["fill-opacity"]=0,{components:[s],handles:c}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.width,n=void 0===t?100:t,a=e.height,i=void 0===a?100:a,o=e.editMode,u=[],c=[[0,0],[n,0],[n,i],[0,i],[0,0]],s=(0,r.lineBuilder)({data:c,className:"subject"});return o&&(u=[{x:n,y:i/2,key:"width"},{x:n/2,y:i,key:"height"}]),s.attrs["fill-opacity"]=.1,{components:[s],handles:u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.x1,n=e.x2,a=e.y1,i=e.y2,o=e.x,u=e.y;t=(void 0!==t?t:o)-o,n=(void 0!==n?n:o)-o;var c=[[t,a=(void 0!==a?a:u)-u],[n,i=(void 0!==i?i:u)-u]];return{components:[(0,r.lineBuilder)({data:c,className:"subject"})]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);t.default=function(e){var t=e.height,n=e.width,a=e.depth,i=e.type,o=e.editMode,u=[],c=void 0,s=void 0;return"square"===i?(t?c=[[0,0],[a,0],[a,t],[0,t]]:n&&(c=[[0,0],[0,a],[n,a],[n,0]]),s=(0,r.lineBuilder)({data:c,className:"subject"})):"curly"===i&&(s=(0,r.pathBuilder)({d:function(e,t,n,r,a,i){var o=e-n,u=t-r,c=Math.sqrt(o*o+u*u),s=e-.5*c*(o/=c)+a*(u/=c),l=t-.5*c*u-a*o;return"M "+e+" "+t+" Q "+(e+i*a*u)+" "+(t-i*a*o)+" "+(e-.25*c*o+(1-i)*a*u)+" "+(t-.25*c*u-(1-i)*a*o)+" T "+s+" "+l+" M "+n+" "+r+" Q "+(n+i*a*u)+" "+(r-i*a*o)+" "+(e-.75*c*o+(1-i)*a*u)+" "+(t-.75*c*u-(1-i)*a*o)+" T "+s+" "+l}(0,0,n||0,t||0,t&&t>0||n&&n<0?-a:a,.55),className:"subject"})),o&&(u=[{x:t?a:n/2,y:t?t/2:a,key:"depth",type:t?"X":"Y"},{x:n||0,y:t||0,key:t?"height":"width"}]),s.attrs["fill-opacity"]=.1,{components:[s],handles:u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),a=n(26);t.default=function(e){var t=e.align,n=e.x,i=void 0===n?0:n,o=e.y,u=void 0===o?0:o,c=e.bbox,s=e.offset;"top"===(t=(0,a.leftRightDynamic)(t,s.y))?u-=c.height:"middle"===t&&(u-=c.height/2);var l=[[i,u],[i,u+c.height]];return{components:[(0,r.lineBuilder)({data:l,className:"note-line"})]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),a=n(26);t.default=function(e){var t=e.align,n=e.x,i=void 0===n?0:n,o=e.y,u=void 0===o?0:o,c=e.offset,s=e.bbox;"right"===(t=(0,a.topBottomDynamic)(t,c.x))?i-=s.width:"middle"===t&&(i-=s.width/2);var l=[[i,u],[i+s.width,u]];return{components:[(0,r.lineBuilder)({data:l,className:"note-line"})]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,a.default)("label",e.className);return(0,i.default)(r({},e,{className:t}),o.default,{align:"middle"})};u(n(1));var a=u(n(10)),i=u(n(12)),o=u(n(18));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,a.default)("callout",e.className);return(0,i.default)(r({},e,{className:t}),o.default,{lineType:"horizontal"})};u(n(1));var a=u(n(10)),i=u(n(12)),o=u(n(18));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,i.default)("callout elbow",e.className);return(0,o.default)(r({},e,{className:t}),a.default,{lineType:"horizontal"})};u(n(1));var a=u(n(14)),i=u(n(10)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,i.default)("callout curve",e.className);return(0,o.default)(r({},e,{className:t}),a.default,{lineType:"horizontal"})};u(n(1));var a=u(n(23)),i=u(n(10)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,o.default)("callout circle",e.className);return(0,u.default)(r({},e,{className:t}),i.default,{lineType:"horizontal"},a.default,{radius:20})};c(n(1));var a=c(n(37)),i=c(n(14)),o=c(n(10)),u=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,o.default)("callout rect",e.className);return(0,u.default)(r({},e,{className:t}),i.default,{lineType:"horizontal"},a.default,{width:100,height:100})};c(n(1));var a=c(n(38)),i=c(n(14)),o=c(n(10)),u=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,o.default)("callout xythreshold",e.className);return(0,u.default)(r({},e,{className:t}),i.default,{lineType:"horizontal"},a.default)};c(n(1));var a=c(n(39)),i=c(n(14)),o=c(n(10)),u=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,i.default)("badge",e.className);return(0,o.default)(r({disable:["connector","note"]},e,{className:t}),null,null,a.default)};u(n(1));var a=u(n(36)),i=u(n(10)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,o.default)("bracket",e.className);return(0,u.default)(r({disable:["connector"]},e,{className:t}),null,null,a.default,{depth:20},i.default)};c(n(1));var a=c(n(40)),i=c(n(42)),o=c(n(10)),u=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=(0,o.default)("callout custom",e.className);return(0,u.default)(r({},e,{className:t}),i.default,{lineType:"horizontal"},a.default)};c(n(1));var a=c(n(41)),i=c(n(14)),o=c(n(10)),u=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(5),i=n(16),o=n(28),u=(n(20),n(29)),c=n(21),s=n(4),l=n(8),f=n(30),d=(n(44),n(15));var h=120,p=50,m=150,_=25,g=function(e){return e.occupation},y=((0,l.format)(",.0f"),(0,l.format)("$,.0f"),(0,l.format)(".0%"),void 0);t.default=(0,f.withTooltip)(function(e){e.width;var t=e.height,n=e.data,l=e.tooltipData,v=e.title,b=e.x,w=e.TooltipTemplate,x=e.xAxisLabel;return r.default.createElement(o.ParentSize,null,function(o){var k=o.width,M=k-m-_,O=(0,s.max)(n,b),T=t-h-p;(0,s.max)(n,g);if(k<10)return null;var E=(0,u.scaleLinear)({domain:[0,O],rangeRound:[0,M],clamp:!0}),j=(0,u.scaleBand)({rangeRound:[T,0],domain:n.map(g),padding:.2});(0,u.scaleOrdinal)({domain:["Women","Men"],range:["#2EBCB3","#4378A0"]});return r.default.createElement(r.default.Fragment,null,r.default.createElement("svg",{width:k,height:t},r.default.createElement("rect",{x:0,y:0,width:k,height:t,fill:"rgba(51,51,51,0)"}),r.default.createElement("g",{transform:"translate(35,35)"},r.default.createElement("text",{fontSize:"16px",fontWeight:"bold"},"Figure X  |  "),r.default.createElement(d.Text,{transform:"translate(83.44,"+(k<615-_-83.44?0:-6)+")",width:k-83.44-m-_,verticalAnchor:"middle"},v)),r.default.createElement("g",{transform:"translate("+m+", "+h+")"},r.default.createElement(c.AxisLeft,{scale:j,stroke:"rgba(0,0,0,0.15)",hideTicks:!0,hideAxisLine:!0,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"12px",width:m,textAnchor:"end",fill:"#333",verticalAnchor:"middle"}},labelProps:{transform:"translate("+(E(.25)-15)+", 15)",textAnchor:"middle",fill:"#333",fontSize:"12px",letterSpacing:"0.0"}}),r.default.createElement(c.AxisTop,{scale:E,stroke:"rgba(0,0,0,0.15)",hideTicks:!0,label:x,numTicks:k<650?1:5,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"11px",fill:"#333",textAnchor:"middle"}},tickTransform:"translate(0,10px)",labelProps:{y:-35,x:0,textAnchor:"start",verticalAnchor:"top",fill:"#333",fontSize:"14px",fontWeight:"bold"}}),r.default.createElement(a.Group,{onTouchStart:function(){return function(t){y&&clearTimeout(y),e.hideTooltip()}}},n.sort(function(e,t){return b(e)-b(t)}).map(function(t,n){var a=E(b(t));return r.default.createElement(i.Bar,{width:a,height:j.bandwidth(),y:j(g(t)),x:0,fill:"#2EBCB3",onMouseEnter:function(){return function(n){y&&clearTimeout(y),e.showTooltip({tooltipLeft:a+50,tooltipTop:j(g(t))+20,tooltipData:t})}},onTouchStart:function(){return function(n){y&&clearTimeout(y),e.showTooltip({tooltipLeft:a,tooltipTop:j(g(t))+20,tooltipData:t})}},onMouseLeave:function(){return function(t){y=setTimeout(function(){e.hideTooltip()},300)}}})})))),e.tooltipOpen&&r.default.createElement(f.Tooltip,{left:e.tooltipLeft,top:e.tooltipTop,style:{borderRadius:0}},r.default.createElement(w,{tooltipData:l})))})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=n(5),i=n(16),o=n(28),u=n(20),c=n(29),s=n(21),l=n(4),f=n(8),d=n(30),h=n(44),p=n(15);var m=125,_=50,g=150,y=25,v=function(e){return e.number_full_time},b=function(e){return e.occupation},w=(0,f.format)(",.0f"),x=((0,f.format)("$,.0f"),(0,f.format)(".0%")),k=void 0;t.default=(0,d.withTooltip)(function(e){e.width;var t=e.height,n=e.data,f=e.tooltipData,M=e.title,O=e.source,T=e.figureNumber,E=e.subtitle;return r.default.createElement(o.ParentSize,null,function(o){var j=o.width,S=j-g-y,N=(0,l.max)(n,v),C=t-m-_,P=((0,l.max)(n,b),["Women","Men"]);if(j<10)return null;var R=(0,c.scaleLinear)({domain:[0,N],rangeRound:[0,S],clamp:!0}),D=(0,c.scaleBand)({rangeRound:[C,0],domain:n.sort(function(e,t){return e.number_full_time-t.number_full_time}).map(b),padding:.2}),A=(0,c.scaleOrdinal)({domain:P,range:["#2EBCB3","#4378A0"]});return r.default.createElement(r.default.Fragment,null,r.default.createElement("svg",{width:j,height:t},r.default.createElement("rect",{x:0,y:0,width:j,height:t,fill:"rgba(51,51,51,0)"}),r.default.createElement("g",{transform:"translate(0,35)"},r.default.createElement("text",{fontSize:"16px",fontWeight:"bold"},"Figure ",T,"  |  "),r.default.createElement(p.Text,{transform:"translate(83.44,-6)",width:j-83.44-y,verticalAnchor:"middle"},M)),E&&r.default.createElement("g",{transform:"translate(25,55)"},r.default.createElement(p.Text,null,E)),r.default.createElement("g",{transform:"translate("+g+", "+m+")"},r.default.createElement(s.AxisLeft,{scale:D,stroke:"rgba(0,0,0,0.15)",hideTicks:!0,hideAxisLine:!0,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"12px",width:g,textAnchor:"end",fill:"#333",verticalAnchor:"middle"}},labelProps:{transform:"translate("+(R(.25)-15)+", 15)",textAnchor:"middle",fill:"#333",fontSize:"14px",letterSpacing:"0.0"}}),r.default.createElement(s.AxisTop,{scale:R,stroke:"rgba(0,0,0,0.15)",hideTicks:!0,label:"Number of fulltime workers",numTicks:j>650?5:2,tickLabelProps:function(){return{fontFamily:"Circular",fontSize:"11px",fill:"#333",textAnchor:"middle"}},tickTransform:"translate(0,10px)",labelProps:{y:-35,x:0,textAnchor:"start",verticalAnchor:"top",fill:"#333",fontSize:"14px",fontWeight:"bold"}}),r.default.createElement(a.Group,{onTouchStart:function(){return function(t){k&&clearTimeout(k),e.hideTooltip()}}},r.default.createElement(i.BarStackHorizontal,{data:n,keys:P,height:C,y:b,yScale:D,xScale:R,zScale:A,onMouseEnter:function(t){return function(n){k&&clearTimeout(k);var r=(0,h.localPoint)(n.target.ownerSVGElement,n);e.showTooltip({tooltipLeft:r.x,tooltipTop:r.y,tooltipData:t})}},onTouchStart:function(t){return function(n){k&&clearTimeout(k);var r=(0,h.localPoint)(n.target.ownerSVGElement,n);e.showTooltip({tooltipLeft:r.x,tooltipTop:r.y,tooltipData:t})}},onMouseLeave:function(){return function(t){k=setTimeout(function(){e.hideTooltip()},300)}}})))),r.default.createElement("div",{style:{position:"relative",top:"-35px",left:"35px",display:"block",fontSize:"14px"}},r.default.createElement(u.LegendOrdinal,{scale:A,direction:"row",labelMargin:"0 15px 0 0"})),r.default.createElement("h6",{className:"margin-5",dangerouslySetInnerHTML:{__html:O}}),e.tooltipOpen&&r.default.createElement(d.Tooltip,{left:e.tooltipLeft,top:e.tooltipTop,style:{borderRadius:0}},r.default.createElement("div",null,r.default.createElement("h4",{className:"margin-top-0 margin-bottom-10",style:{borderBottom:"1px solid rgba(0,0,0,0.15)",paddingBottom:"5px"}},f.data.occupation),r.default.createElement("h5",{className:"margin-5"},"% Women"),r.default.createElement("h6",{className:"margin-top-0 margin-bottom-10"},x(f.data.percent_women)),r.default.createElement("h5",{className:"margin-5"},"# of Workers"),r.default.createElement("h6",{className:"margin-top-0 margin-bottom-10"},w(f.data.number_full_time)))))})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenBarTip=t.WomenBarTip=void 0;var r=n(8),a=(0,r.format)(",.0f"),i=(0,r.format)("$,.0f");t.WomenBarTip=function(e){var t=e.tooltipData;return React.createElement("div",null,React.createElement("h4",{className:"margin-top-0 margin-bottom-10",style:{borderBottom:"1px solid rgba(0,0,0,0.15)",paddingBottom:"5px"}},t.occupation),React.createElement("h5",{className:"margin-5"},"Median Female Earning"),React.createElement("h6",{className:"margin-top-0 margin-bottom-10"},i(t.median_earning_women)),React.createElement("h5",{className:"margin-5"},"# of Female Workers"),React.createElement("h6",{className:"margin-top-0 margin-bottom-10"},a(t.number_women)))},t.MenBarTip=function(e){var t=e.tooltipData;e.zScale;return React.createElement("div",null,React.createElement("h4",{className:"margin-top-0 margin-bottom-10",style:{borderBottom:"1px solid rgba(0,0,0,0.15)",paddingBottom:"5px"}},t.occupation),React.createElement("h5",{className:"margin-5"},"Median Male Earning"),React.createElement("h6",{className:"margin-top-0 margin-bottom-10"},i(t.median_earning_men)),React.createElement("h5",{className:"margin-5"},"# of Male Workers"),React.createElement("h6",{className:"margin-top-0 margin-bottom-10"},a(t.number_men)))}},function(e,t,n){"use strict";function r(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}n.r(t);var a=function(e,t){return fetch(e,t).then(r)};function i(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}var o=function(e,t){return fetch(e,t).then(i)},u={},c={},s=34,l=10,f=13;function d(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}var h=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,a=[],i=e.length,o=0,d=0,h=i<=0,p=!1;function m(){if(h)return c;if(p)return p=!1,u;var t,r,a=o;if(e.charCodeAt(a)===s){for(;o++<i&&e.charCodeAt(o)!==s||e.charCodeAt(++o)===s;);return(t=o)>=i?h=!0:(r=e.charCodeAt(o++))===l?p=!0:r===f&&(p=!0,e.charCodeAt(o)===l&&++o),e.slice(a+1,t-1).replace(/""/g,'"')}for(;o<i;){if((r=e.charCodeAt(t=o++))===l)p=!0;else if(r===f)p=!0,e.charCodeAt(o)===l&&++o;else if(r!==n)continue;return e.slice(a,t)}return h=!0,e.slice(a,i)}for(e.charCodeAt(i-1)===l&&--i,e.charCodeAt(i-1)===f&&--i;(r=m())!==c;){for(var _=[];r!==u&&r!==c;)_.push(r),r=m();t&&null==(_=t(_,d++))||a.push(_)}return a}function a(t){return t.map(i).join(e)}function i(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,a,i=r(e,function(e,r){if(n)return n(e,r-1);a=e,n=t?function(e,t){var n=d(e);return function(r,a){return t(n(r),a,e)}}(e,t):d(e)});return i.columns=a||[],i},parseRows:r,format:function(t,n){return null==n&&(n=function(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}(t)),[n.map(i).join(e)].concat(t.map(function(t){return n.map(function(e){return i(t[e])}).join(e)})).join("\n")},formatRows:function(e){return e.map(a).join("\n")}}},p=h(","),m=p.parse,_=(p.parseRows,p.format,p.formatRows,h("\t")),g=_.parse;_.parseRows,_.format,_.formatRows;function y(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}var v=function(e,t){return fetch(e,t).then(y)};function b(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),v(t,n).then(function(t){return e(t,r)})}}function w(e,t,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var a=h(e);return v(t,n).then(function(e){return a.parse(e,r)})}var x=b(m),k=b(g),M=function(e,t){return new Promise(function(n,r){var a=new Image;for(var i in t)a[i]=t[i];a.onerror=r,a.onload=function(){n(a)},a.src=e})};function O(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}var T=function(e,t){return fetch(e,t).then(O)};function E(e){return function(t,n){return v(t,n).then(function(t){return(new DOMParser).parseFromString(t,e)})}}var j=E("application/xml"),S=E("text/html"),N=E("image/svg+xml");n.d(t,"blob",function(){return a}),n.d(t,"buffer",function(){return o}),n.d(t,"dsv",function(){return w}),n.d(t,"csv",function(){return x}),n.d(t,"tsv",function(){return k}),n.d(t,"image",function(){return M}),n.d(t,"json",function(){return T}),n.d(t,"text",function(){return v}),n.d(t,"xml",function(){return j}),n.d(t,"html",function(){return S}),n.d(t,"svg",function(){return N})}]);