PageSourceSearch

https://mymentor.pt/static/js/1672.583f9305.chunk.js

js mymentor.pt collected 2026-09-24 10:32:02 UTC 78,029 bytes, 2 lines download raw bytes

1(self.webpackChunkmymentor=self.webpackChunkmymentor||[]).push([[1672],{1488:(t,e,n)=>{var r=n(50149),i=n(97132),o=n(88140),a=n(35324),l=n(96614),u=n(96761),c=n(15857),s=n(68592),d=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=a(e,t),c||(c=e.length>1),e})),l(t,s(t),n),c&&(n=i(n,7,u));for(var d=e.length;d--;)o(n,e[d]);return n}));t.exports=d},9096:(t,e,n)=>{var r=n(39256),i=n(15029),o=n(33279),a=n(54052),l=n(63932);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):l(t)}},10396:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},12536:(t,e,n)=>{var r=n(50149),i=n(52969),o=n(9096),a=n(38883),l=n(60320),u=n(47574),c=n(65893),s=n(33279),d=n(54052);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[s];var f=-1;e=r(e,u(o));var h=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return l(h,(function(t,e){return c(t,e,n)}))}},15029:(t,e,n)=>{var r=n(26989),i=n(33097),o=n(53366),a=n(62597),l=n(31798),u=n(91310),c=n(70914);t.exports=function(t,e){return a(t)&&l(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},16599:(t,e,n)=>{var r=n(19841);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t===t,a=r(t),l=void 0!==e,u=null===e,c=e===e,s=r(e);if(!u&&!s&&!a&&t>e||a&&l&&c&&!u&&!s||i&&l&&c||!n&&c||!o)return 1;if(!i&&!a&&!s&&t<e||s&&n&&o&&!i&&!a||u&&n&&o||!l&&o||!c)return-1}return 0}},20977:(t,e,n)=>{var r=n(9096),i=n(64416);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},21676:(t,e,n)=>{var r=n(52969),i=n(53871);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},23781:(t,e,n)=>{var r=n(31798),i=n(28673);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},27133:(t,e,n)=>{var r=n(16913),i=n(22761);t.exports=function(t){return i(t)&&"[object Date]"==r(t)}},31798:(t,e,n)=>{var r=n(46686);t.exports=function(t){return t===t&&!r(t)}},38883:(t,e,n)=>{var r=n(45652),i=n(6571);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},39256:(t,e,n)=>{var r=n(86532),i=n(23781),o=n(91310);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},45652:(t,e,n)=>{var r=n(94664),i=n(76516)(r);t.exports=i},50723:(t,e,n)=>{var r=n(17529),i=n(87171),o=n(9096),a=n(54052);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},52866:(t,e,n)=>{var r=n(52969);t.exports=function(t){return function(e){return r(e,t)}}},53871:t=>{t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},60320:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},63932:(t,e,n)=>{var r=n(10396),i=n(52866),o=n(62597),a=n(70914);t.exports=function(t){return o(t)?r(a(t)):i(t)}},65893:(t,e,n)=>{var r=n(16599);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,l=o.length,u=n.length;++i<l;){var c=r(o[i],a[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},76516:(t,e,n)=>{var r=n(6571);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,l=Object(n);(e?a--:++a<o)&&!1!==i(l[a],a,l););return n}}},79160:(t,e,n)=>{var r=n(16913),i=n(22761);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},85437:(t,e,n)=>{"use strict";n.d(e,{ED:()=>Ur});var r=n(65043),i=n(12546),o=n(62361),a=n(88650),l=n(16555),u=(n(9376),n(20977)),c=n.n(u),s=(n(87424),n(74065),n(93085),Math.sqrt(50)),d=Math.sqrt(10),f=Math.sqrt(2);function h(t,e,n){var r,i,o,a,l=-1;
1if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=v(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)/a}return r&&o.reverse(),o}function v(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=s?10:o>=d?5:o>=f?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=s?10:o>=d?5:o>=f?2:1)}function g(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=s?i*=10:o>=d?i*=5:o>=f&&(i*=2),e<t?-i:i}function m(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function y(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>m(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}const x=y(m),b=x.right,p=(x.left,y((function(t){return null===t?NaN:+t})).center,b);var k=n(3245),M=n(79232);function w(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=O(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function S(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}var C=n(59029);function T(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=O(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var A=n(48441),j=n(25100);function P(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function O(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?(0,j.A)(e):("number"===i?C.A:"string"===i?(n=(0,k.Ay)(e))?(e=n,M.Ay):A.A:e instanceof k.Ay?M.Ay:e instanceof Date?S:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?w:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?T:C.A:P))(t,e)}function W(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function D(t){return+t}var L=[0,1];function F(t){return t}function V(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function I(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=V(i,r),o=n(a,o)):(r=V(r,i),o=n(o,a)),function(t){return o(r(t))}}function U(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=V(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=p(t,e,1,r)-1;return o[n](i[n](e))}}function E(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Y(){var t,e,n,r,i,o,a=L,l=L,u=O,c=F;function s(){var t=Math.min(a.length,l.length);return c!==F&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?U:I,i=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),l,u)))(t(c(e)))}return d.invert=function(n){return c(e((o||(o=r(l,a.map(t),C.A)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,D),s()):a.slice()},d.range=function(t){return arguments.length?(l=Array.from(t),s()):l.slice()},d.rangeRound=function(t){return l=Array.from(t),u=W,s()},d.clamp=function(t){return arguments.length?(c=!!t||F,s()):c!==F},d.interpolate=function(t){return arguments.length?(u=t,s()):u},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,s()}}function R(){return Y()(F,F)}var B=n(16505),H=n(70284),z=n(47715);function X(t,e,n,r){var i,o=g(t,e,n);switch((r=(0,H.A)(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,z.A)(e)/3)))-(0,z.A)(Math.abs(t)))}(o,a))||(r.precision=i),(0,l.s)(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,z.A)(e)-(0,z.A)(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-(0,z.A)(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return(0,l.GP)(r)}function N(t){var e=t.domain;return t.ticks=function(t){var n=e();return h(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return X(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,l=o.length-1,u=o[a],c=o[l],s=10;for(c<u&&(i=u,u=c,c=i,i=a,a=l,l=i);s-- >0;){if((i=v(u,c,n))===r)return o[a]=u,o[l]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function J(){var t=R();return t.copy=function(){return E(t,J())},B.C.apply(t,arguments),N(t)}var G=n(53210);function q(){var t,e,n=(0,G.A)().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,l=!1,u=0,c=0,s=.5;function d(){var n=r().length,d=a<o,f=d?a:o,h=d?o:a;t=(h-f)/Math.max(1,n-u+2*c),l&&(t=Math.floor(t)),f+=(h-f-t*(n-u))*s,e=t*(1-u),l&&(f=Math.round(f),e=Math.round(e));var v=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return f+t*e}));return i(d?v.reverse():v)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),d()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,l=!0,d()},n.bandwidth=function(){return e},n.step=function(){return t}
1,n.round=function(t){return arguments.length?(l=!!t,d()):l},n.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),d()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),d()):u},n.paddingOuter=function(t){return arguments.length?(c=+t,d()):c},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),d()):s},n.copy=function(){return q(r(),[o,a]).round(l).paddingInner(u).paddingOuter(c).align(s)},B.C.apply(d(),arguments)}function K(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return K(e())},t}function $(){return K(q.apply(null,arguments).paddingInner(1))}var Q=n(23758),Z=n(19063),_=(0,Z.A)((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));_.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,Z.A)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):_:null};const tt=_;_.range;var et=(0,Z.A)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Q.Tt)}),(function(t,e){return(e-t)/Q.Tt}),(function(t){return t.getUTCSeconds()}));const nt=et;et.range;var rt=(0,Z.A)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Q.Tt)}),(function(t,e){t.setTime(+t+e*Q.rR)}),(function(t,e){return(e-t)/Q.rR}),(function(t){return t.getMinutes()}));const it=rt;rt.range;var ot=(0,Z.A)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Q.Tt-t.getMinutes()*Q.rR)}),(function(t,e){t.setTime(+t+e*Q.JJ)}),(function(t,e){return(e-t)/Q.JJ}),(function(t){return t.getHours()}));const at=ot;ot.range;var lt=n(8966),ut=n(5038),ct=(0,Z.A)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const st=ct;ct.range;var dt=n(6883),ft=(0,Z.A)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Q.rR)}),(function(t,e){return(e-t)/Q.rR}),(function(t){return t.getUTCMinutes()}));const ht=ft;ft.range;var vt=(0,Z.A)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Q.JJ)}),(function(t,e){return(e-t)/Q.JJ}),(function(t){return t.getUTCHours()}));const gt=vt;vt.range;var mt=n(17558),yt=n(75838),xt=(0,Z.A)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const bt=xt;xt.range;var pt=n(72915);function kt(t,e,n,r,i,o){const a=[[nt,1,Q.Tt],[nt,5,5*Q.Tt],[nt,15,15*Q.Tt],[nt,30,30*Q.Tt],[o,1,Q.rR],[o,5,5*Q.rR],[o,15,15*Q.rR],[o,30,30*Q.rR],[i,1,Q.JJ],[i,3,3*Q.JJ],[i,6,6*Q.JJ],[i,12,12*Q.JJ],[r,1,Q.Nm],[r,2,2*Q.Nm],[n,1,Q.Fq],[e,1,Q.Pv],[e,3,3*Q.Pv],[t,1,Q.MP]];function l(e,n,r){const i=Math.abs(n-e)/r,o=y((t=>{let[,,e]=t;return e})).right(a,i);if(o===a.length)return t.every(g(e/Q.MP,n/Q.MP,r));if(0===o)return tt.every(Math.max(g(e,n,r),1));const[l,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return l.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:l(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},l]}const[Mt,wt]=kt(pt.A,bt,yt.Hl,mt.A,gt,ht),[St,Ct]=kt(dt.A,st,ut.fz,lt.A,at,it);function Tt(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function At(t){return new Date(t)}function jt(t){return t instanceof Date?+t:+new Date(+t)}function Pt(t,e,n,r,i,o,a,l,u,c){var s=R(),d=s.invert,f=s.domain,h=c(".%L"),v=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),x=c("%b %d"),b=c("%B"),p=c("%Y");function k(t){return(u(t)<t?h:l(t)<t?v:a(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?y:x:n(t)<t?b:p)(t)}return s.invert=function(t){return new Date(d(t))},s.domain=function(t){return arguments.length?f(Array.from(t,jt)):f().map(At)},s.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?k:c(e)},s.nice=function(t){var n=f();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Tt(n,t)):s},s.copy=function(){return E(s,Pt(t,e,n,r,i,o,a,l,u,c))},s}function Ot(t){return Math.log(t)}function Wt(t){return Math.exp(t)}function Dt(t){return-Math.log(-t)}function Lt(t){return-Math.exp(-t)}function Ft(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Vt(t){return function(e){return-t(-e)}}function It(t){var e,n,r=t(Ot,Wt),i=r.domain,o=10;function a(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(o),n=function(t){return 10===t?Ft:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(o),i()[0]<0?(e=Vt(e),n=Vt(n),t(Dt,Lt)):t(Ot,Wt),r}
1return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),l=a[0],u=a[a.length-1];(r=u<l)&&(f=l,l=u,u=f);var c,s,d,f=e(l),v=e(u),g=null==t?10:+t,m=[];if(!(o%1)&&v-f<g){if(f=Math.floor(f),v=Math.ceil(v),l>0){for(;f<=v;++f)for(s=1,c=n(f);s<o;++s)if(!((d=c*s)<l)){if(d>u)break;m.push(d)}}else for(;f<=v;++f)for(s=o-1,c=n(f);s>=1;--s)if(!((d=c*s)<l)){if(d>u)break;m.push(d)}2*m.length<g&&(m=h(l,u,g))}else m=h(f,v,Math.min(v-f,g)).map(n);return r?m.reverse():m},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=(0,l.GP)(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(Tt(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Ut(){var t=It(Y()).domain([1,10]);return t.copy=function(){return E(t,Ut()).base(t.base())},B.C.apply(t,arguments),t}function Et(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Yt(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Rt(){var t=function(t){var e=1,n=t(Et(e),Yt(e));return n.constant=function(n){return arguments.length?t(Et(e=+n),Yt(e)):e},N(n)}(Y());return t.copy=function(){return E(t,Rt()).constant(t.constant())},B.C.apply(t,arguments)}var Bt=new Date,Ht=new Date;function zt(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,l=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return l;do{l.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return l},i.filter=function(n){return zt((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Bt.setTime(+e),Ht.setTime(+r),t(Bt),t(Ht),Math.floor(n(Bt,Ht))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var Xt=zt((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Xt.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?zt((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Xt:null};const Nt=Xt;Xt.range;var Jt=1e3,Gt=6e4,qt=36e5,Kt=6048e5,$t=zt((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Jt)}),(function(t,e){return(e-t)/Jt}),(function(t){return t.getUTCSeconds()}));const Qt=$t;$t.range;var Zt=zt((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jt)}),(function(t,e){t.setTime(+t+e*Gt)}),(function(t,e){return(e-t)/Gt}),(function(t){return t.getMinutes()}));const _t=Zt;Zt.range;var te=zt((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Gt)}),(function(t,e){return(e-t)/Gt}),(function(t){return t.getUTCMinutes()}));const ee=te;te.range;var ne=zt((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jt-t.getMinutes()*Gt)}),(function(t,e){t.setTime(+t+e*qt)}),(function(t,e){return(e-t)/qt}),(function(t){return t.getHours()}));const re=ne;ne.range;var ie=zt((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*qt)}),(function(t,e){return(e-t)/qt}),(function(t){return t.getUTCHours()}));const oe=ie;ie.range;function ae(t){return zt((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Gt)/Kt}))}var le=ae(0),ue=ae(1),ce=ae(2),se=ae(3),de=ae(4),fe=ae(5),he=ae(6);le.range,ue.range,ce.range,se.range,de.range,fe.range,he.range;function ve(t){return zt((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Kt}))}var ge=ve(0),me=ve(1),ye=ve(2),xe=ve(3),be=ve(4),pe=ve(5),ke=ve(6),Me=(ge.range,me.range,ye.range,xe.range,be.range,pe.range,ke.range,zt((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const we=Me;Me.range;var Se=zt((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Ce=Se;Se.range;var Te=zt((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Te.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zt((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Ae=Te;Te.range;var je=zt((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));je.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zt((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Pe=je;je.range;function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function We(t,e){if(t){if("string"===typeof t)return Oe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(t,e):void 0}}var De=[function(t){return t.setMilliseconds(0)},function(t){return t.setSeconds(0)},function(t){return t.setMinutes(0)},function(t){return t.setHours(0)},function(t){return t.setDate(1)},function(t){return t.setMonth(0)}],Le={millisecond:[],second:De.slice(0,1),minute:De.slice(0,2),hour:De.slice(0,3),day:De.slice(0,4),month:De.slice(0,5),year:De.slice(0,6)},Fe=function(t){var e=t.format,n=void 0===e?"native":e,r=t.precision,i=void 0===r?"millisecond":r,o=t.useUTC,l=void 0===o||o,u=function(t){return function(e){return Le[t].forEach((function(t){t(e)})),e}}(i);return function(t){if(void 0===t)return t;if("native"===n||t instanceof Date)return u(t);var e=l?(0,a.GY)(n):(0,a.T6)(n);return u(e(t))}},Ve=function(t,e,n,r){var i,o,a,l,u=t.min,c=void 0===u?0:u,s=t.max,d=void 0===s?"auto":s,f=t.stacked,h=void 0!==f&&f,v=t.reverse,g=void 0!==v&&v,m=t.clamp,y=void 0!==m&&m,x=t.nice,b=void 0!==x&&x;"auto"===c?i=!0===h?null!==(o=e.minStacked)&&void 0!==o?o:0:e.min:i=c;"auto"===d?a=!0===h?null!==(l=e.maxStacked)&&void 0!==l?l:0:e.max:a=d;var p=J().rangeRound("x"===r?[0,n]:[n,0]).domain(g?[a,i]:[i,a]).clamp(y);return!0===b?p.nice():"number"===typeof b&&p.nice(b),Ie(p,h)},Ie=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t;return n.type="linear",n.stacked=e,n},Ue=function(t){var e=t;return e.type="band",e},Ee=function(t,e,n){var r,i,o=t.format,l=void 0===o?"native":o,u=t.precision,c=void 0===u?"millisecond":u,s=t.min,d=void 0===s?"auto":s,f=t.max,h=void 0===f?"auto":f,v=t.useUTC,g=void 0===v||v,m=t.nice,y=void 0!==m&&m,x=Fe({format:l,precision:c,useUTC:g});r="auto"===d?x(e.min):"native"!==l?x(d):d,i="auto"===h?x(e.max):"native"!==l?x(h):h;var b=g?function(){return B.C.apply(Pt(Mt,wt,pt.A,bt,yt.Hl,mt.A,gt,ht,nt,a.aL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}():function(){return B.C.apply(Pt(St,Ct,dt.A,st,ut.fz,lt.A,at,it,nt,a.DC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}();b.range([0,n]),r&&i&&b.domain([r,i]),!0===y?b.nice():"object"!==typeof y&&"number"!==typeof y||b.nice(y);var p=b;return p.type="time",p.useUTC=g,p},Ye=function(t,e,n,r){var i,o=t.base,a=void 0===o?10:o,l=t.min,u=void 0===l?"auto":l,c=t.max,s=void 0===c?"auto":c;if(e.all.some((function(t){return 0===t})))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(e.all.filter((function(t){return null!=t}
1)).forEach((function(t){h||(void 0===i?i=Math.sign(t):Math.sign(t)!==i&&(h=!0))})),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d="auto"===u?e.min:u,f="auto"===s?e.max:s;var v=Ut().domain([d,f]).rangeRound("x"===r?[0,n]:[n,0]).base(a).nice();return v.type="log",v};function Re(t,e,n,r){switch(t.type){case"linear":return Ve(t,e,n,r);case"point":return function(t,e,n){var r=$().range([0,n]).domain(e.all);return r.type="point",r}(0,e,n);case"band":return function(t,e,n,r){var i=t.round,o=void 0===i||i,a=q().range("x"===r?[0,n]:[n,0]).domain(e.all).round(o);return Ue(a)}(t,e,n,r);case"time":return Ee(t,e,n);case"log":return Ye(t,e,n,r);case"symlog":return function(t,e,n,r){var i,o,a=t.constant,l=void 0===a?1:a,u=t.min,c=void 0===u?"auto":u,s=t.max,d=void 0===s?"auto":s,f=t.reverse,h=void 0!==f&&f;i="auto"===c?e.min:c,o="auto"===d?e.max:d;var v=Rt().constant(l).rangeRound("x"===r?[0,n]:[n,0]).nice();!0===h?v.domain([o,i]):v.domain([i,o]);var g=v;return g.type="symlog",g}(t,e,n,r);default:throw new Error("invalid scale spec")}}function Be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}}(t,e)||We(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var He=function(t){var e=t.bandwidth();if(0===e)return t;var n=e/2;return t.round()&&(n=Math.round(n)),function(e){var r;return(null!==(r=t(e))&&void 0!==r?r:0)+n}},ze=zt((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e.getTime()-t.getTime())/864e5}),(function(t){return Math.floor(t.getTime()/864e5)})),Xe=zt((function(t){return t.setUTCHours(0,0,0,0)}),(function(t,e){return t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e.getTime()-t.getTime())/864e5}),(function(t){return Math.floor(t.getTime()/864e5)})),Ne={millisecond:[Nt,Nt],second:[Qt,Qt],minute:[_t,ee],hour:[re,oe],day:[ze,Xe],week:[le,ge],sunday:[le,ge],monday:[ue,me],tuesday:[ce,ye],wednesday:[se,xe],thursday:[de,be],friday:[fe,pe],saturday:[he,ke],month:[we,Ce],year:[Ae,Pe]},Je=Object.keys(Ne),Ge=new RegExp("^every\\s*(\\d+)?\\s*(".concat(Je.join("|"),")s?$"),"i"),qe=function(t,e){if(Array.isArray(e))return e;if("string"===typeof e&&"useUTC"in t){var n=e.match(Ge);if(n){var r=Be(n,3),i=r[1],o=r[2],a=Ne[o][t.useUTC?1:0];if("day"===o){var l,u,c=Be(t.domain(),2),s=c[0],d=c[1],f=new Date(d);return f.setDate(f.getDate()+1),null!==(l=null===(u=a.every(Number(null!==i&&void 0!==i?i:1)))||void 0===u?void 0:u.range(s,f))&&void 0!==l?l:[]}if(void 0===i)return t.ticks(a);var h=a.every(Number(i));if(h)return t.ticks(h)}throw new Error("Invalid tickValues: ".concat(e))}if("ticks"in t){if(void 0===e)return t.ticks();if(function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t}(e))return t.ticks(e)}return t.domain()},Ke=n(70579),$e=n(65173),Qe=n.n($e);function Ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(n),!0).forEach((function(e){Ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var en=function(t){var e,n=t.axis,r=t.scale,i=t.ticksPosition,a=t.tickValues,l=t.tickSize,u=t.tickPadding,c=t.tickRotation,s=t.engine,d=void 0===s?"svg":s,f=qe(r,a),h=o.ni[d],v="bandwidth"in r?He(r):r,g={lineX:0,lineY:0},m={textX:0,textY:0},y="object"===typeof document&&"rtl"===document.dir,x=h.align.center,b=h.baseline.center;"x"===n?(e=function(t){var e;return{x:null!==(e=v(t))&&void 0!==e?e:0,y:0}},g.lineY=l*("after"===i?1:-1),m.textY=(l+u)*("after"===i?1:-1),b="after"===i?h.baseline.top:h.baseline.bottom,0===c?x=h.align.center:"after"===i&&c<0||"before"===i&&c>0?(x=h.align[y?"left":"right"],b=h.baseline.center):("after"===i&&c>0||"before"===i&&c<0)&&(x=h.align[y?"right":"left"],b=h.baseline.center)):(e=function(t){var e;return{x:0,y:null!==(e=v(t))&&void 0!==e?e:0}},g.lineX=l*("after"===i?1:-1),m.textX=(l+u)*("after"===i?1:-1),x="after"===i?h.align.left:h.align.right);var p=f.map((function(t){return tn(tn(tn({key:"number"===typeof t||"string"===typeof t?t:"".concat(t),value:t},e(t)),g),m)}));return{ticks:p,textAlign:x,textBaseline:b}},nn=function(t,e){if("undefined"===typeof t||"function"===typeof t)return t;if("time"===e.type){var n=(0,a.DC)(t);return function(t){return n(t instanceof Date?t:new Date(t))}}return(0,l.GP)(t)},rn=function(t){var e=t.width,n=t.height,r=t.scale,i=t.axis,o=t.values,a=function(t){return Array.isArray(t)}(o)?o:void 0,l=a||qe(r,o),u="bandwidth"in r?He(r):r,c="x"===i?l.map((function(t){var e,r;return{key:"".concat(t),x1:null!==(e=u(t))&&void 0!==e?e:0,x2:null!==(r=u(t))&&void 0!==r?r:0,y1:0,y2:n}})):l.map((function(t){var n,r;return{key:"".concat(t),x1:0,x2:e,y1:null!==(n=u(t))&&void 0!==n?n:0,y2:null!==(r=u(t))&&void 0!==r?r:0}}));return c},on=(0,r.memo)((function(t){var e,n=t.value,a=t.format,l=t.lineX,u=t.lineY,c=t.onClick,s=t.textBaseline,d=t.textAnchor,f=t.animatedProps,h=(0,o.DP)(),v=null!==(e=null===a||void 0===a?void 0:a(n))&&void 0!==e?e:n,g=(0,r.useMemo)((function(){var t={opacity:f.opacity};return c?{style:tn(tn({},t),{},{cursor:"pointer"}),onClick:function(t){return c(t,v)}}:{style:t}}),[f.opacity,c,v]);return(0,Ke.jsxs)(i.animated.g,tn(tn({transform:f.transform},g),{},{children:[(0,Ke.jsx)("line",{x1:0,x2:l,y1:0,y2:u,style:h.axis.ticks.line}),(0,Ke.jsx)(i.animated.text,{dominantBaseline:s,textAnchor:d,transform:f.textTransform,style:h.axis.ticks.text,children:v})]}))})),an=(0,r.memo)((function(t){var e=t.axis,n=t.scale,a=t.x,l=void 0===a?0:a,u=t.y,c=void 0===u?0:u,s=t.length,d=t.ticksPosition,f=t.tickValues,h=t.tickSize,v=void 0===h?5:h,g=t.tickPadding,m=void 0===g?5:g,y=t.tickRotation,x=void 0===y?0:y,b=t.format,p=t.renderTick,k=void 0===p?on:p,M=t.legend,w=t.legendPosition,S=void 0===w?"end":w,C=t.legendOffset,T=void 0===C?0:C,A=t.onClick,j=t.ariaHidden,P=(0,o.DP)(),O=(0,r.useMemo)((function(){return nn(b,n)}),[b,n]),W=en({axis:e,scale:n,ticksPosition:d,tickValues:f,tickSize:v,tickPadding:m,tickRotation:x}),D=W.ticks,L=W.textAlign,F=W.textBaseline,V=null;if(void 0!==M){var I,U=0,E=0,Y=0;"y"===e?(Y=-90,U=T,"start"===S?(I="start",E=s):"middle"===S?(I="middle",E=s/2):"end"===S&&(I="end")):(E=T,"start"===S?I="start":"middle"===S?(I="middle",U=s/2):"end"===S&&(I="end",U=s)),V=(0,Ke.jsx)("text",{transform:"translate(".concat(U,", ").concat(E,") rotate(").concat(Y,")"),textAnchor:I,style:tn({dominantBaseline:"central"},P.axis.legend.text),children:M})}var R=(0,o.mk)(),B=R.animate,H=R.config,z=(0,i.useSpring)({transform:"translate(".concat(l,",").concat(c,")"),lineX2:"x"===e?s:0,lineY2:"x"===e?0:s,config:H,immediate:!B}),X=(0,i.useTransition)(D,{keys:function(t){return t.key},initial:function(t){return{opacity:1,transform:"translate(".concat(t.x,",").concat(t.y,")"),textTransform:"translate(".concat(t.textX,",").concat(t.textY,") rotate(").concat(x,")")}},from:function(t){return{opacity:0,transform:"translate(".concat(t.x,",").concat(t.y,")"),textTransform:"translate(".concat(t.textX,",").concat(t.textY,") rotate(").concat(x,")")}},enter:function(t){return{opacity:1,transform:"translate(".concat(t.x,",").concat(t.y,")"),textTransform:"translate(".concat(t.textX,",").concat(t.textY,") rotate(").concat(x,")")}},update:function(t){return{opacity:1,transform:"translate(".concat(t.x,",").concat(t.y,")"),textTransform:"translate(".concat(t.textX,",").concat(t.textY,") rotate(").concat(x,")")}},leave:{opacity:0}
1,config:H,immediate:!B});return(0,Ke.jsxs)(i.animated.g,{transform:z.transform,"aria-hidden":j,children:[X((function(t,e,n,i){return(0,r.createElement)(k,tn(tn({tickIndex:i,format:O,rotate:x,textBaseline:F,textAnchor:L,animatedProps:t},e),A?{onClick:A}:{}))})),(0,Ke.jsx)(i.animated.line,{style:P.axis.domain.line,x1:0,x2:z.lineX2,y1:0,y2:z.lineY2}),V]})})),ln={ticksPosition:Qe().oneOf(["before","after"]),tickValues:Qe().oneOfType([Qe().number,Qe().arrayOf(Qe().oneOfType([Qe().number,Qe().string,Qe().instanceOf(Date)])),Qe().string]),tickSize:Qe().number,tickPadding:Qe().number,tickRotation:Qe().number,format:Qe().oneOfType([Qe().func,Qe().string]),renderTick:Qe().func,legend:Qe().node,legendPosition:Qe().oneOf(["start","middle","end"]),legendOffset:Qe().number,ariaHidden:Qe().bool},un=(Qe().shape(ln),["top","right","bottom","left"]),cn=(0,r.memo)((function(t){var e=t.xScale,n=t.yScale,r=t.width,i=t.height,o={top:t.top,right:t.right,bottom:t.bottom,left:t.left};return(0,Ke.jsx)(Ke.Fragment,{children:un.map((function(t){var a=o[t];if(!a)return null;var l="top"===t||"bottom"===t,u="top"===t||"left"===t?"before":"after";return(0,Ke.jsx)(an,tn(tn({},a),{},{axis:l?"x":"y",x:"right"===t?r:0,y:"bottom"===t?i:0,scale:l?e:n,length:l?r:i,ticksPosition:u}),t)}))})})),sn=(0,r.memo)((function(t){var e=t.animatedProps,n=(0,o.DP)();return(0,Ke.jsx)(i.animated.line,tn(tn({},e),n.grid.line))})),dn=(0,r.memo)((function(t){var e=t.lines,n=(0,o.mk)(),a=n.animate,l=n.config,u=(0,i.useTransition)(e,{keys:function(t){return t.key},initial:function(t){return{opacity:1,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2}},from:function(t){return{opacity:0,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2}},enter:function(t){return{opacity:1,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2}},update:function(t){return{opacity:1,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2}},leave:{opacity:0},config:l,immediate:!a});return(0,Ke.jsx)("g",{children:u((function(t,e){return(0,r.createElement)(sn,tn(tn({},e),{},{key:e.key,animatedProps:t}))}))})})),fn=(0,r.memo)((function(t){var e=t.width,n=t.height,i=t.xScale,o=t.yScale,a=t.xValues,l=t.yValues,u=(0,r.useMemo)((function(){return!!i&&rn({width:e,height:n,scale:i,axis:"x",values:a})}),[i,a,e,n]),c=(0,r.useMemo)((function(){return!!o&&rn({width:e,height:n,scale:o,axis:"y",values:l})}),[n,e,o,l]);return(0,Ke.jsxs)(Ke.Fragment,{children:[u&&(0,Ke.jsx)(dn,{lines:u}),c&&(0,Ke.jsx)(dn,{lines:c})]})})),hn=function(t,e){var n=e.xScale,r=e.yScale,i=e.width,a=e.height,l=e.top,u=e.right,c=e.bottom,s=e.left,d=e.theme,f={top:l,right:u,bottom:c,left:s};un.forEach((function(e){var l=f[e];if(!l)return null;var u="top"===e||"bottom"===e,c="top"===e||"left"===e?"before":"after",s=u?n:r,h=nn(l.format,s);!function(t,e){var n,r=e.axis,i=e.scale,a=e.x,l=void 0===a?0:a,u=e.y,c=void 0===u?0:u,s=e.length,d=e.ticksPosition,f=e.tickValues,h=e.tickSize,v=void 0===h?5:h,g=e.tickPadding,m=void 0===g?5:g,y=e.tickRotation,x=void 0===y?0:y,b=e.format,p=e.legend,k=e.legendPosition,M=void 0===k?"end":k,w=e.legendOffset,S=void 0===w?0:w,C=e.theme,T=en({axis:r,scale:i,ticksPosition:d,tickValues:f,tickSize:v,tickPadding:m,tickRotation:x,engine:"canvas"}),A=T.ticks,j=T.textAlign,P=T.textBaseline;t.save(),t.translate(l,c),t.textAlign=j,t.textBaseline=P,t.font="".concat(C.axis.ticks.text.fontWeight?"".concat(C.axis.ticks.text.fontWeight," "):"").concat(C.axis.ticks.text.fontSize,"px ").concat(C.axis.ticks.text.fontFamily),(null!==(n=C.axis.domain.line.strokeWidth)&&void 0!==n?n:0)>0&&(t.lineWidth=Number(C.axis.domain.line.strokeWidth),t.lineCap="square",C.axis.domain.line.stroke&&(t.strokeStyle=C.axis.domain.line.stroke),t.beginPath(),t.moveTo(0,0),t.lineTo("x"===r?s:0,"x"===r?0:s),t.stroke());var O="function"===typeof b?b:function(t){return"".concat(t)};if(A.forEach((function(e){var n;(null!==(n=C.axis.ticks.line.strokeWidth)&&void 0!==n?n:0)>0&&(t.lineWidth=Number(C.axis.ticks.line.strokeWidth),t.lineCap="square",C.axis.ticks.line.stroke&&(t.strokeStyle=C.axis.ticks.line.stroke),t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(e.x+e.lineX,e.y+e.lineY),t.stroke());var r=O(e.value);t.save(),t.translate(e.x+e.textX,e.y+e.textY),t.rotate((0,o.tR)(x)),C.axis.ticks.text.fill&&(t.fillStyle=C.axis.ticks.text.fill),t.fillText(String(r),0,0),t.restore(
1)})),void 0!==p){var W=0,D=0,L=0,F="center";"y"===r?(L=-90,W=S,"start"===M?(F="start",D=s):"middle"===M?(F="center",D=s/2):"end"===M&&(F="end")):(D=S,"start"===M?F="start":"middle"===M?(F="center",W=s/2):"end"===M&&(F="end",W=s)),t.translate(W,D),t.rotate((0,o.tR)(L)),t.font="".concat(C.axis.legend.text.fontWeight?"".concat(C.axis.legend.text.fontWeight," "):"").concat(C.axis.legend.text.fontSize,"px ").concat(C.axis.legend.text.fontFamily),C.axis.legend.text.fill&&(t.fillStyle=C.axis.legend.text.fill),t.textAlign=F,t.textBaseline="middle",t.fillText(p,0,0)}t.restore()}(t,tn(tn({},l),{},{axis:u?"x":"y",x:"right"===e?i:0,y:"bottom"===e?a:0,scale:s,format:h,length:u?i:a,ticksPosition:c,theme:d}))}))},vn=function(t,e){var n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values;rn({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(e){t.beginPath(),t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.stroke()}))},gn=n(1488),mn=n.n(gn),yn=n(79160),xn=n.n(yn),bn=n(50723),pn=n.n(bn);function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mn(Object(n),!0).forEach((function(e){kn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cn(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Tn(t,e){if(t){if("string"===typeof t)return Sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(t,e):void 0}}function An(t){return function(t){if(Array.isArray(t))return Sn(t)}(t)||Cn(t)||Tn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var jn=4,Pn=120,On=8,Wn=function(t){return"circle"===t.type},Dn=function(t){return"dot"===t.type},Ln=function(t){return"rect"===t.type},Fn=function(t){var e,n,r=t.x,i=t.y,a=t.noteX,l=t.noteY,u=t.noteWidth,c=void 0===u?Pn:u,s=t.noteTextOffset,d=void 0===s?On:s;if(xn()(a))e=r+a;else{if(void 0===a.abs)throw new Error("noteX should be either a number or an object containing an 'abs' property");e=a.abs}if(xn()(l))n=i+l;else{if(void 0===l.abs)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=l.abs}var f=r,h=i,v=function(t,e,n,r){var i=Math.atan2(r-e,n-t);return(0,o.mQ)((0,o.nv)(i))}(r,i,e,n);if(Wn(t)){var g=(0,o.B2)((0,o.tR)(v),t.size/2);f+=g.x,h+=g.y}if(Ln(t)){var m=Math.round((v+90)/45)%8;0===m&&(h-=t.height/2),1===m&&(f+=t.width/2,h-=t.height/2),2===m&&(f+=t.width/2),3===m&&(f+=t.width/2,h+=t.height/2),4===m&&(h+=t.height/2),5===m&&(f-=t.width/2,h+=t.height/2),6===m&&(f-=t.width/2),7===m&&(f-=t.width/2,h-=t.height/2)}var y=e,x=e;return(v+90)%360>180?(y-=c,x-=c):x+=c,{points:[[f,h],[e,n],[x,n]],text:[y,n-d],angle:v+90}},Vn=function(t){var e=t.data,n=t.annotations,i=t.getPosition,o=t.getDimensions;return(0,r.useMemo)((function(){return function(t){var e=t.data,n=t.annotations,r=t.getPosition,i=t.getDimensions;return n.reduce((function(t,n){var o=n.offset||0;return[].concat(An(t),An(pn()(e,n.match).map((function(t){var e=r(t),a=i(t);return(Wn(n)||Ln(n))&&(a.size=a.size+2*o,a.width=a.width+2*o,a.height=a.height+2*o),wn(wn(wn(wn({},mn()(n,["match","offset"])),e),a),{},{size:n.size||a.size,datum:t})}))))}),[])}({data:e,annotations:n,getPosition:i,getDimensions:o})}),[e,n,i,o])},In=function(t){var e=t.datum,n=t.x,a=t.y,l=t.note,u=(0,o.DP)(),c=(0,o.mk)(),s=c.animate,d=c.config,f=(0,i.useSpring)({x:n,y:a,config:d,immediate:!s});return"function"===typeof l?(0,r.createElement)(l,{x:n,y:a,datum:e}):(0,Ke.jsxs)(Ke.Fragment,{children:[u.annotations.text.outlineWidth>0&&(0,Ke.jsx)(i.animated.text,{x:f.x,y:f.y,style:wn(wn({},u.annotations.text),{},{strokeLinejoin:"round",strokeWidth:2*u.annotations.text.outlineWidth,stroke:u.annotations.text.outlineColor}),children:l}),(0,Ke.jsx)(i.animated.text,{x:f.x,y:f.y,style:mn()(u.annotations.text,["outlineWidth","outlineColor"]),children:l})]})};function Un(t){if(Array.isArray(t))return t}
1function En(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yn(t,e){return Un(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}}(t,e)||Tn(t,e)||En()}var Rn=function(t){var e=t.points,n=t.isOutline,a=void 0!==n&&n,l=(0,o.DP)(),u=(0,r.useMemo)((function(){var t,n=Un(t=e)||Cn(t)||Tn(t)||En(),r=n[0];return n.slice(1).reduce((function(t,e){var n=Yn(e,2),r=n[0],i=n[1];return"".concat(t," L").concat(r,",").concat(i)}),"M".concat(r[0],",").concat(r[1]))}),[e]),c=(0,o.wA)(u);if(a&&l.annotations.link.outlineWidth<=0)return null;var s=wn({},l.annotations.link);return a&&(s.strokeLinecap="square",s.strokeWidth=l.annotations.link.strokeWidth+2*l.annotations.link.outlineWidth,s.stroke=l.annotations.link.outlineColor),(0,Ke.jsx)(i.animated.path,{fill:"none",d:c,style:s})},Bn=function(t){var e=t.x,n=t.y,r=t.size,a=(0,o.DP)(),l=(0,o.mk)(),u=l.animate,c=l.config,s=(0,i.useSpring)({x:e,y:n,radius:r/2,config:c,immediate:!u});return(0,Ke.jsxs)(Ke.Fragment,{children:[a.annotations.outline.outlineWidth>0&&(0,Ke.jsx)(i.animated.circle,{cx:s.x,cy:s.y,r:s.radius,style:wn(wn({},a.annotations.outline),{},{fill:"none",strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor})}),(0,Ke.jsx)(i.animated.circle,{cx:s.x,cy:s.y,r:s.radius,style:a.annotations.outline})]})},Hn=function(t){var e=t.x,n=t.y,r=t.size,a=void 0===r?jn:r,l=(0,o.DP)(),u=(0,o.mk)(),c=u.animate,s=u.config,d=(0,i.useSpring)({x:e,y:n,radius:a/2,config:s,immediate:!c});return(0,Ke.jsxs)(Ke.Fragment,{children:[l.annotations.outline.outlineWidth>0&&(0,Ke.jsx)(i.animated.circle,{cx:d.x,cy:d.y,r:d.radius,style:wn(wn({},l.annotations.outline),{},{fill:"none",strokeWidth:2*l.annotations.outline.outlineWidth,stroke:l.annotations.outline.outlineColor})}),(0,Ke.jsx)(i.animated.circle,{cx:d.x,cy:d.y,r:d.radius,style:l.annotations.symbol})]})},zn=function(t){var e=t.x,n=t.y,r=t.width,a=t.height,l=(0,o.DP)(),u=(0,o.mk)(),c=u.animate,s=u.config,d=(0,i.useSpring)({x:e-r/2,y:n-a/2,width:r,height:a,config:s,immediate:!c});return(0,Ke.jsxs)(Ke.Fragment,{children:[l.annotations.outline.outlineWidth>0&&(0,Ke.jsx)(i.animated.rect,{x:d.x,y:d.y,width:d.width,height:d.height,style:wn(wn({},l.annotations.outline),{},{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+2*l.annotations.outline.outlineWidth,stroke:l.annotations.outline.outlineColor})}),(0,Ke.jsx)(i.animated.rect,{x:d.x,y:d.y,width:d.width,height:d.height,style:l.annotations.outline})]})},Xn=function(t){var e=t.datum,n=t.x,i=t.y,o=t.note,a=function(t){return(0,r.useMemo)((function(){return Fn(t)}),[t])}(t);if(!function(t){var e=typeof t;return(0,r.isValidElement)(t)||"string"===e||"function"===e||"object"===e}(o))throw new Error("note should be a valid react element");return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Rn,{points:a.points,isOutline:!0}),Wn(t)&&(0,Ke.jsx)(Bn,{x:n,y:i,size:t.size}),Dn(t)&&(0,Ke.jsx)(Hn,{x:n,y:i,size:t.size}),Ln(t)&&(0,Ke.jsx)(zn,{x:n,y:i,width:t.width,height:t.height}),(0,Ke.jsx)(Rn,{points:a.points}),(0,Ke.jsx)(In,{datum:e,x:a.text[0],y:a.text[1],note:o})]})},Nn=function(t,e){e.forEach((function(e,n){var r=Yn(e,2),i=r[0],o=r[1];0===n?t.moveTo(i,o):t.lineTo(i,o)}))},Jn=n(49005),Gn=n(7649),qn=n(50175),Kn=Array.prototype.slice,$n=n(99762),Qn=n(58790),Zn=n(47993);function _n(t,e){return t[e]}var tr=n(21969);function er(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?rr(Object(n),!0).forEach((function(e){nr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var or=function(t){var e=t.bars,n=t.annotations,r=Vn({data:e,annotations:n,getPosition:function(t){return{x:t.x+t.width/2,y:t.y+t.height/2}},getDimensions:function(t){var e=t.height,n=t.width;return{width:n,height:e,size:Math.max(n,e)}}});return(0,Ke.jsx)(Ke.Fragment,{children:r.map((function(t,e){return(0,Ke.jsx)(Xn,ir({},t),e)}))})};function ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function lr(t,e){if(t){if("string"===typeof t)return ar(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ar(t,e):void 0}}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}}(t,e)||lr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var cr,sr=function(t){var e=t.width,n=t.height,r=t.legends,i=t.toggleSerie;return(0,Ke.jsx)(Ke.Fragment,{children:r.map((function(t,r){var o,a=ur(t,2),l=a[0],u=a[1];return(0,Ke.jsx)(Jn.$i,ir(ir({},l),{},{containerWidth:e,containerHeight:n,data:null!==(o=l.data)&&void 0!==o?o:u,toggleSerie:l.toggleSerie&&"keys"===l.dataFrom?i:void 0}),r)}))})},dr={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(t){var e=t.color,n=t.label,r=er(t,["color","label"]);return(0,Ke.jsx)(Gn.GK,{id:n,value:r.formattedValue,enableChip:!0,color:e})},tooltipLabel:function(t){return"".concat(t.id," - ").concat(t.indexValue)},legends:[],initialHiddenIds:[],annotations:[],markers:[]},fr=ir(ir({},dr),{},{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:function(t){var e,n=t.bar,a=n.data,l=er(n,["data"]),u=t.style,c=u.borderColor,s=u.color,d=u.height,f=u.labelColor,h=u.labelOpacity,v=u.labelX,g=u.labelY,m=u.transform,y=u.width,x=t.borderRadius,b=t.borderWidth,p=t.label,k=t.shouldRenderLabel,M=t.isInteractive,w=t.onClick,S=t.onMouseEnter,C=t.onMouseLeave,T=t.tooltip,A=t.isFocusable,j=t.ariaLabel,P=t.ariaLabelledBy,O=t.ariaDescribedBy,W=(0,o.DP)(),D=(0,Gn.fS)(),L=D.showTooltipFromEvent,F=D.showTooltipAt,V=D.hideTooltip,I=(0,r.useMemo)((function(){return function(){return(0,r.createElement)(T,ir(ir({},l),a))}}),[T,l,a]),U=(0,r.useCallback)((function(t){null===w||void 0===w||w(ir({color:l.color},a),t)}),[l,a,w]),E=(0,r.useCallback)((function(t){return L(I(),t)}),[L,I]),Y=(0,r.useCallback)((function(t){null===S||void 0===S||S(a,t),L(I(),t)}),[a,S,L,I]),R=(0,r.useCallback)((function(t){null===C||void 0===C||C(a,t),V()}),[a,V,C]),B=(0,r.useCallback)((function(){F(I(),[l.absX+l.width/2,l.absY])}),[F,I,l]),H=(0,r.useCallback)((function(){V()}),[V]);return(0,Ke.jsxs)(i.animated.g,{transform:m,children:[(0,Ke.jsx)(i.animated.rect,{width:(0,i.to)(y,(function(t){return Math.max(t,0)})),height:(0,i.to)(d,(function(t){return Math.max(t,0)})),rx:x,ry:x,fill:null!==(e=a.fill)&&void 0!==e?e:s,strokeWidth:b,stroke:c,focusable:A,tabIndex:A?0:void 0,"aria-label":j?j(a):void 0,"aria-labelledby":P?P(a):void 0,"aria-describedby":O?O(a):void 0,onMouseEnter:M?Y:void 0,onMouseMove:M?E:void 0,onMouseLeave:M?R:void 0,onClick:M?U:void 0,onFocus:M&&A?B:void 0,onBlur:M&&A?H:void 0}
1),k&&(0,Ke.jsx)(i.animated.text,{x:v,y:g,textAnchor:"middle",dominantBaseline:"central",fillOpacity:h,style:ir(ir({},W.labels.text),{},{pointerEvents:"none",fill:f}),children:p})]})},defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),hr=ir(ir({},dr),{},{layers:["grid","axes","bars","legends","annotations"],pixelRatio:"undefined"!==typeof window&&null!==(cr=window.devicePixelRatio)&&void 0!==cr?cr:1});function vr(t){return function(t){if(Array.isArray(t))return ar(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||lr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var gr=function(t,e,n,r,i,o){return Re(r,{all:t.map(e),min:0,max:0},i,o).padding(n)},mr=function(t,e){return t.map((function(t){return ir(ir({},e.reduce((function(t,e){return t[e]=null,t}),{})),t)}))},yr=function(t){return Object.keys(t).reduce((function(e,n){return t[n]&&(e[n]=t[n]),e}),{})},xr=function(t){return[t,Number(t)]},br=function(t,e){return t>e},pr=function(t,e){return t<e},kr=function(t,e){return Array.from(" ".repeat(e-t),(function(e,n){return t+n}))},Mr=function(t){return br(t,0)?0:t},wr=function(t,e,n,r){var i=t.data,o=t.formatValue,a=t.getColor,l=t.getIndex,u=t.getTooltipLabel,c=t.innerPadding,s=void 0===c?0:c,d=t.keys,f=t.xScale,h=t.yScale,v=t.margin,g=n?pr:br,m=i.map(yr),y=[];return d.forEach((function(t,n){return kr(0,f.domain().length).forEach((function(c){var d,x=ur(xr(i[c][t]),2),b=x[0],p=x[1],k=l(i[c]),M=(null!==(d=f(k))&&void 0!==d?d:0)+e*n+s*n,w=function(t){var e;return g(t,0)?null!==(e=h(t))&&void 0!==e?e:0:r}(p),S=function(t,e){var n;return g(t,0)?r-e:(null!==(n=h(t))&&void 0!==n?n:0)-r}(p,w),C={id:t,value:null===b?b:p,formattedValue:o(p),hidden:!1,index:c,indexValue:k,data:m[c]};y.push({key:"".concat(t,".").concat(C.indexValue),index:y.length,data:C,x:M,y:w,absX:v.left+M,absY:v.top+w,width:e,height:S,color:a(C),label:u(C)})}))})),y},Sr=function(t,e,n,r){var i=t.data,o=t.formatValue,a=t.getIndex,l=t.getColor,u=t.getTooltipLabel,c=t.keys,s=t.innerPadding,d=void 0===s?0:s,f=t.xScale,h=t.yScale,v=t.margin,g=n?pr:br,m=i.map(yr),y=[];return c.forEach((function(t,n){return kr(0,h.domain().length).forEach((function(c){var s,x=ur(xr(i[c][t]),2),b=x[0],p=x[1],k=a(i[c]),M=function(t){var e;return g(t,0)?r:null!==(e=f(t))&&void 0!==e?e:0}(p),w=(null!==(s=h(k))&&void 0!==s?s:0)+e*n+d*n,S=function(t,e){var n;return g(t,0)?(null!==(n=f(t))&&void 0!==n?n:0)-r:r-e}(p,M),C={id:t,value:null===b?b:p,formattedValue:o(p),hidden:!1,index:c,indexValue:k,data:m[c]};y.push({key:"".concat(t,".").concat(C.indexValue),index:y.length,data:C,x:M,y:w,absX:v.left+M,absY:v.top+w,width:S,height:e,color:l(C),label:u(C)})}))})),y},Cr=function(t){var e,n=t.layout,r=t.minValue,i=t.maxValue,o=t.reverse,a=t.width,l=t.height,u=t.padding,c=void 0===u?0:u,s=t.innerPadding,d=void 0===s?0:s,f=t.valueScale,h=t.indexScale,v=t.hiddenIds,g=void 0===v?[]:v,m=er(t,["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"]),y=m.keys.filter((function(t){return!g.includes(t)})),x=mr(m.data,y),b=ur("vertical"===n?["y","x",a]:["x","y",l],3),p=b[0],k=b[1],M=b[2],w=gr(x,m.getIndex,c,h,M,k),S=ir({max:i,min:r,reverse:o},f),C="auto"===S.min?Mr:function(t){return t},T=x.reduce((function(t,e){return[].concat(vr(t),vr(y.map((function(t){return e[t]}))))}),[]).filter(Boolean),A=C(Math.min.apply(Math,vr(T))),j=function(t){return isFinite(t)?t:0}(Math.max.apply(Math,vr(T))),P=Re(S,{all:T,min:A,max:j},"x"===p?a:l,p),O=ur("vertical"===n?[w,P]:[P,w],2),W=O[0],D=O[1],L=(w.bandwidth()-d*(y.length-1))/y.length,F=[ir(ir({},m),{},{data:x,keys:y,innerPadding:d,xScale:W,yScale:D}),L,S.reverse,null!==(e=P(0))&&void 0!==e?e:0];return{xScale:W,yScale:D,bars:L>0?"vertical"===n?wr.apply(void 0,F):Sr.apply(void 0,F):[]}},Tr=function t(e){var n;return e.some(Array.isArray)?t((n=[]).concat.apply(n,vr(e))):e},Ar=function(t,e,n){var r=t.formatValue,i=t.getColor,o=t.getIndex,a=t.getTooltipLabel,l=t.innerPadding,u=t.stackedData,c=t.xScale,s=t.yScale,d=t.margin,f=[];
1return u.forEach((function(t){return c.domain().forEach((function(u,h){var v,g,m=t[h],y=null!==(v=c(o(m.data)))&&void 0!==v?v:0,x=(null!==(g=function(t){return s(t[n?0:1])}(m))&&void 0!==g?g:0)+.5*l,b=function(t,e){var r;return(null!==(r=s(t[n?1:0]))&&void 0!==r?r:0)-e}(m,x)-l,p=ur(xr(m.data[t.key]),2),k=p[0],M=p[1],w={id:t.key,value:null===k?k:M,formattedValue:r(M),hidden:!1,index:h,indexValue:u,data:yr(m.data)};f.push({key:"".concat(t.key,".").concat(u),index:f.length,data:w,x:y,y:x,absX:d.left+y,absY:d.top+x,width:e,height:b,color:i(w),label:a(w)})}))})),f},jr=function(t,e,n){var r=t.formatValue,i=t.getColor,o=t.getIndex,a=t.getTooltipLabel,l=t.innerPadding,u=t.stackedData,c=t.xScale,s=t.yScale,d=t.margin,f=[];return u.forEach((function(t){return s.domain().forEach((function(u,h){var v,g,m=t[h],y=null!==(v=s(o(m.data)))&&void 0!==v?v:0,x=(null!==(g=function(t){return c(t[n?1:0])}(m))&&void 0!==g?g:0)+.5*l,b=function(t,e){var r;return(null!==(r=c(t[n?0:1]))&&void 0!==r?r:0)-e}(m,x)-l,p=ur(xr(m.data[t.key]),2),k=p[0],M=p[1],w={id:t.key,value:null===k?k:M,formattedValue:r(M),hidden:!1,index:h,indexValue:u,data:yr(m.data)};f.push({key:"".concat(t.key,".").concat(u),index:f.length,data:w,x:x,y:y,absX:d.left+x,absY:d.top+y,width:b,height:e,color:i(w),label:a(w)})}))})),f},Pr=function(t){var e=t.data,n=t.layout,r=t.minValue,i=t.maxValue,o=t.reverse,a=t.width,l=t.height,u=t.padding,c=void 0===u?0:u,s=t.valueScale,d=t.indexScale,f=t.hiddenIds,h=void 0===f?[]:f,v=er(t,["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"]),g=v.keys.filter((function(t){return!h.includes(t)})),m=function(){var t=(0,$n.A)([]),e=Zn.A,n=Qn.A,r=_n;function i(i){var o,a,l=t.apply(this,arguments),u=i.length,c=l.length,s=new Array(c);for(o=0;o<c;++o){for(var d,f=l[o],h=s[o]=new Array(u),v=0;v<u;++v)h[v]=d=[0,+r(i[v],f,v,i)],d.data=i[v];h.key=f}for(o=0,a=e(s);o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:(0,$n.A)(Kn.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:(0,$n.A)(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Zn.A:"function"===typeof t?t:(0,$n.A)(Kn.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Qn.A:t,i):n},i}().keys(g).offset(tr.A)(mr(e,g)),y=ur("vertical"===n?["y","x",a]:["x","y",l],3),x=y[0],b=y[1],p=y[2],k=gr(e,v.getIndex,c,d,p,b),M=ir({max:i,min:r,reverse:o},s),w=function(t,e){return"log"===e?t.filter((function(t){return 0!==t})):t}(Tr(m),s.type),S=Re(M,{all:w,min:Math.min.apply(Math,vr(w)),max:Math.max.apply(Math,vr(w))},"x"===x?a:l,x),C=ur("vertical"===n?[k,S]:[S,k],2),T=C[0],A=C[1],j=v.innerPadding>0?v.innerPadding:0,P=k.bandwidth(),O=[ir(ir({},v),{},{innerPadding:j,stackedData:m,xScale:T,yScale:A}),P,M.reverse];return{xScale:T,yScale:A,bars:P>0?"vertical"===n?Ar.apply(void 0,O):jr.apply(void 0,O):[]}},Or=function(t){var e=t.bars,n=t.direction,r=t.from,i=t.groupMode,a=t.layout,l=t.legendLabel,u=t.reverse,s=(0,o.x)(null!==l&&void 0!==l?l:"indexes"===r?"indexValue":"id");return"indexes"===r?function(t,e,n){var r=c()(t.map((function(t){var e,r;return{id:null!==(e=t.data.indexValue)&&void 0!==e?e:"",label:n(t.data),hidden:t.data.hidden,color:null!==(r=t.color)&&void 0!==r?r:"#000"}})),(function(t){return t.id}));return"horizontal"===e&&r.reverse(),r}(e,a,s):function(t,e,n,r,i,o){var a=c()(t.map((function(t){var e;return{id:t.data.id,label:o(t.data),hidden:t.data.hidden,color:null!==(e=t.color)&&void 0!==e?e:"#000"}})),(function(t){return t.id}));return("vertical"===e&&"stacked"===r&&"column"===n&&!0!==i||"horizontal"===e&&"stacked"===r&&!0===i)&&a.reverse(),a}(e,a,n,i,u,s)},Wr=function(t){var e=t.indexBy,n=void 0===e?dr.indexBy:e,i=t.keys,a=void 0===i?dr.keys:i,l=t.label,u=void 0===l?dr.label:l,c=t.tooltipLabel,s=void 0===c?dr.tooltipLabel:c,d=t.valueFormat,f=t.colors,h=void 0===f?dr.colors:f,v=t.colorBy,g=void 0===v?dr.colorBy:v,m=t.borderColor,y=void 0===m?dr.borderColor:m,x=t.labelTextColor,b=void 0===x?dr.labelTextColor:x,p=t.groupMode,k=void 0===p?dr.groupMode:p,M=t.layout,w=void 0===M?dr.layout:M,S=t.reverse,C=void 0===S?dr.reverse:S,T=t.data,A=t.minValue,j=void 0===A?dr.minValue:A,P=t.maxValue,O=void 0===P?dr.maxValue:P,W=t.margin,D=t.width,L=t.height,F=t.padding,V=void 0===F?dr.padding:F,I=t.innerPadding,U=void 0===I?dr.innerPadding:I,E=t.valueScale,Y=void 0===E?dr.valueScale:E,R=t.indexScale,B=void 0===R?dr.indexScale:R,H=t.initialHiddenIds,z=void 0===H?dr.initialHiddenIds:H,X=t.enableLabel,N=void 0===X?dr.enableLabel:X,J=t.labelSkipWidth,G=void 0===J?dr.labelSkipWidth:J,q=t.labelSkipHeight,K=void 0===q?dr.labelSkipHeight:q,$=t.legends,Q=void 0===$?dr.legends:$,Z=t.legendLabel,_=ur((0,r.useState)(null!==z&&void 0!==z?z:[]),2),tt=_[0],et=_[1],nt=(0,r.useCallback)((function(t){et((function(e){return e.indexOf(t)>-1?e.filter((function(e){return e!==t})):[].concat(vr(e),[t])}))}),[]),rt=(0,o.Ob)(n),it=(0,o.Ob)(u),ot=(0,o.Ob)(s),at=(0,o.d_)(d),lt=(0,o.DP)(),ut=(0,qn.m1)(h,g),ct=(0,qn.nz)(y,lt),st=(0,qn.nz)(b,lt),dt=("grouped"===k?Cr:Pr)({layout:w,reverse:C,data:T,getIndex:rt,keys:a,minValue:j,maxValue:O,width:D,height:L,getColor:ut,padding:V,innerPadding:U,valueScale:Y,indexScale:B,hiddenIds:tt,formatValue:at,getTooltipLabel:ot,margin:W}),ft=dt.bars,ht=dt.xScale,vt=dt.yScale,gt=(0,r.useMemo)((function(){return ft.filter((function(t){return null!==t.data.value})).map((function(t,e){return ir(ir({},t),{},{index:e})}))}),[ft]),mt=(0,r.useCallback)((function(t){var e=t.width,n=t.height;return!!N&&(!(G>0&&e<G)&&!(K>0&&n<K))}),[N,G,K]),yt=(0,r.useMemo)((function(){return a.map((function(t){var e=ft.find((function(e){return e.data.id===t}));return ir(ir({},e),{},{data:ir(ir({id:t},null===e||void 0===e?void 0:e.data),{},{hidden:tt.includes(t)})})}))}),[tt,a,ft]),xt=(0,r.useMemo)((function(){return Q.map((function(t){return[t,Or({bars:"keys"===t.dataFrom?yt:ft,direction:t.direction,from:t.dataFrom,groupMode:k,layout:w,legendLabel:Z,reverse:C})]}))}),[Q,yt,ft,k,w,Z,C]);return{bars:ft,barsWithValue:gt,xScale:ht,yScale:vt,getIndex:rt,getLabel:it,getTooltipLabel:ot,formatValue:at,getColor:ut,getBorderColor:ct,getLabelColor:st,shouldRenderBarLabel:mt,hiddenIds:tt,toggleSerie:nt,legendsWithData:xt}},Dr=function(t){var e=t.data,n=t.indexBy,a=t.keys,l=t.margin,u=t.width,c=t.height,s=t.groupMode,d=t.layout,f=t.reverse,h=t.minValue,v=t.maxValue,g=t.valueScale,m=t.indexScale,y=t.padding,x=t.innerPadding,b=t.axisTop,p=t.axisRight,k=t.axisBottom,M=void 0===k?fr.axisBottom:k,w=t.axisLeft,S=void 0===w?fr.axisLeft:w,C=t.enableGridX,T=void 0===C?fr.enableGridX:C,A=t.enableGridY,j=void 0===A?fr.enableGridY:A,P=t.gridXValues,O=t.gridYValues,W=t.layers,D=void 0===W?fr.layers:W,L=t.barComponent,F=void 0===L?fr.barComponent:L,V=t.enableLabel,I=t.label,U=t.labelSkipWidth,E=t.labelSkipHeight,Y=t.labelTextColor,R=t.markers,B=void 0===R?fr.markers:R,H=t.colorBy,z=t.colors,X=t.defs,N=void 0===X?fr.defs:X,J=t.fill,G=void 0===J?fr.fill:J,q=t.borderRadius,K=void 0===q?fr.borderRadius:q,$=t.borderWidth,Q=void 0===$?fr.borderWidth:$,Z=t.borderColor,_=t.annotations,tt=void 0===_?fr.annotations:_,et=t.legendLabel,nt=t.tooltipLabel,rt=t.valueFormat,it=t.isInteractive,ot=void 0===it?fr.isInteractive:it,at=t.tooltip,lt=void 0===at?fr.tooltip:at,ut=t.onClick,ct=t.onMouseEnter,st=t.onMouseLeave,dt=t.legends,ft=t.role,ht=void 0===ft?fr.role:ft,vt=t.ariaLabel,gt=t.ariaLabelledBy,mt=t.ariaDescribedBy,yt=t.isFocusable,xt=void 0===yt?fr.isFocusable:yt,bt=t.barAriaLabel,pt=t.barAriaLabelledBy,kt=t.barAriaDescribedBy,Mt=t.initialHiddenIds,wt=(0,o.mk)(),St=wt.animate,Ct=wt.config,Tt=(0,o.Xl)(u,c,l),At=Tt.outerWidth,jt=Tt.outerHeight,Pt=Tt.margin,Ot=Tt.innerWidth,Wt=Tt.innerHe
1ight,Dt=Wr({indexBy:n,label:I,tooltipLabel:nt,valueFormat:rt,colors:z,colorBy:H,borderColor:Z,labelTextColor:Y,groupMode:s,layout:d,reverse:f,data:e,keys:a,minValue:h,maxValue:v,margin:Pt,width:Ot,height:Wt,padding:y,innerPadding:x,valueScale:g,indexScale:m,enableLabel:V,labelSkipWidth:U,labelSkipHeight:E,legends:dt,legendLabel:et,initialHiddenIds:Mt}),Lt=Dt.bars,Ft=Dt.barsWithValue,Vt=Dt.xScale,It=Dt.yScale,Ut=Dt.getLabel,Et=Dt.getTooltipLabel,Yt=Dt.getBorderColor,Rt=Dt.getLabelColor,Bt=Dt.shouldRenderBarLabel,Ht=Dt.toggleSerie,zt=Dt.legendsWithData,Xt=(0,i.useTransition)(Ft,{keys:function(t){return t.key},from:function(t){return ir({borderColor:Yt(t),color:t.color,height:0,labelColor:Rt(t),labelOpacity:0,labelX:t.width/2,labelY:t.height/2,transform:"translate(".concat(t.x,", ").concat(t.y+t.height,")"),width:t.width},"vertical"===d?{}:{height:t.height,transform:"translate(".concat(t.x,", ").concat(t.y,")"),width:0})},enter:function(t){return{borderColor:Yt(t),color:t.color,height:t.height,labelColor:Rt(t),labelOpacity:1,labelX:t.width/2,labelY:t.height/2,transform:"translate(".concat(t.x,", ").concat(t.y,")"),width:t.width}},update:function(t){return{borderColor:Yt(t),color:t.color,height:t.height,labelColor:Rt(t),labelOpacity:1,labelX:t.width/2,labelY:t.height/2,transform:"translate(".concat(t.x,", ").concat(t.y,")"),width:t.width}},leave:function(t){return ir({borderColor:Yt(t),color:t.color,height:0,labelColor:Rt(t),labelOpacity:0,labelX:t.width/2,labelY:0,transform:"translate(".concat(t.x,", ").concat(t.y+t.height,")"),width:t.width},"vertical"===d?{}:{labelX:0,labelY:t.height/2,height:t.height,transform:"translate(".concat(t.x,", ").concat(t.y,")"),width:0})},config:Ct,immediate:!St}),Nt=(0,r.useMemo)((function(){return{borderRadius:K,borderWidth:Q,enableLabel:V,isInteractive:ot,labelSkipWidth:U,labelSkipHeight:E,onClick:ut,onMouseEnter:ct,onMouseLeave:st,getTooltipLabel:Et,tooltip:lt,isFocusable:xt,ariaLabel:bt,ariaLabelledBy:pt,ariaDescribedBy:kt}}),[K,Q,V,Et,ot,E,U,ut,ct,st,lt,xt,bt,pt,kt]),Jt=(0,o.kc)(N,Lt,G,{dataKey:"data",targetKey:"data.fill"}),Gt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null};D.includes("annotations")&&(Gt.annotations=(0,Ke.jsx)(or,{bars:Lt,annotations:tt},"annotations")),D.includes("axes")&&(Gt.axes=(0,Ke.jsx)(cn,{xScale:Vt,yScale:It,width:Ot,height:Wt,top:b,right:p,bottom:M,left:S},"axes")),D.includes("bars")&&(Gt.bars=(0,Ke.jsx)(r.Fragment,{children:Xt((function(t,e){return(0,r.createElement)(F,ir(ir({},Nt),{},{bar:e,style:t,shouldRenderLabel:Bt(e),label:Ut(e.data)}))}))},"bars")),D.includes("grid")&&(Gt.grid=(0,Ke.jsx)(fn,{width:Ot,height:Wt,xScale:T?Vt:null,yScale:j?It:null,xValues:P,yValues:O},"grid")),D.includes("legends")&&(Gt.legends=(0,Ke.jsx)(sr,{width:Ot,height:Wt,legends:zt,toggleSerie:Ht},"legends")),D.includes("markers")&&(Gt.markers=(0,Ke.jsx)(o.U9,{markers:B,width:Ot,height:Wt,xScale:Vt,yScale:It},"markers"));var qt=(0,r.useMemo)((function(){return ir(ir({},Nt),{},{margin:Pt,innerWidth:Ot,innerHeight:Wt,width:u,height:c,bars:Lt,xScale:Vt,yScale:It})}),[Nt,Pt,Ot,Wt,u,c,Lt,Vt,It]);return(0,Ke.jsx)(o.Ge,{width:At,height:jt,margin:Pt,defs:Jt,role:ht,ariaLabel:vt,ariaLabelledBy:gt,ariaDescribedBy:mt,isFocusable:xt,children:D.map((function(t,e){var n;return"function"===typeof t?(0,Ke.jsx)(r.Fragment,{children:(0,r.createElement)(t,qt)},e):null!==(n=null===Gt||void 0===Gt?void 0:Gt[t])&&void 0!==n?n:null}))})},Lr=function(t){var e=t.isInteractive,n=void 0===e?fr.isInteractive:e,r=t.animate,i=void 0===r?fr.animate:r,a=t.motionConfig,l=void 0===a?fr.motionConfig:a,u=t.theme,c=t.renderWrapper,s=er(t,["isInteractive","animate","motionConfig","theme","renderWrapper"]);return(0,Ke.jsx)(o.mc,{animate:i,isInteractive:n,motionConfig:l,renderWrapper:c,theme:u,children:(0,Ke.jsx)(Dr,ir({isInteractive:n},s))})},Fr=function(t,e,n,r){return t.find((function(t){return(0,o.u7)(t.x+e.left,t.y+e.top,t.width,t.height,n,r)}))},Vr=function(t){var e=t.data,n=t.indexBy,i=t.keys,a=t.margin,l=t.width,u=t.height,c=t.groupMode,s=t.layout,d=t.reverse,f=t.minValue,h=t.maxValue,v=t.valueScale,g=t.indexScale,m=t.padding,y=t.innerPadding,x=t.axisTop,b=t.axisRight,p=t.axisBottom,k=void 0===p?hr.axisBottom:p,M=t.axisLeft,w=void 0===M?hr.axisLeft:M,S=t.enableGridX,C=void 0===S?hr.enableGridX:S,T=t.enableGridY,A=void 0===T?hr.enableGridY:T,j=t.gridXValues,P=t.gridYValues,O=t.layers,W=void 0===O?hr.layers:O,D=t.renderBar,L=void 0===D?function(t,e){var n=e.bar,r=n.color,i=n.height,o=n.width,a=n.x,l=n.y,u=e.borderColor,c=e.borderRadius,s=e.borderWidth,d=e.label,f=e.labelColor,h=e.shouldRenderLabel;if(t.fillStyle=r,s>0&&(t.strokeStyle=u,t.lineWidth=s),t.beginPath(),c>0){var v=Math.min(c,i);t.moveTo(a+v,l),t.lineTo(a+o-v,l),t.quadraticCurveTo(a+o,l,a+o,l+v),t.lineTo(a+o,l+i-v),t.quadraticCurveTo(a+o,l+i,a+o-v,l+i),t.lineTo(a+v,l+i),t.quadraticCurveTo(a,l+i,a,l+i-v),t.lineTo(a,l
1+v),t.quadraticCurveTo(a,l,a+v,l),t.closePath()}else t.rect(a,l,o,i);t.fill(),s>0&&t.stroke(),h&&(t.textBaseline="middle",t.textAlign="center",t.fillStyle=f,t.fillText(d,a+o/2,l+i/2))}:D,F=t.enableLabel,V=t.label,I=t.labelSkipWidth,U=t.labelSkipHeight,E=t.labelTextColor,Y=t.colorBy,R=t.colors,B=t.borderRadius,H=void 0===B?hr.borderRadius:B,z=t.borderWidth,X=void 0===z?hr.borderWidth:z,N=t.borderColor,J=t.annotations,G=void 0===J?hr.annotations:J,q=t.legendLabel,K=t.tooltipLabel,$=t.valueFormat,Q=t.isInteractive,Z=void 0===Q?hr.isInteractive:Q,_=t.tooltip,tt=void 0===_?hr.tooltip:_,et=t.onClick,nt=t.onMouseEnter,rt=t.onMouseLeave,it=t.legends,ot=t.pixelRatio,at=void 0===ot?hr.pixelRatio:ot,lt=t.canvasRef,ut=(0,r.useRef)(null),ct=(0,o.DP)(),st=(0,o.Xl)(l,u,a),dt=st.margin,ft=st.innerWidth,ht=st.innerHeight,vt=st.outerWidth,gt=st.outerHeight,mt=Wr({indexBy:n,label:V,tooltipLabel:K,valueFormat:$,colors:R,colorBy:Y,borderColor:N,labelTextColor:E,groupMode:c,layout:s,reverse:d,data:e,keys:i,minValue:f,maxValue:h,margin:dt,width:ft,height:ht,padding:m,innerPadding:y,valueScale:v,indexScale:g,enableLabel:F,labelSkipWidth:I,labelSkipHeight:U,legends:it,legendLabel:q}),yt=mt.bars,xt=mt.barsWithValue,bt=mt.xScale,pt=mt.yScale,kt=mt.getLabel,Mt=mt.getTooltipLabel,wt=mt.getBorderColor,St=mt.getLabelColor,Ct=mt.shouldRenderBarLabel,Tt=mt.legendsWithData,At=(0,Gn.fS)(),jt=At.showTooltipFromEvent,Pt=At.hideTooltip,Ot=function(t){var e=t.annotations;return(0,r.useMemo)((function(){return e.map((function(t){return wn(wn({},t),{},{computed:Fn(wn({},t))})}))}),[e])}({annotations:Vn({data:yt,annotations:G,getPosition:function(t){return{x:t.x,y:t.y}},getDimensions:function(t){var e=t.width,n=t.height;return{width:e,height:n,size:Math.max(e,n)}}})}),Wt=(0,r.useMemo)((function(){return{borderRadius:H,borderWidth:X,enableLabel:F,isInteractive:Z,labelSkipWidth:I,labelSkipHeight:U,onClick:et,onMouseEnter:nt,onMouseLeave:rt,getTooltipLabel:Mt,tooltip:tt,margin:dt,innerWidth:ft,innerHeight:ht,width:l,height:u,bars:yt,xScale:bt,yScale:pt}}),[H,X,F,Mt,u,ht,ft,Z,U,I,dt,et,nt,rt,yt,bt,pt,tt,l]);(0,r.useEffect)((function(){var t,e=null===(t=ut.current)||void 0===t?void 0:t.getContext("2d");ut.current&&e&&(ut.current.width=vt*at,ut.current.height=gt*at,e.scale(at,at),e.fillStyle=ct.background,e.fillRect(0,0,vt,gt),e.translate(dt.left,dt.top),W.forEach((function(t){"grid"===t?function(t){return"number"===typeof t}(ct.grid.line.strokeWidth)&&ct.grid.line.strokeWidth>0&&(e.lineWidth=ct.grid.line.strokeWidth,e.strokeStyle=ct.grid.line.stroke,C&&vn(e,{width:l,height:u,scale:bt,axis:"x",values:j}),A&&vn(e,{width:l,height:u,scale:pt,axis:"y",values:P})):"axes"===t?hn(e,{xScale:bt,yScale:pt,width:ft,height:ht,top:x,right:b,bottom:k,left:w,theme:ct}):"bars"===t?xt.forEach((function(t){L(e,{bar:t,borderColor:wt(t),borderRadius:H,borderWidth:X,label:kt(t.data),labelColor:St(t),shouldRenderLabel:Ct(t)})})):"legends"===t?Tt.forEach((function(t){var n=ur(t,2),r=n[0],i=n[1];(0,Jn.ZG)(e,ir(ir({},r),{},{data:i,containerWidth:ft,containerHeight:ht,theme:ct}))})):"annotations"===t?function(t,e){var n=e.annotations,r=e.theme;0!==n.length&&(t.save(),n.forEach((function(e){if(!function(t){var e=typeof t;return"string"===e||"function"===e}(e.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(t.lineCap="square",t.strokeStyle=r.annotations.link.outlineColor,t.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,t.beginPath(),Nn(t,e.computed.points),t.stroke(),t.lineCap="butt"),Wn(e)&&r.annotations.outline.outlineWidth>0&&(t.strokeStyle=r.annotations.outline.outlineColor,t.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,t.beginPath(),t.arc(e.x,e.y,e.size/2,0,2*Math.PI),t.stroke()),Dn(e)&&r.annotations.symbol.outlineWidth>0&&(t.strokeStyle=r.annotations.symbol.outlineColor,t.lineWidth=2*r.annotations.symbol.outlineWidth,t.beginPath(),t.arc(e.x,e.y,e.size/2,0,2*Math.PI),t.stroke()),Ln(e)&&r.annotations.outline.outlineWidth>0&&(t.strokeStyle=r.annotations.outline.outlineColor,t.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,t.beginPath(),t.rect(e.x-e.width/2,e.y-e.he
1ight/2,e.width,e.height),t.stroke()),t.strokeStyle=r.annotations.link.stroke,t.lineWidth=r.annotations.link.strokeWidth,t.beginPath(),Nn(t,e.computed.points),t.stroke(),Wn(e)&&(t.strokeStyle=r.annotations.outline.stroke,t.lineWidth=r.annotations.outline.strokeWidth,t.beginPath(),t.arc(e.x,e.y,e.size/2,0,2*Math.PI),t.stroke()),Dn(e)&&(t.fillStyle=r.annotations.symbol.fill,t.beginPath(),t.arc(e.x,e.y,e.size/2,0,2*Math.PI),t.fill()),Ln(e)&&(t.strokeStyle=r.annotations.outline.stroke,t.lineWidth=r.annotations.outline.strokeWidth,t.beginPath(),t.rect(e.x-e.width/2,e.y-e.height/2,e.width,e.height),t.stroke()),"function"===typeof e.note?e.note(t,{datum:e.datum,x:e.computed.text[0],y:e.computed.text[1],theme:r}):(t.font="".concat(r.annotations.text.fontSize,"px ").concat(r.annotations.text.fontFamily),t.fillStyle=r.annotations.text.fill,t.strokeStyle=r.annotations.text.outlineColor,t.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(t.lineJoin="round",t.strokeText(e.note,e.computed.text[0],e.computed.text[1]),t.lineJoin="miter"),t.fillText(e.note,e.computed.text[0],e.computed.text[1]))})),t.restore())}(e,{annotations:Ot,theme:ct}):"function"===typeof t&&t(e,Wt)})),e.save())}),[k,w,b,x,xt,H,X,Ot,C,A,wt,kt,St,j,P,c,u,ht,ft,Wt,W,s,Tt,dt.left,dt.top,gt,vt,at,L,bt,pt,d,Ct,ct,l]);var Dt=(0,r.useCallback)((function(t){if(yt&&ut.current){var e=ur((0,o.H9)(ut.current,t),2),n=e[0],i=e[1],a=Fr(yt,dt,n,i);void 0!==a?(jt((0,r.createElement)(tt,ir(ir({},a.data),{},{color:a.color,label:a.label,value:Number(a.data.value)})),t),"mouseenter"===t.type&&(null===nt||void 0===nt||nt(a.data,t))):Pt()}}),[Pt,dt,nt,yt,jt,tt]),Lt=(0,r.useCallback)((function(t){if(yt&&ut.current){Pt();var e=ur((0,o.H9)(ut.current,t),2),n=e[0],r=e[1],i=Fr(yt,dt,n,r);i&&(null===rt||void 0===rt||rt(i.data,t))}}),[Pt,dt,rt,yt]),Ft=(0,r.useCallback)((function(t){if(yt&&ut.current){var e=ur((0,o.H9)(ut.current,t),2),n=e[0],r=e[1],i=Fr(yt,dt,n,r);void 0!==i&&(null===et||void 0===et||et(ir(ir({},i.data),{},{color:i.color}),t))}}),[dt,et,yt]);return(0,Ke.jsx)("canvas",{ref:function(t){ut.current=t,lt&&"current"in lt&&(lt.current=t)},width:vt*at,height:gt*at,style:{width:vt,height:gt,cursor:Z?"auto":"normal"},onMouseEnter:Z?Dt:void 0,onMouseMove:Z?Dt:void 0,onMouseLeave:Z?Lt:void 0,onClick:Z?Ft:void 0})},Ir=(0,r.forwardRef)((function(t,e){var n=t.isInteractive,r=t.renderWrapper,i=t.theme,a=er(t,["isInteractive","renderWrapper","theme"]);return(0,Ke.jsx)(o.mc,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:(0,Ke.jsx)(Vr,ir(ir({},a),{},{canvasRef:e}))})})),Ur=function(t){return(0,Ke.jsx)(o.KF,{children:function(e){var n=e.width,r=e.height;return(0,Ke.jsx)(Lr,ir({width:n,height:r},t))}})};(0,r.forwardRef)((function(t,e){return(0,Ke.jsx)(o.KF,{children:function(n){var r=n.width,i=n.height;return(0,Ke.jsx)(Ir,ir(ir({width:r,height:i},t),{},{ref:e}))}})}))},86532:(t,e,n)=>{var r=n(5538),i=n(26989);t.exports=function(t,e,n,o){var a=n.length,l=a,u=!o;if(null==t)return!l;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<l;){var s=(c=n[a])[0],d=t[s],f=c[1];if(u&&c[2]){if(void 0===d&&!(s in t))return!1}else{var h=new r;if(o)var v=o(d,f,s,t,e,h);if(!(void 0===v?i(f,d,3,o,h):v))return!1}}return!0}},87171:(t,e,n)=>{var r=n(45652);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},87424:(t,e,n)=>{var r=n(80755),i=n(12536),o=n(55647),a=n(60929),l=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=l},88140:(t,e,n)=>{var r=n(35324),i=n(74065),o=n(21676),a=n(70914);t.exports=function(t,e){return e=r(e,t),null==(t=o(t,e))||delete t[a(i(e))]}},91310:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},93085:(t,e,n)=>{var r=n(27133),i=n(47574),o=n(56832),a=o&&o.isDate,l=a?i(a):r;t.exports=l},94664:(t,e,n)=>{var r=n(94258),i=n(28673);t.exports=function(t,e){return t&&r(t,e,i)}},96761:(t,e,n)=>{var r=n(12322);t.exports=function(t){return r(t)?void 0:t}},98112:(t,e,n)=>{"use strict";n.d(e,{A:()=>O});var r=n(57528),i=n(98587),o=n(58168),a=n(65043),l=n(43024),u=n(31970),c=n(83290),s=n(24042),d=n(46141),f=n(20690),h=n(96036);function v(t){return(0,h.A)("MuiCircularProgress",t)}(0,n(31748).A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,m,y,x,b=n(70579);let p,k,M,w;const S=44,C=(0,c.i7)(p||(p=g||(g=(0,r.A)(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"])))),T=(0,c.i7)(k||(k=m||(m=(0,r.A)(["\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -125px;\n  }\n"])))),A=(0,f.Ay)("span",{},{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{styleProps:n}=t;return(0,o.A)({},e.root,e[n.variant],e["color".concat((0,s.A)(n.color))])}})((t=>{let{styleProps:e,theme:n}=t;
1return(0,o.A)({display:"inline-block"},"determinate"===e.variant&&{transition:n.transitions.create("transform")},"inherit"!==e.color&&{color:n.palette[e.color].main})}),(t=>{let{styleProps:e}=t;return"indeterminate"===e.variant&&(0,c.AH)(M||(M=y||(y=(0,r.A)(["\n      animation: "," 1.4s linear infinite;\n    "]))),C)})),j=(0,f.Ay)("svg",{},{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),P=(0,f.Ay)("circle",{},{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{styleProps:n}=t;return(0,o.A)({},e.circle,e["circle".concat((0,s.A)(n.variant))],n.disableShrink&&e.circleDisableShrink)}})((t=>{let{styleProps:e,theme:n}=t;return(0,o.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{styleProps:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,c.AH)(w||(w=x||(x=(0,r.A)(["\n      animation: "," 1.4s ease-in-out infinite;\n    "]))),T)})),O=a.forwardRef((function(t,e){const n=(0,d.A)({props:t,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:c=!1,size:f=40,style:h,thickness:g=3.6,value:m=0,variant:y="indeterminate"}=n,x=(0,i.A)(n,["className","color","disableShrink","size","style","thickness","value","variant"]),p=(0,o.A)({},n,{color:a,disableShrink:c,size:f,thickness:g,value:m,variant:y}),k=(t=>{const{classes:e,variant:n,color:r,disableShrink:i}=t,o={root:["root",n,"color".concat((0,s.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,s.A)(n)),i&&"circleDisableShrink"]};return(0,u.A)(o,v,e)})(p),M={},w={},C={};if("determinate"===y){const t=2*Math.PI*((S-g)/2);M.strokeDasharray=t.toFixed(3),C["aria-valuenow"]=Math.round(m),M.strokeDashoffset="".concat(((100-m)/100*t).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,b.jsx)(A,(0,o.A)({className:(0,l.A)(k.root,r),style:(0,o.A)({width:f,height:f},w,h),styleProps:p,ref:e,role:"progressbar"},C,x,{children:(0,b.jsx)(j,{className:k.svg,styleProps:p,viewBox:"".concat(22," ").concat(22," ").concat(S," ").concat(S),children:(0,b.jsx)(P,{className:k.circle,style:M,styleProps:p,cx:S,cy:S,r:(S-g)/2,fill:"none",strokeWidth:g})})}))}))}}]);
2//# sourceMappingURL=1672.583f9305.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.