P&&W());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,g=v.priorityLevel;var oe=ne(v.expirationTime<=P);if(P=e.unstable_now(),typeof oe=="function"){v.callback=oe,N(P),z=!0;break t}v===n(d)&&r(d),N(P)}else r(d);v=n(d)}if(v!==null)z=!0;else{var k=n(h);k!==null&&K(A,k.startTime-P),z=!1}}break e}finally{v=null,g=F,x=!1}z=void 0}}finally{z?U():T=!1}}}var U;if(typeof M=="function")U=function(){M(X)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,Y=L.port2;L.port1.onmessage=X,U=function(){Y.postMessage(null)}}else U=function(){E(X,0)};function K(P,z){C=E(function(){P(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125ne?(P.sortIndex=F,t(h,P),n(d)===null&&P===n(h)&&(S?(w(C),C=-1):S=!0,K(A,F-ne))):(P.sortIndex=oe,t(d,P),j||x||(j=!0,T||(T=!0,U()))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var z=g;return function(){var F=g;g=z;try{return P.apply(this,arguments)}finally{g=F}}}})(Pp)),Pp}var vO;function hD(){return vO||(vO=1,Rp.exports=dD()),Rp.exports}var Dp={exports:{}},Bt={};/**
+ */var vO;function dD(){return vO||(vO=1,(function(e){function t(P,z){var F=P.length;P.push(z);e:for(;0>>1,oe=P[ne];if(0>>1;nel(te,F))cel(de,te)?(P[ne]=de,P[ce]=F,ne=ce):(P[ne]=te,P[G]=F,ne=G);else if(cel(de,F))P[ne]=de,P[ce]=F,ne=ce;else break e}}return z}function l(P,z){var F=P.sortIndex-z.sortIndex;return F!==0?F:P.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],y=1,v=null,g=3,x=!1,j=!1,S=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function N(P){for(var z=n(h);z!==null;){if(z.callback===null)r(h);else if(z.startTime<=P)r(h),z.sortIndex=z.expirationTime,t(d,z);else break;z=n(h)}}function A(P){if(S=!1,N(P),!j)if(n(d)!==null)j=!0,T||(T=!0,U());else{var z=n(h);z!==null&&K(A,z.startTime-P)}}var T=!1,C=-1,D=5,$=-1;function W(){return _?!0:!(e.unstable_now()-$P&&W());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,g=v.priorityLevel;var oe=ne(v.expirationTime<=P);if(P=e.unstable_now(),typeof oe=="function"){v.callback=oe,N(P),z=!0;break t}v===n(d)&&r(d),N(P)}else r(d);v=n(d)}if(v!==null)z=!0;else{var k=n(h);k!==null&&K(A,k.startTime-P),z=!1}}break e}finally{v=null,g=F,x=!1}z=void 0}}finally{z?U():T=!1}}}var U;if(typeof M=="function")U=function(){M(X)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,Y=L.port2;L.port1.onmessage=X,U=function(){Y.postMessage(null)}}else U=function(){E(X,0)};function K(P,z){C=E(function(){P(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125ne?(P.sortIndex=F,t(h,P),n(d)===null&&P===n(h)&&(S?(w(C),C=-1):S=!0,K(A,F-ne))):(P.sortIndex=oe,t(d,P),j||x||(j=!0,T||(T=!0,U()))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var z=g;return function(){var F=g;g=z;try{return P.apply(this,arguments)}finally{g=F}}}})(Pp)),Pp}var yO;function hD(){return yO||(yO=1,Rp.exports=dD()),Rp.exports}var Dp={exports:{}},Bt={};/**
* @license React
* react-dom.production.js
*
@@ -30,7 +30,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var yO;function pD(){if(yO)return Bt;yO=1;var e=lb();function t(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dp.exports=pD(),Dp.exports}/**
+ */var mO;function pD(){if(mO)return Bt;mO=1;var e=ob();function t(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dp.exports=pD(),Dp.exports}/**
* @license React
* react-dom-client.production.js
*
@@ -38,15 +38,15 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var gO;function yD(){if(gO)return Bo;gO=1;var e=hD(),t=lb(),n=vD();function r(a){var i="https://react.dev/errors/"+a;if(1oe||(a.current=ne[oe],ne[oe]=null,oe--)}function te(a,i){oe++,ne[oe]=a.current,a.current=i}var ce=k(null),de=k(null),me=k(null),Oe=k(null);function $e(a,i){switch(te(me,i),te(de,a),te(ce,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?PS(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=PS(i),a=DS(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(ce),te(ce,a)}function se(){G(ce),G(de),G(me)}function be(a){a.memoizedState!==null&&te(Oe,a);var i=ce.current,o=DS(i,a.type);i!==o&&(te(de,a),te(ce,o))}function Ae(a){de.current===a&&(G(ce),G(de)),Oe.current===a&&(G(Oe),Do._currentValue=F)}var ue,nt;function Te(a){if(ue===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);ue=i&&i[1]||"",nt=-1oe||(a.current=ne[oe],ne[oe]=null,oe--)}function te(a,i){oe++,ne[oe]=a.current,a.current=i}var ce=k(null),de=k(null),me=k(null),Oe=k(null);function $e(a,i){switch(te(me,i),te(de,a),te(ce,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?DS(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=DS(i),a=kS(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(ce),te(ce,a)}function se(){G(ce),G(de),G(me)}function be(a){a.memoizedState!==null&&te(Oe,a);var i=ce.current,o=kS(i,a.type);i!==o&&(te(de,a),te(ce,o))}function Ae(a){de.current===a&&(G(ce),G(de)),Oe.current===a&&(G(Oe),Do._currentValue=F)}var ue,nt;function Te(a){if(ue===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);ue=i&&i[1]||"",nt=-1)":-1p||q[s]!==Q[p]){var re=`
`+q[s].replace(" at new "," at ");return a.displayName&&re.includes("")&&(re=re.replace("",a.displayName)),re}while(1<=s&&0<=p);break}}}finally{ut=!1,Error.prepareStackTrace=o}return(o=a?a.displayName||a.name:"")?Te(o):""}function zt(a,i){switch(a.tag){case 26:case 27:case 5:return Te(a.type);case 16:return Te("Lazy");case 13:return a.child!==i&&i!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return ct(a.type,!1);case 11:return ct(a.type.render,!1);case 1:return ct(a.type,!0);case 31:return Te("Activity");default:return""}}function zn(a){try{var i="",o=null;do i+=zt(a,o),o=a,a=a.return;while(a);return i}catch(s){return`
Error generating stack: `+s.message+`
-`+s.stack}}var Vn=Object.prototype.hasOwnProperty,Ir=e.unstable_scheduleCallback,qn=e.unstable_cancelCallback,ir=e.unstable_shouldYield,Gl=e.unstable_requestPaint,qt=e.unstable_now,Vu=e.unstable_getCurrentPriorityLevel,fx=e.unstable_ImmediatePriority,dx=e.unstable_UserBlockingPriority,Fu=e.unstable_NormalPriority,G3=e.unstable_LowPriority,hx=e.unstable_IdlePriority,Y3=e.log,X3=e.unstable_setDisableYieldValue,Yl=null,rn=null;function Ur(a){if(typeof Y3=="function"&&X3(a),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(Yl,a)}catch{}}var an=Math.clz32?Math.clz32:F3,K3=Math.log,V3=Math.LN2;function F3(a){return a>>>=0,a===0?32:31-(K3(a)/V3|0)|0}var Wu=256,Zu=262144,Qu=4194304;function Aa(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ju(a,i,o){var s=a.pendingLanes;if(s===0)return 0;var p=0,m=a.suspendedLanes,O=a.pingedLanes;a=a.warmLanes;var R=s&134217727;return R!==0?(s=R&~m,s!==0?p=Aa(s):(O&=R,O!==0?p=Aa(O):o||(o=R&~a,o!==0&&(p=Aa(o))))):(R=s&~m,R!==0?p=Aa(R):O!==0?p=Aa(O):o||(o=s&~a,o!==0&&(p=Aa(o)))),p===0?0:i!==0&&i!==p&&(i&m)===0&&(m=p&-p,o=i&-i,m>=o||m===32&&(o&4194048)!==0)?i:p}function Xl(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function W3(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function px(){var a=Qu;return Qu<<=1,(Qu&62914560)===0&&(Qu=4194304),a}function md(a){for(var i=[],o=0;31>o;o++)i.push(a);return i}function Kl(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Z3(a,i,o,s,p,m){var O=a.pendingLanes;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=o,a.entangledLanes&=o,a.errorRecoveryDisabledLanes&=o,a.shellSuspendCounter=0;var R=a.entanglements,q=a.expirationTimes,Q=a.hiddenUpdates;for(o=O&~o;0"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var rR=/[\n"\\]/g;function bn(a){return a.replace(rR,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Od(a,i,o,s,p,m,O,R){a.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?a.type=O:a.removeAttribute("type"),i!=null?O==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+gn(i)):a.value!==""+gn(i)&&(a.value=""+gn(i)):O!=="submit"&&O!=="reset"||a.removeAttribute("value"),i!=null?Ad(a,O,gn(i)):o!=null?Ad(a,O,gn(o)):s!=null&&a.removeAttribute("value"),p==null&&m!=null&&(a.defaultChecked=!!m),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+gn(R):a.removeAttribute("name")}function Tx(a,i,o,s,p,m,O,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(a.type=m),i!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||i!=null)){Sd(a);return}o=o!=null?""+gn(o):"",i=i!=null?""+gn(i):o,R||i===a.value||(a.value=i),a.defaultValue=i}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,a.checked=R?a.checked:!!s,a.defaultChecked=!!s,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(a.name=O),Sd(a)}function Ad(a,i,o){i==="number"&&nc(a.ownerDocument)===a||a.defaultValue===""+o||(a.defaultValue=""+o)}function yi(a,i,o,s){if(a=a.options,i){i={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Md=!1;if(ur)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){Md=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{Md=!1}var Gr=null,Cd=null,ac=null;function Dx(){if(ac)return ac;var a,i=Cd,o=i.length,s,p="value"in Gr?Gr.value:Gr.textContent,m=p.length;for(a=0;a=eo),Lx=" ",Ix=!1;function Ux(a,i){switch(a){case"keyup":return NR.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var xi=!1;function PR(a,i){switch(a){case"compositionend":return Hx(i);case"keypress":return i.which!==32?null:(Ix=!0,Lx);case"textInput":return a=i.data,a===Lx&&Ix?null:a;default:return null}}function DR(a,i){if(xi)return a==="compositionend"||!kd&&Ux(a,i)?(a=Dx(),ac=Cd=Gr=null,xi=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:o,offset:i-a};a=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Zx(o)}}function Jx(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Jx(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function e1(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=nc(a.document);i instanceof a.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)a=i.contentWindow;else break;i=nc(a.document)}return i}function qd(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var UR=ur&&"documentMode"in document&&11>=document.documentMode,_i=null,Bd=null,ao=null,Ld=!1;function t1(a,i,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ld||_i==null||_i!==nc(s)||(s=_i,"selectionStart"in s&&qd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ao&&ro(ao,s)||(ao=s,s=Zc(Bd,"onSelect"),0>=O,p-=O,Fn=1<<32-an(i)+p|o<Ee?(De=ve,ve=null):De=ve.sibling;var qe=J(V,ve,Z[Ee],ie);if(qe===null){ve===null&&(ve=De);break}a&&ve&&qe.alternate===null&&i(V,ve),H=m(qe,H,Ee),ze===null?ye=qe:ze.sibling=qe,ze=qe,ve=De}if(Ee===Z.length)return o(V,ve),ke&&sr(V,Ee),ye;if(ve===null){for(;EeEe?(De=ve,ve=null):De=ve.sibling;var da=J(V,ve,qe.value,ie);if(da===null){ve===null&&(ve=De);break}a&&ve&&da.alternate===null&&i(V,ve),H=m(da,H,Ee),ze===null?ye=da:ze.sibling=da,ze=da,ve=De}if(qe.done)return o(V,ve),ke&&sr(V,Ee),ye;if(ve===null){for(;!qe.done;Ee++,qe=Z.next())qe=le(V,qe.value,ie),qe!==null&&(H=m(qe,H,Ee),ze===null?ye=qe:ze.sibling=qe,ze=qe);return ke&&sr(V,Ee),ye}for(ve=s(ve);!qe.done;Ee++,qe=Z.next())qe=ee(ve,V,Ee,qe.value,ie),qe!==null&&(a&&qe.alternate!==null&&ve.delete(qe.key===null?Ee:qe.key),H=m(qe,H,Ee),ze===null?ye=qe:ze.sibling=qe,ze=qe);return a&&ve.forEach(function(uD){return i(V,uD)}),ke&&sr(V,Ee),ye}function Fe(V,H,Z,ie){if(typeof Z=="object"&&Z!==null&&Z.type===S&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:e:{for(var ye=Z.key;H!==null;){if(H.key===ye){if(ye=Z.type,ye===S){if(H.tag===7){o(V,H.sibling),ie=p(H,Z.props.children),ie.return=V,V=ie;break e}}else if(H.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===D&&ka(ye)===H.type){o(V,H.sibling),ie=p(H,Z.props),so(ie,Z),ie.return=V,V=ie;break e}o(V,H);break}else i(V,H);H=H.sibling}Z.type===S?(ie=Ca(Z.props.children,V.mode,ie,Z.key),ie.return=V,V=ie):(ie=pc(Z.type,Z.key,Z.props,null,V.mode,ie),so(ie,Z),ie.return=V,V=ie)}return O(V);case j:e:{for(ye=Z.key;H!==null;){if(H.key===ye)if(H.tag===4&&H.stateNode.containerInfo===Z.containerInfo&&H.stateNode.implementation===Z.implementation){o(V,H.sibling),ie=p(H,Z.children||[]),ie.return=V,V=ie;break e}else{o(V,H);break}else i(V,H);H=H.sibling}ie=Kd(Z,V.mode,ie),ie.return=V,V=ie}return O(V);case D:return Z=ka(Z),Fe(V,H,Z,ie)}if(K(Z))return pe(V,H,Z,ie);if(U(Z)){if(ye=U(Z),typeof ye!="function")throw Error(r(150));return Z=ye.call(Z),ge(V,H,Z,ie)}if(typeof Z.then=="function")return Fe(V,H,_c(Z),ie);if(Z.$$typeof===M)return Fe(V,H,mc(V,Z),ie);Sc(V,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,H!==null&&H.tag===6?(o(V,H.sibling),ie=p(H,Z),ie.return=V,V=ie):(o(V,H),ie=Xd(Z,V.mode,ie),ie.return=V,V=ie),O(V)):o(V,H)}return function(V,H,Z,ie){try{co=0;var ye=Fe(V,H,Z,ie);return Ri=null,ye}catch(ve){if(ve===Ni||ve===bc)throw ve;var ze=on(29,ve,null,V.mode);return ze.lanes=ie,ze.return=V,ze}finally{}}}var za=A1(!0),w1=A1(!1),Fr=!1;function ih(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lh(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Wr(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Zr(a,i,o){var s=a.updateQueue;if(s===null)return null;if(s=s.shared,(Le&2)!==0){var p=s.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),s.pending=i,i=hc(a),u1(a,null,o),i}return dc(a,s,i,o),hc(a)}function fo(a,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var s=i.lanes;s&=a.pendingLanes,o|=s,i.lanes=o,yx(a,o)}}function oh(a,i){var o=a.updateQueue,s=a.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var p=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var O={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?p=m=O:m=m.next=O,o=o.next}while(o!==null);m===null?p=m=i:m=m.next=i}else p=m=i;o={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},a.updateQueue=o;return}a=o.lastBaseUpdate,a===null?o.firstBaseUpdate=i:a.next=i,o.lastBaseUpdate=i}var uh=!1;function ho(){if(uh){var a=Ci;if(a!==null)throw a}}function po(a,i,o,s){uh=!1;var p=a.updateQueue;Fr=!1;var m=p.firstBaseUpdate,O=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var q=R,Q=q.next;q.next=null,O===null?m=Q:O.next=Q,O=q;var re=a.alternate;re!==null&&(re=re.updateQueue,R=re.lastBaseUpdate,R!==O&&(R===null?re.firstBaseUpdate=Q:R.next=Q,re.lastBaseUpdate=q))}if(m!==null){var le=p.baseState;O=0,re=Q=q=null,R=m;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(Pe&J)===J:(s&J)===J){J!==0&&J===Mi&&(uh=!0),re!==null&&(re=re.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=a,ge=R;J=i;var Fe=o;switch(ge.tag){case 1:if(pe=ge.payload,typeof pe=="function"){le=pe.call(Fe,le,J);break e}le=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ge.payload,J=typeof pe=="function"?pe.call(Fe,le,J):pe,J==null)break e;le=v({},le,J);break e;case 2:Fr=!0}}J=R.callback,J!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=p.callbacks,ee===null?p.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},re===null?(Q=re=ee,q=le):re=re.next=ee,O|=J;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,p.lastBaseUpdate=ee,p.shared.pending=null}}while(!0);re===null&&(q=le),p.baseState=q,p.firstBaseUpdate=Q,p.lastBaseUpdate=re,m===null&&(p.shared.lanes=0),na|=O,a.lanes=O,a.memoizedState=le}}function j1(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function T1(a,i){var o=a.callbacks;if(o!==null)for(a.callbacks=null,a=0;am?m:8;var O=P.T,R={};P.T=R,Th(a,!1,i,o);try{var q=p(),Q=P.S;if(Q!==null&&Q(R,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var re=ZR(q,s);mo(a,i,re,dn(a))}else mo(a,i,s,dn(a))}catch(le){mo(a,i,{then:function(){},status:"rejected",reason:le},dn())}finally{z.p=m,O!==null&&R.types!==null&&(O.types=R.types),P.T=O}}function rP(){}function wh(a,i,o,s){if(a.tag!==5)throw Error(r(476));var p=i_(a).queue;a_(a,p,i,F,o===null?rP:function(){return l_(a),o(s)})}function i_(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:F},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:o},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function l_(a){var i=i_(a);i.next===null&&(i=a.alternate.memoizedState),mo(a,i.next.queue,{},dn())}function jh(){return Pt(Do)}function o_(){return pt().memoizedState}function u_(){return pt().memoizedState}function aP(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var o=dn();a=Wr(o);var s=Zr(i,a,o);s!==null&&(en(s,i,o),fo(s,i,o)),i={cache:th()},a.payload=i;return}i=i.return}}function iP(a,i,o){var s=dn();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Rc(a)?s_(i,o):(o=Gd(a,i,o,s),o!==null&&(en(o,a,s),f_(o,i,s)))}function c_(a,i,o){var s=dn();mo(a,i,o,s)}function mo(a,i,o,s){var p={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rc(a))s_(i,p);else{var m=a.alternate;if(a.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var O=i.lastRenderedState,R=m(O,o);if(p.hasEagerState=!0,p.eagerState=R,ln(R,O))return dc(a,i,p,0),Ze===null&&fc(),!1}catch{}finally{}if(o=Gd(a,i,p,s),o!==null)return en(o,a,s),f_(o,i,s),!0}return!1}function Th(a,i,o,s){if(s={lane:2,revertLane:ip(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Rc(a)){if(i)throw Error(r(479))}else i=Gd(a,o,s,2),i!==null&&en(i,a,2)}function Rc(a){var i=a.alternate;return a===je||i!==null&&i===je}function s_(a,i){Di=wc=!0;var o=a.pending;o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i}function f_(a,i,o){if((o&4194048)!==0){var s=i.lanes;s&=a.pendingLanes,o|=s,i.lanes=o,yx(a,o)}}var go={readContext:Pt,use:Ec,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};go.useEffectEvent=st;var d_={readContext:Pt,use:Ec,useCallback:function(a,i){return Gt().memoizedState=[a,i===void 0?null:i],a},useContext:Pt,useEffect:F1,useImperativeHandle:function(a,i,o){o=o!=null?o.concat([a]):null,Cc(4194308,4,J1.bind(null,i,a),o)},useLayoutEffect:function(a,i){return Cc(4194308,4,a,i)},useInsertionEffect:function(a,i){Cc(4,2,a,i)},useMemo:function(a,i){var o=Gt();i=i===void 0?null:i;var s=a();if(qa){Ur(!0);try{a()}finally{Ur(!1)}}return o.memoizedState=[s,i],s},useReducer:function(a,i,o){var s=Gt();if(o!==void 0){var p=o(i);if(qa){Ur(!0);try{o(i)}finally{Ur(!1)}}}else p=i;return s.memoizedState=s.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},s.queue=a,a=a.dispatch=iP.bind(null,je,a),[s.memoizedState,a]},useRef:function(a){var i=Gt();return a={current:a},i.memoizedState=a},useState:function(a){a=xh(a);var i=a.queue,o=c_.bind(null,je,i);return i.dispatch=o,[a.memoizedState,o]},useDebugValue:Oh,useDeferredValue:function(a,i){var o=Gt();return Ah(o,a,i)},useTransition:function(){var a=xh(!1);return a=a_.bind(null,je,a.queue,!0,!1),Gt().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,o){var s=je,p=Gt();if(ke){if(o===void 0)throw Error(r(407));o=o()}else{if(o=i(),Ze===null)throw Error(r(349));(Pe&127)!==0||P1(s,i,o)}p.memoizedState=o;var m={value:o,getSnapshot:i};return p.queue=m,F1(k1.bind(null,s,m,a),[a]),s.flags|=2048,$i(9,{destroy:void 0},D1.bind(null,s,m,o,i),null),o},useId:function(){var a=Gt(),i=Ze.identifierPrefix;if(ke){var o=Wn,s=Fn;o=(s&~(1<<32-an(s)-1)).toString(32)+o,i="_"+i+"R_"+o,o=jc++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?O.createElement("select",{is:s.is}):O.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?O.createElement(p,{is:s.is}):O.createElement(p)}}m[Nt]=i,m[Vt]=s;e:for(O=i.child;O!==null;){if(O.tag===5||O.tag===6)m.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===i)break e;for(;O.sibling===null;){if(O.return===null||O.return===i)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}i.stateNode=m;e:switch(kt(m,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&yr(i)}}return at(i),Ih(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,o),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==s&&yr(i);else{if(typeof s!="string"&&i.stateNode===null)throw Error(r(166));if(a=me.current,Ti(i)){if(a=i.stateNode,o=i.memoizedProps,s=null,p=Rt,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}a[Nt]=i,a=!!(a.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||NS(a.nodeValue,o)),a||Kr(i,!0)}else a=Qc(a).createTextNode(s),a[Nt]=i,i.stateNode=a}return at(i),null;case 31:if(o=i.memoizedState,a===null||a.memoizedState!==null){if(s=Ti(i),o!==null){if(a===null){if(!s)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Nt]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;at(i),a=!1}else o=Zd(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=o),a=!0;if(!a)return i.flags&256?(cn(i),i):(cn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return at(i),null;case 13:if(s=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=Ti(i),s!==null&&s.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[Nt]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;at(i),p=!1}else p=Zd(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(cn(i),i):(cn(i),null)}return cn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=s!==null,a=a!==null&&a.memoizedState!==null,o&&(s=i.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==p&&(s.flags|=2048)),o!==a&&o&&(i.child.flags|=8192),zc(i,i.updateQueue),at(i),null);case 4:return se(),a===null&&cp(i.stateNode.containerInfo),at(i),null;case 10:return dr(i.type),at(i),null;case 19:if(G(ht),s=i.memoizedState,s===null)return at(i),null;if(p=(i.flags&128)!==0,m=s.rendering,m===null)if(p)xo(s,!1);else{if(ft!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(m=Ac(a),m!==null){for(i.flags|=128,xo(s,!1),a=m.updateQueue,i.updateQueue=a,zc(i,a),i.subtreeFlags=0,a=o,o=i.child;o!==null;)c1(o,a),o=o.sibling;return te(ht,ht.current&1|2),ke&&sr(i,s.treeForkCount),i.child}a=a.sibling}s.tail!==null&&qt()>Uc&&(i.flags|=128,p=!0,xo(s,!1),i.lanes=4194304)}else{if(!p)if(a=Ac(m),a!==null){if(i.flags|=128,p=!0,a=a.updateQueue,i.updateQueue=a,zc(i,a),xo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!ke)return at(i),null}else 2*qt()-s.renderingStartTime>Uc&&o!==536870912&&(i.flags|=128,p=!0,xo(s,!1),i.lanes=4194304);s.isBackwards?(m.sibling=i.child,i.child=m):(a=s.last,a!==null?a.sibling=m:i.child=m,s.last=m)}return s.tail!==null?(a=s.tail,s.rendering=a,s.tail=a.sibling,s.renderingStartTime=qt(),a.sibling=null,o=ht.current,te(ht,p?o&1|2:o&1),ke&&sr(i,s.treeForkCount),a):(at(i),null);case 22:case 23:return cn(i),sh(),s=i.memoizedState!==null,a!==null?a.memoizedState!==null!==s&&(i.flags|=8192):s&&(i.flags|=8192),s?(o&536870912)!==0&&(i.flags&128)===0&&(at(i),i.subtreeFlags&6&&(i.flags|=8192)):at(i),o=i.updateQueue,o!==null&&zc(i,o.retryQueue),o=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048),a!==null&&G(Da),null;case 24:return o=null,a!==null&&(o=a.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),dr(vt),at(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function sP(a,i){switch(Fd(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return dr(vt),se(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return Ae(i),null;case 31:if(i.memoizedState!==null){if(cn(i),i.alternate===null)throw Error(r(340));Na()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(cn(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Na()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return G(ht),null;case 4:return se(),null;case 10:return dr(i.type),null;case 22:case 23:return cn(i),sh(),a!==null&&G(Da),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return dr(vt),null;case 25:return null;default:return null}}function $_(a,i){switch(Fd(i),i.tag){case 3:dr(vt),se();break;case 26:case 27:case 5:Ae(i);break;case 4:se();break;case 31:i.memoizedState!==null&&cn(i);break;case 13:cn(i);break;case 19:G(ht);break;case 10:dr(i.type);break;case 22:case 23:cn(i),sh(),a!==null&&G(Da);break;case 24:dr(vt)}}function _o(a,i){try{var o=i.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&a)===a){s=void 0;var m=o.create,O=o.inst;s=m(),O.destroy=s}o=o.next}while(o!==p)}}catch(R){Ge(i,i.return,R)}}function ea(a,i,o){try{var s=i.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var m=p.next;s=m;do{if((s.tag&a)===a){var O=s.inst,R=O.destroy;if(R!==void 0){O.destroy=void 0,p=i;var q=o,Q=R;try{Q()}catch(re){Ge(p,q,re)}}}s=s.next}while(s!==m)}}catch(re){Ge(i,i.return,re)}}function z_(a){var i=a.updateQueue;if(i!==null){var o=a.stateNode;try{T1(i,o)}catch(s){Ge(a,a.return,s)}}}function q_(a,i,o){o.props=Ba(a.type,a.memoizedProps),o.state=a.memoizedState;try{o.componentWillUnmount()}catch(s){Ge(a,i,s)}}function So(a,i){try{var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var s=a.stateNode;break;case 30:s=a.stateNode;break;default:s=a.stateNode}typeof o=="function"?a.refCleanup=o(s):o.current=s}}catch(p){Ge(a,i,p)}}function Zn(a,i){var o=a.ref,s=a.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(p){Ge(a,i,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Ge(a,i,p)}else o.current=null}function B_(a){var i=a.type,o=a.memoizedProps,s=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(p){Ge(a,a.return,p)}}function Uh(a,i,o){try{var s=a.stateNode;RP(s,a.type,o,i),s[Vt]=i}catch(p){Ge(a,a.return,p)}}function L_(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&oa(a.type)||a.tag===4}function Hh(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||L_(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&oa(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Gh(a,i,o){var s=a.tag;if(s===5||s===6)a=a.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(a,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(a),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=or));else if(s!==4&&(s===27&&oa(a.type)&&(o=a.stateNode,i=null),a=a.child,a!==null))for(Gh(a,i,o),a=a.sibling;a!==null;)Gh(a,i,o),a=a.sibling}function qc(a,i,o){var s=a.tag;if(s===5||s===6)a=a.stateNode,i?o.insertBefore(a,i):o.appendChild(a);else if(s!==4&&(s===27&&oa(a.type)&&(o=a.stateNode),a=a.child,a!==null))for(qc(a,i,o),a=a.sibling;a!==null;)qc(a,i,o),a=a.sibling}function I_(a){var i=a.stateNode,o=a.memoizedProps;try{for(var s=a.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);kt(i,s,o),i[Nt]=a,i[Vt]=o}catch(m){Ge(a,a.return,m)}}var mr=!1,gt=!1,Yh=!1,U_=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function fP(a,i){if(a=a.containerInfo,dp=is,a=e1(a),qd(a)){if("selectionStart"in a)var o={start:a.selectionStart,end:a.selectionEnd};else e:{o=(o=a.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var p=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var O=0,R=-1,q=-1,Q=0,re=0,le=a,J=null;t:for(;;){for(var ee;le!==o||p!==0&&le.nodeType!==3||(R=O+p),le!==m||s!==0&&le.nodeType!==3||(q=O+s),le.nodeType===3&&(O+=le.nodeValue.length),(ee=le.firstChild)!==null;)J=le,le=ee;for(;;){if(le===a)break t;if(J===o&&++Q===p&&(R=O),J===m&&++re===s&&(q=O),(ee=le.nextSibling)!==null)break;le=J,J=le.parentNode}le=ee}o=R===-1||q===-1?null:{start:R,end:q}}else o=null}o=o||{start:0,end:0}}else o=null;for(hp={focusedElem:a,selectionRange:o},is=!1,Tt=i;Tt!==null;)if(i=Tt,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Tt=a;else for(;Tt!==null;){switch(i=Tt,m=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(o=0;o title"))),kt(m,s,o),m[Nt]=a,jt(m),s=m;break e;case"link":var O=VS("link","href",p).get(s+(o.href||""));if(O){for(var R=0;RFe&&(O=Fe,Fe=ge,ge=O);var V=Qx(R,ge),H=Qx(R,Fe);if(V&&H&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==H.node||ee.focusOffset!==H.offset)){var Z=le.createRange();Z.setStart(V.node,V.offset),ee.removeAllRanges(),ge>Fe?(ee.addRange(Z),ee.extend(H.node,H.offset)):(Z.setEnd(H.node,H.offset),ee.addRange(Z))}}}}for(le=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&le.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Ro?32:o,P.T=null,o=Qh,Qh=null;var m=aa,O=Sr;if(_t=0,Ii=aa=null,Sr=0,(Le&6)!==0)throw Error(r(331));var R=Le;if(Le|=4,J_(m.current),W_(m,m.current,O,o),Le=R,Eo(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(Yl,m)}catch{}return!0}finally{z.p=p,P.T=s,mS(a,i)}}function bS(a,i,o){i=_n(o,i),i=Nh(a.stateNode,i,2),a=Zr(a,i,2),a!==null&&(Kl(a,2),Qn(a))}function Ge(a,i,o){if(a.tag===3)bS(a,a,o);else for(;i!==null;){if(i.tag===3){bS(i,a,o);break}else if(i.tag===1){var s=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ra===null||!ra.has(s))){a=_n(o,a),o=x_(2),s=Zr(i,o,2),s!==null&&(__(o,s,i,a),Kl(s,2),Qn(s));break}}i=i.return}}function np(a,i,o){var s=a.pingCache;if(s===null){s=a.pingCache=new pP;var p=new Set;s.set(i,p)}else p=s.get(i),p===void 0&&(p=new Set,s.set(i,p));p.has(o)||(Vh=!0,p.add(o),a=bP.bind(null,a,i,o),i.then(a,a))}function bP(a,i,o){var s=a.pingCache;s!==null&&s.delete(i),a.pingedLanes|=a.suspendedLanes&o,a.warmLanes&=~o,Ze===a&&(Pe&o)===o&&(ft===4||ft===3&&(Pe&62914560)===Pe&&300>qt()-Ic?(Le&2)===0&&Ui(a,0):Fh|=o,Li===Pe&&(Li=0)),Qn(a)}function xS(a,i){i===0&&(i=px()),a=Ma(a,i),a!==null&&(Kl(a,i),Qn(a))}function xP(a){var i=a.memoizedState,o=0;i!==null&&(o=i.retryLane),xS(a,o)}function _P(a,i){var o=0;switch(a.tag){case 31:case 13:var s=a.stateNode,p=a.memoizedState;p!==null&&(o=p.retryLane);break;case 19:s=a.stateNode;break;case 22:s=a.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(i),xS(a,o)}function SP(a,i){return Ir(a,i)}var Vc=null,Gi=null,rp=!1,Fc=!1,ap=!1,la=0;function Qn(a){a!==Gi&&a.next===null&&(Gi===null?Vc=Gi=a:Gi=Gi.next=a),Fc=!0,rp||(rp=!0,AP())}function Eo(a,i){if(!ap&&Fc){ap=!0;do for(var o=!1,s=Vc;s!==null;){if(a!==0){var p=s.pendingLanes;if(p===0)var m=0;else{var O=s.suspendedLanes,R=s.pingedLanes;m=(1<<31-an(42|a)+1)-1,m&=p&~(O&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,AS(s,m))}else m=Pe,m=Ju(s,s===Ze?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||Xl(s,m)||(o=!0,AS(s,m));s=s.next}while(o);ap=!1}}function OP(){_S()}function _S(){Fc=rp=!1;var a=0;la!==0&&DP()&&(a=la);for(var i=qt(),o=null,s=Vc;s!==null;){var p=s.next,m=SS(s,i);m===0?(s.next=null,o===null?Vc=p:o.next=p,p===null&&(Gi=o)):(o=s,(a!==0||(m&3)!==0)&&(Fc=!0)),s=p}_t!==0&&_t!==5||Eo(a),la!==0&&(la=0)}function SS(a,i){for(var o=a.suspendedLanes,s=a.pingedLanes,p=a.expirationTimes,m=a.pendingLanes&-62914561;0R)break;var re=q.transferSize,le=q.initiatorType;re&&RS(le)&&(q=q.responseEnd,O+=re*(q"u"?null:document;function GS(a,i,o){var s=Yi;if(s&&typeof i=="string"&&i){var p=bn(i);p='link[rel="'+a+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),HS.has(p)||(HS.add(p),a={rel:a,crossOrigin:o,href:i},s.querySelector(p)===null&&(i=s.createElement("link"),kt(i,"link",a),jt(i),s.head.appendChild(i)))}}function HP(a){Or.D(a),GS("dns-prefetch",a,null)}function GP(a,i){Or.C(a,i),GS("preconnect",a,i)}function YP(a,i,o){Or.L(a,i,o);var s=Yi;if(s&&a&&i){var p='link[rel="preload"][as="'+bn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+bn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+bn(o.imageSizes)+'"]')):p+='[href="'+bn(a)+'"]';var m=p;switch(i){case"style":m=Xi(a);break;case"script":m=Ki(a)}Tn.has(m)||(a=v({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:a,as:i},o),Tn.set(m,a),s.querySelector(p)!==null||i==="style"&&s.querySelector(Ro(m))||i==="script"&&s.querySelector(Po(m))||(i=s.createElement("link"),kt(i,"link",a),jt(i),s.head.appendChild(i)))}}function XP(a,i){Or.m(a,i);var o=Yi;if(o&&a){var s=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+bn(s)+'"][href="'+bn(a)+'"]',m=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ki(a)}if(!Tn.has(m)&&(a=v({rel:"modulepreload",href:a},i),Tn.set(m,a),o.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Po(m)))return}s=o.createElement("link"),kt(s,"link",a),jt(s),o.head.appendChild(s)}}}function KP(a,i,o){Or.S(a,i,o);var s=Yi;if(s&&a){var p=pi(s).hoistableStyles,m=Xi(a);i=i||"default";var O=p.get(m);if(!O){var R={loading:0,preload:null};if(O=s.querySelector(Ro(m)))R.loading=5;else{a=v({rel:"stylesheet",href:a,"data-precedence":i},o),(o=Tn.get(m))&&xp(a,o);var q=O=s.createElement("link");jt(q),kt(q,"link",a),q._p=new Promise(function(Q,re){q.onload=Q,q.onerror=re}),q.addEventListener("load",function(){R.loading|=1}),q.addEventListener("error",function(){R.loading|=2}),R.loading|=4,es(O,i,s)}O={type:"stylesheet",instance:O,count:1,state:R},p.set(m,O)}}}function VP(a,i){Or.X(a,i);var o=Yi;if(o&&a){var s=pi(o).hoistableScripts,p=Ki(a),m=s.get(p);m||(m=o.querySelector(Po(p)),m||(a=v({src:a,async:!0},i),(i=Tn.get(p))&&_p(a,i),m=o.createElement("script"),jt(m),kt(m,"link",a),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function FP(a,i){Or.M(a,i);var o=Yi;if(o&&a){var s=pi(o).hoistableScripts,p=Ki(a),m=s.get(p);m||(m=o.querySelector(Po(p)),m||(a=v({src:a,async:!0,type:"module"},i),(i=Tn.get(p))&&_p(a,i),m=o.createElement("script"),jt(m),kt(m,"link",a),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function YS(a,i,o,s){var p=(p=me.current)?Jc(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Xi(o.href),o=pi(p).hoistableStyles,s=o.get(i),s||(s={type:"style",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){a=Xi(o.href);var m=pi(p).hoistableStyles,O=m.get(a);if(O||(p=p.ownerDocument||p,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(a,O),(m=p.querySelector(Ro(a)))&&!m._p&&(O.instance=m,O.state.loading=5),Tn.has(a)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Tn.set(a,o),m||WP(p,a,o,O.state))),i&&s===null)throw Error(r(528,""));return O}if(i&&s!==null)throw Error(r(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ki(o),o=pi(p).hoistableScripts,s=o.get(i),s||(s={type:"script",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Xi(a){return'href="'+bn(a)+'"'}function Ro(a){return'link[rel="stylesheet"]['+a+"]"}function XS(a){return v({},a,{"data-precedence":a.precedence,precedence:null})}function WP(a,i,o,s){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=a.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),kt(i,"link",o),jt(i),a.head.appendChild(i))}function Ki(a){return'[src="'+bn(a)+'"]'}function Po(a){return"script[async]"+a}function KS(a,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var s=a.querySelector('style[data-href~="'+bn(o.href)+'"]');if(s)return i.instance=s,jt(s),s;var p=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(a.ownerDocument||a).createElement("style"),jt(s),kt(s,"style",p),es(s,o.precedence,a),i.instance=s;case"stylesheet":p=Xi(o.href);var m=a.querySelector(Ro(p));if(m)return i.state.loading|=4,i.instance=m,jt(m),m;s=XS(o),(p=Tn.get(p))&&xp(s,p),m=(a.ownerDocument||a).createElement("link"),jt(m);var O=m;return O._p=new Promise(function(R,q){O.onload=R,O.onerror=q}),kt(m,"link",s),i.state.loading|=4,es(m,o.precedence,a),i.instance=m;case"script":return m=Ki(o.src),(p=a.querySelector(Po(m)))?(i.instance=p,jt(p),p):(s=o,(p=Tn.get(m))&&(s=v({},o),_p(s,p)),a=a.ownerDocument||a,p=a.createElement("script"),jt(p),kt(p,"link",s),a.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(s=i.instance,i.state.loading|=4,es(s,o.precedence,a));return i.instance}function es(a,i,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,m=p,O=0;O title"):null)}function ZP(a,i,o){if(o===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function WS(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function QP(a,i,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Xi(s.href),m=i.querySelector(Ro(p));if(m){i=m._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=ns.bind(a),i.then(a,a)),o.state.loading|=4,o.instance=m,jt(m);return}m=i.ownerDocument||i,s=XS(s),(p=Tn.get(p))&&xp(s,p),m=m.createElement("link"),jt(m);var O=m;O._p=new Promise(function(R,q){O.onload=R,O.onerror=q}),kt(m,"link",s),o.instance=m}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(a.count++,o=ns.bind(a),i.addEventListener("load",o),i.addEventListener("error",o))}}var Sp=0;function JP(a,i){return a.stylesheets&&a.count===0&&as(a,a.stylesheets),0Sp?50:800)+i);return a.unsuspend=o,function(){a.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)as(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var rs=null;function as(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,rs=new Map,i.forEach(eD,a),rs=null,ns.call(a))}function eD(a,i){if(!(i.state.loading&4)){var o=rs.get(a);if(o)var s=o.get(null);else{o=new Map,rs.set(a,o);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Np.exports=yD(),Np.exports}var gD=mD();const bD=({children:e})=>b.jsxs("div",{className:"dashboard",children:[b.jsxs("header",{className:"dashboard-header",children:[b.jsx("h1",{className:"dashboard-title",children:"Mosswart Overlord"}),b.jsxs("nav",{className:"dashboard-nav",children:[b.jsx("a",{href:"/",className:"nav-link",children:"Classic View"}),b.jsx("a",{href:"/inventory.html",className:"nav-link",children:"Inventory"}),b.jsx("a",{href:"/suitbuilder.html",className:"nav-link",children:"Suitbuilder"})]})]}),b.jsx("main",{className:"dashboard-main",children:e})]}),xD=({activeChars:e,totalKills:t,totalRares:n,serverHealth:r})=>{var c;const l=((c=r==null?void 0:r.status)==null?void 0:c.toLowerCase())??"unknown",u=l==="online"||l==="up";return b.jsxs("div",{className:"global-stats",children:[b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:"global-value",children:e}),b.jsx("span",{className:"global-label",children:"Active Characters"})]}),b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:"global-value",children:t.toLocaleString()}),b.jsx("span",{className:"global-label",children:"Total Kills"})]}),b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:"global-value",children:n}),b.jsx("span",{className:"global-label",children:"Total Rares"})]}),b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:`server-dot ${u?"online":"offline"}`}),b.jsxs("span",{className:"global-value",children:[(r==null?void 0:r.latency_ms)??"--","ms"]}),b.jsx("span",{className:"global-label",children:"Coldeve"})]})]})},Ts=I.memo(({label:e,current:t,max:n,color:r,bgColor:l})=>{const u=n>0?Math.min(100,Math.max(0,t/n*100)):0;return b.jsxs("div",{className:"vital-bar",children:[b.jsx("span",{className:"vital-label",children:e}),b.jsx("div",{className:"vital-track",style:{backgroundColor:l},children:b.jsx("div",{className:"vital-fill",style:{width:`${u}%`,background:r}})}),b.jsxs("span",{className:"vital-text",children:[t,"/",n]})]})});Ts.displayName="VitalBar";const _D=e=>{const t=(e||"idle").toLowerCase();return t==="combat"||t==="hunt"?{label:t==="combat"?"Combat":"Hunt",cls:"badge-combat"}:t==="nav"||t==="navigation"?{label:"Nav",cls:"badge-nav"}:t==="default"||t==="idle"||t===""?{label:"Idle",cls:"badge-idle"}:{label:e,cls:"badge-nav"}},xM=I.memo(({character:e})=>{var f,d,h,y,v,g;const[t,n]=B.useState(!1),{telemetry:r,vitals:l,combat:u}=e,c=_D((r==null?void 0:r.vt_state)??"");return b.jsxs("div",{className:"char-card",onClick:()=>n(!t),children:[b.jsxs("div",{className:"char-header",children:[b.jsx("span",{className:"char-name",children:e.name}),b.jsx("span",{className:`char-badge ${c.cls}`,children:c.label})]}),l?b.jsxs("div",{className:"char-vitals",children:[b.jsx(Ts,{label:"HP",current:l.health_current,max:l.health_max,color:"linear-gradient(90deg, #ff4444, #ff6666)",bgColor:"#330000"}),b.jsx(Ts,{label:"ST",current:l.stamina_current,max:l.stamina_max,color:"linear-gradient(90deg, #ffaa00, #ffcc44)",bgColor:"#331a00"}),b.jsx(Ts,{label:"MN",current:l.mana_current,max:l.mana_max,color:"linear-gradient(90deg, #4488ff, #66aaff)",bgColor:"#001433"})]}):b.jsx("div",{className:"char-vitals-placeholder",children:"Awaiting vitals..."}),b.jsxs("div",{className:"char-stats-row",children:[b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:(r==null?void 0:r.kills_per_hour)??"--"}),b.jsx("span",{className:"stat-label",children:"kills/hr"})]}),b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:((f=r==null?void 0:r.kills)==null?void 0:f.toLocaleString())??"--"}),b.jsx("span",{className:"stat-label",children:"kills"})]}),b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:(r==null?void 0:r.deaths)??"0"}),b.jsx("span",{className:"stat-label",children:"deaths"})]}),b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:((d=r==null?void 0:r.onlinetime)==null?void 0:d.replace(/^00\./,""))??"--"}),b.jsx("span",{className:"stat-label",children:"uptime"})]})]}),r&&b.jsxs("div",{className:"char-location",children:[(h=r.ns)==null?void 0:h.toFixed(1),"N, ",(y=r.ew)==null?void 0:y.toFixed(1),"E"]}),t&&b.jsxs("div",{className:"char-expanded",children:[l!=null&&l.vitae?b.jsxs("div",{className:"vitae-warn",children:["Vitae: ",l.vitae,"%"]}):null,b.jsxs("div",{className:"expanded-row",children:[b.jsxs("span",{children:["Prismatics: ",(r==null?void 0:r.prismatic_taper_count)??"--"]}),b.jsxs("span",{children:["Total Deaths: ",(r==null?void 0:r.total_deaths)??"--"]})]}),(u==null?void 0:u.session)&&b.jsxs("div",{className:"expanded-row",children:[b.jsxs("span",{children:["Session Dmg: ",(v=u.session.total_damage_given)==null?void 0:v.toLocaleString()]}),b.jsxs("span",{children:["Session Kills: ",u.session.total_kills]})]}),b.jsxs("div",{className:"expanded-row",children:[b.jsxs("span",{children:["RAM: ",r!=null&&r.mem_mb?(r.mem_mb/1048576).toFixed(0)+" MB":"--"]}),b.jsxs("span",{children:["CPU: ",((g=r==null?void 0:r.cpu_pct)==null?void 0:g.toFixed(1))??"--","%"]})]})]})]})});xM.displayName="CharacterCard";const SD=({characters:e})=>{const t=B.useMemo(()=>Array.from(e.values()).sort((n,r)=>n.name.localeCompare(r.name)),[e]);return t.length===0?b.jsx("div",{className:"grid-empty",children:"No active characters"}):b.jsx("div",{className:"char-grid",children:t.map(n=>b.jsx(xM,{character:n},n.name))})},OD=({tabs:e})=>{var r,l;const[t,n]=B.useState(((r=e[0])==null?void 0:r.id)??"");return b.jsxs("div",{className:"tab-container",children:[b.jsx("div",{className:"tab-bar",children:e.map(u=>b.jsx("button",{className:`tab-btn ${t===u.id?"active":""}`,onClick:()=>n(u.id),children:u.label},u.id))}),b.jsx("div",{className:"tab-content",children:(l=e.find(u=>u.id===t))==null?void 0:l.content})]})};function _M(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t-1}return fv=t,fv}var dv,ZO;function LD(){if(ZO)return dv;ZO=1;var e=Rf();function t(n,r){var l=this.__data__,u=e(l,n);return u<0?(++this.size,l.push([n,r])):l[u][1]=r,this}return dv=t,dv}var hv,QO;function Pf(){if(QO)return hv;QO=1;var e=$D(),t=zD(),n=qD(),r=BD(),l=LD();function u(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f>>=0,a===0?32:31-(K3(a)/V3|0)|0}var Wu=256,Zu=262144,Qu=4194304;function Aa(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ju(a,i,o){var s=a.pendingLanes;if(s===0)return 0;var p=0,m=a.suspendedLanes,O=a.pingedLanes;a=a.warmLanes;var R=s&134217727;return R!==0?(s=R&~m,s!==0?p=Aa(s):(O&=R,O!==0?p=Aa(O):o||(o=R&~a,o!==0&&(p=Aa(o))))):(R=s&~m,R!==0?p=Aa(R):O!==0?p=Aa(O):o||(o=s&~a,o!==0&&(p=Aa(o)))),p===0?0:i!==0&&i!==p&&(i&m)===0&&(m=p&-p,o=i&-i,m>=o||m===32&&(o&4194048)!==0)?i:p}function Xl(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function W3(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vx(){var a=Qu;return Qu<<=1,(Qu&62914560)===0&&(Qu=4194304),a}function md(a){for(var i=[],o=0;31>o;o++)i.push(a);return i}function Kl(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Z3(a,i,o,s,p,m){var O=a.pendingLanes;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=o,a.entangledLanes&=o,a.errorRecoveryDisabledLanes&=o,a.shellSuspendCounter=0;var R=a.entanglements,q=a.expirationTimes,Q=a.hiddenUpdates;for(o=O&~o;0"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var rR=/[\n"\\]/g;function bn(a){return a.replace(rR,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Od(a,i,o,s,p,m,O,R){a.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?a.type=O:a.removeAttribute("type"),i!=null?O==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+gn(i)):a.value!==""+gn(i)&&(a.value=""+gn(i)):O!=="submit"&&O!=="reset"||a.removeAttribute("value"),i!=null?Ad(a,O,gn(i)):o!=null?Ad(a,O,gn(o)):s!=null&&a.removeAttribute("value"),p==null&&m!=null&&(a.defaultChecked=!!m),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+gn(R):a.removeAttribute("name")}function Ex(a,i,o,s,p,m,O,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(a.type=m),i!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||i!=null)){Sd(a);return}o=o!=null?""+gn(o):"",i=i!=null?""+gn(i):o,R||i===a.value||(a.value=i),a.defaultValue=i}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,a.checked=R?a.checked:!!s,a.defaultChecked=!!s,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(a.name=O),Sd(a)}function Ad(a,i,o){i==="number"&&nc(a.ownerDocument)===a||a.defaultValue===""+o||(a.defaultValue=""+o)}function yi(a,i,o,s){if(a=a.options,i){i={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Md=!1;if(ur)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){Md=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{Md=!1}var Gr=null,Cd=null,ac=null;function kx(){if(ac)return ac;var a,i=Cd,o=i.length,s,p="value"in Gr?Gr.value:Gr.textContent,m=p.length;for(a=0;a=eo),Ix=" ",Ux=!1;function Hx(a,i){switch(a){case"keyup":return NR.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var xi=!1;function PR(a,i){switch(a){case"compositionend":return Gx(i);case"keypress":return i.which!==32?null:(Ux=!0,Ix);case"textInput":return a=i.data,a===Ix&&Ux?null:a;default:return null}}function DR(a,i){if(xi)return a==="compositionend"||!kd&&Hx(a,i)?(a=kx(),ac=Cd=Gr=null,xi=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:o,offset:i-a};a=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Qx(o)}}function e1(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?e1(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function t1(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=nc(a.document);i instanceof a.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)a=i.contentWindow;else break;i=nc(a.document)}return i}function qd(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var UR=ur&&"documentMode"in document&&11>=document.documentMode,_i=null,Bd=null,ao=null,Ld=!1;function n1(a,i,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ld||_i==null||_i!==nc(s)||(s=_i,"selectionStart"in s&&qd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ao&&ro(ao,s)||(ao=s,s=Zc(Bd,"onSelect"),0>=O,p-=O,Fn=1<<32-an(i)+p|o<Ee?(De=ve,ve=null):De=ve.sibling;var qe=J(V,ve,Z[Ee],ie);if(qe===null){ve===null&&(ve=De);break}a&&ve&&qe.alternate===null&&i(V,ve),H=m(qe,H,Ee),ze===null?ye=qe:ze.sibling=qe,ze=qe,ve=De}if(Ee===Z.length)return o(V,ve),ke&&sr(V,Ee),ye;if(ve===null){for(;EeEe?(De=ve,ve=null):De=ve.sibling;var da=J(V,ve,qe.value,ie);if(da===null){ve===null&&(ve=De);break}a&&ve&&da.alternate===null&&i(V,ve),H=m(da,H,Ee),ze===null?ye=da:ze.sibling=da,ze=da,ve=De}if(qe.done)return o(V,ve),ke&&sr(V,Ee),ye;if(ve===null){for(;!qe.done;Ee++,qe=Z.next())qe=le(V,qe.value,ie),qe!==null&&(H=m(qe,H,Ee),ze===null?ye=qe:ze.sibling=qe,ze=qe);return ke&&sr(V,Ee),ye}for(ve=s(ve);!qe.done;Ee++,qe=Z.next())qe=ee(ve,V,Ee,qe.value,ie),qe!==null&&(a&&qe.alternate!==null&&ve.delete(qe.key===null?Ee:qe.key),H=m(qe,H,Ee),ze===null?ye=qe:ze.sibling=qe,ze=qe);return a&&ve.forEach(function(uD){return i(V,uD)}),ke&&sr(V,Ee),ye}function Fe(V,H,Z,ie){if(typeof Z=="object"&&Z!==null&&Z.type===S&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:e:{for(var ye=Z.key;H!==null;){if(H.key===ye){if(ye=Z.type,ye===S){if(H.tag===7){o(V,H.sibling),ie=p(H,Z.props.children),ie.return=V,V=ie;break e}}else if(H.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===D&&ka(ye)===H.type){o(V,H.sibling),ie=p(H,Z.props),so(ie,Z),ie.return=V,V=ie;break e}o(V,H);break}else i(V,H);H=H.sibling}Z.type===S?(ie=Ca(Z.props.children,V.mode,ie,Z.key),ie.return=V,V=ie):(ie=pc(Z.type,Z.key,Z.props,null,V.mode,ie),so(ie,Z),ie.return=V,V=ie)}return O(V);case j:e:{for(ye=Z.key;H!==null;){if(H.key===ye)if(H.tag===4&&H.stateNode.containerInfo===Z.containerInfo&&H.stateNode.implementation===Z.implementation){o(V,H.sibling),ie=p(H,Z.children||[]),ie.return=V,V=ie;break e}else{o(V,H);break}else i(V,H);H=H.sibling}ie=Kd(Z,V.mode,ie),ie.return=V,V=ie}return O(V);case D:return Z=ka(Z),Fe(V,H,Z,ie)}if(K(Z))return pe(V,H,Z,ie);if(U(Z)){if(ye=U(Z),typeof ye!="function")throw Error(r(150));return Z=ye.call(Z),ge(V,H,Z,ie)}if(typeof Z.then=="function")return Fe(V,H,_c(Z),ie);if(Z.$$typeof===M)return Fe(V,H,mc(V,Z),ie);Sc(V,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,H!==null&&H.tag===6?(o(V,H.sibling),ie=p(H,Z),ie.return=V,V=ie):(o(V,H),ie=Xd(Z,V.mode,ie),ie.return=V,V=ie),O(V)):o(V,H)}return function(V,H,Z,ie){try{co=0;var ye=Fe(V,H,Z,ie);return Ri=null,ye}catch(ve){if(ve===Ni||ve===bc)throw ve;var ze=on(29,ve,null,V.mode);return ze.lanes=ie,ze.return=V,ze}finally{}}}var za=w1(!0),j1=w1(!1),Fr=!1;function ih(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lh(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Wr(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Zr(a,i,o){var s=a.updateQueue;if(s===null)return null;if(s=s.shared,(Le&2)!==0){var p=s.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),s.pending=i,i=hc(a),c1(a,null,o),i}return dc(a,s,i,o),hc(a)}function fo(a,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var s=i.lanes;s&=a.pendingLanes,o|=s,i.lanes=o,mx(a,o)}}function oh(a,i){var o=a.updateQueue,s=a.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var p=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var O={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?p=m=O:m=m.next=O,o=o.next}while(o!==null);m===null?p=m=i:m=m.next=i}else p=m=i;o={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},a.updateQueue=o;return}a=o.lastBaseUpdate,a===null?o.firstBaseUpdate=i:a.next=i,o.lastBaseUpdate=i}var uh=!1;function ho(){if(uh){var a=Ci;if(a!==null)throw a}}function po(a,i,o,s){uh=!1;var p=a.updateQueue;Fr=!1;var m=p.firstBaseUpdate,O=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var q=R,Q=q.next;q.next=null,O===null?m=Q:O.next=Q,O=q;var re=a.alternate;re!==null&&(re=re.updateQueue,R=re.lastBaseUpdate,R!==O&&(R===null?re.firstBaseUpdate=Q:R.next=Q,re.lastBaseUpdate=q))}if(m!==null){var le=p.baseState;O=0,re=Q=q=null,R=m;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(Pe&J)===J:(s&J)===J){J!==0&&J===Mi&&(uh=!0),re!==null&&(re=re.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=a,ge=R;J=i;var Fe=o;switch(ge.tag){case 1:if(pe=ge.payload,typeof pe=="function"){le=pe.call(Fe,le,J);break e}le=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ge.payload,J=typeof pe=="function"?pe.call(Fe,le,J):pe,J==null)break e;le=v({},le,J);break e;case 2:Fr=!0}}J=R.callback,J!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=p.callbacks,ee===null?p.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},re===null?(Q=re=ee,q=le):re=re.next=ee,O|=J;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,p.lastBaseUpdate=ee,p.shared.pending=null}}while(!0);re===null&&(q=le),p.baseState=q,p.firstBaseUpdate=Q,p.lastBaseUpdate=re,m===null&&(p.shared.lanes=0),na|=O,a.lanes=O,a.memoizedState=le}}function T1(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function E1(a,i){var o=a.callbacks;if(o!==null)for(a.callbacks=null,a=0;am?m:8;var O=P.T,R={};P.T=R,Th(a,!1,i,o);try{var q=p(),Q=P.S;if(Q!==null&&Q(R,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var re=ZR(q,s);mo(a,i,re,dn(a))}else mo(a,i,s,dn(a))}catch(le){mo(a,i,{then:function(){},status:"rejected",reason:le},dn())}finally{z.p=m,O!==null&&R.types!==null&&(O.types=R.types),P.T=O}}function rP(){}function wh(a,i,o,s){if(a.tag!==5)throw Error(r(476));var p=l_(a).queue;i_(a,p,i,F,o===null?rP:function(){return o_(a),o(s)})}function l_(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:F},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:o},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function o_(a){var i=l_(a);i.next===null&&(i=a.alternate.memoizedState),mo(a,i.next.queue,{},dn())}function jh(){return Pt(Do)}function u_(){return pt().memoizedState}function c_(){return pt().memoizedState}function aP(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var o=dn();a=Wr(o);var s=Zr(i,a,o);s!==null&&(en(s,i,o),fo(s,i,o)),i={cache:th()},a.payload=i;return}i=i.return}}function iP(a,i,o){var s=dn();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Rc(a)?f_(i,o):(o=Gd(a,i,o,s),o!==null&&(en(o,a,s),d_(o,i,s)))}function s_(a,i,o){var s=dn();mo(a,i,o,s)}function mo(a,i,o,s){var p={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rc(a))f_(i,p);else{var m=a.alternate;if(a.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var O=i.lastRenderedState,R=m(O,o);if(p.hasEagerState=!0,p.eagerState=R,ln(R,O))return dc(a,i,p,0),Ze===null&&fc(),!1}catch{}finally{}if(o=Gd(a,i,p,s),o!==null)return en(o,a,s),d_(o,i,s),!0}return!1}function Th(a,i,o,s){if(s={lane:2,revertLane:ip(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Rc(a)){if(i)throw Error(r(479))}else i=Gd(a,o,s,2),i!==null&&en(i,a,2)}function Rc(a){var i=a.alternate;return a===je||i!==null&&i===je}function f_(a,i){Di=wc=!0;var o=a.pending;o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i}function d_(a,i,o){if((o&4194048)!==0){var s=i.lanes;s&=a.pendingLanes,o|=s,i.lanes=o,mx(a,o)}}var go={readContext:Pt,use:Ec,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};go.useEffectEvent=st;var h_={readContext:Pt,use:Ec,useCallback:function(a,i){return Gt().memoizedState=[a,i===void 0?null:i],a},useContext:Pt,useEffect:W1,useImperativeHandle:function(a,i,o){o=o!=null?o.concat([a]):null,Cc(4194308,4,e_.bind(null,i,a),o)},useLayoutEffect:function(a,i){return Cc(4194308,4,a,i)},useInsertionEffect:function(a,i){Cc(4,2,a,i)},useMemo:function(a,i){var o=Gt();i=i===void 0?null:i;var s=a();if(qa){Ur(!0);try{a()}finally{Ur(!1)}}return o.memoizedState=[s,i],s},useReducer:function(a,i,o){var s=Gt();if(o!==void 0){var p=o(i);if(qa){Ur(!0);try{o(i)}finally{Ur(!1)}}}else p=i;return s.memoizedState=s.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},s.queue=a,a=a.dispatch=iP.bind(null,je,a),[s.memoizedState,a]},useRef:function(a){var i=Gt();return a={current:a},i.memoizedState=a},useState:function(a){a=xh(a);var i=a.queue,o=s_.bind(null,je,i);return i.dispatch=o,[a.memoizedState,o]},useDebugValue:Oh,useDeferredValue:function(a,i){var o=Gt();return Ah(o,a,i)},useTransition:function(){var a=xh(!1);return a=i_.bind(null,je,a.queue,!0,!1),Gt().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,o){var s=je,p=Gt();if(ke){if(o===void 0)throw Error(r(407));o=o()}else{if(o=i(),Ze===null)throw Error(r(349));(Pe&127)!==0||D1(s,i,o)}p.memoizedState=o;var m={value:o,getSnapshot:i};return p.queue=m,W1($1.bind(null,s,m,a),[a]),s.flags|=2048,$i(9,{destroy:void 0},k1.bind(null,s,m,o,i),null),o},useId:function(){var a=Gt(),i=Ze.identifierPrefix;if(ke){var o=Wn,s=Fn;o=(s&~(1<<32-an(s)-1)).toString(32)+o,i="_"+i+"R_"+o,o=jc++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?O.createElement("select",{is:s.is}):O.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?O.createElement(p,{is:s.is}):O.createElement(p)}}m[Nt]=i,m[Vt]=s;e:for(O=i.child;O!==null;){if(O.tag===5||O.tag===6)m.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===i)break e;for(;O.sibling===null;){if(O.return===null||O.return===i)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}i.stateNode=m;e:switch(kt(m,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&yr(i)}}return at(i),Ih(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,o),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==s&&yr(i);else{if(typeof s!="string"&&i.stateNode===null)throw Error(r(166));if(a=me.current,Ti(i)){if(a=i.stateNode,o=i.memoizedProps,s=null,p=Rt,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}a[Nt]=i,a=!!(a.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||RS(a.nodeValue,o)),a||Kr(i,!0)}else a=Qc(a).createTextNode(s),a[Nt]=i,i.stateNode=a}return at(i),null;case 31:if(o=i.memoizedState,a===null||a.memoizedState!==null){if(s=Ti(i),o!==null){if(a===null){if(!s)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Nt]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;at(i),a=!1}else o=Zd(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=o),a=!0;if(!a)return i.flags&256?(cn(i),i):(cn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return at(i),null;case 13:if(s=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=Ti(i),s!==null&&s.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[Nt]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;at(i),p=!1}else p=Zd(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(cn(i),i):(cn(i),null)}return cn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=s!==null,a=a!==null&&a.memoizedState!==null,o&&(s=i.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==p&&(s.flags|=2048)),o!==a&&o&&(i.child.flags|=8192),zc(i,i.updateQueue),at(i),null);case 4:return se(),a===null&&cp(i.stateNode.containerInfo),at(i),null;case 10:return dr(i.type),at(i),null;case 19:if(G(ht),s=i.memoizedState,s===null)return at(i),null;if(p=(i.flags&128)!==0,m=s.rendering,m===null)if(p)xo(s,!1);else{if(ft!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(m=Ac(a),m!==null){for(i.flags|=128,xo(s,!1),a=m.updateQueue,i.updateQueue=a,zc(i,a),i.subtreeFlags=0,a=o,o=i.child;o!==null;)s1(o,a),o=o.sibling;return te(ht,ht.current&1|2),ke&&sr(i,s.treeForkCount),i.child}a=a.sibling}s.tail!==null&&qt()>Uc&&(i.flags|=128,p=!0,xo(s,!1),i.lanes=4194304)}else{if(!p)if(a=Ac(m),a!==null){if(i.flags|=128,p=!0,a=a.updateQueue,i.updateQueue=a,zc(i,a),xo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!ke)return at(i),null}else 2*qt()-s.renderingStartTime>Uc&&o!==536870912&&(i.flags|=128,p=!0,xo(s,!1),i.lanes=4194304);s.isBackwards?(m.sibling=i.child,i.child=m):(a=s.last,a!==null?a.sibling=m:i.child=m,s.last=m)}return s.tail!==null?(a=s.tail,s.rendering=a,s.tail=a.sibling,s.renderingStartTime=qt(),a.sibling=null,o=ht.current,te(ht,p?o&1|2:o&1),ke&&sr(i,s.treeForkCount),a):(at(i),null);case 22:case 23:return cn(i),sh(),s=i.memoizedState!==null,a!==null?a.memoizedState!==null!==s&&(i.flags|=8192):s&&(i.flags|=8192),s?(o&536870912)!==0&&(i.flags&128)===0&&(at(i),i.subtreeFlags&6&&(i.flags|=8192)):at(i),o=i.updateQueue,o!==null&&zc(i,o.retryQueue),o=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048),a!==null&&G(Da),null;case 24:return o=null,a!==null&&(o=a.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),dr(vt),at(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function sP(a,i){switch(Fd(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return dr(vt),se(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return Ae(i),null;case 31:if(i.memoizedState!==null){if(cn(i),i.alternate===null)throw Error(r(340));Na()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(cn(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Na()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return G(ht),null;case 4:return se(),null;case 10:return dr(i.type),null;case 22:case 23:return cn(i),sh(),a!==null&&G(Da),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return dr(vt),null;case 25:return null;default:return null}}function z_(a,i){switch(Fd(i),i.tag){case 3:dr(vt),se();break;case 26:case 27:case 5:Ae(i);break;case 4:se();break;case 31:i.memoizedState!==null&&cn(i);break;case 13:cn(i);break;case 19:G(ht);break;case 10:dr(i.type);break;case 22:case 23:cn(i),sh(),a!==null&&G(Da);break;case 24:dr(vt)}}function _o(a,i){try{var o=i.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&a)===a){s=void 0;var m=o.create,O=o.inst;s=m(),O.destroy=s}o=o.next}while(o!==p)}}catch(R){Ge(i,i.return,R)}}function ea(a,i,o){try{var s=i.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var m=p.next;s=m;do{if((s.tag&a)===a){var O=s.inst,R=O.destroy;if(R!==void 0){O.destroy=void 0,p=i;var q=o,Q=R;try{Q()}catch(re){Ge(p,q,re)}}}s=s.next}while(s!==m)}}catch(re){Ge(i,i.return,re)}}function q_(a){var i=a.updateQueue;if(i!==null){var o=a.stateNode;try{E1(i,o)}catch(s){Ge(a,a.return,s)}}}function B_(a,i,o){o.props=Ba(a.type,a.memoizedProps),o.state=a.memoizedState;try{o.componentWillUnmount()}catch(s){Ge(a,i,s)}}function So(a,i){try{var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var s=a.stateNode;break;case 30:s=a.stateNode;break;default:s=a.stateNode}typeof o=="function"?a.refCleanup=o(s):o.current=s}}catch(p){Ge(a,i,p)}}function Zn(a,i){var o=a.ref,s=a.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(p){Ge(a,i,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Ge(a,i,p)}else o.current=null}function L_(a){var i=a.type,o=a.memoizedProps,s=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(p){Ge(a,a.return,p)}}function Uh(a,i,o){try{var s=a.stateNode;RP(s,a.type,o,i),s[Vt]=i}catch(p){Ge(a,a.return,p)}}function I_(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&oa(a.type)||a.tag===4}function Hh(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||I_(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&oa(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Gh(a,i,o){var s=a.tag;if(s===5||s===6)a=a.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(a,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(a),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=or));else if(s!==4&&(s===27&&oa(a.type)&&(o=a.stateNode,i=null),a=a.child,a!==null))for(Gh(a,i,o),a=a.sibling;a!==null;)Gh(a,i,o),a=a.sibling}function qc(a,i,o){var s=a.tag;if(s===5||s===6)a=a.stateNode,i?o.insertBefore(a,i):o.appendChild(a);else if(s!==4&&(s===27&&oa(a.type)&&(o=a.stateNode),a=a.child,a!==null))for(qc(a,i,o),a=a.sibling;a!==null;)qc(a,i,o),a=a.sibling}function U_(a){var i=a.stateNode,o=a.memoizedProps;try{for(var s=a.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);kt(i,s,o),i[Nt]=a,i[Vt]=o}catch(m){Ge(a,a.return,m)}}var mr=!1,gt=!1,Yh=!1,H_=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function fP(a,i){if(a=a.containerInfo,dp=is,a=t1(a),qd(a)){if("selectionStart"in a)var o={start:a.selectionStart,end:a.selectionEnd};else e:{o=(o=a.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var p=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var O=0,R=-1,q=-1,Q=0,re=0,le=a,J=null;t:for(;;){for(var ee;le!==o||p!==0&&le.nodeType!==3||(R=O+p),le!==m||s!==0&&le.nodeType!==3||(q=O+s),le.nodeType===3&&(O+=le.nodeValue.length),(ee=le.firstChild)!==null;)J=le,le=ee;for(;;){if(le===a)break t;if(J===o&&++Q===p&&(R=O),J===m&&++re===s&&(q=O),(ee=le.nextSibling)!==null)break;le=J,J=le.parentNode}le=ee}o=R===-1||q===-1?null:{start:R,end:q}}else o=null}o=o||{start:0,end:0}}else o=null;for(hp={focusedElem:a,selectionRange:o},is=!1,Tt=i;Tt!==null;)if(i=Tt,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Tt=a;else for(;Tt!==null;){switch(i=Tt,m=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(o=0;o title"))),kt(m,s,o),m[Nt]=a,jt(m),s=m;break e;case"link":var O=FS("link","href",p).get(s+(o.href||""));if(O){for(var R=0;RFe&&(O=Fe,Fe=ge,ge=O);var V=Jx(R,ge),H=Jx(R,Fe);if(V&&H&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==H.node||ee.focusOffset!==H.offset)){var Z=le.createRange();Z.setStart(V.node,V.offset),ee.removeAllRanges(),ge>Fe?(ee.addRange(Z),ee.extend(H.node,H.offset)):(Z.setEnd(H.node,H.offset),ee.addRange(Z))}}}}for(le=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&le.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Ro?32:o,P.T=null,o=Qh,Qh=null;var m=aa,O=Sr;if(_t=0,Ii=aa=null,Sr=0,(Le&6)!==0)throw Error(r(331));var R=Le;if(Le|=4,eS(m.current),Z_(m,m.current,O,o),Le=R,Eo(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(Yl,m)}catch{}return!0}finally{z.p=p,P.T=s,gS(a,i)}}function xS(a,i,o){i=_n(o,i),i=Nh(a.stateNode,i,2),a=Zr(a,i,2),a!==null&&(Kl(a,2),Qn(a))}function Ge(a,i,o){if(a.tag===3)xS(a,a,o);else for(;i!==null;){if(i.tag===3){xS(i,a,o);break}else if(i.tag===1){var s=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ra===null||!ra.has(s))){a=_n(o,a),o=__(2),s=Zr(i,o,2),s!==null&&(S_(o,s,i,a),Kl(s,2),Qn(s));break}}i=i.return}}function np(a,i,o){var s=a.pingCache;if(s===null){s=a.pingCache=new pP;var p=new Set;s.set(i,p)}else p=s.get(i),p===void 0&&(p=new Set,s.set(i,p));p.has(o)||(Vh=!0,p.add(o),a=bP.bind(null,a,i,o),i.then(a,a))}function bP(a,i,o){var s=a.pingCache;s!==null&&s.delete(i),a.pingedLanes|=a.suspendedLanes&o,a.warmLanes&=~o,Ze===a&&(Pe&o)===o&&(ft===4||ft===3&&(Pe&62914560)===Pe&&300>qt()-Ic?(Le&2)===0&&Ui(a,0):Fh|=o,Li===Pe&&(Li=0)),Qn(a)}function _S(a,i){i===0&&(i=vx()),a=Ma(a,i),a!==null&&(Kl(a,i),Qn(a))}function xP(a){var i=a.memoizedState,o=0;i!==null&&(o=i.retryLane),_S(a,o)}function _P(a,i){var o=0;switch(a.tag){case 31:case 13:var s=a.stateNode,p=a.memoizedState;p!==null&&(o=p.retryLane);break;case 19:s=a.stateNode;break;case 22:s=a.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(i),_S(a,o)}function SP(a,i){return Ir(a,i)}var Vc=null,Gi=null,rp=!1,Fc=!1,ap=!1,la=0;function Qn(a){a!==Gi&&a.next===null&&(Gi===null?Vc=Gi=a:Gi=Gi.next=a),Fc=!0,rp||(rp=!0,AP())}function Eo(a,i){if(!ap&&Fc){ap=!0;do for(var o=!1,s=Vc;s!==null;){if(a!==0){var p=s.pendingLanes;if(p===0)var m=0;else{var O=s.suspendedLanes,R=s.pingedLanes;m=(1<<31-an(42|a)+1)-1,m&=p&~(O&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,wS(s,m))}else m=Pe,m=Ju(s,s===Ze?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||Xl(s,m)||(o=!0,wS(s,m));s=s.next}while(o);ap=!1}}function OP(){SS()}function SS(){Fc=rp=!1;var a=0;la!==0&&DP()&&(a=la);for(var i=qt(),o=null,s=Vc;s!==null;){var p=s.next,m=OS(s,i);m===0?(s.next=null,o===null?Vc=p:o.next=p,p===null&&(Gi=o)):(o=s,(a!==0||(m&3)!==0)&&(Fc=!0)),s=p}_t!==0&&_t!==5||Eo(a),la!==0&&(la=0)}function OS(a,i){for(var o=a.suspendedLanes,s=a.pingedLanes,p=a.expirationTimes,m=a.pendingLanes&-62914561;0R)break;var re=q.transferSize,le=q.initiatorType;re&&PS(le)&&(q=q.responseEnd,O+=re*(q"u"?null:document;function YS(a,i,o){var s=Yi;if(s&&typeof i=="string"&&i){var p=bn(i);p='link[rel="'+a+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),GS.has(p)||(GS.add(p),a={rel:a,crossOrigin:o,href:i},s.querySelector(p)===null&&(i=s.createElement("link"),kt(i,"link",a),jt(i),s.head.appendChild(i)))}}function HP(a){Or.D(a),YS("dns-prefetch",a,null)}function GP(a,i){Or.C(a,i),YS("preconnect",a,i)}function YP(a,i,o){Or.L(a,i,o);var s=Yi;if(s&&a&&i){var p='link[rel="preload"][as="'+bn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+bn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+bn(o.imageSizes)+'"]')):p+='[href="'+bn(a)+'"]';var m=p;switch(i){case"style":m=Xi(a);break;case"script":m=Ki(a)}Tn.has(m)||(a=v({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:a,as:i},o),Tn.set(m,a),s.querySelector(p)!==null||i==="style"&&s.querySelector(Ro(m))||i==="script"&&s.querySelector(Po(m))||(i=s.createElement("link"),kt(i,"link",a),jt(i),s.head.appendChild(i)))}}function XP(a,i){Or.m(a,i);var o=Yi;if(o&&a){var s=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+bn(s)+'"][href="'+bn(a)+'"]',m=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ki(a)}if(!Tn.has(m)&&(a=v({rel:"modulepreload",href:a},i),Tn.set(m,a),o.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Po(m)))return}s=o.createElement("link"),kt(s,"link",a),jt(s),o.head.appendChild(s)}}}function KP(a,i,o){Or.S(a,i,o);var s=Yi;if(s&&a){var p=pi(s).hoistableStyles,m=Xi(a);i=i||"default";var O=p.get(m);if(!O){var R={loading:0,preload:null};if(O=s.querySelector(Ro(m)))R.loading=5;else{a=v({rel:"stylesheet",href:a,"data-precedence":i},o),(o=Tn.get(m))&&xp(a,o);var q=O=s.createElement("link");jt(q),kt(q,"link",a),q._p=new Promise(function(Q,re){q.onload=Q,q.onerror=re}),q.addEventListener("load",function(){R.loading|=1}),q.addEventListener("error",function(){R.loading|=2}),R.loading|=4,es(O,i,s)}O={type:"stylesheet",instance:O,count:1,state:R},p.set(m,O)}}}function VP(a,i){Or.X(a,i);var o=Yi;if(o&&a){var s=pi(o).hoistableScripts,p=Ki(a),m=s.get(p);m||(m=o.querySelector(Po(p)),m||(a=v({src:a,async:!0},i),(i=Tn.get(p))&&_p(a,i),m=o.createElement("script"),jt(m),kt(m,"link",a),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function FP(a,i){Or.M(a,i);var o=Yi;if(o&&a){var s=pi(o).hoistableScripts,p=Ki(a),m=s.get(p);m||(m=o.querySelector(Po(p)),m||(a=v({src:a,async:!0,type:"module"},i),(i=Tn.get(p))&&_p(a,i),m=o.createElement("script"),jt(m),kt(m,"link",a),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function XS(a,i,o,s){var p=(p=me.current)?Jc(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Xi(o.href),o=pi(p).hoistableStyles,s=o.get(i),s||(s={type:"style",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){a=Xi(o.href);var m=pi(p).hoistableStyles,O=m.get(a);if(O||(p=p.ownerDocument||p,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(a,O),(m=p.querySelector(Ro(a)))&&!m._p&&(O.instance=m,O.state.loading=5),Tn.has(a)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Tn.set(a,o),m||WP(p,a,o,O.state))),i&&s===null)throw Error(r(528,""));return O}if(i&&s!==null)throw Error(r(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ki(o),o=pi(p).hoistableScripts,s=o.get(i),s||(s={type:"script",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Xi(a){return'href="'+bn(a)+'"'}function Ro(a){return'link[rel="stylesheet"]['+a+"]"}function KS(a){return v({},a,{"data-precedence":a.precedence,precedence:null})}function WP(a,i,o,s){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=a.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),kt(i,"link",o),jt(i),a.head.appendChild(i))}function Ki(a){return'[src="'+bn(a)+'"]'}function Po(a){return"script[async]"+a}function VS(a,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var s=a.querySelector('style[data-href~="'+bn(o.href)+'"]');if(s)return i.instance=s,jt(s),s;var p=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(a.ownerDocument||a).createElement("style"),jt(s),kt(s,"style",p),es(s,o.precedence,a),i.instance=s;case"stylesheet":p=Xi(o.href);var m=a.querySelector(Ro(p));if(m)return i.state.loading|=4,i.instance=m,jt(m),m;s=KS(o),(p=Tn.get(p))&&xp(s,p),m=(a.ownerDocument||a).createElement("link"),jt(m);var O=m;return O._p=new Promise(function(R,q){O.onload=R,O.onerror=q}),kt(m,"link",s),i.state.loading|=4,es(m,o.precedence,a),i.instance=m;case"script":return m=Ki(o.src),(p=a.querySelector(Po(m)))?(i.instance=p,jt(p),p):(s=o,(p=Tn.get(m))&&(s=v({},o),_p(s,p)),a=a.ownerDocument||a,p=a.createElement("script"),jt(p),kt(p,"link",s),a.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(s=i.instance,i.state.loading|=4,es(s,o.precedence,a));return i.instance}function es(a,i,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,m=p,O=0;O title"):null)}function ZP(a,i,o){if(o===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function ZS(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function QP(a,i,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Xi(s.href),m=i.querySelector(Ro(p));if(m){i=m._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=ns.bind(a),i.then(a,a)),o.state.loading|=4,o.instance=m,jt(m);return}m=i.ownerDocument||i,s=KS(s),(p=Tn.get(p))&&xp(s,p),m=m.createElement("link"),jt(m);var O=m;O._p=new Promise(function(R,q){O.onload=R,O.onerror=q}),kt(m,"link",s),o.instance=m}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(a.count++,o=ns.bind(a),i.addEventListener("load",o),i.addEventListener("error",o))}}var Sp=0;function JP(a,i){return a.stylesheets&&a.count===0&&as(a,a.stylesheets),0Sp?50:800)+i);return a.unsuspend=o,function(){a.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)as(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var rs=null;function as(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,rs=new Map,i.forEach(eD,a),rs=null,ns.call(a))}function eD(a,i){if(!(i.state.loading&4)){var o=rs.get(a);if(o)var s=o.get(null);else{o=new Map,rs.set(a,o);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Np.exports=yD(),Np.exports}var gD=mD();const bD=({children:e})=>b.jsxs("div",{className:"dashboard",children:[b.jsxs("header",{className:"dashboard-header",children:[b.jsx("h1",{className:"dashboard-title",children:"Mosswart Overlord"}),b.jsxs("nav",{className:"dashboard-nav",children:[b.jsx("a",{href:"/",className:"nav-link",children:"Classic View"}),b.jsx("a",{href:"/inventory.html",className:"nav-link",children:"Inventory"}),b.jsx("a",{href:"/suitbuilder.html",className:"nav-link",children:"Suitbuilder"})]})]}),b.jsx("main",{className:"dashboard-main",children:e})]}),xD=({activeChars:e,totalKills:t,totalRares:n,serverHealth:r})=>{var c;const l=((c=r==null?void 0:r.status)==null?void 0:c.toLowerCase())??"unknown",u=l==="online"||l==="up";return b.jsxs("div",{className:"global-stats",children:[b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:"global-value",children:e}),b.jsx("span",{className:"global-label",children:"Active Characters"})]}),b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:"global-value",children:t.toLocaleString()}),b.jsx("span",{className:"global-label",children:"Total Kills"})]}),b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:"global-value",children:n}),b.jsx("span",{className:"global-label",children:"Total Rares"})]}),b.jsxs("div",{className:"global-stat",children:[b.jsx("span",{className:`server-dot ${u?"online":"offline"}`}),b.jsxs("span",{className:"global-value",children:[(r==null?void 0:r.latency_ms)??"--","ms"]}),b.jsx("span",{className:"global-label",children:"Coldeve"})]})]})},Ts=I.memo(({label:e,current:t,max:n,color:r,bgColor:l})=>{const u=n>0?Math.min(100,Math.max(0,t/n*100)):0;return b.jsxs("div",{className:"vital-bar",children:[b.jsx("span",{className:"vital-label",children:e}),b.jsx("div",{className:"vital-track",style:{backgroundColor:l},children:b.jsx("div",{className:"vital-fill",style:{width:`${u}%`,background:r}})}),b.jsxs("span",{className:"vital-text",children:[t,"/",n]})]})});Ts.displayName="VitalBar";const _D=e=>{const t=(e||"idle").toLowerCase();return t==="combat"||t==="hunt"?{label:t==="combat"?"Combat":"Hunt",cls:"badge-combat"}:t==="nav"||t==="navigation"?{label:"Nav",cls:"badge-nav"}:t==="default"||t==="idle"||t===""?{label:"Idle",cls:"badge-idle"}:{label:e,cls:"badge-nav"}},xM=I.memo(({character:e})=>{var f,d,h,y,v,g;const[t,n]=B.useState(!1),{telemetry:r,vitals:l,combat:u}=e,c=_D((r==null?void 0:r.vt_state)??"");return b.jsxs("div",{className:"char-card",onClick:()=>n(!t),children:[b.jsxs("div",{className:"char-header",children:[b.jsx("span",{className:"char-name",children:e.name}),b.jsx("span",{className:`char-badge ${c.cls}`,children:c.label})]}),l?b.jsxs("div",{className:"char-vitals",children:[b.jsx(Ts,{label:"HP",current:l.health_current,max:l.health_max,color:"linear-gradient(90deg, #ff4444, #ff6666)",bgColor:"#330000"}),b.jsx(Ts,{label:"ST",current:l.stamina_current,max:l.stamina_max,color:"linear-gradient(90deg, #ffaa00, #ffcc44)",bgColor:"#331a00"}),b.jsx(Ts,{label:"MN",current:l.mana_current,max:l.mana_max,color:"linear-gradient(90deg, #4488ff, #66aaff)",bgColor:"#001433"})]}):b.jsx("div",{className:"char-vitals-placeholder",children:"Awaiting vitals..."}),b.jsxs("div",{className:"char-stats-row",children:[b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:(r==null?void 0:r.kills_per_hour)??"--"}),b.jsx("span",{className:"stat-label",children:"kills/hr"})]}),b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:((f=r==null?void 0:r.kills)==null?void 0:f.toLocaleString())??"--"}),b.jsx("span",{className:"stat-label",children:"kills"})]}),b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:(r==null?void 0:r.deaths)??"0"}),b.jsx("span",{className:"stat-label",children:"deaths"})]}),b.jsxs("div",{className:"stat",children:[b.jsx("span",{className:"stat-value",children:((d=r==null?void 0:r.onlinetime)==null?void 0:d.replace(/^00\./,""))??"--"}),b.jsx("span",{className:"stat-label",children:"uptime"})]})]}),r&&b.jsxs("div",{className:"char-location",children:[(h=r.ns)==null?void 0:h.toFixed(1),"N, ",(y=r.ew)==null?void 0:y.toFixed(1),"E"]}),t&&b.jsxs("div",{className:"char-expanded",children:[l!=null&&l.vitae?b.jsxs("div",{className:"vitae-warn",children:["Vitae: ",l.vitae,"%"]}):null,b.jsxs("div",{className:"expanded-row",children:[b.jsxs("span",{children:["Prismatics: ",(r==null?void 0:r.prismatic_taper_count)??"--"]}),b.jsxs("span",{children:["Total Deaths: ",(r==null?void 0:r.total_deaths)??"--"]})]}),(u==null?void 0:u.session)&&b.jsxs("div",{className:"expanded-row",children:[b.jsxs("span",{children:["Session Dmg: ",(v=u.session.total_damage_given)==null?void 0:v.toLocaleString()]}),b.jsxs("span",{children:["Session Kills: ",u.session.total_kills]})]}),b.jsxs("div",{className:"expanded-row",children:[b.jsxs("span",{children:["RAM: ",r!=null&&r.mem_mb?(r.mem_mb/1048576).toFixed(0)+" MB":"--"]}),b.jsxs("span",{children:["CPU: ",((g=r==null?void 0:r.cpu_pct)==null?void 0:g.toFixed(1))??"--","%"]})]})]})]})});xM.displayName="CharacterCard";const SD=({characters:e})=>{const t=B.useMemo(()=>Array.from(e.values()).sort((n,r)=>n.name.localeCompare(r.name)),[e]);return t.length===0?b.jsx("div",{className:"grid-empty",children:"No active characters"}):b.jsx("div",{className:"char-grid",children:t.map(n=>b.jsx(xM,{character:n},n.name))})},OD=({tabs:e})=>{var r,l;const[t,n]=B.useState(((r=e[0])==null?void 0:r.id)??"");return b.jsxs("div",{className:"tab-container",children:[b.jsx("div",{className:"tab-bar",children:e.map(u=>b.jsx("button",{className:`tab-btn ${t===u.id?"active":""}`,onClick:()=>n(u.id),children:u.label},u.id))}),b.jsx("div",{className:"tab-content",children:(l=e.find(u=>u.id===t))==null?void 0:l.content})]})};function _M(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t-1}return fv=t,fv}var dv,QO;function LD(){if(QO)return dv;QO=1;var e=Rf();function t(n,r){var l=this.__data__,u=e(l,n);return u<0?(++this.size,l.push([n,r])):l[u][1]=r,this}return dv=t,dv}var hv,JO;function Pf(){if(JO)return hv;JO=1;var e=$D(),t=zD(),n=qD(),r=BD(),l=LD();function u(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f0?1:-1},Va=function(t){return ti(t)&&t.indexOf("%")===t.length-1},fe=function(t){return c4(t)&&!Iu(t)},s4=function(t){return Ce(t)},At=function(t){return fe(t)||ti(t)},f4=0,Uu=function(t){var n=++f4;return"".concat(t||"").concat(n)},Xt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!ti(t))return r;var u;if(Va(t)){var c=t.indexOf("%");u=n*parseFloat(t.slice(0,c))/100}else u=+t;return Iu(u)&&(u=r),l&&u>n&&(u=n),u},ya=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},d4=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var jA={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Mr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},TA=null,Bv=null,vb=function e(t){if(t===TA&&Array.isArray(Bv))return Bv;var n=[];return B.Children.forEach(t,function(r){Ce(r)||(i4.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Bv=n,TA=t,n};function Dn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(l){return Mr(l)}):r=[Mr(t)],vb(e).forEach(function(l){var u=mn(l,"type.displayName")||mn(l,"type.name");r.indexOf(u)!==-1&&n.push(l)}),n}function pn(e,t){var n=Dn(e,t);return n&&n[0]}var EA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,l=n.height;return!(!fe(r)||r<=0||!fe(l)||l<=0)},x4=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_4=function(t){return t&&t.type&&ti(t.type)&&x4.indexOf(t.type)>=0},S4=function(t,n,r,l){var u,c=(u=qv==null?void 0:qv[l])!==null&&u!==void 0?u:[];return n.startsWith("data-")||!Se(t)&&(l&&c.includes(n)||v4.includes(n))||r&&pb.includes(n)},_e=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var l=t;if(B.isValidElement(t)&&(l=t.props),!zl(l))return null;var u={};return Object.keys(l).forEach(function(c){var f;S4((f=l)===null||f===void 0?void 0:f[c],c,n,r)&&(u[c]=l[c])}),u},Lg=function e(t,n){if(t===n)return!0;var r=B.Children.count(t);if(r!==B.Children.count(n))return!1;if(r===0)return!0;if(r===1)return MA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ug(e){var t=e.children,n=e.width,r=e.height,l=e.viewBox,u=e.className,c=e.style,f=e.title,d=e.desc,h=j4(e,w4),y=l||{width:n,height:r,x:0,y:0},v=Me("recharts-surface",u);return I.createElement("svg",Ig({},_e(h,!0,"svg"),{className:v,width:n,height:r,style:c,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),I.createElement("title",null,f),I.createElement("desc",null,d),t)}var E4=["children","className"];function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ye=I.forwardRef(function(e,t){var n=e.children,r=e.className,l=M4(e,E4),u=Me("recharts-layer",r);return I.createElement("g",Hg({className:u},_e(l,!0),{ref:t}),n)}),Xn=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),u=2;uu?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var c=Array(u);++l=u?n:e(n,r,l)}return Iv=t,Iv}var Uv,PA;function MM(){if(PA)return Uv;PA=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",l=t+n+r,u="\\ufe0e\\ufe0f",c="\\u200d",f=RegExp("["+c+e+l+u+"]");function d(h){return f.test(h)}return Uv=d,Uv}var Hv,DA;function P4(){if(DA)return Hv;DA=1;function e(t){return t.split("")}return Hv=e,Hv}var Gv,kA;function D4(){if(kA)return Gv;kA=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",l=t+n+r,u="\\ufe0e\\ufe0f",c="["+e+"]",f="["+l+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+f+"|"+d+")",y="[^"+e+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",j=h+"?",S="["+u+"]?",_="(?:"+x+"(?:"+[y,v,g].join("|")+")"+S+j+")*",E=S+j+_,w="(?:"+[y+f+"?",f,v,g,c].join("|")+")",M=RegExp(d+"(?="+d+")|"+w+E,"g");function N(A){return A.match(M)||[]}return Gv=N,Gv}var Yv,$A;function k4(){if($A)return Yv;$A=1;var e=P4(),t=MM(),n=D4();function r(l){return t(l)?n(l):e(l)}return Yv=r,Yv}var Xv,zA;function $4(){if(zA)return Xv;zA=1;var e=R4(),t=MM(),n=k4(),r=wM();function l(u){return function(c){c=r(c);var f=t(c)?n(c):void 0,d=f?f[0]:c.charAt(0),h=f?e(f,1).join(""):c.slice(1);return d[u]()+h}}return Xv=l,Xv}var Kv,qA;function z4(){if(qA)return Kv;qA=1;var e=$4(),t=e("toUpperCase");return Kv=t,Kv}var q4=z4();const $f=Xe(q4);function et(e){return function(){return e}}const CM=Math.cos,Rs=Math.sin,Kn=Math.sqrt,Ps=Math.PI,zf=2*Ps,Gg=Math.PI,Yg=2*Gg,Ya=1e-6,B4=Yg-Ya;function NM(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NM;const n=10**t;return function(r){this._+=r[0];for(let l=1,u=r.length;lYa)if(!(Math.abs(v*d-h*y)>Ya)||!u)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-c,j=l-f,S=d*d+h*h,_=x*x+j*j,E=Math.sqrt(S),w=Math.sqrt(g),M=u*Math.tan((Gg-Math.acos((S+g-_)/(2*E*w)))/2),N=M/w,A=M/E;Math.abs(N-1)>Ya&&this._append`L${t+N*y},${n+N*v}`,this._append`A${u},${u},0,0,${+(v*x>y*j)},${this._x1=t+A*d},${this._y1=n+A*h}`}}arc(t,n,r,l,u,c){if(t=+t,n=+n,r=+r,c=!!c,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(l),d=r*Math.sin(l),h=t+f,y=n+d,v=1^c,g=c?l-u:u-l;this._x1===null?this._append`M${h},${y}`:(Math.abs(this._x1-h)>Ya||Math.abs(this._y1-y)>Ya)&&this._append`L${h},${y}`,r&&(g<0&&(g=g%Yg+Yg),g>B4?this._append`A${r},${r},0,1,${v},${t-f},${n-d}A${r},${r},0,1,${v},${this._x1=h},${this._y1=y}`:g>Ya&&this._append`A${r},${r},0,${+(g>=Gg)},${v},${this._x1=t+r*Math.cos(u)},${this._y1=n+r*Math.sin(u)}`)}rect(t,n,r,l){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+l}h${-r}Z`}toString(){return this._}}function yb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new I4(t)}function mb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function RM(e){this._context=e}RM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function qf(e){return new RM(e)}function PM(e){return e[0]}function DM(e){return e[1]}function kM(e,t){var n=et(!0),r=null,l=qf,u=null,c=yb(f);e=typeof e=="function"?e:e===void 0?PM:et(e),t=typeof t=="function"?t:t===void 0?DM:et(t);function f(d){var h,y=(d=mb(d)).length,v,g=!1,x;for(r==null&&(u=l(x=c())),h=0;h<=y;++h)!(h=x;--j)f.point(M[j],N[j]);f.lineEnd(),f.areaEnd()}E&&(M[g]=+e(_,g,v),N[g]=+t(_,g,v),f.point(r?+r(_,g,v):M[g],n?+n(_,g,v):N[g]))}if(w)return f=null,w+""||null}function y(){return kM().defined(l).curve(c).context(u)}return h.x=function(v){return arguments.length?(e=typeof v=="function"?v:et(+v),r=null,h):e},h.x0=function(v){return arguments.length?(e=typeof v=="function"?v:et(+v),h):e},h.x1=function(v){return arguments.length?(r=v==null?null:typeof v=="function"?v:et(+v),h):r},h.y=function(v){return arguments.length?(t=typeof v=="function"?v:et(+v),n=null,h):t},h.y0=function(v){return arguments.length?(t=typeof v=="function"?v:et(+v),h):t},h.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:et(+v),h):n},h.lineX0=h.lineY0=function(){return y().x(e).y(t)},h.lineY1=function(){return y().x(e).y(n)},h.lineX1=function(){return y().x(r).y(t)},h.defined=function(v){return arguments.length?(l=typeof v=="function"?v:et(!!v),h):l},h.curve=function(v){return arguments.length?(c=v,u!=null&&(f=c(u)),h):c},h.context=function(v){return arguments.length?(v==null?u=f=null:f=c(u=v),h):u},h}class $M{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function U4(e){return new $M(e,!0)}function H4(e){return new $M(e,!1)}const gb={draw(e,t){const n=Kn(t/Ps);e.moveTo(n,0),e.arc(0,0,n,0,zf)}},G4={draw(e,t){const n=Kn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zM=Kn(1/3),Y4=zM*2,X4={draw(e,t){const n=Kn(t/Y4),r=n*zM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},K4={draw(e,t){const n=Kn(t),r=-n/2;e.rect(r,r,n,n)}},V4=.8908130915292852,qM=Rs(Ps/10)/Rs(7*Ps/10),F4=Rs(zf/10)*qM,W4=-CM(zf/10)*qM,Z4={draw(e,t){const n=Kn(t*V4),r=F4*n,l=W4*n;e.moveTo(0,-n),e.lineTo(r,l);for(let u=1;u<5;++u){const c=zf*u/5,f=CM(c),d=Rs(c);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*l,d*r+f*l)}e.closePath()}},Vv=Kn(3),Q4={draw(e,t){const n=-Kn(t/(Vv*3));e.moveTo(0,n*2),e.lineTo(-Vv*n,-n),e.lineTo(Vv*n,-n),e.closePath()}},En=-.5,Mn=Kn(3)/2,Xg=1/Kn(12),J4=(Xg/2+1)*3,e6={draw(e,t){const n=Kn(t/J4),r=n/2,l=n*Xg,u=r,c=n*Xg+n,f=-u,d=c;e.moveTo(r,l),e.lineTo(u,c),e.lineTo(f,d),e.lineTo(En*r-Mn*l,Mn*r+En*l),e.lineTo(En*u-Mn*c,Mn*u+En*c),e.lineTo(En*f-Mn*d,Mn*f+En*d),e.lineTo(En*r+Mn*l,En*l-Mn*r),e.lineTo(En*u+Mn*c,En*c-Mn*u),e.lineTo(En*f+Mn*d,En*d-Mn*f),e.closePath()}};function t6(e,t){let n=null,r=yb(l);e=typeof e=="function"?e:et(e||gb),t=typeof t=="function"?t:et(t===void 0?64:+t);function l(){let u;if(n||(n=u=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),u)return n=null,u+""||null}return l.type=function(u){return arguments.length?(e=typeof u=="function"?u:et(u),l):e},l.size=function(u){return arguments.length?(t=typeof u=="function"?u:et(+u),l):t},l.context=function(u){return arguments.length?(n=u??null,l):n},l}function Ds(){}function ks(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function BM(e){this._context=e}BM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ks(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ks(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n6(e){return new BM(e)}function LM(e){this._context=e}LM.prototype={areaStart:Ds,areaEnd:Ds,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ks(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function r6(e){return new LM(e)}function IM(e){this._context=e}IM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ks(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a6(e){return new IM(e)}function UM(e){this._context=e}UM.prototype={areaStart:Ds,areaEnd:Ds,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function i6(e){return new UM(e)}function BA(e){return e<0?-1:1}function LA(e,t,n){var r=e._x1-e._x0,l=t-e._x1,u=(e._y1-e._y0)/(r||l<0&&-0),c=(n-e._y1)/(l||r<0&&-0),f=(u*l+c*r)/(r+l);return(BA(u)+BA(c))*Math.min(Math.abs(u),Math.abs(c),.5*Math.abs(f))||0}function IA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fv(e,t,n){var r=e._x0,l=e._y0,u=e._x1,c=e._y1,f=(u-r)/3;e._context.bezierCurveTo(r+f,l+f*t,u-f,c-f*n,u,c)}function $s(e){this._context=e}$s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fv(this,this._t0,IA(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fv(this,IA(this,n=LA(this,e,t)),n);break;default:Fv(this,this._t0,n=LA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function HM(e){this._context=new GM(e)}(HM.prototype=Object.create($s.prototype)).point=function(e,t){$s.prototype.point.call(this,t,e)};function GM(e){this._context=e}GM.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,u){this._context.bezierCurveTo(t,e,r,n,u,l)}};function l6(e){return new $s(e)}function o6(e){return new HM(e)}function YM(e){this._context=e}YM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=UA(e),l=UA(t),u=0,c=1;c=0;--t)l[t]=(c[t]-l[t+1])/u[t];for(u[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function c6(e){return new Bf(e,.5)}function s6(e){return new Bf(e,0)}function f6(e){return new Bf(e,1)}function sl(e,t){if((c=e.length)>1)for(var n=1,r,l,u=e[t[0]],c,f=u.length;n=0;)n[t]=t;return n}function d6(e,t){return e[t]}function h6(e){const t=[];return t.key=e,t}function p6(){var e=et([]),t=Kg,n=sl,r=d6;function l(u){var c=Array.from(e.apply(this,arguments),h6),f,d=c.length,h=-1,y;for(const v of u)for(f=0,++h;f0){for(var n,r,l=0,u=e[0].length,c;l0){for(var n=0,r=e[t[0]],l,u=r.length;n0)||!((u=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,u,c;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var XM={symbolCircle:gb,symbolCross:G4,symbolDiamond:X4,symbolSquare:K4,symbolStar:Z4,symbolTriangle:Q4,symbolWye:e6},A6=Math.PI/180,w6=function(t){var n="symbol".concat($f(t));return XM[n]||gb},j6=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var l=18*A6;return 1.25*t*t*(Math.tan(l)-Math.tan(l*2)*Math.pow(Math.tan(l),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},T6=function(t,n){XM["symbol".concat($f(t))]=n},bb=function(t){var n=t.type,r=n===void 0?"circle":n,l=t.size,u=l===void 0?64:l,c=t.sizeType,f=c===void 0?"area":c,d=S6(t,g6),h=GA(GA({},d),{},{type:r,size:u,sizeType:f}),y=function(){var _=w6(r),E=t6().type(_).size(j6(u,f,r));return E()},v=h.className,g=h.cx,x=h.cy,j=_e(h,!0);return g===+g&&x===+x&&u===+u?I.createElement("path",Vg({},j,{className:Me("recharts-symbols",v),transform:"translate(".concat(g,", ").concat(x,")"),d:y()})):null};bb.registerSymbol=T6;function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function Fg(){return Fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?1:-1},Va=function(t){return ti(t)&&t.indexOf("%")===t.length-1},fe=function(t){return c4(t)&&!Iu(t)},s4=function(t){return Ce(t)},At=function(t){return fe(t)||ti(t)},f4=0,Uu=function(t){var n=++f4;return"".concat(t||"").concat(n)},Xt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!ti(t))return r;var u;if(Va(t)){var c=t.indexOf("%");u=n*parseFloat(t.slice(0,c))/100}else u=+t;return Iu(u)&&(u=r),l&&u>n&&(u=n),u},ya=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},d4=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var TA={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Mr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},EA=null,Bv=null,yb=function e(t){if(t===EA&&Array.isArray(Bv))return Bv;var n=[];return B.Children.forEach(t,function(r){Ce(r)||(i4.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Bv=n,EA=t,n};function Dn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(l){return Mr(l)}):r=[Mr(t)],yb(e).forEach(function(l){var u=mn(l,"type.displayName")||mn(l,"type.name");r.indexOf(u)!==-1&&n.push(l)}),n}function pn(e,t){var n=Dn(e,t);return n&&n[0]}var MA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,l=n.height;return!(!fe(r)||r<=0||!fe(l)||l<=0)},x4=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_4=function(t){return t&&t.type&&ti(t.type)&&x4.indexOf(t.type)>=0},S4=function(t,n,r,l){var u,c=(u=qv==null?void 0:qv[l])!==null&&u!==void 0?u:[];return n.startsWith("data-")||!Se(t)&&(l&&c.includes(n)||v4.includes(n))||r&&vb.includes(n)},_e=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var l=t;if(B.isValidElement(t)&&(l=t.props),!zl(l))return null;var u={};return Object.keys(l).forEach(function(c){var f;S4((f=l)===null||f===void 0?void 0:f[c],c,n,r)&&(u[c]=l[c])}),u},Ig=function e(t,n){if(t===n)return!0;var r=B.Children.count(t);if(r!==B.Children.count(n))return!1;if(r===0)return!0;if(r===1)return CA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hg(e){var t=e.children,n=e.width,r=e.height,l=e.viewBox,u=e.className,c=e.style,f=e.title,d=e.desc,h=j4(e,w4),y=l||{width:n,height:r,x:0,y:0},v=Me("recharts-surface",u);return I.createElement("svg",Ug({},_e(h,!0,"svg"),{className:v,width:n,height:r,style:c,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),I.createElement("title",null,f),I.createElement("desc",null,d),t)}var E4=["children","className"];function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ye=I.forwardRef(function(e,t){var n=e.children,r=e.className,l=M4(e,E4),u=Me("recharts-layer",r);return I.createElement("g",Gg({className:u},_e(l,!0),{ref:t}),n)}),Xn=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),u=2;uu?0:u+n),r=r>u?u:r,r<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var c=Array(u);++l=u?n:e(n,r,l)}return Iv=t,Iv}var Uv,DA;function MM(){if(DA)return Uv;DA=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",l=t+n+r,u="\\ufe0e\\ufe0f",c="\\u200d",f=RegExp("["+c+e+l+u+"]");function d(h){return f.test(h)}return Uv=d,Uv}var Hv,kA;function P4(){if(kA)return Hv;kA=1;function e(t){return t.split("")}return Hv=e,Hv}var Gv,$A;function D4(){if($A)return Gv;$A=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",l=t+n+r,u="\\ufe0e\\ufe0f",c="["+e+"]",f="["+l+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+f+"|"+d+")",y="[^"+e+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",j=h+"?",S="["+u+"]?",_="(?:"+x+"(?:"+[y,v,g].join("|")+")"+S+j+")*",E=S+j+_,w="(?:"+[y+f+"?",f,v,g,c].join("|")+")",M=RegExp(d+"(?="+d+")|"+w+E,"g");function N(A){return A.match(M)||[]}return Gv=N,Gv}var Yv,zA;function k4(){if(zA)return Yv;zA=1;var e=P4(),t=MM(),n=D4();function r(l){return t(l)?n(l):e(l)}return Yv=r,Yv}var Xv,qA;function $4(){if(qA)return Xv;qA=1;var e=R4(),t=MM(),n=k4(),r=wM();function l(u){return function(c){c=r(c);var f=t(c)?n(c):void 0,d=f?f[0]:c.charAt(0),h=f?e(f,1).join(""):c.slice(1);return d[u]()+h}}return Xv=l,Xv}var Kv,BA;function z4(){if(BA)return Kv;BA=1;var e=$4(),t=e("toUpperCase");return Kv=t,Kv}var q4=z4();const $f=Xe(q4);function et(e){return function(){return e}}const CM=Math.cos,Rs=Math.sin,Kn=Math.sqrt,Ps=Math.PI,zf=2*Ps,Yg=Math.PI,Xg=2*Yg,Ya=1e-6,B4=Xg-Ya;function NM(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NM;const n=10**t;return function(r){this._+=r[0];for(let l=1,u=r.length;lYa)if(!(Math.abs(v*d-h*y)>Ya)||!u)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-c,j=l-f,S=d*d+h*h,_=x*x+j*j,E=Math.sqrt(S),w=Math.sqrt(g),M=u*Math.tan((Yg-Math.acos((S+g-_)/(2*E*w)))/2),N=M/w,A=M/E;Math.abs(N-1)>Ya&&this._append`L${t+N*y},${n+N*v}`,this._append`A${u},${u},0,0,${+(v*x>y*j)},${this._x1=t+A*d},${this._y1=n+A*h}`}}arc(t,n,r,l,u,c){if(t=+t,n=+n,r=+r,c=!!c,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(l),d=r*Math.sin(l),h=t+f,y=n+d,v=1^c,g=c?l-u:u-l;this._x1===null?this._append`M${h},${y}`:(Math.abs(this._x1-h)>Ya||Math.abs(this._y1-y)>Ya)&&this._append`L${h},${y}`,r&&(g<0&&(g=g%Xg+Xg),g>B4?this._append`A${r},${r},0,1,${v},${t-f},${n-d}A${r},${r},0,1,${v},${this._x1=h},${this._y1=y}`:g>Ya&&this._append`A${r},${r},0,${+(g>=Yg)},${v},${this._x1=t+r*Math.cos(u)},${this._y1=n+r*Math.sin(u)}`)}rect(t,n,r,l){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+l}h${-r}Z`}toString(){return this._}}function mb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new I4(t)}function gb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function RM(e){this._context=e}RM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function qf(e){return new RM(e)}function PM(e){return e[0]}function DM(e){return e[1]}function kM(e,t){var n=et(!0),r=null,l=qf,u=null,c=mb(f);e=typeof e=="function"?e:e===void 0?PM:et(e),t=typeof t=="function"?t:t===void 0?DM:et(t);function f(d){var h,y=(d=gb(d)).length,v,g=!1,x;for(r==null&&(u=l(x=c())),h=0;h<=y;++h)!(h=x;--j)f.point(M[j],N[j]);f.lineEnd(),f.areaEnd()}E&&(M[g]=+e(_,g,v),N[g]=+t(_,g,v),f.point(r?+r(_,g,v):M[g],n?+n(_,g,v):N[g]))}if(w)return f=null,w+""||null}function y(){return kM().defined(l).curve(c).context(u)}return h.x=function(v){return arguments.length?(e=typeof v=="function"?v:et(+v),r=null,h):e},h.x0=function(v){return arguments.length?(e=typeof v=="function"?v:et(+v),h):e},h.x1=function(v){return arguments.length?(r=v==null?null:typeof v=="function"?v:et(+v),h):r},h.y=function(v){return arguments.length?(t=typeof v=="function"?v:et(+v),n=null,h):t},h.y0=function(v){return arguments.length?(t=typeof v=="function"?v:et(+v),h):t},h.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:et(+v),h):n},h.lineX0=h.lineY0=function(){return y().x(e).y(t)},h.lineY1=function(){return y().x(e).y(n)},h.lineX1=function(){return y().x(r).y(t)},h.defined=function(v){return arguments.length?(l=typeof v=="function"?v:et(!!v),h):l},h.curve=function(v){return arguments.length?(c=v,u!=null&&(f=c(u)),h):c},h.context=function(v){return arguments.length?(v==null?u=f=null:f=c(u=v),h):u},h}class $M{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function U4(e){return new $M(e,!0)}function H4(e){return new $M(e,!1)}const bb={draw(e,t){const n=Kn(t/Ps);e.moveTo(n,0),e.arc(0,0,n,0,zf)}},G4={draw(e,t){const n=Kn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zM=Kn(1/3),Y4=zM*2,X4={draw(e,t){const n=Kn(t/Y4),r=n*zM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},K4={draw(e,t){const n=Kn(t),r=-n/2;e.rect(r,r,n,n)}},V4=.8908130915292852,qM=Rs(Ps/10)/Rs(7*Ps/10),F4=Rs(zf/10)*qM,W4=-CM(zf/10)*qM,Z4={draw(e,t){const n=Kn(t*V4),r=F4*n,l=W4*n;e.moveTo(0,-n),e.lineTo(r,l);for(let u=1;u<5;++u){const c=zf*u/5,f=CM(c),d=Rs(c);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*l,d*r+f*l)}e.closePath()}},Vv=Kn(3),Q4={draw(e,t){const n=-Kn(t/(Vv*3));e.moveTo(0,n*2),e.lineTo(-Vv*n,-n),e.lineTo(Vv*n,-n),e.closePath()}},En=-.5,Mn=Kn(3)/2,Kg=1/Kn(12),J4=(Kg/2+1)*3,e6={draw(e,t){const n=Kn(t/J4),r=n/2,l=n*Kg,u=r,c=n*Kg+n,f=-u,d=c;e.moveTo(r,l),e.lineTo(u,c),e.lineTo(f,d),e.lineTo(En*r-Mn*l,Mn*r+En*l),e.lineTo(En*u-Mn*c,Mn*u+En*c),e.lineTo(En*f-Mn*d,Mn*f+En*d),e.lineTo(En*r+Mn*l,En*l-Mn*r),e.lineTo(En*u+Mn*c,En*c-Mn*u),e.lineTo(En*f+Mn*d,En*d-Mn*f),e.closePath()}};function t6(e,t){let n=null,r=mb(l);e=typeof e=="function"?e:et(e||bb),t=typeof t=="function"?t:et(t===void 0?64:+t);function l(){let u;if(n||(n=u=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),u)return n=null,u+""||null}return l.type=function(u){return arguments.length?(e=typeof u=="function"?u:et(u),l):e},l.size=function(u){return arguments.length?(t=typeof u=="function"?u:et(+u),l):t},l.context=function(u){return arguments.length?(n=u??null,l):n},l}function Ds(){}function ks(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function BM(e){this._context=e}BM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ks(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ks(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n6(e){return new BM(e)}function LM(e){this._context=e}LM.prototype={areaStart:Ds,areaEnd:Ds,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ks(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function r6(e){return new LM(e)}function IM(e){this._context=e}IM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ks(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a6(e){return new IM(e)}function UM(e){this._context=e}UM.prototype={areaStart:Ds,areaEnd:Ds,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function i6(e){return new UM(e)}function LA(e){return e<0?-1:1}function IA(e,t,n){var r=e._x1-e._x0,l=t-e._x1,u=(e._y1-e._y0)/(r||l<0&&-0),c=(n-e._y1)/(l||r<0&&-0),f=(u*l+c*r)/(r+l);return(LA(u)+LA(c))*Math.min(Math.abs(u),Math.abs(c),.5*Math.abs(f))||0}function UA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fv(e,t,n){var r=e._x0,l=e._y0,u=e._x1,c=e._y1,f=(u-r)/3;e._context.bezierCurveTo(r+f,l+f*t,u-f,c-f*n,u,c)}function $s(e){this._context=e}$s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fv(this,this._t0,UA(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fv(this,UA(this,n=IA(this,e,t)),n);break;default:Fv(this,this._t0,n=IA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function HM(e){this._context=new GM(e)}(HM.prototype=Object.create($s.prototype)).point=function(e,t){$s.prototype.point.call(this,t,e)};function GM(e){this._context=e}GM.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,u){this._context.bezierCurveTo(t,e,r,n,u,l)}};function l6(e){return new $s(e)}function o6(e){return new HM(e)}function YM(e){this._context=e}YM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=HA(e),l=HA(t),u=0,c=1;c=0;--t)l[t]=(c[t]-l[t+1])/u[t];for(u[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function c6(e){return new Bf(e,.5)}function s6(e){return new Bf(e,0)}function f6(e){return new Bf(e,1)}function sl(e,t){if((c=e.length)>1)for(var n=1,r,l,u=e[t[0]],c,f=u.length;n=0;)n[t]=t;return n}function d6(e,t){return e[t]}function h6(e){const t=[];return t.key=e,t}function p6(){var e=et([]),t=Vg,n=sl,r=d6;function l(u){var c=Array.from(e.apply(this,arguments),h6),f,d=c.length,h=-1,y;for(const v of u)for(f=0,++h;f0){for(var n,r,l=0,u=e[0].length,c;l0){for(var n=0,r=e[t[0]],l,u=r.length;n0)||!((u=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,u,c;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var XM={symbolCircle:bb,symbolCross:G4,symbolDiamond:X4,symbolSquare:K4,symbolStar:Z4,symbolTriangle:Q4,symbolWye:e6},A6=Math.PI/180,w6=function(t){var n="symbol".concat($f(t));return XM[n]||bb},j6=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var l=18*A6;return 1.25*t*t*(Math.tan(l)-Math.tan(l*2)*Math.pow(Math.tan(l),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},T6=function(t,n){XM["symbol".concat($f(t))]=n},xb=function(t){var n=t.type,r=n===void 0?"circle":n,l=t.size,u=l===void 0?64:l,c=t.sizeType,f=c===void 0?"area":c,d=S6(t,g6),h=YA(YA({},d),{},{type:r,size:u,sizeType:f}),y=function(){var _=w6(r),E=t6().type(_).size(j6(u,f,r));return E()},v=h.className,g=h.cx,x=h.cy,j=_e(h,!0);return g===+g&&x===+x&&u===+u?I.createElement("path",Fg({},j,{className:Me("recharts-symbols",v),transform:"translate(".concat(g,", ").concat(x,")"),d:y()})):null};xb.registerSymbol=T6;function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var w=x.inactive?h:x.color;return I.createElement("li",Fg({className:_,style:v,key:"legend-item-".concat(j)},ni(r.props,x,j)),I.createElement(Ug,{width:c,height:c,viewBox:y,style:g},r.renderIcon(x)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},S?S(E,x,j):E))})}},{key:"render",value:function(){var r=this.props,l=r.payload,u=r.layout,c=r.align;if(!l||!l.length)return null;var f={padding:0,margin:0,textAlign:u==="horizontal"?c:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:f},this.renderItems())}}])})(B.PureComponent);lu(xb,"displayName","Legend");lu(xb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Wv,XA;function z6(){if(XA)return Wv;XA=1;var e=Pf();function t(){this.__data__=new e,this.size=0}return Wv=t,Wv}var Zv,KA;function q6(){if(KA)return Zv;KA=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Zv=e,Zv}var Qv,VA;function B6(){if(VA)return Qv;VA=1;function e(t){return this.__data__.get(t)}return Qv=e,Qv}var Jv,FA;function L6(){if(FA)return Jv;FA=1;function e(t){return this.__data__.has(t)}return Jv=e,Jv}var ey,WA;function I6(){if(WA)return ey;WA=1;var e=Pf(),t=sb(),n=fb(),r=200;function l(u,c){var f=this.__data__;if(f instanceof e){var d=f.__data__;if(!t||d.lengthx))return!1;var S=v.get(c),_=v.get(f);if(S&&_)return S==f&&_==c;var E=-1,w=!0,M=d&l?new e:void 0;for(v.set(c,f),v.set(f,c);++E-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Sy=t,Sy}var Oy,xw;function e8(){if(xw)return Oy;xw=1;var e=zr(),t=Ab(),n=qr(),r="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",y="[object Number]",v="[object Object]",g="[object RegExp]",x="[object Set]",j="[object String]",S="[object WeakMap]",_="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",M="[object Float64Array]",N="[object Int8Array]",A="[object Int16Array]",T="[object Int32Array]",C="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",W="[object Uint32Array]",X={};X[w]=X[M]=X[N]=X[A]=X[T]=X[C]=X[D]=X[$]=X[W]=!0,X[r]=X[l]=X[_]=X[u]=X[E]=X[c]=X[f]=X[d]=X[h]=X[y]=X[v]=X[g]=X[x]=X[j]=X[S]=!1;function U(L){return n(L)&&t(L.length)&&!!X[e(L)]}return Oy=U,Oy}var Ay,_w;function nC(){if(_w)return Ay;_w=1;function e(t){return function(n){return t(n)}}return Ay=e,Ay}var Zo={exports:{}};Zo.exports;var Sw;function t8(){return Sw||(Sw=1,(function(e,t){var n=SM(),r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===r,c=u&&n.process,f=(function(){try{var d=l&&l.require&&l.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}})();e.exports=f})(Zo,Zo.exports)),Zo.exports}var wy,Ow;function rC(){if(Ow)return wy;Ow=1;var e=e8(),t=nC(),n=t8(),r=n&&n.isTypedArray,l=r?t(r):e;return wy=l,wy}var jy,Aw;function n8(){if(Aw)return jy;Aw=1;var e=Z6(),t=Sb(),n=nn(),r=tC(),l=Ob(),u=rC(),c=Object.prototype,f=c.hasOwnProperty;function d(h,y){var v=n(h),g=!v&&t(h),x=!v&&!g&&r(h),j=!v&&!g&&!x&&u(h),S=v||g||x||j,_=S?e(h.length,String):[],E=_.length;for(var w in h)(y||f.call(h,w))&&!(S&&(w=="length"||x&&(w=="offset"||w=="parent")||j&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||l(w,E)))&&_.push(w);return _}return jy=d,jy}var Ty,ww;function r8(){if(ww)return Ty;ww=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,l=typeof r=="function"&&r.prototype||e;return n===l}return Ty=t,Ty}var Ey,jw;function aC(){if(jw)return Ey;jw=1;function e(t,n){return function(r){return t(n(r))}}return Ey=e,Ey}var My,Tw;function a8(){if(Tw)return My;Tw=1;var e=aC(),t=e(Object.keys,Object);return My=t,My}var Cy,Ew;function i8(){if(Ew)return Cy;Ew=1;var e=r8(),t=a8(),n=Object.prototype,r=n.hasOwnProperty;function l(u){if(!e(u))return t(u);var c=[];for(var f in Object(u))r.call(u,f)&&f!="constructor"&&c.push(f);return c}return Cy=l,Cy}var Ny,Mw;function Hu(){if(Mw)return Ny;Mw=1;var e=ub(),t=Ab();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ny=n,Ny}var Ry,Cw;function Lf(){if(Cw)return Ry;Cw=1;var e=n8(),t=i8(),n=Hu();function r(l){return n(l)?e(l):t(l)}return Ry=r,Ry}var Py,Nw;function l8(){if(Nw)return Py;Nw=1;var e=K6(),t=W6(),n=Lf();function r(l){return e(l,n,t)}return Py=r,Py}var Dy,Rw;function o8(){if(Rw)return Dy;Rw=1;var e=l8(),t=1,n=Object.prototype,r=n.hasOwnProperty;function l(u,c,f,d,h,y){var v=f&t,g=e(u),x=g.length,j=e(c),S=j.length;if(x!=S&&!v)return!1;for(var _=x;_--;){var E=g[_];if(!(v?E in c:r.call(c,E)))return!1}var w=y.get(u),M=y.get(c);if(w&&M)return w==c&&M==u;var N=!0;y.set(u,c),y.set(c,u);for(var A=v;++_-1}return lm=t,lm}var om,ij;function T8(){if(ij)return om;ij=1;function e(t,n,r){for(var l=-1,u=t==null?0:t.length;++l=c){var E=h?null:l(d);if(E)return u(E);j=!1,g=r,_=new e}else _=h?[]:S;e:for(;++v=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function H8(e){return e.value}function G8(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=I8(t,P8);return I.createElement(xb,n)}var hj=1,Qa=(function(e){function t(){var n;D8(this,t);for(var r=arguments.length,l=new Array(r),u=0;uhj||Math.abs(l.height-this.lastBoundingBox.height)>hj)&&(this.lastBoundingBox.width=l.width,this.lastBoundingBox.height=l.height,r&&r(l)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ar({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var l=this.props,u=l.layout,c=l.align,f=l.verticalAlign,d=l.margin,h=l.chartWidth,y=l.chartHeight,v,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(c==="center"&&u==="vertical"){var x=this.getBBoxSnapshot();v={left:((h||0)-x.width)/2}}else v=c==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(f==="middle"){var j=this.getBBoxSnapshot();g={top:((y||0)-j.height)/2}}else g=f==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return Ar(Ar({},v),g)}},{key:"render",value:function(){var r=this,l=this.props,u=l.content,c=l.width,f=l.height,d=l.wrapperStyle,h=l.payloadUniqBy,y=l.payload,v=Ar(Ar({position:"absolute",width:c||"auto",height:f||"auto"},this.getDefaultPosition(d)),d);return I.createElement("div",{className:"recharts-legend-wrapper",style:v,ref:function(x){r.wrapperNode=x}},G8(u,Ar(Ar({},this.props),{},{payload:cC(y,h,H8)})))}}],[{key:"getWithHeight",value:function(r,l){var u=Ar(Ar({},this.defaultProps),r.props),c=u.layout;return c==="vertical"&&fe(r.props.height)?{height:r.props.height}:c==="horizontal"?{width:r.props.width||l}:null}}])})(B.PureComponent);If(Qa,"displayName","Legend");If(Qa,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var dm,pj;function Y8(){if(pj)return dm;pj=1;var e=Lu(),t=Sb(),n=nn(),r=e?e.isConcatSpreadable:void 0;function l(u){return n(u)||t(u)||!!(r&&u&&u[r])}return dm=l,dm}var hm,vj;function dC(){if(vj)return hm;vj=1;var e=eC(),t=Y8();function n(r,l,u,c,f){var d=-1,h=r.length;for(u||(u=t),f||(f=[]);++d0&&u(y)?l>1?n(y,l-1,u,c,f):e(f,y):c||(f[f.length]=y)}return f}return hm=n,hm}var pm,yj;function X8(){if(yj)return pm;yj=1;function e(t){return function(n,r,l){for(var u=-1,c=Object(n),f=l(n),d=f.length;d--;){var h=f[t?d:++u];if(r(c[h],h,c)===!1)break}return n}}return pm=e,pm}var vm,mj;function K8(){if(mj)return vm;mj=1;var e=X8(),t=e();return vm=t,vm}var ym,gj;function hC(){if(gj)return ym;gj=1;var e=K8(),t=Lf();function n(r,l){return r&&e(r,l,t)}return ym=n,ym}var mm,bj;function V8(){if(bj)return mm;bj=1;var e=Hu();function t(n,r){return function(l,u){if(l==null)return l;if(!e(l))return n(l,u);for(var c=l.length,f=r?c:-1,d=Object(l);(r?f--:++fr||f&&d&&y&&!h&&!v||u&&d&&y||!l&&y||!c)return 1;if(!u&&!f&&!v&&n=h)return y;var v=l[u];return y*(v=="desc"?-1:1)}}return n.index-r.index}return Sm=t,Sm}var Om,wj;function Q8(){if(wj)return Om;wj=1;var e=db(),t=hb(),n=ar(),r=pC(),l=F8(),u=nC(),c=Z8(),f=ql(),d=nn();function h(y,v,g){v.length?v=e(v,function(S){return d(S)?function(_){return t(_,S.length===1?S[0]:S)}:S}):v=[f];var x=-1;v=e(v,u(n));var j=r(y,function(S,_,E){var w=e(v,function(M){return M(S)});return{criteria:w,index:++x,value:S}});return l(j,function(S,_){return c(S,_,g)})}return Om=h,Om}var Am,jj;function J8(){if(jj)return Am;jj=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Am=e,Am}var wm,Tj;function ek(){if(Tj)return wm;Tj=1;var e=J8(),t=Math.max;function n(r,l,u){return l=t(l===void 0?r.length-1:l,0),function(){for(var c=arguments,f=-1,d=t(c.length-l,0),h=Array(d);++f0){if(++u>=e)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}return Mm=r,Mm}var Cm,Rj;function ak(){if(Rj)return Cm;Rj=1;var e=nk(),t=rk(),n=t(e);return Cm=n,Cm}var Nm,Pj;function ik(){if(Pj)return Nm;Pj=1;var e=ql(),t=ek(),n=ak();function r(l,u){return n(t(l,u,e),l+"")}return Nm=r,Nm}var Rm,Dj;function Uf(){if(Dj)return Rm;Dj=1;var e=cb(),t=Hu(),n=Ob(),r=xa();function l(u,c,f){if(!r(f))return!1;var d=typeof c;return(d=="number"?t(f)&&n(c,f.length):d=="string"&&c in f)?e(f[c],u):!1}return Rm=l,Rm}var Pm,kj;function lk(){if(kj)return Pm;kj=1;var e=dC(),t=Q8(),n=ik(),r=Uf(),l=n(function(u,c){if(u==null)return[];var f=c.length;return f>1&&r(u,c[0],c[1])?c=[]:f>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),t(u,e(c,1),[])});return Pm=l,Pm}var ok=lk();const Tb=Xe(ok);function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(Lo,"-left"),fe(n)&&t&&fe(t.x)&&n=t.y),"".concat(Lo,"-top"),fe(r)&&t&&fe(t.y)&&rS?Math.max(y,d[r]):Math.max(v,d[r])}function Sk(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Ok(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,l=e.position,u=e.reverseDirection,c=e.tooltipBox,f=e.useTranslate3d,d=e.viewBox,h,y,v;return c.height>0&&c.width>0&&n?(y=qj({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:l,reverseDirection:u,tooltipDimension:c.width,viewBox:d,viewBoxDimension:d.width}),v=qj({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:l,reverseDirection:u,tooltipDimension:c.height,viewBox:d,viewBoxDimension:d.height}),h=Sk({translateX:y,translateY:v,useTranslate3d:f})):h=xk,{cssProperties:h,cssClasses:_k({translateX:y,translateY:v,coordinate:n})}}function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Lj(e){for(var t=1;tIj||Math.abs(r.height-this.state.lastBoundingBox.height)>Ij)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,l;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((l=this.props.coordinate)===null||l===void 0?void 0:l.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,l=this.props,u=l.active,c=l.allowEscapeViewBox,f=l.animationDuration,d=l.animationEasing,h=l.children,y=l.coordinate,v=l.hasPayload,g=l.isAnimationActive,x=l.offset,j=l.position,S=l.reverseDirection,_=l.useTranslate3d,E=l.viewBox,w=l.wrapperStyle,M=Ok({allowEscapeViewBox:c,coordinate:y,offsetTopLeft:x,position:j,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:_,viewBox:E}),N=M.cssClasses,A=M.cssProperties,T=Lj(Lj({transition:g&&u?"transform ".concat(f,"ms ").concat(d):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&u&&v?"visible":"hidden",position:"absolute",top:0,left:0},w);return I.createElement("div",{tabIndex:-1,className:N,style:T,ref:function(D){r.wrapperNode=D}},h)}}])})(B.PureComponent),Pk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Bl={isSsr:Pk()};function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Hj(e){for(var t=1;t0;return I.createElement(Rk,{allowEscapeViewBox:c,animationDuration:f,animationEasing:d,isAnimationActive:g,active:u,coordinate:y,hasPayload:T,offset:x,position:_,reverseDirection:E,useTranslate3d:w,viewBox:M,wrapperStyle:N},Hk(h,Hj(Hj({},this.props),{},{payload:A})))}}])})(B.PureComponent);Eb(vn,"displayName","Tooltip");Eb(vn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Bl.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var km,Gj;function Gk(){if(Gj)return km;Gj=1;var e=rr(),t=function(){return e.Date.now()};return km=t,km}var $m,Yj;function Yk(){if(Yj)return $m;Yj=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return $m=t,$m}var zm,Xj;function Xk(){if(Xj)return zm;Xj=1;var e=Yk(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return zm=n,zm}var qm,Kj;function xC(){if(Kj)return qm;Kj=1;var e=Xk(),t=xa(),n=$l(),r=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function d(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var y=typeof h.valueOf=="function"?h.valueOf():h;h=t(y)?y+"":y}if(typeof h!="string")return h===0?h:+h;h=e(h);var v=u.test(h);return v||c.test(h)?f(h.slice(2),v?2:8):l.test(h)?r:+h}return qm=d,qm}var Bm,Vj;function Kk(){if(Vj)return Bm;Vj=1;var e=xa(),t=Gk(),n=xC(),r="Expected a function",l=Math.max,u=Math.min;function c(f,d,h){var y,v,g,x,j,S,_=0,E=!1,w=!1,M=!0;if(typeof f!="function")throw new TypeError(r);d=n(d)||0,e(h)&&(E=!!h.leading,w="maxWait"in h,g=w?l(n(h.maxWait)||0,d):g,M="trailing"in h?!!h.trailing:M);function N(L){var Y=y,K=v;return y=v=void 0,_=L,x=f.apply(K,Y),x}function A(L){return _=L,j=setTimeout(D,d),E?N(L):x}function T(L){var Y=L-S,K=L-_,P=d-Y;return w?u(P,g-K):P}function C(L){var Y=L-S,K=L-_;return S===void 0||Y>=d||Y<0||w&&K>=g}function D(){var L=t();if(C(L))return $(L);j=setTimeout(D,T(L))}function $(L){return j=void 0,M&&y?N(L):(y=v=void 0,x)}function W(){j!==void 0&&clearTimeout(j),_=0,y=S=v=j=void 0}function X(){return j===void 0?x:$(t())}function U(){var L=t(),Y=C(L);if(y=arguments,v=this,S=L,Y){if(j===void 0)return A(S);if(w)return clearTimeout(j),j=setTimeout(D,d),N(S)}return j===void 0&&(j=setTimeout(D,d)),x}return U.cancel=W,U.flush=X,U}return Bm=c,Bm}var Lm,Fj;function Vk(){if(Fj)return Lm;Fj=1;var e=Kk(),t=xa(),n="Expected a function";function r(l,u,c){var f=!0,d=!0;if(typeof l!="function")throw new TypeError(n);return t(c)&&(f="leading"in c?!!c.leading:f,d="trailing"in c?!!c.trailing:d),e(l,u,{leading:f,maxWait:u,trailing:d})}return Lm=r,Lm}var Fk=Vk();const _C=Xe(Fk);function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function Wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(L=_C(L,S,{trailing:!0,leading:!1}));var Y=new ResizeObserver(L),K=A.current.getBoundingClientRect(),P=K.width,z=K.height;return X(P,z),Y.observe(A.current),function(){Y.disconnect()}},[X,S]);var U=B.useMemo(function(){var L=$.containerWidth,Y=$.containerHeight;if(L<0||Y<0)return null;Xn(Va(c)||Va(d),`The width(%s) and height(%s) are both fixed numbers,
+ A`).concat(c,",").concat(c,",0,1,1,").concat(f,",").concat(u),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(Cn/8,"h").concat(Cn,"v").concat(Cn*3/4,"h").concat(-Cn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var h=E6({},r);return delete h.legendIcon,I.cloneElement(r.legendIcon,h)}return I.createElement(xb,{fill:d,cx:u,cy:u,size:Cn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,l=this.props,u=l.payload,c=l.iconSize,f=l.layout,d=l.formatter,h=l.inactiveColor,y={x:0,y:0,width:Cn,height:Cn},v={display:f==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return u.map(function(x,j){var S=x.formatter||d,_=Me(lu(lu({"recharts-legend-item":!0},"legend-item-".concat(j),!0),"inactive",x.inactive));if(x.type==="none")return null;var E=Se(x.value)?null:x.value;Xn(!Se(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var w=x.inactive?h:x.color;return I.createElement("li",Wg({className:_,style:v,key:"legend-item-".concat(j)},ni(r.props,x,j)),I.createElement(Hg,{width:c,height:c,viewBox:y,style:g},r.renderIcon(x)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},S?S(E,x,j):E))})}},{key:"render",value:function(){var r=this.props,l=r.payload,u=r.layout,c=r.align;if(!l||!l.length)return null;var f={padding:0,margin:0,textAlign:u==="horizontal"?c:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:f},this.renderItems())}}])})(B.PureComponent);lu(_b,"displayName","Legend");lu(_b,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Wv,KA;function z6(){if(KA)return Wv;KA=1;var e=Pf();function t(){this.__data__=new e,this.size=0}return Wv=t,Wv}var Zv,VA;function q6(){if(VA)return Zv;VA=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Zv=e,Zv}var Qv,FA;function B6(){if(FA)return Qv;FA=1;function e(t){return this.__data__.get(t)}return Qv=e,Qv}var Jv,WA;function L6(){if(WA)return Jv;WA=1;function e(t){return this.__data__.has(t)}return Jv=e,Jv}var ey,ZA;function I6(){if(ZA)return ey;ZA=1;var e=Pf(),t=fb(),n=db(),r=200;function l(u,c){var f=this.__data__;if(f instanceof e){var d=f.__data__;if(!t||d.lengthx))return!1;var S=v.get(c),_=v.get(f);if(S&&_)return S==f&&_==c;var E=-1,w=!0,M=d&l?new e:void 0;for(v.set(c,f),v.set(f,c);++E-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Sy=t,Sy}var Oy,_w;function e8(){if(_w)return Oy;_w=1;var e=zr(),t=wb(),n=qr(),r="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",y="[object Number]",v="[object Object]",g="[object RegExp]",x="[object Set]",j="[object String]",S="[object WeakMap]",_="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",M="[object Float64Array]",N="[object Int8Array]",A="[object Int16Array]",T="[object Int32Array]",C="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",W="[object Uint32Array]",X={};X[w]=X[M]=X[N]=X[A]=X[T]=X[C]=X[D]=X[$]=X[W]=!0,X[r]=X[l]=X[_]=X[u]=X[E]=X[c]=X[f]=X[d]=X[h]=X[y]=X[v]=X[g]=X[x]=X[j]=X[S]=!1;function U(L){return n(L)&&t(L.length)&&!!X[e(L)]}return Oy=U,Oy}var Ay,Sw;function nC(){if(Sw)return Ay;Sw=1;function e(t){return function(n){return t(n)}}return Ay=e,Ay}var Zo={exports:{}};Zo.exports;var Ow;function t8(){return Ow||(Ow=1,(function(e,t){var n=SM(),r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===r,c=u&&n.process,f=(function(){try{var d=l&&l.require&&l.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}})();e.exports=f})(Zo,Zo.exports)),Zo.exports}var wy,Aw;function rC(){if(Aw)return wy;Aw=1;var e=e8(),t=nC(),n=t8(),r=n&&n.isTypedArray,l=r?t(r):e;return wy=l,wy}var jy,ww;function n8(){if(ww)return jy;ww=1;var e=Z6(),t=Ob(),n=nn(),r=tC(),l=Ab(),u=rC(),c=Object.prototype,f=c.hasOwnProperty;function d(h,y){var v=n(h),g=!v&&t(h),x=!v&&!g&&r(h),j=!v&&!g&&!x&&u(h),S=v||g||x||j,_=S?e(h.length,String):[],E=_.length;for(var w in h)(y||f.call(h,w))&&!(S&&(w=="length"||x&&(w=="offset"||w=="parent")||j&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||l(w,E)))&&_.push(w);return _}return jy=d,jy}var Ty,jw;function r8(){if(jw)return Ty;jw=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,l=typeof r=="function"&&r.prototype||e;return n===l}return Ty=t,Ty}var Ey,Tw;function aC(){if(Tw)return Ey;Tw=1;function e(t,n){return function(r){return t(n(r))}}return Ey=e,Ey}var My,Ew;function a8(){if(Ew)return My;Ew=1;var e=aC(),t=e(Object.keys,Object);return My=t,My}var Cy,Mw;function i8(){if(Mw)return Cy;Mw=1;var e=r8(),t=a8(),n=Object.prototype,r=n.hasOwnProperty;function l(u){if(!e(u))return t(u);var c=[];for(var f in Object(u))r.call(u,f)&&f!="constructor"&&c.push(f);return c}return Cy=l,Cy}var Ny,Cw;function Hu(){if(Cw)return Ny;Cw=1;var e=cb(),t=wb();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ny=n,Ny}var Ry,Nw;function Lf(){if(Nw)return Ry;Nw=1;var e=n8(),t=i8(),n=Hu();function r(l){return n(l)?e(l):t(l)}return Ry=r,Ry}var Py,Rw;function l8(){if(Rw)return Py;Rw=1;var e=K6(),t=W6(),n=Lf();function r(l){return e(l,n,t)}return Py=r,Py}var Dy,Pw;function o8(){if(Pw)return Dy;Pw=1;var e=l8(),t=1,n=Object.prototype,r=n.hasOwnProperty;function l(u,c,f,d,h,y){var v=f&t,g=e(u),x=g.length,j=e(c),S=j.length;if(x!=S&&!v)return!1;for(var _=x;_--;){var E=g[_];if(!(v?E in c:r.call(c,E)))return!1}var w=y.get(u),M=y.get(c);if(w&&M)return w==c&&M==u;var N=!0;y.set(u,c),y.set(c,u);for(var A=v;++_-1}return lm=t,lm}var om,lj;function T8(){if(lj)return om;lj=1;function e(t,n,r){for(var l=-1,u=t==null?0:t.length;++l=c){var E=h?null:l(d);if(E)return u(E);j=!1,g=r,_=new e}else _=h?[]:S;e:for(;++v=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function H8(e){return e.value}function G8(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=I8(t,P8);return I.createElement(_b,n)}var pj=1,Qa=(function(e){function t(){var n;D8(this,t);for(var r=arguments.length,l=new Array(r),u=0;upj||Math.abs(l.height-this.lastBoundingBox.height)>pj)&&(this.lastBoundingBox.width=l.width,this.lastBoundingBox.height=l.height,r&&r(l)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ar({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var l=this.props,u=l.layout,c=l.align,f=l.verticalAlign,d=l.margin,h=l.chartWidth,y=l.chartHeight,v,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(c==="center"&&u==="vertical"){var x=this.getBBoxSnapshot();v={left:((h||0)-x.width)/2}}else v=c==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(f==="middle"){var j=this.getBBoxSnapshot();g={top:((y||0)-j.height)/2}}else g=f==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return Ar(Ar({},v),g)}},{key:"render",value:function(){var r=this,l=this.props,u=l.content,c=l.width,f=l.height,d=l.wrapperStyle,h=l.payloadUniqBy,y=l.payload,v=Ar(Ar({position:"absolute",width:c||"auto",height:f||"auto"},this.getDefaultPosition(d)),d);return I.createElement("div",{className:"recharts-legend-wrapper",style:v,ref:function(x){r.wrapperNode=x}},G8(u,Ar(Ar({},this.props),{},{payload:cC(y,h,H8)})))}}],[{key:"getWithHeight",value:function(r,l){var u=Ar(Ar({},this.defaultProps),r.props),c=u.layout;return c==="vertical"&&fe(r.props.height)?{height:r.props.height}:c==="horizontal"?{width:r.props.width||l}:null}}])})(B.PureComponent);If(Qa,"displayName","Legend");If(Qa,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var dm,vj;function Y8(){if(vj)return dm;vj=1;var e=Lu(),t=Ob(),n=nn(),r=e?e.isConcatSpreadable:void 0;function l(u){return n(u)||t(u)||!!(r&&u&&u[r])}return dm=l,dm}var hm,yj;function dC(){if(yj)return hm;yj=1;var e=eC(),t=Y8();function n(r,l,u,c,f){var d=-1,h=r.length;for(u||(u=t),f||(f=[]);++d0&&u(y)?l>1?n(y,l-1,u,c,f):e(f,y):c||(f[f.length]=y)}return f}return hm=n,hm}var pm,mj;function X8(){if(mj)return pm;mj=1;function e(t){return function(n,r,l){for(var u=-1,c=Object(n),f=l(n),d=f.length;d--;){var h=f[t?d:++u];if(r(c[h],h,c)===!1)break}return n}}return pm=e,pm}var vm,gj;function K8(){if(gj)return vm;gj=1;var e=X8(),t=e();return vm=t,vm}var ym,bj;function hC(){if(bj)return ym;bj=1;var e=K8(),t=Lf();function n(r,l){return r&&e(r,l,t)}return ym=n,ym}var mm,xj;function V8(){if(xj)return mm;xj=1;var e=Hu();function t(n,r){return function(l,u){if(l==null)return l;if(!e(l))return n(l,u);for(var c=l.length,f=r?c:-1,d=Object(l);(r?f--:++fr||f&&d&&y&&!h&&!v||u&&d&&y||!l&&y||!c)return 1;if(!u&&!f&&!v&&n=h)return y;var v=l[u];return y*(v=="desc"?-1:1)}}return n.index-r.index}return Sm=t,Sm}var Om,jj;function Q8(){if(jj)return Om;jj=1;var e=hb(),t=pb(),n=ar(),r=pC(),l=F8(),u=nC(),c=Z8(),f=ql(),d=nn();function h(y,v,g){v.length?v=e(v,function(S){return d(S)?function(_){return t(_,S.length===1?S[0]:S)}:S}):v=[f];var x=-1;v=e(v,u(n));var j=r(y,function(S,_,E){var w=e(v,function(M){return M(S)});return{criteria:w,index:++x,value:S}});return l(j,function(S,_){return c(S,_,g)})}return Om=h,Om}var Am,Tj;function J8(){if(Tj)return Am;Tj=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Am=e,Am}var wm,Ej;function ek(){if(Ej)return wm;Ej=1;var e=J8(),t=Math.max;function n(r,l,u){return l=t(l===void 0?r.length-1:l,0),function(){for(var c=arguments,f=-1,d=t(c.length-l,0),h=Array(d);++f0){if(++u>=e)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}return Mm=r,Mm}var Cm,Pj;function ak(){if(Pj)return Cm;Pj=1;var e=nk(),t=rk(),n=t(e);return Cm=n,Cm}var Nm,Dj;function ik(){if(Dj)return Nm;Dj=1;var e=ql(),t=ek(),n=ak();function r(l,u){return n(t(l,u,e),l+"")}return Nm=r,Nm}var Rm,kj;function Uf(){if(kj)return Rm;kj=1;var e=sb(),t=Hu(),n=Ab(),r=xa();function l(u,c,f){if(!r(f))return!1;var d=typeof c;return(d=="number"?t(f)&&n(c,f.length):d=="string"&&c in f)?e(f[c],u):!1}return Rm=l,Rm}var Pm,$j;function lk(){if($j)return Pm;$j=1;var e=dC(),t=Q8(),n=ik(),r=Uf(),l=n(function(u,c){if(u==null)return[];var f=c.length;return f>1&&r(u,c[0],c[1])?c=[]:f>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),t(u,e(c,1),[])});return Pm=l,Pm}var ok=lk();const Eb=Xe(ok);function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(Lo,"-left"),fe(n)&&t&&fe(t.x)&&n=t.y),"".concat(Lo,"-top"),fe(r)&&t&&fe(t.y)&&rS?Math.max(y,d[r]):Math.max(v,d[r])}function Sk(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Ok(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,l=e.position,u=e.reverseDirection,c=e.tooltipBox,f=e.useTranslate3d,d=e.viewBox,h,y,v;return c.height>0&&c.width>0&&n?(y=Bj({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:l,reverseDirection:u,tooltipDimension:c.width,viewBox:d,viewBoxDimension:d.width}),v=Bj({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:l,reverseDirection:u,tooltipDimension:c.height,viewBox:d,viewBoxDimension:d.height}),h=Sk({translateX:y,translateY:v,useTranslate3d:f})):h=xk,{cssProperties:h,cssClasses:_k({translateX:y,translateY:v,coordinate:n})}}function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ij(e){for(var t=1;tUj||Math.abs(r.height-this.state.lastBoundingBox.height)>Uj)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,l;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((l=this.props.coordinate)===null||l===void 0?void 0:l.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,l=this.props,u=l.active,c=l.allowEscapeViewBox,f=l.animationDuration,d=l.animationEasing,h=l.children,y=l.coordinate,v=l.hasPayload,g=l.isAnimationActive,x=l.offset,j=l.position,S=l.reverseDirection,_=l.useTranslate3d,E=l.viewBox,w=l.wrapperStyle,M=Ok({allowEscapeViewBox:c,coordinate:y,offsetTopLeft:x,position:j,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:_,viewBox:E}),N=M.cssClasses,A=M.cssProperties,T=Ij(Ij({transition:g&&u?"transform ".concat(f,"ms ").concat(d):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&u&&v?"visible":"hidden",position:"absolute",top:0,left:0},w);return I.createElement("div",{tabIndex:-1,className:N,style:T,ref:function(D){r.wrapperNode=D}},h)}}])})(B.PureComponent),Pk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Bl={isSsr:Pk()};function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t0;return I.createElement(Rk,{allowEscapeViewBox:c,animationDuration:f,animationEasing:d,isAnimationActive:g,active:u,coordinate:y,hasPayload:T,offset:x,position:_,reverseDirection:E,useTranslate3d:w,viewBox:M,wrapperStyle:N},Hk(h,Gj(Gj({},this.props),{},{payload:A})))}}])})(B.PureComponent);Mb(vn,"displayName","Tooltip");Mb(vn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Bl.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var km,Yj;function Gk(){if(Yj)return km;Yj=1;var e=rr(),t=function(){return e.Date.now()};return km=t,km}var $m,Xj;function Yk(){if(Xj)return $m;Xj=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return $m=t,$m}var zm,Kj;function Xk(){if(Kj)return zm;Kj=1;var e=Yk(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return zm=n,zm}var qm,Vj;function xC(){if(Vj)return qm;Vj=1;var e=Xk(),t=xa(),n=$l(),r=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function d(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var y=typeof h.valueOf=="function"?h.valueOf():h;h=t(y)?y+"":y}if(typeof h!="string")return h===0?h:+h;h=e(h);var v=u.test(h);return v||c.test(h)?f(h.slice(2),v?2:8):l.test(h)?r:+h}return qm=d,qm}var Bm,Fj;function Kk(){if(Fj)return Bm;Fj=1;var e=xa(),t=Gk(),n=xC(),r="Expected a function",l=Math.max,u=Math.min;function c(f,d,h){var y,v,g,x,j,S,_=0,E=!1,w=!1,M=!0;if(typeof f!="function")throw new TypeError(r);d=n(d)||0,e(h)&&(E=!!h.leading,w="maxWait"in h,g=w?l(n(h.maxWait)||0,d):g,M="trailing"in h?!!h.trailing:M);function N(L){var Y=y,K=v;return y=v=void 0,_=L,x=f.apply(K,Y),x}function A(L){return _=L,j=setTimeout(D,d),E?N(L):x}function T(L){var Y=L-S,K=L-_,P=d-Y;return w?u(P,g-K):P}function C(L){var Y=L-S,K=L-_;return S===void 0||Y>=d||Y<0||w&&K>=g}function D(){var L=t();if(C(L))return $(L);j=setTimeout(D,T(L))}function $(L){return j=void 0,M&&y?N(L):(y=v=void 0,x)}function W(){j!==void 0&&clearTimeout(j),_=0,y=S=v=j=void 0}function X(){return j===void 0?x:$(t())}function U(){var L=t(),Y=C(L);if(y=arguments,v=this,S=L,Y){if(j===void 0)return A(S);if(w)return clearTimeout(j),j=setTimeout(D,d),N(S)}return j===void 0&&(j=setTimeout(D,d)),x}return U.cancel=W,U.flush=X,U}return Bm=c,Bm}var Lm,Wj;function Vk(){if(Wj)return Lm;Wj=1;var e=Kk(),t=xa(),n="Expected a function";function r(l,u,c){var f=!0,d=!0;if(typeof l!="function")throw new TypeError(n);return t(c)&&(f="leading"in c?!!c.leading:f,d="trailing"in c?!!c.trailing:d),e(l,u,{leading:f,maxWait:u,trailing:d})}return Lm=r,Lm}var Fk=Vk();const _C=Xe(Fk);function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function Zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(L=_C(L,S,{trailing:!0,leading:!1}));var Y=new ResizeObserver(L),K=A.current.getBoundingClientRect(),P=K.width,z=K.height;return X(P,z),Y.observe(A.current),function(){Y.disconnect()}},[X,S]);var U=B.useMemo(function(){var L=$.containerWidth,Y=$.containerHeight;if(L<0||Y<0)return null;Xn(Va(c)||Va(d),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,c,d),Xn(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=Va(c)?L:c,P=Va(d)?Y:d;n&&n>0&&(K?P=K/n:P&&(K=P*n),g&&P>g&&(P=g)),Xn(K>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
- height and width.`,K,P,c,d,y,v,n);var z=!Array.isArray(x)&&Mr(x.type).endsWith("Chart");return I.Children.map(x,function(F){return I.isValidElement(F)?B.cloneElement(F,vs({width:K,height:P},z?{style:vs({height:"100%",width:"100%",maxHeight:P,maxWidth:K},F.props.style)}:{})):F})},[n,x,d,g,v,y,$,c]);return I.createElement("div",{id:_?"".concat(_):void 0,className:Me("recharts-responsive-container",E),style:vs(vs({},N),{},{width:c,height:d,minWidth:y,minHeight:v,maxHeight:g}),ref:A},U)}),Hf=function(t){return null};Hf.displayName="Cell";function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function Qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function n0(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Bl.isSsr)return{width:0,height:0};var r=c$(n),l=JSON.stringify({text:t,copyStyle:r});if(Fi.widthCache[l])return Fi.widthCache[l];try{var u=document.getElementById(Jj);u||(u=document.createElement("span"),u.setAttribute("id",Jj),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));var c=n0(n0({},u$),r);Object.assign(u.style,c),u.textContent="".concat(t);var f=u.getBoundingClientRect(),d={width:f.width,height:f.height};return Fi.widthCache[l]=d,++Fi.cacheCount>o$&&(Fi.cacheCount=0,Fi.widthCache={}),d}catch{return{width:0,height:0}}},s$=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function Is(e,t){return p$(e)||h$(e,t)||d$(e,t)||f$()}function f$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d$(e,t){if(e){if(typeof e=="string")return eT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eT(e,t)}}function eT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E$(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lT(e,t){return R$(e)||N$(e,t)||C$(e,t)||M$()}function M$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C$(e,t){if(e){if(typeof e=="string")return oT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oT(e,t)}}function oT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return K.reduce(function(P,z){var F=z.word,ne=z.width,oe=P[P.length-1];if(oe&&(l==null||u||oe.width+ne+rz.width?P:z})};if(!y)return x;for(var S="โฆ",_=function(K){var P=v.slice(0,K),z=wC({breakAll:h,style:d,children:P+S}).wordsWithComputedWidth,F=g(z),ne=F.length>c||j(F).width>Number(l);return[ne,F]},E=0,w=v.length-1,M=0,N;E<=w&&M<=v.length-1;){var A=Math.floor((E+w)/2),T=A-1,C=_(T),D=lT(C,2),$=D[0],W=D[1],X=_(A),U=lT(X,1),L=U[0];if(!$&&!L&&(E=A+1),$&&L&&(w=A-1),!$&&L){N=W;break}M++}return N||x},uT=function(t){var n=Ce(t)?[]:t.toString().split(AC);return[{words:n}]},D$=function(t){var n=t.width,r=t.scaleToFit,l=t.children,u=t.style,c=t.breakAll,f=t.maxLines;if((n||r)&&!Bl.isSsr){var d,h,y=wC({breakAll:c,children:l,style:u});if(y){var v=y.wordsWithComputedWidth,g=y.spaceWidth;d=v,h=g}else return uT(l);return P$({breakAll:c,children:l,maxLines:f,style:u},d,h,n,r)}return uT(l)},cT="#808080",ri=function(t){var n=t.x,r=n===void 0?0:n,l=t.y,u=l===void 0?0:l,c=t.lineHeight,f=c===void 0?"1em":c,d=t.capHeight,h=d===void 0?"0.71em":d,y=t.scaleToFit,v=y===void 0?!1:y,g=t.textAnchor,x=g===void 0?"start":g,j=t.verticalAnchor,S=j===void 0?"end":j,_=t.fill,E=_===void 0?cT:_,w=iT(t,j$),M=B.useMemo(function(){return D$({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:v,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,v,w.style,w.width]),N=w.dx,A=w.dy,T=w.angle,C=w.className,D=w.breakAll,$=iT(w,T$);if(!At(r)||!At(u))return null;var W=r+(fe(N)?N:0),X=u+(fe(A)?A:0),U;switch(S){case"start":U=Im("calc(".concat(h,")"));break;case"middle":U=Im("calc(".concat((M.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:U=Im("calc(".concat(M.length-1," * -").concat(f,")"));break}var L=[];if(v){var Y=M[0].width,K=w.width;L.push("scale(".concat((fe(K)?K/Y:1)/Y,")"))}return T&&L.push("rotate(".concat(T,", ").concat(W,", ").concat(X,")")),L.length&&($.transform=L.join(" ")),I.createElement("text",r0({},_e($,!0),{x:W,y:X,className:Me("recharts-text",C),textAnchor:x,fill:E.includes("url")?cT:E}),M.map(function(P,z){var F=P.words.join(D?"":" ");return I.createElement("tspan",{x:W,dy:z===0?U:f,key:"".concat(F,"-").concat(z)},F)}))};function ga(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function k$(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Mb(e){let t,n,r;e.length!==2?(t=ga,n=(f,d)=>ga(e(f),d),r=(f,d)=>e(f)-d):(t=e===ga||e===k$?e:$$,n=e,r=e);function l(f,d,h=0,y=f.length){if(h>>1;n(f[v],d)<0?h=v+1:y=v}while(h>>1;n(f[v],d)<=0?h=v+1:y=v}while(hh&&r(f[v-1],d)>-r(f[v],d)?v-1:v}return{left:l,center:c,right:u}}function $$(){return 0}function jC(e){return e===null?NaN:+e}function*z$(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const q$=Mb(ga),Gu=q$.right;Mb(jC).center;class sT extends Map{constructor(t,n=I$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,l]of t)this.set(r,l)}get(t){return super.get(fT(this,t))}has(t){return super.has(fT(this,t))}set(t,n){return super.set(B$(this,t),n)}delete(t){return super.delete(L$(this,t))}}function fT({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function B$({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function L$({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function I$(e){return e!==null&&typeof e=="object"?e.valueOf():e}function U$(e=ga){if(e===ga)return TC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function TC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const H$=Math.sqrt(50),G$=Math.sqrt(10),Y$=Math.sqrt(2);function Us(e,t,n){const r=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(r)),u=r/Math.pow(10,l),c=u>=H$?10:u>=G$?5:u>=Y$?2:1;let f,d,h;return l<0?(h=Math.pow(10,-l)/c,f=Math.round(e*h),d=Math.round(t*h),f/ht&&--d,h=-h):(h=Math.pow(10,l)*c,f=Math.round(e/h),d=Math.round(t/h),f*ht&&--d),d0))return[];if(e===t)return[e];const r=t=l))return[];const f=u-l+1,d=new Array(f);if(r)if(c<0)for(let h=0;h=r)&&(n=r);return n}function hT(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function EC(e,t,n=0,r=1/0,l){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(l=l===void 0?TC:U$(l);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,y=Math.log(d),v=.5*Math.exp(2*y/3),g=.5*Math.sqrt(y*v*(d-v)/d)*(h-d/2<0?-1:1),x=Math.max(n,Math.floor(t-h*v/d+g)),j=Math.min(r,Math.floor(t+(d-h)*v/d+g));EC(e,t,x,j,l)}const u=e[t];let c=n,f=r;for(Io(e,n,t),l(e[r],u)>0&&Io(e,n,r);c0;)--f}l(e[n],u)===0?Io(e,n,f):(++f,Io(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function Io(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function X$(e,t,n){if(e=Float64Array.from(z$(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return hT(e);if(t>=1)return dT(e);var r,l=(r-1)*t,u=Math.floor(l),c=dT(EC(e,u).subarray(0,u+1)),f=hT(e.subarray(u+1));return c+(f-c)*(l-u)}}function K$(e,t,n=jC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,l=(r-1)*t,u=Math.floor(l),c=+n(e[u],u,e),f=+n(e[u+1],u+1,e);return c+(f-c)*(l-u)}}function V$(e,t,n){e=+e,t=+t,n=(l=arguments.length)<2?(t=e,e=0,1):l<3?1:+n;for(var r=-1,l=Math.max(0,Math.ceil((t-e)/n))|0,u=new Array(l);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=W$.exec(e))?new tn(t[1],t[2],t[3],1):(t=Z$.exec(e))?new tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q$.exec(e))?ms(t[1],t[2],t[3],t[4]):(t=J$.exec(e))?ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ez.exec(e))?xT(t[1],t[2]/100,t[3]/100,1):(t=tz.exec(e))?xT(t[1],t[2]/100,t[3]/100,t[4]):pT.hasOwnProperty(e)?mT(pT[e]):e==="transparent"?new tn(NaN,NaN,NaN,0):null}function mT(e){return new tn(e>>16&255,e>>8&255,e&255,1)}function ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new tn(e,t,n,r)}function az(e){return e instanceof Yu||(e=vu(e)),e?(e=e.rgb(),new tn(e.r,e.g,e.b,e.opacity)):new tn}function u0(e,t,n,r){return arguments.length===1?az(e):new tn(e,t,n,r??1)}function tn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Nb(tn,u0,CC(Yu,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new tn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hu:Math.pow(hu,e),new tn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tn(Ja(this.r),Ja(this.g),Ja(this.b),Gs(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gT,formatHex:gT,formatHex8:iz,formatRgb:bT,toString:bT}));function gT(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}`}function iz(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}${Fa((isNaN(this.opacity)?1:this.opacity)*255)}`}function bT(){const e=Gs(this.opacity);return`${e===1?"rgb(":"rgba("}${Ja(this.r)}, ${Ja(this.g)}, ${Ja(this.b)}${e===1?")":`, ${e})`}`}function Gs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ja(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fa(e){return e=Ja(e),(e<16?"0":"")+e.toString(16)}function xT(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function NC(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof Yu||(e=vu(e)),!e)return new Yn;if(e instanceof Yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),u=Math.max(t,n,r),c=NaN,f=u-l,d=(u+l)/2;return f?(t===u?c=(n-r)/f+(n0&&d<1?0:c,new Yn(c,f,d,e.opacity)}function lz(e,t,n,r){return arguments.length===1?NC(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Nb(Yn,lz,CC(Yu,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hu:Math.pow(hu,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new tn(Um(e>=240?e-240:e+120,l,r),Um(e,l,r),Um(e<120?e+240:e-120,l,r),this.opacity)},clamp(){return new Yn(_T(this.h),gs(this.s),gs(this.l),Gs(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gs(this.opacity);return`${e===1?"hsl(":"hsla("}${_T(this.h)}, ${gs(this.s)*100}%, ${gs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _T(e){return e=(e||0)%360,e<0?e+360:e}function gs(e){return Math.max(0,Math.min(1,e||0))}function Um(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Rb=e=>()=>e;function oz(e,t){return function(n){return e+n*t}}function uz(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function cz(e){return(e=+e)==1?RC:function(t,n){return n-t?uz(t,n,e):Rb(isNaN(t)?n:t)}}function RC(e,t){var n=t-e;return n?oz(e,n):Rb(isNaN(e)?t:e)}const ST=(function e(t){var n=cz(t);function r(l,u){var c=n((l=u0(l)).r,(u=u0(u)).r),f=n(l.g,u.g),d=n(l.b,u.b),h=RC(l.opacity,u.opacity);return function(y){return l.r=c(y),l.g=f(y),l.b=d(y),l.opacity=h(y),l+""}}return r.gamma=e,r})(1);function sz(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(u){for(l=0;ln&&(u=t.slice(n,u),f[c]?f[c]+=u:f[++c]=u),(r=r[0])===(l=l[0])?f[c]?f[c]+=l:f[++c]=l:(f[++c]=null,d.push({i:c,x:Ys(r,l)})),n=Hm.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function _z(e,t,n){var r=e[0],l=e[1],u=t[0],c=t[1];return l2?Sz:_z,d=h=null,v}function v(g){return g==null||isNaN(g=+g)?u:(d||(d=f(e.map(r),t,n)))(r(c(g)))}return v.invert=function(g){return c(l((h||(h=f(t,e.map(r),Ys)))(g)))},v.domain=function(g){return arguments.length?(e=Array.from(g,Xs),y()):e.slice()},v.range=function(g){return arguments.length?(t=Array.from(g),y()):t.slice()},v.rangeRound=function(g){return t=Array.from(g),n=Pb,y()},v.clamp=function(g){return arguments.length?(c=g?!0:Kt,y()):c!==Kt},v.interpolate=function(g){return arguments.length?(n=g,y()):n},v.unknown=function(g){return arguments.length?(u=g,v):u},function(g,x){return r=g,l=x,y()}}function Db(){return Gf()(Kt,Kt)}function Oz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ks(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function vl(e){return e=Ks(Math.abs(e)),e?e[1]:NaN}function Az(e,t){return function(n,r){for(var l=n.length,u=[],c=0,f=e[0],d=0;l>0&&f>0&&(d+f+1>r&&(f=Math.max(1,r-d)),u.push(n.substring(l-=f,l+f)),!((d+=f+1)>r));)f=e[c=(c+1)%e.length];return u.reverse().join(t)}}function wz(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var jz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yu(e){if(!(t=jz.exec(e)))throw new Error("invalid format: "+e);var t;return new kb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}yu.prototype=kb.prototype;function kb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}kb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Tz(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var Vs;function Ez(e,t){var n=Ks(e,t);if(!n)return Vs=void 0,e.toPrecision(t);var r=n[0],l=n[1],u=l-(Vs=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,c=r.length;return u===c?r:u>c?r+new Array(u-c+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+Ks(e,Math.max(0,t+u-1))[0]}function AT(e,t){var n=Ks(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const wT={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Oz,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>AT(e*100,t),r:AT,s:Ez,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jT(e){return e}var TT=Array.prototype.map,ET=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];function Mz(e){var t=e.grouping===void 0||e.thousands===void 0?jT:Az(TT.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",u=e.numerals===void 0?jT:wz(TT.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"โ":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(v,g){v=yu(v);var x=v.fill,j=v.align,S=v.sign,_=v.symbol,E=v.zero,w=v.width,M=v.comma,N=v.precision,A=v.trim,T=v.type;T==="n"?(M=!0,T="g"):wT[T]||(N===void 0&&(N=12),A=!0,T="g"),(E||x==="0"&&j==="=")&&(E=!0,x="0",j="=");var C=(g&&g.prefix!==void 0?g.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),D=(_==="$"?r:/[%p]/.test(T)?c:"")+(g&&g.suffix!==void 0?g.suffix:""),$=wT[T],W=/[defgprs%]/.test(T);N=N===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function X(U){var L=C,Y=D,K,P,z;if(T==="c")Y=$(U)+Y,U="";else{U=+U;var F=U<0||1/U<0;if(U=isNaN(U)?d:$(Math.abs(U),N),A&&(U=Tz(U)),F&&+U==0&&S!=="+"&&(F=!1),L=(F?S==="("?S:f:S==="-"||S==="("?"":S)+L,Y=(T==="s"&&!isNaN(U)&&Vs!==void 0?ET[8+Vs/3]:"")+Y+(F&&S==="("?")":""),W){for(K=-1,P=U.length;++Kz||z>57){Y=(z===46?l+U.slice(K+1):U.slice(K))+Y,U=U.slice(0,K);break}}}M&&!E&&(U=t(U,1/0));var ne=L.length+U.length+Y.length,oe=ne>1)+L+U+Y+oe.slice(ne);break;default:U=oe+L+U+Y;break}return u(U)}return X.toString=function(){return v+""},X}function y(v,g){var x=Math.max(-8,Math.min(8,Math.floor(vl(g)/3)))*3,j=Math.pow(10,-x),S=h((v=yu(v),v.type="f",v),{suffix:ET[8+x/3]});return function(_){return S(j*_)}}return{format:h,formatPrefix:y}}var bs,$b,PC;Cz({thousands:",",grouping:[3],currency:["$",""]});function Cz(e){return bs=Mz(e),$b=bs.format,PC=bs.formatPrefix,bs}function Nz(e){return Math.max(0,-vl(Math.abs(e)))}function Rz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vl(t)/3)))*3-vl(Math.abs(e)))}function Pz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vl(t)-vl(e))+1}function DC(e,t,n,r){var l=l0(e,t,n),u;switch(r=yu(r??",f"),r.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(u=Rz(l,c))&&(r.precision=u),PC(r,c)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(u=Pz(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=u-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(u=Nz(l))&&(r.precision=u-(r.type==="%")*2);break}}return $b(r)}function _a(e){var t=e.domain;return e.ticks=function(n){var r=t();return a0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return DC(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,u=r.length-1,c=r[l],f=r[u],d,h,y=10;for(f0;){if(h=i0(c,f,n),h===d)return r[l]=c,r[u]=f,t(r);if(h>0)c=Math.floor(c/h)*h,f=Math.ceil(f/h)*h;else if(h<0)c=Math.ceil(c*h)/h,f=Math.floor(f*h)/h;else break;d=h}return e},e}function Fs(){var e=Db();return e.copy=function(){return Xu(e,Fs())},$n.apply(e,arguments),_a(e)}function kC(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Xs),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return kC(e).unknown(t)},e=arguments.length?Array.from(e,Xs):[0,1],_a(n)}function $C(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],u=e[r],c;return uMath.pow(e,t)}function qz(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function NT(e){return(t,n)=>-e(-t,n)}function zb(e){const t=e(MT,CT),n=t.domain;let r=10,l,u;function c(){return l=qz(r),u=zz(r),n()[0]<0?(l=NT(l),u=NT(u),e(Dz,kz)):e(MT,CT),t}return t.base=function(f){return arguments.length?(r=+f,c()):r},t.domain=function(f){return arguments.length?(n(f),c()):n()},t.ticks=f=>{const d=n();let h=d[0],y=d[d.length-1];const v=y0){for(;g<=x;++g)for(j=1;jy)break;E.push(S)}}else for(;g<=x;++g)for(j=r-1;j>=1;--j)if(S=g>0?j/u(-g):j*u(g),!(Sy)break;E.push(S)}E.length*2<_&&(E=a0(h,y,_))}else E=a0(g,x,Math.min(x-g,_)).map(u);return v?E.reverse():E},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=yu(d)).precision==null&&(d.trim=!0),d=$b(d)),f===1/0)return d;const h=Math.max(1,r*f/t.ticks().length);return y=>{let v=y/u(Math.round(l(y)));return v*rn($C(n(),{floor:f=>u(Math.floor(l(f))),ceil:f=>u(Math.ceil(l(f)))})),t}function zC(){const e=zb(Gf()).domain([1,10]);return e.copy=()=>Xu(e,zC()).base(e.base()),$n.apply(e,arguments),e}function RT(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function PT(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qb(e){var t=1,n=e(RT(t),PT(t));return n.constant=function(r){return arguments.length?e(RT(t=+r),PT(t)):t},_a(n)}function qC(){var e=qb(Gf());return e.copy=function(){return Xu(e,qC()).constant(e.constant())},$n.apply(e,arguments)}function DT(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Bz(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Lz(e){return e<0?-e*e:e*e}function Bb(e){var t=e(Kt,Kt),n=1;function r(){return n===1?e(Kt,Kt):n===.5?e(Bz,Lz):e(DT(n),DT(1/n))}return t.exponent=function(l){return arguments.length?(n=+l,r()):n},_a(t)}function Lb(){var e=Bb(Gf());return e.copy=function(){return Xu(e,Lb()).exponent(e.exponent())},$n.apply(e,arguments),e}function Iz(){return Lb.apply(null,arguments).exponent(.5)}function kT(e){return Math.sign(e)*e*e}function Uz(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function BC(){var e=Db(),t=[0,1],n=!1,r;function l(u){var c=Uz(e(u));return isNaN(c)?r:n?Math.round(c):c}return l.invert=function(u){return e.invert(kT(u))},l.domain=function(u){return arguments.length?(e.domain(u),l):e.domain()},l.range=function(u){return arguments.length?(e.range((t=Array.from(u,Xs)).map(kT)),l):t.slice()},l.rangeRound=function(u){return l.range(u).round(!0)},l.round=function(u){return arguments.length?(n=!!u,l):n},l.clamp=function(u){return arguments.length?(e.clamp(u),l):e.clamp()},l.unknown=function(u){return arguments.length?(r=u,l):r},l.copy=function(){return BC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(l,arguments),_a(l)}function LC(){var e=[],t=[],n=[],r;function l(){var c=0,f=Math.max(1,t.length);for(n=new Array(f-1);++c0?n[f-1]:e[0],f=n?[r[n-1],t]:[r[h-1],r[h]]},c.unknown=function(d){return arguments.length&&(u=d),c},c.thresholds=function(){return r.slice()},c.copy=function(){return IC().domain([e,t]).range(l).unknown(u)},$n.apply(_a(c),arguments)}function UC(){var e=[.5],t=[0,1],n,r=1;function l(u){return u!=null&&u<=u?t[Gu(e,u,0,r)]:n}return l.domain=function(u){return arguments.length?(e=Array.from(u),r=Math.min(e.length,t.length-1),l):e.slice()},l.range=function(u){return arguments.length?(t=Array.from(u),r=Math.min(e.length,t.length-1),l):t.slice()},l.invertExtent=function(u){var c=t.indexOf(u);return[e[c-1],e[c]]},l.unknown=function(u){return arguments.length?(n=u,l):n},l.copy=function(){return UC().domain(e).range(t).unknown(n)},$n.apply(l,arguments)}const Gm=new Date,Ym=new Date;function wt(e,t,n,r){function l(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return l.floor=u=>(e(u=new Date(+u)),u),l.ceil=u=>(e(u=new Date(u-1)),t(u,1),e(u),u),l.round=u=>{const c=l(u),f=l.ceil(u);return u-c(t(u=new Date(+u),c==null?1:Math.floor(c)),u),l.range=(u,c,f)=>{const d=[];if(u=l.ceil(u),f=f==null?1:Math.floor(f),!(u0))return d;let h;do d.push(h=new Date(+u)),t(u,f),e(u);while(hwt(c=>{if(c>=c)for(;e(c),!u(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;t(c,-1),!u(c););else for(;--f>=0;)for(;t(c,1),!u(c););}),n&&(l.count=(u,c)=>(Gm.setTime(+u),Ym.setTime(+c),e(Gm),e(Ym),Math.floor(n(Gm,Ym))),l.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?l.filter(r?c=>r(c)%u===0:c=>l.count(0,c)%u===0):l)),l}const Ws=wt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ws.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?wt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ws);Ws.range;const jr=1e3,Pn=jr*60,Tr=Pn*60,Nr=Tr*24,Ib=Nr*7,$T=Nr*30,Xm=Nr*365,Wa=wt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jr)},(e,t)=>(t-e)/jr,e=>e.getUTCSeconds());Wa.range;const Ub=wt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jr)},(e,t)=>{e.setTime(+e+t*Pn)},(e,t)=>(t-e)/Pn,e=>e.getMinutes());Ub.range;const Hb=wt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Pn)},(e,t)=>(t-e)/Pn,e=>e.getUTCMinutes());Hb.range;const Gb=wt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jr-e.getMinutes()*Pn)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getHours());Gb.range;const Yb=wt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getUTCHours());Yb.range;const Ku=wt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pn)/Nr,e=>e.getDate()-1);Ku.range;const Yf=wt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>e.getUTCDate()-1);Yf.range;const HC=wt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>Math.floor(e/Nr));HC.range;function ui(e){return wt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pn)/Ib)}const Xf=ui(0),Zs=ui(1),Hz=ui(2),Gz=ui(3),yl=ui(4),Yz=ui(5),Xz=ui(6);Xf.range;Zs.range;Hz.range;Gz.range;yl.range;Yz.range;Xz.range;function ci(e){return wt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ib)}const Kf=ci(0),Qs=ci(1),Kz=ci(2),Vz=ci(3),ml=ci(4),Fz=ci(5),Wz=ci(6);Kf.range;Qs.range;Kz.range;Vz.range;ml.range;Fz.range;Wz.range;const Xb=wt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Xb.range;const Kb=wt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Kb.range;const Rr=wt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Rr.range;const Pr=wt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pr.range;function GC(e,t,n,r,l,u){const c=[[Wa,1,jr],[Wa,5,5*jr],[Wa,15,15*jr],[Wa,30,30*jr],[u,1,Pn],[u,5,5*Pn],[u,15,15*Pn],[u,30,30*Pn],[l,1,Tr],[l,3,3*Tr],[l,6,6*Tr],[l,12,12*Tr],[r,1,Nr],[r,2,2*Nr],[n,1,Ib],[t,1,$T],[t,3,3*$T],[e,1,Xm]];function f(h,y,v){const g=y_).right(c,g);if(x===c.length)return e.every(l0(h/Xm,y/Xm,v));if(x===0)return Ws.every(Math.max(l0(h,y,v),1));const[j,S]=c[g/c[x-1][2]53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Te=Vm(Uo(ue.y,0,1)),ut=Te.getUTCDay(),Te=ut>4||ut===0?Qs.ceil(Te):Qs(Te),Te=Yf.offset(Te,(ue.V-1)*7),ue.y=Te.getUTCFullYear(),ue.m=Te.getUTCMonth(),ue.d=Te.getUTCDate()+(ue.w+6)%7):(Te=Km(Uo(ue.y,0,1)),ut=Te.getDay(),Te=ut>4||ut===0?Zs.ceil(Te):Zs(Te),Te=Ku.offset(Te,(ue.V-1)*7),ue.y=Te.getFullYear(),ue.m=Te.getMonth(),ue.d=Te.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),ut="Z"in ue?Vm(Uo(ue.y,0,1)).getUTCDay():Km(Uo(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(ut+5)%7:ue.w+ue.U*7-(ut+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,Vm(ue)):Km(ue)}}function D(se,be,Ae,ue){for(var nt=0,Te=be.length,ut=Ae.length,ct,zt;nt=ut)return-1;if(ct=be.charCodeAt(nt++),ct===37){if(ct=be.charAt(nt++),zt=A[ct in zT?be.charAt(nt++):ct],!zt||(ue=zt(se,Ae,ue))<0)return-1}else if(ct!=Ae.charCodeAt(ue++))return-1}return ue}function $(se,be,Ae){var ue=h.exec(be.slice(Ae));return ue?(se.p=y.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function W(se,be,Ae){var ue=x.exec(be.slice(Ae));return ue?(se.w=j.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function X(se,be,Ae){var ue=v.exec(be.slice(Ae));return ue?(se.w=g.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function U(se,be,Ae){var ue=E.exec(be.slice(Ae));return ue?(se.m=w.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function L(se,be,Ae){var ue=S.exec(be.slice(Ae));return ue?(se.m=_.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function Y(se,be,Ae){return D(se,t,be,Ae)}function K(se,be,Ae){return D(se,n,be,Ae)}function P(se,be,Ae){return D(se,r,be,Ae)}function z(se){return c[se.getDay()]}function F(se){return u[se.getDay()]}function ne(se){return d[se.getMonth()]}function oe(se){return f[se.getMonth()]}function k(se){return l[+(se.getHours()>=12)]}function G(se){return 1+~~(se.getMonth()/3)}function te(se){return c[se.getUTCDay()]}function ce(se){return u[se.getUTCDay()]}function de(se){return d[se.getUTCMonth()]}function me(se){return f[se.getUTCMonth()]}function Oe(se){return l[+(se.getUTCHours()>=12)]}function $e(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var be=T(se+="",M);return be.toString=function(){return se},be},parse:function(se){var be=C(se+="",!1);return be.toString=function(){return se},be},utcFormat:function(se){var be=T(se+="",N);return be.toString=function(){return se},be},utcParse:function(se){var be=C(se+="",!0);return be.toString=function(){return se},be}}}var zT={"-":"",_:" ",0:"0"},Ct=/^\s*\d+/,nq=/^%/,rq=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",u=l.length;return r+(u[t.toLowerCase(),n]))}function iq(e,t,n){var r=Ct.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lq(e,t,n){var r=Ct.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function oq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qT(e,t,n){var r=Ct.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function BT(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fq(e,t,n){var r=Ct.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function dq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function LT(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hq(e,t,n){var r=Ct.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function IT(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function pq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function yq(e,t,n){var r=Ct.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mq(e,t,n){var r=Ct.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gq(e,t,n){var r=nq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bq(e,t,n){var r=Ct.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xq(e,t,n){var r=Ct.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function UT(e,t){return Be(e.getDate(),t,2)}function _q(e,t){return Be(e.getHours(),t,2)}function Sq(e,t){return Be(e.getHours()%12||12,t,2)}function Oq(e,t){return Be(1+Ku.count(Rr(e),e),t,3)}function YC(e,t){return Be(e.getMilliseconds(),t,3)}function Aq(e,t){return YC(e,t)+"000"}function wq(e,t){return Be(e.getMonth()+1,t,2)}function jq(e,t){return Be(e.getMinutes(),t,2)}function Tq(e,t){return Be(e.getSeconds(),t,2)}function Eq(e){var t=e.getDay();return t===0?7:t}function Mq(e,t){return Be(Xf.count(Rr(e)-1,e),t,2)}function XC(e){var t=e.getDay();return t>=4||t===0?yl(e):yl.ceil(e)}function Cq(e,t){return e=XC(e),Be(yl.count(Rr(e),e)+(Rr(e).getDay()===4),t,2)}function Nq(e){return e.getDay()}function Rq(e,t){return Be(Zs.count(Rr(e)-1,e),t,2)}function Pq(e,t){return Be(e.getFullYear()%100,t,2)}function Dq(e,t){return e=XC(e),Be(e.getFullYear()%100,t,2)}function kq(e,t){return Be(e.getFullYear()%1e4,t,4)}function $q(e,t){var n=e.getDay();return e=n>=4||n===0?yl(e):yl.ceil(e),Be(e.getFullYear()%1e4,t,4)}function zq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function HT(e,t){return Be(e.getUTCDate(),t,2)}function qq(e,t){return Be(e.getUTCHours(),t,2)}function Bq(e,t){return Be(e.getUTCHours()%12||12,t,2)}function Lq(e,t){return Be(1+Yf.count(Pr(e),e),t,3)}function KC(e,t){return Be(e.getUTCMilliseconds(),t,3)}function Iq(e,t){return KC(e,t)+"000"}function Uq(e,t){return Be(e.getUTCMonth()+1,t,2)}function Hq(e,t){return Be(e.getUTCMinutes(),t,2)}function Gq(e,t){return Be(e.getUTCSeconds(),t,2)}function Yq(e){var t=e.getUTCDay();return t===0?7:t}function Xq(e,t){return Be(Kf.count(Pr(e)-1,e),t,2)}function VC(e){var t=e.getUTCDay();return t>=4||t===0?ml(e):ml.ceil(e)}function Kq(e,t){return e=VC(e),Be(ml.count(Pr(e),e)+(Pr(e).getUTCDay()===4),t,2)}function Vq(e){return e.getUTCDay()}function Fq(e,t){return Be(Qs.count(Pr(e)-1,e),t,2)}function Wq(e,t){return Be(e.getUTCFullYear()%100,t,2)}function Zq(e,t){return e=VC(e),Be(e.getUTCFullYear()%100,t,2)}function Qq(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function Jq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ml(e):ml.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function e5(){return"+0000"}function GT(){return"%"}function YT(e){return+e}function XT(e){return Math.floor(+e/1e3)}var Wi,FC,WC;t5({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"]});function t5(e){return Wi=tq(e),FC=Wi.format,Wi.parse,WC=Wi.utcFormat,Wi.utcParse,Wi}function n5(e){return new Date(e)}function r5(e){return e instanceof Date?+e:+new Date(+e)}function Vb(e,t,n,r,l,u,c,f,d,h){var y=Db(),v=y.invert,g=y.domain,x=h(".%L"),j=h(":%S"),S=h("%I:%M"),_=h("%I %p"),E=h("%a %d"),w=h("%b %d"),M=h("%B"),N=h("%Y");function A(T){return(d(T)t(l/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(l,u)=>X$(e,u/r))},n.copy=function(){return eN(t).domain(e)},Br.apply(n,arguments)}function Ff(){var e=0,t=.5,n=1,r=1,l,u,c,f,d,h=Kt,y,v=!1,g;function x(S){return isNaN(S=+S)?g:(S=.5+((S=+y(S))-u)*(r*Sn}return Wm=e,Wm}var Zm,WT;function u5(){if(WT)return Zm;WT=1;var e=Wf(),t=aN(),n=ql();function r(l){return l&&l.length?e(l,n,t):void 0}return Zm=r,Zm}var c5=u5();const Zf=Xe(c5);var Qm,ZT;function iN(){if(ZT)return Qm;ZT=1;function e(t,n){return te.e^u.s<0?1:-1;for(r=u.d.length,l=e.d.length,t=0,n=re.d[t]^u.s<0?1:-1;return r===l?0:r>l^u.s<0?1:-1};he.decimalPlaces=he.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*it;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};he.dividedBy=he.div=function(e){return Cr(this,new this.constructor(e))};he.dividedToIntegerBy=he.idiv=function(e){var t=this,n=t.constructor;return Qe(Cr(t,new n(e),0,1),n.precision)};he.equals=he.eq=function(e){return!this.cmp(e)};he.exponent=function(){return xt(this)};he.greaterThan=he.gt=function(e){return this.cmp(e)>0};he.greaterThanOrEqualTo=he.gte=function(e){return this.cmp(e)>=0};he.isInteger=he.isint=function(){return this.e>this.d.length-2};he.isNegative=he.isneg=function(){return this.s<0};he.isPositive=he.ispos=function(){return this.s>0};he.isZero=function(){return this.s===0};he.lessThan=he.lt=function(e){return this.cmp(e)<0};he.lessThanOrEqualTo=he.lte=function(e){return this.cmp(e)<1};he.logarithm=he.log=function(e){var t,n=this,r=n.constructor,l=r.precision,u=l+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(yn))throw Error(kn+"NaN");if(n.s<1)throw Error(kn+(n.s?"NaN":"-Infinity"));return n.eq(yn)?new r(0):(ot=!1,t=Cr(mu(n,u),mu(e,u),u),ot=!0,Qe(t,l))};he.minus=he.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cN(t,e):oN(t,(e.s=-e.s,e))};he.modulo=he.mod=function(e){var t,n=this,r=n.constructor,l=r.precision;if(e=new r(e),!e.s)throw Error(kn+"NaN");return n.s?(ot=!1,t=Cr(n,e,0,1).times(e),ot=!0,n.minus(t)):Qe(new r(n),l)};he.naturalExponential=he.exp=function(){return uN(this)};he.naturalLogarithm=he.ln=function(){return mu(this)};he.negated=he.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};he.plus=he.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oN(t,e):cN(t,(e.s=-e.s,e))};he.precision=he.sd=function(e){var t,n,r,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ei+e);if(t=xt(l)+1,r=l.d.length-1,n=r*it+1,r=l.d[r],r){for(;r%10==0;r/=10)n--;for(r=l.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};he.squareRoot=he.sqrt=function(){var e,t,n,r,l,u,c,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(kn+"NaN")}for(e=xt(f),ot=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Jn(f.d),(t.length+e)%2==0&&(t+="0"),l=Math.sqrt(t),e=Ul((e+1)/2)-(e<0||e%2),l==1/0?t="5e"+e:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(l.toString()),n=d.precision,l=c=n+3;;)if(u=r,r=u.plus(Cr(f,u,c+2)).times(.5),Jn(u.d).slice(0,c)===(t=Jn(r.d)).slice(0,c)){if(t=t.slice(c-3,c+1),l==c&&t=="4999"){if(Qe(u,n+1,0),u.times(u).eq(f)){r=u;break}}else if(t!="9999")break;c+=4}return ot=!0,Qe(r,n)};he.times=he.mul=function(e){var t,n,r,l,u,c,f,d,h,y=this,v=y.constructor,g=y.d,x=(e=new v(e)).d;if(!y.s||!e.s)return new v(0);for(e.s*=y.s,n=y.e+e.e,d=g.length,h=x.length,d=0;){for(t=0,l=d+r;l>r;)f=u[l]+x[r]*g[l-r-1]+t,u[l--]=f%Et|0,t=f/Et|0;u[l]=(u[l]+t)%Et|0}for(;!u[--c];)u.pop();return t?++n:u.shift(),e.d=u,e.e=n,ot?Qe(e,v.precision):e};he.toDecimalPlaces=he.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(nr(e,0,Il),t===void 0?t=r.rounding:nr(t,0,8),Qe(n,e+xt(n)+1,t))};he.toExponential=function(e,t){var n,r=this,l=r.constructor;return e===void 0?n=ai(r,!0):(nr(e,0,Il),t===void 0?t=l.rounding:nr(t,0,8),r=Qe(new l(r),e+1,t),n=ai(r,!0,e+1)),n};he.toFixed=function(e,t){var n,r,l=this,u=l.constructor;return e===void 0?ai(l):(nr(e,0,Il),t===void 0?t=u.rounding:nr(t,0,8),r=Qe(new u(l),e+xt(l)+1,t),n=ai(r.abs(),!1,e+xt(r)+1),l.isneg()&&!l.isZero()?"-"+n:n)};he.toInteger=he.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),xt(e)+1,t.rounding)};he.toNumber=function(){return+this};he.toPower=he.pow=function(e){var t,n,r,l,u,c,f=this,d=f.constructor,h=12,y=+(e=new d(e));if(!e.s)return new d(yn);if(f=new d(f),!f.s){if(e.s<1)throw Error(kn+"Infinity");return f}if(f.eq(yn))return f;if(r=d.precision,e.eq(yn))return Qe(f,r);if(t=e.e,n=e.d.length-1,c=t>=n,u=f.s,c){if((n=y<0?-y:y)<=lN){for(l=new d(yn),t=Math.ceil(r/it+4),ot=!1;n%2&&(l=l.times(f),rE(l.d,t)),n=Ul(n/2),n!==0;)f=f.times(f),rE(f.d,t);return ot=!0,e.s<0?new d(yn).div(l):Qe(l,r)}}else if(u<0)throw Error(kn+"NaN");return u=u<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,ot=!1,l=e.times(mu(f,r+h)),ot=!0,l=uN(l),l.s=u,l};he.toPrecision=function(e,t){var n,r,l=this,u=l.constructor;return e===void 0?(n=xt(l),r=ai(l,n<=u.toExpNeg||n>=u.toExpPos)):(nr(e,1,Il),t===void 0?t=u.rounding:nr(t,0,8),l=Qe(new u(l),e,t),n=xt(l),r=ai(l,e<=n||n<=u.toExpNeg,e)),r};he.toSignificantDigits=he.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(nr(e,1,Il),t===void 0?t=r.rounding:nr(t,0,8)),Qe(new r(n),e,t)};he.toString=he.valueOf=he.val=he.toJSON=he[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xt(e),n=e.constructor;return ai(e,t<=n.toExpNeg||t>=n.toExpPos)};function oN(e,t){var n,r,l,u,c,f,d,h,y=e.constructor,v=y.precision;if(!e.s||!t.s)return t.s||(t=new y(e)),ot?Qe(t,v):t;if(d=e.d,h=t.d,c=e.e,l=t.e,d=d.slice(),u=c-l,u){for(u<0?(r=d,u=-u,f=h.length):(r=h,l=c,f=d.length),c=Math.ceil(v/it),f=c>f?c+1:f+1,u>f&&(u=f,r.length=1),r.reverse();u--;)r.push(0);r.reverse()}for(f=d.length,u=h.length,f-u<0&&(u=f,r=h,h=d,d=r),n=0;u;)n=(d[--u]=d[u]+h[u]+n)/Et|0,d[u]%=Et;for(n&&(d.unshift(n),++l),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=l,ot?Qe(t,v):t}function nr(e,t,n){if(e!==~~e||en)throw Error(ei+e)}function Jn(e){var t,n,r,l=e.length-1,u="",c=e[0];if(l>0){for(u+=c,t=1;tc?1:-1;else for(f=d=0;fl[f]?1:-1;break}return d}function n(r,l,u){for(var c=0;u--;)r[u]-=c,c=r[u]1;)r.shift()}return function(r,l,u,c){var f,d,h,y,v,g,x,j,S,_,E,w,M,N,A,T,C,D,$=r.constructor,W=r.s==l.s?1:-1,X=r.d,U=l.d;if(!r.s)return new $(r);if(!l.s)throw Error(kn+"Division by zero");for(d=r.e-l.e,C=U.length,A=X.length,x=new $(W),j=x.d=[],h=0;U[h]==(X[h]||0);)++h;if(U[h]>(X[h]||0)&&--d,u==null?w=u=$.precision:c?w=u+(xt(r)-xt(l))+1:w=u,w<0)return new $(0);if(w=w/it+2|0,h=0,C==1)for(y=0,U=U[0],w++;(h1&&(U=e(U,y),X=e(X,y),C=U.length,A=X.length),N=C,S=X.slice(0,C),_=S.length;_=Et/2&&++T;do y=0,f=t(U,S,C,_),f<0?(E=S[0],C!=_&&(E=E*Et+(S[1]||0)),y=E/T|0,y>1?(y>=Et&&(y=Et-1),v=e(U,y),g=v.length,_=S.length,f=t(v,S,g,_),f==1&&(y--,n(v,C16)throw Error(Zb+xt(e));if(!e.s)return new y(yn);for(ot=!1,f=v,c=new y(.03125);e.abs().gte(.1);)e=e.times(c),h+=5;for(r=Math.log(Xa(2,h))/Math.LN10*2+5|0,f+=r,n=l=u=new y(yn),y.precision=f;;){if(l=Qe(l.times(e),f),n=n.times(++d),c=u.plus(Cr(l,n,f)),Jn(c.d).slice(0,f)===Jn(u.d).slice(0,f)){for(;h--;)u=Qe(u.times(u),f);return y.precision=v,t==null?(ot=!0,Qe(u,v)):u}u=c}}function xt(e){for(var t=e.e*it,n=e.d[0];n>=10;n/=10)t++;return t}function rg(e,t,n){if(t>e.LN10.sd())throw ot=!0,n&&(e.precision=n),Error(kn+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function va(e){for(var t="";e--;)t+="0";return t}function mu(e,t){var n,r,l,u,c,f,d,h,y,v=1,g=10,x=e,j=x.d,S=x.constructor,_=S.precision;if(x.s<1)throw Error(kn+(x.s?"NaN":"-Infinity"));if(x.eq(yn))return new S(0);if(t==null?(ot=!1,h=_):h=t,x.eq(10))return t==null&&(ot=!0),rg(S,h);if(h+=g,S.precision=h,n=Jn(j),r=n.charAt(0),u=xt(x),Math.abs(u)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Jn(x.d),r=n.charAt(0),v++;u=xt(x),r>1?(x=new S("0."+n),u++):x=new S(r+"."+n.slice(1))}else return d=rg(S,h+2,_).times(u+""),x=mu(new S(r+"."+n.slice(1)),h-g).plus(d),S.precision=_,t==null?(ot=!0,Qe(x,_)):x;for(f=c=x=Cr(x.minus(yn),x.plus(yn),h),y=Qe(x.times(x),h),l=3;;){if(c=Qe(c.times(y),h),d=f.plus(Cr(c,new S(l),h)),Jn(d.d).slice(0,h)===Jn(f.d).slice(0,h))return f=f.times(2),u!==0&&(f=f.plus(rg(S,h+2,_).times(u+""))),f=Cr(f,new S(v),h),S.precision=_,t==null?(ot=!0,Qe(f,_)):f;f=d,l+=2}}function nE(e,t){var n,r,l;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(l=t.length;t.charCodeAt(l-1)===48;)--l;if(t=t.slice(r,l),t){if(l-=r,n=n-r-1,e.e=Ul(n/it),e.d=[],r=(n+1)%it,n<0&&(r+=it),rJs||e.e<-Js))throw Error(Zb+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,n){var r,l,u,c,f,d,h,y,v=e.d;for(c=1,u=v[0];u>=10;u/=10)c++;if(r=t-c,r<0)r+=it,l=t,h=v[y=0];else{if(y=Math.ceil((r+1)/it),u=v.length,y>=u)return e;for(h=u=v[y],c=1;u>=10;u/=10)c++;r%=it,l=r-it+c}if(n!==void 0&&(u=Xa(10,c-l-1),f=h/u%10|0,d=t<0||v[y+1]!==void 0||h%u,d=n<4?(f||d)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||d||n==6&&(r>0?l>0?h/Xa(10,c-l):0:v[y-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return d?(u=xt(e),v.length=1,t=t-u-1,v[0]=Xa(10,(it-t%it)%it),e.e=Ul(-t/it)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=y,u=1,y--):(v.length=y+1,u=Xa(10,it-r),v[y]=l>0?(h/Xa(10,c-l)%Xa(10,l)|0)*u:0),d)for(;;)if(y==0){(v[0]+=u)==Et&&(v[0]=1,++e.e);break}else{if(v[y]+=u,v[y]!=Et)break;v[y--]=0,u=1}for(r=v.length;v[--r]===0;)v.pop();if(ot&&(e.e>Js||e.e<-Js))throw Error(Zb+xt(e));return e}function cN(e,t){var n,r,l,u,c,f,d,h,y,v,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),ot?Qe(t,x):t;if(d=e.d,v=t.d,r=t.e,h=e.e,d=d.slice(),c=h-r,c){for(y=c<0,y?(n=d,c=-c,f=v.length):(n=v,r=h,f=d.length),l=Math.max(Math.ceil(x/it),f)+2,c>l&&(c=l,n.length=1),n.reverse(),l=c;l--;)n.push(0);n.reverse()}else{for(l=d.length,f=v.length,y=l0;--l)d[f++]=0;for(l=v.length;l>c;){if(d[--l]0?u=u.charAt(0)+"."+u.slice(1)+va(r):c>1&&(u=u.charAt(0)+"."+u.slice(1)),u=u+(l<0?"e":"e+")+l):l<0?(u="0."+va(-l-1)+u,n&&(r=n-c)>0&&(u+=va(r))):l>=c?(u+=va(l+1-c),n&&(r=n-l-1)>0&&(u=u+"."+va(r))):((r=l+1)0&&(l+1===c&&(u+="."),u+=va(r))),e.s<0?"-"+u:u}function rE(e,t){if(e.length>t)return e.length=t,!0}function sN(e){var t,n,r;function l(u){var c=this;if(!(c instanceof l))return new l(u);if(c.constructor=l,u instanceof l){c.s=u.s,c.e=u.e,c.d=(u=u.d)?u.slice():u;return}if(typeof u=="number"){if(u*0!==0)throw Error(ei+u);if(u>0)c.s=1;else if(u<0)u=-u,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(u===~~u&&u<1e7){c.e=0,c.d=[u];return}return nE(c,u.toString())}else if(typeof u!="string")throw Error(ei+u);if(u.charCodeAt(0)===45?(u=u.slice(1),c.s=-1):c.s=1,b5.test(u))nE(c,u);else throw Error(ei+u)}if(l.prototype=he,l.ROUND_UP=0,l.ROUND_DOWN=1,l.ROUND_CEIL=2,l.ROUND_FLOOR=3,l.ROUND_HALF_UP=4,l.ROUND_HALF_DOWN=5,l.ROUND_HALF_EVEN=6,l.ROUND_HALF_CEIL=7,l.ROUND_HALF_FLOOR=8,l.clone=sN,l.config=l.set=x5,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=l[t+1]&&r<=l[t+2])this[n]=r;else throw Error(ei+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ei+n+": "+r);return this}var Qb=sN(g5);yn=new Qb(1);const We=Qb;function _5(e){return w5(e)||A5(e)||O5(e)||S5()}function S5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O5(e,t){if(e){if(typeof e=="string")return f0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f0(e,t)}}function A5(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function w5(e){if(Array.isArray(e))return f0(e)}function f0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,l):e(t-c,aE(function(){for(var f=arguments.length,d=new Array(f),h=0;he.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,l=!1,u=void 0;try{for(var c=e[Symbol.iterator](),f;!(r=(f=c.next()).done)&&(n.push(f.value),!(t&&n.length===t));r=!0);}catch(d){l=!0,u=d}finally{try{!r&&c.return!=null&&c.return()}finally{if(l)throw u}}return n}}function L5(e){if(Array.isArray(e))return e}function vN(e){var t=gu(e,2),n=t[0],r=t[1],l=n,u=r;return n>r&&(l=r,u=n),[l,u]}function yN(e,t,n){if(e.lte(0))return new We(0);var r=td.getDigitCount(e.toNumber()),l=new We(10).pow(r),u=e.div(l),c=r!==1?.05:.1,f=new We(Math.ceil(u.div(c).toNumber())).add(n).mul(c),d=f.mul(l);return t?d:new We(Math.ceil(d))}function I5(e,t,n){var r=1,l=new We(e);if(!l.isint()&&n){var u=Math.abs(e);u<1?(r=new We(10).pow(td.getDigitCount(e)-1),l=new We(Math.floor(l.div(r).toNumber())).mul(r)):u>1&&(l=new We(Math.floor(e)))}else e===0?l=new We(Math.floor((t-1)/2)):n||(l=new We(Math.floor(e)));var c=Math.floor((t-1)/2),f=M5(E5(function(d){return l.add(new We(d-c).mul(r)).toNumber()}),d0);return f(0,t)}function mN(e,t,n,r){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new We(0),tickMin:new We(0),tickMax:new We(0)};var u=yN(new We(t).sub(e).div(n-1),r,l),c;e<=0&&t>=0?c=new We(0):(c=new We(e).add(t).div(2),c=c.sub(new We(c).mod(u)));var f=Math.ceil(c.sub(e).div(u).toNumber()),d=Math.ceil(new We(t).sub(c).div(u).toNumber()),h=f+d+1;return h>n?mN(e,t,n,r,l+1):(h0?d+(n-h):d,f=t>0?f:f+(n-h)),{step:u,tickMin:c.sub(new We(f).mul(u)),tickMax:c.add(new We(d).mul(u))})}function U5(e){var t=gu(e,2),n=t[0],r=t[1],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=Math.max(l,2),f=vN([n,r]),d=gu(f,2),h=d[0],y=d[1];if(h===-1/0||y===1/0){var v=y===1/0?[h].concat(p0(d0(0,l-1).map(function(){return 1/0}))):[].concat(p0(d0(0,l-1).map(function(){return-1/0})),[y]);return n>r?h0(v):v}if(h===y)return I5(h,l,u);var g=mN(h,y,c,u),x=g.step,j=g.tickMin,S=g.tickMax,_=td.rangeStep(j,S.add(new We(.1).mul(x)),x);return n>r?h0(_):_}function H5(e,t){var n=gu(e,2),r=n[0],l=n[1],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=vN([r,l]),f=gu(c,2),d=f[0],h=f[1];if(d===-1/0||h===1/0)return[r,l];if(d===h)return[d];var y=Math.max(t,2),v=yN(new We(h).sub(d).div(y-1),u,0),g=[].concat(p0(td.rangeStep(new We(d),new We(h).sub(new We(.99).mul(v)),v)),[h]);return r>l?h0(g):g}var G5=hN(U5),Y5=hN(H5),X5="Invariant failed";function ii(e,t){throw new Error(X5)}var K5=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eB(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nB(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,c=-1,f=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(f<=1)return 0;if(u&&u.axisType==="angleAxis"&&Math.abs(Math.abs(u.range[1]-u.range[0])-360)<=1e-6)for(var d=u.range,h=0;h0?l[h-1].coordinate:l[f-1].coordinate,v=l[h].coordinate,g=h>=f-1?l[0].coordinate:l[h+1].coordinate,x=void 0;if(Yt(v-y)!==Yt(g-v)){var j=[];if(Yt(g-v)===Yt(d[1]-d[0])){x=g;var S=v+d[1]-d[0];j[0]=Math.min(S,(S+y)/2),j[1]=Math.max(S,(S+y)/2)}else{x=y;var _=g+d[1]-d[0];j[0]=Math.min(v,(_+v)/2),j[1]=Math.max(v,(_+v)/2)}var E=[Math.min(v,(x+v)/2),Math.max(v,(x+v)/2)];if(t>E[0]&&t<=E[1]||t>=j[0]&&t<=j[1]){c=l[h].index;break}}else{var w=Math.min(y,g),M=Math.max(y,g);if(t>(w+v)/2&&t<=(M+v)/2){c=l[h].index;break}}}else for(var N=0;N0&&N(r[N].coordinate+r[N-1].coordinate)/2&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N===f-1&&t>(r[N].coordinate+r[N-1].coordinate)/2){c=r[N].index;break}return c},Jb=function(t){var n,r=t,l=r.type.displayName,u=(n=t.type)!==null&&n!==void 0&&n.defaultProps?dt(dt({},t.type.defaultProps),t.props):t.props,c=u.stroke,f=u.fill,d;switch(l){case"Line":d=c;break;case"Area":case"Radar":d=c&&c!=="none"?c:f;break;default:d=f;break}return d},bB=function(t){var n=t.barSize,r=t.totalSize,l=t.stackGroups,u=l===void 0?{}:l;if(!u)return{};for(var c={},f=Object.keys(u),d=0,h=f.length;d=0});if(E&&E.length){var w=E[0].type.defaultProps,M=w!==void 0?dt(dt({},w),E[0].props):E[0].props,N=M.barSize,A=M[_];c[A]||(c[A]=[]);var T=Ce(N)?n:N;c[A].push({item:E[0],stackList:E.slice(1),barSize:Ce(T)?void 0:Xt(T,r,0)})}}return c},xB=function(t){var n=t.barGap,r=t.barCategoryGap,l=t.bandSize,u=t.sizeList,c=u===void 0?[]:u,f=t.maxBarSize,d=c.length;if(d<1)return null;var h=Xt(n,l,0,!0),y,v=[];if(c[0].barSize===+c[0].barSize){var g=!1,x=l/d,j=c.reduce(function(N,A){return N+A.barSize||0},0);j+=(d-1)*h,j>=l&&(j-=(d-1)*h,h=0),j>=l&&x>0&&(g=!0,x*=.9,j=d*x);var S=(l-j)/2>>0,_={offset:S-h,size:0};y=c.reduce(function(N,A){var T={item:A.item,position:{offset:_.offset+_.size+h,size:g?x:A.barSize}},C=[].concat(oE(N),[T]);return _=C[C.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(D){C.push({item:D,position:_})}),C},v)}else{var E=Xt(r,l,0,!0);l-2*E-(d-1)*h<=0&&(h=0);var w=(l-2*E-(d-1)*h)/d;w>1&&(w>>=0);var M=f===+f?Math.min(w,f):w;y=c.reduce(function(N,A,T){var C=[].concat(oE(N),[{item:A.item,position:{offset:E+(w+h)*T+(w-M)/2,size:M}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(D){C.push({item:D,position:C[C.length-1].position})}),C},v)}return y},_B=function(t,n,r,l){var u=r.children,c=r.width,f=r.margin,d=c-(f.left||0)-(f.right||0),h=_N({children:u,legendWidth:d});if(h){var y=l||{},v=y.width,g=y.height,x=h.align,j=h.verticalAlign,S=h.layout;if((S==="vertical"||S==="horizontal"&&j==="middle")&&x!=="center"&&fe(t[x]))return dt(dt({},t),{},cl({},x,t[x]+(v||0)));if((S==="horizontal"||S==="vertical"&&x==="center")&&j!=="middle"&&fe(t[j]))return dt(dt({},t),{},cl({},j,t[j]+(g||0)))}return t},SB=function(t,n,r){return Ce(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},SN=function(t,n,r,l,u){var c=n.props.children,f=Dn(c,nd).filter(function(h){return SB(l,u,h.props.direction)});if(f&&f.length){var d=f.map(function(h){return h.props.dataKey});return t.reduce(function(h,y){var v=Ut(y,r);if(Ce(v))return h;var g=Array.isArray(v)?[Qf(v),Zf(v)]:[v,v],x=d.reduce(function(j,S){var _=Ut(y,S,0),E=g[0]-Math.abs(Array.isArray(_)?_[0]:_),w=g[1]+Math.abs(Array.isArray(_)?_[1]:_);return[Math.min(E,j[0]),Math.max(w,j[1])]},[1/0,-1/0]);return[Math.min(x[0],h[0]),Math.max(x[1],h[1])]},[1/0,-1/0])}return null},OB=function(t,n,r,l,u){var c=n.map(function(f){return SN(t,f,r,u,l)}).filter(function(f){return!Ce(f)});return c&&c.length?c.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]):null},ON=function(t,n,r,l,u){var c=n.map(function(d){var h=d.props.dataKey;return r==="number"&&h&&SN(t,d,h,l)||tu(t,h,r,u)});if(r==="number")return c.reduce(function(d,h){return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);var f={};return c.reduce(function(d,h){for(var y=0,v=h.length;y=2?Yt(f[0]-f[1])*2*h:h,n&&(t.ticks||t.niceTicks)){var y=(t.ticks||t.niceTicks).map(function(v){var g=u?u.indexOf(v):v;return{coordinate:l(g)+h,value:v,offset:h}});return y.filter(function(v){return!Iu(v.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(v,g){return{coordinate:l(v)+h,value:v,index:g,offset:h}}):l.ticks&&!r?l.ticks(t.tickCount).map(function(v){return{coordinate:l(v)+h,value:v,offset:h}}):l.domain().map(function(v,g){return{coordinate:l(v)+h,value:u?u[v]:v,index:g,offset:h}})},ag=new WeakMap,xs=function(t,n){if(typeof n!="function")return t;ag.has(t)||ag.set(t,new WeakMap);var r=ag.get(t);if(r.has(n))return r.get(n);var l=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,l),l},jN=function(t,n,r){var l=t.scale,u=t.type,c=t.layout,f=t.axisType;if(l==="auto")return c==="radial"&&f==="radiusAxis"?{scale:du(),realScaleType:"band"}:c==="radial"&&f==="angleAxis"?{scale:Fs(),realScaleType:"linear"}:u==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:eu(),realScaleType:"point"}:u==="category"?{scale:du(),realScaleType:"band"}:{scale:Fs(),realScaleType:"linear"};if(ti(l)){var d="scale".concat($f(l));return{scale:(KT[d]||eu)(),realScaleType:KT[d]?d:"point"}}return Se(l)?{scale:l}:{scale:eu(),realScaleType:"point"}},cE=1e-4,TN=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,l=t.range(),u=Math.min(l[0],l[1])-cE,c=Math.max(l[0],l[1])+cE,f=t(n[0]),d=t(n[r-1]);(fc||dc)&&t.domain([n[0],n[r-1]])}},AB=function(t,n){if(!t)return null;for(var r=0,l=t.length;rl)&&(u[1]=l),u[0]>l&&(u[0]=l),u[1]=0?(t[f][r][0]=u,t[f][r][1]=u+d,u=t[f][r][1]):(t[f][r][0]=c,t[f][r][1]=c+d,c=t[f][r][1])}},TB=function(t){var n=t.length;if(!(n<=0))for(var r=0,l=t[0].length;r=0?(t[c][r][0]=u,t[c][r][1]=u+f,u=t[c][r][1]):(t[c][r][0]=0,t[c][r][1]=0)}},EB={sign:jB,expand:v6,none:sl,silhouette:y6,wiggle:m6,positive:TB},MB=function(t,n,r){var l=n.map(function(f){return f.props.dataKey}),u=EB[r],c=p6().keys(l).value(function(f,d){return+Ut(f,d,0)}).order(Kg).offset(u);return c(t)},CB=function(t,n,r,l,u,c){if(!t)return null;var f=c?n.reverse():n,d={},h=f.reduce(function(v,g){var x,j=(x=g.type)!==null&&x!==void 0&&x.defaultProps?dt(dt({},g.type.defaultProps),g.props):g.props,S=j.stackId,_=j.hide;if(_)return v;var E=j[r],w=v[E]||{hasStack:!1,stackGroups:{}};if(At(S)){var M=w.stackGroups[S]||{numericAxisId:r,cateAxisId:l,items:[]};M.items.push(g),w.hasStack=!0,w.stackGroups[S]=M}else w.stackGroups[Uu("_stackId_")]={numericAxisId:r,cateAxisId:l,items:[g]};return dt(dt({},v),{},cl({},E,w))},d),y={};return Object.keys(h).reduce(function(v,g){var x=h[g];if(x.hasStack){var j={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(S,_){var E=x.stackGroups[_];return dt(dt({},S),{},cl({},_,{numericAxisId:r,cateAxisId:l,items:E.items,stackedData:MB(t,E.items,u)}))},j)}return dt(dt({},v),{},cl({},g,x))},y)},EN=function(t,n){var r=n.realScaleType,l=n.type,u=n.tickCount,c=n.originalDomain,f=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(u&&l==="number"&&c&&(c[0]==="auto"||c[1]==="auto")){var h=t.domain();if(!h.length)return null;var y=G5(h,u,f);return t.domain([Qf(y),Zf(y)]),{niceTicks:y}}if(u&&l==="number"){var v=t.domain(),g=Y5(v,u,f);return{niceTicks:g}}return null},sE=function(t){var n=t.axis,r=t.ticks,l=t.offset,u=t.bandSize,c=t.entry,f=t.index;if(n.type==="category")return r[f]?r[f].coordinate+l:null;var d=Ut(c,n.dataKey,n.domain[f]);return Ce(d)?null:n.scale(d)-u/2+l},NB=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var l=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return l<=0&&u>=0?0:u<0?u:l}return r[0]},RB=function(t,n){var r,l=(r=t.type)!==null&&r!==void 0&&r.defaultProps?dt(dt({},t.type.defaultProps),t.props):t.props,u=l.stackId;if(At(u)){var c=n[u];if(c){var f=c.items.indexOf(t);return f>=0?c.stackedData[f]:null}}return null},PB=function(t){return t.reduce(function(n,r){return[Qf(r.concat([n[0]]).filter(fe)),Zf(r.concat([n[1]]).filter(fe))]},[1/0,-1/0])},MN=function(t,n,r){return Object.keys(t).reduce(function(l,u){var c=t[u],f=c.stackedData,d=f.reduce(function(h,y){var v=PB(y.slice(n,r+1));return[Math.min(h[0],v[0]),Math.max(h[1],v[1])]},[1/0,-1/0]);return[Math.min(d[0],l[0]),Math.max(d[1],l[1])]},[1/0,-1/0]).map(function(l){return l===1/0||l===-1/0?0:l})},fE=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,g0=function(t,n,r){if(Se(t))return t(n,r);if(!Array.isArray(t))return n;var l=[];if(fe(t[0]))l[0]=r?t[0]:Math.min(t[0],n[0]);else if(fE.test(t[0])){var u=+fE.exec(t[0])[1];l[0]=n[0]-u}else Se(t[0])?l[0]=t[0](n[0]):l[0]=n[0];if(fe(t[1]))l[1]=r?t[1]:Math.max(t[1],n[1]);else if(dE.test(t[1])){var c=+dE.exec(t[1])[1];l[1]=n[1]+c}else Se(t[1])?l[1]=t[1](n[1]):l[1]=n[1];return l},nf=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var l=t.scale.bandwidth();if(!r||l>0)return l}if(t&&n&&n.length>=2){for(var u=Tb(n,function(v){return v.coordinate}),c=1/0,f=1,d=u.length;fe.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},UB=function(t,n,r,l,u){var c=t.width,f=t.height,d=t.startAngle,h=t.endAngle,y=Xt(t.cx,c,c/2),v=Xt(t.cy,f,f/2),g=RN(c,f,r),x=Xt(t.innerRadius,g,0),j=Xt(t.outerRadius,g,g*.8),S=Object.keys(n);return S.reduce(function(_,E){var w=n[E],M=w.domain,N=w.reversed,A;if(Ce(w.range))l==="angleAxis"?A=[d,h]:l==="radiusAxis"&&(A=[x,j]),N&&(A=[A[1],A[0]]);else{A=w.range;var T=A,C=$B(T,2);d=C[0],h=C[1]}var D=jN(w,u),$=D.realScaleType,W=D.scale;W.domain(M).range(A),TN(W);var X=EN(W,wr(wr({},w),{},{realScaleType:$})),U=wr(wr(wr({},w),X),{},{range:A,radius:j,realScaleType:$,scale:W,cx:y,cy:v,innerRadius:x,outerRadius:j,startAngle:d,endAngle:h});return wr(wr({},_),{},NN({},E,U))},{})},HB=function(t,n){var r=t.x,l=t.y,u=n.x,c=n.y;return Math.sqrt(Math.pow(r-u,2)+Math.pow(l-c,2))},GB=function(t,n){var r=t.x,l=t.y,u=n.cx,c=n.cy,f=HB({x:r,y:l},{x:u,y:c});if(f<=0)return{radius:f};var d=(r-u)/f,h=Math.acos(d);return l>c&&(h=2*Math.PI-h),{radius:f,angle:IB(h),angleInRadian:h}},YB=function(t){var n=t.startAngle,r=t.endAngle,l=Math.floor(n/360),u=Math.floor(r/360),c=Math.min(l,u);return{startAngle:n-c*360,endAngle:r-c*360}},XB=function(t,n){var r=n.startAngle,l=n.endAngle,u=Math.floor(r/360),c=Math.floor(l/360),f=Math.min(u,c);return t+f*360},yE=function(t,n){var r=t.x,l=t.y,u=GB({x:r,y:l},n),c=u.radius,f=u.angle,d=n.innerRadius,h=n.outerRadius;if(ch)return!1;if(c===0)return!0;var y=YB(n),v=y.startAngle,g=y.endAngle,x=f,j;if(v<=g){for(;x>g;)x-=360;for(;x=v&&x<=g}else{for(;x>v;)x-=360;for(;x=g&&x<=v}return j?wr(wr({},n),{},{radius:c,angle:XB(x,n)}):null},PN=function(t){return!B.isValidElement(t)&&!Se(t)&&typeof t!="boolean"?t.className:""};function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}var KB=["offset"];function VB(e){return QB(e)||ZB(e)||WB(e)||FB()}function FB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WB(e,t){if(e){if(typeof e=="string")return b0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b0(e,t)}}function ZB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QB(e){if(Array.isArray(e))return b0(e)}function b0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t=0?1:-1,M,N;l==="insideStart"?(M=x+w*c,N=S):l==="insideEnd"?(M=j-w*c,N=!S):l==="end"&&(M=j+w*c,N=S),N=E<=0?N:!N;var A=tt(h,y,_,M),T=tt(h,y,_,M+(N?1:-1)*359),C="M".concat(A.x,",").concat(A.y,`
+ height and width.`,K,P,c,d,y,v,n);var z=!Array.isArray(x)&&Mr(x.type).endsWith("Chart");return I.Children.map(x,function(F){return I.isValidElement(F)?B.cloneElement(F,vs({width:K,height:P},z?{style:vs({height:"100%",width:"100%",maxHeight:P,maxWidth:K},F.props.style)}:{})):F})},[n,x,d,g,v,y,$,c]);return I.createElement("div",{id:_?"".concat(_):void 0,className:Me("recharts-responsive-container",E),style:vs(vs({},N),{},{width:c,height:d,minWidth:y,minHeight:v,maxHeight:g}),ref:A},U)}),Hf=function(t){return null};Hf.displayName="Cell";function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function r0(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Bl.isSsr)return{width:0,height:0};var r=c$(n),l=JSON.stringify({text:t,copyStyle:r});if(Fi.widthCache[l])return Fi.widthCache[l];try{var u=document.getElementById(eT);u||(u=document.createElement("span"),u.setAttribute("id",eT),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));var c=r0(r0({},u$),r);Object.assign(u.style,c),u.textContent="".concat(t);var f=u.getBoundingClientRect(),d={width:f.width,height:f.height};return Fi.widthCache[l]=d,++Fi.cacheCount>o$&&(Fi.cacheCount=0,Fi.widthCache={}),d}catch{return{width:0,height:0}}},s$=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function Is(e,t){return p$(e)||h$(e,t)||d$(e,t)||f$()}function f$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d$(e,t){if(e){if(typeof e=="string")return tT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tT(e,t)}}function tT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E$(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oT(e,t){return R$(e)||N$(e,t)||C$(e,t)||M$()}function M$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C$(e,t){if(e){if(typeof e=="string")return uT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uT(e,t)}}function uT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return K.reduce(function(P,z){var F=z.word,ne=z.width,oe=P[P.length-1];if(oe&&(l==null||u||oe.width+ne+rz.width?P:z})};if(!y)return x;for(var S="โฆ",_=function(K){var P=v.slice(0,K),z=wC({breakAll:h,style:d,children:P+S}).wordsWithComputedWidth,F=g(z),ne=F.length>c||j(F).width>Number(l);return[ne,F]},E=0,w=v.length-1,M=0,N;E<=w&&M<=v.length-1;){var A=Math.floor((E+w)/2),T=A-1,C=_(T),D=oT(C,2),$=D[0],W=D[1],X=_(A),U=oT(X,1),L=U[0];if(!$&&!L&&(E=A+1),$&&L&&(w=A-1),!$&&L){N=W;break}M++}return N||x},cT=function(t){var n=Ce(t)?[]:t.toString().split(AC);return[{words:n}]},D$=function(t){var n=t.width,r=t.scaleToFit,l=t.children,u=t.style,c=t.breakAll,f=t.maxLines;if((n||r)&&!Bl.isSsr){var d,h,y=wC({breakAll:c,children:l,style:u});if(y){var v=y.wordsWithComputedWidth,g=y.spaceWidth;d=v,h=g}else return cT(l);return P$({breakAll:c,children:l,maxLines:f,style:u},d,h,n,r)}return cT(l)},sT="#808080",ri=function(t){var n=t.x,r=n===void 0?0:n,l=t.y,u=l===void 0?0:l,c=t.lineHeight,f=c===void 0?"1em":c,d=t.capHeight,h=d===void 0?"0.71em":d,y=t.scaleToFit,v=y===void 0?!1:y,g=t.textAnchor,x=g===void 0?"start":g,j=t.verticalAnchor,S=j===void 0?"end":j,_=t.fill,E=_===void 0?sT:_,w=lT(t,j$),M=B.useMemo(function(){return D$({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:v,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,v,w.style,w.width]),N=w.dx,A=w.dy,T=w.angle,C=w.className,D=w.breakAll,$=lT(w,T$);if(!At(r)||!At(u))return null;var W=r+(fe(N)?N:0),X=u+(fe(A)?A:0),U;switch(S){case"start":U=Im("calc(".concat(h,")"));break;case"middle":U=Im("calc(".concat((M.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:U=Im("calc(".concat(M.length-1," * -").concat(f,")"));break}var L=[];if(v){var Y=M[0].width,K=w.width;L.push("scale(".concat((fe(K)?K/Y:1)/Y,")"))}return T&&L.push("rotate(".concat(T,", ").concat(W,", ").concat(X,")")),L.length&&($.transform=L.join(" ")),I.createElement("text",a0({},_e($,!0),{x:W,y:X,className:Me("recharts-text",C),textAnchor:x,fill:E.includes("url")?sT:E}),M.map(function(P,z){var F=P.words.join(D?"":" ");return I.createElement("tspan",{x:W,dy:z===0?U:f,key:"".concat(F,"-").concat(z)},F)}))};function ga(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function k$(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cb(e){let t,n,r;e.length!==2?(t=ga,n=(f,d)=>ga(e(f),d),r=(f,d)=>e(f)-d):(t=e===ga||e===k$?e:$$,n=e,r=e);function l(f,d,h=0,y=f.length){if(h>>1;n(f[v],d)<0?h=v+1:y=v}while(h>>1;n(f[v],d)<=0?h=v+1:y=v}while(hh&&r(f[v-1],d)>-r(f[v],d)?v-1:v}return{left:l,center:c,right:u}}function $$(){return 0}function jC(e){return e===null?NaN:+e}function*z$(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const q$=Cb(ga),Gu=q$.right;Cb(jC).center;class fT extends Map{constructor(t,n=I$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,l]of t)this.set(r,l)}get(t){return super.get(dT(this,t))}has(t){return super.has(dT(this,t))}set(t,n){return super.set(B$(this,t),n)}delete(t){return super.delete(L$(this,t))}}function dT({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function B$({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function L$({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function I$(e){return e!==null&&typeof e=="object"?e.valueOf():e}function U$(e=ga){if(e===ga)return TC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function TC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const H$=Math.sqrt(50),G$=Math.sqrt(10),Y$=Math.sqrt(2);function Us(e,t,n){const r=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(r)),u=r/Math.pow(10,l),c=u>=H$?10:u>=G$?5:u>=Y$?2:1;let f,d,h;return l<0?(h=Math.pow(10,-l)/c,f=Math.round(e*h),d=Math.round(t*h),f/ht&&--d,h=-h):(h=Math.pow(10,l)*c,f=Math.round(e/h),d=Math.round(t/h),f*ht&&--d),d0))return[];if(e===t)return[e];const r=t=l))return[];const f=u-l+1,d=new Array(f);if(r)if(c<0)for(let h=0;h=r)&&(n=r);return n}function pT(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function EC(e,t,n=0,r=1/0,l){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(l=l===void 0?TC:U$(l);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,y=Math.log(d),v=.5*Math.exp(2*y/3),g=.5*Math.sqrt(y*v*(d-v)/d)*(h-d/2<0?-1:1),x=Math.max(n,Math.floor(t-h*v/d+g)),j=Math.min(r,Math.floor(t+(d-h)*v/d+g));EC(e,t,x,j,l)}const u=e[t];let c=n,f=r;for(Io(e,n,t),l(e[r],u)>0&&Io(e,n,r);c0;)--f}l(e[n],u)===0?Io(e,n,f):(++f,Io(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function Io(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function X$(e,t,n){if(e=Float64Array.from(z$(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return pT(e);if(t>=1)return hT(e);var r,l=(r-1)*t,u=Math.floor(l),c=hT(EC(e,u).subarray(0,u+1)),f=pT(e.subarray(u+1));return c+(f-c)*(l-u)}}function K$(e,t,n=jC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,l=(r-1)*t,u=Math.floor(l),c=+n(e[u],u,e),f=+n(e[u+1],u+1,e);return c+(f-c)*(l-u)}}function V$(e,t,n){e=+e,t=+t,n=(l=arguments.length)<2?(t=e,e=0,1):l<3?1:+n;for(var r=-1,l=Math.max(0,Math.ceil((t-e)/n))|0,u=new Array(l);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=W$.exec(e))?new tn(t[1],t[2],t[3],1):(t=Z$.exec(e))?new tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q$.exec(e))?ms(t[1],t[2],t[3],t[4]):(t=J$.exec(e))?ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ez.exec(e))?_T(t[1],t[2]/100,t[3]/100,1):(t=tz.exec(e))?_T(t[1],t[2]/100,t[3]/100,t[4]):vT.hasOwnProperty(e)?gT(vT[e]):e==="transparent"?new tn(NaN,NaN,NaN,0):null}function gT(e){return new tn(e>>16&255,e>>8&255,e&255,1)}function ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new tn(e,t,n,r)}function az(e){return e instanceof Yu||(e=vu(e)),e?(e=e.rgb(),new tn(e.r,e.g,e.b,e.opacity)):new tn}function c0(e,t,n,r){return arguments.length===1?az(e):new tn(e,t,n,r??1)}function tn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Rb(tn,c0,CC(Yu,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new tn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hu:Math.pow(hu,e),new tn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tn(Ja(this.r),Ja(this.g),Ja(this.b),Gs(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bT,formatHex:bT,formatHex8:iz,formatRgb:xT,toString:xT}));function bT(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}`}function iz(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}${Fa((isNaN(this.opacity)?1:this.opacity)*255)}`}function xT(){const e=Gs(this.opacity);return`${e===1?"rgb(":"rgba("}${Ja(this.r)}, ${Ja(this.g)}, ${Ja(this.b)}${e===1?")":`, ${e})`}`}function Gs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ja(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fa(e){return e=Ja(e),(e<16?"0":"")+e.toString(16)}function _T(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function NC(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof Yu||(e=vu(e)),!e)return new Yn;if(e instanceof Yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),u=Math.max(t,n,r),c=NaN,f=u-l,d=(u+l)/2;return f?(t===u?c=(n-r)/f+(n0&&d<1?0:c,new Yn(c,f,d,e.opacity)}function lz(e,t,n,r){return arguments.length===1?NC(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Rb(Yn,lz,CC(Yu,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hu:Math.pow(hu,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new tn(Um(e>=240?e-240:e+120,l,r),Um(e,l,r),Um(e<120?e+240:e-120,l,r),this.opacity)},clamp(){return new Yn(ST(this.h),gs(this.s),gs(this.l),Gs(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gs(this.opacity);return`${e===1?"hsl(":"hsla("}${ST(this.h)}, ${gs(this.s)*100}%, ${gs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ST(e){return e=(e||0)%360,e<0?e+360:e}function gs(e){return Math.max(0,Math.min(1,e||0))}function Um(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Pb=e=>()=>e;function oz(e,t){return function(n){return e+n*t}}function uz(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function cz(e){return(e=+e)==1?RC:function(t,n){return n-t?uz(t,n,e):Pb(isNaN(t)?n:t)}}function RC(e,t){var n=t-e;return n?oz(e,n):Pb(isNaN(e)?t:e)}const OT=(function e(t){var n=cz(t);function r(l,u){var c=n((l=c0(l)).r,(u=c0(u)).r),f=n(l.g,u.g),d=n(l.b,u.b),h=RC(l.opacity,u.opacity);return function(y){return l.r=c(y),l.g=f(y),l.b=d(y),l.opacity=h(y),l+""}}return r.gamma=e,r})(1);function sz(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(u){for(l=0;ln&&(u=t.slice(n,u),f[c]?f[c]+=u:f[++c]=u),(r=r[0])===(l=l[0])?f[c]?f[c]+=l:f[++c]=l:(f[++c]=null,d.push({i:c,x:Ys(r,l)})),n=Hm.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function _z(e,t,n){var r=e[0],l=e[1],u=t[0],c=t[1];return l2?Sz:_z,d=h=null,v}function v(g){return g==null||isNaN(g=+g)?u:(d||(d=f(e.map(r),t,n)))(r(c(g)))}return v.invert=function(g){return c(l((h||(h=f(t,e.map(r),Ys)))(g)))},v.domain=function(g){return arguments.length?(e=Array.from(g,Xs),y()):e.slice()},v.range=function(g){return arguments.length?(t=Array.from(g),y()):t.slice()},v.rangeRound=function(g){return t=Array.from(g),n=Db,y()},v.clamp=function(g){return arguments.length?(c=g?!0:Kt,y()):c!==Kt},v.interpolate=function(g){return arguments.length?(n=g,y()):n},v.unknown=function(g){return arguments.length?(u=g,v):u},function(g,x){return r=g,l=x,y()}}function kb(){return Gf()(Kt,Kt)}function Oz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ks(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function vl(e){return e=Ks(Math.abs(e)),e?e[1]:NaN}function Az(e,t){return function(n,r){for(var l=n.length,u=[],c=0,f=e[0],d=0;l>0&&f>0&&(d+f+1>r&&(f=Math.max(1,r-d)),u.push(n.substring(l-=f,l+f)),!((d+=f+1)>r));)f=e[c=(c+1)%e.length];return u.reverse().join(t)}}function wz(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var jz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yu(e){if(!(t=jz.exec(e)))throw new Error("invalid format: "+e);var t;return new $b({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}yu.prototype=$b.prototype;function $b(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$b.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Tz(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var Vs;function Ez(e,t){var n=Ks(e,t);if(!n)return Vs=void 0,e.toPrecision(t);var r=n[0],l=n[1],u=l-(Vs=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,c=r.length;return u===c?r:u>c?r+new Array(u-c+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+Ks(e,Math.max(0,t+u-1))[0]}function wT(e,t){var n=Ks(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const jT={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Oz,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wT(e*100,t),r:wT,s:Ez,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function TT(e){return e}var ET=Array.prototype.map,MT=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];function Mz(e){var t=e.grouping===void 0||e.thousands===void 0?TT:Az(ET.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",u=e.numerals===void 0?TT:wz(ET.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"โ":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(v,g){v=yu(v);var x=v.fill,j=v.align,S=v.sign,_=v.symbol,E=v.zero,w=v.width,M=v.comma,N=v.precision,A=v.trim,T=v.type;T==="n"?(M=!0,T="g"):jT[T]||(N===void 0&&(N=12),A=!0,T="g"),(E||x==="0"&&j==="=")&&(E=!0,x="0",j="=");var C=(g&&g.prefix!==void 0?g.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),D=(_==="$"?r:/[%p]/.test(T)?c:"")+(g&&g.suffix!==void 0?g.suffix:""),$=jT[T],W=/[defgprs%]/.test(T);N=N===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function X(U){var L=C,Y=D,K,P,z;if(T==="c")Y=$(U)+Y,U="";else{U=+U;var F=U<0||1/U<0;if(U=isNaN(U)?d:$(Math.abs(U),N),A&&(U=Tz(U)),F&&+U==0&&S!=="+"&&(F=!1),L=(F?S==="("?S:f:S==="-"||S==="("?"":S)+L,Y=(T==="s"&&!isNaN(U)&&Vs!==void 0?MT[8+Vs/3]:"")+Y+(F&&S==="("?")":""),W){for(K=-1,P=U.length;++Kz||z>57){Y=(z===46?l+U.slice(K+1):U.slice(K))+Y,U=U.slice(0,K);break}}}M&&!E&&(U=t(U,1/0));var ne=L.length+U.length+Y.length,oe=ne>1)+L+U+Y+oe.slice(ne);break;default:U=oe+L+U+Y;break}return u(U)}return X.toString=function(){return v+""},X}function y(v,g){var x=Math.max(-8,Math.min(8,Math.floor(vl(g)/3)))*3,j=Math.pow(10,-x),S=h((v=yu(v),v.type="f",v),{suffix:MT[8+x/3]});return function(_){return S(j*_)}}return{format:h,formatPrefix:y}}var bs,zb,PC;Cz({thousands:",",grouping:[3],currency:["$",""]});function Cz(e){return bs=Mz(e),zb=bs.format,PC=bs.formatPrefix,bs}function Nz(e){return Math.max(0,-vl(Math.abs(e)))}function Rz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vl(t)/3)))*3-vl(Math.abs(e)))}function Pz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vl(t)-vl(e))+1}function DC(e,t,n,r){var l=o0(e,t,n),u;switch(r=yu(r??",f"),r.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(u=Rz(l,c))&&(r.precision=u),PC(r,c)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(u=Pz(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=u-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(u=Nz(l))&&(r.precision=u-(r.type==="%")*2);break}}return zb(r)}function _a(e){var t=e.domain;return e.ticks=function(n){var r=t();return i0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return DC(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,u=r.length-1,c=r[l],f=r[u],d,h,y=10;for(f0;){if(h=l0(c,f,n),h===d)return r[l]=c,r[u]=f,t(r);if(h>0)c=Math.floor(c/h)*h,f=Math.ceil(f/h)*h;else if(h<0)c=Math.ceil(c*h)/h,f=Math.floor(f*h)/h;else break;d=h}return e},e}function Fs(){var e=kb();return e.copy=function(){return Xu(e,Fs())},$n.apply(e,arguments),_a(e)}function kC(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Xs),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return kC(e).unknown(t)},e=arguments.length?Array.from(e,Xs):[0,1],_a(n)}function $C(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],u=e[r],c;return uMath.pow(e,t)}function qz(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function RT(e){return(t,n)=>-e(-t,n)}function qb(e){const t=e(CT,NT),n=t.domain;let r=10,l,u;function c(){return l=qz(r),u=zz(r),n()[0]<0?(l=RT(l),u=RT(u),e(Dz,kz)):e(CT,NT),t}return t.base=function(f){return arguments.length?(r=+f,c()):r},t.domain=function(f){return arguments.length?(n(f),c()):n()},t.ticks=f=>{const d=n();let h=d[0],y=d[d.length-1];const v=y0){for(;g<=x;++g)for(j=1;jy)break;E.push(S)}}else for(;g<=x;++g)for(j=r-1;j>=1;--j)if(S=g>0?j/u(-g):j*u(g),!(Sy)break;E.push(S)}E.length*2<_&&(E=i0(h,y,_))}else E=i0(g,x,Math.min(x-g,_)).map(u);return v?E.reverse():E},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=yu(d)).precision==null&&(d.trim=!0),d=zb(d)),f===1/0)return d;const h=Math.max(1,r*f/t.ticks().length);return y=>{let v=y/u(Math.round(l(y)));return v*rn($C(n(),{floor:f=>u(Math.floor(l(f))),ceil:f=>u(Math.ceil(l(f)))})),t}function zC(){const e=qb(Gf()).domain([1,10]);return e.copy=()=>Xu(e,zC()).base(e.base()),$n.apply(e,arguments),e}function PT(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function DT(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bb(e){var t=1,n=e(PT(t),DT(t));return n.constant=function(r){return arguments.length?e(PT(t=+r),DT(t)):t},_a(n)}function qC(){var e=Bb(Gf());return e.copy=function(){return Xu(e,qC()).constant(e.constant())},$n.apply(e,arguments)}function kT(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Bz(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Lz(e){return e<0?-e*e:e*e}function Lb(e){var t=e(Kt,Kt),n=1;function r(){return n===1?e(Kt,Kt):n===.5?e(Bz,Lz):e(kT(n),kT(1/n))}return t.exponent=function(l){return arguments.length?(n=+l,r()):n},_a(t)}function Ib(){var e=Lb(Gf());return e.copy=function(){return Xu(e,Ib()).exponent(e.exponent())},$n.apply(e,arguments),e}function Iz(){return Ib.apply(null,arguments).exponent(.5)}function $T(e){return Math.sign(e)*e*e}function Uz(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function BC(){var e=kb(),t=[0,1],n=!1,r;function l(u){var c=Uz(e(u));return isNaN(c)?r:n?Math.round(c):c}return l.invert=function(u){return e.invert($T(u))},l.domain=function(u){return arguments.length?(e.domain(u),l):e.domain()},l.range=function(u){return arguments.length?(e.range((t=Array.from(u,Xs)).map($T)),l):t.slice()},l.rangeRound=function(u){return l.range(u).round(!0)},l.round=function(u){return arguments.length?(n=!!u,l):n},l.clamp=function(u){return arguments.length?(e.clamp(u),l):e.clamp()},l.unknown=function(u){return arguments.length?(r=u,l):r},l.copy=function(){return BC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(l,arguments),_a(l)}function LC(){var e=[],t=[],n=[],r;function l(){var c=0,f=Math.max(1,t.length);for(n=new Array(f-1);++c0?n[f-1]:e[0],f=n?[r[n-1],t]:[r[h-1],r[h]]},c.unknown=function(d){return arguments.length&&(u=d),c},c.thresholds=function(){return r.slice()},c.copy=function(){return IC().domain([e,t]).range(l).unknown(u)},$n.apply(_a(c),arguments)}function UC(){var e=[.5],t=[0,1],n,r=1;function l(u){return u!=null&&u<=u?t[Gu(e,u,0,r)]:n}return l.domain=function(u){return arguments.length?(e=Array.from(u),r=Math.min(e.length,t.length-1),l):e.slice()},l.range=function(u){return arguments.length?(t=Array.from(u),r=Math.min(e.length,t.length-1),l):t.slice()},l.invertExtent=function(u){var c=t.indexOf(u);return[e[c-1],e[c]]},l.unknown=function(u){return arguments.length?(n=u,l):n},l.copy=function(){return UC().domain(e).range(t).unknown(n)},$n.apply(l,arguments)}const Gm=new Date,Ym=new Date;function wt(e,t,n,r){function l(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return l.floor=u=>(e(u=new Date(+u)),u),l.ceil=u=>(e(u=new Date(u-1)),t(u,1),e(u),u),l.round=u=>{const c=l(u),f=l.ceil(u);return u-c(t(u=new Date(+u),c==null?1:Math.floor(c)),u),l.range=(u,c,f)=>{const d=[];if(u=l.ceil(u),f=f==null?1:Math.floor(f),!(u0))return d;let h;do d.push(h=new Date(+u)),t(u,f),e(u);while(hwt(c=>{if(c>=c)for(;e(c),!u(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;t(c,-1),!u(c););else for(;--f>=0;)for(;t(c,1),!u(c););}),n&&(l.count=(u,c)=>(Gm.setTime(+u),Ym.setTime(+c),e(Gm),e(Ym),Math.floor(n(Gm,Ym))),l.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?l.filter(r?c=>r(c)%u===0:c=>l.count(0,c)%u===0):l)),l}const Ws=wt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ws.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?wt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ws);Ws.range;const jr=1e3,Pn=jr*60,Tr=Pn*60,Nr=Tr*24,Ub=Nr*7,zT=Nr*30,Xm=Nr*365,Wa=wt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jr)},(e,t)=>(t-e)/jr,e=>e.getUTCSeconds());Wa.range;const Hb=wt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jr)},(e,t)=>{e.setTime(+e+t*Pn)},(e,t)=>(t-e)/Pn,e=>e.getMinutes());Hb.range;const Gb=wt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Pn)},(e,t)=>(t-e)/Pn,e=>e.getUTCMinutes());Gb.range;const Yb=wt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jr-e.getMinutes()*Pn)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getHours());Yb.range;const Xb=wt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getUTCHours());Xb.range;const Ku=wt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pn)/Nr,e=>e.getDate()-1);Ku.range;const Yf=wt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>e.getUTCDate()-1);Yf.range;const HC=wt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>Math.floor(e/Nr));HC.range;function ui(e){return wt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pn)/Ub)}const Xf=ui(0),Zs=ui(1),Hz=ui(2),Gz=ui(3),yl=ui(4),Yz=ui(5),Xz=ui(6);Xf.range;Zs.range;Hz.range;Gz.range;yl.range;Yz.range;Xz.range;function ci(e){return wt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ub)}const Kf=ci(0),Qs=ci(1),Kz=ci(2),Vz=ci(3),ml=ci(4),Fz=ci(5),Wz=ci(6);Kf.range;Qs.range;Kz.range;Vz.range;ml.range;Fz.range;Wz.range;const Kb=wt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Kb.range;const Vb=wt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Vb.range;const Rr=wt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Rr.range;const Pr=wt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pr.range;function GC(e,t,n,r,l,u){const c=[[Wa,1,jr],[Wa,5,5*jr],[Wa,15,15*jr],[Wa,30,30*jr],[u,1,Pn],[u,5,5*Pn],[u,15,15*Pn],[u,30,30*Pn],[l,1,Tr],[l,3,3*Tr],[l,6,6*Tr],[l,12,12*Tr],[r,1,Nr],[r,2,2*Nr],[n,1,Ub],[t,1,zT],[t,3,3*zT],[e,1,Xm]];function f(h,y,v){const g=y_).right(c,g);if(x===c.length)return e.every(o0(h/Xm,y/Xm,v));if(x===0)return Ws.every(Math.max(o0(h,y,v),1));const[j,S]=c[g/c[x-1][2]53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Te=Vm(Uo(ue.y,0,1)),ut=Te.getUTCDay(),Te=ut>4||ut===0?Qs.ceil(Te):Qs(Te),Te=Yf.offset(Te,(ue.V-1)*7),ue.y=Te.getUTCFullYear(),ue.m=Te.getUTCMonth(),ue.d=Te.getUTCDate()+(ue.w+6)%7):(Te=Km(Uo(ue.y,0,1)),ut=Te.getDay(),Te=ut>4||ut===0?Zs.ceil(Te):Zs(Te),Te=Ku.offset(Te,(ue.V-1)*7),ue.y=Te.getFullYear(),ue.m=Te.getMonth(),ue.d=Te.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),ut="Z"in ue?Vm(Uo(ue.y,0,1)).getUTCDay():Km(Uo(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(ut+5)%7:ue.w+ue.U*7-(ut+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,Vm(ue)):Km(ue)}}function D(se,be,Ae,ue){for(var nt=0,Te=be.length,ut=Ae.length,ct,zt;nt=ut)return-1;if(ct=be.charCodeAt(nt++),ct===37){if(ct=be.charAt(nt++),zt=A[ct in qT?be.charAt(nt++):ct],!zt||(ue=zt(se,Ae,ue))<0)return-1}else if(ct!=Ae.charCodeAt(ue++))return-1}return ue}function $(se,be,Ae){var ue=h.exec(be.slice(Ae));return ue?(se.p=y.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function W(se,be,Ae){var ue=x.exec(be.slice(Ae));return ue?(se.w=j.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function X(se,be,Ae){var ue=v.exec(be.slice(Ae));return ue?(se.w=g.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function U(se,be,Ae){var ue=E.exec(be.slice(Ae));return ue?(se.m=w.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function L(se,be,Ae){var ue=S.exec(be.slice(Ae));return ue?(se.m=_.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function Y(se,be,Ae){return D(se,t,be,Ae)}function K(se,be,Ae){return D(se,n,be,Ae)}function P(se,be,Ae){return D(se,r,be,Ae)}function z(se){return c[se.getDay()]}function F(se){return u[se.getDay()]}function ne(se){return d[se.getMonth()]}function oe(se){return f[se.getMonth()]}function k(se){return l[+(se.getHours()>=12)]}function G(se){return 1+~~(se.getMonth()/3)}function te(se){return c[se.getUTCDay()]}function ce(se){return u[se.getUTCDay()]}function de(se){return d[se.getUTCMonth()]}function me(se){return f[se.getUTCMonth()]}function Oe(se){return l[+(se.getUTCHours()>=12)]}function $e(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var be=T(se+="",M);return be.toString=function(){return se},be},parse:function(se){var be=C(se+="",!1);return be.toString=function(){return se},be},utcFormat:function(se){var be=T(se+="",N);return be.toString=function(){return se},be},utcParse:function(se){var be=C(se+="",!0);return be.toString=function(){return se},be}}}var qT={"-":"",_:" ",0:"0"},Ct=/^\s*\d+/,nq=/^%/,rq=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",u=l.length;return r+(u[t.toLowerCase(),n]))}function iq(e,t,n){var r=Ct.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lq(e,t,n){var r=Ct.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function oq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function BT(e,t,n){var r=Ct.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function LT(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fq(e,t,n){var r=Ct.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function dq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function IT(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hq(e,t,n){var r=Ct.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function UT(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function pq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vq(e,t,n){var r=Ct.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function yq(e,t,n){var r=Ct.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mq(e,t,n){var r=Ct.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gq(e,t,n){var r=nq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bq(e,t,n){var r=Ct.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xq(e,t,n){var r=Ct.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function HT(e,t){return Be(e.getDate(),t,2)}function _q(e,t){return Be(e.getHours(),t,2)}function Sq(e,t){return Be(e.getHours()%12||12,t,2)}function Oq(e,t){return Be(1+Ku.count(Rr(e),e),t,3)}function YC(e,t){return Be(e.getMilliseconds(),t,3)}function Aq(e,t){return YC(e,t)+"000"}function wq(e,t){return Be(e.getMonth()+1,t,2)}function jq(e,t){return Be(e.getMinutes(),t,2)}function Tq(e,t){return Be(e.getSeconds(),t,2)}function Eq(e){var t=e.getDay();return t===0?7:t}function Mq(e,t){return Be(Xf.count(Rr(e)-1,e),t,2)}function XC(e){var t=e.getDay();return t>=4||t===0?yl(e):yl.ceil(e)}function Cq(e,t){return e=XC(e),Be(yl.count(Rr(e),e)+(Rr(e).getDay()===4),t,2)}function Nq(e){return e.getDay()}function Rq(e,t){return Be(Zs.count(Rr(e)-1,e),t,2)}function Pq(e,t){return Be(e.getFullYear()%100,t,2)}function Dq(e,t){return e=XC(e),Be(e.getFullYear()%100,t,2)}function kq(e,t){return Be(e.getFullYear()%1e4,t,4)}function $q(e,t){var n=e.getDay();return e=n>=4||n===0?yl(e):yl.ceil(e),Be(e.getFullYear()%1e4,t,4)}function zq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function GT(e,t){return Be(e.getUTCDate(),t,2)}function qq(e,t){return Be(e.getUTCHours(),t,2)}function Bq(e,t){return Be(e.getUTCHours()%12||12,t,2)}function Lq(e,t){return Be(1+Yf.count(Pr(e),e),t,3)}function KC(e,t){return Be(e.getUTCMilliseconds(),t,3)}function Iq(e,t){return KC(e,t)+"000"}function Uq(e,t){return Be(e.getUTCMonth()+1,t,2)}function Hq(e,t){return Be(e.getUTCMinutes(),t,2)}function Gq(e,t){return Be(e.getUTCSeconds(),t,2)}function Yq(e){var t=e.getUTCDay();return t===0?7:t}function Xq(e,t){return Be(Kf.count(Pr(e)-1,e),t,2)}function VC(e){var t=e.getUTCDay();return t>=4||t===0?ml(e):ml.ceil(e)}function Kq(e,t){return e=VC(e),Be(ml.count(Pr(e),e)+(Pr(e).getUTCDay()===4),t,2)}function Vq(e){return e.getUTCDay()}function Fq(e,t){return Be(Qs.count(Pr(e)-1,e),t,2)}function Wq(e,t){return Be(e.getUTCFullYear()%100,t,2)}function Zq(e,t){return e=VC(e),Be(e.getUTCFullYear()%100,t,2)}function Qq(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function Jq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ml(e):ml.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function e5(){return"+0000"}function YT(){return"%"}function XT(e){return+e}function KT(e){return Math.floor(+e/1e3)}var Wi,FC,WC;t5({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"]});function t5(e){return Wi=tq(e),FC=Wi.format,Wi.parse,WC=Wi.utcFormat,Wi.utcParse,Wi}function n5(e){return new Date(e)}function r5(e){return e instanceof Date?+e:+new Date(+e)}function Fb(e,t,n,r,l,u,c,f,d,h){var y=kb(),v=y.invert,g=y.domain,x=h(".%L"),j=h(":%S"),S=h("%I:%M"),_=h("%I %p"),E=h("%a %d"),w=h("%b %d"),M=h("%B"),N=h("%Y");function A(T){return(d(T)t(l/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(l,u)=>X$(e,u/r))},n.copy=function(){return eN(t).domain(e)},Br.apply(n,arguments)}function Ff(){var e=0,t=.5,n=1,r=1,l,u,c,f,d,h=Kt,y,v=!1,g;function x(S){return isNaN(S=+S)?g:(S=.5+((S=+y(S))-u)*(r*Sn}return Wm=e,Wm}var Zm,ZT;function u5(){if(ZT)return Zm;ZT=1;var e=Wf(),t=aN(),n=ql();function r(l){return l&&l.length?e(l,n,t):void 0}return Zm=r,Zm}var c5=u5();const Zf=Xe(c5);var Qm,QT;function iN(){if(QT)return Qm;QT=1;function e(t,n){return t