UNPKG

arbor-dashboard

Version:
2 lines 360 kB
/*! For license information please see heatMap.js.LICENSE.txt */ !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.heatMap=t(require("react")):e.heatMap=t(e.react)}(self,(e=>(()=>{var t={7184:(e,t,n)=>{"use strict";n.d(t,{e0:()=>y,wI:()=>g,x$:()=>m});var r=n(9155),i=n(7612),a=n.n(i),o=n(8023),l=n.n(o),u=n(179),s=n.n(u),c=n(1644);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}n(2555),n(4848);var d=function(e){return"circle"===e.type},h=function(e){return"dot"===e.type},p=function(e){return"rect"===e.type},b=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,u=e.noteWidth,s=void 0===u?120:u,f=e.noteTextOffset,h=void 0===f?8:f;if(l()(a))t=r+a;else{if(void 0===a.abs)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(l()(o))n=i+o;else{if(void 0===o.abs)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var b=r,g=i,m=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return(0,c.mQ)((0,c.nv)(i))}(r,i,t,n);if(d(e)){var v=(0,c.B2)((0,c.tR)(m),e.size/2);b+=v.x,g+=v.y}if(p(e)){var y=Math.round((m+90)/45)%8;0===y&&(g-=e.height/2),1===y&&(b+=e.width/2,g-=e.height/2),2===y&&(b+=e.width/2),3===y&&(b+=e.width/2,g+=e.height/2),4===y&&(g+=e.height/2),5===y&&(b-=e.width/2,g+=e.height/2),6===y&&(b-=e.width/2),7===y&&(b-=e.width/2,g-=e.height/2)}var x=t,_=t;return(m+90)%360>180?(x-=s,_-=s):_+=s,{points:[[b,g],[t,n],[_,n]],text:[x,n-h],angle:m+90}},g=function(e){var t=e.data,n=e.annotations,i=e.getPosition,o=e.getDimensions;return(0,r.useMemo)((function(){return function(e){var t=e.data,n=e.getPosition,r=e.getDimensions;return e.annotations.reduce((function(e,i){var o=i.offset||0;return[].concat(e,a()(t,i.match).map((function(e){var t=n(e),a=r(e);return(d(i)||p(i))&&(a.size=a.size+2*o,a.width=a.width+2*o,a.height=a.height+2*o),f({},s()(i,["match","offset"]),t,a,{size:i.size||a.size,datum:e})})))}),[])}({data:t,annotations:n,getPosition:i,getDimensions:o})}),[t,n,i,o])},m=function(e){var t=e.annotations;return(0,r.useMemo)((function(){return t.map((function(e){return f({},e,{computed:b(f({},e))})}))}),[t])},v=function(e,t){t.forEach((function(t,n){var r=t[0],i=t[1];0===n?e.moveTo(r,i):e.lineTo(r,i)}))},y=function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach((function(t){if(!function(e){var t=typeof e;return"string"===t||"function"===t}(t.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),v(e,t.computed.points),e.stroke(),e.lineCap="butt"),d(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),h(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),p(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),v(e,t.computed.points),e.stroke(),d(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),h(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),p(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())}},3296:(e,t,n)=>{"use strict";n.d(t,{ZY:()=>y,xu:()=>x});var r=n(9155),i=n(1644),a=n(2555),o=n(2560),l=n(6906),u=n(5485),s=n(4848);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var f=function(e){var t,n=e.axis,r=e.scale,a=e.ticksPosition,o=e.tickValues,l=e.tickSize,s=e.tickPadding,f=e.tickRotation,d=e.truncateTickAt,h=e.engine,p=void 0===h?"svg":h,b=(0,u.fS)(r,o),g=i.ni[p],m="bandwidth"in r?(0,u.ok)(r):r,v={lineX:0,lineY:0},y={textX:0,textY:0},x="object"==typeof document&&"rtl"===document.dir,_=g.align.center,w=g.baseline.center;return"x"===n?(t=function(e){var t;return{x:null!=(t=m(e))?t:0,y:0}},v.lineY=l*("after"===a?1:-1),y.textY=(l+s)*("after"===a?1:-1),w="after"===a?g.baseline.top:g.baseline.bottom,0===f?_=g.align.center:"after"===a&&f<0||"before"===a&&f>0?(_=g.align[x?"left":"right"],w=g.baseline.center):("after"===a&&f>0||"before"===a&&f<0)&&(_=g.align[x?"right":"left"],w=g.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=m(e))?t:0}},v.lineX=l*("after"===a?1:-1),y.textX=(l+s)*("after"===a?1:-1),_="after"===a?g.align.left:g.align.right),{ticks:b.map((function(e){var n="string"==typeof e?function(e){var t=String(e).length;return d&&d>0&&t>d?""+String(e).slice(0,d).concat("..."):""+e}(e):e;return c({key:e instanceof Date?""+e.valueOf():""+e,value:n},t(e),v,y)})),textAlign:_,textBaseline:w}},d=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var n=(0,o.DC)(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return(0,l.GP)(e)},h=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,l=(t=o,(Array.isArray(t)?o:void 0)||(0,u.fS)(i,o)),s="bandwidth"in i?(0,u.ok)(i):i,c="x"===a?l.map((function(e){var t,n;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=s(e))?t:0,x2:null!=(n=s(e))?n:0,y1:0,y2:r}})):l.map((function(e){var t,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:n,y1:null!=(t=s(e))?t:0,y2:null!=(r=s(e))?r:0}}));return c},p=(0,r.memo)((function(e){var t,n=e.value,o=e.format,l=e.lineX,u=e.lineY,f=e.onClick,d=e.textBaseline,h=e.textAnchor,p=e.animatedProps,b=(0,i.DP)(),g=b.axis.ticks.line,m=b.axis.ticks.text,v=null!=(t=null==o?void 0:o(n))?t:n,y=(0,r.useMemo)((function(){var e={opacity:p.opacity};return f?{style:c({},e,{cursor:"pointer"}),onClick:function(e){return f(e,v)}}:{style:e}}),[p.opacity,f,v]);return(0,s.jsxs)(a.CS.g,c({transform:p.transform},y,{children:[(0,s.jsx)("line",{x1:0,x2:l,y1:0,y2:u,style:g}),m.outlineWidth>0&&(0,s.jsx)(a.CS.text,{dominantBaseline:d,textAnchor:h,transform:p.textTransform,style:m,strokeWidth:2*m.outlineWidth,stroke:m.outlineColor,strokeLinejoin:"round",children:""+v}),(0,s.jsx)(a.CS.text,{dominantBaseline:d,textAnchor:h,transform:p.textTransform,style:(0,i.Ou)(m),children:""+v})]}))})),b=(0,r.memo)((function(e){var t=e.axis,n=e.scale,o=e.x,l=void 0===o?0:o,u=e.y,h=void 0===u?0:u,b=e.length,g=e.ticksPosition,m=e.tickValues,v=e.tickSize,y=void 0===v?5:v,x=e.tickPadding,_=void 0===x?5:x,w=e.tickRotation,k=void 0===w?0:w,S=e.format,A=e.renderTick,C=void 0===A?p:A,M=e.truncateTickAt,T=e.legend,P=e.legendPosition,O=void 0===P?"end":P,E=e.legendOffset,j=void 0===E?0:E,z=e.onClick,N=e.ariaHidden,F=(0,i.DP)(),R=F.axis.legend.text,I=(0,r.useMemo)((function(){return d(S,n)}),[S,n]),D=f({axis:t,scale:n,ticksPosition:g,tickValues:m,tickSize:y,tickPadding:_,tickRotation:k,truncateTickAt:M}),L=D.ticks,U=D.textAlign,W=D.textBaseline,q=null;if(void 0!==T){var V,$=0,B=0,K=0;"y"===t?(K=-90,$=j,"start"===O?(V="start",B=b):"middle"===O?(V="middle",B=b/2):"end"===O&&(V="end")):(B=j,"start"===O?V="start":"middle"===O?(V="middle",$=b/2):"end"===O&&(V="end",$=b)),q=(0,s.jsxs)(s.Fragment,{children:[R.outlineWidth>0&&(0,s.jsx)("text",{transform:"translate("+$+", "+B+") rotate("+K+")",textAnchor:V,style:c({dominantBaseline:"central"},R),strokeWidth:2*R.outlineWidth,stroke:R.outlineColor,strokeLinejoin:"round",children:T}),(0,s.jsx)("text",{transform:"translate("+$+", "+B+") rotate("+K+")",textAnchor:V,style:c({dominantBaseline:"central"},R),children:T})]})}var Y=(0,i.mk)(),H=Y.animate,Q=Y.config,X=(0,a.zh)({transform:"translate("+l+","+h+")",lineX2:"x"===t?b:0,lineY2:"x"===t?0:b,config:Q,immediate:!H}),G=(0,r.useCallback)((function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+k+")"}}),[k]),Z=(0,r.useCallback)((function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+k+")"}}),[k]),J=(0,a.pn)(L,{keys:function(e){return e.key},initial:G,from:Z,enter:G,update:G,leave:{opacity:0},config:Q,immediate:!H});return(0,s.jsxs)(a.CS.g,{transform:X.transform,"aria-hidden":N,children:[J((function(e,t,n,i){return r.createElement(C,c({tickIndex:i,format:I,rotate:k,textBaseline:W,textAnchor:U,truncateTickAt:M,animatedProps:e},t,z?{onClick:z}:{}))})),(0,s.jsx)(a.CS.line,{style:F.axis.domain.line,x1:0,x2:X.lineX2,y1:0,y2:X.lineY2}),q]})})),g=["top","right","bottom","left"],m=((0,r.memo)((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,s.jsx)(s.Fragment,{children:g.map((function(e){var o=a[e];if(!o)return null;var l="top"===e||"bottom"===e;return(0,s.jsx)(b,c({},o,{axis:l?"x":"y",x:"right"===e?r:0,y:"bottom"===e?i:0,scale:l?t:n,length:l?r:i,ticksPosition:"top"===e||"left"===e?"before":"after",truncateTickAt:o.truncateTickAt}),e)}))})})),(0,r.memo)((function(e){var t=e.animatedProps,n=(0,i.DP)();return(0,s.jsx)(a.CS.line,c({},t,n.grid.line))}))),v=(0,r.memo)((function(e){var t=e.lines,n=(0,i.mk)(),o=n.animate,l=n.config,u=(0,a.pn)(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:l,immediate:!o});return(0,s.jsx)("g",{children:u((function(e,t){return(0,r.createElement)(m,c({},t,{key:t.key,animatedProps:e}))}))})})),y=((0,r.memo)((function(e){var t=e.width,n=e.height,i=e.xScale,a=e.yScale,o=e.xValues,l=e.yValues,u=(0,r.useMemo)((function(){return!!i&&h({width:t,height:n,scale:i,axis:"x",values:o})}),[i,o,t,n]),c=(0,r.useMemo)((function(){return!!a&&h({width:t,height:n,scale:a,axis:"y",values:l})}),[n,t,a,l]);return(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsx)(v,{lines:u}),c&&(0,s.jsx)(v,{lines:c})]})})),function(e,t){var n=t.xScale,r=t.yScale,a=t.width,o=t.height,l=t.top,u=t.right,s=t.bottom,h=t.left,p=t.theme,b={top:l,right:u,bottom:s,left:h};g.forEach((function(t){var l=b[t];if(!l)return null;var u="top"===t||"bottom"===t,s="top"===t||"left"===t?"before":"after",h=u?n:r,g=d(l.format,h);!function(e,t){var n,r=t.axis,a=t.scale,o=t.x,l=void 0===o?0:o,u=t.y,s=void 0===u?0:u,c=t.length,d=t.ticksPosition,h=t.tickValues,p=t.tickSize,b=void 0===p?5:p,g=t.tickPadding,m=void 0===g?5:g,v=t.tickRotation,y=void 0===v?0:v,x=t.format,_=t.legend,w=t.legendPosition,k=void 0===w?"end":w,S=t.legendOffset,A=void 0===S?0:S,C=t.theme,M=f({axis:r,scale:a,ticksPosition:d,tickValues:h,tickSize:b,tickPadding:m,tickRotation:y,engine:"canvas"}),T=M.ticks,P=M.textAlign,O=M.textBaseline;e.save(),e.translate(l,s),e.textAlign=P,e.textBaseline=O;var E=C.axis.ticks.text;e.font=(E.fontWeight?E.fontWeight+" ":"")+E.fontSize+"px "+E.fontFamily,(null!=(n=C.axis.domain.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(C.axis.domain.line.strokeWidth),e.lineCap="square",C.axis.domain.line.stroke&&(e.strokeStyle=C.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===r?c:0,"x"===r?0:c),e.stroke());var j="function"==typeof x?x:function(e){return""+e};if(T.forEach((function(t){var n;(null!=(n=C.axis.ticks.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(C.axis.ticks.line.strokeWidth),e.lineCap="square",C.axis.ticks.line.stroke&&(e.strokeStyle=C.axis.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var r=j(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate((0,i.tR)(y)),E.outlineWidth>0&&(e.strokeStyle=E.outlineColor,e.lineWidth=2*E.outlineWidth,e.lineJoin="round",e.strokeText(""+r,0,0)),C.axis.ticks.text.fill&&(e.fillStyle=E.fill),e.fillText(""+r,0,0),e.restore()})),void 0!==_){var z=0,N=0,F=0,R="center";"y"===r?(F=-90,z=A,"start"===k?(R="start",N=c):"middle"===k?(R="center",N=c/2):"end"===k&&(R="end")):(N=A,"start"===k?R="start":"middle"===k?(R="center",z=c/2):"end"===k&&(R="end",z=c)),e.translate(z,N),e.rotate((0,i.tR)(F)),e.font=(C.axis.legend.text.fontWeight?C.axis.legend.text.fontWeight+" ":"")+C.axis.legend.text.fontSize+"px "+C.axis.legend.text.fontFamily,C.axis.legend.text.fill&&(e.fillStyle=C.axis.legend.text.fill),e.textAlign=R,e.textBaseline="middle",e.fillText(_,0,0)}e.restore()}(e,c({},l,{axis:u?"x":"y",x:"right"===t?a:0,y:"bottom"===t?o:0,scale:h,format:g,length:u?a:o,ticksPosition:s,theme:p}))}))}),x=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;h({width:n,height:r,scale:i,axis:a,values:o}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))}},6502:(e,t,n)=>{"use strict";n.d(t,{yT:()=>be,pN:()=>pe,nz:()=>de});var r=n(6406),i=n(9573),a=n(4025),o=n(6018),l=n(5167),u=n(6786),s=n(2612),c=n(1021),f=n(5006);const d=(0,n(8557).A)("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var h=n(9505),p=n(9429),b=n(2389),g=n(7680),m=n(9501),v=n(1060),y=n(4704),x=n(6268),_=n(5874),w=n(6476),k=n(4425),S=n(6417),A=n(7666),C=n(9902),M=n(5813),T=n(1632),P=n(2402),O=n(456),E=n(7971),j=n(1223),z=n(5430),N=n(1077),F=n(5961),R=n(6041),I=n(8732),D=n(7616),L=n(4630),U=n(8710),W=n(5988),q=n(6253),V=n(541),$=n(9155),B=n(8156),K=n.n(B),Y=n(1331),H=n.n(Y),Q=n(6957),X=n(5556),G=n.n(X),Z=n(8980),J=n(7991),ee=n(4660),te=n(8849);function ne(){return ne=Object.assign?Object.assign.bind():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},ne.apply(this,arguments)}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:r.A,accent:i.A,dark2:a.A,paired:o.A,pastel1:l.A,pastel2:u.A,set1:s.A,set2:c.A,set3:f.A,tableau10:d},ae=(Object.keys(ie),{brown_blueGreen:h.K,purpleRed_green:p.K,pink_yellowGreen:b.K,purple_orange:g.K,red_blue:m.K,red_grey:v.K,red_yellow_blue:y.K,red_yellow_green:x.K,spectral:_.K}),oe=(Object.keys(ae),{brown_blueGreen:h.A,purpleRed_green:p.A,pink_yellowGreen:b.A,purple_orange:g.A,red_blue:m.A,red_grey:v.A,red_yellow_blue:y.A,red_yellow_green:x.A,spectral:_.A}),le={blues:w.K,greens:k.K,greys:S.K,oranges:A.K,purples:C.K,reds:M.K,blue_green:T.K,blue_purple:P.K,green_blue:O.K,orange_red:E.K,purple_blue_green:j.K,purple_blue:z.K,purple_red:N.K,red_purple:F.K,yellow_green_blue:R.K,yellow_green:I.K,yellow_orange_brown:D.K,yellow_orange_red:L.K},ue=(Object.keys(le),{blues:w.A,greens:k.A,greys:S.A,oranges:A.A,purples:C.A,reds:M.A,turbo:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:U.Ay,inferno:U.e0,magma:U.uz,plasma:U.pv,cividis:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:W.Ko,cool:W.Ub,cubehelixDefault:q.A,blue_green:T.A,blue_purple:P.A,green_blue:O.A,orange_red:E.A,purple_blue_green:j.A,purple_blue:z.A,purple_red:N.A,red_purple:F.A,yellow_green_blue:R.A,yellow_green:I.A,yellow_orange_brown:D.A,yellow_orange_red:L.A}),se=ne({},ie,ae,le),ce=(Object.keys(se),ne({},oe,ue,{rainbow:W.Ay,sinebow:V.A})),fe=(Object.keys(ce),function(e,t){if("function"==typeof e)return e;if(H()(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error("Unable to use color from theme as no theme was provided");var n=K()(t,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return K()(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)a.push((function(e){return e.brighter(n)}));else if("darker"===t)a.push((function(e){return e.darker(n)}));else{if("opacity"!==t)throw new Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");a.push((function(e){return e.opacity=n,e}))}},l=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=l()).done;)o();return 0===a.length?r:function(e){return a.reduce((function(e,t){return t(e)}),(0,Q.Qh)(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}),de=function(e,t){return(0,$.useMemo)((function(){return fe(e,t)}),[e,t])},he=(G().oneOfType([G().string,G().func,G().shape({theme:G().string.isRequired}),G().shape({from:G().string.isRequired,modifiers:G().arrayOf(G().array)})]),"turbo"),pe=function(e,t){if(function(e){return"sequential"===e.type}(e))return function(e,t){var n=e.minValue,r=e.maxValue,i=void 0!==n?n:t.min,a=void 0!==r?r:t.max,o=(0,Z.Ay)().domain([i,a]).clamp(!0);if("colors"in e)o.range(e.colors);else if("interpolator"in e)o.interpolator(e.interpolator);else{var l,u=null!=(l=e.scheme)?l:he;o.interpolator(ce[u])}return o}(e,t);if(function(e){return"diverging"===e.type}(e))return function(e,t){var n,r=e.minValue,i=e.maxValue,a=void 0!==r?r:t.min,o=void 0!==i?i:t.max,l=[a,a+(o-a)/2,o],u=.5-(null!=(n=e.divergeAt)?n:.5),s=(0,J.Ay)().domain(l).clamp(!0),c=function(e){return String(e)};if("colors"in e)c=(0,J.Ay)().domain(l.map((function(e){return e-u*(o-a)}))).range(e.colors).interpolator();else if("interpolator"in e)c=e.interpolator;else{var f,d=null!=(f=e.scheme)?f:"red_yellow_blue";c=ce[d]}return s.interpolator((function(e){return c(e+u)}))}(e,t);if(function(e){return"quantize"===e.type}(e))return function(e,t){var n=(0,ee.A)().domain(e.domain||[t.min,t.max]).nice();if("colors"in e)n.range(e.colors);else{var r=e.scheme||"turbo",i=void 0===e.steps?7:e.steps,a=ce[r],o=Array.from({length:i}).map((function(e,t){return a(t*(1/(i-1)))}));n.range(o)}return n}(e,t);throw new Error("Invalid continuous color scale config")},be=function(e,t){void 0===t&&(t=16);var n=e.domain();if("thresholds"in e){var r=[],i=(0,te.A)().domain(n).range([0,1]);return e.range().forEach((function(t,n){var a=e.invertExtent(t),o=a[0],l=a[1];r.push({key:n+".0",offset:i(o),stopColor:t}),r.push({key:n+".1",offset:i(l),stopColor:t})})),r}var a=e.copy();return 2===n.length?a.domain([0,1]):3===n.length&&a.domain([0,.5,1]),a.ticks(t).map((function(e){return{key:""+e,offset:e,stopColor:""+a(e)}}))}},1644:(e,t,n)=>{"use strict";n.d(t,{mc:()=>St,KF:()=>At,mQ:()=>zt,tR:()=>Ot,H9:()=>Qt,gC:()=>pt,u7:()=>Ht,B2:()=>jt,nv:()=>Et,Ou:()=>_t,ni:()=>Nt,Xl:()=>dt,W_:()=>ht,mk:()=>it,Ob:()=>Yt,DP:()=>yt,d_:()=>bt});var r=n(9155),i=n(5556),a=n.n(i),o=n(956),l=n(5364),u=n.n(l),s=n(8156),c=n.n(s),f=n(3560),d=n.n(f),h=n(2555),p=n(5015),b=n.n(p),g=n(4848),m=n(8090),v=n.n(m),y=(n(6449),n(4598)),x=n(9505),_=n(9429),w=n(2389),k=n(7680),S=n(9501),A=n(1060),C=n(4704),M=n(6268),T=n(5874),P=n(6476),O=n(4425),E=n(6417),j=n(7666),z=n(9902),N=n(5813),F=n(1632),R=n(2402),I=n(456),D=n(7971),L=n(1223),U=n(5430),W=n(1077),q=n(5961),V=n(6041),$=n(8732),B=n(7616),K=n(4630),Y=n(6406),H=n(9573),Q=n(4025),X=n(6018),G=n(5167),Z=n(6786),J=n(2612),ee=n(1021),te=n(5006),ne=n(8710),re=n(5988),ie=n(6253),ae=n(541),oe=n(1882),le=n.n(oe),ue=n(1648),se=n.n(ue);function ce(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function fe(e){this._context=e}function de(){}function he(e){this._context=e}function pe(e){this._context=e}function be(e,t){this._basis=new fe(e),this._beta=t}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ce(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ce(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},he.prototype={areaStart:de,areaEnd:de,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ce(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ce(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},be.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,l=t[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*o),this._beta*t[u]+(1-this._beta)*(a+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const ge=function e(t){function n(e){return 1===t?new fe(e):new be(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function me(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ve(e,t){this._context=e,this._k=(1-t)/6}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:me(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ye=function e(t){function n(e){return new ve(e,t)}return n.tension=function(t){return e(+t)},n}(0);function xe(e,t){this._context=e,this._k=(1-t)/6}xe.prototype={areaStart:de,areaEnd:de,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _e=function e(t){function n(e){return new xe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function we(e,t){this._context=e,this._k=(1-t)/6}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ke=function e(t){function n(e){return new we(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Se(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*s+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*s+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Ae(e,t){this._context=e,this._alpha=t}Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI,Ae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Se(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ce=function e(t){function n(e){return t?new Ae(e,t):new ve(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Me(e,t){this._context=e,this._alpha=t}Me.prototype={areaStart:de,areaEnd:de,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Se(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Te=function e(t){function n(e){return t?new Me(e,t):new xe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Pe(e,t){this._context=e,this._alpha=t}Pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Se(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Oe=function e(t){function n(e){return t?new Pe(e,t):new we(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);var Ee=n(6343);function je(e){this._context=e}function ze(e){return e<0?-1:1}function Ne(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(ze(a)+ze(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Fe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Re(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Ie(e){this._context=e}function De(e){this._context=new Le(e)}function Le(e){this._context=e}function Ue(e){this._context=e}function We(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qe(e,t){this._context=e,this._t=t}je.prototype={areaStart:de,areaEnd:de,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Re(this,this._t0,Fe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Re(this,Fe(this,n=Ne(this,e,t)),n);break;default:Re(this,this._t0,n=Ne(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(De.prototype=Object.create(Ie.prototype)).point=function(e,t){Ie.prototype.point.call(this,t,e)},Le.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=We(e),i=We(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Ve=n(4873);function $e(e){var t=e.map(Be);return(0,Ve.A)(e).sort((function(e,n){return t[e]-t[n]}))}function Be(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function Ke(e){for(var t,n=-1,r=0,i=e.length,a=-1/0;++n<i;)(t=+e[n][1])>a&&(a=t,r=n);return r}var Ye=n(3414),He=n(8801),Qe=n(6906),Xe=n(2560),Ge=(n(1331),n(4383),n(2404),{background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}});function Ze(){return Ze=Object.assign?Object.assign.bind():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},Ze.apply(this,arguments)}function Je(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var et=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],tt=(0,r.createContext)(),nt=function(e){var t=e.children,n=e.animate,i=void 0===n||n,a=e.config,o=void 0===a?"default":a,l=(0,r.useMemo)((function(){var e=b()(o)?h.$W[o]:o;return{animate:i,config:e}}),[i,o]);return(0,g.jsx)(tt.Provider,{value:l,children:t})},rt={animate:a().bool,motionConfig:a().oneOfType([a().oneOf(Object.keys(h.$W)),a().shape({mass:a().number,tension:a().number,friction:a().number,clamp:a().bool,precision:a().number,velocity:a().number,duration:a().number,easing:a().func})])};nt.propTypes={children:a().node.isRequired,animate:rt.animate,config:rt.motionConfig};var it=function(){return(0,r.useContext)(tt)},at={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:v()(x.K),PRGn:v()(_.K),PiYG:v()(w.K),PuOr:v()(k.K),RdBu:v()(S.K),RdGy:v()(A.K),RdYlBu:v()(C.K),RdYlGn:v()(M.K),spectral:v()(T.K),blues:v()(P.K),greens:v()(O.K),greys:v()(E.K),oranges:v()(j.K),purples:v()(z.K),reds:v()(N.K),BuGn:v()(F.K),BuPu:v()(R.K),GnBu:v()(I.K),OrRd:v()(D.K),PuBuGn:v()(L.K),PuBu:v()(U.K),PuRd:v()(W.K),RdPu:v()(q.K),YlGnBu:v()(V.K),YlGn:v()($.K),YlOrBr:v()(B.K),YlOrRd:v()(K.K)},ot=Object.keys(at),lt=(Y.A,H.A,Q.A,X.A,G.A,Z.A,J.A,ee.A,te.A,v()(x.K),v()(_.K),v()(w.K),v()(k.K),v()(S.K),v()(A.K),v()(C.K),v()(M.K),v()(T.K),v()(P.K),v()(O.K),v()(E.K),v()(j.K),v()(z.K),v()(N.K),v()(F.K),v()(R.K),v()(I.K),v()(D.K),v()(L.K),v()(U.K),v()(W.K),v()(q.K),v()(V.K),v()($.K),v()(B.K),v()(K.K),x.A,_.A,w.A,k.A,S.A,A.A,C.A,M.A,T.A,P.A,O.A,E.A,j.A,z.A,N.A,ne.Ay,ne.e0,ne.uz,ne.pv,re.Ko,re.Ub,ie.A,F.A,R.A,I.A,D.A,L.A,U.A,W.A,q.A,V.A,$.A,B.A,K.A,re.Ay,ae.A,a().oneOfType([a().oneOf(ot),a().func,a().arrayOf(a().string)]),{basis:function(e){return new fe(e)},basisClosed:function(e){return new he(e)},basisOpen:function(e){return new pe(e)},bundle:ge,cardinal:ye,cardinalClosed:_e,cardinalOpen:ke,catmullRom:Ce,catmullRomClosed:Te,catmullRomOpen:Oe,linear:Ee.A,linearClosed:function(e){return new je(e)},monotoneX:function(e){return new Ie(e)},monotoneY:function(e){return new De(e)},natural:function(e){return new Ue(e)},step:function(e){return new qe(e,.5)},stepAfter:function(e){return new qe(e,1)},stepBefore:function(e){return new qe(e,0)}}),ut=Object.keys(lt),st=(ut.filter((function(e){return e.endsWith("Closed")})),se()(ut,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),se()(ut,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),{ascending:$e,descending:function(e){return $e(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(Be),a=function(e){var t=e.map(Ke);return(0,Ve.A)(e).sort((function(e,n){return t[e]-t[n]}))}(e),o=0,l=0,u=[],s=[];for(t=0;t<r;++t)n=a[t],o<l?(o+=i[n],u.push(n)):(l+=i[n],s.push(n));return s.reverse().concat(u)},none:Ve.A,reverse:function(e){return(0,Ve.A)(e).reverse()}}),ct=(Object.keys(st),{expand:function(e,t){if((r=e.length)>0){for(var n,r,i,a=0,o=e[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=e[n][a][1]||0;if(i)for(n=0;n<r;++n)e[n][a][1]/=i}(0,Ye.A)(e,t)}},diverging:He.A,none:Ye.A,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],a=i.length;r<a;++r){for(var o=0,l=0;o<n;++o)l+=e[o][r][1]||0;i[r][1]+=i[r][0]=-l/2}(0,Ye.A)(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var l=0,u=0,s=0;l<i;++l){for(var c=e[t[l]],f=c[o][1]||0,d=(f-(c[o-1][1]||0))/2,h=0;h<l;++h){var p=e[t[h]];d+=(p[o][1]||0)-(p[o-1][1]||0)}u+=f,s+=d*f}n[o-1][1]+=n[o-1][0]=a,u&&(a-=s/u)}n[o-1][1]+=n[o-1][0]=a,(0,Ye.A)(e,t)}}}),ft=(Object.keys(ct),a().shape({top:a().number,right:a().number,bottom:a().number,left:a().number}).isRequired,a().oneOf(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]),(0,y.A)(te.A),{top:0,right:0,bottom:0,left:0}),dt=function(e,t,n){return void 0===n&&(n={}),(0,r.useMemo)((function(){var r=Ze({},ft,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n.top,n.right,n.bottom,n.left])},ht=function(){var e=(0,r.useRef)(null),t=(0,r.useState)({left:0,top:0,width:0,height:0}),n=t[0],i=t[1],a=(0,r.useState)((function(){return"undefined"==typeof ResizeObserver?null:new ResizeObserver((function(e){var t=e[0];return i(t.contentRect)}))}))[0];return(0,r.useEffect)((function(){return e.current&&null!==a&&a.observe(e.current),function(){null!==a&&a.disconnect()}}),[]),[e,n]},pt=function(e){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?(0,Xe.DC)(e.slice("5")):(0,Qe.GP)(e):function(e){return""+e}},bt=function(e){return(0,r.useMemo)((function(){return pt(e)}),[e])},gt=(0,r.createContext)(),mt={},vt=function(e){var t=e.theme,n=void 0===t?mt:t,i=e.children,a=function(e){return(0,r.useMemo)((function(){return function(e,t){var n=u()({},e,t);return et.forEach((function(e){d()(n,e,function(e,t){return Ze({},t,e)}(c()(n,e),n.text))})),n}(Ge,e)}),[e])}(n);return(0,g.jsx)(gt.Provider,{value:a,children:i})};vt.propTypes={children:a().node.isRequired,theme:a().object};var yt=function(){return(0,r.useContext)(gt)},xt=["outlineWidth","outlineColor","outlineOpacity"],_t=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Je(e,xt)},wt=function(e){var t=e.children,n=e.condition,i=e.wrapper;return n?(0,r.cloneElement)(i,{},t):t};wt.propTypes={children:a().node.isRequired,condition:a().bool.isRequired,wrapper:a().element.isRequired};var kt={position:"relative"},St=function(e){var t=e.children,n=e.theme,i=e.renderWrapper,a=void 0===i||i,l=e.isInteractive,u=void 0===l||l,s=e.animate,c=e.motionConfig,f=(0,r.useRef)(null);return(0,g.jsx)(vt,{theme:n,children:(0,g.jsx)(nt,{animate:s,config:c,children:(0,g.jsx)(o.Bc,{container:f,children:(0,g.jsxs)(wt,{condition:a,wrapper:(0,g.jsx)("div",{style:kt,ref:f}),children:[t,u&&(0,g.jsx)(o.m_,{})]})})})})};St.propTypes={children:a().element.isRequired,isInteractive:a().bool,renderWrapper:a().bool,theme:a().object,animate:a().bool,motionConfig:a().oneOfType([a().string,rt.motionConfig])},a().func.isRequired,a().bool,a().bool,a().object.isRequired,a().bool.isRequired,a().oneOfType([a().string,rt.motionConfig]);var At=function(e){var t=e.children,n=ht(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return(0,g.jsx)("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};At.propTypes={children:a().func.isRequired};var Ct=["id","colors"],Mt=function(e){var t=e.id,n=e.colors,r=Je(e,Ct);return(0,g.jsx)("linearGradient",Ze({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map((function(e){var t=e.offset,n=e.color,r=e.opacity;return(0,g.jsx)("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1},t)}))}))};Mt.propTypes={id:a().string.isRequired,colors:a().arrayOf(a().shape({offset:a().number.isRequired,color:a().string.isRequired,opacity:a().number})).isRequired,gradientTransform:a().string};var Tt={linearGradient:Mt},Pt=(0,r.memo)((function(e){var t=e.id,n=e.background,r=void 0===n?"#ffffff":n,i=e.color,a=void 0===i?"#000000":i,o=e.size,l=void 0===o?4:o,u=e.padding,s=void 0===u?4:u,c=e.stagger,f=void 0!==c&&c,d=l+s,h=l/2,p=s/2;return!0===f&&(d=2*l+2*s),(0,g.jsxs)("pattern",{id:t,width:d,height:d,patternUnits:"userSpaceOnUse",children:[(0,g.jsx)("rect",{width:d,height:d,fill:r}),(0,g.jsx)("circle",{cx:p+h,cy:p+h,r:h,fill:a}),f&&(0,g.jsx)("circle",{cx:1.5*s+l+h,cy:1.5*s+l+h,r:h,fill:a})]})}));Pt.displayName="PatternDots",Pt.propTypes={id:a().string.isRequired,color:a().string.isRequired,background:a().string.isRequired,size:a().number.isRequired,padding:a().number.isRequired,stagger:a().bool.isRequired},Math.PI;var Ot=function(e){return e*Math.PI/180},Et=function(e){return 180*e/Math.PI},jt=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},zt=function(e){var t=e%360;return t<0&&(t+=360),t},Nt={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Ft=(0,r.memo)((function(e){var t=e.id,n=e.spacing,r=void 0===n?5:n,i=e.rotation,a=void 0===i?0:i,o=e.background,l=void 0===o?"#000000":o,u=e.color,s=void 0===u?"#ffffff":u,c=e.lineWidth,f=void 0===c?2:c,d=Math.round(a)%360,h=Math.abs(r);d>180?d-=360:d>90?d-=180:d<-180?d+=360:d<-90&&(d+=180);var p,b=h,m=h;return 0===d?p="\n M 0 0 L "+b+" 0\n M 0 "+m+" L "+b+" "+m+"\n ":90===d?p="\n M 0 0 L 0 "+m+"\n M "+b+" 0 L "+b+" "+m+"\n ":(b=Math.abs(h/Math.sin(Ot(d))),m=h/Math.sin(Ot(90-d)),p=d>0?"\n M 0 "+-m+" L "+2*b+" "+m+"\n M "+-b+" "+-m+" L "+b+" "+m+"\n M "+-b+" 0 L "+b+" "+2*m+"\n ":"\n M "+-b+" "+m+" L "+b+" "+-m+"\n M "+-b+" "+2*m+" L "+2*b+" "+-m+"\n M 0 "+2*m+" L "+2*b+" 0\n "),(0,g.jsxs)("pattern",{id:t,width:b,height:m,patternUnits:"userSpaceOnUse",children:[(0,g.jsx)("rect",{width:b,height:m,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),(0,g.jsx)("path",{d:p,strokeWidth:f,stroke:s,strokeLinecap:"square"})]})}));Ft.displayName="PatternLines",Ft.propTypes={id:a().string.isRequired,spacing:a().number.isRequired,rotation:a().number.isRequired,background:a().string.isRequired,color:a().string.isRequired,lineWidth:a().number.isRequired};var Rt=(0,r.memo)((function(e){var t=e.id,n=e.color,r=void 0===n?"#000000":n,i=e.background,a=void 0===i?"#ffffff":i,o=e.size,l=void 0===o?4:o,u=e.padding,s=void 0===u?4:u,c=e.stagger,f=void 0!==c&&c,d=l+s,h=s/2;return!0===f&&(d=2*l+2*s),(0,g.jsxs)("pattern",{id:t,width:d,height:d,patternUnits:"userSpaceOnUse",children:[(0,g.jsx)("rect",{width:d,height:d,fill:a}),(0,g.jsx)("rect",{x:h,y:h,width:l,height:l,fill:r}),f&&(0,g.jsx)("rect",{x:1.5*s+l,y:1.5*s+l,width:l,height:l,fill:r})]})}));Rt.displayName="PatternSquares",Rt.propTypes={id:a().string.isRequired,color:a().string.isRequired,background:a().string.isRequired,size:a().number.isRequired,padding:a().number.isRequired,stagger:a().bool.isRequired};var It={patternDots:Pt,patternLines:Ft,patternSquares:Rt},Dt=["type"],Lt=Ze({},Tt,It),Ut=function(e){var t=e.defs;return!t||t.length<1?null:(0,g.jsx)("defs",{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=Je(e,Dt);return Lt[t]?(0,r.createElement)(Lt[t],Ze({key:n.id},n)):null}))})};Ut.propTypes={defs:a().arrayOf(a().shape({type:a().oneOf(Object.keys(Lt)).isRequired,id:a().string.isRequired}))},(0,r.memo)(Ut),a().number.isRequired,a().number.isRequired,a().shape({top:a().number.isRequired,left:a().number.isRequired}).isRequired,a().array,a().oneOfType([a().arrayOf(a().node),a().node]).isRequired,a().string,a().bool,a().string,a().string,a().string;var Wt=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return(0,g.jsx)("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};Wt.propTypes={size:a().number.isRequired,color:a().string.isRequired,borderWidth:a().number.isRequired,borderColor:a().string.isRequired};var qt=(0,r.memo)(Wt),Vt=function(e){var t=e.x,n=e.y,i=e.symbol,a=void 0===i?qt:i,o=e.size,l=e.datum,u=e.color,s=e.borderWidth,c=e.borderColor,f=e.label,d=e.labelTextAnchor,p=void 0===d?"middle":d,b=e.labelYOffset,m=void 0===b?-12:b,v=yt(),y=it(),x=y.animate,_=y.config,w=(0,h.zh)({transform:"translate("+t+", "+n+")",config:_,immediate:!x});return(0,g.jsxs)(h.CS.g,{transform:w.transform,style:{pointerEvents:"none"},children:[(0,r.createElement)(a,{size:o,color:u,datum:l,borderWidth:s,borderColor:c}),f&&(0,g.jsx)("text",{textAnchor:p,y:m,style:_t(v.dots.text),children:f})]})};Vt.propTypes={x:a().number.isRequired,y:a().number.isRequired,datum:a().object.isRequired,size:a().number.isRequired,color:a().string.isRequired,borderWidth:a().number.isRequired,borderColor:a().string.isRequired,symbol:a().oneOfType([a().func,a().object]),label:a().oneOfType([a().string,a().number]),labelTextAn