0){if(!+e[n])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},Fa=function(e,t){var r=Ea(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")},ja={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Fa(100*e,t)},r:Fa,s:function(e,t){var r=Ea(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Da=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ea(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Pa=function(e){return e},Na=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Aa=function(e){var t,r,n=e.grouping&&e.thousands?(t=e.grouping,r=e.thousands,function(e,n){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}):Pa,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Pa,s=e.percent||"%";function u(e){var t=(e=Sa(e)).fill,r=e.align,u=e.sign,l=e.symbol,c=e.zero,p=e.width,h=e.comma,f=e.precision,d=e.trim,m=e.type;"n"===m?(h=!0,m="g"):ja[m]||(null==f&&(f=12),d=!0,m="g"),(c||"0"===t&&"="===r)&&(c=!0,t="0",r="=");var v="$"===l?i[0]:"#"===l&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===l?i[1]:/[%p]/.test(m)?s:"",g=ja[m],b=/[defgprs%]/.test(m);function w(e){var i,s,l,w=v,x=y;if("c"===m)x=g(e)+x,e="";else{var E=(e=+e)<0;if(e=g(Math.abs(e),f),d&&(e=Ia(e)),E&&0===+e&&(E=!1),w=(E?"("===u?u:"-":"-"===u||"("===u?"":u)+w,x=("s"===m?Na[8+Da/3]:"")+x+(E&&"("===u?")":""),b)for(i=-1,s=e.length;++i(l=e.charCodeAt(i))||l>57){x=(46===l?o+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}h&&!c&&(e=n(e,1/0));var _=w.length+e.length+x.length,T=_>1)+w+e+x+T.slice(_);break;default:e=T+w+e+x}return a(e)}return f=null==f?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),w.toString=function(){return e+""},w}return{format:u,formatPrefix:function(e,t){var r=u(((e=Sa(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(_a(t)/3))),i=Math.pow(10,-n),o=Na[8+n/3];return function(e){return r(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Oa=Aa.format,Ca=Aa.formatPrefix;var Ma=function(e,t,r,n){var i,o=vi(e,t,r);switch((n=Sa(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_a(t)/3)))-_a(Math.abs(e)))}(o,a))||(n.precision=i),Ca(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_a(t)-_a(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-_a(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return Oa(n)};function Ra(e){var t=e.domain;return e.ticks=function(e){var r=t();return di(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Ma(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?n=mi(s=Math.floor(s/n)*n,u=Math.ceil(u/n)*n,r):n<0&&(n=mi(s=Math.ceil(s*n)/n,u=Math.floor(u*n)/n,r)),n>0?(i[o]=Math.floor(s/n)*n,i[a]=Math.ceil(u/n)*n,t(i)):n<0&&(i[o]=Math.ceil(s*n)/n,i[a]=Math.floor(u*n)/n,t(i)),e},e}function Ba(){var e=xa(da,da);return e.copy=function(){return ba(e,Ba())},gi.apply(e,arguments),Ra(e)}function La(e){var t;function r(e){return isNaN(e=+e)?t:e}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Di.call(t,ha),r):e.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return La(e).unknown(t)},e=arguments.length?Di.call(e,ha):[0,1],Ra(r)}var Ua=function(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a0){for(;hu)break;m.push(p)}}else for(;h=1;--c)if(!((p=l*c)u)break;m.push(p)}}else m=di(h,f,Math.min(f-h,d)).map(r);return n?m.reverse():m},n.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Oa(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/n.ticks().length);return function(e){var n=e/r(Math.round(t(e)));return n*o0?n[i-1]:t[0],i=n?[i[n-1],r]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return as().domain([t,r]).range(o).unknown(e)},gi.apply(Ra(a),arguments)}function ss(){var e,t=[.5],r=[0,1],n=1;function i(i){return i<=i?r[si(t,i,0,n)]:e}return i.domain=function(e){return arguments.length?(t=Ai.call(e),n=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(e){return arguments.length?(r=Ai.call(e),n=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return ss().domain(t).range(r).unknown(e)},gi.apply(i,arguments)}var us=new Date,ls=new Date;function cs(e,t,r,n){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},i.round=function(e){var t=i(e),r=i.ceil(e);return e-t0))return s;do{s.push(a=new Date(+r)),t(r,o),e(r)}while(a=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})},r&&(i.count=function(t,n){return us.setTime(+t),ls.setTime(+n),e(us),e(ls),Math.floor(r(us,ls))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?function(t){return n(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var ps=cs(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ps.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?cs(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ps:null};var hs=ps,fs=(ps.range,6e4),ds=6048e5,ms=cs(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),vs=ms,ys=(ms.range,cs(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*fs)},function(e,t){return(t-e)/fs},function(e){return e.getMinutes()})),gs=ys,bs=(ys.range,cs(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*fs)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),ws=bs,xs=(bs.range,cs(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fs)/864e5},function(e){return e.getDate()-1})),Es=xs;xs.range;function _s(e){return cs(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fs)/ds})}var Ts=_s(0),Ss=_s(1),ks=_s(2),Ds=_s(3),As=_s(4),Os=_s(5),Cs=_s(6),Is=(Ts.range,Ss.range,ks.range,Ds.range,As.range,Os.range,Cs.range,cs(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()})),Fs=Is,js=(Is.range,cs(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));js.every=function(e){return isFinite(e=Math.floor(e))&&e>0?cs(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null};var Ps=js,Ns=(js.range,cs(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*fs)},function(e,t){return(t-e)/fs},function(e){return e.getUTCMinutes()})),Ms=Ns,Rs=(Ns.range,cs(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})),Bs=Rs,Ls=(Rs.range,cs(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})),Us=Ls;Ls.range;function Hs(e){return cs(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/ds})}var zs=Hs(0),Vs=Hs(1),Ws=Hs(2),qs=Hs(3),Gs=Hs(4),Ks=Hs(5),Ys=Hs(6),Xs=(zs.range,Vs.range,Ws.range,qs.range,Gs.range,Ks.range,Ys.range,cs(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),$s=Xs,Qs=(Xs.range,cs(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}));Qs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?cs(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null};var Zs=Qs;Qs.range;function Js(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function eu(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tu(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var ru,nu,iu,ou,au={"-":"",_:" ",0:"0"},su=/^\s*\d+/,uu=/^%/,lu=/[\\^$*+?|[\]().{}]/g;function cu(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o68?1900:2e3),r+n[0].length):-1}function xu(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Eu(e,t,r){var n=su.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function _u(e,t,r){var n=su.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Tu(e,t,r){var n=su.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Su(e,t,r){var n=su.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function ku(e,t,r){var n=su.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Du(e,t,r){var n=su.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Au(e,t,r){var n=su.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Ou(e,t,r){var n=su.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Cu(e,t,r){var n=uu.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Iu(e,t,r){var n=su.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Fu(e,t,r){var n=su.exec(t.slice(r));return n?(e.Q=1e3*+n[0],r+n[0].length):-1}function ju(e,t){return cu(e.getDate(),t,2)}function Pu(e,t){return cu(e.getHours(),t,2)}function Nu(e,t){return cu(e.getHours()%12||12,t,2)}function Mu(e,t){return cu(1+Es.count(Ps(e),e),t,3)}function Ru(e,t){return cu(e.getMilliseconds(),t,3)}function Bu(e,t){return Ru(e,t)+"000"}function Lu(e,t){return cu(e.getMonth()+1,t,2)}function Uu(e,t){return cu(e.getMinutes(),t,2)}function Hu(e,t){return cu(e.getSeconds(),t,2)}function zu(e){var t=e.getDay();return 0===t?7:t}function Vu(e,t){return cu(Ts.count(Ps(e),e),t,2)}function Wu(e,t){var r=e.getDay();return e=r>=4||0===r?As(e):As.ceil(e),cu(As.count(Ps(e),e)+(4===Ps(e).getDay()),t,2)}function qu(e){return e.getDay()}function Gu(e,t){return cu(Ss.count(Ps(e),e),t,2)}function Ku(e,t){return cu(e.getFullYear()%100,t,2)}function Yu(e,t){return cu(e.getFullYear()%1e4,t,4)}function Xu(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+cu(t/60|0,"0",2)+cu(t%60,"0",2)}function $u(e,t){return cu(e.getUTCDate(),t,2)}function Qu(e,t){return cu(e.getUTCHours(),t,2)}function Zu(e,t){return cu(e.getUTCHours()%12||12,t,2)}function Ju(e,t){return cu(1+Us.count(Zs(e),e),t,3)}function el(e,t){return cu(e.getUTCMilliseconds(),t,3)}function tl(e,t){return el(e,t)+"000"}function rl(e,t){return cu(e.getUTCMonth()+1,t,2)}function nl(e,t){return cu(e.getUTCMinutes(),t,2)}function il(e,t){return cu(e.getUTCSeconds(),t,2)}function ol(e){var t=e.getUTCDay();return 0===t?7:t}function al(e,t){return cu(zs.count(Zs(e),e),t,2)}function sl(e,t){var r=e.getUTCDay();return e=r>=4||0===r?Gs(e):Gs.ceil(e),cu(Gs.count(Zs(e),e)+(4===Zs(e).getUTCDay()),t,2)}function ul(e){return e.getUTCDay()}function ll(e,t){return cu(Vs.count(Zs(e),e),t,2)}function cl(e,t){return cu(e.getUTCFullYear()%100,t,2)}function pl(e,t){return cu(e.getUTCFullYear()%1e4,t,4)}function hl(){return"+0000"}function fl(){return"%"}function dl(e){return+e}function ml(e){return Math.floor(+e/1e3)}!function(e){ru=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=hu(i),c=fu(i),p=hu(o),h=fu(o),f=hu(a),d=fu(a),m=hu(s),v=fu(s),y=hu(u),g=fu(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ju,e:ju,f:Bu,H:Pu,I:Nu,j:Mu,L:Ru,m:Lu,M:Uu,p:function(e){return i[+(e.getHours()>=12)]},Q:dl,s:ml,S:Hu,u:zu,U:Vu,V:Wu,w:qu,W:Gu,x:null,X:null,y:Ku,Y:Yu,Z:Xu,"%":fl},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:$u,e:$u,f:tl,H:Qu,I:Zu,j:Ju,L:el,m:rl,M:nl,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:dl,s:ml,S:il,u:ol,U:al,V:sl,w:ul,W:ll,x:null,X:null,y:cl,Y:pl,Z:hl,"%":fl},x={a:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=d[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=g[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=v[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return T(e,t,r,n)},d:_u,e:_u,f:Ou,H:Su,I:Su,j:Tu,L:Au,m:Eu,M:ku,p:function(e,t,r){var n=l.exec(t.slice(r));return n?(e.p=c[n[0].toLowerCase()],r+n[0].length):-1},Q:Iu,s:Fu,S:Du,u:mu,U:vu,V:yu,w:du,W:gu,x:function(e,t,n){return T(e,r,t,n)},X:function(e,t,r){return T(e,n,t,r)},y:wu,Y:bu,Z:xu,"%":Cu};function E(e,t){return function(r){var n,i,o,a=[],s=-1,u=0,l=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=eu(tu(o.y))).getUTCDay(),n=i>4||0===i?Vs.ceil(n):Vs(n),n=Us.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=t(tu(o.y))).getDay(),n=i>4||0===i?Ss.ceil(n):Ss(n),n=Es.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?eu(tu(o.y)).getUTCDay():t(tu(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,eu(o)):t(o)}}function T(e,t,r,n){for(var i,o,a=0,s=t.length,u=r.length;a=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in au?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=E(r,b),b.X=E(n,b),b.c=E(t,b),w.x=E(r,w),w.X=E(n,w),w.c=E(t,w),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",Js);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e,eu);return t.toString=function(){return e},t}}}(e),nu=ru.format,ru.parse,iu=ru.utcFormat,ou=ru.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||iu("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||ou("%Y-%m-%dT%H:%M:%S.%LZ");var vl=1e3,yl=60*vl,gl=60*yl,bl=24*gl,wl=7*bl,xl=30*bl,El=365*bl;function _l(e){return new Date(e)}function Tl(e){return e instanceof Date?+e:+new Date(+e)}function Sl(e,t,r,n,i,o,a,s,u){var l=xa(da,da),c=l.invert,p=l.domain,h=u(".%L"),f=u(":%S"),d=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),y=u("%b %d"),g=u("%B"),b=u("%Y"),w=[[a,1,vl],[a,5,5*vl],[a,15,15*vl],[a,30,30*vl],[o,1,yl],[o,5,5*yl],[o,15,15*yl],[o,30,30*yl],[i,1,gl],[i,3,3*gl],[i,6,6*gl],[i,12,12*gl],[n,1,bl],[n,2,2*bl],[r,1,wl],[t,1,xl],[t,3,3*xl],[e,1,El]];function x(s){return(a(s)=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Ql={className:h.a.string,children:h.a.oneOfType([h.a.arrayOf(h.a.node),h.a.node])};function Zl(e){var t=e.children,r=e.className,n=$l(e,["children","className"]),i=y()("recharts-layer",r);return c.a.createElement("g",Xl({className:i},n),t)}Zl.propTypes=Ql;var Jl,ec,tc,rc=Zl;function nc(e){return(nc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ic(){return(ic=Object.assign||function(e){for(var t=1;t=0&&i===+i?"".concat(i,"px"):i),";");var n,i,o},"")},gc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||ie())return{width:0,height:0};var r="".concat(e),n=yc(t),i="".concat(r,"-").concat(n);if(dc.widthCache[i])return dc.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(o));var a=function(e){for(var t=1;t2e3&&(dc.cacheCount=0,dc.widthCache={}),u}catch(l){return{width:0,height:0}}};function bc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wc(e){return(wc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xc(){return(xc=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _c(e,t){for(var r=0;ro&&(u=2*Math.PI-u),{radius:a,angle:jc(u),angleInRadian:u}},Mc=function(e,t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return e+360*Math.min(i,o)},Rc=function(e,t){var r=e.x,n=e.y,i=Nc({x:r,y:n},t),o=i.radius,a=i.angle,s=t.innerRadius,u=t.outerRadius;if(ou)return!1;if(0===o)return!0;var l,c=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-360*o,endAngle:r-360*o}}(t),p=c.startAngle,h=c.endAngle,f=a;if(p<=h){for(;f>h;)f-=360;for(;f=p&&f<=h}else{for(;f>p;)f-=360;for(;f=h&&f<=p}return l?Cc({},t,{radius:o,angle:Mc(f,t)}):null};function Bc(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t=0?1:-1;"insideStart"===o?(n=d+x*s,i=v):"insideEnd"===o?(n=m-x*s,i=!v):"end"===o&&(n=m+x*s,i=v),i=w<=0?i:!i;var E=Pc(l,p,g,n),_=Pc(l,p,g,n+359*(i?1:-1)),T="M".concat(E.x,",").concat(E.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),S=b()(e.id)?R("recharts-radial-line-"):e.id;return c.a.createElement("text",Lc({},r,{dominantBaseline:"central",className:y()("recharts-radial-bar-label",u)}),c.a.createElement("defs",null,c.a.createElement("path",{id:S,d:T})),c.a.createElement("textPath",{xlinkHref:"#".concat(S)},t))},Gc=function(e){var t=e.viewBox,r=e.offset,n=e.position,i=t.cx,o=t.cy,a=t.innerRadius,s=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===n){var l=Pc(i,o,s+r,u),c=l.x;return{x:c,y:l.y,textAnchor:c>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=Pc(i,o,(a+s)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Kc=function(e){var t=e.viewBox,r=e.offset,n=e.position,i=t.x,o=t.y,a=t.width,s=t.height,u=s>=0?1:-1;return"top"===n?{x:i+a/2,y:o-u*r,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===n?{x:i+a/2,y:o+s+u*r,textAnchor:"middle",verticalAnchor:"start"}:"left"===n?{x:i-r,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===n?{x:i+a+r,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===n?{x:i+r,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===n?{x:i+a-r,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===n?{x:i+a/2,y:o+u*r,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===n?{x:i+a/2,y:o+s-u*r,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===n?{x:i+r,y:o+u*r,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===n?{x:i+a-r,y:o+u*r,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===n?{x:i+r,y:o+s-u*r,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===n?{x:i+a-r,y:o+s-u*r,textAnchor:"end",verticalAnchor:"end"}:_()(n)&&(P(n.x)||j(n.x))&&(P(n.y)||j(n.y))?{x:i+B(n.x,a),y:o+B(n.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}},Yc=function(e){return P(e.cx)};function Xc(e){var t,r=e.viewBox,n=e.position,i=e.value,o=e.children,s=e.content,u=e.className,p=void 0===u?"":u;if(!r||b()(i)&&b()(o)&&!Object(l.isValidElement)(s)&&!a()(s))return null;if(Object(l.isValidElement)(s))return Object(l.cloneElement)(s,e);if(a()(s)){if(t=s(e),Object(l.isValidElement)(t))return t}else t=Wc(e);var h=Yc(r),f=Z(e);if(h&&("insideStart"===n||"insideEnd"===n||"end"===n))return qc(e,t,f);var d=h?Gc(e):Kc(e);return c.a.createElement(Oc,Lc({className:y()("recharts-label",p)},f,d),t)}Xc.displayName="Label",Xc.defaultProps={offset:5},Xc.propTypes=Vc;var $c=function(e){var t=e.cx,r=e.cy,n=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,l=e.outerRadius,c=e.x,p=e.y,h=e.top,f=e.left,d=e.width,m=e.height,v=e.clockWise;if(P(d)&&P(m)){if(P(c)&&P(p))return{x:c,y:p,width:d,height:m};if(P(h)&&P(f))return{x:h,y:f,width:d,height:m}}return P(c)&&P(p)?{x:c,y:p,width:0,height:0}:P(t)&&P(r)?{cx:t,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};Xc.parseViewBox=$c,Xc.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=$c(e),o=$(n,Xc).map(function(e,r){return Object(l.cloneElement)(e,{viewBox:t||i,key:"label-".concat(r)})});return r?[function(e,t){return e?!0===e?c.a.createElement(Xc,{key:"label-implicit",viewBox:t}):N(e)?c.a.createElement(Xc,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===Xc?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):c.a.createElement(Xc,{key:"label-implicit",content:e,viewBox:t}):a()(e)?c.a.createElement(Xc,{key:"label-implicit",content:e,viewBox:t}):_()(e)?c.a.createElement(Xc,Lc({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||i)].concat(Bc(o)):o};var Qc=Xc,Zc=r(211),Jc=r.n(Zc),ep=r(257),tp=r.n(ep);function rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function np(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{}).bandAware;if(void 0!==e){if(t){var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();up.EPS=1e-4;var lp,cp,pp,hp=function(){function e(t){rp(this,e),this.scales=tp()(t,up.create),Object.assign(this,this.scales)}return ip(e,null,[{key:"create",value:function(e){return new this(e)}}]),ip(e,[{key:"apply",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,r=this.scales;return tp()(e,function(e,n){return r[n].apply(e,{bandAware:t})})}},{key:"isInRange",value:function(e){var t=this.scales;return Jc()(e,function(e,r){return t[r].isInRange(e)})}}]),e}();function fp(e){return(fp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dp(){return(dp=Object.assign||function(e){for(var t=1;t=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var c=[],p=0;p<4;p++)c[p]=i[p]>a?a:i[p];o="M".concat(e,",").concat(t+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),o+="L ".concat(e+r-u*c[1],",").concat(t),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(e+r,",").concat(t+s*c[1])),o+="L ".concat(e+r,",").concat(t+n-s*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(e+r-u*c[2],",").concat(t+n)),o+="L ".concat(e+u*c[3],",").concat(t+n),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+n-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(e,",").concat(t+s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(e+u*h,",").concat(t,"\n L ").concat(e+r-u*h,",").concat(t,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(e+r,",").concat(t+s*h,"\n L ").concat(e+r,",").concat(t+n-s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(e+r-u*h,",").concat(t+n,"\n L ").concat(e+u*h,",").concat(t+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(e,",").concat(t+n-s*h," Z")}else o="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},Qp=m((Bp=Rp=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),o=0;o0,from:{width:i,height:o,x:r,y:n},to:{width:i,height:o,x:r,y:n},duration:h,animationEasing:p,isActive:m},function(t){var r=t.width,n=t.height,i=t.x,o=t.y;return c.a.createElement(Dn,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:f,duration:h,isActive:d,easing:p},c.a.createElement("path",zp({},Z(e.props),ee(e.props),{className:v,d:$p(i,o,r,n,a),ref:function(t){e.node=t}})))}):c.a.createElement("path",zp({},Z(this.props),ee(this.props),{className:v,d:$p(r,n,i,o,a)}))}}])&&Vp(r.prototype,n),i&&Vp(r,i),t}(),Rp.displayName="Rectangle",Rp.propTypes=function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ph(e,t){for(var r=0;r=0});if(o&&o.length){var a=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var n=wh(t,r,0),i=S()(n)?[ql()(n),Vl()(n)]:[n,n],o=a.reduce(function(e,r){var n=wh(t,r,0),o=i[0]-Math.abs(S()(n)?n[0]:n),a=i[1]+Math.abs(S()(n)?n[1]:n);return[Math.min(o,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]},[1/0,-1/0])}return null},Sh=function(e,t,r,n){var i=t.map(function(t){var i=t.props.dataKey;return"number"===r&&i&&Th(e,t,i)||xh(e,i,r,n)});if("number"===r)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return i.reduce(function(e,t){for(var r=0,n=t.length;r=0||t.indexOf("AreaChart")>=0)?{scale:Fi(),realScaleType:"point"}:"category"===i?{scale:Ii(),realScaleType:"band"}:{scale:Ba(),realScaleType:"linear"};if(x()(r)){var u="scale".concat(r.slice(0,1).toUpperCase()).concat(r.slice(1));return{scale:(n[u]||Fi)(),realScaleType:n[u]?u:"point"}}return a()(r)?{scale:r}:{scale:Fi(),realScaleType:"point"}},Ih=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-1e-4,o=Math.max(n[0],n[1])+1e-4,a=e(t[0]),s=e(t[r-1]);(a