UNPKG

arbor-dashboard

Version:
2 lines 413 kB
/*! For license information please see barChart.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.barChart=t(require("react")):e.barChart=t(e.react)}(self,(e=>(()=>{var t={7184:(e,t,n)=>{"use strict";n.d(t,{YH:()=>C,e0:()=>A,wI:()=>v,x$:()=>y});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),f=n(2555),d=n(4848);function h(){return h=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},h.apply(this,arguments)}var p=function(e){return"circle"===e.type},b=function(e){return"dot"===e.type},g=function(e){return"rect"===e.type},m=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,d=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 h=r,b=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(p(e)){var v=(0,c.B2)((0,c.tR)(m),e.size/2);h+=v.x,b+=v.y}if(g(e)){var y=Math.round((m+90)/45)%8;0===y&&(b-=e.height/2),1===y&&(h+=e.width/2,b-=e.height/2),2===y&&(h+=e.width/2),3===y&&(h+=e.width/2,b+=e.height/2),4===y&&(b+=e.height/2),5===y&&(h-=e.width/2,b+=e.height/2),6===y&&(h-=e.width/2),7===y&&(h-=e.width/2,b-=e.height/2)}var x=t,_=t;return(m+90)%360>180?(x-=s,_-=s):_+=s,{points:[[h,b],[t,n],[_,n]],text:[x,n-d],angle:m+90}},v=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(p(i)||g(i))&&(a.size=a.size+2*o,a.width=a.width+2*o,a.height=a.height+2*o),h({},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])},y=function(e){var t=e.annotations;return(0,r.useMemo)((function(){return t.map((function(e){return h({},e,{computed:m(h({},e))})}))}),[t])},x=function(e){var t=e.datum,n=e.x,i=e.y,a=e.note,o=(0,c.DP)(),l=(0,c.mk)(),u=l.animate,p=l.config,b=(0,f.zh)({x:n,y:i,config:p,immediate:!u});return"function"==typeof a?(0,r.createElement)(a,{x:n,y:i,datum:t}):(0,d.jsxs)(d.Fragment,{children:[o.annotations.text.outlineWidth>0&&(0,d.jsx)(f.CS.text,{x:b.x,y:b.y,style:h({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:a}),(0,d.jsx)(f.CS.text,{x:b.x,y:b.y,style:s()(o.annotations.text,["outlineWidth","outlineColor"]),children:a})]})},_=function(e){var t=e.points,n=e.isOutline,i=void 0!==n&&n,a=(0,c.DP)(),o=(0,r.useMemo)((function(){var e=t[0];return t.slice(1).reduce((function(e,t){return e+" L"+t[0]+","+t[1]}),"M"+e[0]+","+e[1])}),[t]),l=(0,c.wA)(o);if(i&&a.annotations.link.outlineWidth<=0)return null;var u=h({},a.annotations.link);return i&&(u.strokeLinecap="square",u.strokeWidth=a.annotations.link.strokeWidth+2*a.annotations.link.outlineWidth,u.stroke=a.annotations.link.outlineColor,u.opacity=a.annotations.link.outlineOpacity),(0,d.jsx)(f.CS.path,{fill:"none",d:l,style:u})},w=function(e){var t=e.x,n=e.y,r=e.size,i=(0,c.DP)(),a=(0,c.mk)(),o=a.animate,l=a.config,u=(0,f.zh)({x:t,y:n,radius:r/2,config:l,immediate:!o});return(0,d.jsxs)(d.Fragment,{children:[i.annotations.outline.outlineWidth>0&&(0,d.jsx)(f.CS.circle,{cx:u.x,cy:u.y,r:u.radius,style:h({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),(0,d.jsx)(f.CS.circle,{cx:u.x,cy:u.y,r:u.radius,style:i.annotations.outline})]})},k=function(e){var t=e.x,n=e.y,r=e.size,i=void 0===r?4:r,a=(0,c.DP)(),o=(0,c.mk)(),l=o.animate,u=o.config,s=(0,f.zh)({x:t,y:n,radius:i/2,config:u,immediate:!l});return(0,d.jsxs)(d.Fragment,{children:[a.annotations.outline.outlineWidth>0&&(0,d.jsx)(f.CS.circle,{cx:s.x,cy:s.y,r:s.radius,style:h({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),(0,d.jsx)(f.CS.circle,{cx:s.x,cy:s.y,r:s.radius,style:a.annotations.symbol})]})},S=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=void 0===a?6:a,l=(0,c.DP)(),u=(0,c.mk)(),s=u.animate,p=u.config,b=(0,f.zh)({x:t-r/2,y:n-i/2,width:r,height:i,config:p,immediate:!s});return(0,d.jsxs)(d.Fragment,{children:[l.annotations.outline.outlineWidth>0&&(0,d.jsx)(f.CS.rect,{x:b.x,y:b.y,rx:o,ry:o,width:b.width,height:b.height,style:h({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+2*l.annotations.outline.outlineWidth,stroke:l.annotations.outline.outlineColor,opacity:l.annotations.outline.outlineOpacity})}),(0,d.jsx)(f.CS.rect,{x:b.x,y:b.y,rx:o,ry:o,width:b.width,height:b.height,style:l.annotations.outline})]})},C=function(e){var t=e.datum,n=e.x,i=e.y,a=e.note,o=function(e){return(0,r.useMemo)((function(){return m(e)}),[e])}(e);if(!function(e){var t=typeof e;return(0,r.isValidElement)(e)||"string"===t||"function"===t||"object"===t}(a))throw new Error("note should be a valid react element");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_,{points:o.points,isOutline:!0}),p(e)&&(0,d.jsx)(w,{x:n,y:i,size:e.size}),b(e)&&(0,d.jsx)(k,{x:n,y:i,size:e.size}),g(e)&&(0,d.jsx)(S,{x:n,y:i,width:e.width,height:e.height,borderRadius:e.borderRadius}),(0,d.jsx)(_,{points:o.points}),(0,d.jsx)(x,{datum:t,x:o.text[0],y:o.text[1],note:a})]})},M=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)}))},A=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(),M(e,t.computed.points),e.stroke(),e.lineCap="butt"),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.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),b(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()),g(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(),M(e,t.computed.points),e.stroke(),p(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()),b(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),g(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,{Y5:()=>m,ZY:()=>_,xA:()=>x,xu:()=>w});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,C=e.renderTick,M=void 0===C?p:C,A=e.truncateTickAt,T=e.legend,E=e.legendPosition,P=void 0===E?"end":E,j=e.legendOffset,O=void 0===j?0:j,z=e.onClick,F=e.ariaHidden,N=(0,i.DP)(),D=N.axis.legend.text,L=(0,r.useMemo)((function(){return d(S,n)}),[S,n]),R=f({axis:t,scale:n,ticksPosition:g,tickValues:m,tickSize:y,tickPadding:_,tickRotation:k,truncateTickAt:A}),U=R.ticks,I=R.textAlign,W=R.textBaseline,V=null;if(void 0!==T){var $,B=0,q=0,H=0;"y"===t?(H=-90,B=O,"start"===P?($="start",q=b):"middle"===P?($="middle",q=b/2):"end"===P&&($="end")):(q=O,"start"===P?$="start":"middle"===P?($="middle",B=b/2):"end"===P&&($="end",B=b)),V=(0,s.jsxs)(s.Fragment,{children:[D.outlineWidth>0&&(0,s.jsx)("text",{transform:"translate("+B+", "+q+") rotate("+H+")",textAnchor:$,style:c({dominantBaseline:"central"},D),strokeWidth:2*D.outlineWidth,stroke:D.outlineColor,strokeLinejoin:"round",children:T}),(0,s.jsx)("text",{transform:"translate("+B+", "+q+") rotate("+H+")",textAnchor:$,style:c({dominantBaseline:"central"},D),children:T})]})}var Y=(0,i.mk)(),K=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:!K}),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)(U,{keys:function(e){return e.key},initial:G,from:Z,enter:G,update:G,leave:{opacity:0},config:Q,immediate:!K});return(0,s.jsxs)(a.CS.g,{transform:X.transform,"aria-hidden":F,children:[J((function(e,t,n,i){return r.createElement(M,c({tickIndex:i,format:L,rotate:k,textBaseline:W,textAnchor:I,truncateTickAt:A,animatedProps:e},t,z?{onClick:z}:{}))})),(0,s.jsx)(a.CS.line,{style:N.axis.domain.line,x1:0,x2:X.lineX2,y1:0,y2:X.lineY2}),V]})})),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)}))})})),v=(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))})),y=(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)(v,c({},t,{key:t.key,animatedProps:e}))}))})})),x=(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)(y,{lines:u}),c&&(0,s.jsx)(y,{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,C=void 0===S?0:S,M=t.theme,A=f({axis:r,scale:a,ticksPosition:d,tickValues:h,tickSize:b,tickPadding:m,tickRotation:y,engine:"canvas"}),T=A.ticks,E=A.textAlign,P=A.textBaseline;e.save(),e.translate(l,s),e.textAlign=E,e.textBaseline=P;var j=M.axis.ticks.text;e.font=(j.fontWeight?j.fontWeight+" ":"")+j.fontSize+"px "+j.fontFamily,(null!=(n=M.axis.domain.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(M.axis.domain.line.strokeWidth),e.lineCap="square",M.axis.domain.line.stroke&&(e.strokeStyle=M.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===r?c:0,"x"===r?0:c),e.stroke());var O="function"==typeof x?x:function(e){return""+e};if(T.forEach((function(t){var n;(null!=(n=M.axis.ticks.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(M.axis.ticks.line.strokeWidth),e.lineCap="square",M.axis.ticks.line.stroke&&(e.strokeStyle=M.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=O(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate((0,i.tR)(y)),j.outlineWidth>0&&(e.strokeStyle=j.outlineColor,e.lineWidth=2*j.outlineWidth,e.lineJoin="round",e.strokeText(""+r,0,0)),M.axis.ticks.text.fill&&(e.fillStyle=j.fill),e.fillText(""+r,0,0),e.restore()})),void 0!==_){var z=0,F=0,N=0,D="center";"y"===r?(N=-90,z=C,"start"===k?(D="start",F=c):"middle"===k?(D="center",F=c/2):"end"===k&&(D="end")):(F=C,"start"===k?D="start":"middle"===k?(D="center",z=c/2):"end"===k&&(D="end",z=c)),e.translate(z,F),e.rotate((0,i.tR)(N)),e.font=(M.axis.legend.text.fontWeight?M.axis.legend.text.fontWeight+" ":"")+M.axis.legend.text.fontSize+"px "+M.axis.legend.text.fontFamily,M.axis.legend.text.fill&&(e.fillStyle=M.axis.legend.text.fill),e.textAlign=D,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}))}))},w=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,{nz:()=>de,m1:()=>pe});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),C=n(7666),M=n(9902),A=n(5813),T=n(1632),E=n(2402),P=n(456),j=n(7971),O=n(1223),z=n(5430),F=n(1077),N=n(5961),D=n(6041),L=n(8732),R=n(7616),U=n(4630),I=n(8710),W=n(5988),V=n(6253),$=n(541),B=n(9155),q=n(8156),H=n.n(q),Y=n(1331),K=n.n(Y),Q=n(6957),X=n(5556),G=n.n(X),Z=n(4598);function J(){return J=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},J.apply(this,arguments)}function ee(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 te={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},ne=Object.keys(te),re={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},ie=Object.keys(re),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},oe={blues:w.K,greens:k.K,greys:S.K,oranges:C.K,purples:M.K,reds:A.K,blue_green:T.K,blue_purple:E.K,green_blue:P.K,orange_red:j.K,purple_blue_green:O.K,purple_blue:z.K,purple_red:F.K,red_purple:N.K,yellow_green_blue:D.K,yellow_green:L.K,yellow_orange_brown:R.K,yellow_orange_red:U.K},le=Object.keys(oe),ue={blues:w.A,greens:k.A,greys:S.A,oranges:C.A,purples:M.A,reds:A.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:I.Ay,inferno:I.e0,magma:I.uz,plasma:I.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:V.A,blue_green:T.A,blue_purple:E.A,green_blue:P.A,orange_red:j.A,purple_blue_green:O.A,purple_blue:z.A,purple_red:F.A,red_purple:N.A,yellow_green_blue:D.A,yellow_green:L.A,yellow_orange_brown:R.A,yellow_orange_red:U.A},se=J({},te,re,oe),ce=(Object.keys(se),J({},ae,ue,{rainbow:W.Ay,sinebow:$.A})),fe=(Object.keys(ce),function(e,t){if("function"==typeof e)return e;if(K()(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=H()(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 H()(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 ee(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)?ee(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,B.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)})]),function(e,t){if("function"==typeof e)return e;var n="function"==typeof t?t:function(e){return H()(e,t)};if(Array.isArray(e)){var r=(0,Z.A)(e),i=function(e){return r(n(e))};return i.scale=r,i}if(K()(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return H()(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return ne.includes(e)}(e.scheme)){var a=(0,Z.A)(se[e.scheme]),o=function(e){return a(n(e))};return o.scale=a,o}if(function(e){return ie.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var l=(0,Z.A)(se[e.scheme][e.size||11]),u=function(e){return l(n(e))};return u.scale=l,u}if(function(e){return le.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var s=(0,Z.A)(se[e.scheme][e.size||9]),c=function(e){return s(n(e))};return c.scale=s,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}}),pe=function(e,t){return(0,B.useMemo)((function(){return he(e,t)}),[e,t])}},1644:(e,t,n)=>{"use strict";n.d(t,{U9:()=>nn,mc:()=>jt,KF:()=>Ot,Ge:()=>Qt,mQ:()=>It,kc:()=>cn,tR:()=>Lt,x:()=>rn,H9:()=>ln,u7:()=>on,B2:()=>Ut,nv:()=>Rt,Ou:()=>Tt,ni:()=>Wt,wA:()=>dt,Xl:()=>xt,W_:()=>_t,mk:()=>ft,Ob:()=>an,DP:()=>Mt,d_:()=>wt});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(7737),p=n(2555),b=n(5015),g=n.n(b),m=n(4848),v=n(8090),y=n.n(v),x=(n(6449),n(4598)),_=n(9505),w=n(9429),k=n(2389),S=n(7680),C=n(9501),M=n(1060),A=n(4704),T=n(6268),E=n(5874),P=n(6476),j=n(4425),O=n(6417),z=n(7666),F=n(9902),N=n(5813),D=n(1632),L=n(2402),R=n(456),U=n(7971),I=n(1223),W=n(5430),V=n(1077),$=n(5961),B=n(6041),q=n(8732),H=n(7616),Y=n(4630),K=n(6406),Q=n(9573),X=n(4025),G=n(6018),Z=n(5167),J=n(6786),ee=n(2612),te=n(1021),ne=n(5006),re=n(8710),ie=n(5988),ae=n(6253),oe=n(541),le=n(1882),ue=n.n(le),se=n(1648),ce=n.n(se);function fe(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 de(e){this._context=e}function he(){}function pe(e){this._context=e}function be(e){this._context=e}function ge(e,t){this._basis=new de(e),this._beta=t}de.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:fe(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:fe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},pe.prototype={areaStart:he,areaEnd:he,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:fe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:fe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ge.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 me=function e(t){function n(e){return 1===t?new de(e):new ge(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function ve(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 ye(e,t){this._context=e,this._k=(1-t)/6}ye.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:ve(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:ve(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 xe=function e(t){function n(e){return new ye(e,t)}return n.tension=function(t){return e(+t)},n}(0);function _e(e,t){this._context=e,this._k=(1-t)/6}_e.prototype={areaStart:he,areaEnd:he,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:ve(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 we=function e(t){function n(e){return new _e(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ke(e,t){this._context=e,this._k=(1-t)/6}ke.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:ve(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 Se=function e(t){function n(e){return new ke(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ce(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 Me(e,t){this._context=e,this._alpha=t}Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI,Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ce(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ae=function e(t){function n(e){return t?new Me(e,t):new ye(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Te(e,t){this._context=e,this._alpha=t}Te.prototype={areaStart:he,areaEnd:he,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ce(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ee=function e(t){function n(e){return t?new Te(e,t):new _e(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:Ce(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const je=function e(t){function n(e){return t?new Pe(e,t):new ke(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);var Oe=n(6343);function ze(e){this._context=e}function Fe(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(Fe(a)+Fe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function De(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Le(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 Re(e){this._context=e}function Ue(e){this._context=new Ie(e)}function Ie(e){this._context=e}function We(e){this._context=e}function Ve(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 $e(e,t){this._context=e,this._t=t}ze.prototype={areaStart:he,areaEnd:he,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))}},Re.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:Le(this,this._t0,De(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,Le(this,De(this,n=Ne(this,e,t)),n);break;default:Le(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}}},(Ue.prototype=Object.create(Re.prototype)).point=function(e,t){Re.prototype.point.call(this,t,e)},Ie.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)}},We.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=Ve(e),i=Ve(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)}},$e.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 Be=n(4873);function qe(e){var t=e.map(He);return(0,Be.A)(e).sort((function(e,n){return t[e]-t[n]}))}function He(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function Ye(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 Ke=n(3414),Qe=n(8801),Xe=n(6906),Ge=n(2560),Ze=n(1331),Je=n.n(Ze),et=n(4383),tt=n.n(et),nt=n(2404),rt=n.n(nt),it={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 at(){return at=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},at.apply(this,arguments)}function ot(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 lt=["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"],ut=(0,r.createContext)(),st=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=g()(o)?p.$W[o]:o;return{animate:i,config:e}}),[i,o]);return(0,m.jsx)(ut.Provider,{value:l,children:t})},ct={animate:a().bool,motionConfig:a().oneOfType([a().oneOf(Object.keys(p.$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})])};st.propTypes={children:a().node.isRequired,animate:ct.animate,config:ct.motionConfig};var ft=function(){return(0,r.useContext)(ut)},dt=function(e){var t=ft(),n=t.animate,i=t.config,a=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current}(e),o=(0,r.useMemo)((function(){return(0,h.A)(a,e)}),[a,e]),l=(0,p.zh)({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!n}).value;return(0,p.to)(l,o)},ht={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:y()(_.K),PRGn:y()(w.K),PiYG:y()(k.K),PuOr:y()(S.K),RdBu:y()(C.K),RdGy:y()(M.K),RdYlBu:y()(A.K),RdYlGn:y()(T.K),spectral:y()(E.K),blues:y()(P.K),greens:y()(j.K),greys:y()(O.K),oranges:y()(z.K),purples:y()(F.K),reds:y()(N.K),BuGn:y()(D.K),BuPu:y()(L.K),GnBu:y()(R.K),OrRd:y()(U.K),PuBuGn:y()(I.K),PuBu:y()(W.K),PuRd:y()(V.K),RdPu:y()($.K),YlGnBu:y()(B.K),YlGn:y()(q.K),YlOrBr:y()(H.K),YlOrRd:y()(Y.K)},pt=Object.keys(ht),bt=(K.A,Q.A,X.A,G.A,Z.A,J.A,ee.A,te.A,ne.A,y()(_.K),y()(w.K),y()(k.K),y()(S.K),y()(C.K),y()(M.K),y()(A.K),y()(T.K),y()(E.K),y()(P.K),y()(j.K),y()(O.K),y()(z.K),y()(F.K),y()(N.K),y()(D.K),y()(L.K),y()(R.K),y()(U.K),y()(I.K),y()(W.K),y()(V.K),y()($.K),y()(B.K),y()(q.K),y()(H.K),y()(Y.K),_.A,w.A,k.A,S.A,C.A,M.A,A.A,T.A,E.A,P.A,j.A,O.A,z.A,F.A,N.A,re.Ay,re.e0,re.uz,re.pv,ie.Ko,ie.Ub,ae.A,D.A,L.A,R.A,U.A,I.A,W.A,V.A,$.A,B.A,q.A,H.A,Y.A,ie.Ay,oe.A,a().oneOfType([a().oneOf(pt),a().func,a().arrayOf(a().string)]),{basis:function(e){return new de(e)},basisClosed:function(e){return new pe(e)},basisOpen:function(e){return new be(e)},bundle:me,cardinal:xe,cardinalClosed:we,cardinalOpen:Se,catmullRom:Ae,catmullRomClosed:Ee,catmullRomOpen:je,linear:Oe.A,linearClosed:function(e){return new ze(e)},monotoneX:function(e){return new Re(e)},monotoneY:function(e){return new Ue(e)},natural:function(e){return new We(e)},step:function(e){return new $e(e,.5)},stepAfter:function(e){return new $e(e,1)},stepBefore:function(e){return new $e(e,0)}}),gt=Object.keys(bt),mt=(gt.filter((function(e){return e.endsWith("Closed")})),ce()(gt,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),ce()(gt,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),{ascending:qe,descending:function(e){return qe(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(He),a=function(e){var t=e.map(Ye);return(0,Be.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:Be.A,reverse:function(e){return(0,Be.A)(e).reverse()}}),vt=(Object.keys(mt),{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,Ke.A)(e,t)}},diverging:Qe.A,none:Ke.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,Ke.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,Ke.A)(e,t)}}}),yt=(Object.keys(vt),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,x.A)(ne.A),{top:0,right:0,bottom:0,left:0}),xt=function(e,t,n){return void 0===n&&(n={}),(0,r.useMemo)((function(){var r=at({},yt,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])},_t=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]},wt=function(e){return(0,r.useMemo)((function(){return function(e){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?(0,Ge.DC)(e.slice("5")):(0,Xe.GP)(e):function(e){return""+e}}(e)}),[e])},kt=(0,r.createContext)(),St={},Ct=function(e){var t=e.theme,n=void 0===t?St:t,i=e.children,a=function(e){return(0,r.useMemo)((function(){return function(e,t){var n=u()({},e,t);return lt.forEach((function(e){d()(n,e,function(e,t){return at({},t,e)}(c()(n,e),n.text))})),n}(it,e)}),[e])}(n);return(0,m.jsx)(kt.Provider,{value:a,children:i})};Ct.propTypes={children:a().node.isRequired,theme:a().object};var Mt=function(){return(0,r.useContext)(kt)},At=["outlineWidth","outlineColor","outlineOpacity"],Tt=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,ot(e,At)},Et=function(e){var t=e.children,n=e.condition,i=e.wrapper;return n?(0,r.cloneElement)(i,{},t):t};Et.propTypes={children:a().node.isRequired,condition:a().bool.isRequired,wrapper:a().element.isRequired};var Pt={position:"relative"},jt=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,m.jsx)(Ct,{theme:n,children:(0,m.jsx)(st,{animate:s,config:c,children:(0,m.jsx)(o.Bc,{container:f,children:(0,m.jsxs)(Et,{condition:a,wrapper:(0,m.jsx)("div",{style:Pt,ref:f}),children:[t,u&&(0,m.jsx)(o.m_,{})]})})})})};jt.propTypes={children:a().element.isRequired,isInteractive:a().bool,renderWrapper:a().bool,theme:a().object,animate:a().bool,motionConfig:a().oneOfType([a().string,ct.motionConfig])},a().func.isRequired,a().bool,a().bool,a().object.isRequired,a().bool.isRequired,a().oneOfType([a().string,ct.motionConfig]);var Ot=function(e){var t=e.children,n=_t(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return(0,m.jsx)("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};Ot.propTypes={children:a().func.isRequired};var zt=["id","colors"],Ft=function(e){var t=e.id,n=e.colors,r=ot(e,zt);return(0,m.jsx)("linearGradient",at({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,m.jsx)("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1},t)}))}))};Ft.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 Nt={linearGradient:Ft},Dt=(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,m.jsxs)("pattern",{id:t,width:d,height:d,patternUnits:"userSpaceOnUse",children:[(0,m.jsx)("rect",{width:d,height:d,fill:r}),(0,m.jsx)("circle",{cx:p+h,cy:p+h,r:h,fill:a}),f&&(0,m.jsx)("circle",{cx:1.5*s+l+h,cy:1.5*s+l+h,r:h,fill:a})]})}));Dt.displayName="PatternDots",Dt.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 Lt=function(e){return e*Math.PI/180},Rt=function(e){return 180*e/Math.PI},Ut=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},It=function(e){var t=e%360;return t<0&&(t+=360),t},Wt={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"}}},Vt=(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,g=h;return 0===d?p="\n M 0 0 L "+b+" 0\n M 0 "+g+" L "+b+" "+g+"\n ":90===d?p="\n M 0 0 L 0 "+g+"\n M "+b+" 0 L "+b+" "