victory-create-container 36.3.2 → 36.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.VictoryCreateContainer=t(require("react")):e.VictoryCreateContainer=t(e.React)}(self,(function(e){return(()=>{var t={2231:function(e){e.exports=function(){"use strict";var e=Math.pow(2,-52),t=new Uint32Array(512),n=function(e){var t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;var n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()};function r(e,t,n,r){var o=e-n,a=t-r;return o*o+a*a}function o(e,t,n,r,o,a){var i=(r-t)*(o-e),u=(n-e)*(a-t);return Math.abs(i-u)>=33306690738754716e-32*Math.abs(i+u)?i-u:0}function a(e,t,n,r,a,i){return(o(a,i,e,t,n,r)||o(e,t,n,r,a,i)||o(n,r,a,i,e,t))<0}function i(e,t,n,r,o,a){var i=n-e,u=r-t,c=o-e,l=a-t,f=i*i+u*u,s=c*c+l*l,p=.5/(i*l-u*c),d=(l*f-u*s)*p,h=(i*s-c*f)*p;return d*d+h*h}function u(e,t,n,r){if(r-n<=20)for(var o=n+1;o<=r;o++){for(var a=e[o],i=t[a],l=o-1;l>=n&&t[e[l]]>i;)e[l+1]=e[l--];e[l+1]=a}else{var f=n+1,s=r;c(e,n+r>>1,f),t[e[n]]>t[e[r]]&&c(e,n,r),t[e[f]]>t[e[r]]&&c(e,f,r),t[e[n]]>t[e[f]]&&c(e,n,f);for(var p=e[f],d=t[p];;){do{f++}while(t[e[f]]<d);do{s--}while(t[e[s]]>d);if(s<f)break;c(e,f,s)}e[n+1]=e[s],e[s]=p,r-f+1>=s-n?(u(e,t,f,r),u(e,t,n,s-1)):(u(e,t,n,s-1),u(e,t,f,r))}}function c(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function l(e){return e[0]}function f(e){return e[1]}return n.from=function(e,t,r){void 0===t&&(t=l),void 0===r&&(r=f);for(var o=e.length,a=new Float64Array(2*o),i=0;i<o;i++){var u=e[i];a[2*i]=t(u),a[2*i+1]=r(u)}return new n(a)},n.prototype.update=function(){for(var t=this,n=t.coords,o=t._hullPrev,c=t._hullNext,l=t._hullTri,f=t._hullHash,s=n.length>>1,p=1/0,d=1/0,h=-1/0,y=-1/0,v=0;v<s;v++){var b=n[2*v],g=n[2*v+1];b<p&&(p=b),g<d&&(d=g),b>h&&(h=b),g>y&&(y=g),this._ids[v]=v}for(var m,x,w,M=(p+h)/2,O=(d+y)/2,j=1/0,A=0;A<s;A++){var P=r(M,O,n[2*A],n[2*A+1]);P<j&&(m=A,j=P)}var k=n[2*m],D=n[2*m+1];j=1/0;for(var T=0;T<s;T++)if(T!==m){var S=r(k,D,n[2*T],n[2*T+1]);S<j&&S>0&&(x=T,j=S)}for(var C=n[2*x],_=n[2*x+1],E=1/0,N=0;N<s;N++)if(N!==m&&N!==x){var z=i(k,D,C,_,n[2*N],n[2*N+1]);z<E&&(w=N,E=z)}var L=n[2*w],I=n[2*w+1];if(E===1/0){for(var U=0;U<s;U++)this._dists[U]=n[2*U]-n[0]||n[2*U+1]-n[1];u(this._ids,this._dists,0,s-1);for(var R=new Uint32Array(s),H=0,W=0,F=-1/0;W<s;W++){var B=this._ids[W];this._dists[B]>F&&(R[H++]=B,F=this._dists[B])}return this.hull=R.subarray(0,H),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(a(k,D,C,_,L,I)){var V=x,Y=C,q=_;x=w,C=L,_=I,w=V,L=Y,I=q}var G=function(e,t,n,r,o,a){var i=n-e,u=r-t,c=o-e,l=a-t,f=i*i+u*u,s=c*c+l*l,p=.5/(i*l-u*c);return{x:e+(l*f-u*s)*p,y:t+(i*s-c*f)*p}}(k,D,C,_,L,I);this._cx=G.x,this._cy=G.y;for(var Z=0;Z<s;Z++)this._dists[Z]=r(n[2*Z],n[2*Z+1],G.x,G.y);u(this._ids,this._dists,0,s-1),this._hullStart=m;var K=3;c[m]=o[w]=x,c[x]=o[m]=w,c[w]=o[x]=m,l[m]=0,l[x]=1,l[w]=2,f.fill(-1),f[this._hashKey(k,D)]=m,f[this._hashKey(C,_)]=x,f[this._hashKey(L,I)]=w,this.trianglesLen=0,this._addTriangle(m,x,w,-1,-1,-1);for(var X=0,$=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],ee=n[2*J],te=n[2*J+1];if(!(X>0&&Math.abs(ee-$)<=e&&Math.abs(te-Q)<=e)&&($=ee,Q=te,J!==m&&J!==x&&J!==w)){for(var ne=0,re=0,oe=this._hashKey(ee,te);re<this._hashSize&&(-1===(ne=f[(oe+re)%this._hashSize])||ne===c[ne]);re++);for(var ae=ne=o[ne],ie=void 0;ie=c[ae],!a(ee,te,n[2*ae],n[2*ae+1],n[2*ie],n[2*ie+1]);)if((ae=ie)===ne){ae=-1;break}if(-1!==ae){var ue=this._addTriangle(ae,J,c[ae],-1,-1,l[ae]);l[J]=this._legalize(ue+2),l[ae]=ue,K++;for(var ce=c[ae];ie=c[ce],a(ee,te,n[2*ce],n[2*ce+1],n[2*ie],n[2*ie+1]);)ue=this._addTriangle(ce,J,ie,l[J],-1,l[ce]),l[J]=this._legalize(ue+2),c[ce]=ce,K--,ce=ie;if(ae===ne)for(;a(ee,te,n[2*(ie=o[ae])],n[2*ie+1],n[2*ae],n[2*ae+1]);)ue=this._addTriangle(ie,J,ae,-1,l[ae],l[ie]),this._legalize(ue+2),l[ie]=ue,c[ae]=ae,K--,ae=ie;this._hullStart=o[J]=ae,c[ae]=o[ce]=J,c[J]=ce,f[this._hashKey(ee,te)]=J,f[this._hashKey(n[2*ae],n[2*ae+1])]=ae}}}this.hull=new Uint32Array(K);for(var le=0,fe=this._hullStart;le<K;le++)this.hull[le]=fe,fe=c[fe];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},n.prototype._hashKey=function(e,t){return Math.floor((n=e-this._cx,r=t-this._cy,o=n/(Math.abs(n)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var n,r,o},n.prototype._legalize=function(e){for(var n=this,r=n._triangles,o=n._halfedges,a=n.coords,i=0,u=0;;){var c=o[e],l=e-e%3;if(u=l+(e+2)%3,-1!==c){var f=c-c%3,s=l+(e+1)%3,p=f+(c+2)%3,d=r[u],h=r[e],y=r[s],v=r[p];if(x=a[2*d],w=a[2*d+1],M=a[2*h],O=a[2*h+1],j=a[2*y],A=a[2*y+1],P=a[2*v],k=a[2*v+1],D=void 0,T=void 0,S=void 0,C=void 0,_=void 0,E=void 0,N=void 0,z=void 0,(D=x-P)*((C=O-k)*(z=(_=j-P)*_+(E=A-k)*E)-(N=(S=M-P)*S+C*C)*E)-(T=w-k)*(S*z-N*_)+(D*D+T*T)*(S*E-C*_)<0){r[e]=v,r[c]=d;var b=o[p];if(-1===b){var g=this._hullStart;do{if(this._hullTri[g]===p){this._hullTri[g]=e;break}g=this._hullPrev[g]}while(g!==this._hullStart)}this._link(e,b),this._link(c,o[u]),this._link(u,p);var m=f+(c+1)%3;i<t.length&&(t[i++]=m)}else{if(0===i)break;e=t[--i]}}else{if(0===i)break;e=t[--i]}}var x,w,M,O,j,A,P,k,D,T,S,C,_,E,N,z;return u},n.prototype._link=function(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)},n.prototype._addTriangle=function(e,t,n,r,o,a){var i=this.trianglesLen;return this._triangles[i]=e,this._triangles[i+1]=t,this._triangles[i+2]=n,this._link(i,r),this._link(i+1,o),this._link(i+2,a),this.trianglesLen+=3,i},n}()},1080:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=(r=n(2231))&&r.__esModule?r:{default:r};function a(e){return e[0]}function i(e){return e[1]}function u(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}var c=function(){function e(e){var t=new o.default(e);this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=t.coords,this._init(t)}var t=e.prototype;return t._init=function(e){var t=e,n=this.points;if(t.hull&&t.hull.length>2&&function(e){for(var t=e.triangles,n=e.coords,r=0;r<t.length;r+=3){var o=2*t[r],a=2*t[r+1],i=2*t[r+2];if((n[i]-n[o])*(n[a+1]-n[o+1])-(n[a]-n[o])*(n[i+1]-n[o+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},(function(e,t){return t})).sort((function(e,t){return n[2*e]-n[2*t]||n[2*e+1]-n[2*t+1]}));for(var r=this.collinear[0],a=this.collinear[this.collinear.length-1],i=[n[2*r],n[2*r+1],n[2*a],n[2*a+1]],c=1e-8*Math.sqrt(Math.pow(i[3]-i[1],2)+Math.pow(i[2]-i[0],2)),l=0,f=n.length/2;l<f;++l){var s=u(n[2*l],n[2*l+1],c);n[2*l]=s[0],n[2*l+1]=s[1]}e=new o.default(n)}for(var p=this.halfedges=e.halfedges,d=this.hull=e.hull,h=this.triangles=e.triangles,y=this.inedges.fill(-1),v=this._hullIndex.fill(-1),b=0,g=p.length;b<g;++b){var m=h[b%3==2?b-2:b+1];-1!==p[b]&&-1!==y[m]||(y[m]=b)}for(var x=0,w=d.length;x<w;++x)v[d[x]]=x;d.length<=2&&d.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=d[0],this.triangles[1]=d[1],this.triangles[2]=d[1],y[d[0]]=1,2===d.length&&(y[d[1]]=0))},t.neighbors=function(e){var t=[],n=this.inedges,r=this.hull,o=this._hullIndex,a=this.halfedges,i=this.triangles,u=n[e];if(-1===u)return t;var c=u,l=-1;do{if(l=i[c],t.push(l),i[c=c%3==2?c-2:c+1]!==e)break;if(-1===(c=a[c])){var f=r[(o[e]+1)%r.length];f!==l&&t.push(f);break}}while(c!==u);return t},t.find=function(e,t,n){if(void 0===n&&(n=0),(e=+e)!=e||(t=+t)!=t)return-1;for(var r,o=n;(r=this._step(n,e,t))>=0&&r!==n&&r!==o;)n=r;return r},t._step=function(e,t,n){var r=this.inedges,o=this.points;if(-1===r[e]||!o.length)return(e+1)%(o.length>>1);var a=e,i=Math.pow(t-o[2*e],2)+Math.pow(n-o[2*e+1],2),u=this.neighbors(e),c=Array.isArray(u),l=0;for(u=c?u:u[Symbol.iterator]();;){var f;if(c){if(l>=u.length)break;f=u[l++]}else{if((l=u.next()).done)break;f=l.value}var s=f,p=Math.pow(t-o[2*s],2)+Math.pow(n-o[2*s+1],2);p<i&&(i=p,a=s)}return a},e}();t.Z=c,c.from=function(e,t,n,r){return void 0===t&&(t=a),void 0===n&&(n=i),new c(function(e,t,n,r){for(var o=e.length,a=new Float64Array(2*o),i=0;i<o;++i){var u=e[i];a[2*i]=t.call(r,u,i,e),a[2*i+1]=n.call(r,u,i,e)}return a}(e,t,n,r))}},2702:e=>{e.exports=function(){}},1124:(e,t,n)=>{var r=n(7236);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},4281:(e,t,n)=>{var r=n(7168),o=n(6582),a=n(3867),i=n(9557),u=n(2726);function c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=u,e.exports=c},4690:(e,t,n)=>{var r=n(441).Symbol;e.exports=r},5198:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4802:e=>{e.exports=function(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}},8058:(e,t,n)=>{var r=n(7650);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},7431:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},6460:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},3848:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4793:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7596:(e,t,n)=>{var r=n(999),o=n(6530),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},3833:(e,t,n)=>{var r=n(6530);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2435:e=>{e.exports=function(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}},999:(e,t,n)=>{var r=n(9346);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},827:e=>{e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}},528:e=>{e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},314:(e,t,n)=>{var r=n(3848),o=n(1754);e.exports=function e(t,n,a,i,u){var c=-1,l=t.length;for(a||(a=o),u||(u=[]);++c<l;){var f=t[c];n>0&&a(f)?n>1?e(f,n-1,a,i,u):r(u,f):i||(u[u.length]=f)}return u}},641:(e,t,n)=>{var r=n(2630)();e.exports=r},5897:(e,t,n)=>{var r=n(641),o=n(2635);e.exports=function(e,t){return e&&r(e,t,o)}},166:(e,t,n)=>{var r=n(8422),o=n(8780);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},4318:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7650:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},5432:(e,t,n)=>{var r=n(4318),o=n(3387);e.exports=function(e){return o(e)&&"[object Date]"==r(e)}},1071:(e,t,n)=>{var r=n(7229),o=n(3387);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},7229:(e,t,n)=>{var r=n(4281),o=n(2503),a=n(6001),i=n(8784),u=n(6686),c=n(7236),l=n(8752),f=n(4812),s="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,b){var g=c(e),m=c(t),x=g?p:u(e),w=m?p:u(t),M=(x=x==s?d:x)==d,O=(w=w==s?d:w)==d,j=x==w;if(j&&l(e)){if(!l(t))return!1;g=!0,M=!1}if(j&&!M)return b||(b=new r),g||f(e)?o(e,t,n,y,v,b):a(e,t,x,n,y,v,b);if(!(1&n)){var A=M&&h.call(e,"__wrapped__"),P=O&&h.call(t,"__wrapped__");if(A||P){var k=A?e.value():e,D=P?t.value():t;return b||(b=new r),v(k,D,n,y,b)}}return!!j&&(b||(b=new r),i(e,t,n,y,v,b))}},9157:(e,t,n)=>{var r=n(4281),o=n(1071);e.exports=function(e,t,n,a){var i=n.length,u=i,c=!a;if(null==e)return!u;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<u;){var f=(l=n[i])[0],s=e[f],p=l[1];if(c&&l[2]){if(void 0===s&&!(f in e))return!1}else{var d=new r;if(a)var h=a(s,p,f,e,t,d);if(!(void 0===h?o(p,s,3,a,d):h))return!1}}return!0}},1131:(e,t,n)=>{var r=n(4318),o=n(3387);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},8904:(e,t,n)=>{var r=n(8418),o=n(4555),a=n(5362),i=n(7236),u=n(1651);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):u(e)}},8803:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},2920:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},8418:(e,t,n)=>{var r=n(9157),o=n(9182),a=n(7375);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4555:(e,t,n)=>{var r=n(1071),o=n(3795),a=n(3646),i=n(3266),u=n(1457),c=n(7375),l=n(8780);e.exports=function(e,t){return i(e)&&u(t)?c(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},690:(e,t,n)=>{var r=n(6460),o=n(166),a=n(8904),i=n(2920),u=n(6024),c=n(6535),l=n(1397),f=n(5362),s=n(7236);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return s(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[f];var p=-1;t=r(t,c(a));var d=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return u(d,(function(e,t){return l(e,t,n)}))}},7410:(e,t,n)=>{var r=n(6621),o=n(3646);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},6621:(e,t,n)=>{var r=n(166),o=n(8116),a=n(8422);e.exports=function(e,t,n){for(var i=-1,u=t.length,c={};++i<u;){var l=t[i],f=r(e,l);n(f,l)&&o(c,a(l,e),f)}return c}},1712:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4815:(e,t,n)=>{var r=n(166);e.exports=function(e){return function(t){return r(t,e)}}},797:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,a){for(var i=-1,u=n(t((r-e)/(o||1)),0),c=Array(u);u--;)c[a?u:++i]=e,e+=o;return c}},4569:(e,t,n)=>{var r=n(5362),o=n(4468),a=n(8756);e.exports=function(e,t){return a(o(e,t,r),e+"")}},8116:(e,t,n)=>{var r=n(7596),o=n(8422),a=n(4363),i=n(5973),u=n(8780);e.exports=function(e,t,n,c){if(!i(e))return e;for(var l=-1,f=(t=o(t,e)).length,s=f-1,p=e;null!=p&&++l<f;){var d=u(t[l]),h=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(l!=s){var y=p[d];void 0===(h=c?c(y,d,p):void 0)&&(h=i(y)?y:a(t[l+1])?[]:{})}r(p,d,h),p=p[d]}return e}},6024:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},5159:(e,t,n)=>{var r=n(6530);e.exports=function(e,t){for(var n=-1,o=e.length,a=0,i=[];++n<o;){var u=e[n],c=t?t(u):u;if(!n||!r(c,l)){var l=c;i[a++]=0===u?0:u}}return i}},94:(e,t,n)=>{var r=n(6460);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},454:(e,t,n)=>{var r=n(4690),o=n(6460),a=n(7236),i=n(2945),u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},3349:(e,t,n)=>{var r=n(5720),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},6535:e=>{e.exports=function(e){return function(t){return e(t)}}},4351:(e,t,n)=>{var r=n(1124),o=n(8058),a=n(7431),i=n(555),u=n(8491),c=n(6350);e.exports=function(e,t,n){var l=-1,f=o,s=e.length,p=!0,d=[],h=d;if(n)p=!1,f=a;else if(s>=200){var y=t?null:u(e);if(y)return c(y);p=!1,f=i,h=new r}else h=t?[]:d;e:for(;++l<s;){var v=e[l],b=t?t(v):v;if(v=n||0!==v?v:0,p&&b==b){for(var g=h.length;g--;)if(h[g]===b)continue e;t&&h.push(b),d.push(v)}else f(h,b,n)||(h!==d&&h.push(b),d.push(v))}return d}},925:(e,t,n)=>{var r=n(6460);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},555:(e,t,n)=>{var r=n(7650);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},9883:e=>{e.exports=function(e){return e}},8422:(e,t,n)=>{var r=n(7236),o=n(3266),a=n(3879),i=n(1119);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},709:(e,t,n)=>{var r=n(2945);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),u=void 0!==t,c=null===t,l=t==t,f=r(t);if(!c&&!f&&!i&&e>t||i&&u&&l&&!c&&!f||o&&u&&l||!n&&l||!a)return 1;if(!o&&!i&&!f&&e<t||f&&n&&a&&!o&&!i||c&&n&&a||!u&&a||!l)return-1}return 0}},1397:(e,t,n)=>{var r=n(709);e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,u=a.length,c=n.length;++o<u;){var l=r(a[o],i[o]);if(l)return o>=c?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},6051:(e,t,n)=>{var r=n(7596),o=n(999);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var u=-1,c=t.length;++u<c;){var l=t[u],f=a?a(n[l],e[l],l,n,e):void 0;void 0===f&&(f=e[l]),i?o(n,l,f):r(n,l,f)}return n}},5580:(e,t,n)=>{var r=n(4802),o=n(2435),a=n(8904),i=n(7236);e.exports=function(e,t){return function(n,u){var c=i(n)?r:o,l=t?t():{};return c(n,e,a(u,2),l)}}},2544:(e,t,n)=>{var r=n(4569),o=n(3108);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(n[0],n[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,i)}return t}))}},2630:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var c=i[e?u:++o];if(!1===n(a[c],c,a))break}return t}}},3086:(e,t,n)=>{var r=n(8904),o=n(1580),a=n(2635);e.exports=function(e){return function(t,n,i){var u=Object(t);if(!o(t)){var c=r(n,3);t=a(t),n=function(e){return c(u[e],e,u)}}var l=e(t,n,i);return l>-1?u[c?t[l]:l]:void 0}}},9338:(e,t,n)=>{var r=n(2702),o=n(3368),a=n(7344),i=n(7183),u=n(7236),c=n(3472);e.exports=function(e){return o((function(t){var n=t.length,o=n,l=r.prototype.thru;for(e&&t.reverse();o--;){var f=t[o];if("function"!=typeof f)throw new TypeError("Expected a function");if(l&&!s&&"wrapper"==i(f))var s=new r([],!0)}for(o=s?o:n;++o<n;){f=t[o];var p=i(f),d="wrapper"==p?a(f):void 0;s=d&&c(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?s[i(d[0])].apply(s,d[3]):1==f.length&&c(f)?s[p]():s.thru(f)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&u(r))return s.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}}))}},9833:(e,t,n)=>{var r=n(797),o=n(3108),a=n(992);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},8491:e=>{e.exports=function(){}},3348:(e,t,n)=>{var r=n(94),o=n(6686),a=n(2876),i=n(7639);e.exports=function(e){return function(t){var n=o(t);return"[object Map]"==n?a(t):"[object Set]"==n?i(t):r(t,e(t))}}},9346:(e,t,n)=>{var r=n(4457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},2503:(e,t,n)=>{var r=n(1124),o=n(4793),a=n(555);e.exports=function(e,t,n,i,u,c){var l=1&n,f=e.length,s=t.length;if(f!=s&&!(l&&s>f))return!1;var p=c.get(e),d=c.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<f;){var b=e[h],g=t[h];if(i)var m=l?i(g,b,h,t,e,c):i(b,g,h,e,t,c);if(void 0!==m){if(m)continue;y=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(b===e||u(b,e,n,i,c)))return v.push(t)}))){y=!1;break}}else if(b!==g&&!u(b,g,n,i,c)){y=!1;break}}return c.delete(e),c.delete(t),y}},6001:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8784:(e,t,n)=>{var r=n(6094),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,u){var c=1&n,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var s=f;s--;){var p=l[s];if(!(c?p in t:o.call(t,p)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var y=!0;u.set(e,t),u.set(t,e);for(var v=c;++s<f;){var b=e[p=l[s]],g=t[p];if(a)var m=c?a(g,b,p,t,e,u):a(b,g,p,e,t,u);if(!(void 0===m?b===g||i(b,g,n,a,u):m)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return u.delete(e),u.delete(t),y}},3368:(e,t,n)=>{var r=n(5453),o=n(4468),a=n(8756);e.exports=function(e){return a(o(e,void 0,r),e+"")}},4414:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6094:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},5559:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},7344:e=>{e.exports=function(){}},7183:e=>{e.exports=function(){return""}},9182:(e,t,n)=>{var r=n(1457),o=n(2635);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},4457:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1407:(e,t,n)=>{var r=n(3717)(Object.getPrototypeOf,Object);e.exports=r},6686:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7383:(e,t,n)=>{var r=n(8422),o=n(6981),a=n(7236),i=n(4363),u=n(9216),c=n(8780);e.exports=function(e,t,n){for(var l=-1,f=(t=r(t,e)).length,s=!1;++l<f;){var p=c(t[l]);if(!(s=null!=e&&n(e,p)))break;e=e[p]}return s||++l!=f?s:!!(f=null==e?0:e.length)&&u(f)&&i(p,f)&&(a(e)||o(e))}},1754:(e,t,n)=>{var r=n(4690),o=n(6981),a=n(7236),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},4363:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},3108:e=>{e.exports=function(){return!1}},3266:(e,t,n)=>{var r=n(7236),o=n(2945),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},3472:e=>{e.exports=function(){return!1}},5003:e=>{e.exports=function(){return!1}},1457:(e,t,n)=>{var r=n(5973);e.exports=function(e){return e==e&&!r(e)}},7168:e=>{e.exports=function(){this.__data__=[],this.size=0}},6582:(e,t,n)=>{var r=n(3833),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},3867:(e,t,n)=>{var r=n(3833);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},9557:(e,t,n)=>{var r=n(3833);e.exports=function(e){return r(this.__data__,e)>-1}},2726:(e,t,n)=>{var r=n(3833);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},2876:e=>{e.exports=function(){return[]}},7375:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},7085:e=>{e.exports=function(e){return e}},1782:(e,t,n)=>{e=n.nmd(e);var r=n(4414),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u},3717:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4468:(e,t,n)=>{var r=n(5198),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),c=Array(u);++i<u;)c[i]=a[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=a[i];return l[t]=n(c),r(e,this,l)}}},441:(e,t,n)=>{var r=n(4414),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},6350:e=>{e.exports=function(){return[]}},7639:e=>{e.exports=function(){return[]}},8756:e=>{e.exports=function(e){return e}},3879:(e,t,n)=>{var r=n(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},8780:e=>{e.exports=function(e){return e}},5720:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6782:(e,t,n)=>{var r=n(7596),o=n(6051),a=n(2544),i=n(1580),u=n(5003),c=n(2635),l=Object.prototype.hasOwnProperty,f=a((function(e,t){if(u(t)||i(t))o(t,c(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=f},5750:(e,t,n)=>{var r=n(5973),o=n(8148),a=n(8746),i=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,f,s,p,d,h=0,y=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=c,r=l;return c=l=void 0,h=t,s=e.apply(r,n)}function m(e){return h=e,p=setTimeout(w,t),y?g(e):s}function x(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-h>=f}function w(){var e=o();if(x(e))return M(e);p=setTimeout(w,function(e){var n=t-(e-d);return v?u(n,f-(e-h)):n}(e))}function M(e){return p=void 0,b&&c?g(e):(c=l=void 0,s)}function O(){var e=o(),n=x(e);if(c=arguments,l=this,d=e,n){if(void 0===p)return m(d);if(v)return clearTimeout(p),p=setTimeout(w,t),g(d)}return void 0===p&&(p=setTimeout(w,t)),s}return t=a(t)||0,r(n)&&(y=!!n.leading,f=(v="maxWait"in n)?i(a(n.maxWait)||0,t):f,b="trailing"in n?!!n.trailing:b),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=d=l=p=void 0},O.flush=function(){return void 0===p?s:M(o())},O}},7901:(e,t,n)=>{var r=n(4569),o=n(6530),a=n(3108),i=n(5850),u=Object.prototype,c=u.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&a(t[0],t[1],l)&&(r=1);++n<r;)for(var f=t[n],s=i(f),p=-1,d=s.length;++p<d;){var h=s[p],y=e[h];(void 0===y||o(y,u[h])&&!c.call(e,h))&&(e[h]=f[h])}return e}));e.exports=l},1261:(e,t,n)=>{var r=n(827),o=n(4569),a=n(8746),i=o((function(e,t,n){return r(e,a(t)||0,n)}));e.exports=i},6530:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6786:(e,t,n)=>{var r=n(3086)(n(8611));e.exports=r},8611:(e,t,n)=>{var r=n(528),o=n(8904),a=n(5225),i=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var c=null==n?0:a(n);return c<0&&(c=i(u+c,0)),r(e,o(t,3),c)}},5453:(e,t,n)=>{var r=n(314);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},8477:(e,t,n)=>{var r=n(9338)();e.exports=r},6348:(e,t,n)=>{var r=n(5897),o=n(9883);e.exports=function(e,t){return e&&r(e,o(t))}},3795:(e,t,n)=>{var r=n(166);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1346:(e,t,n)=>{var r=n(999),o=n(5580),a=Object.prototype.hasOwnProperty,i=o((function(e,t,n){a.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=i},3646:(e,t,n)=>{var r=n(7),o=n(7383);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5362:e=>{e.exports=function(e){return e}},6901:(e,t,n)=>{var r=n(7650);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},6981:e=>{e.exports=function(){return!1}},7236:e=>{var t=Array.isArray;e.exports=t},1580:(e,t,n)=>{var r=n(3839),o=n(9216);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},8752:e=>{e.exports=function(){return!1}},7957:(e,t,n)=>{var r=n(5432),o=n(6535),a=n(1782),i=a&&a.isDate,u=i?o(i):r;e.exports=u},6834:(e,t,n)=>{var r=n(8803),o=n(6686),a=n(6981),i=n(7236),u=n(1580),c=n(8752),l=n(5003),f=n(4812),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||f(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(s.call(e,n))return!1;return!0}},9793:(e,t,n)=>{var r=n(1071);e.exports=function(e,t){return r(e,t)}},3839:(e,t,n)=>{var r=n(4318),o=n(5973);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9216:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5973:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3387:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},9636:(e,t,n)=>{var r=n(4318),o=n(1407),a=n(3387),i=Function.prototype,u=Object.prototype,c=i.toString,l=u.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},2654:(e,t,n)=>{var r=n(1131),o=n(6535),a=n(1782),i=a&&a.isRegExp,u=i?o(i):r;e.exports=u},4461:(e,t,n)=>{var r=n(4318),o=n(7236),a=n(3387);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},2945:e=>{e.exports=function(){return!1}},4812:e=>{e.exports=function(){return!1}},2720:e=>{e.exports=function(e){return void 0===e}},2635:(e,t,n)=>{var r=n(3717)(Object.keys,Object);e.exports=r},5850:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},2972:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},3792:(e,t,n)=>{var r=n(999),o=n(5897),a=n(8904);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},5913:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},8148:(e,t,n)=>{var r=n(441);e.exports=function(){return r.Date.now()}},5492:(e,t,n)=>{var r=n(8904),o=n(5913),a=n(9922);e.exports=function(e,t){return a(e,o(r(t)))}},1473:(e,t,n)=>{var r=n(690),o=n(7236);e.exports=function(e,t,n,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=a?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},8423:(e,t,n)=>{var r=n(7410),o=n(3368)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},9922:(e,t,n)=>{var r=n(6460),o=n(8904),a=n(6621),i=n(5559);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),(function(e){return[e]}));return t=o(t),a(e,n,(function(e,n){return t(e,n[0])}))}},1651:(e,t,n)=>{var r=n(1712),o=n(4815),a=n(3266),i=n(8780);e.exports=function(e){return a(e)?r(i(e)):o(e)}},9717:(e,t,n)=>{var r=n(9833)();e.exports=r},5921:(e,t,n)=>{var r=n(5159);e.exports=function(e){return e&&e.length?r(e):[]}},3259:(e,t,n)=>{var r=n(5750),o=n(5973);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},992:(e,t,n)=>{var r=n(8746);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},5225:(e,t,n)=>{var r=n(992);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},8746:(e,t,n)=>{var r=n(3349),o=n(5973),a=n(2945),i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},6334:(e,t,n)=>{var r=n(3348)(n(2635));e.exports=r},1119:(e,t,n)=>{var r=n(454);e.exports=function(e){return null==e?"":r(e)}},1815:(e,t,n)=>{var r=n(4351);e.exports=function(e){return e&&e.length?r(e):[]}},268:(e,t,n)=>{var r=n(8904),o=n(4351);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},556:(e,t,n)=>{var r=n(1119),o=0;e.exports=function(e){var t=++o;return r(e)+t}},567:(e,t,n)=>{var r=n(925),o=n(2635);e.exports=function(e){return null==e?[]:r(e,o(e))}},459:(e,t,n)=>{"use strict";var r=n(5704);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},216:(e,t,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var u,c,l,f=t(e),s=t(i);if(f&&s){if((c=e.length)!=i.length)return!1;for(u=c;0!=u--;)if(!a(e[u],i[u]))return!1;return!0}if(f!=s)return!1;var p=e instanceof Date,d=i instanceof Date;if(p!=d)return!1;if(p&&d)return e.getTime()==i.getTime();var h=e instanceof RegExp,y=i instanceof RegExp;if(h!=y)return!1;if(h&&y)return e.toString()==i.toString();var v=n(e);if((c=v.length)!==n(i).length)return!1;for(u=c;0!=u--;)if(!r.call(i,v[u]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(u=c;0!=u--;)if(!("_owner"===(l=v[u])&&e.$$typeof||a(e[l],i[l])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},9787:t=>{"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";r.r(o),r.d(o,{combineContainerMixins:()=>Cl,createContainer:()=>Nl,makeCreateContainerFunction:()=>El});var e={};r.r(e),r.d(e,{interpolateCool:()=>du,interpolateCubehelixDefault:()=>su,interpolateInferno:()=>mu,interpolateMagma:()=>gu,interpolatePlasma:()=>xu,interpolateRainbow:()=>yu,interpolateViridis:()=>bu,interpolateWarm:()=>pu,scaleBand:()=>Hn,scaleIdentity:()=>io,scaleImplicit:()=>Un,scaleLinear:()=>ao,scaleLog:()=>yo,scaleOrdinal:()=>Rn,scalePoint:()=>Fn,scalePow:()=>bo,scaleQuantile:()=>mo,scaleQuantize:()=>xo,scaleSequential:()=>wu,scaleSqrt:()=>go,scaleThreshold:()=>wo,scaleTime:()=>Ii,scaleUtc:()=>Vi,schemeCategory10:()=>qi,schemeCategory20:()=>Ki,schemeCategory20b:()=>Gi,schemeCategory20c:()=>Zi});var t=r(2635),n=r.n(t),a=r(3839),i=r.n(a),u=r(6834),c=r.n(u),l=r(8477),f=r.n(l),s=r(6901),p=r.n(s),d=r(6348),h=r.n(d),y=r(1346),v=r.n(y),b=r(6334),g=r.n(b);var m=r(5973),x=r.n(m),w=r(556),M=r.n(w),O=r(7901),j=r.n(O),A=r(6782),P=r.n(A),k=r(9787),D=r.n(k),T=r(216),S=r.n(T),C=r(2654),_=r.n(C),E=r(6786),N=r.n(E),z=function(e){var t=function(t,n,r,o){var a=n[r];if(null==a)return t?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var i=arguments.length,u=new Array(i>4?i-4:0),c=4;c<i;c++)u[c-4]=arguments[c];return e.apply(void 0,[n,r,o].concat(u))},n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},L=function(){return null},I=function(){},U=function(e){return void 0===e?I:null===e?L:e.constructor},R=function(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).slice(8,-1)};function H(e){return z((function(t,n,r){for(var o=arguments.length,a=new Array(o>3?o-3:0),i=3;i<o;i++)a[i-3]=arguments[i];return e.reduce((function(e,o){return e||o.apply(void 0,[t,n,r].concat(a))}),void 0)}))}var W=z((function(e,t,n){var r=e[t];if("number"!=typeof r||r<0)return new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number."))})),F=z((function(e,t,n){var r=e[t];if("number"!=typeof r||r%1!=0)return new Error("`".concat(t,"` in `").concat(n,"` must be an integer."))})),B=(z((function(e,t,n){var r=e[t];if("number"!=typeof r||r<=0)return new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero."))})),z((function(e,t,n){var r=e[t];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values."))}))),V=z((function(e,t,n){var r;if(r=e[t],!(i()(r)?i()(r.copy)&&i()(r.domain)&&i()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))})),Y=(z((function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var o=U(r[0]),a=N()(r,(function(e){return o!==U(e)}));if(a){var i=R(r[0]),u=R(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),z((function(e,t){if(e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length)return new Error("Length of data and ".concat(t," arrays must match."))})),z((function(e,t,n){if(e[t]&&!_()(e[t]))return new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression."))})));function q(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)}}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Z=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?G(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).map={},n.index=1,n.portalUpdate=n.portalUpdate.bind(G(n)),n.portalRegister=n.portalRegister.bind(G(n)),n.portalDeregister=n.portalDeregister.bind(G(n)),n}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),r=t,(o=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(e,t){this.map[e]=t,this.forceUpdate()}},{key:"portalDeregister",value:function(e){delete this.map[e],this.forceUpdate()}},{key:"getChildren",value:function(){var e=this;return n()(this.map).map((function(t){var n=e.map[t];return n?D().cloneElement(n,{key:t}):n}))}},{key:"render",value:function(){return D().createElement("svg",this.props,this.getChildren())}}])&&q(r.prototype,o),t}(D().Component);Object.defineProperty(Z,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(Z,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:S().string,height:W,style:S().object,viewBox:S().string,width:W}});var K=D().createContext({});K.displayName="PortalContext";const X=K;var $,Q,J=0,ee=0,te=0,ne=0,re=0,oe=0,ae="object"==typeof performance&&performance.now?performance:Date,ie="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ue(){return re||(ie(ce),re=ae.now()+oe)}function ce(){re=0}function le(){this._call=this._time=this._next=null}function fe(e,t,n){var r=new le;return r.restart(e,t,n),r}function se(){re=(ne=ae.now())+oe,J=ee=0;try{!function(){ue(),++J;for(var e,t=$;t;)(e=re-t._time)>=0&&t._call.call(null,e),t=t._next;--J}()}finally{J=0,function(){for(var e,t,n=$,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:$=t);Q=e,de(r)}(),re=0}}function pe(){var e=ae.now(),t=e-ne;t>1e3&&(oe-=t,ne=e)}function de(e){J||(ee&&(ee=clearTimeout(ee)),e-re>24?(e<1/0&&(ee=setTimeout(se,e-ae.now()-oe)),te&&(te=clearInterval(te))):(te||(ne=ae.now(),te=setInterval(pe,1e3)),J=1,ie(se)))}function he(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)}}le.prototype=fe.prototype={constructor:le,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?ue():+n)+(null==t?0:+t),this._next||Q===this||(Q?Q._next=this:$=this,Q=this),this._call=e,this._time=n,de()},stop:function(){this._call&&(this._call=null,this._time=1/0,de())}};var ye=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var t,n;return t=e,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(e){e.callback(ue()-e.startTime,e.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=fe(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(e,t){t=this.shouldAnimate?t:0;var n=this.subscribers.push({startTime:ue(),callback:e,duration:t});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&he(t.prototype,n),e}(),ve=D().createContext({transitionTimer:new ye,animationTimer:new ye});ve.displayName="TimerContext";const be=ve;var ge=r(8423),me=r.n(ge),xe=r(1651),we=r.n(xe);function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Oe(e){var t=function(e){return void 0!==e},n=e._x,r=e._x1,o=e._x0,a=e._voronoiX,i=e._y,u=e._y1,c=e._y0,l=e._voronoiY,f=t(r)?r:n,s=t(u)?u:i,p={x:t(a)?a:f,x0:t(o)?o:n,y:t(l)?l:s,y0:t(c)?c:i};return j()({},p,e)}function je(e,t){var n=e.scale,r=e.polar,o=e.horizontal,a=Oe(t),i=e.origin||{x:0,y:0},u=o?n.y(a.y):n.x(a.x),c=o?n.y(a.y0):n.x(a.x0),l=o?n.x(a.x):n.y(a.y),f=o?n.x(a.x0):n.y(a.y0);return{x:r?l*Math.cos(u)+i.x:u,x0:r?f*Math.cos(c)+i.x:c,y:r?-l*Math.sin(u)+i.y:l,y0:r?-f*Math.sin(c)+i.x:f}}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",n=e[t],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function Pe(e,t){return i()(e)?e(t):e}function ke(e,t){return t.disableInlineStyles?{}:e&&n()(e).some((function(t){return i()(e[t])}))?n()(e).reduce((function(n,r){return n[r]=Pe(e[r],t),n}),{}):e}function De(e){return"number"==typeof e?e*(Math.PI/180):e}function Te(e){var t=Ae(e),n=t.left,r=t.right,o=t.top,a=t.bottom,i=e.width,u=e.height;return Math.min(i-n-r,u-o-a)/2}function Se(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?function(e,t){return"x"===t?[De(e.startAngle||0),De(e.endAngle||360)]:[e.innerRadius||0,Te(e)]}(e,t):function(e,t){var n="x"!==t,r=Ae(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}(e,t)}function Ce(e){return i()(e)?e:null==e?function(e){return e}:we()(e)}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,t){return e.concat(t)},a=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(e,c,l){return e.reduce((function(e,r,f){var s=r.type&&r.type.role,p=r.props.name||"".concat(s,"-").concat(c[f]);if(r.props&&r.props.children){var d=P()({},r.props,me()(n,a)),h=r.type&&"stack"===r.type.role&&i()(r.type.getChildren)?r.type.getChildren(d):D().Children.toArray(r.props.children).map((function(e){var t=P()({},e.props,me()(d,a));return D().cloneElement(e,t)})),y=h.map((function(e,t){return"".concat(p,"-").concat(t)})),v=u(h,y,r);e=o(e,v)}else{var b=t(r,p,l);b&&(e=o(e,b))}return e}),r)},c=e.map((function(e,t){return t}));return u(e,c)}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne={startsWith:["data-","aria-"],exactMatch:[]},ze=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ee(e,t,n[t])}))}return e}({},e);return Object.fromEntries(Object.entries(t).filter((function(e){var t,n;return function(e){return!(!function(e){var t=!1;return Ne.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(e)&&(t=!0)})),t}(e)&&!function(e){return Ne.exactMatch.includes(e)}(e))}((t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0])})))};function Le(){return Le=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},Le.apply(this,arguments)}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ue(e,t,n[t])}))}return e}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(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)}}var He=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).containerId=x()(e)&&void 0!==e.containerId?e.containerId:M()("victory-container-"),n.savePortalRef=function(e){return n.portalRef=e,e},n.portalUpdate=function(e,t){return n.portalRef.portalUpdate(e,t)},n.portalRegister=function(){return n.portalRef.portalRegister()},n.portalDeregister=function(e){return n.portalRef.portalDeregister(e)},n.saveContainerRef=e&&i()(e.containerRef)?e.containerRef:function(e){return n.containerRef=e,e},n.shouldHandleWheel=e&&e.events&&e.events.onWheel,n.shouldHandleWheel&&(n.handleWheel=function(e){return e.preventDefault()}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,(r=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(e){return"".concat(this.containerId,"-").concat(e)}},{key:"getChildren",value:function(e){return e.children}},{key:"getOUIAProps",value:function(e){var t=e.ouiaId,n=e.ouiaSafe,r=e.ouiaType;return Ie({},t&&{"data-ouia-component-id":t},r&&{"data-ouia-component-type":r},void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(e,t,n){var r=e.title,o=e.desc,a=e.portalComponent,i=e.className,u=e.width,c=e.height,l=e.portalZIndex,f=e.responsive,s=this.getChildren(e),p=f?{width:"100%",height:"100%"}:{width:u,height:c},d=P()({pointerEvents:"none",touchAction:"none",position:"relative"},p),h=P()({zIndex:l,position:"absolute",top:0,left:0},p),y=P()({pointerEvents:"all"},p),v=P()({overflow:"visible"},p),b={width:u,height:c,viewBox:t.viewBox,preserveAspectRatio:t.preserveAspectRatio,style:v};return D().createElement(X.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},D().createElement("div",Le({style:j()({},n,d),className:i,ref:this.saveContainerRef},this.getOUIAProps(e)),D().createElement("svg",Le({},t,{style:y}),r?D().createElement("title",{id:this.getIdForElement("title")},r):null,o?D().createElement("desc",{id:this.getIdForElement("desc")},o):null,s),D().createElement("div",{style:h},D().cloneElement(a,Ie({},b,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.responsive,o=e.events,a=e.title,i=e.desc,u=e.tabIndex,c=e.preserveAspectRatio,l=e.role,f=r?this.props.style:Me(this.props.style,["height","width"]),s=ze(this.props),p=P()(Ie({width:t,height:n,tabIndex:u,role:l,"aria-labelledby":[a&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[i&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(t," ").concat(n):void 0,preserveAspectRatio:r?c:void 0},s),o);return this.renderContainer(this.props,p,f)}}])&&Re(n.prototype,r),t}(D().Component);Object.defineProperty(He,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(He,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(He,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-describedby":S().string,"aria-labelledby":S().string,children:S().oneOfType([S().arrayOf(S().node),S().node]),className:S().string,containerId:S().oneOfType([S().number,S().string]),containerRef:S().func,desc:S().string,events:S().object,height:W,name:S().string,origin:S().shape({x:W,y:W}),ouiaId:S().oneOfType([S().number,S().string]),ouiaSafe:S().bool,ouiaType:S().string,polar:S().bool,portalComponent:S().element,portalZIndex:F,preserveAspectRatio:S().string,responsive:S().bool,role:S().string,style:S().object,tabIndex:S().number,theme:S().object,title:S().string,width:W}}),Object.defineProperty(He,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:D().createElement(Z,null),portalZIndex:99,responsive:!0,role:"img"}}),Object.defineProperty(He,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:be});var We=r(1473),Fe=r.n(We),Be=r(9636),Ve=r.n(Be);function Ye(e,t){var n,r=Oe(t).x;return("number"==typeof(n=e.scale.x(r))?n/(Math.PI/180):n)%360}var qe=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Ge="#ECEFF1",Ze="#90A4AE",Ke="#455A64",Xe="#212121",$e={width:350,height:350,padding:50},Qe={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Ke,stroke:"transparent",strokeWidth:0},Je=P()({textAnchor:"middle"},Qe),et="round",tt="round";const nt={area:P()({style:{data:{fill:Xe},labels:Qe}},$e),axis:P()({style:{axis:{fill:"transparent",stroke:Ze,strokeWidth:2,strokeLinecap:et,strokeLinejoin:tt},axisLabel:P()({},Je,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Ge,strokeDasharray:"10, 5",strokeLinecap:et,strokeLinejoin:tt,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ze,strokeWidth:1,strokeLinecap:et,strokeLinejoin:tt},tickLabels:P()({},Qe,{fill:Ke})}},$e),polarDependentAxis:P()({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:P()({style:{data:{fill:Ke,padding:8,strokeWidth:0},labels:Qe}},$e),boxplot:P()({style:{max:{padding:8,stroke:Ke,strokeWidth:1},maxLabels:P()({},Qe,{padding:3}),median:{padding:8,stroke:Ke,strokeWidth:1},medianLabels:P()({},Qe,{padding:3}),min:{padding:8,stroke:Ke,strokeWidth:1},minLabels:P()({},Qe,{padding:3}),q1:{padding:8,fill:Ke},q1Labels:P()({},Qe,{padding:3}),q3:{padding:8,fill:Ke},q3Labels:P()({},Qe,{padding:3})},boxWidth:20},$e),candlestick:P()({style:{data:{stroke:Ke},labels:P()({},Qe,{padding:5})},candleColors:{positive:"#ffffff",negative:Ke}},$e),chart:$e,errorbar:P()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Ke,strokeWidth:2},labels:Qe}},$e),group:P()({colorScale:qe},$e),histogram:P()({style:{data:{fill:Ke,stroke:Xe,strokeWidth:2},labels:Qe}},$e),legend:{colorScale:qe,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Qe,title:P()({},Qe,{padding:5})}},line:P()({style:{data:{fill:"transparent",opacity:1,stroke:Ke,strokeWidth:2},labels:Qe}},$e),pie:P()({colorScale:qe,style:{data:{padding:8,stroke:Ge,strokeWidth:1},labels:P()({},Qe,{padding:20})}},$e),scatter:P()({style:{data:{fill:Ke,opacity:1,stroke:"transparent",strokeWidth:0},labels:Qe}},$e),stack:P()({colorScale:qe},$e),tooltip:{style:P()({},Qe,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Xe,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:P()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:P()({},Qe,{padding:5,pointerEvents:"none"}),flyout:{stroke:Xe,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},$e)};var rt=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],ot="#252525",at="#969696",it={width:450,height:300,padding:50,colorScale:rt},ut={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:ot,stroke:"transparent"},ct=P()({textAnchor:"middle"},ut);const lt={material:nt,grayscale:{area:P()({style:{data:{fill:ot},labels:ut}},it),axis:P()({style:{axis:{fill:"transparent",stroke:ot,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:P()({},ct,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:ut}},it),bar:P()({style:{data:{fill:ot,padding:8,strokeWidth:0},labels:ut}},it),boxplot:P()({style:{max:{padding:8,stroke:ot,strokeWidth:1},maxLabels:P()({},ut,{padding:3}),median:{padding:8,stroke:ot,strokeWidth:1},medianLabels:P()({},ut,{padding:3}),min:{padding:8,stroke:ot,strokeWidth:1},minLabels:P()({},ut,{padding:3}),q1:{padding:8,fill:at},q1Labels:P()({},ut,{padding:3}),q3:{padding:8,fill:at},q3Labels:P()({},ut,{padding:3})},boxWidth:20},it),candlestick:P()({style:{data:{stroke:ot,strokeWidth:1},labels:P()({},ut,{padding:5})},candleColors:{positive:"#ffffff",negative:ot}},it),chart:it,errorbar:P()({borderWidth:8,style:{data:{fill:"transparent",stroke:ot,strokeWidth:2},labels:ut}},it),group:P()({colorScale:rt},it),histogram:P()({style:{data:{fill:at,stroke:ot,strokeWidth:2},labels:ut}},it),legend:{colorScale:rt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ut,title:P()({},ut,{padding:5})}},line:P()({style:{data:{fill:"transparent",stroke:ot,strokeWidth:2},labels:ut}},it),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:P()({},ut,{padding:20})},colorScale:rt,width:400,height:400,padding:50},scatter:P()({style:{data:{fill:ot,stroke:"transparent",strokeWidth:0},labels:ut}},it),stack:P()({colorScale:rt},it),tooltip:{style:P()({},ut,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ot,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:P()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:P()({},ut,{padding:5,pointerEvents:"none"}),flyout:{stroke:ot,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},it)}};var ft={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},st={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},pt={em:1,ex:.5},dt={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ht=function(e){return Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g)},yt=function(e,t,n){var r=function(e){return e*Math.PI/180}(n);return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},vt=function(e,t){var n=e.match(/[a-zA-Z%]+/)&&e.match(/[a-zA-Z%]+/)[0],r=e.match(/[0-9.,]+/);return n?st.hasOwnProperty(n)?r*st[n]:pt.hasOwnProperty(n)?(t?r*t:r*dt.fontSize)*pt[n]:r:r||0},bt=function(e,t){var n=Array.isArray(e)?e[t]:e,r=j()({},n,dt);return P()({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:vt(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:vt(String(r.fontSize))})},gt=function(e,t){if(void 0===e||""===e||null===e)return 0;var n,r=ht(e).map((function(e,n){var r,o,a=e.toString().length,i=bt(t,n),u=i.fontSize,c=i.letterSpacing,l=(r=i.fontFamily,o=r.split(",").map((function(e){return e.replace(/'|"/g,"")})).find((function(e){return ft[e]}))||"Helvetica",ft[o]);return e.toString().split("").map((function(e){return e.charCodeAt(0)<l.widths.length?l.widths[e.charCodeAt(0)]:l.avg})).reduce((function(e,t){return t+e}),0)*u+c*Math.max(a-1,0)}));return Math.max.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(n=r)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())},mt=function(e,t){return function(e,t){var n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=function(e,t){return void 0===e||""===e||null===e?0:ht(e).reduce((function(e,n,r){var o=bt(t,r),a=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return e+o.lineHeight*a}),0)}(e,t),o=gt(e,t);return{width:n?yt(o,r,n):o,height:1.05*(n?yt(r,o,n):r)}}(e,t)};function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(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)}}function Mt(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Ot=function(e){function t(){return xt(this,t),Mt(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(e){return this.renderInPlace?e:(this.element=e,null)}},{key:"render",value:function(){var e=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,t=this.props.groupComponent,n=e&&e.props||{},r=n.groupComponent?{groupComponent:t,standalone:!1}:{},o=j()(r,n,Me(this.props,["children","groupComponent"])),a=e&&D().cloneElement(e,o);return this.renderPortal(a)}}])&&wt(n.prototype,r),t}(D().Component);function jt(){return jt=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},jt.apply(this,arguments)}Object.defineProperty(Ot,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(Ot,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(Ot,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:S().node,groupComponent:S().element}}),Object.defineProperty(Ot,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:D().createElement("g",null)}}),Object.defineProperty(Ot,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:X});const At=function(e){var t=e.desc,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["desc"]);return t?D().createElement("rect",jt({vectorEffect:"non-scaling-stroke"},n),D().createElement("desc",null,t)):D().createElement("rect",jt({vectorEffect:"non-scaling-stroke"},n))};var Pt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(e,t){return[e,Pt(t)].join(" ")}),Pt(e)).trim();if(null==e||"string"==typeof e)return e;var o=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];o.push("".concat(a,"(").concat(i,")"))}return o.join(" ").trim()};var kt=function(e){var t=e.children,n=e.title,r=e.desc,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","title","desc"]);return D().createElement("text",o,n&&D().createElement("title",null,n),r&&D().createElement("desc",null,r),t)};kt.propTypes={children:S().node,desc:S().string,title:S().string};const Dt=kt;function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ct={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},_t=function(e,t){return e.datum?je(e,e.datum)[t]:0},Et=function(e){var t=e&&e.fontSize;if("number"==typeof t)return t;if(null==t)return Ct.fontSize;if("string"==typeof t){var n=+t.replace("px","");return isNaN(n)?Ct.fontSize:n}return Ct.fontSize},Nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},zt=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!c()(t)||Array.isArray(n)&&!c()(n)},Lt=function(e,t){var n=e.direction,r=e.textAnchor,o=e.x,a=e.dx;if("rtl"===n)return o-t;switch(r){case"middle":return Math.round(o-t/2);case"end":return Math.round(o-t);default:return o+(a||0)}},It=function(e,t){var n=e.verticalAnchor,r=e.y,o=e.originalDy,a=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(a);case"end":return Math.ceil(a-t);default:return Math.floor(a-t/2)}},Ut=function(e,t){return zt(e)?function(e,t){var n=e.dy,r=e.dx,o=e.transform,a=e.backgroundStyle,i=e.backgroundPadding,u=e.backgroundComponent,c=e.inline,l=e.y,f=t.map((function(e,o){var a=Nt(t,o-1),u=e.textSize,f=e.fontSize*e.lineHeight,s=Math.ceil(f),p=Nt(i,o),d=Nt(i,o-1),h=c&&r||0,y=o&&!c?a.fontSize*a.lineHeight+d.top+d.bottom:n-.5*f-(e.fontSize-e.capHeight);return{textHeight:s,labelSize:u,heightWithPadding:s+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+h,y:l,fontSize:e.fontSize,dy:y}}));return f.map((function(t,n){var r=Lt(e,t.labelSize.width),s=f.slice(0,n+1).reduce((function(e,t){return e+t.dy}),l),p=Nt(i,n),d=t.heightWithPadding,h=c?function(e,t,n){var r=e.textAnchor,o=t.map((function(e){return e.widthWithPadding})),a=-o.reduce((function(e,t){return e+t}),0)/2;switch(r){case"start":return o.reduce((function(e,t,r){return r<n?e+t:e}),0);case"end":return o.reduce((function(e,t,r){return r>n?e-t:e}),0);default:return o.reduce((function(e,t,r){return r===n?e+t/2:e+(r<n?t:0)}),a)}}(e,f,n)+r-p.left:r,y=c?It(e,d)-p.top:s,v={key:"tspan-background-".concat(n),height:d,style:Nt(a,n),width:t.widthWithPadding,transform:o,x:h-p.left,y};return D().cloneElement(u,j()({},u.props,v))}))}(e,t):function(e,t){var n=e.dx,r=void 0===n?0:n,o=e.transform,a=e.backgroundComponent,i=e.backgroundStyle,u=e.inline,c=e.backgroundPadding,l=e.capHeight,f=t.map((function(e){return e.textSize})),s=u?Math.max.apply(Math,St(f.map((function(e){return e.height})))):f.reduce((function(e,n,r){var o=r?0:l/2;return e+n.height*(t[r].lineHeight-o)}),0),p=u?f.reduce((function(e,t,n){var o=n?r:0;return e+t.width+o}),0):Math.max.apply(Math,St(f.map((function(e){return e.width})))),d=Lt(e,p),h=It(e,s),y={key:"background",height:s+c.top+c.bottom,style:i,transform:o,width:p+c.left+c.right,x:u?d-c.left:d+r-c.left,y:h};return D().cloneElement(a,j()({},a.props,y))}(e,t)},Rt=function(e,t,n){var r=t.inline,o=Nt(e,n);return n&&!r?function(e,t,n){var r=Nt(e,t),o=Nt(e,t-1),a=o.fontSize*o.lineHeight,i=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=a-o.fontSize/2+r.fontSize/2-a/2+i/2-c/2+u/2;return zt(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(e,n,t):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},Ht=function(e){var t=Pe(e.ariaLabel,e),n=Nt(e.style),r=function(e){var t=Pe(e.lineHeight,e);return Array.isArray(t)&&c()(t)?[1]:t}(e),o=e.direction?Pe(e.direction,e):"inherit",a=e.textAnchor?Pe(e.textAnchor,e):n.textAnchor||"start",i=e.verticalAnchor?Pe(e.verticalAnchor,e):n.verticalAnchor||"middle",u=e.dx?Pe(e.dx,e):0,l=function(e,t,n){var r=e.dy?Pe(e.dy,e):0,o=e.inline?1:e.text.length,a=Pe(e.capHeight,e),i=t?Pe(t,e):"middle",u=St(Array(o).keys()).map((function(t){return Nt(e.style,t).fontSize})),c=St(Array(o).keys()).map((function(e){return Nt(n,e)}));if("start"===i)return r+(a/2+c[0]/2)*u[0];if(e.inline)return"end"===i?r+(a/2-c[0]/2)*u[0]:r+a/2*u[0];if(1===o)return"end"===i?r+(a/2+(.5-o)*c[0])*u[0]:r+(a/2+(.5-o/2)*c[0])*u[0];var l=St(Array(o).keys()).reduce((function(e,t){return e+(a/2+(.5-o)*c[t])*u[t]/o}),0);return"end"===i?r+l:r+l/2+a/2*c[o-1]*u[o-1]}(e,i,r),f=void 0!==e.x?e.x:_t(e,"x"),s=void 0!==e.y?e.y:_t(e,"y"),p=function(e,t,n){var r=e.polar,o=Nt(e.style),a=r?function(e,t){var n=e.labelPlacement,r=e.datum;if(!n||"vertical"===n)return 0;var o=Ye(e,r),a=0;return 0===o||180===o?a=90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}(e):0,i=void 0===o.angle?Pe(e.angle,e):o.angle,u=void 0===i?a:i,c=e.transform||o.transform,l=c&&Pe(c,e);return l||u?Pt(l,u&&{rotate:[u,t,n]}):void 0}(e,f,s);return P()({},e,{ariaLabel:t,lineHeight:r,direction:o,textAnchor:a,verticalAnchor:i,dx:u,dy:l,originalDy:e.dy,transform:p,x:f,y:s})},Wt=function(e){if(null===(e=function(e){var t=function(e,t){if(null!=e){if(Array.isArray(e))return e.map((function(e){return Pe(e,t)}));var n=Pe(e,t);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(e.text,e),n=function(e,t){if(t.disableInlineStyles){var n=ke(e,t);return{fontSize:Et(n)}}var r=function(e){var n=ke(e=e?j()({},e,Ct):Ct,t);return P()({},n,{fontSize:Et(n)})};return Array.isArray(e)&&!c()(e)?e.map((function(e){return r(e)})):r(e)}(e.style,P()({},e,{text:t})),r=function(e,t){if(e)return Array.isArray(e)&&!c()(e)?e.map((function(e){return ke(e,t)})):ke(e,t)}(e.backgroundStyle,P()({},e,{text:t,style:n})),o=function(e){return e.backgroundPadding&&Array.isArray(e.backgroundPadding)?e.backgroundPadding.map((function(t){return Ae({padding:Pe(t,e)})})):Ae({padding:Pe(e.backgroundPadding,e)})}(P()({},e,{text:t,style:n,backgroundStyle:r})),a=Pe(e.id,e);return P()({},e,{backgroundStyle:r,backgroundPadding:o,style:n,text:t,id:a})}(e)).text||void 0===e.text)return null;var t=Ht(e),n=t.text,r=t.style,o=t.capHeight,a=t.backgroundPadding,i=t.lineHeight,u=n.map((function(e,t){var n=Nt(r,t),u=vt("".concat(o,"em"),n.fontSize),c=Nt(i,t);return{style:n,fontSize:n.fontSize||Ct.fontSize,capHeight:u,text:e,textSize:mt(e,n),lineHeight:c,backgroundPadding:Nt(a,t)}})),l=function(e,t){var n=e.ariaLabel,r=e.inline,o=e.className,a=e.title,i=e.events,u=e.direction,c=e.text,l=e.textAnchor,f=e.dx,s=e.dy,p=e.transform,d=e.x,h=e.y,y=e.desc,v=e.id,b=e.tabIndex,g=e.tspanComponent,m=e.textComponent,x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tt(e,t,n[t])}))}return e}({"aria-label":n,key:"text"},i,{direction:u,dx:f,x:d,y:h+s,transform:p,className:o,title:a,desc:Pe(y,e),tabIndex:Pe(b,e),id:v}),w=c.map((function(n,o){var a=t[o].style,i={key:"".concat(v,"-key-").concat(o),x:r?void 0:d,dx:r?f+t[o].backgroundPadding.left:f,dy:Rt(t,e,o),textAnchor:a.textAnchor||l,style:a,children:n};return D().cloneElement(g,i)}));return D().cloneElement(m,x,w)}(t,u);if(e.backgroundStyle){var f=[Ut(t,u),l],s=D().cloneElement(e.groupComponent,{},f);return e.renderInPortal?D().createElement(Ot,null,s):s}return e.renderInPortal?D().createElement(Ot,null,l):l};Wt.displayName="VictoryLabel",Wt.role="label",Wt.defaultStyles=Ct,Wt.propTypes={active:S().bool,angle:S().oneOfType([S().string,S().number,S().func]),ariaLabel:S().oneOfType([S().string,S().func]),backgroundComponent:S().element,backgroundPadding:S().oneOfType([S().number,S().object,S().array]),backgroundStyle:S().oneOfType([S().object,S().array]),capHeight:S().oneOfType([S().string,W,S().func]),className:S().string,data:S().array,datum:S().any,desc:S().oneOfType([S().string,S().func]),direction:S().oneOf(["rtl","ltr","inherit"]),dx:S().oneOfType([S().number,S().string,S().func]),dy:S().oneOfType([S().number,S().string,S().func]),events:S().object,groupComponent:S().element,id:S().oneOfType([S().number,S().string,S().func]),index:S().oneOfType([S().number,S().string]),inline:S().bool,labelPlacement:S().oneOf(["parallel","perpendicular","vertical"]),lineHeight:S().oneOfType([S().string,W,S().func,S().array]),origin:S().shape({x:W,y:W}),polar:S().bool,renderInPortal:S().bool,scale:S().shape({x:V,y:V}),style:S().oneOfType([S().object,S().array]),tabIndex:S().oneOfType([S().number,S().func]),text:S().oneOfType([S().string,S().number,S().func,S().array]),textAnchor:S().oneOfType([S().oneOf(["start","middle","end","inherit"]),S().func]),textComponent:S().element,title:S().string,transform:S().oneOfType([S().string,S().object,S().func]),tspanComponent:S().element,verticalAnchor:S().oneOfType([S().oneOf(["start","middle","end"]),S().func]),x:S().oneOfType([S().number,S().string]),y:S().oneOfType([S().number,S().string])},Wt.defaultProps={backgroundComponent:D().createElement(At,null),groupComponent:D().createElement("g",null),direction:"inherit",textComponent:D().createElement(Dt,null),tspanComponent:D().createElement((function(e){return D().createElement("tspan",e)}),null),capHeight:.71,lineHeight:1};const Ft=Wt;S().oneOfType([S().arrayOf(S().string),S().shape({x:S().arrayOf(S().string),y:S().arrayOf(S().string)})]),S().oneOfType([S().array,S().object]),S().element,S().bool,S().element,S().oneOfType([S().func,S().array]),S().oneOfType([S().func,H([F,W]),S().string,S().arrayOf(S().string)]),S().oneOf(["ascending","descending"]),S().shape({parent:S().object,data:S().object,labels:S().object}),S().oneOfType([S().func,H([F,W]),S().string,S().arrayOf(S().string)]),S().oneOfType([S().func,H([F,W]),S().string,S().arrayOf(S().string)]),S().oneOfType([S().func,H([F,W]),S().string,S().arrayOf(S().string)]),S().oneOfType([S().bool,S().object]),S().element,S().oneOfType([B,S().shape({x:B,y:B})]),S().oneOfType([S().number,S().instanceOf(Date),S().shape({x:S().oneOfType([S().number,S().instanceOf(Date)]),y:S().oneOfType([S().number,S().instanceOf(Date)])})]),S().oneOfType([S().number,S().instanceOf(Date),S().shape({x:S().oneOfType([S().number,S().instanceOf(Date)]),y:S().oneOfType([S().number,S().instanceOf(Date)])})]),S().oneOfType([S().shape({x:S().oneOfType([S().number,S().arrayOf(S().number)]),y:S().oneOfType([S().number,S().arrayOf(S().number)])}),S().number,S().arrayOf(S().number)]),S().oneOfType([S().func,H([F,W]),S().string]),S().arrayOf(S().shape({target:S().oneOf(["data","labels","parent"]),eventKey:S().oneOfType([S().array,H([F,W]),S().string]),eventHandlers:S().object})),S().arrayOf(S().shape({callback:S().function,childName:S().oneOfType([S().string,S().array]),eventKey:S().oneOfType([S().array,H([F,W]),S().string]),mutation:S().function,target:S().oneOfType([S().string,S().array])})),S().element,S().string,S().shape({x:S().number,y:S().number}),S().oneOfType([S().number,S().shape({top:S().number,bottom:S().number,left:S().number,right:S().number})]),S().bool,S().oneOfType([B,S().shape({x:B,y:B})]),S().oneOfType([V,S().shape({x:V,y:V})]),S().shape({events:S().array,getEventState:S().func}),S().oneOfType([S().bool,S().shape({x:S().oneOfType([S().bool]),y:S().oneOfType([S().bool])})]),S().bool,S().object;var Bt={active:S().bool,ariaLabel:S().oneOfType([S().string,S().func]),className:S().string,clipPath:S().string,data:S().oneOfType([S().array,S().object]),desc:S().oneOfType([S().string,S().func]),disableInlineStyles:S().bool,events:S().object,id:S().oneOfType([S().number,S().string,S().func]),index:S().oneOfType([S().number,S().string]),origin:S().shape({x:S().number,y:S().number}),polar:S().bool,role:S().string,scale:S().oneOfType([V,S().shape({x:V,y:V})]),shapeRendering:S().string,style:S().object,tabIndex:S().oneOfType([S().number,S().func]),transform:S().string};function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Yt(e,t,n[t])}))}return e}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qt=function(e){var t=e.orientation||"top";return"left"===t||"right"===t?function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,o=e.width,a=e.height,i=e.center,u="left"===r?1:-1,c=e.x+(e.dx||0),l=e.y+(e.dy||0),f=Ve()(i)&&i.x,s=Ve()(i)&&i.y,p=f-u*(o/2),d=f+u*(o/2),h=s+a/2,y=s-a/2,v=u*(c-p)>0?0:e.pointerLength,b="left"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(b);return"M ".concat(p,", ").concat(s-t/2,"\n L ").concat(v?c:p,", ").concat(v?l:s+t/2,"\n L ").concat(p,", ").concat(s+t/2,"\n L ").concat(p,", ").concat(h-n,"\n A ").concat(g," ").concat(p+u*n,", ").concat(h,"\n L ").concat(d-u*n,", ").concat(h,"\n A ").concat(g," ").concat(d,", ").concat(h-n,"\n L ").concat(d,", ").concat(y+n,"\n A ").concat(g," ").concat(d-u*n,", ").concat(y,"\n L ").concat(p+u*n,", ").concat(y,"\n A ").concat(g," ").concat(p,", ").concat(y+n,"\n z")}(e):function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,o=e.width,a=e.height,i=e.center,u="bottom"===r?1:-1,c=e.x+(e.dx||0),l=e.y+(e.dy||0),f=Ve()(i)&&i.x,s=Ve()(i)&&i.y,p=s+u*(a/2),d=s-u*(a/2),h=f+o/2,y=f-o/2,v=u*(l-p)<0?0:e.pointerLength,b="bottom"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(b);return"M ".concat(f-t/2,", ").concat(p,"\n L ").concat(v?c:f+t/2,", ").concat(v?l:p,"\n L ").concat(f+t/2,", ").concat(p,"\n L ").concat(h-n,", ").concat(p,"\n A ").concat(g," ").concat(h,", ").concat(p-u*n,"\n L ").concat(h,", ").concat(d+u*n,"\n A ").concat(g," ").concat(h-n,", ").concat(d,"\n L ").concat(y+n,", ").concat(d,"\n A ").concat(g," ").concat(y,", ").concat(d+u*n,"\n L ").concat(y,", ").concat(p-u*n,"\n A ").concat(g," ").concat(y+n,", ").concat(p,"\n z")}(e)},Gt=function(e){return e=function(e){var t=Pe(e.id,e),n=ke(e.style,e);return P()({},e,{id:t,style:n})}(e),D().cloneElement(e.pathComponent,Vt({},e.events,{style:e.style,d:qt(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};Gt.propTypes=Vt({},Bt,{center:S().shape({x:S().number,y:S().number}),cornerRadius:S().number,datum:S().object,dx:S().number,dy:S().number,height:S().number,orientation:S().oneOf(["top","bottom","left","right"]),pathComponent:S().element,pointerLength:S().number,pointerWidth:S().number,width:S().number,x:S().number,y:S().number}),Gt.defaultProps={pathComponent:D().createElement((function(e){var t=e.desc,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["desc"]);return t?D().createElement("path",n,D().createElement("desc",null,t)):D().createElement("path",n)}),null),role:"presentation",shapeRendering:"auto"};const Zt=Gt;function Kt(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)}}var Xt={cornerRadius:5,pointerLength:10,pointerWidth:10},$t=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).id=void 0===e.id?M()("tooltip-"):e.id,n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,r=[{key:"getDefaultOrientation",value:function(e){var t=e.datum,n=e.horizontal;if(e.polar)return this.getPolarOrientation(e,t);var r=n?"right":"top",o=n?"left":"bottom";return t&&t.y<0?o:r}},{key:"getPolarOrientation",value:function(e,t){var n=Ye(e,t),r=e.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}},{key:"getStyles",value:function(e){var t=e.theme||lt.grayscale,n=t&&t.tooltip&&t.tooltip.style?t.tooltip.style:{},r=Array.isArray(e.style)?e.style.map((function(e){return j()({},e,n)})):j()({},e.style,n),o=t&&t.tooltip&&t.tooltip.flyoutStyle?t.tooltip.flyoutStyle:{},a=e.flyoutStyle?j()({},e.flyoutStyle,o):o,i=Array.isArray(r)?r.map((function(t){return ke(t,e)})):ke(r,e);return{style:i,flyoutStyle:ke(a,P()({},e,{style:i}))}}},{key:"getEvaluatedProps",value:function(e){var t=e.cornerRadius,n=e.centerOffset,r=e.dx,o=e.dy,a=Pe(e.active,e),i=Pe(e.text,P()({},e,{active:a})),u=this.getStyles(P()({},e,{active:a,text:i})),c=u.style,l=u.flyoutStyle,f=Pe(e.orientation,P()({},e,{active:a,text:i,style:c,flyoutStyle:l}))||this.getDefaultOrientation(e),s=Ae({padding:Pe(e.flyoutPadding,P()({},e,{active:a,text:i,style:c,flyoutStyle:l,orientation:f}))||this.getLabelPadding(c)}),p=Pe(e.pointerWidth,P()({},e,{active:a,text:i,style:c,flyoutStyle:l,orientation:f})),d=Pe(e.pointerLength,P()({},e,{active:a,text:i,style:c,flyoutStyle:l,orientation:f})),h=mt(i,c),y=this.getDimensions(P()({},e,{style:c,flyoutStyle:l,active:a,text:i,orientation:f,flyoutPadding:s,pointerWidth:p,pointerLength:d}),h),v=y.flyoutHeight,b=y.flyoutWidth,g=P()({},e,{active:a,text:i,style:c,flyoutStyle:l,orientation:f,flyoutHeight:v,flyoutWidth:b,flyoutPadding:s,pointerWidth:p,pointerLength:d}),m=Ve()(n)&&void 0!==n.x?Pe(n.x,g):0,x=Ve()(n)&&void 0!==n.y?Pe(n.y,g):0;return P()({},g,{centerOffset:{x:m,y:x},dx:void 0!==r?Pe(r,g):0,dy:void 0!==o?Pe(o,g):0,cornerRadius:Pe(t,g)})}},{key:"getCalculatedValues",value:function(e){var t=e.style,n=e.text,r=e.flyoutStyle,o={height:e.flyoutHeight,width:e.flyoutWidth};return{style:t,flyoutStyle:r,labelSize:mt(n,t),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(e,o),transform:this.getTransform(e)}}},{key:"getTransform",value:function(e){var t=e.x,n=e.y,r=(e.style||{}).angle||e.angle||this.getDefaultAngle(e);return r?"rotate(".concat(r," ").concat(t," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(e){var t=e.polar,n=e.labelPlacement,r=e.orientation,o=e.datum;if(!t||!n||"vertical"===n)return 0;var a,i=Ye(e,o);return 0===i||180===i?a="top"===r&&180===i?270:90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(e,t,n){var r=e.x,o=e.y,a=n.width,i=n.height,u=[0,t.width],c=[0,t.height],l=[r-a/2,r+a/2],f=[o-i/2,o+i/2],s=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],p=[f[0]<c[0]?c[0]-f[0]:0,f[1]>c[1]?f[1]-c[1]:0];return{x:Math.round(r+s[0]-s[1]),y:Math.round(o+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(e,t){var n=e.x,r=e.y,o=e.dx,a=e.dy,i=e.pointerLength,u=e.orientation,c=e.constrainToVisibleArea,l=e.centerOffset,f=t.height,s=t.width,p="left"===u?-1:1,d="bottom"===u?-1:1,h={x:"left"===u||"right"===u?n+p*(i+s/2+p*o):n+o,y:"top"===u||"bottom"===u?r-d*(i+f/2-d*a):r+a},y=Ve()(e.center)&&void 0!==e.center.x?e.center.x:h.x,v=Ve()(e.center)&&void 0!==e.center.y?e.center.y:h.y,b={x:y+l.x,y:v+l.y};return c?this.constrainTooltip(b,e,t):b}},{key:"getLabelPadding",value:function(e){if(!e)return 0;var t,n=Array.isArray(e)?e.map((function(e){return e.padding})):[e.padding];return Math.max.apply(Math,(t=n,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()).concat([0]))}},{key:"getDimensions",value:function(e,t){var n,r,o,a,i=e.orientation,u=e.pointerLength,c=e.pointerWidth,l=e.flyoutHeight,f=e.flyoutWidth,s=e.flyoutPadding,p=Pe(e.cornerRadius,e);return{flyoutHeight:l?Pe(l,e):(o=t.height+s.top+s.bottom,a="top"===i||"bottom"===i?2*p:2*p+c,Math.max(a,o)),flyoutWidth:f?Pe(f,e):(n=t.width+s.left+s.right,r="left"===i||"right"===i?2*p+u:2*p,Math.max(r,n))}}},{key:"getLabelProps",value:function(e,t){var n=t.flyoutCenter,r=t.style,o=t.labelSize,a=t.dy,i=void 0===a?0:a,u=t.dx,c=void 0===u?0:u,l=e.text,f=e.datum,s=e.activePoints,p=e.labelComponent,d=e.index,h=e.flyoutPadding,y=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return j()({},p.props,{key:"".concat(this.id,"-label-").concat(d),text:l,datum:f,activePoints:s,textAnchor:y,dy:i,dx:c,style:r,x:function(){if(!y||"middle"===y)return n.x;var e="end"===y?-1:1;return n.x-e*(o.width/2)}()+(h.left-h.right)/2,y:n.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:r.angle})}},{key:"getPointerOrientation",value:function(e,t,n){var r=t.y+n.height/2,o=t.y-n.height/2,a=t.x-n.width/2,i=t.x+n.width/2,u=[{side:"top",val:o>e.y?o-e.y:-1},{side:"bottom",val:r<e.y?e.y-r:-1},{side:"right",val:i<e.x?e.x-i:-1},{side:"left",val:a>e.x?a-e.x:-1}];return Fe()(u,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(e,t){var n=t.flyoutDimensions,r=t.flyoutStyle,o=t.flyoutCenter,a=e.x,i=e.y,u=e.dx,c=e.dy,l=e.datum,f=e.activePoints,s=e.index,p=e.pointerLength,d=e.pointerWidth,h=e.cornerRadius,y=e.events,v=e.flyoutComponent,b=Pe(e.pointerOrientation,e);return j()({},v.props,{x:a,y:i,dx:u,dy:c,datum:l,activePoints:f,index:s,pointerLength:p,pointerWidth:d,cornerRadius:h,events:y,orientation:b||this.getPointerOrientation({x:a,y:i},o,n),key:"".concat(this.id,"-tooltip-").concat(s),width:n.width,height:n.height,style:r,center:o})}},{key:"renderTooltip",value:function(e){var t=Pe(e.active,e),n=e.renderInPortal;if(!t)return n?D().createElement(Ot,null,null):null;var r=this.getEvaluatedProps(e),o=r.flyoutComponent,a=r.labelComponent,i=r.groupComponent,u=this.getCalculatedValues(r),c=[D().cloneElement(o,this.getFlyoutProps(r,u)),D().cloneElement(a,this.getLabelProps(r,u))],l=D().cloneElement(i,{role:"presentation",transform:u.transform},c);return n?D().createElement(Ot,null,l):l}},{key:"render",value:function(){var e=function(e,t,n){var r=Me(e.theme&&e.theme[n]?e.theme[n]:{},["style"]),o=function(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;var t=function(e){return e.reduce((function(e,n){var r=n.props||{};return e||r.horizontal||!r.children?e=e||r.horizontal:t(D().Children.toArray(r.children))}),!1)};return t(D().Children.toArray(e.children))}(e),a=void 0===o?{}:{horizontal:o};return j()(a,e,r,t)}(this.props,Xt,"tooltip");return this.renderTooltip(e)}}],r&&Kt(n.prototype,r),t}(D().Component);Object.defineProperty($t,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryTooltip"}),Object.defineProperty($t,"role",{configurable:!0,enumerable:!0,writable:!0,value:"tooltip"}),Object.defineProperty($t,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{activateData:S().bool,active:S().oneOfType([S().bool,S().func]),activePoints:S().array,angle:S().number,center:S().shape({x:W,y:W}),centerOffset:S().shape({x:S().oneOfType([S().number,S().func]),y:S().oneOfType([S().number,S().func])}),constrainToVisibleArea:S().bool,cornerRadius:S().oneOfType([W,S().func]),data:S().array,datum:S().object,dx:S().oneOfType([S().number,S().func]),dy:S().oneOfType([S().number,S().func]),events:S().object,flyoutComponent:S().element,flyoutHeight:S().oneOfType([W,S().func]),flyoutPadding:S().oneOfType([S().func,S().number,S().shape({top:S().number,bottom:S().number,left:S().number,right:S().number})]),flyoutStyle:S().object,flyoutWidth:S().oneOfType([W,S().func]),groupComponent:S().element,height:S().number,horizontal:S().bool,id:S().oneOfType([S().number,S().string]),index:S().oneOfType([S().number,S().string]),labelComponent:S().element,orientation:S().oneOfType([S().oneOf(["top","bottom","left","right"]),S().func]),pointerLength:S().oneOfType([W,S().func]),pointerOrientation:S().oneOfType([S().oneOf(["top","bottom","left","right"]),S().func]),pointerWidth:S().oneOfType([W,S().func]),polar:S().bool,renderInPortal:S().bool,scale:S().shape({x:V,y:V}),style:S().oneOfType([S().object,S().array]),text:S().oneOfType([S().string,S().number,S().func,S().array]),theme:S().object,width:S().number,x:S().number,y:S().number}}),Object.defineProperty($t,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{active:!1,renderInPortal:!0,labelComponent:D().createElement(Ft,null),flyoutComponent:D().createElement(Zt,null),groupComponent:D().createElement("g",null)}}),Object.defineProperty($t,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]}});var Qt=r(4461),Jt=r.n(Qt),en=r(3259),tn=r.n(en);function nn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function rn(e){return Array.isArray(e)&&e.some((function(e){return e instanceof Date}))}function on(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return rn(o)?new Date(Math.max.apply(Math,nn(o))):Math.max.apply(Math,nn(o))}function an(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return rn(o)?new Date(Math.min.apply(Math,nn(o))):Math.min.apply(Math,nn(o))}r(5492),r(2720);var un=r(9793),cn=r.n(un),ln=r(2972),fn=r.n(ln),sn=r(9717),pn=r.n(sn),dn=r(1815),hn=r.n(dn);function yn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vn(e){var t;return 1===e.length&&(t=e,e=function(e,n){return yn(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)<0?r=a+1:o=a}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)>0?o=a:r=a+1}return r}}}var bn=vn(yn),gn=bn.right;bn.left;const mn=gn;var xn=Array.prototype,wn=(xn.slice,xn.map,Math.sqrt(50)),Mn=Math.sqrt(10),On=Math.sqrt(2);function jn(e,t,n){var r,o,a,i,u=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(i=An(e,t,n))||!isFinite(i))return[];if(i>0)for(e=Math.ceil(e/i),t=Math.floor(t/i),a=new Array(o=Math.ceil(t-e+1));++u<o;)a[u]=(e+u)*i;else for(e=Math.floor(e*i),t=Math.ceil(t*i),a=new Array(o=Math.ceil(e-t+1));++u<o;)a[u]=(e-u)/i;return r&&a.reverse(),a}function An(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,o);return o>=0?(a>=wn?10:a>=Mn?5:a>=On?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=wn?10:a>=Mn?5:a>=On?2:1)}function Pn(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=wn?o*=10:a>=Mn?o*=5:a>=On&&(o*=2),t<e?-o:o}function kn(e){return null===e?NaN:+e}function Dn(e,t,n){if(null==n&&(n=kn),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,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}var Tn="$";function Sn(){}function Cn(e,t){var n=new Sn;if(e instanceof Sn)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,a=e.length;if(null==t)for(;++o<a;)n.set(o,e[o]);else for(;++o<a;)n.set(t(r=e[o],o,e),r)}else if(e)for(var i in e)n.set(i,e[i]);return n}Sn.prototype=Cn.prototype={constructor:Sn,has:function(e){return Tn+e in this},get:function(e){return this[Tn+e]},set:function(e,t){return this[Tn+e]=t,this},remove:function(e){var t=Tn+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Tn&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Tn&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Tn&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Tn&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Tn&&++e;return e},empty:function(){for(var e in this)if(e[0]===Tn)return!1;return!0},each:function(e){for(var t in this)t[0]===Tn&&e(this[t],t.slice(1),this)}};const _n=Cn;function En(){}var Nn=_n.prototype;En.prototype=function(e,t){var n=new En;if(e instanceof En)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}.prototype={constructor:En,has:Nn.has,add:function(e){return this[Tn+(e+="")]=e,this},remove:Nn.remove,clear:Nn.clear,values:Nn.keys,size:Nn.size,empty:Nn.empty,each:Nn.each};var zn=Array.prototype,Ln=zn.map,In=zn.slice,Un={name:"implicit"};function Rn(e){var t=_n(),n=[],r=Un;function o(o){var a=o+"",i=t.get(a);if(!i){if(r!==Un)return r;t.set(a,i=n.push(o))}return e[(i-1)%e.length]}return e=null==e?[]:In.call(e),o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=_n();for(var r,a,i=-1,u=e.length;++i<u;)t.has(a=(r=e[i])+"")||t.set(a,n.push(r));return o},o.range=function(t){return arguments.length?(e=In.call(t),o):e.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Rn().domain(n).range(e).unknown(r)},o}function Hn(){var e,t,n=Rn().unknown(void 0),r=n.domain,o=n.range,a=[0,1],i=!1,u=0,c=0,l=.5;function f(){var n=r().length,f=a[1]<a[0],s=a[f-0],p=a[1-f];e=(p-s)/Math.max(1,n-u+2*c),i&&(e=Math.floor(e)),s+=(p-s-e*(n-u))*l,t=e*(1-u),i&&(s=Math.round(s),t=Math.round(t));var d=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return s+e*t}));return o(f?d.reverse():d)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?(a=[+e[0],+e[1]],f()):a.slice()},n.rangeRound=function(e){return a=[+e[0],+e[1]],i=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(i=!!e,f()):i},n.padding=function(e){return arguments.length?(u=c=Math.max(0,Math.min(1,e)),f()):u},n.paddingInner=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.paddingOuter=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return Hn().domain(r()).range(a).round(i).paddingInner(u).paddingOuter(c).align(l)},f()}function Wn(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Wn(t())},e}function Fn(){return Wn(Hn().paddingInner(1))}function Bn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Gn=.7,Zn=1/Gn,Kn="\\s*([+-]?\\d+)\\s*",Xn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qn=/^#([0-9a-f]{3,8})$/,Jn=new RegExp("^rgb\\("+[Kn,Kn,Kn]+"\\)$"),er=new RegExp("^rgb\\("+[$n,$n,$n]+"\\)$"),tr=new RegExp("^rgba\\("+[Kn,Kn,Kn,Xn]+"\\)$"),nr=new RegExp("^rgba\\("+[$n,$n,$n,Xn]+"\\)$"),rr=new RegExp("^hsl\\("+[Xn,$n,$n]+"\\)$"),or=new RegExp("^hsla\\("+[Xn,$n,$n,Xn]+"\\)$"),ar={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 ir(){return this.rgb().formatHex()}function ur(){return this.rgb().formatRgb()}function cr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?lr(t):3===n?new dr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?fr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?fr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Jn.exec(e))?new dr(t[1],t[2],t[3],1):(t=er.exec(e))?new dr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tr.exec(e))?fr(t[1],t[2],t[3],t[4]):(t=nr.exec(e))?fr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rr.exec(e))?br(t[1],t[2]/100,t[3]/100,1):(t=or.exec(e))?br(t[1],t[2]/100,t[3]/100,t[4]):ar.hasOwnProperty(e)?lr(ar[e]):"transparent"===e?new dr(NaN,NaN,NaN,0):null}function lr(e){return new dr(e>>16&255,e>>8&255,255&e,1)}function fr(e,t,n,r){return r<=0&&(e=t=n=NaN),new dr(e,t,n,r)}function sr(e){return e instanceof qn||(e=cr(e)),e?new dr((e=e.rgb()).r,e.g,e.b,e.opacity):new dr}function pr(e,t,n,r){return 1===arguments.length?sr(e):new dr(e,t,n,null==r?1:r)}function dr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function hr(){return"#"+vr(this.r)+vr(this.g)+vr(this.b)}function yr(){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+")")}function vr(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function br(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,n,r)}function gr(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=cr(e)),!e)return new mr;if(e instanceof mr)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,u=a-o,c=(a+o)/2;return u?(i=t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4,u/=c<.5?a+o:2-a-o,i*=60):u=c>0&&c<1?0:i,new mr(i,u,c,e.opacity)}function mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function xr(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function wr(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function Mr(e){return function(){return e}}function Or(e,t){return function(n){return e+n*t}}function jr(e,t){var n=t-e;return n?Or(e,n):Mr(isNaN(e)?t:e)}Vn(qn,cr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ir,formatHex:ir,formatHsl:function(){return gr(this).formatHsl()},formatRgb:ur,toString:ur}),Vn(dr,pr,Yn(qn,{brighter:function(e){return e=null==e?Zn:Math.pow(Zn,e),new dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Gn:Math.pow(Gn,e),new dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hr,formatHex:hr,formatRgb:yr,toString:yr})),Vn(mr,(function(e,t,n,r){return 1===arguments.length?gr(e):new mr(e,t,n,null==r?1:r)}),Yn(qn,{brighter:function(e){return e=null==e?Zn:Math.pow(Zn,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Gn:Math.pow(Gn,e),new mr(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,o=2*n-r;return new dr(xr(e>=240?e-240:e+120,o,r),xr(e,o,r),xr(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Ar=function e(t){var n=function(e){return 1==(e=+e)?jr: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):Mr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=jr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Pr(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=pr(t[n]),a[n]=r.r||0,i[n]=r.g||0,u[n]=r.b||0;return a=e(a),i=e(i),u=e(u),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=u(e),r+""}}}function kr(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=Nr(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function Dr(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Tr(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Nr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}Pr((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),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,u=r<t-1?e[r+2]:2*a-o;return wr((n-r/t)*t,i,o,a,u)}})),Pr((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],u=e[(r+2)%t];return wr((n-r/t)*t,o,a,i,u)}}));var Sr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cr=new RegExp(Sr.source,"g");function _r(e,t){var n,r,o,a=Sr.lastIndex=Cr.lastIndex=0,i=-1,u=[],c=[];for(e+="",t+="";(n=Sr.exec(e))&&(r=Cr.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),u[i]?u[i]+=o:u[++i]=o),(n=n[0])===(r=r[0])?u[i]?u[i]+=r:u[++i]=r:(u[++i]=null,c.push({i,x:Bn(n,r)})),a=Cr.lastIndex;return a<t.length&&(o=t.slice(a),u[i]?u[i]+=o:u[++i]=o),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("")})}function Er(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function Nr(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?Mr(t):("number"===o?Bn:"string"===o?(n=cr(t))?(t=n,Ar):_r:t instanceof cr?Ar:t instanceof Date?Dr:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?kr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Tr:Bn:Er))(e,t)}function zr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Lr(e){return function(){return e}}function Ir(e){return+e}var Ur=[0,1];function Rr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Lr(t)}function Hr(e,t,n,r){var o=e[0],a=e[1],i=t[0],u=t[1];return a<o?(o=n(a,o),i=r(u,i)):(o=n(o,a),i=r(i,u)),function(e){return i(o(e))}}function Wr(e,t,n,r){var o=Math.min(e.length,t.length)-1,a=new Array(o),i=new Array(o),u=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<o;)a[u]=n(e[u],e[u+1]),i[u]=r(t[u],t[u+1]);return function(t){var n=mn(e,t,1,o)-1;return i[n](a[n](t))}}function Fr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function Br(e,t){var n,r,o,a=Ur,i=Ur,u=Nr,c=!1;function l(){return n=Math.min(a.length,i.length)>2?Wr:Hr,r=o=null,f}function f(t){return(r||(r=n(a,i,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 f.invert=function(e){return(o||(o=n(i,a,Rr,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)},f.domain=function(e){return arguments.length?(a=Ln.call(e,Ir),l()):a.slice()},f.range=function(e){return arguments.length?(i=In.call(e),l()):i.slice()},f.rangeRound=function(e){return i=In.call(e),u=zr,l()},f.clamp=function(e){return arguments.length?(c=!!e,l()):c},f.interpolate=function(e){return arguments.length?(u=e,l()):u},l()}var Vr,Yr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qr(e){if(!(t=Yr.exec(e)))throw new Error("invalid format: "+e);var t;return new Gr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Gr(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Zr(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)]}function Kr(e){return(e=Zr(Math.abs(e)))?e[1]:NaN}function Xr(e,t){var n=Zr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}qr.prototype=Gr.prototype,Gr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const $r={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 Xr(100*e,t)},r:Xr,s:function(e,t){var n=Zr(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Vr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Zr(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Qr(e){return e}var Jr,eo,to,no=Array.prototype.map,ro=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function oo(e){var t=e.domain;return e.ticks=function(e){var n=t();return jn(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var r,o=e[0],a=e[e.length-1],i=Pn(o,a,null==t?10:t);switch((n=qr(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(o),Math.abs(a));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Kr(t)/3)))-Kr(Math.abs(e)))}(i,u))||(n.precision=r),to(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kr(t)-Kr(e))+1}(i,Math.max(Math.abs(o),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-Kr(Math.abs(e)))}(i))||(n.precision=r-2*("%"===n.type))}return eo(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),a=0,i=o.length-1,u=o[a],c=o[i];return c<u&&(r=u,u=c,c=r,r=a,a=i,i=r),(r=An(u,c,n))>0?r=An(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=An(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[a]=Math.floor(u/r)*r,o[i]=Math.ceil(c/r)*r,t(o)):r<0&&(o[a]=Math.ceil(u*r)/r,o[i]=Math.floor(c*r)/r,t(o)),e},e}function ao(){var e=Br(Rr,Bn);return e.copy=function(){return Fr(e,ao())},oo(e)}function io(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=Ln.call(n,Ir),t):e.slice()},t.copy=function(){return io().domain(e)},oo(t)}function uo(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}function co(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:Lr(t)}function lo(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 fo(e){return isFinite(e)?+("1e"+e):e<0?0:e}function so(e){return 10===e?fo:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function po(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 ho(e){return function(t){return-e(-t)}}function yo(){var e=Br(co,lo).domain([1,10]),t=e.domain,n=10,r=po(10),o=so(10);function a(){return r=po(n),o=so(n),t()[0]<0&&(r=ho(r),o=ho(o)),e}return e.base=function(e){return arguments.length?(n=+e,a()):n},e.domain=function(e){return arguments.length?(t(e),a()):t()},e.ticks=function(e){var a,i=t(),u=i[0],c=i[i.length-1];(a=c<u)&&(p=u,u=c,c=p);var l,f,s,p=r(u),d=r(c),h=null==e?10:+e,y=[];if(!(n%1)&&d-p<h){if(p=Math.round(p)-1,d=Math.round(d)+1,u>0){for(;p<d;++p)for(f=1,l=o(p);f<n;++f)if(!((s=l*f)<u)){if(s>c)break;y.push(s)}}else for(;p<d;++p)for(f=n-1,l=o(p);f>=1;--f)if(!((s=l*f)<u)){if(s>c)break;y.push(s)}}else y=jn(p,d,Math.min(d-p,h)).map(o);return a?y.reverse():y},e.tickFormat=function(t,a){if(null==a&&(a=10===n?".0e":","),"function"!=typeof a&&(a=eo(a)),t===1/0)return a;null==t&&(t=10);var i=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/o(Math.round(r(e)));return t*n<n-.5&&(t*=n),t<=i?a(e):""}},e.nice=function(){return t(uo(t(),{floor:function(e){return o(Math.floor(r(e)))},ceil:function(e){return o(Math.ceil(r(e)))}}))},e.copy=function(){return Fr(e,yo().base(n))},e}function vo(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function bo(){var e=1,t=Br((function(t,n){return(n=vo(n,e)-(t=vo(t,e)))?function(r){return(vo(r,e)-t)/n}:Lr(n)}),(function(t,n){return n=vo(n,e)-(t=vo(t,e)),function(r){return vo(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 Fr(t,bo().exponent(e))},oo(t)}function go(){return bo().exponent(.5)}function mo(){var e=[],t=[],n=[];function r(){var r=0,a=Math.max(1,t.length);for(n=new Array(a-1);++r<a;)n[r-1]=Dn(e,r/a);return o}function o(e){if(!isNaN(e=+e))return t[mn(n,e)]}return o.invertExtent=function(r){var o=t.indexOf(r);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,o=0,a=t.length;o<a;++o)null==(n=t[o])||isNaN(n=+n)||e.push(n);return e.sort(yn),r()},o.range=function(e){return arguments.length?(t=In.call(e),r()):t.slice()},o.quantiles=function(){return n.slice()},o.copy=function(){return mo().domain(e).range(t)},o}function xo(){var e=0,t=1,n=1,r=[.5],o=[0,1];function a(e){if(e<=e)return o[mn(r,e,0,n)]}function i(){var o=-1;for(r=new Array(n);++o<n;)r[o]=((o+1)*t-(o-n)*e)/(n+1);return a}return a.domain=function(n){return arguments.length?(e=+n[0],t=+n[1],i()):[e,t]},a.range=function(e){return arguments.length?(n=(o=In.call(e)).length-1,i()):o.slice()},a.invertExtent=function(a){var i=o.indexOf(a);return i<0?[NaN,NaN]:i<1?[e,r[0]]:i>=n?[r[n-1],t]:[r[i-1],r[i]]},a.copy=function(){return xo().domain([e,t]).range(o)},oo(a)}function wo(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[mn(e,r,0,n)]}return r.domain=function(o){return arguments.length?(e=In.call(o),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(o){return arguments.length?(t=In.call(o),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return wo().domain(e).range(t)},r}Jr=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Qr:(t=no.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(e.substring(o-=u,o+u)),!((c+=u+1)>r));)u=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?Qr:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(no.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",f=void 0===e.nan?"NaN":e.nan+"";function s(e){var t=(e=qr(e)).fill,n=e.align,s=e.sign,p=e.symbol,d=e.zero,h=e.width,y=e.comma,v=e.precision,b=e.trim,g=e.type;"n"===g?(y=!0,g="g"):$r[g]||(void 0===v&&(v=12),b=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var m="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?a:/[%p]/.test(g)?c:"",w=$r[g],M=/[defgprs%]/.test(g);function O(e){var o,a,c,p=m,O=x;if("c"===g)O=w(e)+O,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?f:w(Math.abs(e),v),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==s&&(j=!1),p=(j?"("===s?s:l:"-"===s||"("===s?"":s)+p,O=("s"===g?ro[8+Vr/3]:"")+O+(j&&"("===s?")":""),M)for(o=-1,a=e.length;++o<a;)if(48>(c=e.charCodeAt(o))||c>57){O=(46===c?i+e.slice(o+1):e.slice(o))+O,e=e.slice(0,o);break}}y&&!d&&(e=r(e,1/0));var A=p.length+e.length+O.length,P=A<h?new Array(h-A+1).join(t):"";switch(y&&d&&(e=r(P+e,P.length?h-O.length:1/0),P=""),n){case"<":e=p+e+O+P;break;case"=":e=p+P+e+O;break;case"^":e=P.slice(0,A=P.length>>1)+p+e+O+P.slice(A);break;default:e=P+p+e+O}return u(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),O.toString=function(){return e+""},O}return{format:s,formatPrefix:function(e,t){var n=s(((e=qr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Kr(t)/3))),o=Math.pow(10,-r),a=ro[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),eo=Jr.format,to=Jr.formatPrefix;var Mo=new Date,Oo=new Date;function jo(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,a){var i,u=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return u;do{u.push(i=new Date(+n)),t(n,a),e(n)}while(i<n&&n<r);return u},o.filter=function(n){return jo((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&&(o.count=function(t,r){return Mo.setTime(+t),Oo.setTime(+r),e(Mo),e(Oo),Math.floor(n(Mo,Oo))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Ao=jo((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()}));Ao.every=function(e){return isFinite(e=Math.floor(e))&&e>0?jo((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};const Po=Ao;Ao.range;var ko=jo((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()}));const Do=ko;ko.range;var To=1e3,So=6e4,Co=36e5,_o=864e5,Eo=6048e5;function No(e){return jo((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())*So)/Eo}))}var zo=No(0),Lo=No(1),Io=No(2),Uo=No(3),Ro=No(4),Ho=No(5),Wo=No(6),Fo=(zo.range,Lo.range,Io.range,Uo.range,Ro.range,Ho.range,Wo.range,jo((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())*So)/_o}),(function(e){return e.getDate()-1})));const Bo=Fo;Fo.range;var Vo=jo((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*To-e.getMinutes()*So)}),(function(e,t){e.setTime(+e+t*Co)}),(function(e,t){return(t-e)/Co}),(function(e){return e.getHours()}));const Yo=Vo;Vo.range;var qo=jo((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*To)}),(function(e,t){e.setTime(+e+t*So)}),(function(e,t){return(t-e)/So}),(function(e){return e.getMinutes()}));const Go=qo;qo.range;var Zo=jo((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*To)}),(function(e,t){return(t-e)/To}),(function(e){return e.getUTCSeconds()}));const Ko=Zo;Zo.range;var Xo=jo((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Xo.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?jo((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Xo:null};const $o=Xo;function Qo(e){return jo((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)/Eo}))}Xo.range;var Jo=Qo(0),ea=Qo(1),ta=Qo(2),na=Qo(3),ra=Qo(4),oa=Qo(5),aa=Qo(6),ia=(Jo.range,ea.range,ta.range,na.range,ra.range,oa.range,aa.range,jo((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/_o}),(function(e){return e.getUTCDate()-1})));const ua=ia;ia.range;var ca=jo((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()}));ca.every=function(e){return isFinite(e=Math.floor(e))&&e>0?jo((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};const la=ca;function fa(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 sa(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 pa(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}ca.range;var da,ha,ya,va={"-":"",_:" ",0:"0"},ba=/^\s*\d+/,ga=/^%/,ma=/[\\^$*+?|[\]().{}]/g;function xa(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function wa(e){return e.replace(ma,"\\$&")}function Ma(e){return new RegExp("^(?:"+e.map(wa).join("|")+")","i")}function Oa(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function ja(e,t,n){var r=ba.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Aa(e,t,n){var r=ba.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Pa(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ka(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Da(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ta(e,t,n){var r=ba.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Sa(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ca(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 _a(e,t,n){var r=ba.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Ea(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Na(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function za(e,t,n){var r=ba.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function La(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ia(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ua(e,t,n){var r=ba.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ra(e,t,n){var r=ba.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ha(e,t,n){var r=ba.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wa(e,t,n){var r=ga.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fa(e,t,n){var r=ba.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ba(e,t,n){var r=ba.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Va(e,t){return xa(e.getDate(),t,2)}function Ya(e,t){return xa(e.getHours(),t,2)}function qa(e,t){return xa(e.getHours()%12||12,t,2)}function Ga(e,t){return xa(1+Bo.count(Po(e),e),t,3)}function Za(e,t){return xa(e.getMilliseconds(),t,3)}function Ka(e,t){return Za(e,t)+"000"}function Xa(e,t){return xa(e.getMonth()+1,t,2)}function $a(e,t){return xa(e.getMinutes(),t,2)}function Qa(e,t){return xa(e.getSeconds(),t,2)}function Ja(e){var t=e.getDay();return 0===t?7:t}function ei(e,t){return xa(zo.count(Po(e)-1,e),t,2)}function ti(e){var t=e.getDay();return t>=4||0===t?Ro(e):Ro.ceil(e)}function ni(e,t){return e=ti(e),xa(Ro.count(Po(e),e)+(4===Po(e).getDay()),t,2)}function ri(e){return e.getDay()}function oi(e,t){return xa(Lo.count(Po(e)-1,e),t,2)}function ai(e,t){return xa(e.getFullYear()%100,t,2)}function ii(e,t){return xa((e=ti(e)).getFullYear()%100,t,2)}function ui(e,t){return xa(e.getFullYear()%1e4,t,4)}function ci(e,t){var n=e.getDay();return xa((e=n>=4||0===n?Ro(e):Ro.ceil(e)).getFullYear()%1e4,t,4)}function li(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xa(t/60|0,"0",2)+xa(t%60,"0",2)}function fi(e,t){return xa(e.getUTCDate(),t,2)}function si(e,t){return xa(e.getUTCHours(),t,2)}function pi(e,t){return xa(e.getUTCHours()%12||12,t,2)}function di(e,t){return xa(1+ua.count(la(e),e),t,3)}function hi(e,t){return xa(e.getUTCMilliseconds(),t,3)}function yi(e,t){return hi(e,t)+"000"}function vi(e,t){return xa(e.getUTCMonth()+1,t,2)}function bi(e,t){return xa(e.getUTCMinutes(),t,2)}function gi(e,t){return xa(e.getUTCSeconds(),t,2)}function mi(e){var t=e.getUTCDay();return 0===t?7:t}function xi(e,t){return xa(Jo.count(la(e)-1,e),t,2)}function wi(e){var t=e.getUTCDay();return t>=4||0===t?ra(e):ra.ceil(e)}function Mi(e,t){return e=wi(e),xa(ra.count(la(e),e)+(4===la(e).getUTCDay()),t,2)}function Oi(e){return e.getUTCDay()}function ji(e,t){return xa(ea.count(la(e)-1,e),t,2)}function Ai(e,t){return xa(e.getUTCFullYear()%100,t,2)}function Pi(e,t){return xa((e=wi(e)).getUTCFullYear()%100,t,2)}function ki(e,t){return xa(e.getUTCFullYear()%1e4,t,4)}function Di(e,t){var n=e.getUTCDay();return xa((e=n>=4||0===n?ra(e):ra.ceil(e)).getUTCFullYear()%1e4,t,4)}function Ti(){return"+0000"}function Si(){return"%"}function Ci(e){return+e}function _i(e){return Math.floor(+e/1e3)}da=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,u=e.months,c=e.shortMonths,l=Ma(o),f=Oa(o),s=Ma(a),p=Oa(a),d=Ma(i),h=Oa(i),y=Ma(u),v=Oa(u),b=Ma(c),g=Oa(c),m={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:Va,e:Va,f:Ka,g:ii,G:ci,H:Ya,I:qa,j:Ga,L:Za,m:Xa,M:$a,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ci,s:_i,S:Qa,u:Ja,U:ei,V:ni,w:ri,W:oi,x:null,X:null,y:ai,Y:ui,Z:li,"%":Si},x={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:fi,e:fi,f:yi,g:Pi,G:Di,H:si,I:pi,j:di,L:hi,m:vi,M:bi,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ci,s:_i,S:gi,u:mi,U:xi,V:Mi,w:Oi,W:ji,x:null,X:null,y:Ai,Y:ki,Z:Ti,"%":Si},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return j(e,t,n,r)},d:Na,e:Na,f:Ha,g:Sa,G:Ta,H:La,I:La,j:za,L:Ra,m:Ea,M:Ia,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=f[r[0].toLowerCase()],n+r[0].length):-1},q:_a,Q:Fa,s:Ba,S:Ua,u:Aa,U:Pa,V:ka,w:ja,W:Da,x:function(e,t,r){return j(e,n,t,r)},X:function(e,t,n){return j(e,r,t,n)},y:Sa,Y:Ta,Z:Ca,"%":Wa};function M(e,t){return function(n){var r,o,a,i=[],u=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===e.charCodeAt(u)&&(i.push(e.slice(c,u)),null!=(o=va[r=e.charAt(++u)])?r=e.charAt(++u):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),c=u+1);return i.push(e.slice(c,u)),i.join("")}}function O(e,t){return function(n){var r,o,a=pa(1900,void 0,1);if(j(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=sa(pa(a.y,0,1))).getUTCDay(),r=o>4||0===o?ea.ceil(r):ea(r),r=ua.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=fa(pa(a.y,0,1))).getDay(),r=o>4||0===o?Lo.ceil(r):Lo(r),r=Bo.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?sa(pa(a.y,0,1)).getUTCDay():fa(pa(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,sa(a)):fa(a)}}function j(e,t,n,r){for(var o,a,i=0,u=t.length,c=n.length;i<u;){if(r>=c)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=w[o in va?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return m.x=M(n,m),m.X=M(r,m),m.c=M(t,m),x.x=M(n,x),x.X=M(r,x),x.c=M(t,x),{format:function(e){var t=M(e+="",m);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),ha=da.format,da.parse,ya=da.utcFormat,da.utcParse;var Ei=31536e6;function Ni(e){return new Date(e)}function zi(e){return e instanceof Date?+e:+new Date(+e)}function Li(e,t,n,r,o,a,i,u,c){var l=Br(Rr,Bn),f=l.invert,s=l.domain,p=c(".%L"),d=c(":%S"),h=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),b=c("%b %d"),g=c("%B"),m=c("%Y"),x=[[i,1,1e3],[i,5,5e3],[i,15,15e3],[i,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,Ei]];function w(u){return(i(u)<u?p:a(u)<u?d:o(u)<u?h:r(u)<u?y:t(u)<u?n(u)<u?v:b:e(u)<u?g:m)(u)}function M(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var a=Math.abs(r-n)/t,i=vn((function(e){return e[2]})).right(x,a);i===x.length?(o=Pn(n/Ei,r/Ei,t),t=e):i?(o=(i=x[a/x[i-1][2]<x[i][2]/a?i-1:i])[1],t=i[0]):(o=Math.max(Pn(n,r,t),1),t=u)}return null==o?t:t.every(o)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?s(Ln.call(e,zi)):s().map(Ni)},l.ticks=function(e,t){var n,r=s(),o=r[0],a=r[r.length-1],i=a<o;return i&&(n=o,o=a,a=n),n=(n=M(e,o,a,t))?n.range(o,a+1):[],i?n.reverse():n},l.tickFormat=function(e,t){return null==t?w:c(t)},l.nice=function(e,t){var n=s();return(e=M(e,n[0],n[n.length-1],t))?s(uo(n,e)):l},l.copy=function(){return Fr(l,Li(e,t,n,r,o,a,i,u,c))},l}function Ii(){return Li(Po,Do,zo,Bo,Yo,Go,Ko,$o,ha).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var Ui=jo((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()}));const Ri=Ui;Ui.range;var Hi=jo((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Co)}),(function(e,t){return(t-e)/Co}),(function(e){return e.getUTCHours()}));const Wi=Hi;Hi.range;var Fi=jo((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*So)}),(function(e,t){return(t-e)/So}),(function(e){return e.getUTCMinutes()}));const Bi=Fi;function Vi(){return Li(la,Ri,Jo,ua,Wi,Bi,Ko,$o,ya).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function Yi(e){return e.match(/.{6}/g).map((function(e){return"#"+e}))}Fi.range;const qi=Yi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Gi=Yi("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Zi=Yi("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Ki=Yi("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");var Xi=Math.PI/180,$i=180/Math.PI,Qi=-.14861,Ji=1.78277,eu=-.29227,tu=-.90649,nu=1.97294,ru=nu*tu,ou=nu*Ji,au=Ji*eu-tu*Qi;function iu(e){if(e instanceof cu)return new cu(e.h,e.s,e.l,e.opacity);e instanceof dr||(e=sr(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(au*r+ru*t-ou*n)/(au+ru-ou),a=r-o,i=(nu*(n-o)-eu*a)/tu,u=Math.sqrt(i*i+a*a)/(nu*o*(1-o)),c=u?Math.atan2(i,a)*$i-120:NaN;return new cu(c<0?c+360:c,u,o,e.opacity)}function uu(e,t,n,r){return 1===arguments.length?iu(e):new cu(e,t,n,null==r?1:r)}function cu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function lu(e){return function t(n){function r(t,r){var o=e((t=uu(t)).h,(r=uu(r)).h),a=jr(t.s,r.s),i=jr(t.l,r.l),u=jr(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=i(Math.pow(e,n)),t.opacity=u(e),t+""}}return n=+n,r.gamma=t,r}(1)}Vn(cu,uu,Yn(qn,{brighter:function(e){return e=null==e?Zn:Math.pow(Zn,e),new cu(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Gn:Math.pow(Gn,e),new cu(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Xi,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new dr(255*(t+n*(Qi*r+Ji*o)),255*(t+n*(eu*r+tu*o)),255*(t+n*(nu*r)),this.opacity)}})),lu((function(e,t){var n=t-e;return n?Or(e,n>180||n<-180?n-360*Math.round(n/360):n):Mr(isNaN(e)?t:e)}));var fu=lu(jr);const su=fu(uu(300,.5,0),uu(-240,.5,1));var pu=fu(uu(-100,.75,.35),uu(80,1.5,.8)),du=fu(uu(260,.75,.35),uu(80,1.5,.8)),hu=uu();function yu(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return hu.h=360*e-100,hu.s=1.5-1.5*t,hu.l=.8-.9*t,hu+""}function vu(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const bu=vu(Yi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var gu=vu(Yi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),mu=vu(Yi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xu=vu(Yi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function wu(e){var t=0,n=1,r=!1;function o(o){var a=(o-t)/(n-t);return e(r?Math.max(0,Math.min(1,a)):a)}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.clamp=function(e){return arguments.length?(r=!!e,o):r},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return wu(e).domain([t,n]).clamp(r)},oo(o)}var Mu=["linear","time","log","sqrt"];function Ou(e){var t;return"scale".concat((t=e)&&t[0].toUpperCase()+t.slice(1))}function ju(e){return"function"==typeof e?i()(e.copy)&&i()(e.domain)&&i()(e.range):"string"==typeof e&&p()(Mu,e)}function Au(e,t){return!(!e.scale||(e.scale.x||e.scale.y)&&!e.scale[t])}function Pu(e,t){if(!e.data)return"linear";var n=Ce(e[t]);return rn(e.data.map((function(e){var r=Ve()(n(e))?n(e)[t]:n(e);return void 0!==r?r:e[t]})))?"time":"linear"}function ku(e,t){return function(e,t){if(Au(e,t)){var n=e.scale[t]||e.scale;return"string"==typeof n?n:function(e){if("string"==typeof e)return e;var t=[{name:"log",method:"base"},{name:"ordinal",method:"unknown"},{name:"pow-sqrt",method:"exponent"},{name:"quantile",method:"quantiles"},{name:"quantize-threshold",method:"invertExtent"}].filter((function(t){return void 0!==e[t.method]}))[0];return t?t.name:void 0}(n)}}(e,t)||Pu(e,t)}function Du(e){return!(!e||!e["@@__IMMUTABLE_ITERABLE__@@"])}function Tu(e,t){return Du(e)?e.reduce((function(e,n,r){return t&&t[r]&&(n=Tu(n)),e[r]=n,e}),function(e){return!(!e||!e["@@__IMMUTABLE_LIST__@@"])}(e)?[]:{}):e}function Su(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Cu(e){var t;return Du(t=e)||function(e){return!(!e||!e["@@__IMMUTABLE_RECORD__@@"])}(t)?Tu(e,{errorX:!0,errorY:!0}):e}function _u(e){return Du(e)?e.size:e.length}function Eu(t,n){var r=(Ve()(t.domain)?t.domain[n]:t.domain)||function(t,n){var r,o=function(t,n){if(Au(t,n)){var r=t.scale[n]||t.scale;return ju(r)?i()(r)?r:e[Ou(r)]():void 0}}(t,n);if(o)return"string"==typeof o?ju(r=o)?e[Ou(r)]():ao():o;var a=function(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),n)return rn(n)?"time":"linear"}(t,n)||Pu(t,n);return e[Ou(a)]()}(t,n).domain(),o=t.samples||1,a=Math.max.apply(Math,Su(r)),u=Math.min.apply(Math,Su(r)),c=(a-u)/o,l=pn()(u,a,c);return fn()(l)===a?l:l.concat(a)}function Nu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!t)return e;"x"!==t&&"y"!==t||(t="_".concat(t));var r="ascending"===n?"asc":"desc";return Fe()(e,t,r)}function zu(e,t){var n=function(e,t){var n=e.tickValues,r=e.tickFormat;return(n&&(Array.isArray(n)||n[t])?n[t]||n:r&&Array.isArray(r)?r:[]).filter((function(e){return"string"==typeof e}))}(e,t),r=Ru(e,t),o=function(e,t){if(!Array.isArray(e.data)&&!Du(e.data))return[];var n=Ce(void 0===e[t]?t:e[t]);return Nu(e.data.reduce((function(e,t){return e.push(Cu(t)),e}),[]),e.sortKey,e.sortOrder).reduce((function(e,t){return t=Cu(t),e.push(n(t)),e}),[]).filter((function(e){return"string"==typeof e})).reduce((function(e,t){return null!=t&&-1===e.indexOf(t)&&e.push(t),e}),[])}(e,t),a=hn()(Su(n).concat(Su(r),Su(o)));return 0===a.length?null:a.reduce((function(e,t,n){return e[t]=n+1,e}),{})}function Lu(e,t,n){if(!Array.isArray(e)&&!Du(e)||_u(e)<1)return[];var r,o=["x","y","y0"],a=(n=Array.isArray(n)?n:o).reduce((function(e,n){var r;return e[n]=Ce(void 0!==t[r=n]?t[r]:r),e}),{}),u=cn()(n,o)&&"_x"===t.x&&"_y"===t.y&&"_y0"===t.y0;!1===u&&(r={x:-1!==n.indexOf("x")?zu(t,"x"):void 0,y:-1!==n.indexOf("y")?zu(t,"y"):void 0,y0:-1!==n.indexOf("y0")?zu(t,"y"):void 0});var l=u?e:e.reduce((function(e,t,o){var i={x:o,y:t=Cu(t)},u=n.reduce((function(e,n){var o=a[n](t),u=void 0!==o?o:i[n];return void 0!==u&&("string"==typeof u&&r[n]?(e["".concat(n,"Name")]=u,e["_".concat(n)]=r[n][u]):e["_".concat(n)]=u),e}),{}),l=P()({},u,t);return c()(l)||e.push(l),e}),[]),f=function(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:ku(t,"x"),y:ku(t,"y")};if("log"!==r.x&&"log"!==r.y)return e;var o=function(e,t){return"log"!==r[t]||0!==e["_".concat(t)]};return e.map((function(e){return o(e,"x")&&o(e,"y")&&o(e,"y0")?e:function(e){var t=o(e,"x")?e._x:n,r=o(e,"y")?e._y:n,a=o(e,"y0")?e._y0:n;return P()({},e,{_x:t,_y:r,_y0:a})}(e)}))}(Nu(l,t.sortKey,t.sortOrder),t);return function(e,t){var n,r=!!e.eventKey,o=(n=e.eventKey,i()(n)?n:null==n?function(){}:we()(n));return t.map((function(e,t){if(void 0!==e.eventKey)return e;if(r){var n=o(e,t);return void 0!==n?P()({eventKey:n},e):e}return e}))}(t,f)}function Iu(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function Uu(e){return e.data?Lu(e.data,e):Lu(function(e){var t=Eu(e,"x"),n=Eu(e,"y");return t.map((function(e,t){return{x:e,y:n[t]}}))}(e),e)}function Ru(e,t){if(!e.categories)return[];var n=Iu(e,t),r=n&&n.filter((function(e){return"string"==typeof e}));return r?r.filter((function(e){return void 0!==e})):[]}function Hu(e){var t=function(e){return e&&e.type?e.type.role:""},n=t(e);if("portal"===n){var r=D().Children.toArray(e.props.children);n=r.length?t(r[0]):""}return p()(["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],n)}function Wu(e,t,n){var r=t.a,o=t.d,a=t.e,i=t.f;return"y"===n?o*e+i:r*e+a}function Fu(e){if(!e.nativeEvent||void 0===e.nativeEvent.identifier){var t=function(e){return"svg"===e.nodeName?e:e.parentNode?t(e.parentNode):e};return t(e.target)}}function Bu(e,t){if(e.nativeEvent&&void 0!==e.nativeEvent.identifier)return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var n=function(e){return e.getScreenCTM().inverse()}(t=t||Fu(e));return{x:Wu(e.clientX,n,"x"),y:Wu(e.clientY,n,"y")}}function Vu(e,t){var n=e.scale,r=e.horizontal;return t=t||{x:n.x.domain(),y:n.y.domain()},{x:r?[n.y(t.y[0]),n.y(t.y[1])]:[n.x(t.x[0]),n.x(t.x[1])],y:r?[n.x(t.x[0]),n.x(t.x[1])]:[n.y(t.y[0]),n.y(t.y[1])]}}function Yu(e,t,n,r){var o=e.polar,a=e.horizontal;if(o){var i=e.origin||{x:0,y:0},u=n-i.x,c=r-i.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),f=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:t.x.invert(f),y:t.y.invert(l)}}return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)}}function qu(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.scale,i=Yu(e,a,t,r),u=Yu(e,a,n,o),c=function(e,t){return[an([e,t]),on([e,t])]};return{x:c(i.x,u.x),y:c(i.y,u.y)}}var Gu=r(8266),Zu=r.n(Gu),Ku=r(1080);function Xu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var $u={withinBounds:function(e,t){var n=e.width,r=e.height,o=e.polar,a=e.origin,i=e.scale,u=Ae(e,"voronoiPadding"),c=t.x,l=t.y;if(o){var f=Math.pow(c-a.x,2)+Math.pow(l-a.y,2),s=Math.max.apply(Math,Xu(i.y.range()));return f<Math.pow(s,2)}return c>=u.left&&c<=n-u.right&&l>=u.top&&l<=r-u.bottom},getDatasets:function(e){var t={x:an(e.domain.x),y:an(e.domain.y)},n=D().Children.toArray(e.children),r=function(n,r,o){var a=o&&o.type&&o.type.continuous,i=o?o.props&&o.props.style:e.style;return n.map((function(n,o){var u=Oe(n),c=u.x,l=u.y,f=u.y0,s=(+c+ +u.x0)/2,p=(+l+ +f)/2;return P()({_voronoiX:"y"===e.voronoiDimension?t.x:s,_voronoiY:"x"===e.voronoiDimension?t.y:p,eventKey:o,childName:r,continuous:a,style:i},n)}))};if(e.data)return r(e.data);var o=function(e){var t=Uu(e);return Array.isArray(t)&&t.length>0?t:void 0};return _e(n,(function(t,n){var a=(t.props||{}).name||n,u=e.voronoiBlacklist||[],c=u.filter(Jt()),l=u.filter(_()).some((function(e){return e.test(a)}));if(!Hu(t)||p()(c,a)||l)return null;var f=(t.type&&i()(t.type.getData)?t.type.getData:o)(t.props);return f?r(f,a,t):null}),e)},findPoints:function(e,t){return e.filter((function(e){return t._voronoiX===e._voronoiX&&t._voronoiY===e._voronoiY}))},withinRadius:function(e,t,n){if(!e)return!1;if(!n)return!0;var r=t.x,o=t.y;return Math.pow(r-e[0],2)+Math.pow(o-e[1],2)<Math.pow(n,2)},getVoronoiPoints:function(e,t){var n=this.getDatasets(e),r=n.map((function(t){var n=je(e,t);return[n.x,n.y]})),o=Ku.Z.from(r).find(t.x,t.y);return{points:this.withinRadius(r[o],t,e.radius)?this.findPoints(n,n[o]):[],index:o}},getActiveMutations:function(e,t){var n=t.childName,r=t.continuous,o=e.activateData,a=e.activateLabels,i=e.labels;if(!o&&!a)return[];var u=o?["data"]:[],l=i&&!a?u:u.concat("labels");return c()(l)?[]:l.map((function(e){var o=!0===r&&"data"===e?"all":t.eventKey;return{childName:n,eventKey:o,target:e,mutation:function(){return{active:!0}}}}))},getInactiveMutations:function(e,t){var n=t.childName,r=t.continuous,o=e.activateData,a=e.activateLabels,i=e.labels;if(!o&&!a)return[];var u=o?["data"]:[],l=i&&!a?u:u.concat("labels");return c()(l)?[]:l.map((function(e){var o=r&&"data"===e?"all":t.eventKey;return{childName:n,eventKey:o,target:e,mutation:function(){return null}}}))},getParentMutation:function(e,t,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:e,mousePosition:t,parentSVG:n,vIndex:r}}}]},onActivated:function(e,t){i()(e.onActivated)&&e.onActivated(t,e)},onDeactivated:function(e,t){i()(e.onDeactivated)&&e.onDeactivated(t,e)},onMouseLeave:function(e,t){var n,r=this,o=t.activePoints||[];this.onDeactivated(t,o);var a=o.length?o.map((function(e){return r.getInactiveMutations(t,e)})):[];return(n=this.getParentMutation([])).concat.apply(n,Xu(a))},onMouseMove:function(e,t){var n=this,r=t.activePoints||[],o=t.parentSVG||Fu(e),a=Bu(e,o);if(!this.withinBounds(t,a)){var i;this.onDeactivated(t,r);var u=r.length?r.map((function(e){return n.getInactiveMutations(t,e)})):[];return(i=this.getParentMutation([],a,o)).concat.apply(i,Xu(u))}var c=this.getVoronoiPoints(t,a),l=c.points,f=void 0===l?[]:l,s=c.index,p=this.getParentMutation(f,a,o,s);if(r.length&&Zu()(f,r))return p;this.onActivated(t,f),this.onDeactivated(t,r);var d=f.length?f.map((function(e){return n.getActiveMutations(t,e)})):[],h=r.length?r.map((function(e){return n.getInactiveMutations(t,e)})):[];return p.concat.apply(p,Xu(h).concat(Xu(d)))}};const Qu={onMouseLeave:$u.onMouseLeave.bind($u),onMouseMove:tn()($u.onMouseMove.bind($u),32,{leading:!0,trailing:!1})};function Ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ec(e,t,n[t])}))}return e}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nc(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)}}function rc(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var oc=function(e){var t,n;return n=t=function(e){function t(){return tc(this,t),rc(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,r=[{key:"getDimension",value:function(e){var t=e.horizontal,n=e.voronoiDimension;return t&&n?"x"===n?"y":"x":n}},{key:"getPoint",value:function(e){return me()(e,["_x","_x1","_x0","_y","_y1","_y0"])}},{key:"getLabelPosition",value:function(e,t,n){var r=e.mousePosition,o=e.mouseFollowTooltips,a=this.getDimension(e),i=je(e,this.getPoint(n[0])),u=o?r:void 0;if(!a||n.length<2)return Ju({},i,{center:j()({},t.center,u)});var c="y"===a?r.x:i.x,l="x"===a?r.y:i.y;return u=o?r:{x:c,y:l},{x:c,y:l,center:j()({},t.center,u)}}},{key:"getStyle",value:function(e,t,n){var r=e.labels,o=e.labelComponent,a=e.theme,u=o.props||{},c=a&&a.voronoi&&a.voronoi.style?a.voronoi.style:{},l="flyout"===n?u.flyoutStyle:u.style;return t.reduce((function(e,t,o){var a=j()({},u,{datum:t,active:!0}),f=i()(r)?r(a):void 0,s=void 0!==f?"".concat(f).split("\n"):[],p=t.style&&t.style[n]||{},d=Array.isArray(l)?l[o]:l,h=ke(j()({},d,p,c[n]),a),y=s.length?s.map((function(){return h})):[h];return e.concat(y)}),[])}},{key:"getDefaultLabelProps",value:function(e,t){var n=e.voronoiDimension,r=e.horizontal,o=e.mouseFollowTooltips,a=this.getPoint(t[0]),i=n&&t.length>1,u=void 0!==a._y1?a._y1:a._y;return{orientation:o?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:i?0:void 0,constrainToVisibleArea:!(!i&&!o)||void 0}}},{key:"getLabelProps",value:function(e,t){var n=e.labels,r=e.scale,o=e.labelComponent,a=e.theme,u=e.width,c=e.height,l=o.props||{},f=t.reduce((function(e,t){var r=j()({},l,{datum:t,active:!0}),o=i()(n)?n(r):null;return null==o?e:e=e.concat("".concat(o).split("\n"))}),[]),s=t[0],p=s.childName,d=s.eventKey,h=(s.style,s.continuous,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(s,["childName","eventKey","style","continuous"])),y=e.name===p?p:"".concat(e.name,"-").concat(p),v=j()({key:"".concat(y,"-").concat(d,"-voronoi-tooltip"),id:"".concat(y,"-").concat(d,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:t,datum:h,scale:r,theme:a},l,{text:f,width:u,height:c,style:this.getStyle(e,t,"labels"),flyoutStyle:this.getStyle(e,t,"flyout")[0]},this.getDefaultLabelProps(e,t)),b=this.getLabelPosition(e,v,t);return j()({},b,v)}},{key:"getTooltip",value:function(e){var t=e.labels,n=e.activePoints,r=e.labelComponent;if(!t)return null;if(Array.isArray(n)&&n.length){var o=this.getLabelProps(e,n),a=o.text;return(Array.isArray(a)?a.filter(Boolean).length:a)?D().cloneElement(r,o):null}return null}},{key:"getChildren",value:function(e){return(t=D().Children.toArray(e.children),function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()).concat([this.getTooltip(e)]);var t}}],r&&nc(n.prototype,r),t}(e),Object.defineProperty(t,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryVoronoiContainer"}),Object.defineProperty(t,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Ju({},He.propTypes,{activateData:S().bool,activateLabels:S().bool,disable:S().bool,labelComponent:S().element,labels:S().func,mouseFollowTooltips:S().bool,onActivated:S().func,onDeactivated:S().func,radius:S().number,voronoiBlacklist:S().arrayOf(S().oneOfType([S().string,Y])),voronoiDimension:S().oneOf(["x","y"]),voronoiPadding:S().oneOfType([S().number,S().shape({top:S().number,bottom:S().number,left:S().number,right:S().number})])})}),Object.defineProperty(t,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Ju({},He.defaultProps,{activateData:!0,activateLabels:!0,labelComponent:D().createElement($t,null),voronoiPadding:5})}),Object.defineProperty(t,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseLeave:function(t,n){return e.disable?{}:Qu.onMouseLeave(t,n)},onTouchCancel:function(t,n){return e.disable?{}:Qu.onMouseLeave(t,n)},onMouseMove:function(t,n){return e.disable?{}:Qu.onMouseMove(t,n)},onTouchMove:function(t,n){return e.disable?{}:Qu.onMouseMove(t,n)}}},{target:"data",eventHandlers:e.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]}}),n};oc(He);var ac=r(1261),ic=r.n(ac),uc=(r(567),r(268),r(5453)),cc=r.n(uc),lc=r(7957),fc=r.n(lc),sc=r(5921),pc=r.n(sc);function dc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function hc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(e){return"max"===n?Math.max.apply(Math,dc(e)):Math.min.apply(Math,dc(e))},o="max"===n?-1/0:1/0,a=!1,i=cc()(e).reduce((function(e,n){var o=void 0!==n["_".concat(t,"0")]?n["_".concat(t,"0")]:n["_".concat(t)],i=void 0!==n["_".concat(t,"1")]?n["_".concat(t,"1")]:n["_".concat(t)],u=r([o,i]);return a=a||o instanceof Date||i instanceof Date,r([e,u])}),o);return a?new Date(i):i}function yc(e,t){return e=i()(e)?e:bc,t=i()(t)?t:vc,function(n,r){var o=function(e,t){var n=xc(e,t),r=mc(e,t);return Ve()(e.domain)&&e.domain[t]?e.domain[t]:Array.isArray(e.domain)?e.domain:void 0!==n&&void 0!==r?gc(n,r):void 0}(n,r);if(o)return t(o,n,r);var a=Iu(n,r),i=a?function(e,t,n){n=n||Iu(e,t);var r=e.polar,o=e.startAngle,a=void 0===o?0:o,i=e.endAngle,u=void 0===i?360:i;if(n){var c,l=xc(e,t),f=mc(e,t),s=(c=n,Array.isArray(c)&&c.some((function(e){return"string"==typeof e}))?Ru(e,t):[]),p=0===s.length?null:s.reduce((function(e,t,n){return e[t]=n+1,e}),{}),d=p?n.map((function(e){return p[e]})):n,h=gc(void 0!==l?l:an(d),void 0!==f?f:on(d));return r&&"x"===t&&360===Math.abs(a-u)?wc(h,d):h}}(n,r,a):e(n,r);return i?t(i,n,r):void 0}}function vc(e,t,n){return function(e,t,n){return"log"!==ku(t,n)?e:(o=(r=e)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(e,t,n){if(!t.domainPadding)return e;var r=xc(t,n),o=mc(t,n),a=function(e,t){var n=function(e){return Array.isArray(e)?{left:e[0],right:e[1]}:{left:e,right:e}};return Ve()(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}(t,n);if(!a.left&&!a.right)return e;var i=an(e),u=on(e),c=function(e,t){return t?"x"===e?"y":"x":e}(n,t.horizontal),l=Se(t,c),f=Math.abs(l[0]-l[1]),s=Math.max(f-a.left-a.right,1),p=Math.abs(u.valueOf()-i.valueOf())/s*f,d=p*a.left/f,h=p*a.right/f,y={min:i.valueOf()-d,max:u.valueOf()+h},v=Ve()(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,b=function(e,t){return"min"===t&&i>=0&&e<=0||"max"===t&&u<=0&&e>=0?0:e};if((i>=0&&y.min<=0||u<=0&&y.max>=0)&&!1!==v){var g={left:Math.abs(u-i)*a.left/f,right:Math.abs(u-i)*a.right/f},m={min:b(i.valueOf()-g.left,"min"),max:b(u.valueOf()+g.right,"max")},x={left:Math.abs(m.max-m.min)*a.left/f,right:Math.abs(m.max-m.min)*a.right/f};y={min:b(i.valueOf()-x.left,"min"),max:b(u.valueOf()+x.right,"max")}}var w={min:void 0!==r?r:y.min,max:void 0!==o?o:y.max};return i instanceof Date||u instanceof Date?gc(new Date(w.min),new Date(w.max)):gc(w.min,w.max)}(e,t,n),t,n)}function bc(e,t,n){n=n||Uu(e);var r=e.polar,o=e.startAngle,a=void 0===o?0:o,i=e.endAngle,u=void 0===i?360:i,c=xc(e,t),l=mc(e,t);if(n.length<1)return void 0!==c&&void 0!==l?gc(c,l):void 0;var f=gc(void 0!==c?c:hc(n,t,"min"),void 0!==l?l:hc(n,t,"max"));return r&&"x"===t&&360===Math.abs(a-u)?wc(f,function(e,t){return cc()(e).map((function(e){return e["_".concat(t)]&&void 0!==e["_".concat(t)][1]?e["_".concat(t)][1]:e["_".concat(t)]}))}(n,t)):f}function gc(e,t){var n,r,o,a;return+e==+t?(r=0===(n=t)?2*Math.pow(10,-10):Math.pow(10,-10),o=n instanceof Date?new Date(+n-1):+n-r,a=n instanceof Date?new Date(+n+1):+n+r,0===n?[0,a]:[o,a]):[e,t]}function mc(e,t){return Ve()(e.maxDomain)&&void 0!==e.maxDomain[t]?e.maxDomain[t]:"number"==typeof e.maxDomain||fc()(e.maxDomain)?e.maxDomain:void 0}function xc(e,t){return Ve()(e.minDomain)&&void 0!==e.minDomain[t]?e.minDomain[t]:"number"==typeof e.minDomain||fc()(e.minDomain)?e.minDomain:void 0}function wc(e,t){var n=pc()(t.sort((function(e,t){return e-t}))),r=n[1]-n[0];return[e[0],e[1]+r]}function Mc(e,t,n){var r=n?n.slice(0):D().Children.toArray(e.children),o=e.data?Uu(e):void 0,a=e.polar,u=e.startAngle,c=e.endAngle,l=e.categories,f=e.minDomain,s=e.maxDomain,d={horizontal:e.horizontal,polar:a,startAngle:u,endAngle:c,minDomain:f,maxDomain:s,categories:l},h=o?P()(d,{data:o}):d,y=_e(r,(function(e){var n=P()({},e.props,h);return function(e){var t=function(e){return e&&e.type?e.type.role:""},n=t(e);if("portal"===n){var r=D().Children.toArray(e.props.children);n=r.length?t(r[0]):""}return p()(["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],n)}(e)?e.type&&i()(e.type.getDomain)?e.props&&e.type.getDomain(n,t):function(e,t){return yc()(e,t)}(n,t):null}),e);return[0===y.length?0:an(y),0===y.length?1:on(y)]}function Oc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var jc={checkDomainEquality:function(e,t){var n=function(n){var r=e&&e[n],o=t&&t[n];return!r&&!o||!(!r||!o)&&+r[0]==+o[0]&&+r[1]==+o[1]};return n("x")&&n("y")},scale:function(e,t,n,r){var o=Oc(e,2),a=o[0],i=o[1],u=Math.abs(i-a),c=n.minimumZoom&&n.minimumZoom[r],l=this.getScaleFactor(t);if(c&&u<=c&&l<1)return e;var f=Oc(this.getDomain(n)[r],2),s=f[0],p=f[1],d=this.getScalePercent(t,n,r),h=l*a+d*(l*u),y=this.getMinimumDomain(h,n,r),v=Oc(this.getScaledDomain(e,l,d),2),b=v[0],g=v[1],m=[b>s&&b<p?b:s,g<p&&g>s?g:p],x=Math.abs(y[1]-y[0])>Math.abs(m[1]-m[0])?y:m;return rn([s,p])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(e,t,n){var r=Oc(e,2),o=r[0],a=r[1],i=Math.abs(a-o),u=i-i*t,c=+o+u*n,l=+a-u*(1-n);return[Math.min(c,l),Math.max(c,l)]},getMinimumDomain:function(e,t,n){var r=t.minimumZoom,o=Oc(this.getDomain(t)[n],2),a=o[0],i=o[1],u=Math.abs(a-i)/1e3,c=r&&r[n]||u,l=e-c/2,f=e+c/2;return[l>a&&l<i?l:a,f<i&&f>a?f:+a+c/2]},zoommingOut:function(e){return e.deltaY>0},getScaleFactor:function(e){var t=this.zoommingOut(e)?1:-1,n=Math.min(Math.abs(e.deltaY/300),.5);return Math.abs(1+t*n)},getScalePercent:function(e,t,n){var r=this.getDomain(t),o=Oc(r[n],2),a=o[0],i=o[1];return(this.getPosition(e,t,r)[n]-a)/Math.abs(i-a)},getPosition:function(e,t,n){var r=Bu(e),o=r.x,a=r.y,i={x:t.scale.x.domain(n.x),y:t.scale.y.domain(n.y)};return Yu(t,i,o,a)},pan:function(e,t,n){var r,o=Oc(e.map((function(e){return+e})),2),a=o[0],i=o[1],u=Oc(t.map((function(e){return+e})),2),c=u[0],l=u[1],f=a+n,s=i+n;return r=f>c&&s<l?[f,s]:f<c?[c,c+(i-a)]:s>l?[l-(i-a),l]:e,rn(e)||rn(t)?r.map((function(e){return new Date(e)})):r},getDomainScale:function(e,t,n){var r=Oc(Array.isArray(e)?e:e[n],2),o=r[0],a=r[1],i=t[n].range();return Math.abs(i[0]-i[1])/(a-o)},handleAnimation:function(e){var t=e.context.animationTimer,n=e.context.transitionTimer;return n.bypassAnimation(),t.bypassAnimation(),ic()((function(){t.resumeAnimation(),n.resumeAnimation()}),16)},getLastDomain:function(e,t){var n=e.zoomDomain,r=e.cachedZoomDomain,o=e.currentDomain,a=e.domain;return n&&!this.checkDomainEquality(n,r)?j()({},n,a):j()({},o||n||t,a)},getDomain:function(e){var t=e.originalDomain,n=e.domain,r=e.children,o=e.zoomDimension,a=k.Children.toArray(r),i={};return a.length&&(i=o?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},o,Mc(e,o,a)):{x:Mc(e,"x",a),y:Mc(e,"y",a)}),j()({},i,t,n)},onMouseDown:function(e,t){if(e.preventDefault(),t.allowPan){var n=t.parentSVG||Fu(e),r=Bu(e,n),o=r.x,a=r.y;return[{target:"parent",mutation:function(){return{startX:o,startY:a,panning:!0,parentSVG:n,parentControlledProps:["domain"]}}}]}},onMouseUp:function(e,t){if(t.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(e,t){if(t.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(e,t,n,r){if(t.panning&&t.allowPan){var o=t.scale,a=t.startX,u=t.startY,c=t.onZoomDomainChange,l=t.zoomDomain,f=t.zoomDimension,s=t.horizontal,p=t.parentSVG||Fu(e),d=Bu(e,p),h=d.x,y=d.y,v=this.getDomain(t),b=this.getLastDomain(t,v),g=s?a-h:y-u,m=(s?y-u:a-h)/this.getDomainScale(b,o,"x"),x=g/this.getDomainScale(b,o,"y"),w={x:"y"===f?v.x:this.pan(b.x,v.x,m),y:"x"===f?v.y:this.pan(b.y,v.y,x)},M=this.handleAnimation(r),O={parentControlledProps:["domain"],startX:h,startY:y,parentSVG:p,currentDomain:w,originalDomain:v,cachedZoomDomain:l,zoomActive:!this.checkDomainEquality(v,b)};return i()(c)&&c(w,j()({},O,t)),[{target:"parent",callback:M,mutation:function(){return O}}]}},onWheel:function(e,t,n,r){if(t.allowZoom){var o=t.onZoomDomainChange,a=t.zoomDimension,u=t.zoomDomain,c=this.getDomain(t),l=this.getLastDomain(t,c),f=l.x,s=l.y,p={x:"y"===a?l.x:this.scale(f,e,t,"x"),y:"x"===a?l.y:this.scale(s,e,t,"y")},d=this.handleAnimation(r),h={currentDomain:p,originalDomain:c,cachedZoomDomain:u,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(e)||t.zoomActive&&!this.checkDomainEquality(c,l)};return i()(o)&&o(p,j()({},h,t)),[{target:"parent",callback:d,mutation:function(){return h}}]}}};const Ac={checkDomainEquality:jc.checkDomainEquality.bind(jc),onMouseDown:jc.onMouseDown.bind(jc),onMouseUp:jc.onMouseUp.bind(jc),onMouseLeave:jc.onMouseLeave.bind(jc),onMouseMove:tn()(jc.onMouseMove.bind(jc),16,{leading:!0,trailing:!1}),onWheel:tn()(jc.onWheel.bind(jc),16,{leading:!0,trailing:!1})};var Pc=function(e){return D().createElement("defs",null,D().createElement("clipPath",{id:e.clipId},e.children))};Pc.propTypes={children:S().oneOfType([S().arrayOf(S().node),S().node]),clipId:S().oneOfType([S().number,S().string])};const kc=Pc;function Dc(){return Dc=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},Dc.apply(this,arguments)}function Tc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cc(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)}}var _c=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).clipId=x()(e)&&void 0!==e.clipId?e.clipId:M()("victory-clip-"),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,r=[{key:"calculateAttributes",value:function(e){var t=e.polar,n=e.origin,r=e.clipWidth,o=void 0===r?0:r,a=e.clipHeight,i=void 0===a?0:a,u=e.translateX,c=void 0===u?0:u,l=e.translateY,f=void 0===l?0:l,s=Ae({padding:e.clipPadding}),p=e.radius||Te(e);return{x:(t?n.x:c)-s.left,y:(t?n.y:f)-s.top,width:Math.max((t?p:o)+s.left+s.right,0),height:Math.max((t?p:i)+s.top+s.bottom,0)}}},{key:"renderClippedGroup",value:function(e,t){var n=e.style,r=e.events,o=e.transform,a=e.children,i=e.className,u=e.groupComponent,c=e.tabIndex,l=this.renderClipComponent(e,t),f=P()({className:i,style:n,transform:o,key:"clipped-group-".concat(t),clipPath:"url(#".concat(t,")")},r);return D().cloneElement(u,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Sc(e,t,n[t])}))}return e}({},f,{"aria-label":e["aria-label"],tabIndex:c}),[l].concat(Tc(D().Children.toArray(a))))}},{key:"renderGroup",value:function(e){var t=e.style,n=e.events,r=e.transform,o=e.children,a=e.className,i=e.groupComponent,u=e.tabIndex;return D().cloneElement(i,P()({className:a,style:t,transform:r,"aria-label":e["aria-label"],tabIndex:u},n),o)}},{key:"renderClipComponent",value:function(e,t){var n,r=e.polar,o=e.origin,a=e.clipWidth,i=void 0===a?0:a,u=e.clipHeight,c=void 0===u?0:u,l=e.translateX,f=void 0===l?0:l,s=e.translateY,p=void 0===s?0:s,d=e.circleComponent,h=e.rectComponent,y=e.clipPathComponent,v=Ae({padding:e.clipPadding}),b=v.top,g=v.bottom,m=v.left,x=v.right;if(r){var w=e.radius||Te(e),M={r:Math.max(w+m+x,w+b+g,0),cx:o.x-m,cy:o.y-b};n=D().cloneElement(d,M)}else{var O={x:f-m,y:p-b,width:Math.max(i+m+x,0),height:Math.max(c+b+g,0)};n=D().cloneElement(h,O)}return D().cloneElement(y,P()({key:"clip-path-".concat(t)},e,{clipId:t}),n)}},{key:"getClipValue",value:function(e,t){var n={x:e.clipWidth,y:e.clipHeight};if(void 0!==n[t])return n[t];var r=Se(e,t);return r&&Math.abs(r[0]-r[1])||void 0}},{key:"getTranslateValue",value:function(e,t){var n={x:e.translateX,y:e.translateY};if(void 0!==n[t])return n[t];var r=Se(e,t);return r?Math.min.apply(Math,Tc(r)):void 0}},{key:"render",value:function(){var e=this.getClipValue(this.props,"y"),t=this.getClipValue(this.props,"x");if(void 0===t||void 0===e)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=j()({},this.props,{clipHeight:e,clipWidth:t,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}],r&&Cc(n.prototype,r),t}(D().Component);function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Nc(e,t,n[t])}))}return e}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ic(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)}}function Uc(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}Object.defineProperty(_c,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryClipContainer"}),Object.defineProperty(_c,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(_c,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-label":S().string,children:S().oneOfType([S().arrayOf(S().node),S().node]),circleComponent:S().element,className:S().string,clipHeight:W,clipId:S().oneOfType([S().number,S().string]),clipPadding:S().shape({top:S().number,bottom:S().number,left:S().number,right:S().number}),clipPathComponent:S().element,clipWidth:W,events:S().object,groupComponent:S().element,origin:S().shape({x:W,y:W}),polar:S().bool,radius:W,style:S().object,tabIndex:S().number,transform:S().string,translateX:S().number,translateY:S().number}}),Object.defineProperty(_c,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{circleComponent:D().createElement((function(e){var t=e.desc,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["desc"]);return t?D().createElement("circle",Dc({vectorEffect:"non-scaling-stroke"},n),D().createElement("desc",null,t)):D().createElement("circle",Dc({vectorEffect:"non-scaling-stroke"},n))}),null),rectComponent:D().createElement(At,null),clipPathComponent:D().createElement(kc,null),groupComponent:D().createElement("g",null)}});var Rc=function(e){var t,n;return n=t=function(e){function t(){return Lc(this,t),Uc(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,r=[{key:"clipDataComponents",value:function(e,t){var n=t.scale,r=t.clipContainerComponent,o=t.polar,a=t.origin,i=t.horizontal,u=i?n.y.range():n.x.range(),c=i?n.x.range():n.y.range(),l=Math.abs(u[0]-u[1]),f=Math.abs(c[0]-c[1]),s=Math.max.apply(Math,zc(c)),p=D().cloneElement(r,Ec({clipWidth:l,clipHeight:f,translateX:Math.min.apply(Math,zc(u)),translateY:Math.min.apply(Math,zc(c)),polar:o,origin:o?a:void 0,radius:o?s:void 0},r.props));return D().Children.toArray(e).map((function(e){return Hu(e)?D().cloneElement(e,{groupComponent:p}):e}))}},{key:"modifyPolarDomain",value:function(e,t){return{x:t.x,y:[0,e.y[1]]}}},{key:"downsampleZoomData",value:function(e,t,n){var r=e.downsample,o=function(e){var n=e.data,r=e.x,o=e.y,a=t.type&&i()(t.type.getData)?t.type.getData:function(){};return!Array.isArray(n)||r||o?a(e):n}(t.props);if(r&&n&&o){var a=!0===r?150:r,u=e.zoomDimension||"x",c=o.findIndex((function(e){return e[u]>=n[u][0]})),l=o.findIndex((function(e){return e[u]>n[u][1]}));return 0!==c&&(c-=1),-1!==l&&(l+=1),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=_u(e);if(r>t){var o=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((function(e,t){return(t+n)%o==0}))}return e}(o.slice(c,l),a,c)}}},{key:"modifyChildren",value:function(e){var t=this;return D().Children.toArray(e.children).map((function(n){var r,o=n.type&&n.type.role,a=Hu(n),i=e.currentDomain,u=e.zoomActive,c=e.allowZoom,l=j()({},e.originalDomain,e.domain),f=j()({},e.zoomDomain,e.domain),s=j()({},e.cachedZoomDomain,e.domain);r=Ac.checkDomainEquality(f,s)?c&&!u?n.props.domain:j()({},i,l):f;var p=e.polar?t.modifyPolarDomain(r,l):r;p&&e.zoomDimension&&(p=Ec({},f,Nc({},e.zoomDimension,p[e.zoomDimension])));var d=a&&"stack"!==o?{domain:p,data:t.downsampleZoomData(e,n,p)}:{domain:p};return D().cloneElement(n,j()(d,n.props))}))}},{key:"getChildren",value:function(e){var t=this.modifyChildren(e);return this.clipDataComponents(t,e)}}],r&&Ic(n.prototype,r),t}(e),Object.defineProperty(t,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryZoomContainer"}),Object.defineProperty(t,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Ec({},He.propTypes,{allowPan:S().bool,allowZoom:S().bool,clipContainerComponent:S().element.isRequired,disable:S().bool,downsample:S().oneOfType([S().bool,S().number]),minimumZoom:S().shape({x:S().number,y:S().number}),onZoomDomainChange:S().func,zoomDimension:S().oneOf(["x","y"]),zoomDomain:S().shape({x:B,y:B})})}),Object.defineProperty(t,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Ec({},He.defaultProps,{clipContainerComponent:D().createElement(_c,null),allowPan:!0,allowZoom:!0,zoomActive:!1})}),Object.defineProperty(t,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:Ec({onMouseDown:function(t,n){return e.disable?{}:Ac.onMouseDown(t,n)},onTouchStart:function(t,n){return e.disable?{}:Ac.onMouseDown(t,n)},onMouseUp:function(t,n){return e.disable?{}:Ac.onMouseUp(t,n)},onTouchEnd:function(t,n){return e.disable?{}:Ac.onMouseUp(t,n)},onMouseLeave:function(t,n){return e.disable?{}:Ac.onMouseLeave(t,n)},onTouchCancel:function(t,n){return e.disable?{}:Ac.onMouseLeave(t,n)},onMouseMove:function(t,n,r,o){return e.disable?{}:Ac.onMouseMove(t,n,r,o)},onTouchMove:function(t,n,r,o){return e.disable?{}:(t.preventDefault(),Ac.onMouseMove(t,n,r,o))}},e.disable||!e.allowZoom?{}:{onWheel:Ac.onWheel})}]}}),n};function Hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Rc(He);var Wc={getDimension:function(e){var t=e.horizontal,n=e.selectionDimension;return t&&n?"x"===n?"y":"x":n},getDatasets:function(e){return e.data?[{data:e.data}]:_e(D().Children.toArray(e.children),(function(t,n,r){var o=e.selectionBlacklist||[];if(!Hu(t)||p()(o,n))return null;if(t.type&&i()(t.type.getData)){var a=(t=r?D().cloneElement(t,r.props):t).props&&t.type.getData(t.props);return a?{childName:n,data:a}:null}var u,c=(u=Uu(t.props),Array.isArray(u)&&u.length>0?u:void 0);return c?{childName:n,data:c}:null}),e)},filterDatasets:function(e,t,n){var r=this,o=t.reduce((function(t,o){var a=r.getSelectedData(e,o.data,n);return a?t.concat({childName:o.childName,eventKey:a.eventKey,data:a.data}):t}),[]);return o.length?o:null},getSelectedData:function(e,t){for(var n,r=e.x1,o=e.y1,a=e.x2,i=e.y2,u=[],c=[],l=0,f=0,s=t.length;f<s;f++){var p=t[f];void 0,(n=je(e,p)).x>=Math.min(r,a)&&n.x<=Math.max(r,a)&&n.y>=Math.min(o,i)&&n.y<=Math.max(o,i)&&(c[l]=p,u[l]=void 0===p.eventKey?f:p.eventKey,l++)}return l>0?{eventKey:u,data:c}:null},onMouseDown:function(e,t){e.preventDefault();var n=t.activateSelectedData,r=t.allowSelection,o=t.polar,a=t.selectedData;if(!r)return{};var u=this.getDimension(t),c=t.parentSVG||Fu(e),l=Bu(e,c),f=l.x,s=l.y,p={x1:o||"y"!==u?f:Vu(t).x[0],y1:o||"x"!==u?s:Vu(t).y[0],select:!0,x2:o||"y"!==u?f:Vu(t).x[1],y2:o||"x"!==u?s:Vu(t).y[1],parentSVG:c};a&&i()(t.onSelectionCleared)&&t.onSelectionCleared(j()({},p,t));var d,h=[{target:"parent",mutation:function(){return p}}],y=a&&n?a.map((function(e){return{childName:e.childName,eventKey:e.eventKey,target:"data",mutation:function(){return null}}})):[];return h.concat.apply(h,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(d=y)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(d)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())},onMouseMove:function(e,t){var n=t.allowSelection,r=t.select,o=t.polar,a=this.getDimension(t);if(n&&r){var i=t.parentSVG||Fu(e),u=Bu(e,i),c=u.x,l=u.y,f=o||"y"!==a?c:Vu(t).x[1],s=o||"x"!==a?l:Vu(t).y[1];return{target:"parent",mutation:function(){return{x2:f,y2:s,parentSVG:i}}}}return null},onMouseUp:function(e,t){var n=t.activateSelectedData,r=t.allowSelection,o=t.x2,a=t.y2;if(!r)return null;if(!o||!a)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var u=this.getDatasets(t),c=qu(t),l=this.filterDatasets(t,u,c),f={selectedData:l,datasets:u,select:!1,x1:null,x2:null,y1:null,y2:null},s=l&&i()(t.onSelection)?t.onSelection(l,c,j()({},f,t)):{},p=[{target:"parent",mutation:function(){return f}}],d=l&&n?l.map((function(e){return{childName:e.childName,eventKey:e.eventKey,target:"data",mutation:function(){return P()({active:!0},s)}}})):[];return p.concat(d)}};const Fc=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hc(e,t,n[t])}))}return e}({},Wc,{onMouseDown:Wc.onMouseDown.bind(Wc),onMouseUp:Wc.onMouseUp.bind(Wc),onMouseMove:tn()(Wc.onMouseMove.bind(Wc),16,{leading:!0,trailing:!1})});function Bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vc(e,t,n[t])}))}return e}function Vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qc(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)}}function Gc(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Zc=function(e){var t,n;return n=t=function(e){function t(){return Yc(this,t),Gc(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,(r=[{key:"getRect",value:function(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.selectionStyle,i=e.selectionComponent,u=e.name,c=Math.abs(n-t)||1,l=Math.abs(o-r)||1,f=Math.min(t,n),s=Math.min(r,o);return o&&n&&t&&r?D().cloneElement(i,{key:"".concat(u,"-selection"),x:f,y:s,width:c,height:l,style:a}):null}},{key:"getChildren",value:function(e){return(t=D().Children.toArray(e.children),function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()).concat([this.getRect(e)]);var t}}])&&qc(n.prototype,r),t}(e),Object.defineProperty(t,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictorySelectionContainer"}),Object.defineProperty(t,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Bc({},He.propTypes,{activateSelectedData:S().bool,allowSelection:S().bool,disable:S().bool,onSelection:S().func,onSelectionCleared:S().func,selectionBlacklist:S().arrayOf(S().string),selectionComponent:S().element,selectionDimension:S().oneOf(["x","y"]),selectionStyle:S().object})}),Object.defineProperty(t,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Bc({},He.defaultProps,{activateSelectedData:!0,allowSelection:!0,selectionComponent:D().createElement(At,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}})}),Object.defineProperty(t,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseDown:function(t,n){return e.disable?{}:Fc.onMouseDown(t,n)},onTouchStart:function(t,n){return e.disable?{}:Fc.onMouseDown(t,n)},onMouseMove:function(t,n){return e.disable?{}:Fc.onMouseMove(t,n)},onTouchMove:function(t,n){return e.disable?{}:Fc.onMouseMove(t,n)},onMouseUp:function(t,n){return e.disable?{}:Fc.onMouseUp(t,n)},onTouchEnd:function(t,n){return e.disable?{}:Fc.onMouseUp(t,n)}}}]}}),n};Zc(He);var Kc=r(3792),Xc=r.n(Kc);function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qc(e,t,n[t])}))}return e}function Qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var el={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return t&&n?"x"===n?"y":"x":n},withinBounds:function(e,t,n){var r=Xc()(t,Number),o=r.x1,a=r.x2,i=r.y1,u=r.y2,c=Xc()(e,Number),l=c.x,f=c.y;return l+(n=n?n/2:0)>=Math.min(o,a)&&l-n<=Math.max(o,a)&&f+n>=Math.min(i,u)&&f-n<=Math.max(i,u)},getDomainBox:function(e,t,n){var r=this.getDimension(e);t=j()({},t,e.domain),n=j()({},n,t);var o=Vu(e,t),a=Vu(e,n);return{x1:"y"!==r?Math.min.apply(Math,Jc(a.x)):Math.min.apply(Math,Jc(o.x)),x2:"y"!==r?Math.max.apply(Math,Jc(a.x)):Math.max.apply(Math,Jc(o.x)),y1:"x"!==r?Math.min.apply(Math,Jc(a.y)):Math.min.apply(Math,Jc(o.y)),y2:"x"!==r?Math.max.apply(Math,Jc(a.y)):Math.max.apply(Math,Jc(o.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,o=t.x2,a=t.y1,i=t.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(a,i),f=Math.max(a,i),s=e.handleWidth/2;return{left:"y"!==n&&{x1:u-s,x2:u+s,y1:a,y2:i},right:"y"!==n&&{x1:c-s,x2:c+s,y1:a,y2:i},top:"x"!==n&&{x1:r,x2:o,y1:l-s,y2:l+s},bottom:"x"!==n&&{x1:r,x2:o,y1:f-s,y2:f+s}}},getActiveHandles:function(e,t,n){var r=this,o=this.getHandles(t,n),a=["top","bottom","left","right"].reduce((function(t,n){return o[n]&&r.withinBounds(e,o[n])?t.concat(n):t}),[]);return a.length&&a},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,o=e.x2,a=e.y2,i={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:a},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:a},top:{y1:Math.max(r,a),y2:Math.min(r,a),x1:n,x2:o},bottom:{y1:Math.min(r,a),y2:Math.max(r,a),x1:n,x2:o}};return t.reduce((function(e,t){return P()(e,i[t])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,o=e.fullDomain,a=e.scale,i=e.horizontal,u=e.allowResize||e.defaultBrushArea?e.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return t;if("move"===u){var c=this.getDomainBox(e,o,t),l=e.parentSVG||Fu(n),f=this.panBox($c({},e,c,{brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),Bu(n,l)),s=e.fullDomainBox||this.getDomainBox(e,o);return qu($c({},this.constrainBox(f,s),{scale:a,horizontal:i}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,o=e.y,a=t.x1,i=t.x2,u=t.y1,c=t.y2;return{x1:"y"!==n?r:a,y1:"x"!==n?o:u,x2:"y"!==n?r:i,y2:"x"!==n?o:c}},panBox:function(e,t){var n=e.domain,r=e.startX,o=e.startY,a=this.getDimension(e),i=j()({},e.brushDomain,n),u=j()({},e.fullDomain,n),c=e.x1?e:this.getDomainBox(e,u,i),l=c.x1,f=c.x2,s=c.y1,p=c.y2,d=t.x,h=t.y,y=r?r-d:0,v=o?o-h:0;return{x1:"y"!==a?Math.min(l,f)-y:Math.min(l,f),x2:"y"!==a?Math.max(l,f)-y:Math.max(l,f),y1:"x"!==a?Math.min(s,p)-v:Math.min(s,p),y2:"x"!==a?Math.max(s,p)-v:Math.max(s,p)}},constrainBox:function(e,t){var n=Xc()(t,Number),r=n.x1,o=n.y1,a=n.x2,i=n.y2;return{x1:e.x2>a?a-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>i?i-Math.abs(e.y2-e.y1):Math.max(e.y1,o),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,a),y2:e.y1<o?o+Math.abs(e.y2-e.y1):Math.min(e.y2,i)}},constrainPoint:function(e,t){var n=Xc()(t,Number),r=n.x1,o=n.y1,a=n.x2,i=n.y2;return{x:Math.min(Math.max(e.x,r),a),y:Math.min(Math.max(e.y,o),i)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.mouseMoveThreshold,i=this.getDimension(e),u=Math.abs(t-n)>=a,c=Math.abs(r-o)>=a;switch(i){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(e,t){var n=this;e.preventDefault();var r=t.handleWidth,o=t.cachedBrushDomain,a=t.domain,i=t.allowResize,u=t.allowDrag,c=t.allowDraw,l=this.getDimension(t),f=i||t.defaultBrushArea?t.defaultBrushArea:"move";if(!i&&!u)return{};var s=t.fullDomainBox||this.getDomainBox(t,a),p=t.parentSVG||Fu(e),d=Bu(e,p),h=d.x,y=d.y;if(!this.withinBounds({x:h,y},s,r))return{};var v=j()({},t.brushDomain,a),b=Zu()(v,o)?t.currentDomain||v||a:v||a,g=this.getDomainBox(t,a,b),m=i&&this.getActiveHandles({x:h,y},t,g);return m?[{target:"parent",mutation:function(){return $c({isSelecting:!0,domainBox:g,fullDomainBox:s,cachedBrushDomain:v,currentDomain:b,parentSVG:p},n.getResizeMutation(g,m))}}]:this.withinBounds({x:h,y},g)&&!Zu()(a,b)?[{target:"parent",mutation:function(){return $c({isPanning:u,startX:h,startY:y,domainBox:g,fullDomainBox:s,currentDomain:b,cachedBrushDomain:v,parentSVG:p},g)}}]:c?[{target:"parent",mutation:function(){return $c({isSelecting:i||"move"===f,domainBox:g,fullDomainBox:s,parentSVG:p,cachedBrushDomain:v,cachedCurrentDomain:b,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:h,y},g,l))}}]:{}},onGlobalMouseMove:function(e,t){var n=t.scale,r=t.isPanning,o=t.isSelecting,a=t.fullDomainBox,u=t.onBrushDomainChange,c=t.allowResize,l=t.allowDrag,f=t.horizontal,s=t.mouseMoveThreshold,p=t.parentSVG,d=this.getDimension(t),h=Bu(e,p),y=h.x,v=h.y;if(!c&&!l||s>0&&!this.hasMoved($c({},t,{x2:y,y2:v})))return{};if(l&&r){var b=t.startX,g=t.startY,m=this.panBox(t,{x:y,y:v}),x=this.constrainBox(m,a),w=qu($c({},x,{scale:n,horizontal:f})),M=$c({currentDomain:w,parentSVG:p,startX:m.x2>=a.x2||m.x1<=a.x1?b:y,startY:m.y2>=a.y2||m.y1<=a.y1?g:v},x);return i()(u)&&u(w,j()({},M,t)),[{target:"parent",mutation:function(){return M}}]}if(c&&o){var O=this.constrainPoint({x:"y"!==d?y:t.x2,y:"x"!==d?v:t.y2},a),A=O.x,P=O.y,k=qu({x2:A,y2:P,x1:t.x1,y1:t.y1,scale:n,horizontal:f}),D={x2:A,y2:P,currentDomain:k,parentSVG:p};return i()(u)&&u(k,j()({},D,t)),[{target:"parent",mutation:function(){return D}}]}return{}},onGlobalMouseUp:function(e,t){if(!t.isPanning&&!t.isSelecting)return{};var n=t.x1,r=t.y1,o=t.x2,a=t.y2,u=t.isPanning,c=t.isSelecting,l=t.onBrushDomainChange,f=t.onBrushDomainChangeEnd,s=t.onBrushCleared,p=t.currentDomain,d=t.allowResize,h=t.allowDrag,y=d||t.defaultBrushArea?t.defaultBrushArea:"move",v={isPanning:!1,isSelecting:!1};if(!d&&(void 0===y||"none"===y)||n!==o&&r!==a)(h&&u||d&&c)&&i()(f)&&f(p,j()({},v,t));else{var b=t.cachedCurrentDomain||p,g=this.getDefaultBrushArea(t,b,e);v.currentDomain=g,i()(l)&&l(g,j()({},v,t)),i()(f)&&f(g,j()({},v,t)),i()(s)&&s(g,j()({},v,t))}return[{target:"parent",mutation:function(){return v}}]}};const tl=$c({},el,{onMouseDown:el.onMouseDown.bind(el),onGlobalMouseUp:el.onGlobalMouseUp.bind(el),onGlobalMouseMove:tn()(el.onGlobalMouseMove.bind(el),16,{leading:!0,trailing:!1})});function nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rl(e,t,n[t])}))}return e}function rl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function al(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function il(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)}}function ul(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var cl=function(e){var t,n;return n=t=function(e){function t(){return al(this,t),ul(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,r=[{key:"getSelectBox",value:function(e,t){var n=t.x,r=t.y,o=e.brushStyle,a=e.brushComponent,i=e.name,u=a.props&&a.props.style,c=e.allowDrag||e.allowResize?"move":"auto";return n[0]!==n[1]&&r[0]!==r[1]?D().cloneElement(a,{key:"".concat(i,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(n[0],n[1]),y:Math.min(r[0],r[1]),cursor:c,style:j()({},u,o)}):null}},{key:"getCursorPointers",value:function(e){var t={yProps:"ns-resize",xProps:"ew-resize"};return!e.allowResize&&e.allowDrag?(t.xProps="move",t.yProps="move"):e.allowResize||e.allowDrag||(t.xProps="auto",t.yProps="auto"),t}},{key:"getHandles",value:function(e,t){var n=e.handleWidth,r=e.handleStyle,o=e.handleComponent,a=e.name,i=tl.getDomainBox(e,t),u=i.x1,c=i.x2,l=i.y1,f=i.y2,s=tl.getHandles(e,i),p=s.top,d=s.bottom,h=s.left,y=s.right,v=Math.abs(c-u)||1,b=Math.abs(f-l)||1,g=o.props&&o.props.style||{},m=j()({},g,r),x=this.getCursorPointers(e),w={style:m,width:v,height:n,cursor:x.yProps},M={style:m,width:n,height:b,cursor:x.xProps},O={top:p&&P()({x:p.x1,y:p.y1},w),bottom:d&&P()({x:d.x1,y:d.y1},w),left:h&&P()({y:h.y1,x:h.x1},M),right:y&&P()({y:y.y1,x:y.x1},M)},A=["top","bottom","left","right"].reduce((function(e,t){return O[t]?e.concat(D().cloneElement(o,P()({key:"".concat(a,"-handle-").concat(t)},O[t]))):e}),[]);return A.length?A:null}},{key:"getRect",value:function(e){var t=e.currentDomain,n=e.cachedBrushDomain,r=j()({},e.brushDomain,e.domain),o=Zu()(r,n)?j()({},t,r):r,a=Vu(e,o),i=this.getSelectBox(e,a);return i?[i,this.getHandles(e,o)]:[]}},{key:"getChildren",value:function(e){return ol(D().Children.toArray(e.children)).concat(ol(this.getRect(e)))}}],r&&il(n.prototype,r),t}(e),Object.defineProperty(t,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryBrushContainer"}),Object.defineProperty(t,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:nl({},He.propTypes,{allowDrag:S().bool,allowDraw:S().bool,allowResize:S().bool,brushComponent:S().element,brushDimension:S().oneOf(["x","y"]),brushDomain:S().shape({x:S().array,y:S().array}),brushStyle:S().object,defaultBrushArea:S().oneOf(["all","disable","none","move"]),disable:S().bool,handleComponent:S().element,handleStyle:S().object,handleWidth:S().number,onBrushCleared:S().func,onBrushDomainChange:S().func,onBrushDomainChangeEnd:S().func})}),Object.defineProperty(t,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:nl({},He.defaultProps,{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:D().createElement(At,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:D().createElement(At,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})}),Object.defineProperty(t,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseDown:function(t,n){return e.disable?{}:tl.onMouseDown(t,n)},onTouchStart:function(t,n){return e.disable?{}:tl.onMouseDown(t,n)},onGlobalMouseMove:function(t,n){return e.disable||!n.isPanning&&!n.isSelecting?{}:tl.onGlobalMouseMove(t,n)},onGlobalTouchMove:function(t,n){return e.disable||!n.isPanning&&!n.isSelecting?{}:tl.onGlobalMouseMove(t,n)},onGlobalMouseUp:function(t,n){return e.disable?{}:tl.onGlobalMouseUp(t,n)},onGlobalTouchEnd:function(t,n){return e.disable?{}:tl.onGlobalMouseUp(t,n)},onGlobalTouchCancel:function(t,n){return e.disable?{}:tl.onGlobalMouseUp(t,n)}}}]}}),n};function ll(){return ll=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},ll.apply(this,arguments)}cl(He);function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sl(e,t,n[t])}))}return e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pl=function(e){return e=function(e){var t=Pe(e.ariaLabel,e),n=Pe(e.desc,e),r=Pe(e.id,e),o=ke(P()({stroke:"black"},e.style),e),a=Pe(e.tabIndex,e);return P()({},e,{ariaLabel:t,desc:n,id:r,style:o,tabIndex:a})}(e),D().cloneElement(e.lineComponent,fl({},e.events,{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};pl.propTypes=fl({},Bt,{datum:S().any,lineComponent:S().element,x1:S().number,x2:S().number,y1:S().number,y2:S().number}),pl.defaultProps={lineComponent:D().createElement((function(e){var t=e.desc,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["desc"]);return t?D().createElement("line",ll({vectorEffect:"non-scaling-stroke"},n),D().createElement("desc",null,t)):D().createElement("line",ll({vectorEffect:"non-scaling-stroke"},n))}),null),role:"presentation",shapeRendering:"auto"};const dl=pl;function hl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yl={getDimension:function(e){var t=e.horizontal,n=e.cursorDimension;return t&&n?"x"===n?"y":"x":n},withinBounds:function(e,t){var n=Xc()(t,Number),r=n.x1,o=n.x2,a=n.y1,i=n.y2,u=Xc()(e,Number),c=u.x,l=u.y;return c>=Math.min(r,o)&&c<=Math.max(r,o)&&l>=Math.min(a,i)&&l<=Math.max(a,i)},onMouseMove:function(e,t){var n=t.onCursorChange,r=t.domain,o=this.getDimension(t),a=t.parentSVG||Fu(e),u=Bu(e,a),c=Yu(t,t.scale,u.x,u.y),l=this.withinBounds(c,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]});return l||(c=null),i()(n)&&(l?n(o?c[o]:c,t):c!==t.cursorValue&&n(t.defaultCursorValue||null,t)),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:c,parentSVG:a}}}]},onTouchEnd:function(e,t){var n=t.onCursorChange;return i()(t.onCursorChange)&&n(null,t),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}};const vl=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hl(e,t,n[t])}))}return e}({},yl,{onMouseMove:tn()(yl.onMouseMove.bind(yl),16,{leading:!0,trailing:!1}),onMouseLeave:yl.onMouseMove.bind(yl),onTouchEnd:yl.onTouchEnd.bind(yl)});function bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ml(e,t,n[t])}))}return e}function gl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ml(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wl(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)}}function Ml(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Ol=function(e){var t,n;return n=t=function(e){function t(){return xl(this,t),Ml(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,r=[{key:"getCursorPosition",value:function(e){var t=e.cursorValue,n=e.defaultCursorValue,r=e.domain,o=e.cursorDimension;return t||("number"==typeof n?ml({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o,n):n)}},{key:"getCursorLabelOffset",value:function(e){var t=e.cursorLabelOffset;return"number"==typeof t?{x:t,y:t}:t}},{key:"getPadding",value:function(e){return void 0===e.padding?Ae(e.children.find((function(e){return x()(e.props)&&void 0!==e.props.padding})).props):Ae(e)}},{key:"getCursorElements",value:function(e){var t=e.scale,n=e.cursorLabelComponent,r=e.cursorLabel,o=e.cursorComponent,a=e.width,i=e.height,u=e.name,c=e.horizontal,l=e.theme,f=vl.getDimension(e),s=this.getCursorPosition(e),p=this.getCursorLabelOffset(e);if(!s)return[];var d,h=[],y=this.getPadding(e),v={x:c?t.y(s.y):t.x(s.x),y:c?t.x(s.x):t.y(s.y)};if(r){var b=j()({active:!0},n.props,{x:v.x+p.x,y:v.y+p.y,datum:s,active:!0,key:"".concat(u,"-cursor-label")});if("tooltip"===((d=n)&&d.type&&d.type.role)){var g=l&&l.tooltip||{};b=j()({},b,g)}h.push(D().cloneElement(n,j()({},b,{text:Pe(r,b)})))}var m=P()({stroke:"black"},o.props.style);return"x"!==f&&void 0!==f||h.push(D().cloneElement(o,{key:"".concat(u,"-x-cursor"),x1:v.x,x2:v.x,y1:y.top,y2:i-y.bottom,style:m})),"y"!==f&&void 0!==f||h.push(D().cloneElement(o,{key:"".concat(u,"-y-cursor"),x1:y.left,x2:a-y.right,y1:v.y,y2:v.y,style:m})),h}},{key:"getChildren",value:function(e){return gl(D().Children.toArray(e.children)).concat(gl(this.getCursorElements(e)))}}],r&&wl(n.prototype,r),t}(e),Object.defineProperty(t,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryCursorContainer"}),Object.defineProperty(t,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:bl({},He.propTypes,{cursorDimension:S().oneOf(["x","y"]),cursorLabel:S().func,cursorLabelComponent:S().element,cursorLabelOffset:S().oneOfType([S().number,S().shape({x:S().number,y:S().number})]),defaultCursorValue:S().oneOfType([S().number,S().shape({x:S().number,y:S().number})]),disable:S().bool,onCursorChange:S().func})}),Object.defineProperty(t,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:bl({},He.defaultProps,{cursorLabelComponent:D().createElement(Ft,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:D().createElement(dl,null)})}),Object.defineProperty(t,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseLeave:function(t,n){return e.disable?{}:vl.onMouseLeave(t,n)},onTouchCancel:function(){return[]},onMouseMove:function(t,n){return e.disable?{}:vl.onMouseMove(t,n)},onTouchMove:function(t,n){return e.disable?{}:vl.onMouseMove(t,n)}}}]}}),n};function jl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pl(e,t,n[t])}))}return e}function Pl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dl(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)}}function Tl(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}Ol(He);var Sl=function(e){return e?Array.isArray(e)?e:[e]:[]},Cl=function(e,t){var n,r,o=e.map((function(e){return e(t)})),a=o.map((function(e){return new e})),u=f()(e)(t),l=o.map((function(e){return e.displayName.match(/Victory(.*)Container/)[1]||""})).join("");return r=n=function(e){function t(){return kl(this,t),Tl(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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,e),n=t,(r=[{key:"getChildren",value:function(e){return a.reduce((function(t,n){return n.getChildren(Al({},e,{children:t}))}),e.children)}}])&&Dl(n.prototype,r),t}(u),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Victory".concat(l,"Container")}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:o.reduce((function(e,t){return Al({},e,t.propTypes)}),{})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:o.reduce((function(e,t){return Al({},e,t.defaultProps)}),{})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return t=o.reduce((function(t,n){var r=i()(n.defaultEvents)?n.defaultEvents(e):n.defaultEvents;return jl(t).concat(jl(r))}),[]),n=v()(t,"target"),r=g()(n).map((function(e){var t,n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=o[0],i=o[1];return i=i.filter(Boolean),c()(i)?null:{target:a,eventHandlers:(t=i.map((function(e){return e.eventHandlers})),t.reduce((function(e,t){return h()(e,(function(e,n){var r=t[n];t[n]=r?function(){var t=Sl(r.apply(void 0,arguments)),n=Sl(e.apply(void 0,arguments));return t.concat(n)}:e})),t})))}})),r.filter(Boolean);var t,n,r}}),r},_l=function(e,t){e&&!p()(t,e)&&'"'.concat(e,'" is not a valid behavior. Choose from [').concat(t.join(", "),"].")},El=function(e,t){return function(r,o){var a=n()(e);_l(r,a),_l(o,a);var i=e[r],u=e[o]||[];return i?Cl(jl(i).concat(jl(u)),t):t}},Nl=El({zoom:[Rc],voronoi:[oc],selection:[Zc],cursor:[Ol],brush:[cl]},He)})(),o})()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryCreateContainer=e(require("react")):t.VictoryCreateContainer=e(t.React)}(self,(t=>(()=>{var e={2231:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),e=new Uint32Array(512),n=function(t){var e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()};function r(t,e,n,r){var o=t-n,i=e-r;return o*o+i*i}function o(t,e,n,r,o,i){var a=(r-e)*(o-t),u=(n-t)*(i-e);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function i(t,e,n,r,i,a){return(o(i,a,t,e,n,r)||o(t,e,n,r,i,a)||o(n,r,i,a,t,e))<0}function a(t,e,n,r,o,i){var a=n-t,u=r-e,c=o-t,l=i-e,s=a*a+u*u,f=c*c+l*l,p=.5/(a*l-u*c),h=(l*s-u*f)*p,y=(a*f-c*s)*p;return h*h+y*y}function u(t,e,n,r){if(r-n<=20)for(var o=n+1;o<=r;o++){for(var i=t[o],a=e[i],l=o-1;l>=n&&e[t[l]]>a;)t[l+1]=t[l--];t[l+1]=i}else{var s=n+1,f=r;c(t,n+r>>1,s),e[t[n]]>e[t[r]]&&c(t,n,r),e[t[s]]>e[t[r]]&&c(t,s,r),e[t[n]]>e[t[s]]&&c(t,n,s);for(var p=t[s],h=e[p];;){do{s++}while(e[t[s]]<h);do{f--}while(e[t[f]]>h);if(f<s)break;c(t,s,f)}t[n+1]=t[f],t[f]=p,r-s+1>=f-n?(u(t,e,s,r),u(t,e,n,f-1)):(u(t,e,n,f-1),u(t,e,s,r))}}function c(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function l(t){return t[0]}function s(t){return t[1]}return n.from=function(t,e,r){void 0===e&&(e=l),void 0===r&&(r=s);for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;a++){var u=t[a];i[2*a]=e(u),i[2*a+1]=r(u)}return new n(i)},n.prototype.update=function(){for(var e=this,n=e.coords,o=e._hullPrev,c=e._hullNext,l=e._hullTri,s=e._hullHash,f=n.length>>1,p=1/0,h=1/0,y=-1/0,d=-1/0,v=0;v<f;v++){var g=n[2*v],m=n[2*v+1];g<p&&(p=g),m<h&&(h=m),g>y&&(y=g),m>d&&(d=m),this._ids[v]=v}for(var b,x,w,O=(p+y)/2,M=(h+d)/2,j=1/0,P=0;P<f;P++){var A=r(O,M,n[2*P],n[2*P+1]);A<j&&(b=P,j=A)}var S=n[2*b],D=n[2*b+1];j=1/0;for(var k=0;k<f;k++)if(k!==b){var T=r(S,D,n[2*k],n[2*k+1]);T<j&&T>0&&(x=k,j=T)}for(var C=n[2*x],E=n[2*x+1],_=1/0,I=0;I<f;I++)if(I!==b&&I!==x){var R=a(S,D,C,E,n[2*I],n[2*I+1]);R<_&&(w=I,_=R)}var N=n[2*w],z=n[2*w+1];if(_===1/0){for(var U=0;U<f;U++)this._dists[U]=n[2*U]-n[0]||n[2*U+1]-n[1];u(this._ids,this._dists,0,f-1);for(var L=new Uint32Array(f),B=0,H=0,F=-1/0;H<f;H++){var W=this._ids[H];this._dists[W]>F&&(L[B++]=W,F=this._dists[W])}return this.hull=L.subarray(0,B),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(S,D,C,E,N,z)){var $=x,V=C,q=E;x=w,C=N,E=z,w=$,N=V,z=q}var Y=function(t,e,n,r,o,i){var a=n-t,u=r-e,c=o-t,l=i-e,s=a*a+u*u,f=c*c+l*l,p=.5/(a*l-u*c);return{x:t+(l*s-u*f)*p,y:e+(a*f-c*s)*p}}(S,D,C,E,N,z);this._cx=Y.x,this._cy=Y.y;for(var G=0;G<f;G++)this._dists[G]=r(n[2*G],n[2*G+1],Y.x,Y.y);u(this._ids,this._dists,0,f-1),this._hullStart=b;var Z=3;c[b]=o[w]=x,c[x]=o[b]=w,c[w]=o[x]=b,l[b]=0,l[x]=1,l[w]=2,s.fill(-1),s[this._hashKey(S,D)]=b,s[this._hashKey(C,E)]=x,s[this._hashKey(N,z)]=w,this.trianglesLen=0,this._addTriangle(b,x,w,-1,-1,-1);for(var K=0,X=void 0,Q=void 0;K<this._ids.length;K++){var J=this._ids[K],tt=n[2*J],et=n[2*J+1];if(!(K>0&&Math.abs(tt-X)<=t&&Math.abs(et-Q)<=t)&&(X=tt,Q=et,J!==b&&J!==x&&J!==w)){for(var nt=0,rt=0,ot=this._hashKey(tt,et);rt<this._hashSize&&(-1===(nt=s[(ot+rt)%this._hashSize])||nt===c[nt]);rt++);for(var it=nt=o[nt],at=void 0;at=c[it],!i(tt,et,n[2*it],n[2*it+1],n[2*at],n[2*at+1]);)if((it=at)===nt){it=-1;break}if(-1!==it){var ut=this._addTriangle(it,J,c[it],-1,-1,l[it]);l[J]=this._legalize(ut+2),l[it]=ut,Z++;for(var ct=c[it];at=c[ct],i(tt,et,n[2*ct],n[2*ct+1],n[2*at],n[2*at+1]);)ut=this._addTriangle(ct,J,at,l[J],-1,l[ct]),l[J]=this._legalize(ut+2),c[ct]=ct,Z--,ct=at;if(it===nt)for(;i(tt,et,n[2*(at=o[it])],n[2*at+1],n[2*it],n[2*it+1]);)ut=this._addTriangle(at,J,it,-1,l[it],l[at]),this._legalize(ut+2),l[at]=ut,c[it]=it,Z--,it=at;this._hullStart=o[J]=it,c[it]=o[ct]=J,c[J]=ct,s[this._hashKey(tt,et)]=J,s[this._hashKey(n[2*it],n[2*it+1])]=it}}}this.hull=new Uint32Array(Z);for(var lt=0,st=this._hullStart;lt<Z;lt++)this.hull[lt]=st,st=c[st];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},n.prototype._hashKey=function(t,e){return Math.floor((n=t-this._cx,r=e-this._cy,o=n/(Math.abs(n)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var n,r,o},n.prototype._legalize=function(t){for(var n=this,r=n._triangles,o=n._halfedges,i=n.coords,a=0,u=0;;){var c=o[t],l=t-t%3;if(u=l+(t+2)%3,-1!==c){var s=c-c%3,f=l+(t+1)%3,p=s+(c+2)%3,h=r[u],y=r[t],d=r[f],v=r[p];if(x=i[2*h],w=i[2*h+1],O=i[2*y],M=i[2*y+1],j=i[2*d],P=i[2*d+1],A=i[2*v],S=i[2*v+1],D=void 0,k=void 0,T=void 0,C=void 0,E=void 0,_=void 0,I=void 0,R=void 0,(D=x-A)*((C=M-S)*(R=(E=j-A)*E+(_=P-S)*_)-(I=(T=O-A)*T+C*C)*_)-(k=w-S)*(T*R-I*E)+(D*D+k*k)*(T*_-C*E)<0){r[t]=v,r[c]=h;var g=o[p];if(-1===g){var m=this._hullStart;do{if(this._hullTri[m]===p){this._hullTri[m]=t;break}m=this._hullPrev[m]}while(m!==this._hullStart)}this._link(t,g),this._link(c,o[u]),this._link(u,p);var b=s+(c+1)%3;a<e.length&&(e[a++]=b)}else{if(0===a)break;t=e[--a]}}else{if(0===a)break;t=e[--a]}}var x,w,O,M,j,P,A,S,D,k,T,C,E,_,I,R;return u},n.prototype._link=function(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)},n.prototype._addTriangle=function(t,e,n,r,o,i){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,o),this._link(a+2,i),this.trianglesLen+=3,a},n}()},1080:(t,e,n)=>{"use strict";e.Z=void 0;var r,o=(r=n(2231))&&r.__esModule?r:{default:r};function i(t){return t[0]}function a(t){return t[1]}function u(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}var c=function(){function t(t){var e=new o.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=e.coords,this._init(e)}var e=t.prototype;return e._init=function(t){var e=t,n=this.points;if(e.hull&&e.hull.length>2&&function(t){for(var e=t.triangles,n=t.coords,r=0;r<e.length;r+=3){var o=2*e[r],i=2*e[r+1],a=2*e[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:n.length/2},(function(t,e){return e})).sort((function(t,e){return n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]}));for(var r=this.collinear[0],i=this.collinear[this.collinear.length-1],a=[n[2*r],n[2*r+1],n[2*i],n[2*i+1]],c=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),l=0,s=n.length/2;l<s;++l){var f=u(n[2*l],n[2*l+1],c);n[2*l]=f[0],n[2*l+1]=f[1]}t=new o.default(n)}for(var p=this.halfedges=t.halfedges,h=this.hull=t.hull,y=this.triangles=t.triangles,d=this.inedges.fill(-1),v=this._hullIndex.fill(-1),g=0,m=p.length;g<m;++g){var b=y[g%3==2?g-2:g+1];-1!==p[g]&&-1!==d[b]||(d[b]=g)}for(var x=0,w=h.length;x<w;++x)v[h[x]]=x;h.length<=2&&h.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=h[0],this.triangles[1]=h[1],this.triangles[2]=h[1],d[h[0]]=1,2===h.length&&(d[h[1]]=0))},e.neighbors=function(t){var e=[],n=this.inedges,r=this.hull,o=this._hullIndex,i=this.halfedges,a=this.triangles,u=n[t];if(-1===u)return e;var c=u,l=-1;do{if(l=a[c],e.push(l),a[c=c%3==2?c-2:c+1]!==t)break;if(-1===(c=i[c])){var s=r[(o[t]+1)%r.length];s!==l&&e.push(s);break}}while(c!==u);return e},e.find=function(t,e,n){if(void 0===n&&(n=0),(t=+t)!=t||(e=+e)!=e)return-1;for(var r,o=n;(r=this._step(n,t,e))>=0&&r!==n&&r!==o;)n=r;return r},e._step=function(t,e,n){var r=this.inedges,o=this.points;if(-1===r[t]||!o.length)return(t+1)%(o.length>>1);var i=t,a=Math.pow(e-o[2*t],2)+Math.pow(n-o[2*t+1],2),u=this.neighbors(t),c=Array.isArray(u),l=0;for(u=c?u:u[Symbol.iterator]();;){var s;if(c){if(l>=u.length)break;s=u[l++]}else{if((l=u.next()).done)break;s=l.value}var f=s,p=Math.pow(e-o[2*f],2)+Math.pow(n-o[2*f+1],2);p<a&&(a=p,i=f)}return i},t}();e.Z=c,c.from=function(t,e,n,r){return void 0===e&&(e=i),void 0===n&&(n=a),new c(function(t,e,n,r){for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;++a){var u=t[a];i[2*a]=e.call(r,u,a,t),i[2*a+1]=n.call(r,u,a,t)}return i}(t,e,n,r))}},2702:t=>{t.exports=function(){}},1124:(t,e,n)=>{var r=n(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},4281:(t,e,n)=>{var r=n(7168),o=n(6582),i=n(3867),a=n(9557),u=n(2726);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,n)=>{var r=n(441).Symbol;t.exports=r},5198:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},4802:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},8058:(t,e,n)=>{var r=n(7650);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},7431:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},6460:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},3848:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4793:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},7596:(t,e,n)=>{var r=n(999),o=n(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3833:(t,e,n)=>{var r=n(6530);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},2435:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},999:(t,e,n)=>{var r=n(9346);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},827:t=>{t.exports=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}},528:t=>{t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,n)=>{var r=n(3848),o=n(1754);t.exports=function t(e,n,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];n>0&&i(s)?n>1?t(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},641:(t,e,n)=>{var r=n(2630)();t.exports=r},5897:(t,e,n)=>{var r=n(641),o=n(2635);t.exports=function(t,e){return t&&r(t,e,o)}},166:(t,e,n)=>{var r=n(8422),o=n(8780);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},5432:(t,e,n)=>{var r=n(4318),o=n(3387);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},1071:(t,e,n)=>{var r=n(7229),o=n(3387);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},7229:(t,e,n)=>{var r=n(4281),o=n(2503),i=n(6001),a=n(8784),u=n(6686),c=n(7236),l=n(8752),s=n(4812),f="[object Arguments]",p="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,v,g){var m=c(t),b=c(e),x=m?p:u(t),w=b?p:u(e),O=(x=x==f?h:x)==h,M=(w=w==f?h:w)==h,j=x==w;if(j&&l(t)){if(!l(e))return!1;m=!0,O=!1}if(j&&!O)return g||(g=new r),m||s(t)?o(t,e,n,d,v,g):i(t,e,x,n,d,v,g);if(!(1&n)){var P=O&&y.call(t,"__wrapped__"),A=M&&y.call(e,"__wrapped__");if(P||A){var S=P?t.value():t,D=A?e.value():e;return g||(g=new r),v(S,D,n,d,g)}}return!!j&&(g||(g=new r),a(t,e,n,d,v,g))}},9157:(t,e,n)=>{var r=n(4281),o=n(1071);t.exports=function(t,e,n,i){var a=n.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=n[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new r;if(i)var y=i(f,p,s,t,e,h);if(!(void 0===y?o(p,f,3,i,h):y))return!1}}return!0}},1131:(t,e,n)=>{var r=n(4318),o=n(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},8904:(t,e,n)=>{var r=n(8418),o=n(4555),i=n(5362),a=n(7236),u=n(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},8803:(t,e,n)=>{var r=n(3717)(Object.keys,Object);t.exports=r},2920:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},8418:(t,e,n)=>{var r=n(9157),o=n(9182),i=n(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},4555:(t,e,n)=>{var r=n(1071),o=n(3795),i=n(3646),a=n(3266),u=n(1457),c=n(7375),l=n(8780);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},690:(t,e,n)=>{var r=n(6460),o=n(166),i=n(8904),a=n(2920),u=n(6024),c=n(6535),l=n(1397),s=n(5362),f=n(7236);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=r(e,c(i));var h=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return u(h,(function(t,e){return l(t,e,n)}))}},7410:(t,e,n)=>{var r=n(6621),o=n(3646);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6621:(t,e,n)=>{var r=n(166),o=n(8116),i=n(8422);t.exports=function(t,e,n){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=r(t,l);n(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,n)=>{var r=n(166);t.exports=function(t){return function(e){return r(e,t)}}},797:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=n(e((r-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},4569:(t,e,n)=>{var r=n(5362),o=n(4468),i=n(8756);t.exports=function(t,e){return i(o(t,e,r),t+"")}},8116:(t,e,n)=>{var r=n(7596),o=n(8422),i=n(4363),a=n(5973),u=n(8780);t.exports=function(t,e,n,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var h=u(e[l]),y=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(l!=f){var d=p[h];void 0===(y=c?c(d,h,p):void 0)&&(y=a(d)?d:i(e[l+1])?[]:{})}r(p,h,y),p=p[h]}return t}},6024:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},5159:(t,e,n)=>{var r=n(6530);t.exports=function(t,e){for(var n=-1,o=t.length,i=0,a=[];++n<o;){var u=t[n],c=e?e(u):u;if(!n||!r(c,l)){var l=c;a[i++]=0===u?0:u}}return a}},94:(t,e,n)=>{var r=n(6460);t.exports=function(t,e){return r(e,(function(e){return[e,t[e]]}))}},454:(t,e,n)=>{var r=n(4690),o=n(6460),i=n(7236),a=n(2945),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},3349:(t,e,n)=>{var r=n(5720),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},4351:(t,e,n)=>{var r=n(1124),o=n(8058),i=n(7431),a=n(555),u=n(8491),c=n(6350);t.exports=function(t,e,n){var l=-1,s=o,f=t.length,p=!0,h=[],y=h;if(n)p=!1,s=i;else if(f>=200){var d=e?null:u(t);if(d)return c(d);p=!1,s=a,y=new r}else y=e?[]:h;t:for(;++l<f;){var v=t[l],g=e?e(v):v;if(v=n||0!==v?v:0,p&&g==g){for(var m=y.length;m--;)if(y[m]===g)continue t;e&&y.push(g),h.push(v)}else s(y,g,n)||(y!==h&&y.push(g),h.push(v))}return h}},925:(t,e,n)=>{var r=n(6460);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},555:(t,e,n)=>{var r=n(7650);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9883:t=>{t.exports=function(t){return t}},8422:(t,e,n)=>{var r=n(7236),o=n(3266),i=n(3879),a=n(1119);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},709:(t,e,n)=>{var r=n(2945);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==e,c=null===e,l=e==e,s=r(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&n&&i&&!o&&!a||c&&n&&i||!u&&i||!l)return-1}return 0}},1397:(t,e,n)=>{var r=n(709);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=n.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==n[o]?-1:1)}return t.index-e.index}},6051:(t,e,n)=>{var r=n(7596),o=n(999);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(n[l],t[l],l,n,t):void 0;void 0===s&&(s=t[l]),a?o(n,l,s):r(n,l,s)}return n}},5580:(t,e,n)=>{var r=n(4802),o=n(2435),i=n(8904),a=n(7236);t.exports=function(t,e){return function(n,u){var c=a(n)?r:o,l=e?e():{};return c(n,t,i(u,2),l)}}},2544:(t,e,n)=>{var r=n(4569),o=n(3108);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===n(i[c],c,i))break}return e}}},3086:(t,e,n)=>{var r=n(8904),o=n(1580),i=n(2635);t.exports=function(t){return function(e,n,a){var u=Object(e);if(!o(e)){var c=r(n,3);e=i(e),n=function(t){return c(u[t],t,u)}}var l=t(e,n,a);return l>-1?u[c?e[l]:l]:void 0}}},9338:(t,e,n)=>{var r=n(2702),o=n(3368),i=n(7344),a=n(7183),u=n(7236),c=n(3472);t.exports=function(t){return o((function(e){var n=e.length,o=n,l=r.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new TypeError("Expected a function");if(l&&!f&&"wrapper"==a(s))var f=new r([],!0)}for(o=f?o:n;++o<n;){s=e[o];var p=a(s),h="wrapper"==p?i(s):void 0;f=h&&c(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?f[a(h[0])].apply(f,h[3]):1==s.length&&c(s)?f[p]():f.thru(s)}return function(){var t=arguments,r=t[0];if(f&&1==t.length&&u(r))return f.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}},9833:(t,e,n)=>{var r=n(797),o=n(3108),i=n(992);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},8491:t=>{t.exports=function(){}},3348:(t,e,n)=>{var r=n(94),o=n(6686),i=n(2876),a=n(7639);t.exports=function(t){return function(e){var n=o(e);return"[object Map]"==n?i(e):"[object Set]"==n?a(e):r(e,t(e))}}},9346:(t,e,n)=>{var r=n(4457),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,n)=>{var r=n(1124),o=n(4793),i=n(555);t.exports=function(t,e,n,a,u,c){var l=1&n,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var y=-1,d=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++y<s;){var g=t[y],m=e[y];if(a)var b=l?a(m,g,y,e,t,c):a(g,m,y,t,e,c);if(void 0!==b){if(b)continue;d=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(g===t||u(g,t,n,a,c)))return v.push(e)}))){d=!1;break}}else if(g!==m&&!u(g,m,n,a,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,n)=>{var r=n(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var c=1&n,l=r(t),s=l.length;if(s!=r(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),y=u.get(e);if(h&&y)return h==e&&y==t;var d=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var g=t[p=l[f]],m=e[p];if(i)var b=c?i(m,g,p,e,t,u):i(g,m,p,t,e,u);if(!(void 0===b?g===m||a(g,m,n,i,u):b)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(d=!1)}return u.delete(t),u.delete(e),d}},3368:(t,e,n)=>{var r=n(5453),o=n(4468),i=n(8756);t.exports=function(t){return i(o(t,void 0,r),t+"")}},4414:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},6094:(t,e,n)=>{var r=n(3717)(Object.keys,Object);t.exports=r},5559:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},7344:t=>{t.exports=function(){}},7183:t=>{t.exports=function(){return""}},9182:(t,e,n)=>{var r=n(1457),o=n(2635);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},1407:(t,e,n)=>{var r=n(3717)(Object.getPrototypeOf,Object);t.exports=r},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,n)=>{var r=n(8422),o=n(6981),i=n(7236),a=n(4363),u=n(9216),c=n(8780);t.exports=function(t,e,n){for(var l=-1,s=(e=r(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},1754:(t,e,n)=>{var r=n(4690),o=n(6981),i=n(7236),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,n)=>{var r=n(7236),o=n(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},3472:t=>{t.exports=function(){return!1}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,n)=>{var r=n(5973);t.exports=function(t){return t==t&&!r(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,n)=>{var r=n(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},3867:(t,e,n)=>{var r=n(3833);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},9557:(t,e,n)=>{var r=n(3833);t.exports=function(t){return r(this.__data__,t)>-1}},2726:(t,e,n)=>{var r=n(3833);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},2876:t=>{t.exports=function(){return[]}},7375:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,n)=>{t=n.nmd(t);var r=n(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},4468:(t,e,n)=>{var r=n(5198),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=n(c),r(t,this,l)}}},441:(t,e,n)=>{var r=n(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6350:t=>{t.exports=function(){return[]}},7639:t=>{t.exports=function(){return[]}},8756:t=>{t.exports=function(t){return t}},3879:(t,e,n)=>{var r=n(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},5720:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},6782:(t,e,n)=>{var r=n(7596),o=n(6051),i=n(2544),a=n(1580),u=n(5003),c=n(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var n in e)l.call(e,n)&&r(t,n,e[n])}));t.exports=s},5750:(t,e,n)=>{var r=n(5973),o=n(8148),i=n(8746),a=Math.max,u=Math.min;t.exports=function(t,e,n){var c,l,s,f,p,h,y=0,d=!1,v=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=c,r=l;return c=l=void 0,y=e,f=t.apply(r,n)}function b(t){return y=t,p=setTimeout(w,e),d?m(t):f}function x(t){var n=t-h;return void 0===h||n>=e||n<0||v&&t-y>=s}function w(){var t=o();if(x(t))return O(t);p=setTimeout(w,function(t){var n=e-(t-h);return v?u(n,s-(t-y)):n}(t))}function O(t){return p=void 0,g&&c?m(t):(c=l=void 0,f)}function M(){var t=o(),n=x(t);if(c=arguments,l=this,h=t,n){if(void 0===p)return b(h);if(v)return clearTimeout(p),p=setTimeout(w,e),m(h)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,r(n)&&(d=!!n.leading,s=(v="maxWait"in n)?a(i(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),M.cancel=function(){void 0!==p&&clearTimeout(p),y=0,c=h=l=p=void 0},M.flush=function(){return void 0===p?f:O(o())},M}},7901:(t,e,n)=>{var r=n(4569),o=n(6530),i=n(3108),a=n(5850),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(r=1);++n<r;)for(var s=e[n],f=a(s),p=-1,h=f.length;++p<h;){var y=f[p],d=t[y];(void 0===d||o(d,u[y])&&!c.call(t,y))&&(t[y]=s[y])}return t}));t.exports=l},1261:(t,e,n)=>{var r=n(827),o=n(4569),i=n(8746),a=o((function(t,e,n){return r(t,i(e)||0,n)}));t.exports=a},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,n)=>{var r=n(3086)(n(8611));t.exports=r},8611:(t,e,n)=>{var r=n(528),o=n(8904),i=n(5225),a=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var c=null==n?0:i(n);return c<0&&(c=a(u+c,0)),r(t,o(e,3),c)}},5453:(t,e,n)=>{var r=n(314);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},8477:(t,e,n)=>{var r=n(9338)();t.exports=r},6348:(t,e,n)=>{var r=n(5897),o=n(9883);t.exports=function(t,e){return t&&r(t,o(e))}},3795:(t,e,n)=>{var r=n(166);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},1346:(t,e,n)=>{var r=n(999),o=n(5580),i=Object.prototype.hasOwnProperty,a=o((function(t,e,n){i.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=a},3646:(t,e,n)=>{var r=n(7),o=n(7383);t.exports=function(t,e){return null!=t&&o(t,e,r)}},5362:t=>{t.exports=function(t){return t}},6901:(t,e,n)=>{var r=n(7650);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,n)=>{var r=n(3839),o=n(9216);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},8752:t=>{t.exports=function(){return!1}},7957:(t,e,n)=>{var r=n(5432),o=n(6535),i=n(1782),a=i&&i.isDate,u=a?o(a):r;t.exports=u},6834:(t,e,n)=>{var r=n(8803),o=n(6686),i=n(6981),a=n(7236),u=n(1580),c=n(8752),l=n(5003),s=n(4812),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||s(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},9793:(t,e,n)=>{var r=n(1071);t.exports=function(t,e){return r(t,e)}},3839:(t,e,n)=>{var r=n(4318),o=n(5973);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,e,n)=>{var r=n(4318),o=n(1407),i=n(3387),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==s}},2654:(t,e,n)=>{var r=n(1131),o=n(6535),i=n(1782),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},4461:(t,e,n)=>{var r=n(4318),o=n(7236),i=n(3387);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2720:t=>{t.exports=function(t){return void 0===t}},2635:(t,e,n)=>{var r=n(3717)(Object.keys,Object);t.exports=r},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},2972:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},3792:(t,e,n)=>{var r=n(999),o=n(5897),i=n(8904);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},5913:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},8148:(t,e,n)=>{var r=n(441);t.exports=function(){return r.Date.now()}},5492:(t,e,n)=>{var r=n(8904),o=n(5913),i=n(9922);t.exports=function(t,e){return i(t,o(r(e)))}},1473:(t,e,n)=>{var r=n(690),o=n(7236);t.exports=function(t,e,n,i){return null==t?[]:(o(e)||(e=null==e?[]:[e]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},8423:(t,e,n)=>{var r=n(7410),o=n(3368)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},9922:(t,e,n)=>{var r=n(6460),o=n(8904),i=n(6621),a=n(5559);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},1651:(t,e,n)=>{var r=n(1712),o=n(4815),i=n(3266),a=n(8780);t.exports=function(t){return i(t)?r(a(t)):o(t)}},9717:(t,e,n)=>{var r=n(9833)();t.exports=r},5921:(t,e,n)=>{var r=n(5159);t.exports=function(t){return t&&t.length?r(t):[]}},3259:(t,e,n)=>{var r=n(5750),o=n(5973);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,n)=>{var r=n(8746);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,n)=>{var r=n(992);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},8746:(t,e,n)=>{var r=n(3349),o=n(5973),i=n(2945),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},6334:(t,e,n)=>{var r=n(3348)(n(2635));t.exports=r},1119:(t,e,n)=>{var r=n(454);t.exports=function(t){return null==t?"":r(t)}},1815:(t,e,n)=>{var r=n(4351);t.exports=function(t){return t&&t.length?r(t):[]}},268:(t,e,n)=>{var r=n(8904),o=n(4351);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},556:(t,e,n)=>{var r=n(1119),o=0;t.exports=function(t){var e=++o;return r(t)+e}},567:(t,e,n)=>{var r=n(925),o=n(2635);t.exports=function(t){return null==t?[]:r(t,o(t))}},459:(t,e,n)=>{"use strict";var r=n(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==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 e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},216:(t,e,n)=>{t.exports=n(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";r.r(o),r.d(o,{combineContainerMixins:()=>rf,createContainer:()=>uf,makeCreateContainerFunction:()=>af});var t={};r.r(t),r.d(t,{scaleBand:()=>Yn,scaleDiverging:()=>Ku,scaleDivergingLog:()=>Xu,scaleDivergingPow:()=>Ju,scaleDivergingSqrt:()=>tc,scaleDivergingSymlog:()=>Qu,scaleIdentity:()=>_o,scaleImplicit:()=>Vn,scaleLinear:()=>Eo,scaleLog:()=>Fo,scaleOrdinal:()=>qn,scalePoint:()=>Zn,scalePow:()=>Xo,scaleQuantile:()=>li,scaleQuantize:()=>si,scaleRadial:()=>ei,scaleSequential:()=>Fu,scaleSequentialLog:()=>Wu,scaleSequentialPow:()=>Vu,scaleSequentialQuantile:()=>Yu,scaleSequentialSqrt:()=>qu,scaleSequentialSymlog:()=>$u,scaleSqrt:()=>Qo,scaleSymlog:()=>qo,scaleThreshold:()=>fi,scaleTime:()=>Uu,scaleUtc:()=>Lu,tickFormat:()=>To});var e=r(2635),n=r.n(e),i=r(3839),a=r.n(i),u=r(6834),c=r.n(u),l=r(8477),s=r.n(l),f=r(6901),p=r.n(f),h=r(6348),y=r.n(h),d=r(1346),v=r.n(d),g=r(6334),m=r.n(g);var b=r(5973),x=r.n(b),w=r(556),O=r.n(w),M=r(7901),j=r.n(M),P=r(6782),A=r.n(P),S=r(9787),D=r.n(S),k=r(216),T=r.n(k),C=r(2654),E=r.n(C),_=r(6786),I=r.n(_),R=function(t){var e=function(e,n,r,o){var i=n[r];if(null==i)return e?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[n,r,o].concat(u))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},N=function(){return null},z=function(){},U=function(t){return void 0===t?z:null===t?N:t.constructor},L=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function B(t){return R((function(e,n,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[e,n,r].concat(i))}),void 0)}))}var H=R((function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`".concat(e,"` in `").concat(n,"` must be a non-negative number."))})),F=R((function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!=0)return new Error("`".concat(e,"` in `").concat(n,"` must be an integer."))})),W=(R((function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`".concat(e,"` in `").concat(n,"` must be a number greater than zero."))})),R((function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(e,"` in `").concat(n,"` must be an array of two unique numeric values."))}))),$=R((function(t,e,n){var r;if(r=t[e],!(a()(r)?a()(r.copy)&&a()(r.domain)&&a()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(e,"` in `").concat(n,"` must be a d3 scale."))})),V=(R((function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`".concat(e,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var o=U(r[0]),i=I()(r,(function(t){return o!==U(t)}));if(i){var a=L(r[0]),u=L(i);return new Error("Expected `".concat(e,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),R((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),R((function(t,e,n){if(t[e]&&!E()(t[e]))return new Error("`".concat(e,"` in `").concat(n,"` must be a regular expression."))})));function q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Y(t,e){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Y(t,e)}function G(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Z(t){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Z(t)}var K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Y(t,e)}(u,t);var e,r,o,i,a=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Z(o);if(i){var n=Z(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return G(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=a.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,n){e.map[t]=n,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=u,(r=[{key:"getChildren",value:function(){var t=this;return n()(this.map).map((function(e){var n=t.map[e];return n?D().cloneElement(n,{key:e}):n}))}},{key:"render",value:function(){return D().createElement("svg",this.props,this.getChildren())}}])&&q(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(D().Component);K.displayName="Portal",K.propTypes={className:T().string,height:H,style:T().object,viewBox:T().string,width:H};var X=D().createContext({});X.displayName="PortalContext";var Q,J,tt=0,et=0,nt=0,rt=0,ot=0,it=0,at="object"==typeof performance&&performance.now?performance:Date,ut="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ct(){return ot||(ut(lt),ot=at.now()+it)}function lt(){ot=0}function st(){this._call=this._time=this._next=null}function ft(t,e,n){var r=new st;return r.restart(t,e,n),r}function pt(){ot=(rt=at.now())+it,tt=et=0;try{!function(){ct(),++tt;for(var t,e=Q;e;)(t=ot-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tt}()}finally{tt=0,function(){for(var t,e,n=Q,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Q=e);J=t,yt(r)}(),ot=0}}function ht(){var t=at.now(),e=t-rt;e>1e3&&(it-=e,rt=t)}function yt(t){tt||(et&&(et=clearTimeout(et)),t-ot>24?(t<1/0&&(et=setTimeout(pt,t-at.now()-it)),nt&&(nt=clearInterval(nt))):(nt||(rt=at.now(),nt=setInterval(ht,1e3)),tt=1,ut(pt)))}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}st.prototype=ft.prototype={constructor:st,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ct():+n)+(null==e?0:+e),this._next||J===this||(J?J._next=this:Q=this,J=this),this._call=t,this._time=n,yt()},stop:function(){this._call&&(this._call=null,this._time=1/0,yt())}};var vt=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(ct()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,n;return e=t,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=ft(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var n=this.subscribers.push({startTime:ct(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&dt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),gt=D().createContext({transitionTimer:new vt,animationTimer:new vt});gt.displayName="TimerContext";const mt=gt;var bt=r(8423),xt=r.n(bt),wt=r(1651),Ot=r.n(wt);function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function jt(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,o=t._x0,i=t._voronoiX,a=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=e(r)?r:n,f=e(u)?u:a,p={x:e(i)?i:s,x0:e(o)?o:n,y:e(l)?l:f,y0:e(c)?c:a};return j()({},p,t)}function Pt(t,e){var n=t.scale,r=t.polar,o=t.horizontal,i=jt(e),a=t.origin||{x:0,y:0},u=o?n.y(i.y):n.x(i.x),c=o?n.y(i.y0):n.x(i.x0),l=o?n.x(i.x):n.y(i.y),s=o?n.x(i.x0):n.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}}function At(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",n=t[e],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function St(t,e){return a()(t)?t(e):t}function Dt(t,e){return e.disableInlineStyles?{}:t&&n()(t).some((function(e){return a()(t[e])}))?n()(t).reduce((function(n,r){return n[r]=St(t[r],e),n}),{}):t}function kt(t){return"number"==typeof t?t*(Math.PI/180):t}function Tt(t){var e=At(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;return Math.min(a-n-r,u-o-i)/2}function Ct(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[kt(t.startAngle||0),kt(t.endAngle||360)]:[t.innerRadius||0,Tt(t)]}(t,e):function(t,e){var n="x"!==e,r=At(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}function Et(t){return a()(t)?t:null==t?function(t){return t}:Ot()(t)}function _t(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(t,c,l){return t.reduce((function(t,r,s){var f=r.type&&r.type.role,p=r.props.name||"".concat(f,"-").concat(c[s]);if(r.props&&r.props.children){var h=A()({},r.props,xt()(n,i)),y=r.type&&"stack"===r.type.role&&a()(r.type.getChildren)?r.type.getChildren(h):D().Children.toArray(r.props.children).map((function(t){var e=A()({},t.props,xt()(h,i));return D().cloneElement(t,e)})),d=y.map((function(t,e){return"".concat(p,"-").concat(e)})),v=u(y,d,r);t=o(t,v)}else{var g=e(r,p,l);g&&(t=o(t,g))}return t}),r)},c=t.map((function(t,e){return e}));return u(t,c)}function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ut={startsWith:["data-","aria-"],exactMatch:[]},Lt=function(t,e){return"function"==typeof t?t(e):t},Bt=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(n),!0).forEach((function(e){zt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return Ut.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Ut.exactMatch.includes(t)}(t))}(It(t,1)[0])})).map((function(e){var n=It(e,2),r=n[0],o=n[1];return[r,Lt(o,t)]})))};function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ht.apply(this,arguments)}function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ft(Object(n),!0).forEach((function(e){$t(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qt(t,e){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qt(t,e)}function Yt(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Gt(t){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gt(t)}var Zt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qt(t,e)}(u,t);var e,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Gt(r);if(o){var n=Gt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Yt(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,n){return e.portalRef.portalUpdate(t,n)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return a()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=x()(t)&&void 0!==t.containerId?t.containerId:O()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return e=u,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,n=t.ouiaSafe,r=t.ouiaType;return Wt(Wt(Wt({},e&&{"data-ouia-component-id":e}),r&&{"data-ouia-component-type":r}),void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(t,e,n){var r=t.title,o=t.desc,i=t.portalComponent,a=t.className,u=t.width,c=t.height,l=t.portalZIndex,s=t.responsive,f=this.getChildren(t),p=s?{width:"100%",height:"100%"}:{width:u,height:c},h=A()({pointerEvents:"none",touchAction:"none",position:"relative"},p),y=A()({zIndex:l,position:"absolute",top:0,left:0},p),d=A()({pointerEvents:"all"},p),v=A()({overflow:"visible"},p),g={width:u,height:c,viewBox:e.viewBox,preserveAspectRatio:e.preserveAspectRatio,style:v};return D().createElement(X.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},D().createElement("div",Ht({style:j()({},n,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),D().createElement("svg",Ht({},e,{style:d}),r?D().createElement("title",{id:this.getIdForElement("title")},r):null,o?D().createElement("desc",{id:this.getIdForElement("desc")},o):null,f),D().createElement("div",{style:y},D().cloneElement(i,Wt(Wt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.responsive,o=t.events,i=t.title,a=t.desc,u=t.tabIndex,c=t.preserveAspectRatio,l=t.role,s=r?this.props.style:Mt(this.props.style,["height","width"]),f=Bt(this.props),p=A()(Wt({width:e,height:n,tabIndex:u,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(e," ").concat(n):void 0,preserveAspectRatio:r?c:void 0},f),o);return this.renderContainer(this.props,p,s)}}])&&Vt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(D().Component);Zt.displayName="VictoryContainer",Zt.role="container",Zt.propTypes={"aria-describedby":T().string,"aria-labelledby":T().string,children:T().oneOfType([T().arrayOf(T().node),T().node]),className:T().string,containerId:T().oneOfType([T().number,T().string]),containerRef:T().func,desc:T().string,events:T().object,height:H,name:T().string,origin:T().shape({x:H,y:H}),ouiaId:T().oneOfType([T().number,T().string]),ouiaSafe:T().bool,ouiaType:T().string,polar:T().bool,portalComponent:T().element,portalZIndex:F,preserveAspectRatio:T().string,responsive:T().bool,role:T().string,style:T().object,tabIndex:T().number,theme:T().object,title:T().string,width:H},Zt.defaultProps={className:"VictoryContainer",portalComponent:D().createElement(K,null),portalZIndex:99,responsive:!0,role:"img"},Zt.contextType=mt;var Kt=r(1473),Xt=r.n(Kt),Qt=r(9636),Jt=r.n(Qt);function te(t,e){var n,r=jt(e).x;return("number"==typeof(n=t.scale.x(r))?n/(Math.PI/180):n)%360}var ee=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],ne="#252525",re="#969696",oe={width:450,height:300,padding:50,colorScale:ee},ie={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:ne,stroke:"transparent"},ae=A()({textAnchor:"middle"},ie),ue={area:A()({style:{data:{fill:ne},labels:ie}},oe),axis:A()({style:{axis:{fill:"transparent",stroke:ne,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:A()({},ae,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:ie}},oe),bar:A()({style:{data:{fill:ne,padding:8,strokeWidth:0},labels:ie}},oe),boxplot:A()({style:{max:{padding:8,stroke:ne,strokeWidth:1},maxLabels:A()({},ie,{padding:3}),median:{padding:8,stroke:ne,strokeWidth:1},medianLabels:A()({},ie,{padding:3}),min:{padding:8,stroke:ne,strokeWidth:1},minLabels:A()({},ie,{padding:3}),q1:{padding:8,fill:re},q1Labels:A()({},ie,{padding:3}),q3:{padding:8,fill:re},q3Labels:A()({},ie,{padding:3})},boxWidth:20},oe),candlestick:A()({style:{data:{stroke:ne,strokeWidth:1},labels:A()({},ie,{padding:5})},candleColors:{positive:"#ffffff",negative:ne}},oe),chart:oe,errorbar:A()({borderWidth:8,style:{data:{fill:"transparent",stroke:ne,strokeWidth:2},labels:ie}},oe),group:A()({colorScale:ee},oe),histogram:A()({style:{data:{fill:re,stroke:ne,strokeWidth:2},labels:ie}},oe),legend:{colorScale:ee,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ie,title:A()({},ie,{padding:5})}},line:A()({style:{data:{fill:"transparent",stroke:ne,strokeWidth:2},labels:ie}},oe),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:A()({},ie,{padding:20})},colorScale:ee,width:400,height:400,padding:50},scatter:A()({style:{data:{fill:ne,stroke:"transparent",strokeWidth:0},labels:ie}},oe),stack:A()({colorScale:ee},oe),tooltip:{style:A()({},ie,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ne,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:A()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:A()({},ie,{padding:5,pointerEvents:"none"}),flyout:{stroke:ne,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},oe)},ce=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],le="#ECEFF1",se="#90A4AE",fe="#455A64",pe="#212121",he={width:350,height:350,padding:50},ye={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:fe,stroke:"transparent",strokeWidth:0},de=A()({textAnchor:"middle"},ye),ve="round",ge="round",me={grayscale:ue,material:{area:A()({style:{data:{fill:pe},labels:ye}},he),axis:A()({style:{axis:{fill:"transparent",stroke:se,strokeWidth:2,strokeLinecap:ve,strokeLinejoin:ge},axisLabel:A()({},de,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:le,strokeDasharray:"10, 5",strokeLinecap:ve,strokeLinejoin:ge,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:se,strokeWidth:1,strokeLinecap:ve,strokeLinejoin:ge},tickLabels:A()({},ye,{fill:fe})}},he),polarDependentAxis:A()({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:A()({style:{data:{fill:fe,padding:8,strokeWidth:0},labels:ye}},he),boxplot:A()({style:{max:{padding:8,stroke:fe,strokeWidth:1},maxLabels:A()({},ye,{padding:3}),median:{padding:8,stroke:fe,strokeWidth:1},medianLabels:A()({},ye,{padding:3}),min:{padding:8,stroke:fe,strokeWidth:1},minLabels:A()({},ye,{padding:3}),q1:{padding:8,fill:fe},q1Labels:A()({},ye,{padding:3}),q3:{padding:8,fill:fe},q3Labels:A()({},ye,{padding:3})},boxWidth:20},he),candlestick:A()({style:{data:{stroke:fe},labels:A()({},ye,{padding:5})},candleColors:{positive:"#ffffff",negative:fe}},he),chart:he,errorbar:A()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:fe,strokeWidth:2},labels:ye}},he),group:A()({colorScale:ce},he),histogram:A()({style:{data:{fill:fe,stroke:pe,strokeWidth:2},labels:ye}},he),legend:{colorScale:ce,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ye,title:A()({},ye,{padding:5})}},line:A()({style:{data:{fill:"transparent",opacity:1,stroke:fe,strokeWidth:2},labels:ye}},he),pie:A()({colorScale:ce,style:{data:{padding:8,stroke:le,strokeWidth:1},labels:A()({},ye,{padding:20})}},he),scatter:A()({style:{data:{fill:fe,opacity:1,stroke:"transparent",strokeWidth:0},labels:ye}},he),stack:A()({colorScale:ce},he),tooltip:{style:A()({},ye,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:pe,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:A()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:A()({},ye,{padding:5,pointerEvents:"none"}),flyout:{stroke:pe,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},he)}};function be(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var xe={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},we={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Oe={em:1,ex:.5},Me={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},je=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},Pe=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},Ae=function(t,e){var n=t.match(/[a-zA-Z%]+/)&&t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/);return n?we.hasOwnProperty(n)?r*we[n]:Oe.hasOwnProperty(n)?(e?r*e:r*Me.fontSize)*Oe[n]:r:r||0},Se=function(t,e){var n=Array.isArray(t)?t[e]:t,r=j()({},n,Me);return A()({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Ae(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Ae(String(r.fontSize))})},De=function(t,e){if(void 0===t||""===t||null===t)return 0;var n,r=je(t).map((function(t,n){var r,o,i=t.toString().length,a=Se(e,n),u=a.fontSize,c=a.letterSpacing,l=(r=a.fontFamily,o=r.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return xe[t]}))||"Helvetica",xe[o]);return t.toString().split("").map((function(t){return t.charCodeAt(0)<l.widths.length?l.widths[t.charCodeAt(0)]:l.avg})).reduce((function(t,e){return e+t}),0)*u+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return be(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return be(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},ke=function(t,e){return function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:je(t).reduce((function(t,n,r){var o=Se(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,e),o=De(t,e);return{width:n?Pe(o,r,n):o,height:1.05*(n?Pe(r,o,n):r)}}(t,e)};function Te(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ee(t,e){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ee(t,e)}function _e(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ie(t)}var Re=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ee(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ie(r);if(o){var n=Ie(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _e(this,t)});function a(){var t;Te(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).checkedContext=void 0,t.renderInPlace=void 0,t.element=void 0,t.portalKey=void 0,t}return e=a,(n=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},o=j()(r,n,Mt(this.props,["children","groupComponent"])),i=t&&D().cloneElement(t,o);return this.renderPortal(i)}}])&&Ce(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(D().Component);Re.displayName="VictoryPortal",Re.role="portal",Re.propTypes={children:T().node,groupComponent:T().element},Re.defaultProps={groupComponent:D().createElement("g",null)},Re.contextType=X;var Ne=["desc"];function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ze.apply(this,arguments)}var Ue=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Ne);return e?D().createElement("rect",ze({vectorEffect:"non-scaling-stroke"},n),D().createElement("desc",null,e)):D().createElement("rect",ze({vectorEffect:"non-scaling-stroke"},n))},Le=["children","title","desc"];var Be=function(t){var e=t.children,n=t.title,r=t.desc,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Le);return D().createElement("text",o,n&&D().createElement("title",null,n),r&&D().createElement("desc",null,r),e)};Be.propTypes={children:T().node,desc:T().string,title:T().string};var He=function(t){return D().createElement("tspan",t)},Fe=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Fe(e)].join(" ")}),Fe(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function We(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?We(Object(n),!0).forEach((function(e){Ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qe(t){return function(t){if(Array.isArray(t))return Ye(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ye(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ge={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Ze=function(t,e){return t.datum?Pt(t,t.datum)[e]:0},Ke=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Ge.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?Ge.fontSize:n}return Ge.fontSize},Xe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},Qe=function(t){var e=t.backgroundStyle,n=t.backgroundPadding;return Array.isArray(e)&&!c()(e)||Array.isArray(n)&&!c()(n)},Je=function(t,e){var n=t.direction,r=t.textAnchor,o=t.x,i=t.dx;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},tn=function(t,e){var n=t.verticalAnchor,r=t.y,o=t.originalDy,i=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},en=function(t,e){return Qe(t)?function(t,e){var n=t.dy,r=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,u=t.backgroundComponent,c=t.inline,l=t.y,s=e.map((function(t,o){var i=Xe(e,o-1),u=t.textSize,s=t.fontSize*t.lineHeight,f=Math.ceil(s),p=Xe(a,o),h=Xe(a,o-1),y=c&&r||0,d=o&&!c?i.fontSize*i.lineHeight+h.top+h.bottom:n-.5*s-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+y,y:l,fontSize:t.fontSize,dy:d}}));return s.map((function(e,n){var r=Je(t,e.labelSize.width),f=s.slice(0,n+1).reduce((function(t,e){return t+e.dy}),l),p=Xe(a,n),h=e.heightWithPadding,y=c?function(t,e,n){var r=t.textAnchor,o=e.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,e){return t+e}),0)/2;switch(r){case"start":return o.reduce((function(t,e,r){return r<n?t+e:t}),0);case"end":return o.reduce((function(t,e,r){return r>n?t-e:t}),0);default:return o.reduce((function(t,e,r){return r===n?t+e/2:t+(r<n?e:0)}),i)}}(t,s,n)+r-p.left:r,d=c?tn(t,h)-p.top:f,v={key:"tspan-background-".concat(n),height:h,style:Xe(i,n),width:e.widthWithPadding,transform:o,x:y-p.left,y:d};return D().cloneElement(u,j()({},u.props,v))}))}(t,e):function(t,e){var n=t.dx,r=void 0===n?0:n,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,u=t.inline,c=t.backgroundPadding,l=t.capHeight,s=e.map((function(t){return t.textSize})),f=u?Math.max.apply(Math,qe(s.map((function(t){return t.height})))):s.reduce((function(t,n,r){var o=r?0:l/2;return t+n.height*(e[r].lineHeight-o)}),0),p=u?s.reduce((function(t,e,n){var o=n?r:0;return t+e.width+o}),0):Math.max.apply(Math,qe(s.map((function(t){return t.width})))),h=Je(t,p),y=tn(t,f),d={key:"background",height:f+c.top+c.bottom,style:a,transform:o,width:p+c.left+c.right,x:u?h-c.left:h+r-c.left,y};return D().cloneElement(i,j()({},i.props,d))}(t,e)},nn=function(t,e,n){var r=e.inline,o=Xe(t,n);return n&&!r?function(t,e,n){var r=Xe(t,e),o=Xe(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-c/2+u/2;return Qe(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},rn=function(t){var e=St(t.ariaLabel,t),n=Xe(t.style),r=function(t){var e=St(t.lineHeight,t);return Array.isArray(e)&&c()(e)?[1]:e}(t),o=t.direction?St(t.direction,t):"inherit",i=t.textAnchor?St(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?St(t.verticalAnchor,t):n.verticalAnchor||"middle",u=t.dx?St(t.dx,t):0,l=function(t,e,n){var r=t.dy?St(t.dy,t):0,o=t.inline?1:t.text.length,i=St(t.capHeight,t),a=e?St(e,t):"middle",u=qe(Array(o).keys()).map((function(e){return Xe(t.style,e).fontSize})),c=qe(Array(o).keys()).map((function(t){return Xe(n,t)}));if("start"===a)return r+(i/2+c[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-c[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*c[0])*u[0]:r+(i/2+(.5-o/2)*c[0])*u[0];var l=qe(Array(o).keys()).reduce((function(t,e){return t+(i/2+(.5-o)*c[e])*u[e]/o}),0);return"end"===a?r+l:r+l/2+i/2*c[o-1]*u[o-1]}(t,a,r),s=void 0!==t.x?t.x:Ze(t,"x"),f=void 0!==t.y?t.y:Ze(t,"y"),p=function(t,e,n){var r=t.polar,o=Xe(t.style),i=r?function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var o=te(t,r),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===o.angle?St(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&St(c,t);return l||u?Fe(l,u&&{rotate:[u,e,n]}):void 0}(t,s,f);return A()({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:u,dy:l,originalDy:t.dy,transform:p,x:s,y:f})},on=function(t){if(null===(t=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return St(t,e)}));var n=St(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){if(e.disableInlineStyles){var n=Dt(t,e);return{fontSize:Ke(n)}}var r=function(t){var n=Dt(t=t?j()({},t,Ge):Ge,e);return A()({},n,{fontSize:Ke(n)})};return Array.isArray(t)&&!c()(t)?t.map((function(t){return r(t)})):r(t)}(t.style,A()({},t,{text:e})),r=function(t,e){if(t)return Array.isArray(t)&&!c()(t)?t.map((function(t){return Dt(t,e)})):Dt(t,e)}(t.backgroundStyle,A()({},t,{text:e,style:n})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(e){return At({padding:St(e,t)})})):At({padding:St(t.backgroundPadding,t)})}(A()({},t,{text:e,style:n,backgroundStyle:r})),i=St(t.id,t);return A()({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:i})}(t)).text||void 0===t.text)return null;var e=rn(t),n=e.text,r=e.style,o=e.capHeight,i=e.backgroundPadding,a=e.lineHeight,u=n.map((function(t,e){var n=Xe(r,e),u=Ae("".concat(o,"em"),n.fontSize),c=Xe(a,e);return{style:n,fontSize:n.fontSize||Ge.fontSize,capHeight:u,text:t,textSize:ke(t,n),lineHeight:c,backgroundPadding:Xe(i,e)}})),l=function(t,e){var n=t.ariaLabel,r=t.inline,o=t.className,i=t.title,a=t.events,u=t.direction,c=t.text,l=t.textAnchor,s=t.dx,f=t.dy,p=t.transform,h=t.x,y=t.y,d=t.desc,v=t.id,g=t.tabIndex,m=t.tspanComponent,b=t.textComponent,x=Bt(t),w=$e($e({"aria-label":n,key:"text"},a),{},{direction:u,dx:s,x:h,y:y+f,transform:p,className:o,title:i,desc:St(d,t),tabIndex:St(g,t),id:v},x),O=c.map((function(n,o){var i=e[o].style,a={key:"".concat(v,"-key-").concat(o),x:r?void 0:h,dx:r?s+e[o].backgroundPadding.left:s,dy:nn(e,t,o),textAnchor:i.textAnchor||l,style:i,children:n};return D().cloneElement(m,a)}));return D().cloneElement(b,w,O)}(e,u);if(t.backgroundStyle){var s=[en(e,u),l],f=D().cloneElement(t.groupComponent,{},s);return t.renderInPortal?D().createElement(Re,null,f):f}return t.renderInPortal?D().createElement(Re,null,l):l};on.displayName="VictoryLabel",on.role="label",on.defaultStyles=Ge,on.propTypes={active:T().bool,angle:T().oneOfType([T().string,T().number,T().func]),ariaLabel:T().oneOfType([T().string,T().func]),backgroundComponent:T().element,backgroundPadding:T().oneOfType([T().number,T().object,T().array]),backgroundStyle:T().oneOfType([T().object,T().array]),capHeight:T().oneOfType([T().string,H,T().func]),className:T().string,data:T().array,datum:T().any,desc:T().oneOfType([T().string,T().func]),direction:T().oneOf(["rtl","ltr","inherit"]),dx:T().oneOfType([T().number,T().string,T().func]),dy:T().oneOfType([T().number,T().string,T().func]),events:T().object,groupComponent:T().element,id:T().oneOfType([T().number,T().string,T().func]),index:T().oneOfType([T().number,T().string]),inline:T().bool,labelPlacement:T().oneOf(["parallel","perpendicular","vertical"]),lineHeight:T().oneOfType([T().string,H,T().func,T().array]),origin:T().shape({x:H,y:H}),polar:T().bool,renderInPortal:T().bool,scale:T().shape({x:$,y:$}),style:T().oneOfType([T().object,T().array]),tabIndex:T().oneOfType([T().number,T().func]),text:T().oneOfType([T().string,T().number,T().func,T().array]),textAnchor:T().oneOfType([T().oneOf(["start","middle","end","inherit"]),T().func]),textComponent:T().element,title:T().string,transform:T().oneOfType([T().string,T().object,T().func]),tspanComponent:T().element,verticalAnchor:T().oneOfType([T().oneOf(["start","middle","end"]),T().func]),x:T().oneOfType([T().number,T().string]),y:T().oneOfType([T().number,T().string])},on.defaultProps={backgroundComponent:D().createElement(Ue,null),groupComponent:D().createElement("g",null),direction:"inherit",textComponent:D().createElement(Be,null),tspanComponent:D().createElement(He,null),capHeight:.71,lineHeight:1},T().oneOfType([T().arrayOf(T().string),T().shape({x:T().arrayOf(T().string),y:T().arrayOf(T().string)})]),T().oneOfType([T().array,T().object]),T().element,T().bool,T().element,T().oneOfType([T().func,T().array]),T().oneOfType([T().func,B([F,H]),T().string,T().arrayOf(T().string)]),T().oneOf(["ascending","descending"]),T().shape({parent:T().object,data:T().object,labels:T().object}),T().oneOfType([T().func,B([F,H]),T().string,T().arrayOf(T().string)]),T().oneOfType([T().func,B([F,H]),T().string,T().arrayOf(T().string)]),T().oneOfType([T().func,B([F,H]),T().string,T().arrayOf(T().string)]),T().oneOfType([T().bool,T().object]),T().element,T().oneOfType([W,T().shape({x:W,y:W})]),T().oneOfType([T().number,T().instanceOf(Date),T().shape({x:T().oneOfType([T().number,T().instanceOf(Date)]),y:T().oneOfType([T().number,T().instanceOf(Date)])})]),T().oneOfType([T().number,T().instanceOf(Date),T().shape({x:T().oneOfType([T().number,T().instanceOf(Date)]),y:T().oneOfType([T().number,T().instanceOf(Date)])})]),T().oneOfType([T().shape({x:T().oneOfType([T().number,T().arrayOf(T().number)]),y:T().oneOfType([T().number,T().arrayOf(T().number)])}),T().number,T().arrayOf(T().number)]),T().oneOfType([T().func,B([F,H]),T().string]),T().arrayOf(T().shape({target:T().oneOf(["data","labels","parent"]),eventKey:T().oneOfType([T().array,B([F,H]),T().string]),eventHandlers:T().object})),T().arrayOf(T().shape({callback:T().func,childName:T().oneOfType([T().string,T().array]),eventKey:T().oneOfType([T().array,B([F,H]),T().string]),mutation:T().func,target:T().oneOfType([T().string,T().array])})),T().element,T().string,T().shape({x:T().number,y:T().number}),T().oneOfType([T().number,T().shape({top:T().number,bottom:T().number,left:T().number,right:T().number})]),T().bool,T().oneOfType([W,T().shape({x:W,y:W})]),T().oneOfType([$,T().shape({x:$,y:$})]),T().shape({events:T().array,getEventState:T().func}),T().oneOfType([T().bool,T().shape({x:T().oneOfType([T().bool]),y:T().oneOfType([T().bool])})]),T().bool,T().object;var an={active:T().bool,ariaLabel:T().oneOfType([T().string,T().func]),className:T().string,clipPath:T().string,data:T().oneOfType([T().array,T().object]),desc:T().oneOfType([T().string,T().func]),disableInlineStyles:T().bool,events:T().object,id:T().oneOfType([T().number,T().string,T().func]),index:T().oneOfType([T().number,T().string]),origin:T().shape({x:T().number,y:T().number}),polar:T().bool,role:T().string,scale:T().oneOfType([$,T().shape({x:$,y:$})]),shapeRendering:T().string,style:T().object,tabIndex:T().oneOfType([T().number,T().func]),transform:T().string},un=["desc"];var cn=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,un);return e?D().createElement("path",n,D().createElement("desc",null,e)):D().createElement("path",n)};function ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ln(Object(n),!0).forEach((function(e){fn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,o=t.width,i=t.height,a=t.center,u="left"===r?1:-1,c=t.x+(t.dx||0),l=t.y+(t.dy||0),s=Jt()(a)&&a.x,f=Jt()(a)&&a.y,p=s-u*(o/2),h=s+u*(o/2),y=f+i/2,d=f-i/2,v=u*(c-p)>0?0:t.pointerLength,g="left"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(g);return"M ".concat(p,", ").concat(f-e/2,"\n L ").concat(v?c:p,", ").concat(v?l:f+e/2,"\n L ").concat(p,", ").concat(f+e/2,"\n L ").concat(p,", ").concat(y-n,"\n A ").concat(m," ").concat(p+u*n,", ").concat(y,"\n L ").concat(h-u*n,", ").concat(y,"\n A ").concat(m," ").concat(h,", ").concat(y-n,"\n L ").concat(h,", ").concat(d+n,"\n A ").concat(m," ").concat(h-u*n,", ").concat(d,"\n L ").concat(p+u*n,", ").concat(d,"\n A ").concat(m," ").concat(p,", ").concat(d+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,o=t.width,i=t.height,a=t.center,u="bottom"===r?1:-1,c=t.x+(t.dx||0),l=t.y+(t.dy||0),s=Jt()(a)&&a.x,f=Jt()(a)&&a.y,p=f+u*(i/2),h=f-u*(i/2),y=s+o/2,d=s-o/2,v=u*(l-p)<0?0:t.pointerLength,g="bottom"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(g);return"M ".concat(s-e/2,", ").concat(p,"\n L ").concat(v?c:s+e/2,", ").concat(v?l:p,"\n L ").concat(s+e/2,", ").concat(p,"\n L ").concat(y-n,", ").concat(p,"\n A ").concat(m," ").concat(y,", ").concat(p-u*n,"\n L ").concat(y,", ").concat(h+u*n,"\n A ").concat(m," ").concat(y-n,", ").concat(h,"\n L ").concat(d+n,", ").concat(h,"\n A ").concat(m," ").concat(d,", ").concat(h+u*n,"\n L ").concat(d,", ").concat(p-u*n,"\n A ").concat(m," ").concat(d+n,", ").concat(p,"\n z")}(t)},hn=function(t){t=function(t){var e=St(t.id,t),n=Dt(t.style,t);return A()({},t,{id:e,style:n})}(t);var e=Bt(t);return D().cloneElement(t.pathComponent,sn(sn(sn({},t.events),e),{},{style:t.style,d:pn(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};hn.propTypes=sn(sn({},an),{},{center:T().shape({x:T().number,y:T().number}),cornerRadius:T().number,datum:T().object,dx:T().number,dy:T().number,height:T().number,orientation:T().oneOf(["top","bottom","left","right"]),pathComponent:T().element,pointerLength:T().number,pointerWidth:T().number,width:T().number,x:T().number,y:T().number}),hn.defaultProps={pathComponent:D().createElement(cn,null),role:"presentation",shapeRendering:"auto"};const yn=hn;function dn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gn(t,e)}function mn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function bn(t){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bn(t)}var xn={cornerRadius:5,pointerLength:10,pointerWidth:10},wn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=bn(r);if(o){var n=bn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return mn(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).id=void 0===t.id?O()("tooltip-"):t.id,e}return e=a,n=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var r=n?"right":"top",o=n?"left":"bottom";return e&&e.y<0?o:r}},{key:"getPolarOrientation",value:function(t,e){var n=te(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||me.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return j()({},t,n)})):j()({},t.style,n),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?j()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((function(e){return Dt(e,t)})):Dt(r,t);return{style:a,flyoutStyle:Dt(i,A()({},t,{style:a}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.cornerRadius,n=t.centerOffset,r=t.dx,o=t.dy,i=St(t.active,t),a=St(t.text,A()({},t,{active:i})),u=this.getStyles(A()({},t,{active:i,text:a})),c=u.style,l=u.flyoutStyle,s=St(t.orientation,A()({},t,{active:i,text:a,style:c,flyoutStyle:l}))||this.getDefaultOrientation(t),f=At({padding:St(t.flyoutPadding,A()({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s}))||this.getLabelPadding(c)}),p=St(t.pointerWidth,A()({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),h=St(t.pointerLength,A()({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),y=ke(a,c),d=this.getDimensions(A()({},t,{style:c,flyoutStyle:l,active:i,text:a,orientation:s,flyoutPadding:f,pointerWidth:p,pointerLength:h}),y),v=d.flyoutHeight,g=d.flyoutWidth,m=A()({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s,flyoutHeight:v,flyoutWidth:g,flyoutPadding:f,pointerWidth:p,pointerLength:h}),b=Jt()(n)&&void 0!==n.x?St(n.x,m):0,x=Jt()(n)&&void 0!==n.y?St(n.y,m):0;return A()({},m,{centerOffset:{x:b,y:x},dx:void 0!==r?St(r,m):0,dy:void 0!==o?St(o,m):0,cornerRadius:St(e,m)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,o={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:ke(n,e),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(t,o),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,o=t.datum;if(!e||!n||"vertical"===n)return 0;var i,a=te(t,o);return 0===a||180===a?i="top"===r&&180===a?270:90:a>0&&a<180?i=90-a:a>180&&a<360&&(i=270-a),i+(a>90&&a<180||a>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,o=t.y,i=n.width,a=n.height,u=[0,e.width],c=[0,e.height],l=[r-i/2,r+i/2],s=[o-a/2,o+a/2],f=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],p=[s[0]<c[0]?c[0]-s[0]:0,s[1]>c[1]?s[1]-c[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(o+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,o=t.dx,i=t.dy,a=t.pointerLength,u=t.orientation,c=t.constrainToVisibleArea,l=t.centerOffset,s=e.height,f=e.width,p="left"===u?-1:1,h="bottom"===u?-1:1,y={x:"left"===u||"right"===u?n+p*(a+f/2+p*o):n+o,y:"top"===u||"bottom"===u?r-h*(a+s/2-h*i):r+i},d=Jt()(t.center)&&void 0!==t.center.x?t.center.x:y.x,v=Jt()(t.center)&&void 0!==t.center.y?t.center.y:y.y,g={x:d+l.x,y:v+l.y};return c?this.constrainTooltip(g,t,e):g}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e,n=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,(e=n,function(t){if(Array.isArray(t))return dn(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return dn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,o,i,a=t.orientation,u=t.pointerLength,c=t.pointerWidth,l=t.flyoutHeight,s=t.flyoutWidth,f=t.flyoutPadding,p=St(t.cornerRadius,t);return{flyoutHeight:l?St(l,t):(o=e.height+f.top+f.bottom,i="top"===a||"bottom"===a?2*p:2*p+c,Math.max(i,o)),flyoutWidth:s?St(s,t):(n=e.width+f.left+f.right,r="left"===a||"right"===a?2*p+u:2*p,Math.max(r,n))}}},{key:"getLabelProps",value:function(t,e){var n=e.flyoutCenter,r=e.style,o=e.labelSize,i=e.dy,a=void 0===i?0:i,u=e.dx,c=void 0===u?0:u,l=t.text,s=t.datum,f=t.activePoints,p=t.labelComponent,h=t.index,y=t.flyoutPadding,d=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return j()({},p.props,{key:"".concat(this.id,"-label-").concat(h),text:l,datum:s,activePoints:f,textAnchor:d,dy:a,dx:c,style:r,x:function(){if(!d||"middle"===d)return n.x;var t="end"===d?-1:1;return n.x-t*(o.width/2)}()+(y.left-y.right)/2,y:n.y+(y.top-y.bottom)/2,verticalAnchor:"middle",angle:r.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,a=e.x+n.width/2,u=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:i>t.x?i-t.x:-1}];return Xt()(u,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,o=e.flyoutCenter,i=t.x,a=t.y,u=t.dx,c=t.dy,l=t.datum,s=t.activePoints,f=t.index,p=t.pointerLength,h=t.pointerWidth,y=t.cornerRadius,d=t.events,v=t.flyoutComponent,g=St(t.pointerOrientation,t);return j()({},v.props,{x:i,y:a,dx:u,dy:c,datum:l,activePoints:s,index:f,pointerLength:p,pointerWidth:h,cornerRadius:y,events:d,orientation:g||this.getPointerOrientation({x:i,y:a},o,n),key:"".concat(this.id,"-tooltip-").concat(f),width:n.width,height:n.height,style:r,center:o})}},{key:"renderTooltip",value:function(t){var e=St(t.active,t),n=t.renderInPortal;if(!e)return n?D().createElement(Re,null,null):null;var r=this.getEvaluatedProps(t),o=r.flyoutComponent,i=r.labelComponent,a=r.groupComponent,u=this.getCalculatedValues(r),c=[D().cloneElement(o,this.getFlyoutProps(r,u)),D().cloneElement(i,this.getLabelProps(r,u))],l=D().cloneElement(a,{role:"presentation",transform:u.transform},c);return n?D().createElement(Re,null,l):l}},{key:"render",value:function(){var t=function(t,e,n){var r=Mt(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:e(D().Children.toArray(r.children))}),!1)};return e(D().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return j()(i,t,r,e)}(this.props,xn,"tooltip");return this.renderTooltip(t)}}],n&&vn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(D().Component);wn.displayName="VictoryTooltip",wn.role="tooltip",wn.propTypes={activateData:T().bool,active:T().oneOfType([T().bool,T().func]),activePoints:T().array,angle:T().number,center:T().shape({x:H,y:H}),centerOffset:T().shape({x:T().oneOfType([T().number,T().func]),y:T().oneOfType([T().number,T().func])}),constrainToVisibleArea:T().bool,cornerRadius:T().oneOfType([H,T().func]),data:T().array,datum:T().object,dx:T().oneOfType([T().number,T().func]),dy:T().oneOfType([T().number,T().func]),events:T().object,flyoutComponent:T().element,flyoutHeight:T().oneOfType([H,T().func]),flyoutPadding:T().oneOfType([T().func,T().number,T().shape({top:T().number,bottom:T().number,left:T().number,right:T().number})]),flyoutStyle:T().object,flyoutWidth:T().oneOfType([H,T().func]),groupComponent:T().element,height:T().number,horizontal:T().bool,id:T().oneOfType([T().number,T().string]),index:T().oneOfType([T().number,T().string]),labelComponent:T().element,orientation:T().oneOfType([T().oneOf(["top","bottom","left","right"]),T().func]),pointerLength:T().oneOfType([H,T().func]),pointerOrientation:T().oneOfType([T().oneOf(["top","bottom","left","right"]),T().func]),pointerWidth:T().oneOfType([H,T().func]),polar:T().bool,renderInPortal:T().bool,scale:T().shape({x:$,y:$}),style:T().oneOfType([T().object,T().array]),text:T().oneOfType([T().string,T().number,T().func,T().array]),theme:T().object,width:T().number,x:T().number,y:T().number},wn.defaultProps={active:!1,renderInPortal:!0,labelComponent:D().createElement(on,null),flyoutComponent:D().createElement(yn,null),groupComponent:D().createElement("g",null)},wn.defaultEvents=function(t){var e=t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var On=r(4461),Mn=r.n(On),jn=r(3259),Pn=r.n(jn);function An(t){return function(t){if(Array.isArray(t))return Sn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Dn(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function kn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return Dn(o)?new Date(Math.max.apply(Math,An(o))):Math.max.apply(Math,An(o))}function Tn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return Dn(o)?new Date(Math.min.apply(Math,An(o))):Math.min.apply(Math,An(o))}r(5492),r(2720);var Cn=r(9793),En=r.n(Cn),_n=r(2972),In=r.n(_n),Rn=r(9717),Nn=r.n(Rn),zn=r(1815),Un=r.n(zn);function Ln(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}function Bn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Hn(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class Fn extends Map{constructor(t,e=$n){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Wn(this,t))}has(t){return super.has(Wn(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function Wn({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function $n(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Vn=Symbol("implicit");function qn(){var t=new Fn,e=[],n=[],r=Vn;function o(o){let i=t.get(o);if(void 0===i){if(r!==Vn)return r;t.set(o,i=e.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Fn;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return qn(e,n).unknown(r)},Bn.apply(o,arguments),o}function Yn(){var t,e,n=qn().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var n=r().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,n-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(n-c))*s,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var y=Ln(n).map((function(e){return p+t*e}));return o(f?y.reverse():y)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return Yn(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},Bn.apply(f(),arguments)}function Gn(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Gn(e())},t}function Zn(){return Gn(Yn.apply(null,arguments).paddingInner(1))}var Kn=Math.sqrt(50),Xn=Math.sqrt(10),Qn=Math.sqrt(2);function Jn(t,e,n){var r,o,i,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=tr(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)/a}return r&&i.reverse(),i}function tr(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Kn?10:i>=Xn?5:i>=Qn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Kn?10:i>=Xn?5:i>=Qn?2:1)}function er(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Kn?o*=10:i>=Xn?o*=5:i>=Qn&&(o*=2),e<t?-o:o}function nr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rr(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function or(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=nr,n=(e,n)=>nr(t(e),n),r=(e,n)=>t(e)-n):(e=t===nr||t===rr?t:ir,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function ir(){return 0}function ar(t){return null===t?NaN:+t}const ur=or(nr),cr=ur.right,lr=(ur.left,or(ar).center,cr);function sr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function fr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function pr(){}var hr=.7,yr=1/hr,dr="\\s*([+-]?\\d+)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mr=/^#([0-9a-f]{3,8})$/,br=new RegExp(`^rgb\\(${dr},${dr},${dr}\\)$`),xr=new RegExp(`^rgb\\(${gr},${gr},${gr}\\)$`),wr=new RegExp(`^rgba\\(${dr},${dr},${dr},${vr}\\)$`),Or=new RegExp(`^rgba\\(${gr},${gr},${gr},${vr}\\)$`),Mr=new RegExp(`^hsl\\(${vr},${gr},${gr}\\)$`),jr=new RegExp(`^hsla\\(${vr},${gr},${gr},${vr}\\)$`),Pr={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 Ar(){return this.rgb().formatHex()}function Sr(){return this.rgb().formatRgb()}function Dr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=mr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?kr(e):3===n?new _r(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Tr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Tr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=br.exec(t))?new _r(e[1],e[2],e[3],1):(e=xr.exec(t))?new _r(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=wr.exec(t))?Tr(e[1],e[2],e[3],e[4]):(e=Or.exec(t))?Tr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mr.exec(t))?Lr(e[1],e[2]/100,e[3]/100,1):(e=jr.exec(t))?Lr(e[1],e[2]/100,e[3]/100,e[4]):Pr.hasOwnProperty(t)?kr(Pr[t]):"transparent"===t?new _r(NaN,NaN,NaN,0):null}function kr(t){return new _r(t>>16&255,t>>8&255,255&t,1)}function Tr(t,e,n,r){return r<=0&&(t=e=n=NaN),new _r(t,e,n,r)}function Cr(t){return t instanceof pr||(t=Dr(t)),t?new _r((t=t.rgb()).r,t.g,t.b,t.opacity):new _r}function Er(t,e,n,r){return 1===arguments.length?Cr(t):new _r(t,e,n,null==r?1:r)}function _r(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ir(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}`}function Rr(){const t=Nr(this.opacity);return`${1===t?"rgb(":"rgba("}${zr(this.r)}, ${zr(this.g)}, ${zr(this.b)}${1===t?")":`, ${t})`}`}function Nr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ur(t){return((t=zr(t))<16?"0":"")+t.toString(16)}function Lr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Hr(t,e,n,r)}function Br(t){if(t instanceof Hr)return new Hr(t.h,t.s,t.l,t.opacity);if(t instanceof pr||(t=Dr(t)),!t)return new Hr;if(t instanceof Hr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(n-r)/u+6*(n<r):n===i?(r-e)/u+2:(e-n)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new Hr(a,u,c,t.opacity)}function Hr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Fr(t){return(t=(t||0)%360)<0?t+360:t}function Wr(t){return Math.max(0,Math.min(1,t||0))}function $r(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Vr(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}sr(pr,Dr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ar,formatHex:Ar,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Br(this).formatHsl()},formatRgb:Sr,toString:Sr}),sr(_r,Er,fr(pr,{brighter(t){return t=null==t?yr:Math.pow(yr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?hr:Math.pow(hr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new _r(zr(this.r),zr(this.g),zr(this.b),Nr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ir,formatHex:Ir,formatHex8:function(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}${Ur(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Rr,toString:Rr})),sr(Hr,(function(t,e,n,r){return 1===arguments.length?Br(t):new Hr(t,e,n,null==r?1:r)}),fr(pr,{brighter(t){return t=null==t?yr:Math.pow(yr,t),new Hr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?hr:Math.pow(hr,t),new Hr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new _r($r(t>=240?t-240:t+120,o,r),$r(t,o,r),$r(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Hr(Fr(this.h),Wr(this.s),Wr(this.l),Nr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Nr(this.opacity);return`${1===t?"hsl(":"hsla("}${Fr(this.h)}, ${100*Wr(this.s)}%, ${100*Wr(this.l)}%${1===t?")":`, ${t})`}`}}));const qr=t=>()=>t;function Yr(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):qr(isNaN(t)?e:t)}const Gr=function t(e){var n=function(t){return 1==(t=+t)?Yr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):qr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Er(t)).r,(e=Er(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Yr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Zr(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=Er(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function Kr(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=oo(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function Xr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Qr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Jr(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=oo(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}Zr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return Vr((n-r/e)*e,a,o,i,u)}})),Zr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Vr((n-r/e)*e,o,i,a,u)}}));var to=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eo=new RegExp(to.source,"g");function no(t,e){var n,r,o,i=to.lastIndex=eo.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=to.exec(t))&&(r=eo.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Qr(n,r)})),i=eo.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}function ro(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function oo(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?qr(e):("number"===o?Qr:"string"===o?(n=Dr(e))?(e=n,Gr):no:e instanceof Dr?Gr:e instanceof Date?Xr:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Kr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Jr:Qr:ro))(t,e)}function io(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ao(t){return+t}var uo=[0,1];function co(t){return t}function lo(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function so(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=lo(o,r),i=n(a,i)):(r=lo(r,o),i=n(i,a)),function(t){return i(r(t))}}function fo(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=lo(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=lr(t,e,1,r)-1;return i[n](o[n](e))}}function po(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ho(){var t,e,n,r,o,i,a=uo,u=uo,c=oo,l=co;function s(){var t,e,n,c=Math.min(a.length,u.length);return l!==co&&(t=a[0],e=a[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?fo:so,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),u,c)))(t(l(e)))}return f.invert=function(n){return l(e((i||(i=r(u,a.map(t),Qr)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ao),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=io,s()},f.clamp=function(t){return arguments.length?(l=!!t||co,s()):l!==co},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function yo(){return ho()(co,co)}var vo,go=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mo(t){if(!(e=go.exec(t)))throw new Error("invalid format: "+t);var e;return new bo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function bo(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xo(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function wo(t){return(t=xo(Math.abs(t)))?t[1]:NaN}function Oo(t,e){var n=xo(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}mo.prototype=bo.prototype,bo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Mo={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Oo(100*t,e),r:Oo,s:function(t,e){var n=xo(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(vo=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+xo(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function jo(t){return t}var Po,Ao,So,Do=Array.prototype.map,ko=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function To(t,e,n,r){var o,i=er(t,e,n);switch((r=mo(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(wo(e)/3)))-wo(Math.abs(t)))}(i,a))||(r.precision=o),So(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wo(e)-wo(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-wo(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return Ao(r)}function Co(t){var e=t.domain;return t.ticks=function(t){var n=e();return Jn(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return To(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=tr(c,l,n))===r)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function Eo(){var t=yo();return t.copy=function(){return po(t,Eo())},Bn.apply(t,arguments),Co(t)}function _o(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,ao),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return _o(t).unknown(e)},t=arguments.length?Array.from(t,ao):[0,1],Co(n)}function Io(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function Ro(t){return Math.log(t)}function No(t){return Math.exp(t)}function zo(t){return-Math.log(-t)}function Uo(t){return-Math.exp(-t)}function Lo(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Bo(t){return(e,n)=>-t(-e,n)}function Ho(t){const e=t(Ro,No),n=e.domain;let r,o,i=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Lo:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Bo(r),o=Bo(o),t(zo,Uo)):t(Ro,No),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=r(a),p=r(u);const h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;y.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;y.push(s)}2*y.length<h&&(y=Jn(a,u,h))}else y=Jn(f,p,Math.min(p-f,h)).map(o);return c?y.reverse():y},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=mo(n)).precision||(n.trim=!0),n=Ao(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(Io(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Fo(){const t=Ho(ho()).domain([1,10]);return t.copy=()=>po(t,Fo()).base(t.base()),Bn.apply(t,arguments),t}function Wo(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function $o(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Vo(t){var e=1,n=t(Wo(e),$o(e));return n.constant=function(n){return arguments.length?t(Wo(e=+n),$o(e)):e},Co(n)}function qo(){var t=Vo(ho());return t.copy=function(){return po(t,qo()).constant(t.constant())},Bn.apply(t,arguments)}function Yo(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Go(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Zo(t){return t<0?-t*t:t*t}function Ko(t){var e=t(co,co),n=1;function r(){return 1===n?t(co,co):.5===n?t(Go,Zo):t(Yo(n),Yo(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},Co(e)}function Xo(){var t=Ko(ho());return t.copy=function(){return po(t,Xo()).exponent(t.exponent())},Bn.apply(t,arguments),t}function Qo(){return Xo.apply(null,arguments).exponent(.5)}function Jo(t){return Math.sign(t)*t*t}function ti(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ei(){var t,e=yo(),n=[0,1],r=!1;function o(n){var o=ti(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(Jo(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,ao)).map(Jo)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return ei(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Bn.apply(o,arguments),Co(o)}function ni(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function ri(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function oi(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function ii(t,e,n=0,r=t.length-1,o){for(o=void 0===o?oi:function(t=nr){if(t===nr)return oi;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);ii(t,e,Math.max(n,Math.floor(e-a*c/i+l)),Math.min(r,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=n,u=r;for(ai(t,n,e),o(t[r],i)>0&&ai(t,n,r);a<u;){for(ai(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[n],i)?ai(t,n,u):(++u,ai(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function ai(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function ui(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return ri(t);if(e>=1)return ni(t);var r,o=(r-1)*e,i=Math.floor(o),a=ni(ii(t,i).subarray(0,i+1));return a+(ri(t.subarray(i+1))-a)*(o-i)}}function ci(t,e,n=ar){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function li(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=ci(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[lr(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(nr),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return li().domain(e).range(n).unknown(t)},Bn.apply(i,arguments)}function si(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[lr(o,e,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},a.range=function(t){return arguments.length?(r=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return si().domain([e,n]).range(i).unknown(t)},Bn.apply(Co(a),arguments)}function fi(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[lr(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return fi().domain(e).range(n).unknown(t)},Bn.apply(o,arguments)}Po=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?jo:(e=Do.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?jo:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Do.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=mo(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,y=t.width,d=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(d=!0,m="g"):Mo[m]||(void 0===v&&(v=12),g=!0,m="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?c:"",w=Mo[m],O=/[defgprs%]/.test(m);function M(t){var o,i,c,p=b,M=x;if("c"===m)M=w(t)+M,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,M=("s"===m?ko[8+vo/3]:"")+M+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){M=(46===c?a+t.slice(o+1):t.slice(o))+M,t=t.slice(0,o);break}}d&&!h&&(t=r(t,1/0));var P=p.length+t.length+M.length,A=P<y?new Array(y-P+1).join(e):"";switch(d&&h&&(t=r(A+t,A.length?y-M.length:1/0),A=""),n){case"<":t=p+t+M+A;break;case"=":t=p+A+t+M;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+M+A.slice(P);break;default:t=A+p+t+M}return u(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,e){var n=f(((t=mo(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(wo(e)/3))),o=Math.pow(10,-r),i=ko[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ao=Po.format,So=Po.formatPrefix;const pi=1e3,hi=6e4,yi=36e5,di=864e5,vi=6048e5,gi=31536e6;var mi=new Date,bi=new Date;function xi(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return u;do{u.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return u},o.filter=function(n){return xi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return mi.setTime(+e),bi.setTime(+r),t(mi),t(bi),Math.floor(n(mi,bi))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var wi=xi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));wi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?xi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):wi:null};const Oi=wi;wi.range;var Mi=xi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*pi)}),(function(t,e){return(e-t)/pi}),(function(t){return t.getUTCSeconds()}));const ji=Mi;Mi.range;var Pi=xi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*pi)}),(function(t,e){t.setTime(+t+e*hi)}),(function(t,e){return(e-t)/hi}),(function(t){return t.getMinutes()}));const Ai=Pi;Pi.range;var Si=xi((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*pi-t.getMinutes()*hi)}),(function(t,e){t.setTime(+t+e*yi)}),(function(t,e){return(e-t)/yi}),(function(t){return t.getHours()}));const Di=Si;Si.range;var ki=xi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*hi)/di),(t=>t.getDate()-1));const Ti=ki;function Ci(t){return xi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*hi)/vi}))}ki.range;var Ei=Ci(0),_i=Ci(1),Ii=Ci(2),Ri=Ci(3),Ni=Ci(4),zi=Ci(5),Ui=Ci(6),Li=(Ei.range,_i.range,Ii.range,Ri.range,Ni.range,zi.range,Ui.range,xi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Bi=Li;Li.range;var Hi=xi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Hi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Fi=Hi;Hi.range;var Wi=xi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*hi)}),(function(t,e){return(e-t)/hi}),(function(t){return t.getUTCMinutes()}));const $i=Wi;Wi.range;var Vi=xi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*yi)}),(function(t,e){return(e-t)/yi}),(function(t){return t.getUTCHours()}));const qi=Vi;Vi.range;var Yi=xi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/di}),(function(t){return t.getUTCDate()-1}));const Gi=Yi;function Zi(t){return xi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/vi}))}Yi.range;var Ki=Zi(0),Xi=Zi(1),Qi=Zi(2),Ji=Zi(3),ta=Zi(4),ea=Zi(5),na=Zi(6),ra=(Ki.range,Xi.range,Qi.range,Ji.range,ta.range,ea.range,na.range,xi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const oa=ra;ra.range;var ia=xi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ia.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const aa=ia;function ua(t,e,n,r,o,i){const a=[[ji,1,pi],[ji,5,5e3],[ji,15,15e3],[ji,30,3e4],[i,1,hi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,yi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,di],[r,2,1728e5],[n,1,vi],[e,1,2592e6],[e,3,7776e6],[t,1,gi]];function u(e,n,r){const o=Math.abs(n-e)/r,i=or((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(er(e/gi,n/gi,r));if(0===i)return Oi.every(Math.max(er(e,n,r),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:u(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},u]}ia.range;const[ca,la]=ua(aa,oa,Ki,Gi,qi,$i),[sa,fa]=ua(Fi,Bi,Ei,Ti,Di,Ai);function pa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ha(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ya(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var da,va,ga,ma={"-":"",_:" ",0:"0"},ba=/^\s*\d+/,xa=/^%/,wa=/[\\^$*+?|[\]().{}]/g;function Oa(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function Ma(t){return t.replace(wa,"\\$&")}function ja(t){return new RegExp("^(?:"+t.map(Ma).join("|")+")","i")}function Pa(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Aa(t,e,n){var r=ba.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Sa(t,e,n){var r=ba.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Da(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ka(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ta(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ca(t,e,n){var r=ba.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ea(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _a(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ia(t,e,n){var r=ba.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ra(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Na(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function za(t,e,n){var r=ba.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ua(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function La(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ba(t,e,n){var r=ba.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ha(t,e,n){var r=ba.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fa(t,e,n){var r=ba.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wa(t,e,n){var r=xa.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function $a(t,e,n){var r=ba.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Va(t,e,n){var r=ba.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function qa(t,e){return Oa(t.getDate(),e,2)}function Ya(t,e){return Oa(t.getHours(),e,2)}function Ga(t,e){return Oa(t.getHours()%12||12,e,2)}function Za(t,e){return Oa(1+Ti.count(Fi(t),t),e,3)}function Ka(t,e){return Oa(t.getMilliseconds(),e,3)}function Xa(t,e){return Ka(t,e)+"000"}function Qa(t,e){return Oa(t.getMonth()+1,e,2)}function Ja(t,e){return Oa(t.getMinutes(),e,2)}function tu(t,e){return Oa(t.getSeconds(),e,2)}function eu(t){var e=t.getDay();return 0===e?7:e}function nu(t,e){return Oa(Ei.count(Fi(t)-1,t),e,2)}function ru(t){var e=t.getDay();return e>=4||0===e?Ni(t):Ni.ceil(t)}function ou(t,e){return t=ru(t),Oa(Ni.count(Fi(t),t)+(4===Fi(t).getDay()),e,2)}function iu(t){return t.getDay()}function au(t,e){return Oa(_i.count(Fi(t)-1,t),e,2)}function uu(t,e){return Oa(t.getFullYear()%100,e,2)}function cu(t,e){return Oa((t=ru(t)).getFullYear()%100,e,2)}function lu(t,e){return Oa(t.getFullYear()%1e4,e,4)}function su(t,e){var n=t.getDay();return Oa((t=n>=4||0===n?Ni(t):Ni.ceil(t)).getFullYear()%1e4,e,4)}function fu(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Oa(e/60|0,"0",2)+Oa(e%60,"0",2)}function pu(t,e){return Oa(t.getUTCDate(),e,2)}function hu(t,e){return Oa(t.getUTCHours(),e,2)}function yu(t,e){return Oa(t.getUTCHours()%12||12,e,2)}function du(t,e){return Oa(1+Gi.count(aa(t),t),e,3)}function vu(t,e){return Oa(t.getUTCMilliseconds(),e,3)}function gu(t,e){return vu(t,e)+"000"}function mu(t,e){return Oa(t.getUTCMonth()+1,e,2)}function bu(t,e){return Oa(t.getUTCMinutes(),e,2)}function xu(t,e){return Oa(t.getUTCSeconds(),e,2)}function wu(t){var e=t.getUTCDay();return 0===e?7:e}function Ou(t,e){return Oa(Ki.count(aa(t)-1,t),e,2)}function Mu(t){var e=t.getUTCDay();return e>=4||0===e?ta(t):ta.ceil(t)}function ju(t,e){return t=Mu(t),Oa(ta.count(aa(t),t)+(4===aa(t).getUTCDay()),e,2)}function Pu(t){return t.getUTCDay()}function Au(t,e){return Oa(Xi.count(aa(t)-1,t),e,2)}function Su(t,e){return Oa(t.getUTCFullYear()%100,e,2)}function Du(t,e){return Oa((t=Mu(t)).getUTCFullYear()%100,e,2)}function ku(t,e){return Oa(t.getUTCFullYear()%1e4,e,4)}function Tu(t,e){var n=t.getUTCDay();return Oa((t=n>=4||0===n?ta(t):ta.ceil(t)).getUTCFullYear()%1e4,e,4)}function Cu(){return"+0000"}function Eu(){return"%"}function _u(t){return+t}function Iu(t){return Math.floor(+t/1e3)}function Ru(t){return new Date(t)}function Nu(t){return t instanceof Date?+t:+new Date(+t)}function zu(t,e,n,r,o,i,a,u,c,l){var s=yo(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(c(t)<t?h:u(t)<t?y:a(t)<t?d:i(t)<t?v:r(t)<t?o(t)<t?g:m:n(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Nu)):p().map(Ru)},s.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var n=p();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(Io(n,t)):s},s.copy=function(){return po(s,zu(t,e,n,r,o,i,a,u,c,l))},s}function Uu(){return Bn.apply(zu(sa,fa,Fi,Bi,Ei,Ti,Di,Ai,ji,va).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Lu(){return Bn.apply(zu(ca,la,aa,oa,Ki,Gi,qi,$i,ji,ga).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bu(){var t,e,n,r,o,i=0,a=1,u=co,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var n,r;return arguments.length?([n,r]=e,u=t(n,r),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(oo),l.rangeRound=s(io),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),l}}function Hu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Fu(){var t=Co(Bu()(co));return t.copy=function(){return Hu(t,Fu())},Hn.apply(t,arguments)}function Wu(){var t=Ho(Bu()).domain([1,10]);return t.copy=function(){return Hu(t,Wu()).base(t.base())},Hn.apply(t,arguments)}function $u(){var t=Vo(Bu());return t.copy=function(){return Hu(t,$u()).constant(t.constant())},Hn.apply(t,arguments)}function Vu(){var t=Ko(Bu());return t.copy=function(){return Hu(t,Vu()).exponent(t.exponent())},Hn.apply(t,arguments)}function qu(){return Vu.apply(null,arguments).exponent(.5)}function Yu(){var t=[],e=co;function n(n){if(null!=n&&!isNaN(n=+n))return e((lr(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(nr),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>ui(t,r/e)))},n.copy=function(){return Yu(e).domain(t)},Hn.apply(n,arguments)}function Gu(t,e){void 0===e&&(e=t,t=oo);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}function Zu(){var t,e,n,r,o,i,a,u=0,c=.5,l=1,s=1,f=co,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=Gu(t,[n,r,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),e=i(c=+c),n=i(l=+l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,h):[u,c,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(oo),h.rangeRound=y(io),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),n=a(l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,h}}function Ku(){var t=Co(Zu()(co));return t.copy=function(){return Hu(t,Ku())},Hn.apply(t,arguments)}function Xu(){var t=Ho(Zu()).domain([.1,1,10]);return t.copy=function(){return Hu(t,Xu()).base(t.base())},Hn.apply(t,arguments)}function Qu(){var t=Vo(Zu());return t.copy=function(){return Hu(t,Qu()).constant(t.constant())},Hn.apply(t,arguments)}function Ju(){var t=Ko(Zu());return t.copy=function(){return Hu(t,Ju()).exponent(t.exponent())},Hn.apply(t,arguments)}function tc(){return Ju.apply(null,arguments).exponent(.5)}da=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=ja(o),s=Pa(o),f=ja(i),p=Pa(i),h=ja(a),y=Pa(a),d=ja(u),v=Pa(u),g=ja(c),m=Pa(c),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:qa,e:qa,f:Xa,g:cu,G:su,H:Ya,I:Ga,j:Za,L:Ka,m:Qa,M:Ja,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:_u,s:Iu,S:tu,u:eu,U:nu,V:ou,w:iu,W:au,x:null,X:null,y:uu,Y:lu,Z:fu,"%":Eu},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:pu,e:pu,f:gu,g:Du,G:Tu,H:hu,I:yu,j:du,L:vu,m:mu,M:bu,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:_u,s:Iu,S:xu,u:wu,U:Ou,V:ju,w:Pu,W:Au,x:null,X:null,y:Su,Y:ku,Z:Cu,"%":Eu},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=y.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:Na,e:Na,f:Fa,g:Ea,G:Ca,H:Ua,I:Ua,j:za,L:Ha,m:Ra,M:La,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ia,Q:$a,s:Va,S:Ba,u:Sa,U:Da,V:ka,w:Aa,W:Ta,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:Ea,Y:Ca,Z:_a,"%":Wa};function O(t,e){return function(n){var r,o,i,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=ma[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function M(t,e){return function(n){var r,o,i=ya(1900,void 0,1);if(j(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=ha(ya(i.y,0,1))).getUTCDay(),r=o>4||0===o?Xi.ceil(r):Xi(r),r=Gi.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=pa(ya(i.y,0,1))).getDay(),r=o>4||0===o?_i.ceil(r):_i(r),r=Ti.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),o="Z"in i?ha(ya(i.y,0,1)).getUTCDay():pa(ya(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,ha(i)):pa(i)}}function j(t,e,n,r){for(var o,i,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in ma?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),x.x=O(n,x),x.X=O(r,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=M(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=M(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),va=da.format,da.parse,ga=da.utcFormat,da.utcParse;var ec=["linear","time","log","sqrt"];function nc(t){var e;return"scale".concat((e=t)&&e[0].toUpperCase()+e.slice(1))}function rc(t){return"function"==typeof t?a()(t.copy)&&a()(t.domain)&&a()(t.range):"string"==typeof t&&p()(ec,t)}function oc(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function ic(t,e){if(!t.data)return"linear";var n=Et(t[e]);return Dn(t.data.map((function(t){var r=Jt()(n(t))?n(t)[e]:n(t);return void 0!==r?r:t[e]})))?"time":"linear"}function ac(t,e){return function(t,e){if(oc(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:function(t){if("string"==typeof t)return t;var e=uc.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}(n)}}(t,e)||ic(t,e)}var uc=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function cc(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function lc(t,e){return cc(t)?t.reduce((function(t,n,r){return e&&e[r]&&(n=lc(n)),t[r]=n,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function sc(t){return function(t){if(Array.isArray(t))return fc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return fc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pc(t){var e;return cc(e=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(e)?lc(t,{errorX:!0,errorY:!0}):t}function hc(t){return cc(t)?t.size:t.length}function yc(e,n){var r=(Jt()(e.domain)?e.domain[n]:e.domain)||function(e,n){var r,o=function(e,n){if(oc(e,n)){var r=e.scale[n]||e.scale;return rc(r)?a()(r)?r:t[nc(r)]():void 0}}(e,n);if(o)return"string"==typeof o?rc(r=o)?t[nc(r)]():Eo():o;var i=function(t,e){var n;if(t.domain&&t.domain[e]?n=t.domain[e]:t.domain&&Array.isArray(t.domain)&&(n=t.domain),n)return Dn(n)?"time":"linear"}(e,n)||ic(e,n);return t[nc(i)]()}(e,n).domain(),o=e.samples||1,i=Math.max.apply(Math,sc(r)),u=Math.min.apply(Math,sc(r)),c=(i-u)/o,l=Nn()(u,i,c);return In()(l)===i?l:l.concat(i)}function dc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!e)return t;"x"!==e&&"y"!==e||(e="_".concat(e));var r="ascending"===n?"asc":"desc";return Xt()(t,e,r)}function vc(t,e){var n=function(t,e){var n=t.tickValues,r=t.tickFormat;return(n&&(Array.isArray(n)||n[e])?n[e]||n:r&&Array.isArray(r)?r:[]).filter((function(t){return"string"==typeof t}))}(t,e),r=xc(t,e),o=function(t,e){if(!Array.isArray(t.data)&&!cc(t.data))return[];var n=Et(void 0===t[e]?e:t[e]);return dc(t.data.reduce((function(t,e){return t.push(pc(e)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,e){return e=pc(e),t.push(n(e)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,e){return null!=e&&-1===t.indexOf(e)&&t.push(e),t}),[])}(t,e),i=Un()([].concat(sc(n),sc(r),sc(o)));return 0===i.length?null:i.reduce((function(t,e,n){return t[e]=n+1,t}),{})}function gc(t,e,n){if(!Array.isArray(t)&&!cc(t)||hc(t)<1)return[];var r,o=["x","y","y0"],i=(n=Array.isArray(n)?n:o).reduce((function(t,n){var r;return t[n]=Et(void 0!==e[r=n]?e[r]:r),t}),{}),u=En()(n,o)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===u&&(r={x:-1!==n.indexOf("x")?vc(e,"x"):void 0,y:-1!==n.indexOf("y")?vc(e,"y"):void 0,y0:-1!==n.indexOf("y0")?vc(e,"y"):void 0});var l=u?t:t.reduce((function(t,e,o){var a={x:o,y:e=pc(e)},u=n.reduce((function(t,n){var o=i[n](e),u=void 0!==o?o:a[n];return void 0!==u&&("string"==typeof u&&r[n]?(t["".concat(n,"Name")]=u,t["_".concat(n)]=r[n][u]):t["_".concat(n)]=u),t}),{}),l=A()({},u,e);return c()(l)||t.push(l),t}),[]),s=function(t,e){var n=1/Number.MAX_SAFE_INTEGER,r={x:ac(e,"x"),y:ac(e,"y")};if("log"!==r.x&&"log"!==r.y)return t;var o=function(t,e){return"log"!==r[e]||0!==t["_".concat(e)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var e=o(t,"x")?t._x:n,r=o(t,"y")?t._y:n,i=o(t,"y0")?t._y0:n;return A()({},t,{_x:e,_y:r,_y0:i})}(t)}))}(dc(l,e.sortKey,e.sortOrder),e);return function(t,e){var n,r=!!t.eventKey,o=(n=t.eventKey,a()(n)?n:null==n?function(){}:Ot()(n));return e.map((function(t,e){if(void 0!==t.eventKey)return t;if(r){var n=o(t,e);return void 0!==n?A()({eventKey:n},t):t}return t}))}(e,s)}function mc(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function bc(t){return t.data?gc(t.data,t):gc(function(t){var e=yc(t,"x"),n=yc(t,"y");return e.map((function(t,e){return{x:t,y:n[e]}}))}(t),t)}function xc(t,e){if(!t.categories)return[];var n=mc(t,e),r=n&&n.filter((function(t){return"string"==typeof t}));return r?r.filter((function(t){return void 0!==t})):[]}function wc(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=D().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return p()(["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],n)}function Oc(t,e,n){var r=e.a,o=e.d,i=e.e,a=e.f;return"y"===n?o*t+a:r*t+i}function Mc(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function jc(t,e){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var n=function(t){return t.getScreenCTM().inverse()}(e=e||Mc(t));return{x:Oc(t.clientX,n,"x"),y:Oc(t.clientY,n,"y")}}function Pc(t,e){var n=t.scale,r=t.horizontal;return e=e||{x:n.x.domain(),y:n.y.domain()},{x:r?[n.y(e.y[0]),n.y(e.y[1])]:[n.x(e.x[0]),n.x(e.x[1])],y:r?[n.x(e.x[0]),n.x(e.x[1])]:[n.y(e.y[0]),n.y(e.y[1])]}}function Ac(t,e,n,r){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=n-a.x,c=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(s),y:e.y.invert(l)}}return{x:i?e.x.invert(r):e.x.invert(n),y:i?e.y.invert(n):e.y.invert(r)}}function Sc(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.scale,a=Ac(t,i,e,r),u=Ac(t,i,n,o),c=function(t,e){return[Tn([t,e]),kn([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var Dc=r(8266),kc=r.n(Dc),Tc=r(1080);function Cc(t){return function(t){if(Array.isArray(t))return Ec(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ec(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ec(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ec(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _c={withinBounds:function(t,e){var n=t.width,r=t.height,o=t.polar,i=t.origin,a=t.scale,u=At(t,"voronoiPadding"),c=e.x,l=e.y;if(o){var s=Math.pow(c-i.x,2)+Math.pow(l-i.y,2),f=Math.max.apply(Math,Cc(a.y.range()));return s<Math.pow(f,2)}return c>=u.left&&c<=n-u.right&&l>=u.top&&l<=r-u.bottom},getDatasets:function(t){var e={x:Tn(t.domain.x),y:Tn(t.domain.y)},n=D().Children.toArray(t.children),r=function(n,r,o){var i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:t.style;return n.map((function(n,o){var u=jt(n),c=u.x,l=u.y,s=u.y0,f=(+c+ +u.x0)/2,p=(+l+ +s)/2;return A()({_voronoiX:"y"===t.voronoiDimension?e.x:f,_voronoiY:"x"===t.voronoiDimension?e.y:p,eventKey:o,childName:r,continuous:i,style:a},n)}))};if(t.data)return r(t.data);var o=function(t){var e=bc(t);return Array.isArray(e)&&e.length>0?e:void 0};return _t(n,(function(e,n){var i=(e.props||{}).name||n,u=t.voronoiBlacklist||[],c=u.filter(Mn()),l=u.filter(E()).some((function(t){return t.test(i)}));if(!wc(e)||p()(c,i)||l)return null;var s=(e.type&&a()(e.type.getData)?e.type.getData:o)(e.props);return s?r(s,i,e):null}),t)},findPoints:function(t,e){return t.filter((function(t){return e._voronoiX===t._voronoiX&&e._voronoiY===t._voronoiY}))},withinRadius:function(t,e,n){if(!t)return!1;if(!n)return!0;var r=e.x,o=e.y;return Math.pow(r-t[0],2)+Math.pow(o-t[1],2)<Math.pow(n,2)},getVoronoiPoints:function(t,e){var n=this.getDatasets(t),r=n.map((function(e){var n=Pt(t,e);return[n.x,n.y]})),o=Tc.Z.from(r).find(e.x,e.y);return{points:this.withinRadius(r[o],e,t.radius)?this.findPoints(n,n[o]):[],index:o}},getActiveMutations:function(t,e){var n=e.childName,r=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var u=o?["data"]:[],l=a&&!i?u:u.concat("labels");return c()(l)?[]:l.map((function(t){var o=!0===r&&"data"===t?"all":e.eventKey;return{childName:n,eventKey:o,target:t,mutation:function(){return{active:!0}}}}))},getInactiveMutations:function(t,e){var n=e.childName,r=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var u=o?["data"]:[],l=a&&!i?u:u.concat("labels");return c()(l)?[]:l.map((function(t){var o=r&&"data"===t?"all":e.eventKey;return{childName:n,eventKey:o,target:t,mutation:function(){return null}}}))},getParentMutation:function(t,e,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:t,mousePosition:e,parentSVG:n,vIndex:r}}}]},onActivated:function(t,e){a()(t.onActivated)&&t.onActivated(e,t)},onDeactivated:function(t,e){a()(t.onDeactivated)&&t.onDeactivated(e,t)},onMouseLeave:function(t,e){var n,r=this,o=e.activePoints||[];this.onDeactivated(e,o);var i=o.length?o.map((function(t){return r.getInactiveMutations(e,t)})):[];return(n=this.getParentMutation([])).concat.apply(n,Cc(i))},onMouseMove:function(t,e){var n=this,r=e.activePoints||[],o=e.parentSVG||Mc(t),i=jc(t,o);if(!this.withinBounds(e,i)){var a;this.onDeactivated(e,r);var u=r.length?r.map((function(t){return n.getInactiveMutations(e,t)})):[];return(a=this.getParentMutation([],i,o)).concat.apply(a,Cc(u))}var c=this.getVoronoiPoints(e,i),l=c.points,s=void 0===l?[]:l,f=c.index,p=this.getParentMutation(s,i,o,f);if(r.length&&kc()(s,r))return p;this.onActivated(e,s),this.onDeactivated(e,r);var h=s.length?s.map((function(t){return n.getActiveMutations(e,t)})):[],y=r.length?r.map((function(t){return n.getInactiveMutations(e,t)})):[];return p.concat.apply(p,Cc(y).concat(Cc(h)))}};const Ic={onMouseLeave:_c.onMouseLeave.bind(_c),onMouseMove:Pn()(_c.onMouseMove.bind(_c),32,{leading:!0,trailing:!1})};var Rc=["childName","eventKey","style","continuous"];function Nc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zc(Object(n),!0).forEach((function(e){Lc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fc(t,e){return Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fc(t,e)}function Wc(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function $c(t){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$c(t)}var Vc=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fc(t,e)}(u,t);var e,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=$c(r);if(o){var n=$c(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Wc(this,t)});function u(){return Bc(this,u),i.apply(this,arguments)}return e=u,n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.voronoiDimension;return e&&n?"x"===n?"y":"x":n}},{key:"getPoint",value:function(t){return xt()(t,["_x","_x1","_x0","_y","_y1","_y0"])}},{key:"getLabelPosition",value:function(t,e,n){var r=t.mousePosition,o=t.mouseFollowTooltips,i=this.getDimension(t),a=Pt(t,this.getPoint(n[0])),u=o?r:void 0;if(!i||n.length<2)return Uc(Uc({},a),{},{center:j()({},e.center,u)});var c="y"===i?r.x:a.x,l="x"===i?r.y:a.y;return u=o?r:{x:c,y:l},{x:c,y:l,center:j()({},e.center,u)}}},{key:"getStyle",value:function(t,e,n){var r=t.labels,o=t.labelComponent,i=t.theme,u=o.props||{},c=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},l="flyout"===n?u.flyoutStyle:u.style;return e.reduce((function(t,e,o){var i=j()({},u,{datum:e,active:!0}),s=a()(r)?r(i):void 0,f=void 0!==s?"".concat(s).split("\n"):[],p=e.style&&e.style[n]||{},h=Array.isArray(l)?l[o]:l,y=Dt(j()({},h,p,c[n]),i),d=f.length?f.map((function(){return y})):[y];return t.concat(d)}),[])}},{key:"getDefaultLabelProps",value:function(t,e){var n=t.voronoiDimension,r=t.horizontal,o=t.mouseFollowTooltips,i=this.getPoint(e[0]),a=n&&e.length>1,u=void 0!==i._y1?i._y1:i._y;return{orientation:o?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!o)||void 0}}},{key:"getLabelProps",value:function(t,e){var n=t.labels,r=t.scale,o=t.labelComponent,i=t.theme,u=t.width,c=t.height,l=o.props||{},s=e.reduce((function(t,e){var r=j()({},l,{datum:e,active:!0}),o=a()(n)?n(r):null;return null==o?t:t=t.concat("".concat(o).split("\n"))}),[]),f=e[0],p=f.childName,h=f.eventKey,y=(f.style,f.continuous,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(f,Rc)),d=t.name===p?p:"".concat(t.name,"-").concat(p),v=j()({key:"".concat(d,"-").concat(h,"-voronoi-tooltip"),id:"".concat(d,"-").concat(h,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:e,datum:y,scale:r,theme:i},l,{text:s,width:u,height:c,style:this.getStyle(t,e,"labels"),flyoutStyle:this.getStyle(t,e,"flyout")[0]},this.getDefaultLabelProps(t,e)),g=this.getLabelPosition(t,v,e);return j()({},g,v)}},{key:"getTooltip",value:function(t){var e=t.labels,n=t.activePoints,r=t.labelComponent;if(!e)return null;if(Array.isArray(n)&&n.length){var o=this.getLabelProps(t,n),i=o.text;return(Array.isArray(i)?i.filter(Boolean).length:i)?D().cloneElement(r,o):null}return null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return Nc(t)}(e=D().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Nc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nc(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getTooltip(t)]);var e}}],n&&Hc(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(t),e.displayName="VictoryVoronoiContainer",e.propTypes=Uc(Uc({},Zt.propTypes),{},{activateData:T().bool,activateLabels:T().bool,disable:T().bool,labelComponent:T().element,labels:T().func,mouseFollowTooltips:T().bool,onActivated:T().func,onDeactivated:T().func,radius:T().number,voronoiBlacklist:T().arrayOf(T().oneOfType([T().string,V])),voronoiDimension:T().oneOf(["x","y"]),voronoiPadding:T().oneOfType([T().number,T().shape({top:T().number,bottom:T().number,left:T().number,right:T().number})])}),e.defaultProps=Uc(Uc({},Zt.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:D().createElement(wn,null),voronoiPadding:5}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:Ic.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:Ic.onMouseLeave(e,n)},onMouseMove:function(e,n){return t.disable?{}:Ic.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Ic.onMouseMove(e,n)}}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},e};Vc(Zt);var qc=r(1261),Yc=r.n(qc),Gc=(r(567),r(268),r(5453)),Zc=r.n(Gc),Kc=r(7957),Xc=r.n(Kc),Qc=r(5921),Jc=r.n(Qc);function tl(t){return function(t){if(Array.isArray(t))return el(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return el(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?el(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function el(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nl(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===n?Math.max.apply(Math,tl(t)):Math.min.apply(Math,tl(t))},o="max"===n?-1/0:1/0,i=!1,a=Zc()(t).reduce((function(t,n){var o=void 0!==n["_".concat(e,"0")]?n["_".concat(e,"0")]:n["_".concat(e)],a=void 0!==n["_".concat(e,"1")]?n["_".concat(e,"1")]:n["_".concat(e)],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function rl(t,e){return t=a()(t)?t:il,e=a()(e)?e:ol,function(n,r){var o=function(t,e){var n=cl(t,e),r=ul(t,e);return Jt()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==n&&void 0!==r?al(n,r):void 0}(n,r);if(o)return e(o,n,r);var i=mc(n,r),a=i?function(t,e,n){n=n||mc(t,e);var r=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,u=void 0===a?360:a;if(n){var c,l=cl(t,e),s=ul(t,e),f=(c=n,Array.isArray(c)&&c.some((function(t){return"string"==typeof t}))?xc(t,e):[]),p=0===f.length?null:f.reduce((function(t,e,n){return t[e]=n+1,t}),{}),h=p?n.map((function(t){return p[t]})):n,y=al(void 0!==l?l:Tn(h),void 0!==s?s:kn(h));return r&&"x"===e&&360===Math.abs(i-u)?ll(y,h):y}}(n,r,i):t(n,r);return a?e(a,n,r):void 0}}function ol(t,e,n){return function(t,e,n){return"log"!==ac(e,n)?t:(o=(r=t)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(t,e,n){if(!e.domainPadding)return t;var r=cl(e,n),o=ul(e,n),i=function(t,e){var n=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return Jt()(t.domainPadding)?n(t.domainPadding[e]):n(t.domainPadding)}(e,n);if(!i.left&&!i.right)return t;var a=Tn(t),u=kn(t),c=function(t,e){return e?"x"===t?"y":"x":t}(n,e.horizontal),l=Ct(e,c),s=Math.abs(l[0]-l[1]),f=Math.max(s-i.left-i.right,1),p=Math.abs(u.valueOf()-a.valueOf())/f*s,h=p*i.left/s,y=p*i.right/s,d={min:a.valueOf()-h,max:u.valueOf()+y},v=Jt()(e.singleQuadrantDomainPadding)?e.singleQuadrantDomainPadding[n]:e.singleQuadrantDomainPadding,g=function(t,e){return"min"===e&&a>=0&&t<=0||"max"===e&&u<=0&&t>=0?0:t};if((a>=0&&d.min<=0||u<=0&&d.max>=0)&&!1!==v){var m={left:Math.abs(u-a)*i.left/s,right:Math.abs(u-a)*i.right/s},b={min:g(a.valueOf()-m.left,"min"),max:g(u.valueOf()+m.right,"max")},x={left:Math.abs(b.max-b.min)*i.left/s,right:Math.abs(b.max-b.min)*i.right/s};d={min:g(a.valueOf()-x.left,"min"),max:g(u.valueOf()+x.right,"max")}}var w={min:void 0!==r?r:d.min,max:void 0!==o?o:d.max};return a instanceof Date||u instanceof Date?al(new Date(w.min),new Date(w.max)):al(w.min,w.max)}(t,e,n),e,n)}function il(t,e,n){n=n||bc(t);var r=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,u=void 0===a?360:a,c=cl(t,e),l=ul(t,e);if(n.length<1)return void 0!==c&&void 0!==l?al(c,l):void 0;var s=al(void 0!==c?c:nl(n,e,"min"),void 0!==l?l:nl(n,e,"max"));return r&&"x"===e&&360===Math.abs(i-u)?ll(s,function(t,e){return Zc()(t).map((function(t){return t["_".concat(e)]&&void 0!==t["_".concat(e)][1]?t["_".concat(e)][1]:t["_".concat(e)]}))}(n,e)):s}function al(t,e){var n,r,o,i;return+t==+e?(r=0===(n=e)?2*Math.pow(10,-10):Math.pow(10,-10),o=n instanceof Date?new Date(+n-1):+n-r,i=n instanceof Date?new Date(+n+1):+n+r,0===n?[0,i]:[o,i]):[t,e]}function ul(t,e){return Jt()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||Xc()(t.maxDomain)?t.maxDomain:void 0}function cl(t,e){return Jt()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||Xc()(t.minDomain)?t.minDomain:void 0}function ll(t,e){var n=Jc()(e.sort((function(t,e){return t-e}))),r=n[1]-n[0];return[t[0],t[1]+r]}function sl(t,e,n){var r=n?n.slice(0):D().Children.toArray(t.children),o=t.data?bc(t):void 0,i=t.polar,u=t.startAngle,c=t.endAngle,l=t.categories,s=t.minDomain,f=t.maxDomain,h={horizontal:t.horizontal,polar:i,startAngle:u,endAngle:c,minDomain:s,maxDomain:f,categories:l},y=o?A()(h,{data:o}):h,d=_t(r,(function(t){var n=A()({},t.props,y);return function(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=D().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return p()(["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],n)}(t)?t.type&&a()(t.type.getDomain)?t.props&&t.type.getDomain(n,e):function(t,e){return rl()(t,e)}(n,e):null}),t);return[0===d.length?0:Tn(d),0===d.length?1:kn(d)]}function fl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return pl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pl(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var hl={checkDomainEquality:function(t,e){var n=function(n){var r=t&&t[n],o=e&&e[n];return!r&&!o||!(!r||!o)&&+r[0]==+o[0]&&+r[1]==+o[1]};return n("x")&&n("y")},scale:function(t,e,n,r){var o=fl(t,2),i=o[0],a=o[1],u=Math.abs(a-i),c=n.minimumZoom&&n.minimumZoom[r],l=this.getScaleFactor(e);if(c&&u<=c&&l<1)return t;var s=fl(this.getDomain(n)[r],2),f=s[0],p=s[1],h=this.getScalePercent(e,n,r),y=l*i+h*(l*u),d=this.getMinimumDomain(y,n,r),v=fl(this.getScaledDomain(t,l,h),2),g=v[0],m=v[1],b=[g>f&&g<p?g:f,m<p&&m>f?m:p],x=Math.abs(d[1]-d[0])>Math.abs(b[1]-b[0])?d:b;return Dn([f,p])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(t,e,n){var r=fl(t,2),o=r[0],i=r[1],a=Math.abs(i-o),u=a-a*e,c=+o+u*n,l=+i-u*(1-n);return[Math.min(c,l),Math.max(c,l)]},getMinimumDomain:function(t,e,n){var r=e.minimumZoom,o=fl(this.getDomain(e)[n],2),i=o[0],a=o[1],u=Math.abs(i-a)/1e3,c=r&&r[n]||u,l=t-c/2,s=t+c/2;return[l>i&&l<a?l:i,s<a&&s>i?s:+i+c/2]},zoommingOut:function(t){return t.deltaY>0},getScaleFactor:function(t){var e=this.zoommingOut(t)?1:-1,n=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+e*n)},getScalePercent:function(t,e,n){var r=this.getDomain(e),o=fl(r[n],2),i=o[0],a=o[1];return(this.getPosition(t,e,r)[n]-i)/Math.abs(a-i)},getPosition:function(t,e,n){var r=jc(t),o=r.x,i=r.y,a={x:e.scale.x.domain(n.x),y:e.scale.y.domain(n.y)};return Ac(e,a,o,i)},pan:function(t,e,n){var r,o=fl(t.map((function(t){return+t})),2),i=o[0],a=o[1],u=fl(e.map((function(t){return+t})),2),c=u[0],l=u[1],s=i+n,f=a+n;return r=s>c&&f<l?[s,f]:s<c?[c,c+(a-i)]:f>l?[l-(a-i),l]:t,Dn(t)||Dn(e)?r.map((function(t){return new Date(t)})):r},getDomainScale:function(t,e,n){var r=fl(Array.isArray(t)?t:t[n],2),o=r[0],i=r[1],a=e[n].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation:function(t){var e=t.context.animationTimer,n=t.context.transitionTimer;return n.bypassAnimation(),e.bypassAnimation(),Yc()((function(){e.resumeAnimation(),n.resumeAnimation()}),16)},getLastDomain:function(t,e){var n=t.zoomDomain,r=t.cachedZoomDomain,o=t.currentDomain,i=t.domain;return n&&!this.checkDomainEquality(n,r)?j()({},n,i):j()({},o||n||e,i)},getDomain:function(t){var e=t.originalDomain,n=t.domain,r=t.children,o=t.zoomDimension,i=S.Children.toArray(r),a={};return i.length&&(a=o?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},o,sl(t,o,i)):{x:sl(t,"x",i),y:sl(t,"y",i)}),j()({},a,e,n)},onMouseDown:function(t,e){if(t.preventDefault(),e.allowPan){var n=e.parentSVG||Mc(t),r=jc(t,n),o=r.x,i=r.y;return[{target:"parent",mutation:function(){return{startX:o,startY:i,panning:!0,parentSVG:n,parentControlledProps:["domain"]}}}]}},onMouseUp:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(t,e,n,r){if(e.panning&&e.allowPan){var o=e.scale,i=e.startX,u=e.startY,c=e.onZoomDomainChange,l=e.zoomDomain,s=e.zoomDimension,f=e.horizontal,p=e.parentSVG||Mc(t),h=jc(t,p),y=h.x,d=h.y,v=this.getDomain(e),g=this.getLastDomain(e,v),m=f?i-y:d-u,b=(f?d-u:i-y)/this.getDomainScale(g,o,"x"),x=m/this.getDomainScale(g,o,"y"),w={x:"y"===s?v.x:this.pan(g.x,v.x,b),y:"x"===s?v.y:this.pan(g.y,v.y,x)},O=this.handleAnimation(r),M={parentControlledProps:["domain"],startX:y,startY:d,parentSVG:p,currentDomain:w,originalDomain:v,cachedZoomDomain:l,zoomActive:!this.checkDomainEquality(v,g)};return a()(c)&&c(w,j()({},M,e)),[{target:"parent",callback:O,mutation:function(){return M}}]}},onWheel:function(t,e,n,r){if(e.allowZoom){var o=e.onZoomDomainChange,i=e.zoomDimension,u=e.zoomDomain,c=this.getDomain(e),l=this.getLastDomain(e,c),s=l.x,f=l.y,p={x:"y"===i?l.x:this.scale(s,t,e,"x"),y:"x"===i?l.y:this.scale(f,t,e,"y")},h=this.handleAnimation(r),y={currentDomain:p,originalDomain:c,cachedZoomDomain:u,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||e.zoomActive&&!this.checkDomainEquality(c,l)};return a()(o)&&o(p,j()({},y,e)),[{target:"parent",callback:h,mutation:function(){return y}}]}}};const yl={checkDomainEquality:hl.checkDomainEquality.bind(hl),onMouseDown:hl.onMouseDown.bind(hl),onMouseUp:hl.onMouseUp.bind(hl),onMouseLeave:hl.onMouseLeave.bind(hl),onMouseMove:Pn()(hl.onMouseMove.bind(hl),16,{leading:!0,trailing:!1}),onWheel:Pn()(hl.onWheel.bind(hl),16,{leading:!0,trailing:!1})};var dl=function(t){return D().createElement("defs",null,D().createElement("clipPath",{id:t.clipId},t.children))};dl.propTypes={children:T().oneOfType([T().arrayOf(T().node),T().node]),clipId:T().oneOfType([T().number,T().string])};var vl=["desc"];function gl(){return gl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gl.apply(this,arguments)}var ml=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,vl);return e?D().createElement("circle",gl({vectorEffect:"non-scaling-stroke"},n),D().createElement("desc",null,e)):D().createElement("circle",gl({vectorEffect:"non-scaling-stroke"},n))};function bl(t){return function(t){if(Array.isArray(t))return xl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return xl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ol(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wl(Object(n),!0).forEach((function(e){Ml(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ml(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pl(t,e){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pl(t,e)}function Al(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Sl(t){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sl(t)}var Dl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pl(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Sl(r);if(o){var n=Sl(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Al(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).clipId=void 0,e.clipId=x()(t)&&void 0!==t.clipId?t.clipId:O()("victory-clip-"),e}return e=a,n=[{key:"calculateAttributes",value:function(t){var e=t.polar,n=t.origin,r=t.clipWidth,o=void 0===r?0:r,i=t.clipHeight,a=void 0===i?0:i,u=t.translateX,c=void 0===u?0:u,l=t.translateY,s=void 0===l?0:l,f=At({padding:t.clipPadding}),p=t.radius||Tt(t);return{x:(e?n.x:c)-f.left,y:(e?n.y:s)-f.top,width:Math.max((e?p:o)+f.left+f.right,0),height:Math.max((e?p:a)+f.top+f.bottom,0)}}},{key:"renderClippedGroup",value:function(t,e){var n=Bt(t),r=t.style,o=t.events,i=t.transform,a=t.children,u=t.className,c=t.groupComponent,l=t.tabIndex,s=this.renderClipComponent(t,e),f=A()({className:u,style:r,transform:i,key:"clipped-group-".concat(e),clipPath:"url(#".concat(e,")")},o);return D().cloneElement(c,Ol(Ol({},f),{},{tabIndex:l},n),[s].concat(bl(D().Children.toArray(a))))}},{key:"renderGroup",value:function(t){var e=t.style,n=t.events,r=t.transform,o=t.children,i=t.className,a=t.groupComponent,u=t.tabIndex;return D().cloneElement(a,A()({className:i,style:e,transform:r,"aria-label":t["aria-label"],tabIndex:u},n),o)}},{key:"renderClipComponent",value:function(t,e){var n,r=t.polar,o=t.origin,i=t.clipWidth,a=void 0===i?0:i,u=t.clipHeight,c=void 0===u?0:u,l=t.translateX,s=void 0===l?0:l,f=t.translateY,p=void 0===f?0:f,h=t.circleComponent,y=t.rectComponent,d=t.clipPathComponent,v=At({padding:t.clipPadding}),g=v.top,m=v.bottom,b=v.left,x=v.right;if(r){var w=t.radius||Tt(t),O={r:Math.max(w+b+x,w+g+m,0),cx:o.x-b,cy:o.y-g};n=D().cloneElement(h,O)}else{var M={x:s-b,y:p-g,width:Math.max(a+b+x,0),height:Math.max(c+g+m,0)};n=D().cloneElement(y,M)}return D().cloneElement(d,A()({key:"clip-path-".concat(e)},t,{clipId:e}),n)}},{key:"getClipValue",value:function(t,e){var n={x:t.clipWidth,y:t.clipHeight};if(void 0!==n[e])return n[e];var r=Ct(t,e);return r&&Math.abs(r[0]-r[1])||void 0}},{key:"getTranslateValue",value:function(t,e){var n={x:t.translateX,y:t.translateY};if(void 0!==n[e])return n[e];var r=Ct(t,e);return r?Math.min.apply(Math,bl(r)):void 0}},{key:"render",value:function(){var t=this.getClipValue(this.props,"y"),e=this.getClipValue(this.props,"x");if(void 0===e||void 0===t)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=j()({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}],n&&jl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(D().Component);function kl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kl(Object(n),!0).forEach((function(e){Cl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function El(t){return function(t){if(Array.isArray(t))return _l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return _l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Il(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nl(t,e){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nl(t,e)}function zl(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ul(t){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ul(t)}Dl.displayName="VictoryClipContainer",Dl.role="container",Dl.propTypes={"aria-label":T().string,children:T().oneOfType([T().arrayOf(T().node),T().node]),circleComponent:T().element,className:T().string,clipHeight:H,clipId:T().oneOfType([T().number,T().string]),clipPadding:T().shape({top:T().number,bottom:T().number,left:T().number,right:T().number}),clipPathComponent:T().element,clipWidth:H,events:T().object,groupComponent:T().element,origin:T().shape({x:H,y:H}),polar:T().bool,radius:H,style:T().object,tabIndex:T().number,transform:T().string,translateX:T().number,translateY:T().number},Dl.defaultProps={circleComponent:D().createElement(ml,null),rectComponent:D().createElement(Ue,null),clipPathComponent:D().createElement(dl,null),groupComponent:D().createElement("g",null)};var Ll=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nl(t,e)}(u,t);var e,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ul(r);if(o){var n=Ul(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return zl(this,t)});function u(){return Il(this,u),i.apply(this,arguments)}return e=u,n=[{key:"clipDataComponents",value:function(t,e){var n=e.scale,r=e.clipContainerComponent,o=e.polar,i=e.origin,a=e.horizontal,u=a?n.y.range():n.x.range(),c=a?n.x.range():n.y.range(),l=Math.abs(u[0]-u[1]),s=Math.abs(c[0]-c[1]),f=Math.max.apply(Math,El(c)),p=D().cloneElement(r,Tl({clipWidth:l,clipHeight:s,translateX:Math.min.apply(Math,El(u)),translateY:Math.min.apply(Math,El(c)),polar:o,origin:o?i:void 0,radius:o?f:void 0},r.props));return D().Children.toArray(t).map((function(t){return wc(t)?D().cloneElement(t,{groupComponent:p}):t}))}},{key:"modifyPolarDomain",value:function(t,e){return{x:e.x,y:[0,t.y[1]]}}},{key:"downsampleZoomData",value:function(t,e,n){var r=t.downsample,o=function(t){var n=t.data,r=t.x,o=t.y,i=e.type&&a()(e.type.getData)?e.type.getData:function(){};return!Array.isArray(n)||r||o?i(t):n}(e.props);if(r&&n&&o){var i=!0===r?150:r,u=t.zoomDimension||"x",c=o.findIndex((function(t){return t[u]>=n[u][0]})),l=o.findIndex((function(t){return t[u]>n[u][1]}));return 0!==c&&(c-=1),-1!==l&&(l+=1),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=hc(t);if(r>e){var o=Math.pow(2,Math.ceil(Math.log2(r/e)));return t.filter((function(t,e){return(e+n)%o==0}))}return t}(o.slice(c,l),i,c)}}},{key:"modifyChildren",value:function(t){var e=this;return D().Children.toArray(t.children).map((function(n){var r,o=n.type&&n.type.role,i=wc(n),a=t.currentDomain,u=t.zoomActive,c=t.allowZoom,l=j()({},t.originalDomain,t.domain),s=j()({},t.zoomDomain,t.domain),f=j()({},t.cachedZoomDomain,t.domain);r=yl.checkDomainEquality(s,f)?c&&!u?n.props.domain:j()({},a,l):s;var p=t.polar?e.modifyPolarDomain(r,l):r;p&&t.zoomDimension&&(p=Tl(Tl({},s),{},Cl({},t.zoomDimension,p[t.zoomDimension])));var h=i&&"stack"!==o?{domain:p,data:e.downsampleZoomData(t,n,p)}:{domain:p};return D().cloneElement(n,j()(h,n.props))}))}},{key:"getChildren",value:function(t){var e=this.modifyChildren(t);return this.clipDataComponents(e,t)}}],n&&Rl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(t),e.displayName="VictoryZoomContainer",e.propTypes=Tl(Tl({},Zt.propTypes),{},{allowPan:T().bool,allowZoom:T().bool,clipContainerComponent:T().element.isRequired,disable:T().bool,downsample:T().oneOfType([T().bool,T().number]),minimumZoom:T().shape({x:T().number,y:T().number}),onZoomDomainChange:T().func,zoomDimension:T().oneOf(["x","y"]),zoomDomain:T().shape({x:W,y:W})}),e.defaultProps=Tl(Tl({},Zt.defaultProps),{},{clipContainerComponent:D().createElement(Dl,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:Tl({onMouseDown:function(e,n){return t.disable?{}:yl.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:yl.onMouseDown(e,n)},onMouseUp:function(e,n){return t.disable?{}:yl.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:yl.onMouseUp(e,n)},onMouseLeave:function(e,n){return t.disable?{}:yl.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:yl.onMouseLeave(e,n)},onMouseMove:function(e,n,r,o){return t.disable?{}:yl.onMouseMove(e,n,r,o)},onTouchMove:function(e,n,r,o){return t.disable?{}:(e.preventDefault(),yl.onMouseMove(e,n,r,o))}},t.disable||!t.allowZoom?{}:{onWheel:yl.onWheel})}]},e};function Bl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bl(Object(n),!0).forEach((function(e){Fl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Ll(Zt);var $l={getDimension:function(t){var e=t.horizontal,n=t.selectionDimension;return e&&n?"x"===n?"y":"x":n},getDatasets:function(t){return t.data?[{data:t.data}]:_t(D().Children.toArray(t.children),(function(e,n,r){var o=t.selectionBlacklist||[];if(!wc(e)||p()(o,n))return null;if(e.type&&a()(e.type.getData)){var i=(e=r?D().cloneElement(e,r.props):e).props&&e.type.getData(e.props);return i?{childName:n,data:i}:null}var u,c=(u=bc(e.props),Array.isArray(u)&&u.length>0?u:void 0);return c?{childName:n,data:c}:null}),t)},filterDatasets:function(t,e,n){var r=this,o=e.reduce((function(e,o){var i=r.getSelectedData(t,o.data,n);return i?e.concat({childName:o.childName,eventKey:i.eventKey,data:i.data}):e}),[]);return o.length?o:null},getSelectedData:function(t,e){for(var n,r=t.x1,o=t.y1,i=t.x2,a=t.y2,u=[],c=[],l=0,s=0,f=e.length;s<f;s++){var p=e[s];void 0,(n=Pt(t,p)).x>=Math.min(r,i)&&n.x<=Math.max(r,i)&&n.y>=Math.min(o,a)&&n.y<=Math.max(o,a)&&(c[l]=p,u[l]=void 0===p.eventKey?s:p.eventKey,l++)}return l>0?{eventKey:u,data:c}:null},onMouseDown:function(t,e){t.preventDefault();var n=e.activateSelectedData,r=e.allowSelection,o=e.polar,i=e.selectedData;if(!r)return{};var u=this.getDimension(e),c=e.parentSVG||Mc(t),l=jc(t,c),s=l.x,f=l.y,p={x1:o||"y"!==u?s:Pc(e).x[0],y1:o||"x"!==u?f:Pc(e).y[0],select:!0,x2:o||"y"!==u?s:Pc(e).x[1],y2:o||"x"!==u?f:Pc(e).y[1],parentSVG:c};i&&a()(e.onSelectionCleared)&&e.onSelectionCleared(j()({},p,e));var h,y=[{target:"parent",mutation:function(){return p}}],d=i&&n?i.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return null}}})):[];return y.concat.apply(y,function(t){if(Array.isArray(t))return Wl(t)}(h=d)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(h)||function(t,e){if(t){if("string"==typeof t)return Wl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wl(t,e):void 0}}(h)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},onMouseMove:function(t,e){var n=e.allowSelection,r=e.select,o=e.polar,i=this.getDimension(e);if(n&&r){var a=e.parentSVG||Mc(t),u=jc(t,a),c=u.x,l=u.y,s=o||"y"!==i?c:Pc(e).x[1],f=o||"x"!==i?l:Pc(e).y[1];return{target:"parent",mutation:function(){return{x2:s,y2:f,parentSVG:a}}}}return null},onMouseUp:function(t,e){var n=e.activateSelectedData,r=e.allowSelection,o=e.x2,i=e.y2;if(!r)return null;if(!o||!i)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var u=this.getDatasets(e),c=Sc(e),l=this.filterDatasets(e,u,c),s={selectedData:l,datasets:u,select:!1,x1:null,x2:null,y1:null,y2:null},f=l&&a()(e.onSelection)?e.onSelection(l,c,j()({},s,e)):{},p=[{target:"parent",mutation:function(){return s}}],h=l&&n?l.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return A()({active:!0},f)}}})):[];return p.concat(h)}};const Vl=Hl(Hl({},$l),{},{onMouseDown:$l.onMouseDown.bind($l),onMouseUp:$l.onMouseUp.bind($l),onMouseMove:Pn()($l.onMouseMove.bind($l),16,{leading:!0,trailing:!1})});function ql(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ql(Object(n),!0).forEach((function(e){Gl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Kl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ql(t,e){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ql(t,e)}function Jl(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ts(t){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ts(t)}var es=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ql(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ts(r);if(o){var n=ts(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Jl(this,t)});function a(){return Kl(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getRect",value:function(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.selectionStyle,a=t.selectionComponent,u=t.name,c=Math.abs(n-e)||1,l=Math.abs(o-r)||1,s=Math.min(e,n),f=Math.min(r,o);return o&&n&&e&&r?D().cloneElement(a,{key:"".concat(u,"-selection"),x:s,y:f,width:c,height:l,style:i}):null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return Zl(t)}(e=D().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Zl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zl(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getRect(t)]);var e}}])&&Xl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictorySelectionContainer",e.propTypes=Yl(Yl({},Zt.propTypes),{},{activateSelectedData:T().bool,allowSelection:T().bool,disable:T().bool,onSelection:T().func,onSelectionCleared:T().func,selectionBlacklist:T().arrayOf(T().string),selectionComponent:T().element,selectionDimension:T().oneOf(["x","y"]),selectionStyle:T().object}),e.defaultProps=Yl(Yl({},Zt.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:D().createElement(Ue,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:Vl.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:Vl.onMouseDown(e,n)},onMouseMove:function(e,n){return t.disable?{}:Vl.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Vl.onMouseMove(e,n)},onMouseUp:function(e,n){return t.disable?{}:Vl.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:Vl.onMouseUp(e,n)}}}]},e};es(Zt);var ns=r(3792),rs=r.n(ns);function os(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function is(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?os(Object(n),!0).forEach((function(e){as(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function as(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function us(t){return function(t){if(Array.isArray(t))return cs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return cs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cs(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ls={getDimension:function(t){var e=t.horizontal,n=t.brushDimension;return e&&n?"x"===n?"y":"x":n},withinBounds:function(t,e,n){var r=rs()(e,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=rs()(t,Number),l=c.x,s=c.y;return l+(n=n?n/2:0)>=Math.min(o,i)&&l-n<=Math.max(o,i)&&s+n>=Math.min(a,u)&&s-n<=Math.max(a,u)},getDomainBox:function(t,e,n){var r=this.getDimension(t);e=j()({},e,t.domain),n=j()({},n,e);var o=Pc(t,e),i=Pc(t,n);return{x1:"y"!==r?Math.min.apply(Math,us(i.x)):Math.min.apply(Math,us(o.x)),x2:"y"!==r?Math.max.apply(Math,us(i.x)):Math.max.apply(Math,us(o.x)),y1:"x"!==r?Math.min.apply(Math,us(i.y)):Math.min.apply(Math,us(o.y)),y2:"x"!==r?Math.max.apply(Math,us(i.y)):Math.max.apply(Math,us(o.y))}},getHandles:function(t,e){var n=this.getDimension(t),r=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==n&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==n&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==n&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==n&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,n){var r=this,o=this.getHandles(e,n),i=["top","bottom","left","right"].reduce((function(e,n){return o[n]&&r.withinBounds(t,o[n])?e.concat(n):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:i},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:n,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:n,x2:o}};return e.reduce((function(t,e){return A()(t,a[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,n){var r=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||Mc(n),s=this.panBox(is(is(is({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),jc(n,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return Sc(is(is({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return r},getSelectionMutation:function(t,e,n){var r=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==n?r:i,y1:"x"!==n?o:u,x2:"y"!==n?r:a,y2:"x"!==n?o:c}},panBox:function(t,e){var n=t.domain,r=t.startX,o=t.startY,i=this.getDimension(t),a=j()({},t.brushDomain,n),u=j()({},t.fullDomain,n),c=t.x1?t:this.getDomainBox(t,u,a),l=c.x1,s=c.x2,f=c.y1,p=c.y2,h=e.x,y=e.y,d=r?r-h:0,v=o?o-y:0;return{x1:"y"!==i?Math.min(l,s)-d:Math.min(l,s),x2:"y"!==i?Math.max(l,s)-d:Math.max(l,s),y1:"x"!==i?Math.min(f,p)-v:Math.min(f,p),y2:"x"!==i?Math.max(f,p)-v:Math.max(f,p)}},constrainBox:function(t,e){var n=rs()(e,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,r),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<r?r+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var n=rs()(e,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x:Math.min(Math.max(t.x,r),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-n)>=i,c=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,e){var n=this;t.preventDefault();var r=e.handleWidth,o=e.cachedBrushDomain,i=e.domain,a=e.allowResize,u=e.allowDrag,c=e.allowDraw,l=this.getDimension(e),s=a||e.defaultBrushArea?e.defaultBrushArea:"move";if(!a&&!u)return{};var f=e.fullDomainBox||this.getDomainBox(e,i),p=e.parentSVG||Mc(t),h=jc(t,p),y=h.x,d=h.y;if(!this.withinBounds({x:y,y:d},f,r))return{};var v=j()({},e.brushDomain,i),g=kc()(v,o)?e.currentDomain||v||i:v||i,m=this.getDomainBox(e,i,g),b=a&&this.getActiveHandles({x:y,y:d},e,m);return b?[{target:"parent",mutation:function(){return is({isSelecting:!0,domainBox:m,fullDomainBox:f,cachedBrushDomain:v,currentDomain:g,parentSVG:p},n.getResizeMutation(m,b))}}]:this.withinBounds({x:y,y:d},m)&&!kc()(i,g)?[{target:"parent",mutation:function(){return is({isPanning:u,startX:y,startY:d,domainBox:m,fullDomainBox:f,currentDomain:g,cachedBrushDomain:v,parentSVG:p},m)}}]:c?[{target:"parent",mutation:function(){return is({isSelecting:a||"move"===s,domainBox:m,fullDomainBox:f,parentSVG:p,cachedBrushDomain:v,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:y,y:d},m,l))}}]:{}},onGlobalMouseMove:function(t,e){var n=e.scale,r=e.isPanning,o=e.isSelecting,i=e.fullDomainBox,u=e.onBrushDomainChange,c=e.allowResize,l=e.allowDrag,s=e.horizontal,f=e.mouseMoveThreshold,p=e.parentSVG,h=this.getDimension(e),y=jc(t,p),d=y.x,v=y.y;if(!c&&!l||f>0&&!this.hasMoved(is(is({},e),{},{x2:d,y2:v})))return{};if(l&&r){var g=e.startX,m=e.startY,b=this.panBox(e,{x:d,y:v}),x=this.constrainBox(b,i),w=Sc(is(is({},x),{},{scale:n,horizontal:s})),O=is({currentDomain:w,parentSVG:p,startX:b.x2>=i.x2||b.x1<=i.x1?g:d,startY:b.y2>=i.y2||b.y1<=i.y1?m:v},x);return a()(u)&&u(w,j()({},O,e)),[{target:"parent",mutation:function(){return O}}]}if(c&&o){var M=this.constrainPoint({x:"y"!==h?d:e.x2,y:"x"!==h?v:e.y2},i),P=M.x,A=M.y,S=Sc({x2:P,y2:A,x1:e.x1,y1:e.y1,scale:n,horizontal:s}),D={x2:P,y2:A,currentDomain:S,parentSVG:p};return a()(u)&&u(S,j()({},D,e)),[{target:"parent",mutation:function(){return D}}]}return{}},onGlobalMouseUp:function(t,e){if(!e.isPanning&&!e.isSelecting)return{};var n=e.x1,r=e.y1,o=e.x2,i=e.y2,u=e.isPanning,c=e.isSelecting,l=e.onBrushDomainChange,s=e.onBrushDomainChangeEnd,f=e.onBrushCleared,p=e.currentDomain,h=e.allowResize,y=e.allowDrag,d=h||e.defaultBrushArea?e.defaultBrushArea:"move",v={isPanning:!1,isSelecting:!1};if(!h&&(void 0===d||"none"===d)||n!==o&&r!==i)(y&&u||h&&c)&&a()(s)&&s(p,j()({},v,e));else{var g=e.cachedCurrentDomain||p,m=this.getDefaultBrushArea(e,g,t);v.currentDomain=m,a()(l)&&l(m,j()({},v,e)),a()(s)&&s(m,j()({},v,e)),a()(f)&&f(m,j()({},v,e))}return[{target:"parent",mutation:function(){return v}}]}};const ss=is(is({},ls),{},{onMouseDown:ls.onMouseDown.bind(ls),onGlobalMouseUp:ls.onGlobalMouseUp.bind(ls),onGlobalMouseMove:Pn()(ls.onGlobalMouseMove.bind(ls),16,{leading:!0,trailing:!1})});function fs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ps(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fs(Object(n),!0).forEach((function(e){hs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ys(t){return function(t){if(Array.isArray(t))return ds(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ds(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ds(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ms(t,e){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ms(t,e)}function bs(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function xs(t){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xs(t)}var ws=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ms(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=xs(r);if(o){var n=xs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return bs(this,t)});function a(){return vs(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getSelectBox",value:function(t,e){var n=e.x,r=e.y,o=t.brushStyle,i=t.brushComponent,a=t.name,u=i.props&&i.props.style,c=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&r[0]!==r[1]?D().cloneElement(i,{key:"".concat(a,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(n[0],n[1]),y:Math.min(r[0],r[1]),cursor:c,style:j()({},u,o)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,e){var n=t.handleWidth,r=t.handleStyle,o=t.handleComponent,i=t.name,a=ss.getDomainBox(t,e),u=a.x1,c=a.x2,l=a.y1,s=a.y2,f=ss.getHandles(t,a),p=f.top,h=f.bottom,y=f.left,d=f.right,v=Math.abs(c-u)||1,g=Math.abs(s-l)||1,m=o.props&&o.props.style||{},b=j()({},m,r),x=this.getCursorPointers(t),w={style:b,width:v,height:n,cursor:x.yProps},O={style:b,width:n,height:g,cursor:x.xProps},M={top:p&&A()({x:p.x1,y:p.y1},w),bottom:h&&A()({x:h.x1,y:h.y1},w),left:y&&A()({y:y.y1,x:y.x1},O),right:d&&A()({y:d.y1,x:d.x1},O)},P=["top","bottom","left","right"].reduce((function(t,e){return M[e]?t.concat(D().cloneElement(o,A()({key:"".concat(i,"-handle-").concat(e)},M[e]))):t}),[]);return P.length?P:null}},{key:"getRect",value:function(t){var e=t.currentDomain,n=t.cachedBrushDomain,r=j()({},t.brushDomain,t.domain),o=kc()(r,n)?j()({},e,r):r,i=Pc(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}},{key:"getChildren",value:function(t){return[].concat(ys(D().Children.toArray(t.children)),ys(this.getRect(t)))}}],n&&gs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryBrushContainer",e.propTypes=ps(ps({},Zt.propTypes),{},{allowDrag:T().bool,allowDraw:T().bool,allowResize:T().bool,brushComponent:T().element,brushDimension:T().oneOf(["x","y"]),brushDomain:T().shape({x:T().array,y:T().array}),brushStyle:T().object,defaultBrushArea:T().oneOf(["all","disable","none","move"]),disable:T().bool,handleComponent:T().element,handleStyle:T().object,handleWidth:T().number,onBrushCleared:T().func,onBrushDomainChange:T().func,onBrushDomainChangeEnd:T().func}),e.defaultProps=ps(ps({},Zt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:D().createElement(Ue,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:D().createElement(Ue,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:ss.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:ss.onMouseDown(e,n)},onGlobalMouseMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:ss.onGlobalMouseMove(e,n)},onGlobalTouchMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:ss.onGlobalMouseMove(e,n)},onGlobalMouseUp:function(e,n){return t.disable?{}:ss.onGlobalMouseUp(e,n)},onGlobalTouchEnd:function(e,n){return t.disable?{}:ss.onGlobalMouseUp(e,n)},onGlobalTouchCancel:function(e,n){return t.disable?{}:ss.onGlobalMouseUp(e,n)}}}]},e};ws(Zt);var Os=["desc"];function Ms(){return Ms=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ms.apply(this,arguments)}var js=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Os);return e?D().createElement("line",Ms({vectorEffect:"non-scaling-stroke"},n),D().createElement("desc",null,e)):D().createElement("line",Ms({vectorEffect:"non-scaling-stroke"},n))};function Ps(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function As(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ps(Object(n),!0).forEach((function(e){Ss(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ss(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ds=function(t){return t=function(t){var e=St(t.ariaLabel,t),n=St(t.desc,t),r=St(t.id,t),o=Dt(A()({stroke:"black"},t.style),t),i=St(t.tabIndex,t);return A()({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(t),D().cloneElement(t.lineComponent,As(As({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath}))};function ks(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ts(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ks(Object(n),!0).forEach((function(e){Cs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Ds.propTypes=As(As({},an),{},{datum:T().any,lineComponent:T().element,x1:T().number,x2:T().number,y1:T().number,y2:T().number}),Ds.defaultProps={lineComponent:D().createElement(js,null),role:"presentation",shapeRendering:"auto"};var Es={getDimension:function(t){var e=t.horizontal,n=t.cursorDimension;return e&&n?"x"===n?"y":"x":n},withinBounds:function(t,e){var n=rs()(e,Number),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=rs()(t,Number),c=u.x,l=u.y;return c>=Math.min(r,o)&&c<=Math.max(r,o)&&l>=Math.min(i,a)&&l<=Math.max(i,a)},onMouseMove:function(t,e){var n=e.onCursorChange,r=e.domain,o=this.getDimension(e),i=e.parentSVG||Mc(t),u=jc(t,i),c=Ac(e,e.scale,u.x,u.y),l=this.withinBounds(c,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]});return l||(c=null),a()(n)&&(l?n(o?c[o]:c,e):c!==e.cursorValue&&n(e.defaultCursorValue||null,e)),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:c,parentSVG:i}}}]},onTouchEnd:function(t,e){var n=e.onCursorChange;return a()(e.onCursorChange)&&n(null,e),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}};const _s=Ts(Ts({},Es),{},{onMouseMove:Pn()(Es.onMouseMove.bind(Es),16,{leading:!0,trailing:!1}),onMouseLeave:Es.onMouseMove.bind(Es),onTouchEnd:Es.onTouchEnd.bind(Es)});function Is(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Is(Object(n),!0).forEach((function(e){Us(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ns(t){return function(t){if(Array.isArray(t))return zs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zs(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Us(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ls(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hs(t,e){return Hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hs(t,e)}function Fs(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ws(t){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ws(t)}var $s=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hs(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ws(r);if(o){var n=Ws(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Fs(this,t)});function a(){return Ls(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getCursorPosition",value:function(t){var e=t.cursorValue,n=t.defaultCursorValue,r=t.domain,o=t.cursorDimension;return e||("number"==typeof n?Us({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o,n):n)}},{key:"getCursorLabelOffset",value:function(t){var e=t.cursorLabelOffset;return"number"==typeof e?{x:e,y:e}:e}},{key:"getPadding",value:function(t){return void 0===t.padding?At(t.children.find((function(t){return x()(t.props)&&void 0!==t.props.padding})).props):At(t)}},{key:"getCursorElements",value:function(t){var e=t.scale,n=t.cursorLabelComponent,r=t.cursorLabel,o=t.cursorComponent,i=t.width,a=t.height,u=t.name,c=t.horizontal,l=t.theme,s=_s.getDimension(t),f=this.getCursorPosition(t),p=this.getCursorLabelOffset(t);if(!f)return[];var h,y=[],d=this.getPadding(t),v={x:c?e.y(f.y):e.x(f.x),y:c?e.x(f.x):e.y(f.y)};if(r){var g=j()({active:!0},n.props,{x:v.x+p.x,y:v.y+p.y,datum:f,active:!0,key:"".concat(u,"-cursor-label")});if("tooltip"===((h=n)&&h.type&&h.type.role)){var m=l&&l.tooltip||{};g=j()({},g,m)}y.push(D().cloneElement(n,j()({},g,{text:St(r,g)})))}var b=A()({stroke:"black"},o.props.style);return"x"!==s&&void 0!==s||y.push(D().cloneElement(o,{key:"".concat(u,"-x-cursor"),x1:v.x,x2:v.x,y1:d.top,y2:a-d.bottom,style:b})),"y"!==s&&void 0!==s||y.push(D().cloneElement(o,{key:"".concat(u,"-y-cursor"),x1:d.left,x2:i-d.right,y1:v.y,y2:v.y,style:b})),y}},{key:"getChildren",value:function(t){return[].concat(Ns(D().Children.toArray(t.children)),Ns(this.getCursorElements(t)))}}],n&&Bs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryCursorContainer",e.propTypes=Rs(Rs({},Zt.propTypes),{},{cursorDimension:T().oneOf(["x","y"]),cursorLabel:T().func,cursorLabelComponent:T().element,cursorLabelOffset:T().oneOfType([T().number,T().shape({x:T().number,y:T().number})]),defaultCursorValue:T().oneOfType([T().number,T().shape({x:T().number,y:T().number})]),disable:T().bool,onCursorChange:T().func}),e.defaultProps=Rs(Rs({},Zt.defaultProps),{},{cursorLabelComponent:D().createElement(on,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:D().createElement(Ds,null)}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:_s.onMouseLeave(e,n)},onTouchCancel:function(){return[]},onMouseMove:function(e,n){return t.disable?{}:_s.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:_s.onMouseMove(e,n)}}}]},e};function Vs(t){return function(t){if(Array.isArray(t))return ef(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tf(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ys(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qs(Object(n),!0).forEach((function(e){Gs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ks(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xs(t,e){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xs(t,e)}function Qs(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Js(t){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Js(t)}function tf(t,e){if(t){if("string"==typeof t)return ef(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ef(t,e):void 0}}function ef(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}$s(Zt);var nf=function(t){return t?Array.isArray(t)?t:[t]:[]},rf=function(t,e){var n,r=t.map((function(t){return t(e)})),o=r.map((function(t){return new t})),i=s()(t)(e),u=r.map((function(t){return t.displayName.match(/Victory(.*)Container/)[1]||""})).join("");return n=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xs(t,e)}(u,t);var e,n,r,i,a=(r=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Js(r);if(i){var n=Js(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Qs(this,t)});function u(){return Zs(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"getChildren",value:function(t){return o.reduce((function(e,n){return n.getChildren(Ys(Ys({},t),{},{children:e}))}),t.children)}}])&&Ks(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(i),n.displayName="Victory".concat(u,"Container"),n.propTypes=r.reduce((function(t,e){return Ys(Ys({},t),e.propTypes)}),{}),n.defaultProps=r.reduce((function(t,e){return Ys(Ys({},t),e.defaultProps)}),{}),n.defaultEvents=function(t){return e=r.reduce((function(e,n){var r=a()(n.defaultEvents)?n.defaultEvents(t):n.defaultEvents;return[].concat(Vs(e),Vs(r))}),[]),n=v()(e,"target"),o=m()(n).map((function(t){var e,n,r,o=(r=2,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||tf(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return a=a.filter(Boolean),c()(a)?null:{target:i,eventHandlers:(e=a.map((function(t){return t.eventHandlers})),e.reduce((function(t,e){return y()(t,(function(t,n){var r=e[n];e[n]=r?function(){var e=nf(r.apply(void 0,arguments)),n=nf(t.apply(void 0,arguments));return e.concat(n)}:t})),e})))}})),o.filter(Boolean);var e,n,o},n},of=function(t,e){t&&!p()(e,t)&&'"'.concat(t,'" is not a valid behavior. Choose from [').concat(e.join(", "),"].")},af=function(t,e){return function(r,o){var i=n()(t);of(r,i),of(o,i);var a=t[r],u=t[o]||[];return a?rf([].concat(Vs(a),Vs(u)),e):e}},uf=af({zoom:[Ll],voronoi:[Vc],selection:[es],cursor:[$s],brush:[ws]},Zt)})(),o})()));
2
2
  //# sourceMappingURL=victory-create-container.min.js.map