function vI(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nh={exports:{}},ps={},ih={exports:{}},Ie={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var iS;function mI(){if(iS)return Ie;iS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,x={};function g(D,U,oe){this.props=D,this.context=U,this.refs=x,this.updater=oe||b}g.prototype.isReactComponent={},g.prototype.setState=function(D,U){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,U,"setState")},g.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function P(){}P.prototype=g.prototype;function A(D,U,oe){this.props=D,this.context=U,this.refs=x,this.updater=oe||b}var T=A.prototype=new P;T.constructor=A,O(T,g.prototype),T.isPureReactComponent=!0;var E=Array.isArray,_=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function R(D,U,oe){var ce,me={},Pe=null,De=null;if(U!=null)for(ce in U.ref!==void 0&&(De=U.ref),U.key!==void 0&&(Pe=""+U.key),U)_.call(U,ce)&&!N.hasOwnProperty(ce)&&(me[ce]=U[ce]);var je=arguments.length-2;if(je===1)me.children=oe;else if(1>>1,U=W[D];if(0>>1;Di(me,Z))Pei(De,me)?(W[D]=De,W[Pe]=Z,D=Pe):(W[D]=me,W[ce]=Z,D=ce);else if(Pei(De,Z))W[D]=De,W[Pe]=Z,D=Pe;else break e}}return ee}function i(W,ee){var Z=W.sortIndex-ee.sortIndex;return Z!==0?Z:W.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}var f=[],d=[],v=1,p=null,m=3,b=!1,O=!1,x=!1,g=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(W){for(var ee=r(d);ee!==null;){if(ee.callback===null)n(d);else if(ee.startTime<=W)n(d),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=r(d)}}function E(W){if(x=!1,T(W),!O)if(r(f)!==null)O=!0,Q(_);else{var ee=r(d);ee!==null&&J(E,ee.startTime-W)}}function _(W,ee){O=!1,x&&(x=!1,P(R),R=-1),b=!0;var Z=m;try{for(T(ee),p=r(f);p!==null&&(!(p.expirationTime>ee)||W&&!F());){var D=p.callback;if(typeof D=="function"){p.callback=null,m=p.priorityLevel;var U=D(p.expirationTime<=ee);ee=e.unstable_now(),typeof U=="function"?p.callback=U:p===r(f)&&n(f),T(ee)}else n(f);p=r(f)}if(p!==null)var oe=!0;else{var ce=r(d);ce!==null&&J(E,ce.startTime-ee),oe=!1}return oe}finally{p=null,m=Z,b=!1}}var j=!1,N=null,R=-1,M=5,z=-1;function F(){return!(e.unstable_now()-zW||125D?(W.sortIndex=Z,t(d,W),r(f)===null&&W===r(d)&&(x?(P(R),R=-1):x=!0,J(E,Z-D))):(W.sortIndex=U,t(f,W),O||b||(O=!0,Q(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var ee=m;return function(){var Z=m;m=ee;try{return W.apply(this,arguments)}finally{m=Z}}}})(sh)),sh}var lS;function wI(){return lS||(lS=1,oh.exports=xI()),oh.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var cS;function SI(){if(cS)return Yt;cS=1;var e=X0(),t=wI();function r(a){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},p={};function m(a){return f.call(p,a)?!0:f.call(v,a)?!1:d.test(a)?p[a]=!0:(v[a]=!0,!1)}function b(a,s,c,h){if(c!==null&&c.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return h?!1:c!==null?!c.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function O(a,s,c,h){if(s===null||typeof s>"u"||b(a,s,c,h))return!0;if(h)return!1;if(c!==null)switch(c.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function x(a,s,c,h,y,w,C){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=a,this.type=s,this.sanitizeURL=w,this.removeEmptyString=C}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){g[a]=new x(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var s=a[0];g[s]=new x(s,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){g[a]=new x(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){g[a]=new x(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){g[a]=new x(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){g[a]=new x(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){g[a]=new x(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){g[a]=new x(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){g[a]=new x(a,5,!1,a.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function A(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var s=a.replace(P,A);g[s]=new x(s,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var s=a.replace(P,A);g[s]=new x(s,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var s=a.replace(P,A);g[s]=new x(s,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){g[a]=new x(a,1,!1,a.toLowerCase(),null,!1,!1)}),g.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){g[a]=new x(a,1,!1,a.toLowerCase(),null,!0,!0)});function T(a,s,c,h){var y=g.hasOwnProperty(s)?g[s]:null;(y!==null?y.type!==0:h||!(2$||y[C]!==w[$]){var B=` `+y[C].replace(" at new "," at ");return a.displayName&&B.includes("")&&(B=B.replace("",a.displayName)),B}while(1<=C&&0<=$);break}}}finally{oe=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:"")?U(a):""}function me(a){switch(a.tag){case 5:return U(a.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return a=ce(a.type,!1),a;case 11:return a=ce(a.type.render,!1),a;case 1:return a=ce(a.type,!0),a;default:return""}}function Pe(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case N:return"Fragment";case j:return"Portal";case M:return"Profiler";case R:return"StrictMode";case H:return"Suspense";case G:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case F:return(a.displayName||"Context")+".Consumer";case z:return(a._context.displayName||"Context")+".Provider";case L:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case X:return s=a.displayName||null,s!==null?s:Pe(a.type)||"Memo";case Q:s=a._payload,a=a._init;try{return Pe(a(s))}catch{}}return null}function De(a){var s=a.type;switch(a.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=s.render,a=a.displayName||a.name||"",s.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(s);case 8:return s===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function je(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ae(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ge(a){var s=ae(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),h=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,w=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return y.call(this)},set:function(C){h=""+C,w.call(this,C)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Te(a){a._valueTracker||(a._valueTracker=ge(a))}function ne(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return a&&(h=ae(a)?a.checked?"true":"false":a.value),a=h,a!==c?(s.setValue(a),!0):!1}function We(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ne(a,s){var c=s.checked;return Z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??a._wrapperState.initialChecked})}function Ce(a,s){var c=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;c=je(s.value!=null?s.value:c),a._wrapperState={initialChecked:h,initialValue:c,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Je(a,s){s=s.checked,s!=null&&T(a,"checked",s,!1)}function st(a,s){Je(a,s);var c=je(s.value),h=s.type;if(c!=null)h==="number"?(c===0&&a.value===""||a.value!=c)&&(a.value=""+c):a.value!==""+c&&(a.value=""+c);else if(h==="submit"||h==="reset"){a.removeAttribute("value");return}s.hasOwnProperty("value")?Ur(a,s.type,c):s.hasOwnProperty("defaultValue")&&Ur(a,s.type,je(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(a.defaultChecked=!!s.defaultChecked)}function _r(a,s,c){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+a._wrapperState.initialValue,c||s===a.value||(a.value=s),a.defaultValue=s}c=a.name,c!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,c!==""&&(a.name=c)}function Ur(a,s,c){(s!=="number"||We(a.ownerDocument)!==a)&&(c==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c))}var Wr=Array.isArray;function Wt(a,s,c,h){if(a=a.options,s){s={};for(var y=0;y"+s.valueOf().toString()+"",s=$u.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;s.firstChild;)a.appendChild(s.firstChild)}});function To(a,s){if(s){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=s;return}}a.textContent=s}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bM=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(a){bM.forEach(function(s){s=s+a.charAt(0).toUpperCase()+a.substring(1),Co[s]=Co[a]})});function bx(a,s,c){return s==null||typeof s=="boolean"||s===""?"":c||typeof s!="number"||s===0||Co.hasOwnProperty(a)&&Co[a]?(""+s).trim():s+"px"}function xx(a,s){a=a.style;for(var c in s)if(s.hasOwnProperty(c)){var h=c.indexOf("--")===0,y=bx(c,s[c],h);c==="float"&&(c="cssFloat"),h?a.setProperty(c,y):a[c]=y}}var xM=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vd(a,s){if(s){if(xM[a]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,a));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function md(a,s){if(a.indexOf("-")===-1)return typeof s.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yd=null;function gd(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var bd=null,ta=null,ra=null;function wx(a){if(a=Zo(a)){if(typeof bd!="function")throw Error(r(280));var s=a.stateNode;s&&(s=il(s),bd(a.stateNode,a.type,s))}}function Sx(a){ta?ra?ra.push(a):ra=[a]:ta=a}function Ox(){if(ta){var a=ta,s=ra;if(ra=ta=null,wx(a),s)for(a=0;a>>=0,a===0?32:31-(kM(a)/NM|0)|0}var Fu=64,qu=4194304;function Mo(a){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: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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function zu(a,s){var c=a.pendingLanes;if(c===0)return 0;var h=0,y=a.suspendedLanes,w=a.pingedLanes,C=c&268435455;if(C!==0){var $=C&~y;$!==0?h=Mo($):(w&=C,w!==0&&(h=Mo(w)))}else C=c&~y,C!==0?h=Mo(C):w!==0&&(h=Mo(w));if(h===0)return 0;if(s!==0&&s!==h&&(s&y)===0&&(y=h&-h,w=s&-s,y>=w||y===16&&(w&4194240)!==0))return s;if((h&4)!==0&&(h|=c&16),s=a.entangledLanes,s!==0)for(a=a.entanglements,s&=h;0c;c++)s.push(a);return s}function $o(a,s,c){a.pendingLanes|=s,s!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,s=31-Er(s),a[s]=c}function IM(a,s){var c=a.pendingLanes&~s;a.pendingLanes=s,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=s,a.mutableReadLanes&=s,a.entangledLanes&=s,s=a.entanglements;var h=a.eventTimes;for(a=a.expirationTimes;0=Uo),Qx=" ",Zx=!1;function Jx(a,s){switch(a){case"keyup":return c$.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ew(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var aa=!1;function d$(a,s){switch(a){case"compositionend":return ew(s);case"keypress":return s.which!==32?null:(Zx=!0,Qx);case"textInput":return a=s.data,a===Qx&&Zx?null:a;default:return null}}function p$(a,s){if(aa)return a==="compositionend"||!Dd&&Jx(a,s)?(a=Hx(),Vu=kd=Fn=null,aa=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:c,offset:s-a};a=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=sw(c)}}function lw(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?lw(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function cw(){for(var a=window,s=We();s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=We(a.document)}return s}function Fd(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function S$(a){var s=cw(),c=a.focusedElem,h=a.selectionRange;if(s!==c&&c&&c.ownerDocument&&lw(c.ownerDocument.documentElement,c)){if(h!==null&&Fd(c)){if(s=h.start,a=h.end,a===void 0&&(a=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(a,c.value.length);else if(a=(s=c.ownerDocument||document)&&s.defaultView||window,a.getSelection){a=a.getSelection();var y=c.textContent.length,w=Math.min(h.start,y);h=h.end===void 0?w:Math.min(h.end,y),!a.extend&&w>h&&(y=h,h=w,w=y),y=uw(c,w);var C=uw(c,h);y&&C&&(a.rangeCount!==1||a.anchorNode!==y.node||a.anchorOffset!==y.offset||a.focusNode!==C.node||a.focusOffset!==C.offset)&&(s=s.createRange(),s.setStart(y.node,y.offset),a.removeAllRanges(),w>h?(a.addRange(s),a.extend(C.node,C.offset)):(s.setEnd(C.node,C.offset),a.addRange(s)))}}for(s=[],a=c;a=a.parentNode;)a.nodeType===1&&s.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,oa=null,qd=null,Vo=null,zd=!1;function fw(a,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;zd||oa==null||oa!==We(h)||(h=oa,"selectionStart"in h&&Fd(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Vo&&Ko(Vo,h)||(Vo=h,h=tl(qd,"onSelect"),0fa||(a.current=ep[fa],ep[fa]=null,fa--)}function Xe(a,s){fa++,ep[fa]=a.current,a.current=s}var Wn={},Nt=Un(Wn),Ht=Un(!1),vi=Wn;function da(a,s){var c=a.type.contextTypes;if(!c)return Wn;var h=a.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var y={},w;for(w in c)y[w]=s[w];return h&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=s,a.__reactInternalMemoizedMaskedChildContext=y),y}function Kt(a){return a=a.childContextTypes,a!=null}function al(){tt(Ht),tt(Nt)}function Ew(a,s,c){if(Nt.current!==Wn)throw Error(r(168));Xe(Nt,s),Xe(Ht,c)}function Aw(a,s,c){var h=a.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return c;h=h.getChildContext();for(var y in h)if(!(y in s))throw Error(r(108,De(a)||"Unknown",y));return Z({},c,h)}function ol(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Wn,vi=Nt.current,Xe(Nt,a),Xe(Ht,Ht.current),!0}function jw(a,s,c){var h=a.stateNode;if(!h)throw Error(r(169));c?(a=Aw(a,s,vi),h.__reactInternalMemoizedMergedChildContext=a,tt(Ht),tt(Nt),Xe(Nt,a)):tt(Ht),Xe(Ht,c)}var un=null,sl=!1,tp=!1;function Tw(a){un===null?un=[a]:un.push(a)}function M$(a){sl=!0,Tw(a)}function Hn(){if(!tp&&un!==null){tp=!0;var a=0,s=Ke;try{var c=un;for(Ke=1;a>=C,y-=C,ln=1<<32-Er(s)+y|c<Ee?(Pt=xe,xe=null):Pt=xe.sibling;var Fe=re(K,xe,V[Ee],ue);if(Fe===null){xe===null&&(xe=Pt);break}a&&xe&&Fe.alternate===null&&s(K,xe),q=w(Fe,q,Ee),be===null?ye=Fe:be.sibling=Fe,be=Fe,xe=Pt}if(Ee===V.length)return c(K,xe),nt&&yi(K,Ee),ye;if(xe===null){for(;EeEe?(Pt=xe,xe=null):Pt=xe.sibling;var ei=re(K,xe,Fe.value,ue);if(ei===null){xe===null&&(xe=Pt);break}a&&xe&&ei.alternate===null&&s(K,xe),q=w(ei,q,Ee),be===null?ye=ei:be.sibling=ei,be=ei,xe=Pt}if(Fe.done)return c(K,xe),nt&&yi(K,Ee),ye;if(xe===null){for(;!Fe.done;Ee++,Fe=V.next())Fe=se(K,Fe.value,ue),Fe!==null&&(q=w(Fe,q,Ee),be===null?ye=Fe:be.sibling=Fe,be=Fe);return nt&&yi(K,Ee),ye}for(xe=h(K,xe);!Fe.done;Ee++,Fe=V.next())Fe=fe(xe,K,Ee,Fe.value,ue),Fe!==null&&(a&&Fe.alternate!==null&&xe.delete(Fe.key===null?Ee:Fe.key),q=w(Fe,q,Ee),be===null?ye=Fe:be.sibling=Fe,be=Fe);return a&&xe.forEach(function(hI){return s(K,hI)}),nt&&yi(K,Ee),ye}function dt(K,q,V,ue){if(typeof V=="object"&&V!==null&&V.type===N&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case _:e:{for(var ye=V.key,be=q;be!==null;){if(be.key===ye){if(ye=V.type,ye===N){if(be.tag===7){c(K,be.sibling),q=y(be,V.props.children),q.return=K,K=q;break e}}else if(be.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Q&&$w(ye)===be.type){c(K,be.sibling),q=y(be,V.props),q.ref=Jo(K,be,V),q.return=K,K=q;break e}c(K,be);break}else s(K,be);be=be.sibling}V.type===N?(q=Pi(V.props.children,K.mode,ue,V.key),q.return=K,K=q):(ue=$l(V.type,V.key,V.props,null,K.mode,ue),ue.ref=Jo(K,q,V),ue.return=K,K=ue)}return C(K);case j:e:{for(be=V.key;q!==null;){if(q.key===be)if(q.tag===4&&q.stateNode.containerInfo===V.containerInfo&&q.stateNode.implementation===V.implementation){c(K,q.sibling),q=y(q,V.children||[]),q.return=K,K=q;break e}else{c(K,q);break}else s(K,q);q=q.sibling}q=Zp(V,K.mode,ue),q.return=K,K=q}return C(K);case Q:return be=V._init,dt(K,q,be(V._payload),ue)}if(Wr(V))return he(K,q,V,ue);if(ee(V))return ve(K,q,V,ue);fl(K,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,q!==null&&q.tag===6?(c(K,q.sibling),q=y(q,V),q.return=K,K=q):(c(K,q),q=Qp(V,K.mode,ue),q.return=K,K=q),C(K)):c(K,q)}return dt}var ma=Iw(!0),Dw=Iw(!1),dl=Un(null),pl=null,ya=null,sp=null;function up(){sp=ya=pl=null}function lp(a){var s=dl.current;tt(dl),a._currentValue=s}function cp(a,s,c){for(;a!==null;){var h=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),a===c)break;a=a.return}}function ga(a,s){pl=a,sp=ya=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&s)!==0&&(Vt=!0),a.firstContext=null)}function pr(a){var s=a._currentValue;if(sp!==a)if(a={context:a,memoizedValue:s,next:null},ya===null){if(pl===null)throw Error(r(308));ya=a,pl.dependencies={lanes:0,firstContext:a}}else ya=ya.next=a;return s}var gi=null;function fp(a){gi===null?gi=[a]:gi.push(a)}function Lw(a,s,c,h){var y=s.interleaved;return y===null?(c.next=c,fp(s)):(c.next=y.next,y.next=c),s.interleaved=c,fn(a,h)}function fn(a,s){a.lanes|=s;var c=a.alternate;for(c!==null&&(c.lanes|=s),c=a,a=a.return;a!==null;)a.childLanes|=s,c=a.alternate,c!==null&&(c.childLanes|=s),c=a,a=a.return;return c.tag===3?c.stateNode:null}var Kn=!1;function dp(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bw(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function dn(a,s){return{eventTime:a,lane:s,tag:0,payload:null,callback:null,next:null}}function Vn(a,s,c){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(Le&2)!==0){var y=h.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),h.pending=s,fn(a,c)}return y=h.interleaved,y===null?(s.next=s,fp(h)):(s.next=y.next,y.next=s),h.interleaved=s,fn(a,c)}function hl(a,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194240)!==0)){var h=s.lanes;h&=a.pendingLanes,c|=h,s.lanes=c,Ed(a,c)}}function Fw(a,s){var c=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var y=null,w=null;if(c=c.firstBaseUpdate,c!==null){do{var C={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};w===null?y=w=C:w=w.next=C,c=c.next}while(c!==null);w===null?y=w=s:w=w.next=s}else y=w=s;c={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:h.shared,effects:h.effects},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=s:a.next=s,c.lastBaseUpdate=s}function vl(a,s,c,h){var y=a.updateQueue;Kn=!1;var w=y.firstBaseUpdate,C=y.lastBaseUpdate,$=y.shared.pending;if($!==null){y.shared.pending=null;var B=$,Y=B.next;B.next=null,C===null?w=Y:C.next=Y,C=B;var ie=a.alternate;ie!==null&&(ie=ie.updateQueue,$=ie.lastBaseUpdate,$!==C&&($===null?ie.firstBaseUpdate=Y:$.next=Y,ie.lastBaseUpdate=B))}if(w!==null){var se=y.baseState;C=0,ie=Y=B=null,$=w;do{var re=$.lane,fe=$.eventTime;if((h&re)===re){ie!==null&&(ie=ie.next={eventTime:fe,lane:0,tag:$.tag,payload:$.payload,callback:$.callback,next:null});e:{var he=a,ve=$;switch(re=s,fe=c,ve.tag){case 1:if(he=ve.payload,typeof he=="function"){se=he.call(fe,se,re);break e}se=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ve.payload,re=typeof he=="function"?he.call(fe,se,re):he,re==null)break e;se=Z({},se,re);break e;case 2:Kn=!0}}$.callback!==null&&$.lane!==0&&(a.flags|=64,re=y.effects,re===null?y.effects=[$]:re.push($))}else fe={eventTime:fe,lane:re,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ie===null?(Y=ie=fe,B=se):ie=ie.next=fe,C|=re;if($=$.next,$===null){if($=y.shared.pending,$===null)break;re=$,$=re.next,re.next=null,y.lastBaseUpdate=re,y.shared.pending=null}}while(!0);if(ie===null&&(B=se),y.baseState=B,y.firstBaseUpdate=Y,y.lastBaseUpdate=ie,s=y.shared.interleaved,s!==null){y=s;do C|=y.lane,y=y.next;while(y!==s)}else w===null&&(y.shared.lanes=0);wi|=C,a.lanes=C,a.memoizedState=se}}function qw(a,s,c){if(a=s.effects,s.effects=null,a!==null)for(s=0;sc?c:4,a(!0);var h=yp.transition;yp.transition={};try{a(!1),s()}finally{Ke=c,yp.transition=h}}function o1(){return hr().memoizedState}function L$(a,s,c){var h=Qn(a);if(c={lane:h,action:c,hasEagerState:!1,eagerState:null,next:null},s1(a))u1(s,c);else if(c=Lw(a,s,c,h),c!==null){var y=Ft();Nr(c,a,h,y),l1(c,s,h)}}function B$(a,s,c){var h=Qn(a),y={lane:h,action:c,hasEagerState:!1,eagerState:null,next:null};if(s1(a))u1(s,y);else{var w=a.alternate;if(a.lanes===0&&(w===null||w.lanes===0)&&(w=s.lastRenderedReducer,w!==null))try{var C=s.lastRenderedState,$=w(C,c);if(y.hasEagerState=!0,y.eagerState=$,Ar($,C)){var B=s.interleaved;B===null?(y.next=y,fp(s)):(y.next=B.next,B.next=y),s.interleaved=y;return}}catch{}finally{}c=Lw(a,s,y,h),c!==null&&(y=Ft(),Nr(c,a,h,y),l1(c,s,h))}}function s1(a){var s=a.alternate;return a===ot||s!==null&&s===ot}function u1(a,s){ns=gl=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function l1(a,s,c){if((c&4194240)!==0){var h=s.lanes;h&=a.pendingLanes,c|=h,s.lanes=c,Ed(a,c)}}var wl={readContext:pr,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useInsertionEffect:Rt,useLayoutEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useMutableSource:Rt,useSyncExternalStore:Rt,useId:Rt,unstable_isNewReconciler:!1},F$={readContext:pr,useCallback:function(a,s){return Gr().memoizedState=[a,s===void 0?null:s],a},useContext:pr,useEffect:Zw,useImperativeHandle:function(a,s,c){return c=c!=null?c.concat([a]):null,bl(4194308,4,t1.bind(null,s,a),c)},useLayoutEffect:function(a,s){return bl(4194308,4,a,s)},useInsertionEffect:function(a,s){return bl(4,2,a,s)},useMemo:function(a,s){var c=Gr();return s=s===void 0?null:s,a=a(),c.memoizedState=[a,s],a},useReducer:function(a,s,c){var h=Gr();return s=c!==void 0?c(s):s,h.memoizedState=h.baseState=s,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:s},h.queue=a,a=a.dispatch=L$.bind(null,ot,a),[h.memoizedState,a]},useRef:function(a){var s=Gr();return a={current:a},s.memoizedState=a},useState:Yw,useDebugValue:_p,useDeferredValue:function(a){return Gr().memoizedState=a},useTransition:function(){var a=Yw(!1),s=a[0];return a=D$.bind(null,a[1]),Gr().memoizedState=a,[s,a]},useMutableSource:function(){},useSyncExternalStore:function(a,s,c){var h=ot,y=Gr();if(nt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),_t===null)throw Error(r(349));(xi&30)!==0||Hw(h,s,c)}y.memoizedState=c;var w={value:c,getSnapshot:s};return y.queue=w,Zw(Vw.bind(null,h,w,a),[a]),h.flags|=2048,os(9,Kw.bind(null,h,w,c,s),void 0,null),c},useId:function(){var a=Gr(),s=_t.identifierPrefix;if(nt){var c=cn,h=ln;c=(h&~(1<<32-Er(h)-1)).toString(32)+c,s=":"+s+"R"+c,c=is++,0<\/script>",a=a.removeChild(a.firstChild)):typeof h.is=="string"?a=C.createElement(c,{is:h.is}):(a=C.createElement(c),c==="select"&&(C=a,h.multiple?C.multiple=!0:h.size&&(C.size=h.size))):a=C.createElementNS(a,c),a[Kr]=s,a[Qo]=h,T1(a,s,!1,!1),s.stateNode=a;e:{switch(C=md(c,h),c){case"dialog":et("cancel",a),et("close",a),y=h;break;case"iframe":case"object":case"embed":et("load",a),y=h;break;case"video":case"audio":for(y=0;yOa&&(s.flags|=128,h=!0,ss(w,!1),s.lanes=4194304)}else{if(!h)if(a=ml(C),a!==null){if(s.flags|=128,h=!0,c=a.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),ss(w,!0),w.tail===null&&w.tailMode==="hidden"&&!C.alternate&&!nt)return Mt(s),null}else 2*ft()-w.renderingStartTime>Oa&&c!==1073741824&&(s.flags|=128,h=!0,ss(w,!1),s.lanes=4194304);w.isBackwards?(C.sibling=s.child,s.child=C):(c=w.last,c!==null?c.sibling=C:s.child=C,w.last=C)}return w.tail!==null?(s=w.tail,w.rendering=s,w.tail=s.sibling,w.renderingStartTime=ft(),s.sibling=null,c=at.current,Xe(at,h?c&1|2:c&1),s):(Mt(s),null);case 22:case 23:return Gp(),h=s.memoizedState!==null,a!==null&&a.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(rr&1073741824)!==0&&(Mt(s),s.subtreeFlags&6&&(s.flags|=8192)):Mt(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function G$(a,s){switch(np(s),s.tag){case 1:return Kt(s.type)&&al(),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return ba(),tt(Ht),tt(Nt),mp(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 5:return hp(s),null;case 13:if(tt(at),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));va()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return tt(at),null;case 4:return ba(),null;case 10:return lp(s.type._context),null;case 22:case 23:return Gp(),null;case 24:return null;default:return null}}var Pl=!1,$t=!1,X$=typeof WeakSet=="function"?WeakSet:Set,de=null;function wa(a,s){var c=a.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(h){ut(a,s,h)}else c.current=null}function Ip(a,s,c){try{c()}catch(h){ut(a,s,h)}}var N1=!1;function Y$(a,s){if(Gd=Hu,a=cw(),Fd(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var y=h.anchorOffset,w=h.focusNode;h=h.focusOffset;try{c.nodeType,w.nodeType}catch{c=null;break e}var C=0,$=-1,B=-1,Y=0,ie=0,se=a,re=null;t:for(;;){for(var fe;se!==c||y!==0&&se.nodeType!==3||($=C+y),se!==w||h!==0&&se.nodeType!==3||(B=C+h),se.nodeType===3&&(C+=se.nodeValue.length),(fe=se.firstChild)!==null;)re=se,se=fe;for(;;){if(se===a)break t;if(re===c&&++Y===y&&($=C),re===w&&++ie===h&&(B=C),(fe=se.nextSibling)!==null)break;se=re,re=se.parentNode}se=fe}c=$===-1||B===-1?null:{start:$,end:B}}else c=null}c=c||{start:0,end:0}}else c=null;for(Xd={focusedElem:a,selectionRange:c},Hu=!1,de=s;de!==null;)if(s=de,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,de=a;else for(;de!==null;){s=de;try{var he=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var ve=he.memoizedProps,dt=he.memoizedState,K=s.stateNode,q=K.getSnapshotBeforeUpdate(s.elementType===s.type?ve:Tr(s.type,ve),dt);K.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var V=s.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ue){ut(s,s.return,ue)}if(a=s.sibling,a!==null){a.return=s.return,de=a;break}de=s.return}return he=N1,N1=!1,he}function us(a,s,c){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&a)===a){var w=y.destroy;y.destroy=void 0,w!==void 0&&Ip(s,c,w)}y=y.next}while(y!==h)}}function El(a,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&a)===a){var h=c.create;c.destroy=h()}c=c.next}while(c!==s)}}function Dp(a){var s=a.ref;if(s!==null){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}typeof s=="function"?s(a):s.current=a}}function R1(a){var s=a.alternate;s!==null&&(a.alternate=null,R1(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&(delete s[Kr],delete s[Qo],delete s[Jd],delete s[N$],delete s[R$])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function M1(a){return a.tag===5||a.tag===3||a.tag===4}function $1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||M1(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.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 Lp(a,s,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(a,s):c.insertBefore(a,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(a,c)):(s=c,s.appendChild(a)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=nl));else if(h!==4&&(a=a.child,a!==null))for(Lp(a,s,c),a=a.sibling;a!==null;)Lp(a,s,c),a=a.sibling}function Bp(a,s,c){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?c.insertBefore(a,s):c.appendChild(a);else if(h!==4&&(a=a.child,a!==null))for(Bp(a,s,c),a=a.sibling;a!==null;)Bp(a,s,c),a=a.sibling}var Tt=null,Cr=!1;function Gn(a,s,c){for(c=c.child;c!==null;)I1(a,s,c),c=c.sibling}function I1(a,s,c){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(Bu,c)}catch{}switch(c.tag){case 5:$t||wa(c,s);case 6:var h=Tt,y=Cr;Tt=null,Gn(a,s,c),Tt=h,Cr=y,Tt!==null&&(Cr?(a=Tt,c=c.stateNode,a.nodeType===8?a.parentNode.removeChild(c):a.removeChild(c)):Tt.removeChild(c.stateNode));break;case 18:Tt!==null&&(Cr?(a=Tt,c=c.stateNode,a.nodeType===8?Zd(a.parentNode,c):a.nodeType===1&&Zd(a,c),Fo(a)):Zd(Tt,c.stateNode));break;case 4:h=Tt,y=Cr,Tt=c.stateNode.containerInfo,Cr=!0,Gn(a,s,c),Tt=h,Cr=y;break;case 0:case 11:case 14:case 15:if(!$t&&(h=c.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){y=h=h.next;do{var w=y,C=w.destroy;w=w.tag,C!==void 0&&((w&2)!==0||(w&4)!==0)&&Ip(c,s,C),y=y.next}while(y!==h)}Gn(a,s,c);break;case 1:if(!$t&&(wa(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=c.memoizedProps,h.state=c.memoizedState,h.componentWillUnmount()}catch($){ut(c,s,$)}Gn(a,s,c);break;case 21:Gn(a,s,c);break;case 22:c.mode&1?($t=(h=$t)||c.memoizedState!==null,Gn(a,s,c),$t=h):Gn(a,s,c);break;default:Gn(a,s,c)}}function D1(a){var s=a.updateQueue;if(s!==null){a.updateQueue=null;var c=a.stateNode;c===null&&(c=a.stateNode=new X$),s.forEach(function(h){var y=aI.bind(null,a,h);c.has(h)||(c.add(h),h.then(y,y))})}}function kr(a,s){var c=s.deletions;if(c!==null)for(var h=0;hy&&(y=C),h&=~w}if(h=y,h=ft()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*Z$(h/1960))-h,10a?16:a,Yn===null)var h=!1;else{if(a=Yn,Yn=null,kl=0,(Le&6)!==0)throw Error(r(331));var y=Le;for(Le|=4,de=a.current;de!==null;){var w=de,C=w.child;if((de.flags&16)!==0){var $=w.deletions;if($!==null){for(var B=0;B<$.length;B++){var Y=$[B];for(de=Y;de!==null;){var ie=de;switch(ie.tag){case 0:case 11:case 15:us(8,ie,w)}var se=ie.child;if(se!==null)se.return=ie,de=se;else for(;de!==null;){ie=de;var re=ie.sibling,fe=ie.return;if(R1(ie),ie===Y){de=null;break}if(re!==null){re.return=fe,de=re;break}de=fe}}}var he=w.alternate;if(he!==null){var ve=he.child;if(ve!==null){he.child=null;do{var dt=ve.sibling;ve.sibling=null,ve=dt}while(ve!==null)}}de=w}}if((w.subtreeFlags&2064)!==0&&C!==null)C.return=w,de=C;else e:for(;de!==null;){if(w=de,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:us(9,w,w.return)}var K=w.sibling;if(K!==null){K.return=w.return,de=K;break e}de=w.return}}var q=a.current;for(de=q;de!==null;){C=de;var V=C.child;if((C.subtreeFlags&2064)!==0&&V!==null)V.return=C,de=V;else e:for(C=q;de!==null;){if($=de,($.flags&2048)!==0)try{switch($.tag){case 0:case 11:case 15:El(9,$)}}catch(ye){ut($,$.return,ye)}if($===C){de=null;break e}var ue=$.sibling;if(ue!==null){ue.return=$.return,de=ue;break e}de=$.return}}if(Le=y,Hn(),Hr&&typeof Hr.onPostCommitFiberRoot=="function")try{Hr.onPostCommitFiberRoot(Bu,a)}catch{}h=!0}return h}finally{Ke=c,vr.transition=s}}return!1}function X1(a,s,c){s=xa(c,s),s=p1(a,s,1),a=Vn(a,s,1),s=Ft(),a!==null&&($o(a,1,s),Xt(a,s))}function ut(a,s,c){if(a.tag===3)X1(a,a,c);else for(;s!==null;){if(s.tag===3){X1(s,a,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Xn===null||!Xn.has(h))){a=xa(c,a),a=h1(s,a,1),s=Vn(s,a,1),a=Ft(),s!==null&&($o(s,1,a),Xt(s,a));break}}s=s.return}}function nI(a,s,c){var h=a.pingCache;h!==null&&h.delete(s),s=Ft(),a.pingedLanes|=a.suspendedLanes&c,_t===a&&(Ct&c)===c&&(yt===4||yt===3&&(Ct&130023424)===Ct&&500>ft()-zp?Oi(a,0):qp|=c),Xt(a,s)}function Y1(a,s){s===0&&((a.mode&1)===0?s=1:(s=qu,qu<<=1,(qu&130023424)===0&&(qu=4194304)));var c=Ft();a=fn(a,s),a!==null&&($o(a,s,c),Xt(a,c))}function iI(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),Y1(a,c)}function aI(a,s){var c=0;switch(a.tag){case 13:var h=a.stateNode,y=a.memoizedState;y!==null&&(c=y.retryLane);break;case 19:h=a.stateNode;break;default:throw Error(r(314))}h!==null&&h.delete(s),Y1(a,c)}var Q1;Q1=function(a,s,c){if(a!==null)if(a.memoizedProps!==s.pendingProps||Ht.current)Vt=!0;else{if((a.lanes&c)===0&&(s.flags&128)===0)return Vt=!1,K$(a,s,c);Vt=(a.flags&131072)!==0}else Vt=!1,nt&&(s.flags&1048576)!==0&&Cw(s,ll,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;_l(a,s),a=s.pendingProps;var y=da(s,Nt.current);ga(s,c),y=bp(null,s,h,a,y,c);var w=xp();return s.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Kt(h)?(w=!0,ol(s)):w=!1,s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,dp(s),y.updater=Sl,s.stateNode=y,y._reactInternals=s,Ep(s,h,a,c),s=Cp(null,s,h,!0,w,c)):(s.tag=0,nt&&w&&rp(s),Bt(null,s,y,c),s=s.child),s;case 16:h=s.elementType;e:{switch(_l(a,s),a=s.pendingProps,y=h._init,h=y(h._payload),s.type=h,y=s.tag=sI(h),a=Tr(h,a),y){case 0:s=Tp(null,s,h,a,c);break e;case 1:s=O1(null,s,h,a,c);break e;case 11:s=g1(null,s,h,a,c);break e;case 14:s=b1(null,s,h,Tr(h.type,a),c);break e}throw Error(r(306,h,""))}return s;case 0:return h=s.type,y=s.pendingProps,y=s.elementType===h?y:Tr(h,y),Tp(a,s,h,y,c);case 1:return h=s.type,y=s.pendingProps,y=s.elementType===h?y:Tr(h,y),O1(a,s,h,y,c);case 3:e:{if(_1(s),a===null)throw Error(r(387));h=s.pendingProps,w=s.memoizedState,y=w.element,Bw(a,s),vl(s,h,null,c);var C=s.memoizedState;if(h=C.element,w.isDehydrated)if(w={element:h,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},s.updateQueue.baseState=w,s.memoizedState=w,s.flags&256){y=xa(Error(r(423)),s),s=P1(a,s,h,c,y);break e}else if(h!==y){y=xa(Error(r(424)),s),s=P1(a,s,h,c,y);break e}else for(tr=zn(s.stateNode.containerInfo.firstChild),er=s,nt=!0,jr=null,c=Dw(s,null,h,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(va(),h===y){s=pn(a,s,c);break e}Bt(a,s,h,c)}s=s.child}return s;case 5:return zw(s),a===null&&ap(s),h=s.type,y=s.pendingProps,w=a!==null?a.memoizedProps:null,C=y.children,Yd(h,y)?C=null:w!==null&&Yd(h,w)&&(s.flags|=32),S1(a,s),Bt(a,s,C,c),s.child;case 6:return a===null&&ap(s),null;case 13:return E1(a,s,c);case 4:return pp(s,s.stateNode.containerInfo),h=s.pendingProps,a===null?s.child=ma(s,null,h,c):Bt(a,s,h,c),s.child;case 11:return h=s.type,y=s.pendingProps,y=s.elementType===h?y:Tr(h,y),g1(a,s,h,y,c);case 7:return Bt(a,s,s.pendingProps,c),s.child;case 8:return Bt(a,s,s.pendingProps.children,c),s.child;case 12:return Bt(a,s,s.pendingProps.children,c),s.child;case 10:e:{if(h=s.type._context,y=s.pendingProps,w=s.memoizedProps,C=y.value,Xe(dl,h._currentValue),h._currentValue=C,w!==null)if(Ar(w.value,C)){if(w.children===y.children&&!Ht.current){s=pn(a,s,c);break e}}else for(w=s.child,w!==null&&(w.return=s);w!==null;){var $=w.dependencies;if($!==null){C=w.child;for(var B=$.firstContext;B!==null;){if(B.context===h){if(w.tag===1){B=dn(-1,c&-c),B.tag=2;var Y=w.updateQueue;if(Y!==null){Y=Y.shared;var ie=Y.pending;ie===null?B.next=B:(B.next=ie.next,ie.next=B),Y.pending=B}}w.lanes|=c,B=w.alternate,B!==null&&(B.lanes|=c),cp(w.return,c,s),$.lanes|=c;break}B=B.next}}else if(w.tag===10)C=w.type===s.type?null:w.child;else if(w.tag===18){if(C=w.return,C===null)throw Error(r(341));C.lanes|=c,$=C.alternate,$!==null&&($.lanes|=c),cp(C,c,s),C=w.sibling}else C=w.child;if(C!==null)C.return=w;else for(C=w;C!==null;){if(C===s){C=null;break}if(w=C.sibling,w!==null){w.return=C.return,C=w;break}C=C.return}w=C}Bt(a,s,y.children,c),s=s.child}return s;case 9:return y=s.type,h=s.pendingProps.children,ga(s,c),y=pr(y),h=h(y),s.flags|=1,Bt(a,s,h,c),s.child;case 14:return h=s.type,y=Tr(h,s.pendingProps),y=Tr(h.type,y),b1(a,s,h,y,c);case 15:return x1(a,s,s.type,s.pendingProps,c);case 17:return h=s.type,y=s.pendingProps,y=s.elementType===h?y:Tr(h,y),_l(a,s),s.tag=1,Kt(h)?(a=!0,ol(s)):a=!1,ga(s,c),f1(s,h,y),Ep(s,h,y,c),Cp(null,s,h,!0,a,c);case 19:return j1(a,s,c);case 22:return w1(a,s,c)}throw Error(r(156,s.tag))};function Z1(a,s){return kx(a,s)}function oI(a,s,c,h){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(a,s,c,h){return new oI(a,s,c,h)}function Yp(a){return a=a.prototype,!(!a||!a.isReactComponent)}function sI(a){if(typeof a=="function")return Yp(a)?1:0;if(a!=null){if(a=a.$$typeof,a===L)return 11;if(a===X)return 14}return 2}function Jn(a,s){var c=a.alternate;return c===null?(c=mr(a.tag,s,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=s,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&14680064,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,s=a.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c}function $l(a,s,c,h,y,w){var C=2;if(h=a,typeof a=="function")Yp(a)&&(C=1);else if(typeof a=="string")C=5;else e:switch(a){case N:return Pi(c.children,y,w,s);case R:C=8,y|=8;break;case M:return a=mr(12,c,s,y|2),a.elementType=M,a.lanes=w,a;case H:return a=mr(13,c,s,y),a.elementType=H,a.lanes=w,a;case G:return a=mr(19,c,s,y),a.elementType=G,a.lanes=w,a;case J:return Il(c,y,w,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case z:C=10;break e;case F:C=9;break e;case L:C=11;break e;case X:C=14;break e;case Q:C=16,h=null;break e}throw Error(r(130,a==null?a:typeof a,""))}return s=mr(C,c,s,y),s.elementType=a,s.type=h,s.lanes=w,s}function Pi(a,s,c,h){return a=mr(7,a,h,s),a.lanes=c,a}function Il(a,s,c,h){return a=mr(22,a,h,s),a.elementType=J,a.lanes=c,a.stateNode={isHidden:!1},a}function Qp(a,s,c){return a=mr(6,a,null,s),a.lanes=c,a}function Zp(a,s,c){return s=mr(4,a.children!==null?a.children:[],a.key,s),s.lanes=c,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function uI(a,s,c,h,y){this.tag=s,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pd(0),this.expirationTimes=Pd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pd(0),this.identifierPrefix=h,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function Jp(a,s,c,h,y,w,C,$,B){return a=new uI(a,s,c,$,B),s===1?(s=1,w===!0&&(s|=8)):s=0,w=mr(3,null,null,s),a.current=w,w.stateNode=a,w.memoizedState={element:h,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},dp(w),a}function lI(a,s,c){var h=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ah.exports=SI(),ah.exports}var dS;function OI(){if(dS)return Wl;dS=1;var e=MT();return Wl.createRoot=e.createRoot,Wl.hydrateRoot=e.hydrateRoot,Wl}var _I=OI();const PI=Ue(_I);var EI=MT();const Na=Ue(EI);/** * @remix-run/router v1.23.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jI(){return Math.random().toString(36).substr(2,8)}function hS(e,t){return{usr:e.state,key:e.key,idx:t}}function bg(e,t,r,n){return r===void 0&&(r=null),$s({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vi(t):t,{state:r,key:t&&t.key||n||jI()})}function cc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Vi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function TI(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,u=i.history,l=ii.Pop,f=null,d=v();d==null&&(d=0,u.replaceState($s({},u.state,{idx:d}),""));function v(){return(u.state||{idx:null}).idx}function p(){l=ii.Pop;let g=v(),P=g==null?null:g-d;d=g,f&&f({action:l,location:x.location,delta:P})}function m(g,P){l=ii.Push;let A=bg(x.location,g,P);r&&r(A,g),d=v()+1;let T=hS(A,d),E=x.createHref(A);try{u.pushState(T,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(E)}o&&f&&f({action:l,location:x.location,delta:1})}function b(g,P){l=ii.Replace;let A=bg(x.location,g,P);r&&r(A,g),d=v();let T=hS(A,d),E=x.createHref(A);u.replaceState(T,"",E),o&&f&&f({action:l,location:x.location,delta:0})}function O(g){let P=i.location.origin!=="null"?i.location.origin:i.location.href,A=typeof g=="string"?g:cc(g);return A=A.replace(/ $/,"%20"),ct(P,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,P)}let x={get action(){return l},get location(){return e(i,u)},listen(g){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(pS,p),f=g,()=>{i.removeEventListener(pS,p),f=null}},createHref(g){return t(i,g)},createURL:O,encodeLocation(g){let P=O(g);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:m,replace:b,go(g){return u.go(g)}};return x}var vS;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vS||(vS={}));function CI(e,t,r){return r===void 0&&(r="/"),kI(e,t,r)}function kI(e,t,r,n){let i=typeof t=="string"?Vi(t):t,o=za(i.pathname||"/",r);if(o==null)return null;let u=$T(e);NI(u);let l=null;for(let f=0;l==null&&f{let f={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:u,route:o};f.relativePath.startsWith("/")&&(ct(f.relativePath.startsWith(n),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(n.length));let d=oi([n,f.relativePath]),v=r.concat(f);o.children&&o.children.length>0&&(ct(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),$T(o.children,t,v,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:BI(d,o.index),routesMeta:v})};return e.forEach((o,u)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,u);else for(let f of IT(o.path))i(o,u,f)}),t}function IT(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let u=IT(n.join("/")),l=[];return l.push(...u.map(f=>f===""?o:[o,f].join("/"))),i&&l.push(...u),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function NI(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:FI(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const RI=/^:[\w-]+$/,MI=3,$I=2,II=1,DI=10,LI=-2,mS=e=>e==="*";function BI(e,t){let r=e.split("/"),n=r.length;return r.some(mS)&&(n+=LI),t&&(n+=$I),r.filter(i=>!mS(i)).reduce((i,o)=>i+(RI.test(o)?MI:o===""?II:DI),n)}function FI(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function qI(e,t,r){let{routesMeta:n}=e,i={},o="/",u=[];for(let l=0;l{let{paramName:m,isOptional:b}=v;if(m==="*"){let x=l[p]||"";u=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const O=l[p];return b&&!O?d[m]=void 0:d[m]=(O||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:u,pattern:e}}function zI(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),yf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,f)=>(n.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function UI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function za(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const WI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HI=e=>WI.test(e);function KI(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Vi(e):e,o;if(r)if(HI(r))o=r;else{if(r.includes("//")){let u=r;r=r.replace(/\/\/+/g,"/"),yf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+r))}r.startsWith("/")?o=yS(r.substring(1),"/"):o=yS(r,t)}else o=t;return{pathname:o,search:XI(n),hash:YI(i)}}function yS(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function uh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function VI(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function DT(e,t){let r=VI(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function LT(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Vi(e):(i=$s({},e),ct(!i.pathname||!i.pathname.includes("?"),uh("?","pathname","search",i)),ct(!i.pathname||!i.pathname.includes("#"),uh("#","pathname","hash",i)),ct(!i.search||!i.search.includes("#"),uh("#","search","hash",i)));let o=e===""||i.pathname==="",u=o?"/":i.pathname,l;if(u==null)l=r;else{let p=t.length-1;if(!n&&u.startsWith("..")){let m=u.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}l=p>=0?t[p]:"/"}let f=KI(i,l),d=u&&u!=="/"&&u.endsWith("/"),v=(o||u===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(d||v)&&(f.pathname+="/"),f}const oi=e=>e.join("/").replace(/\/\/+/g,"/"),GI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function QI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const BT=["post","put","patch","delete"];new Set(BT);const ZI=["get",...BT];new Set(ZI);/** * React Router v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),k.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=LT(d,JSON.parse(u),o,v.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:oi([t,p.pathname])),(v.replace?n.replace:n.push)(p,v.state,v)},[t,n,u,o,e])}const t2=k.createContext(null);function r2(e){let t=k.useContext(kn).outlet;return t&&k.createElement(t2.Provider,{value:e},t)}function UT(){let{matches:e}=k.useContext(kn),t=e[e.length-1];return t?t.params:{}}function wf(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=k.useContext(ui),{matches:i}=k.useContext(kn),{pathname:o}=Su(),u=JSON.stringify(DT(i,n.v7_relativeSplatPath));return k.useMemo(()=>LT(e,JSON.parse(u),o,r==="path"),[e,u,o,r])}function n2(e,t){return i2(e,t)}function i2(e,t,r,n){wu()||ct(!1);let{navigator:i}=k.useContext(ui),{matches:o}=k.useContext(kn),u=o[o.length-1],l=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let d=Su(),v;if(t){var p;let g=typeof t=="string"?Vi(t):t;f==="/"||(p=g.pathname)!=null&&p.startsWith(f)||ct(!1),v=g}else v=d;let m=v.pathname||"/",b=m;if(f!=="/"){let g=f.replace(/^\//,"").split("/");b="/"+m.replace(/^\//,"").split("/").slice(g.length).join("/")}let O=CI(e,{pathname:b}),x=l2(O&&O.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:oi([f,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?f:oi([f,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r,n);return t&&x?k.createElement(bf.Provider,{value:{location:Is({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:ii.Pop}},x):x}function a2(){let e=p2(),t=QI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),r?k.createElement("pre",{style:i},r):null,null)}const o2=k.createElement(a2,null);class s2 extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?k.createElement(kn.Provider,{value:this.props.routeContext},k.createElement(qT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u2(e){let{routeContext:t,match:r,children:n}=e,i=k.useContext(gf);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),k.createElement(kn.Provider,{value:t},n)}function l2(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,l=(i=r)==null?void 0:i.errors;if(l!=null){let v=u.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);v>=0||ct(!1),u=u.slice(0,Math.min(u.length,v+1))}let f=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?u=u.slice(0,d+1):u=[u[0]];break}}}return u.reduceRight((v,p,m)=>{let b,O=!1,x=null,g=null;r&&(b=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||o2,f&&(d<0&&m===0?(v2("route-fallback"),O=!0,g=null):d===m&&(O=!0,g=p.route.hydrateFallbackElement||null)));let P=t.concat(u.slice(0,m+1)),A=()=>{let T;return b?T=x:O?T=g:p.route.Component?T=k.createElement(p.route.Component,null):p.route.element?T=p.route.element:T=v,k.createElement(u2,{match:p,routeContext:{outlet:v,matches:P,isDataRoute:r!=null},children:T})};return r&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?k.createElement(s2,{location:r.location,revalidation:r.revalidation,component:x,error:b,children:A(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):A()},null)}var WT=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(WT||{}),HT=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(HT||{});function c2(e){let t=k.useContext(gf);return t||ct(!1),t}function f2(e){let t=k.useContext(FT);return t||ct(!1),t}function d2(e){let t=k.useContext(kn);return t||ct(!1),t}function KT(e){let t=d2(),r=t.matches[t.matches.length-1];return r.route.id||ct(!1),r.route.id}function p2(){var e;let t=k.useContext(qT),r=f2(),n=KT();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function h2(){let{router:e}=c2(WT.UseNavigateStable),t=KT(HT.UseNavigateStable),r=k.useRef(!1);return zT(()=>{r.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Is({fromRouteId:t},o)))},[e,t])}const gS={};function v2(e,t,r){gS[e]||(gS[e]=!0)}function m2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function y2(e){return r2(e.context)}function Ti(e){ct(!1)}function g2(e){let{basename:t="/",children:r=null,location:n,navigationType:i=ii.Pop,navigator:o,static:u=!1,future:l}=e;wu()&&ct(!1);let f=t.replace(/^\/*/,"/"),d=k.useMemo(()=>({basename:f,navigator:o,static:u,future:Is({v7_relativeSplatPath:!1},l)}),[f,l,o,u]);typeof n=="string"&&(n=Vi(n));let{pathname:v="/",search:p="",hash:m="",state:b=null,key:O="default"}=n,x=k.useMemo(()=>{let g=za(v,f);return g==null?null:{location:{pathname:g,search:p,hash:m,state:b,key:O},navigationType:i}},[f,v,p,m,b,O,i]);return x==null?null:k.createElement(ui.Provider,{value:d},k.createElement(bf.Provider,{children:r,value:x}))}function b2(e){let{children:t,location:r}=e;return n2(wg(t),r)}new Promise(()=>{});function wg(e,t){t===void 0&&(t=[]);let r=[];return k.Children.forEach(e,(n,i)=>{if(!k.isValidElement(n))return;let o=[...t,i];if(n.type===k.Fragment){r.push.apply(r,wg(n.props.children,o));return}n.type!==Ti&&ct(!1),!n.props.index||!n.props.children||ct(!1);let u={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(u.children=wg(n.props.children,o)),r.push(u)}),r}/** * React Router DOM v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function x2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w2(e,t){return e.button===0&&(!t||t==="_self")&&!x2(e)}const S2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],O2=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],_2="6";try{window.__reactRouterVersion=_2}catch{}const P2=k.createContext({isTransitioning:!1}),E2="startTransition",bS=bI[E2];function A2(e){let{basename:t,children:r,future:n,window:i}=e,o=k.useRef();o.current==null&&(o.current=AI({window:i,v5Compat:!0}));let u=o.current,[l,f]=k.useState({action:u.action,location:u.location}),{v7_startTransition:d}=n||{},v=k.useCallback(p=>{d&&bS?bS(()=>f(p)):f(p)},[f,d]);return k.useLayoutEffect(()=>u.listen(v),[u,v]),k.useEffect(()=>m2(n),[n]),k.createElement(g2,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:u,future:n})}const j2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",T2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ds=k.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:u,state:l,target:f,to:d,preventScrollReset:v,viewTransition:p}=t,m=VT(t,S2),{basename:b}=k.useContext(ui),O,x=!1;if(typeof d=="string"&&T2.test(d)&&(O=d,j2))try{let T=new URL(window.location.href),E=d.startsWith("//")?new URL(T.protocol+d):new URL(d),_=za(E.pathname,b);E.origin===T.origin&&_!=null?d=_+E.search+E.hash:x=!0}catch{}let g=JI(d,{relative:i}),P=k2(d,{replace:u,state:l,target:f,preventScrollReset:v,relative:i,viewTransition:p});function A(T){n&&n(T),T.defaultPrevented||P(T)}return k.createElement("a",fc({},m,{href:O||g,onClick:x||o?n:A,ref:r,target:f}))}),Hl=k.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:u=!1,style:l,to:f,viewTransition:d,children:v}=t,p=VT(t,O2),m=wf(f,{relative:p.relative}),b=Su(),O=k.useContext(FT),{navigator:x,basename:g}=k.useContext(ui),P=O!=null&&N2(m)&&d===!0,A=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,T=b.pathname,E=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;i||(T=T.toLowerCase(),E=E?E.toLowerCase():null,A=A.toLowerCase()),E&&g&&(E=za(E,g)||E);const _=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let j=T===A||!u&&T.startsWith(A)&&T.charAt(_)==="/",N=E!=null&&(E===A||!u&&E.startsWith(A)&&E.charAt(A.length)==="/"),R={isActive:j,isPending:N,isTransitioning:P},M=j?n:void 0,z;typeof o=="function"?z=o(R):z=[o,j?"active":null,N?"pending":null,P?"transitioning":null].filter(Boolean).join(" ");let F=typeof l=="function"?l(R):l;return k.createElement(Ds,fc({},p,{"aria-current":M,className:z,ref:r,style:F,to:f,viewTransition:d}),typeof v=="function"?v(R):v)});var Sg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Sg||(Sg={}));var xS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xS||(xS={}));function C2(e){let t=k.useContext(gf);return t||ct(!1),t}function k2(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:u,viewTransition:l}=t===void 0?{}:t,f=xf(),d=Su(),v=wf(e,{relative:u});return k.useCallback(p=>{if(w2(p,r)){p.preventDefault();let m=n!==void 0?n:cc(d)===cc(v);f(e,{replace:m,state:i,preventScrollReset:o,relative:u,viewTransition:l})}},[d,f,v,n,i,r,e,o,u,l])}function N2(e,t){t===void 0&&(t={});let r=k.useContext(P2);r==null&&ct(!1);let{basename:n}=C2(Sg.useViewTransitionState),i=wf(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=za(r.currentLocation.pathname,n)||r.currentLocation.pathname,u=za(r.nextLocation.pathname,n)||r.nextLocation.pathname;return xg(i.pathname,u)!=null||xg(i.pathname,o)!=null}const R2={"nav.dashboard":{fr:"Dashboard",en:"Dashboard"},"nav.sessions":{fr:"Sessions",en:"Sessions"},"nav.users":{fr:"Utilisateurs",en:"Users"},"dashboard.title":{fr:"Dashboard",en:"Dashboard"},"dashboard.totalSessions":{fr:"Sessions",en:"Sessions"},"dashboard.totalUsers":{fr:"Utilisateurs",en:"Users"},"dashboard.successRate":{fr:"Taux de réussite",en:"Success Rate"},"dashboard.avgPrecision":{fr:"Précision moy.",en:"Avg. Precision"},"dashboard.sessionsByType":{fr:"Sessions par type",en:"Sessions by Type"},"dashboard.monthlyActivity":{fr:"Activité mensuelle",en:"Monthly Activity"},"dashboard.recentSessions":{fr:"Sessions récentes",en:"Recent Sessions"},"dashboard.topPrecision":{fr:"Top Précision",en:"Top Precision"},"sessions.title":{fr:"Sessions",en:"Sessions"},"sessions.sessionType":{fr:"Type de session",en:"Session Type"},"sessions.allTypes":{fr:"Tous les types",en:"All Types"},"sessions.result":{fr:"Résultat",en:"Result"},"sessions.all":{fr:"Tous",en:"All"},"sessions.success":{fr:"Réussi",en:"Success"},"sessions.failed":{fr:"Échoué",en:"Failed"},"sessions.search":{fr:"Scénario, map, nom...",en:"Scenario, map, name..."},"sessions.noSession":{fr:"Aucune session trouvée",en:"No session found"},"session.backToSessions":{fr:"Retour aux sessions",en:"Back to Sessions"},"session.notFound":{fr:"Session non trouvée",en:"Session not found"},"session.score":{fr:"Score",en:"Score"},"session.duration":{fr:"Durée",en:"Duration"},"session.enemiesHit":{fr:"Ennemis touchés",en:"Enemies Hit"},"session.civiliansHit":{fr:"Civils touchés",en:"Civilians Hit"},"session.damageTaken":{fr:"Dégâts reçus",en:"Damage Taken"},"session.participants":{fr:"Participants",en:"Participants"},"session.objectives":{fr:"Objectifs",en:"Objectives"},"session.hitDistribution":{fr:"Répartition des impacts",en:"Hit Distribution"},"session.shotDetails":{fr:"Détail des tirs",en:"Shot Details"},"table.date":{fr:"Date",en:"Date"},"table.type":{fr:"Type",en:"Type"},"table.scenario":{fr:"Scénario",en:"Scenario"},"table.map":{fr:"Map",en:"Map"},"table.score":{fr:"Score",en:"Score"},"table.enemies":{fr:"Ennemis",en:"Enemies"},"table.civilians":{fr:"Civils",en:"Civilians"},"table.duration":{fr:"Durée",en:"Duration"},"table.result":{fr:"Résultat",en:"Result"},"table.user":{fr:"Utilisateur",en:"User"},"table.shotsFired":{fr:"Tirs effectués",en:"Shots Fired"},"table.shotsMissed":{fr:"Tirs manqués",en:"Shots Missed"},"table.enemiesHit":{fr:"Ennemis touchés",en:"Enemies Hit"},"table.civiliansHit":{fr:"Civils touchés",en:"Civilians Hit"},"table.avgPrecision":{fr:"Précision moy.",en:"Avg. Precision"},"table.reactionTime":{fr:"Temps réaction",en:"Reaction Time"},"table.hitsReceivedIA":{fr:"Tirs reçus (IA)",en:"Hits from IA"},"table.enemiesKilled":{fr:"Ennemis tués",en:"Enemies Killed"},"table.civiliansKilled":{fr:"Civils tués",en:"Civilians Killed"},"table.username":{fr:"Username",en:"Username"},"table.name":{fr:"Nom",en:"Name"},"table.avgReaction":{fr:"Réaction moy.",en:"Avg. Reaction"},"table.lastConnection":{fr:"Dernière connexion",en:"Last Connection"},"shot.index":{fr:"#",en:"#"},"shot.shooter":{fr:"Tireur",en:"Shooter"},"shot.impactType":{fr:"Type impact",en:"Impact Type"},"shot.target":{fr:"Cible",en:"Target"},"shot.boneZone":{fr:"Os/Zone",en:"Bone/Zone"},"shot.precision":{fr:"Précision",en:"Precision"},"shot.distance":{fr:"Distance",en:"Distance"},"shot.reaction":{fr:"Réaction",en:"Reaction"},"shot.killed":{fr:"Tué",en:"Killed"},"shot.time":{fr:"Temps",en:"Time"},"users.title":{fr:"Utilisateurs",en:"Users"},"users.search":{fr:"Rechercher par nom, prénom ou username...",en:"Search by name or username..."},"users.noUser":{fr:"Aucun utilisateur trouvé",en:"No user found"},"user.backToUsers":{fr:"Retour aux utilisateurs",en:"Back to Users"},"user.notFound":{fr:"Utilisateur non trouvé",en:"User not found"},"user.male":{fr:"Homme",en:"Male"},"user.female":{fr:"Femme",en:"Female"},"user.leftHanded":{fr:"Gaucher",en:"Left-handed"},"user.rightHanded":{fr:"Droitier",en:"Right-handed"},"user.height":{fr:"Taille",en:"Height"},"user.avatar":{fr:"Avatar",en:"Avatar"},"user.weapon":{fr:"Arme",en:"Weapon"},"user.sessions":{fr:"Sessions",en:"Sessions"},"user.totalTime":{fr:"Temps total",en:"Total Time"},"user.avgPrecision":{fr:"Précision moy.",en:"Avg. Precision"},"user.avgReaction":{fr:"Réaction moy.",en:"Avg. Reaction"},"user.shotsFired":{fr:"Tirs effectués",en:"Shots Fired"},"user.enemiesKilled":{fr:"Ennemis tués",en:"Enemies Killed"},"user.detailedStats":{fr:"Statistiques globales détaillées",en:"Detailed Global Statistics"},"user.shots":{fr:"Tirs",en:"Shots"},"user.hitsReceived":{fr:"Tirs reçus",en:"Hits Received"},"user.eliminations":{fr:"Éliminations",en:"Eliminations"},"user.precisionEvolution":{fr:"Évolution Précision / Temps de réaction",en:"Precision / Reaction Time Evolution"},"user.sessionTypeDistrib":{fr:"Répartition par type de session",en:"Distribution by Session Type"},"user.sessionHistory":{fr:"Historique des sessions",en:"Session History"},"user.noSession":{fr:"Aucune session",en:"No sessions"},"stats.shotsFired":{fr:"Tirs effectués",en:"Shots fired"},"stats.shotsMissed":{fr:"Tirs manqués",en:"Shots missed"},"stats.enemiesHit":{fr:"Ennemis touchés",en:"Enemies hit"},"stats.civiliansHit":{fr:"Civils touchés",en:"Civilians hit"},"stats.policeHit":{fr:"Police touchée",en:"Police hit"},"stats.fromEnemyIA":{fr:"Depuis IA ennemie",en:"From enemy AI"},"stats.fromEnemyUsers":{fr:"Depuis joueurs ennemis",en:"From enemy players"},"stats.fromPolice":{fr:"Depuis police (tir ami)",en:"From police (friendly fire)"},"stats.enemiesKilled":{fr:"Ennemis tués",en:"Enemies killed"},"stats.civiliansKilled":{fr:"Civils tués",en:"Civilians killed"},"stats.policeKilled":{fr:"Police tuée",en:"Police killed"},"obj.civilian":{fr:"Protection civils",en:"Civilian Protection"},"obj.time":{fr:"Temps",en:"Time"},"obj.enemy":{fr:"Ennemis",en:"Enemies"},"obj.health":{fr:"Santé",en:"Health"},"obj.precision":{fr:"Précision",en:"Precision"},"obj.reactTime":{fr:"Temps de réaction",en:"Reaction Time"},"obj.ammoLimit":{fr:"Munitions",en:"Ammo"},"obj.target":{fr:"Cibles",en:"Targets"},"obj.overall":{fr:"Global",en:"Overall"},"sessionType.0":{fr:"Stand de Tir",en:"Fire Range"},"sessionType.1":{fr:"Challenge",en:"Challenge"},"sessionType.2":{fr:"Protection",en:"Protect"},"sessionType.3":{fr:"Désescalade",en:"De-Escalation"},"sessionType.4":{fr:"Terrorisme",en:"Terrorism"},"sessionType.5":{fr:"Incendie",en:"Fire Extinction"},"sessionType.6":{fr:"Récupération",en:"Recovering"},"sessionType.7":{fr:"Tir Longue Distance",en:"Long Range"},"hitType.enemy":{fr:"Ennemi",en:"Enemy"},"hitType.civilian":{fr:"Civil",en:"Civilian"},"hitType.police":{fr:"Police",en:"Police"},"hitType.object":{fr:"Objet",en:"Object"},"hitType.paperTarget":{fr:"Cible Papier",en:"Paper Target"},"hitType.target":{fr:"Cible",en:"Target"},"hitType.deadBody":{fr:"Corps",en:"Dead Body"},"badge.success":{fr:"Réussi",en:"Success"},"badge.failed":{fr:"Échoué",en:"Failed"},"badge.killed":{fr:"Tué",en:"Killed"},"chart.sessions":{fr:"Sessions",en:"Sessions"},"chart.precision":{fr:"Précision",en:"Precision"},"chart.reactionTime":{fr:"Temps réaction (ms)",en:"Reaction Time (ms)"},"print.btn":{fr:"Imprimer",en:"Print"},"print.generatedOn":{fr:"Généré le",en:"Generated on"},loading:{fr:"Chargement...",en:"Loading..."},noData:{fr:"Aucune donnée",en:"No data"}},GT=k.createContext(null);function M2({children:e}){const[t,r]=k.useState(()=>{const o=localStorage.getItem("proserve-lang");return o==="en"||o==="fr"?o:"fr"}),n=k.useCallback(o=>{r(o),localStorage.setItem("proserve-lang",o)},[]),i=k.useCallback(o=>{var u;return((u=R2[o])==null?void 0:u[t])||o},[t]);return S.jsx(GT.Provider,{value:{lang:t,setLang:n,t:i},children:e})}function tn(){const e=k.useContext(GT);if(!e)throw new Error("useI18n must be used within I18nProvider");return e}var lh={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var wS;function $2(){return wS||(wS=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",u=0;ue!=null?String(e):t||null;function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?v-1:0),m=1;m{e=Re(e,"navbar-brand");const o=r||(n.href?"a":"span");return S.jsx(o,{...n,ref:i,className:Oe(t,e)})});JT.displayName="NavbarBrand";function Q0(e){return e&&e.ownerDocument||document}function U2(e){var t=Q0(e);return t&&t.defaultView||window}function W2(e,t){return U2(e).getComputedStyle(e,t)}var H2=/([A-Z])/g;function K2(e){return e.replace(H2,"-$1").toLowerCase()}var V2=/^ms-/;function Kl(e){return K2(e).replace(V2,"-ms-")}var G2=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function X2(e){return!!(e&&G2.test(e))}function Sn(e,t){var r="",n="";if(typeof t=="string")return e.style.getPropertyValue(Kl(t))||W2(e).getPropertyValue(Kl(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Kl(i)):X2(i)?n+=i+"("+o+") ":r+=Kl(i)+": "+o+";"}),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r}var ch={exports:{}},fh,OS;function Y2(){if(OS)return fh;OS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fh=e,fh}var dh,_S;function Q2(){if(_S)return dh;_S=1;var e=Y2();function t(){}function r(){}return r.resetWarningCache=t,dh=function(){function n(u,l,f,d,v,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},dh}var PS;function Z2(){return PS||(PS=1,ch.exports=Q2()()),ch.exports}var J2=Z2();const $e=Ue(J2),ES={disabled:!1},eC=I.createContext(null);var eD=function(t){return t.scrollTop},_s="unmounted",ti="exited",Dr="entering",yn="entered",Ls="exiting",Nn=(function(e){F2(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var u=i,l=u&&!u.isMounting?n.enter:n.appear,f;return o.appearStatus=null,n.in?l?(f=ti,o.appearStatus=Dr):f=yn:n.unmountOnExit||n.mountOnEnter?f=_s:f=ti,o.state={status:f},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var u=i.in;return u&&o.status===_s?{status:ti}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==Dr&&u!==yn&&(o=Dr):(u===Dr||u===yn)&&(o=Ls)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o,u,l;return o=u=l=i,i!=null&&typeof i!="number"&&(o=i.exit,u=i.enter,l=i.appear!==void 0?i.appear:u),{exit:o,enter:u,appear:l}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Dr){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Na.findDOMNode(this);u&&eD(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ti&&this.setState({status:_s})},r.performEnter=function(i){var o=this,u=this.props.enter,l=this.context?this.context.isMounting:i,f=this.props.nodeRef?[l]:[Na.findDOMNode(this),l],d=f[0],v=f[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!i&&!u||ES.disabled){this.safeSetState({status:yn},function(){o.props.onEntered(d)});return}this.props.onEnter(d,v),this.safeSetState({status:Dr},function(){o.props.onEntering(d,v),o.onTransitionEnd(m,function(){o.safeSetState({status:yn},function(){o.props.onEntered(d,v)})})})},r.performExit=function(){var i=this,o=this.props.exit,u=this.getTimeouts(),l=this.props.nodeRef?void 0:Na.findDOMNode(this);if(!o||ES.disabled){this.safeSetState({status:ti},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ls},function(){i.props.onExiting(l),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:ti},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,u=!0;return this.nextCallback=function(l){u&&(u=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var u=this.props.nodeRef?this.props.nodeRef.current:Na.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!u||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],d=f[0],v=f[1];this.props.addEndListener(d,v)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===_s)return null;var o=this.props,u=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=XT(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(eC.Provider,{value:null},typeof u=="function"?u(i,l):I.cloneElement(I.Children.only(u),l))},t})(I.Component);Nn.contextType=eC;Nn.propTypes={};function Pa(){}Nn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pa,onEntering:Pa,onEntered:Pa,onExit:Pa,onExiting:Pa,onExited:Pa};Nn.UNMOUNTED=_s;Nn.EXITED=ti;Nn.ENTERING=Dr;Nn.ENTERED=yn;Nn.EXITING=Ls;function tD(e){return e.code==="Escape"||e.keyCode===27}function rD(){const e=k.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function mo(e){if(!e||typeof e=="function")return null;const{major:t}=rD();return t>=19?e.props.ref:e.ref}const Of=!!(typeof window<"u"&&window.document&&window.document.createElement);var Pg=!1,Eg=!1;try{var ph={get passive(){return Pg=!0},get once(){return Eg=Pg=!0}};Of&&(window.addEventListener("test",ph,ph),window.removeEventListener("test",ph,!0))}catch{}function nD(e,t,r,n){if(n&&typeof n!="boolean"&&!Eg){var i=n.once,o=n.capture,u=r;!Eg&&i&&(u=r.__once||function l(f){this.removeEventListener(t,l,o),r.call(this,f)},r.__once=u),e.addEventListener(t,u,Pg?n:o)}e.addEventListener(t,r,n)}function iD(e,t,r,n){var i=n&&typeof n!="boolean"?n.capture:n;e.removeEventListener(t,r,i),r.__once&&e.removeEventListener(t,r.__once,i)}function pc(e,t,r,n){return nD(e,t,r,n),function(){iD(e,t,r,n)}}function aD(e,t,r,n){if(n===void 0&&(n=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,r,n),e.dispatchEvent(i)}}function oD(e){var t=Sn(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function sD(e,t,r){r===void 0&&(r=5);var n=!1,i=setTimeout(function(){n||aD(e,"transitionend",!0)},t+r),o=pc(e,"transitionend",function(){n=!0},{once:!0});return function(){clearTimeout(i),o()}}function uD(e,t,r,n){r==null&&(r=oD(e)||0);var i=sD(e,r,n),o=pc(e,"transitionend",t);return function(){i(),o()}}function AS(e,t){const r=Sn(e,t)||"",n=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*n}function Z0(e,t){const r=AS(e,"transitionDuration"),n=AS(e,"transitionDelay"),i=uD(e,o=>{o.target===e&&(i(),t(o))},r+n)}function hs(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...i){t.apply(this,i),r.apply(this,i)}},null)}function tC(e){e.offsetHeight}const jS=e=>!e||typeof e=="function"?e:t=>{e.current=t};function lD(e,t){const r=jS(e),n=jS(t);return i=>{r&&r(i),n&&n(i)}}function cD(e,t){return k.useMemo(()=>lD(e,t),[e,t])}function fD(e){return e&&"setState"in e?Na.findDOMNode(e):e??null}const _f=I.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,onExited:o,addEndListener:u,children:l,childRef:f,...d},v)=>{const p=k.useRef(null),m=cD(p,f),b=j=>{m(fD(j))},O=j=>N=>{j&&p.current&&j(p.current,N)},x=k.useCallback(O(e),[e]),g=k.useCallback(O(t),[t]),P=k.useCallback(O(r),[r]),A=k.useCallback(O(n),[n]),T=k.useCallback(O(i),[i]),E=k.useCallback(O(o),[o]),_=k.useCallback(O(u),[u]);return S.jsx(Nn,{ref:v,...d,onEnter:x,onEntered:P,onEntering:g,onExit:A,onExited:E,onExiting:T,addEndListener:_,nodeRef:p,children:typeof l=="function"?(j,N)=>l(j,{...N,ref:b}):I.cloneElement(l,{ref:b})})});_f.displayName="TransitionWrapper";const dD={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function pD(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,n=t[r],i=dD[e];return n+parseInt(Sn(t,i[0]),10)+parseInt(Sn(t,i[1]),10)}const hD={[ti]:"collapse",[Ls]:"collapsing",[Dr]:"collapsing",[yn]:"collapse show"},rC=I.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,className:o,children:u,dimension:l="height",in:f=!1,timeout:d=300,mountOnEnter:v=!1,unmountOnExit:p=!1,appear:m=!1,getDimensionValue:b=pD,...O},x)=>{const g=typeof l=="function"?l():l,P=k.useMemo(()=>hs(j=>{j.style[g]="0"},e),[g,e]),A=k.useMemo(()=>hs(j=>{const N=`scroll${g[0].toUpperCase()}${g.slice(1)}`;j.style[g]=`${j[N]}px`},t),[g,t]),T=k.useMemo(()=>hs(j=>{j.style[g]=null},r),[g,r]),E=k.useMemo(()=>hs(j=>{j.style[g]=`${b(g,j)}px`,tC(j)},n),[n,b,g]),_=k.useMemo(()=>hs(j=>{j.style[g]=null},i),[g,i]);return S.jsx(_f,{ref:x,addEndListener:Z0,...O,"aria-expanded":O.role?f:null,onEnter:P,onEntering:A,onEntered:T,onExit:E,onExiting:_,childRef:mo(u),in:f,timeout:d,mountOnEnter:v,unmountOnExit:p,appear:m,children:(j,N)=>I.cloneElement(u,{...N,className:Oe(o,u.props.className,hD[j],g==="width"&&"collapse-horizontal")})})});rC.displayName="Collapse";const yo=k.createContext(null);yo.displayName="NavbarContext";const nC=k.forwardRef(({children:e,bsPrefix:t,...r},n)=>{t=Re(t,"navbar-collapse");const i=k.useContext(yo);return S.jsx(rC,{in:!!(i&&i.expanded),...r,children:S.jsx("div",{ref:n,className:t,children:e})})});nC.displayName="NavbarCollapse";function vD(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function Pf(e){const t=vD(e);return k.useCallback(function(...r){return t.current&&t.current(...r)},[t])}const iC=k.forwardRef(({bsPrefix:e,className:t,children:r,label:n="Toggle navigation",as:i="button",onClick:o,...u},l)=>{e=Re(e,"navbar-toggler");const{onToggle:f,expanded:d}=k.useContext(yo)||{},v=Pf(p=>{o&&o(p),f&&f()});return i==="button"&&(u.type="button"),S.jsx(i,{...u,ref:l,onClick:v,"aria-label":n,className:Oe(t,e,!d&&"collapsed"),children:r||S.jsx("span",{className:`${e}-icon`})})});iC.displayName="NavbarToggle";const mD=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",yD=typeof document<"u",gD=yD||mD?k.useLayoutEffect:k.useEffect,Ag=new WeakMap,TS=(e,t)=>{if(!e||!t)return;const r=Ag.get(t)||new Map;Ag.set(t,r);let n=r.get(e);return n||(n=t.matchMedia(e),n.refCount=0,r.set(n.media,n)),n};function bD(e,t=typeof window>"u"?void 0:window){const r=TS(e,t),[n,i]=k.useState(()=>r?r.matches:!1);return gD(()=>{let o=TS(e,t);if(!o)return i(!1);let u=Ag.get(t);const l=()=>{i(o.matches)};return o.refCount++,o.addListener(l),l(),()=>{o.removeListener(l),o.refCount--,o.refCount<=0&&(u==null||u.delete(o.media)),o=void 0}},[e]),n}function xD(e){const t=Object.keys(e);function r(l,f){return l===f?f:l?`${l} and ${f}`:f}function n(l){return t[Math.min(t.indexOf(l)+1,t.length-1)]}function i(l){const f=n(l);let d=e[f];return typeof d=="number"?d=`${d-.2}px`:d=`calc(${d} - 0.2px)`,`(max-width: ${d})`}function o(l){let f=e[l];return typeof f=="number"&&(f=`${f}px`),`(min-width: ${f})`}function u(l,f,d){let v;typeof l=="object"?(v=l,d=f,f=!0):(f=f||!0,v={[l]:f});let p=k.useMemo(()=>Object.entries(v).reduce((m,[b,O])=>((O==="up"||O===!0)&&(m=r(m,o(b))),(O==="down"||O===!0)&&(m=r(m,i(b))),m),""),[JSON.stringify(v)]);return bD(p,d)}return u}const wD=xD({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});function hh(e){e===void 0&&(e=Q0());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function CS(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function SD(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function OD(e){const t=k.useRef(e);return t.current=e,t}function _D(e){const t=OD(e);k.useEffect(()=>()=>t.current(),[])}function PD(e){const t=k.useRef(null);return k.useEffect(()=>{t.current=e}),t.current}function ED(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function gn(e){const t=ED(e);return k.useCallback(function(...r){return t.current&&t.current(...r)},[t])}const AD="data-rr-ui-",jD="rrUi";function Ef(e){return`${AD}${e}`}function TD(e){return`${jD}${e}`}function CD(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const kS=Ef("modal-open");class J0{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:n=!1}={}){this.handleContainerOverflow=r,this.isRTL=n,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return CD(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[n]:i.style[n]},t.scrollBarWidth&&(r[n]=`${parseInt(Sn(i,n)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(kS,""),Sn(i,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(kS),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const aC=k.createContext(Of?window:void 0);aC.Provider;function eb(){return k.useContext(aC)}const vh=(e,t)=>Of?e==null?(t||Q0()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function kD(e,t){const r=eb(),[n,i]=k.useState(()=>vh(e,r==null?void 0:r.document));if(!n){const o=vh(e);o&&i(o)}return k.useEffect(()=>{},[t,n]),k.useEffect(()=>{const o=vh(e);o!==n&&i(o)},[e,n]),n}const NS=e=>!e||typeof e=="function"?e:t=>{e.current=t};function ND(e,t){const r=NS(e),n=NS(t);return i=>{r&&r(i),n&&n(i)}}function Af(e,t){return k.useMemo(()=>ND(e,t),[e,t])}const RD=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",MD=typeof document<"u",RS=MD||RD?k.useLayoutEffect:k.useEffect;function $D({children:e,in:t,onExited:r,mountOnEnter:n,unmountOnExit:i}){const o=k.useRef(null),u=k.useRef(t),l=gn(r);k.useEffect(()=>{t?u.current=!0:l(o.current)},[t,l]);const f=Af(o,mo(e)),d=k.cloneElement(e,{ref:f});return t?d:i||!u.current&&n?null:d}const ID=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function DD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function LD(e){let{onEnter:t,onEntering:r,onEntered:n,onExit:i,onExiting:o,onExited:u,addEndListener:l,children:f}=e,d=DD(e,ID);const v=k.useRef(null),p=Af(v,mo(f)),m=E=>_=>{E&&v.current&&E(v.current,_)},b=k.useCallback(m(t),[t]),O=k.useCallback(m(r),[r]),x=k.useCallback(m(n),[n]),g=k.useCallback(m(i),[i]),P=k.useCallback(m(o),[o]),A=k.useCallback(m(u),[u]),T=k.useCallback(m(l),[l]);return Object.assign({},d,{nodeRef:v},t&&{onEnter:b},r&&{onEntering:O},n&&{onEntered:x},i&&{onExit:g},o&&{onExiting:P},u&&{onExited:A},l&&{addEndListener:T},{children:typeof f=="function"?(E,_)=>f(E,Object.assign({},_,{ref:p})):k.cloneElement(f,{ref:p})})}const BD=["component"];function FD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}const qD=k.forwardRef((e,t)=>{let{component:r}=e,n=FD(e,BD);const i=LD(n);return S.jsx(r,Object.assign({ref:t},i))});function zD({in:e,onTransition:t}){const r=k.useRef(null),n=k.useRef(!0),i=gn(t);return RS(()=>{if(!r.current)return;let o=!1;return i({in:e,element:r.current,initial:n.current,isStale:()=>o}),()=>{o=!0}},[e,i]),RS(()=>(n.current=!1,()=>{n.current=!0}),[]),r}function UD({children:e,in:t,onExited:r,onEntered:n,transition:i}){const[o,u]=k.useState(!t);t&&o&&u(!1);const l=zD({in:!!t,onTransition:d=>{const v=()=>{d.isStale()||(d.in?n==null||n(d.element,d.initial):(u(!0),r==null||r(d.element)))};Promise.resolve(i(d)).then(v,p=>{throw d.in||u(!0),p})}}),f=Af(l,mo(e));return o&&!t?null:k.cloneElement(e,{ref:f})}function MS(e,t,r){return e?S.jsx(qD,Object.assign({},r,{component:e})):t?S.jsx(UD,Object.assign({},r,{transition:t})):S.jsx($D,Object.assign({},r))}const WD=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function HD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}let mh;function KD(e){return mh||(mh=new J0({ownerDocument:e==null?void 0:e.document})),mh}function VD(e){const t=eb(),r=e||KD(t),n=k.useRef({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>r.add(n.current),remove:()=>r.remove(n.current),isTopModal:()=>r.isTopModal(n.current),setDialogRef:k.useCallback(i=>{n.current.dialog=i},[]),setBackdropRef:k.useCallback(i=>{n.current.backdrop=i},[])})}const oC=k.forwardRef((e,t)=>{let{show:r=!1,role:n="dialog",className:i,style:o,children:u,backdrop:l=!0,keyboard:f=!0,onBackdropClick:d,onEscapeKeyDown:v,transition:p,runTransition:m,backdropTransition:b,runBackdropTransition:O,autoFocus:x=!0,enforceFocus:g=!0,restoreFocus:P=!0,restoreFocusOptions:A,renderDialog:T,renderBackdrop:E=Ce=>S.jsx("div",Object.assign({},Ce)),manager:_,container:j,onShow:N,onHide:R=()=>{},onExit:M,onExited:z,onExiting:F,onEnter:L,onEntering:H,onEntered:G}=e,X=HD(e,WD);const Q=eb(),J=kD(j),W=VD(_),ee=SD(),Z=PD(r),[D,U]=k.useState(!r),oe=k.useRef(null);k.useImperativeHandle(t,()=>W,[W]),Of&&!Z&&r&&(oe.current=hh(Q==null?void 0:Q.document)),r&&D&&U(!1);const ce=gn(()=>{if(W.add(),ge.current=pc(document,"keydown",je),ae.current=pc(document,"focus",()=>setTimeout(Pe),!0),N&&N(),x){var Ce,Je;const st=hh((Ce=(Je=W.dialog)==null?void 0:Je.ownerDocument)!=null?Ce:Q==null?void 0:Q.document);W.dialog&&st&&!CS(W.dialog,st)&&(oe.current=st,W.dialog.focus())}}),me=gn(()=>{if(W.remove(),ge.current==null||ge.current(),ae.current==null||ae.current(),P){var Ce;(Ce=oe.current)==null||Ce.focus==null||Ce.focus(A),oe.current=null}});k.useEffect(()=>{!r||!J||ce()},[r,J,ce]),k.useEffect(()=>{D&&me()},[D,me]),_D(()=>{me()});const Pe=gn(()=>{if(!g||!ee()||!W.isTopModal())return;const Ce=hh(Q==null?void 0:Q.document);W.dialog&&Ce&&!CS(W.dialog,Ce)&&W.dialog.focus()}),De=gn(Ce=>{Ce.target===Ce.currentTarget&&(d==null||d(Ce),l===!0&&R())}),je=gn(Ce=>{f&&tD(Ce)&&W.isTopModal()&&(v==null||v(Ce),Ce.defaultPrevented||R())}),ae=k.useRef(),ge=k.useRef(),Te=(...Ce)=>{U(!0),z==null||z(...Ce)};if(!J)return null;const ne=Object.assign({role:n,ref:W.setDialogRef,"aria-modal":n==="dialog"?!0:void 0},X,{style:o,className:i,tabIndex:-1});let We=T?T(ne):S.jsx("div",Object.assign({},ne,{children:k.cloneElement(u,{role:"document"})}));We=MS(p,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:M,onExiting:F,onExited:Te,onEnter:L,onEntering:H,onEntered:G,children:We});let Ne=null;return l&&(Ne=E({ref:W.setBackdropRef,onClick:De}),Ne=MS(b,O,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Ne})),S.jsx(S.Fragment,{children:Na.createPortal(S.jsxs(S.Fragment,{children:[Ne,We]}),J)})});oC.displayName="Modal";const GD=Object.assign(oC,{Manager:J0}),XD={[Dr]:"show",[yn]:"show"},sC=k.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:n,...i},o)=>{const u={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=k.useCallback((f,d)=>{tC(f),n==null||n(f,d)},[n]);return S.jsx(_f,{ref:o,addEndListener:Z0,...u,onEnter:l,childRef:mo(t),children:(f,d)=>k.cloneElement(t,{...d,className:Oe("fade",e,t.props.className,XD[f],r[f])})})});sC.displayName="Fade";const uC=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=Re(t,"offcanvas-body"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));uC.displayName="OffcanvasBody";const YD={[Dr]:"show",[yn]:"show"},lC=k.forwardRef(({bsPrefix:e,className:t,children:r,in:n=!1,mountOnEnter:i=!1,unmountOnExit:o=!1,appear:u=!1,...l},f)=>(e=Re(e,"offcanvas"),S.jsx(_f,{ref:f,addEndListener:Z0,in:n,mountOnEnter:i,unmountOnExit:o,appear:u,...l,childRef:mo(r),children:(d,v)=>k.cloneElement(r,{...v,className:Oe(t,r.props.className,(d===Dr||d===Ls)&&`${e}-toggling`,YD[d])})})));lC.displayName="OffcanvasToggling";const cC=k.createContext({onHide(){}}),QD={"aria-label":$e.string,onClick:$e.func,variant:$e.oneOf(["white"])},tb=k.forwardRef(({className:e,variant:t,"aria-label":r="Close",...n},i)=>S.jsx("button",{ref:i,type:"button",className:Oe("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...n}));tb.displayName="CloseButton";tb.propTypes=QD;const fC=k.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:n,children:i,...o},u)=>{const l=k.useContext(cC),f=Pf(()=>{l==null||l.onHide(),n==null||n()});return S.jsxs("div",{ref:u,...o,children:[i,r&&S.jsx(tb,{"aria-label":e,variant:t,onClick:f})]})});fC.displayName="AbstractModalHeader";const dC=k.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:n=!1,...i},o)=>(e=Re(e,"offcanvas-header"),S.jsx(fC,{ref:o,...i,className:Oe(t,e),closeLabel:r,closeButton:n})));dC.displayName="OffcanvasHeader";const rb=(e=>k.forwardRef((t,r)=>S.jsx("div",{...t,ref:r,className:Oe(t.className,e)}))),ZD=rb("h5"),pC=k.forwardRef(({className:e,bsPrefix:t,as:r=ZD,...n},i)=>(t=Re(t,"offcanvas-title"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));pC.displayName="OffcanvasTitle";function JD(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function eL(e,t){e.classList?e.classList.add(t):JD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var tL=Function.prototype.bind.call(Function.prototype.call,[].slice);function Ci(e,t){return tL(e.querySelectorAll(t))}function $S(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rL(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=$S(e.className,t):e.setAttribute("class",$S(e.className&&e.className.baseVal||"",t))}const Ea={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class hC extends J0{adjustAndStore(t,r,n){const i=r.style[t];r.dataset[t]=i,Sn(r,{[t]:`${parseFloat(Sn(r,t))+n}px`})}restore(t,r){const n=r.dataset[t];n!==void 0&&(delete r.dataset[t],Sn(r,{[t]:n}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(eL(r,"modal-open"),!t.scrollBarWidth)return;const n=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Ci(r,Ea.FIXED_CONTENT).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth)),Ci(r,Ea.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Ci(r,Ea.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();rL(r,"modal-open");const n=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Ci(r,Ea.FIXED_CONTENT).forEach(o=>this.restore(n,o)),Ci(r,Ea.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Ci(r,Ea.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let yh;function nL(e){return yh||(yh=new hC(e)),yh}function iL(e){return S.jsx(lC,{...e})}function aL(e){return S.jsx(sC,{...e})}const vC=k.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":n,placement:i="start",responsive:o,show:u=!1,backdrop:l=!0,keyboard:f=!0,scroll:d=!1,onEscapeKeyDown:v,onShow:p,onHide:m,container:b,autoFocus:O=!0,enforceFocus:x=!0,restoreFocus:g=!0,restoreFocusOptions:P,onEntered:A,onExit:T,onExiting:E,onEnter:_,onEntering:j,onExited:N,backdropClassName:R,manager:M,renderStaticNode:z=!1,...F},L)=>{const H=k.useRef();e=Re(e,"offcanvas");const[G,X]=k.useState(!1),Q=Pf(m),J=wD(o||"xs","up");k.useEffect(()=>{X(o?u&&!J:u)},[u,o,J]);const W=k.useMemo(()=>({onHide:Q}),[Q]);function ee(){return M||(d?(H.current||(H.current=new hC({handleContainerOverflow:!1})),H.current):nL())}const Z=(ce,...me)=>{ce&&(ce.style.visibility="visible"),_==null||_(ce,...me)},D=(ce,...me)=>{ce&&(ce.style.visibility=""),N==null||N(...me)},U=k.useCallback(ce=>S.jsx("div",{...ce,className:Oe(`${e}-backdrop`,R)}),[R,e]),oe=ce=>S.jsx("div",{...ce,...F,className:Oe(t,o?`${e}-${o}`:e,`${e}-${i}`),"aria-labelledby":n,children:r});return S.jsxs(S.Fragment,{children:[!G&&(o||z)&&oe({}),S.jsx(cC.Provider,{value:W,children:S.jsx(GD,{show:G,ref:L,backdrop:l,container:b,keyboard:f,autoFocus:O,enforceFocus:x&&!d,restoreFocus:g,restoreFocusOptions:P,onEscapeKeyDown:v,onShow:p,onHide:Q,onEnter:Z,onEntering:j,onEntered:A,onExit:T,onExiting:E,onExited:D,manager:ee(),transition:iL,backdropTransition:aL,renderBackdrop:U,renderDialog:oe})})]})});vC.displayName="Offcanvas";const oL=Object.assign(vC,{Body:uC,Header:dC,Title:pC}),mC=k.forwardRef(({onHide:e,...t},r)=>{const n=k.useContext(yo),i=Pf(()=>{n==null||n.onToggle==null||n.onToggle(),e==null||e()});return S.jsx(oL,{ref:r,show:!!(n!=null&&n.expanded),...t,renderStaticNode:!0,onHide:i})});mC.displayName="NavbarOffcanvas";const yC=k.forwardRef(({className:e,bsPrefix:t,as:r="span",...n},i)=>(t=Re(t,"navbar-text"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));yC.displayName="NavbarText";const gC=k.forwardRef((e,t)=>{const{bsPrefix:r,expand:n=!0,variant:i="light",bg:o,fixed:u,sticky:l,className:f,as:d="nav",expanded:v,onToggle:p,onSelect:m,collapseOnSelect:b=!1,...O}=YT(e,{expanded:"onToggle"}),x=Re(r,"navbar"),g=k.useCallback((...T)=>{m==null||m(...T),b&&v&&(p==null||p(!1))},[m,b,v,p]);O.role===void 0&&d!=="nav"&&(O.role="navigation");let P=`${x}-expand`;typeof n=="string"&&(P=`${P}-${n}`);const A=k.useMemo(()=>({onToggle:()=>p==null?void 0:p(!v),bsPrefix:x,expanded:!!v,expand:n}),[x,v,n,p]);return S.jsx(yo.Provider,{value:A,children:S.jsx(dc.Provider,{value:g,children:S.jsx(d,{ref:t,...O,className:Oe(f,x,n&&P,i&&`${x}-${i}`,o&&`bg-${o}`,l&&`sticky-${l}`,u&&`fixed-${u}`)})})})});gC.displayName="Navbar";const Vl=Object.assign(gC,{Brand:JT,Collapse:nC,Offcanvas:mC,Text:yC,Toggle:iC});function sL(){const[,e]=k.useReducer(t=>t+1,0);return e}const nb=k.createContext(null);nb.displayName="NavContext";const bC=k.createContext(null),uL=["as","disabled"];function lL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cL(e){return!e||e.trim()==="#"}function xC({tagName:e,disabled:t,href:r,target:n,rel:i,role:o,onClick:u,tabIndex:l=0,type:f}){e||(r!=null||n!=null||i!=null?e="a":e="button");const d={tagName:e};if(e==="button")return[{type:f||"button",disabled:t},d];const v=m=>{if((t||e==="a"&&cL(r))&&m.preventDefault(),t){m.stopPropagation();return}u==null||u(m)},p=m=>{m.key===" "&&(m.preventDefault(),v(m))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:r,target:e==="a"?n:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:v,onKeyDown:p},d]}const wC=k.forwardRef((e,t)=>{let{as:r,disabled:n}=e,i=lL(e,uL);const[o,{tagName:u}]=xC(Object.assign({tagName:r,disabled:n},i));return S.jsx(u,Object.assign({},i,o,{ref:t}))});wC.displayName="Button";const fL=["as","active","eventKey"];function dL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function SC({key:e,onClick:t,active:r,id:n,role:i,disabled:o}){const u=k.useContext(dc),l=k.useContext(nb),f=k.useContext(bC);let d=r;const v={role:i};if(l){!i&&l.role==="tablist"&&(v.role="tab");const p=l.getControllerId(e??null),m=l.getControlledId(e??null);v[Ef("event-key")]=e,v.id=p||n,d=r==null&&e!=null?l.activeKey===e:r,(d||!(f!=null&&f.unmountOnExit)&&!(f!=null&&f.mountOnEnter))&&(v["aria-controls"]=m)}return v.role==="tab"&&(v["aria-selected"]=d,d||(v.tabIndex=-1),o&&(v.tabIndex=-1,v["aria-disabled"]=!0)),v.onClick=gn(p=>{o||(t==null||t(p),e!=null&&u&&!p.isPropagationStopped()&&u(e,p))}),[v,{isActive:d}]}const OC=k.forwardRef((e,t)=>{let{as:r=wC,active:n,eventKey:i}=e,o=dL(e,fL);const[u,l]=SC(Object.assign({key:Y0(i,o.href),active:n},o));return u[Ef("active")]=l.isActive,S.jsx(r,Object.assign({},o,u,{ref:t}))});OC.displayName="NavItem";const pL=["as","onSelect","activeKey","role","onKeyDown"];function hL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}const IS=()=>{},DS=Ef("event-key"),_C=k.forwardRef((e,t)=>{let{as:r="div",onSelect:n,activeKey:i,role:o,onKeyDown:u}=e,l=hL(e,pL);const f=sL(),d=k.useRef(!1),v=k.useContext(dc),p=k.useContext(bC);let m,b;p&&(o=o||"tablist",i=p.activeKey,m=p.getControlledId,b=p.getControllerId);const O=k.useRef(null),x=T=>{const E=O.current;if(!E)return null;const _=Ci(E,`[${DS}]:not([aria-disabled=true])`),j=E.querySelector("[aria-selected=true]");if(!j||j!==document.activeElement)return null;const N=_.indexOf(j);if(N===-1)return null;let R=N+T;return R>=_.length&&(R=0),R<0&&(R=_.length-1),_[R]},g=(T,E)=>{T!=null&&(n==null||n(T,E),v==null||v(T,E))},P=T=>{if(u==null||u(T),!p)return;let E;switch(T.key){case"ArrowLeft":case"ArrowUp":E=x(-1);break;case"ArrowRight":case"ArrowDown":E=x(1);break;default:return}E&&(T.preventDefault(),g(E.dataset[TD("EventKey")]||null,T),d.current=!0,f())};k.useEffect(()=>{if(O.current&&d.current){const T=O.current.querySelector(`[${DS}][aria-selected=true]`);T==null||T.focus()}d.current=!1});const A=Af(t,O);return S.jsx(dc.Provider,{value:g,children:S.jsx(nb.Provider,{value:{role:o,activeKey:Y0(i),getControlledId:m||IS,getControllerId:b||IS},children:S.jsx(r,Object.assign({},l,{onKeyDown:P,ref:A,role:o}))})})});_C.displayName="Nav";const vL=Object.assign(_C,{Item:OC}),ib=k.createContext(null);ib.displayName="CardHeaderContext";const PC=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=Re(t,"nav-item"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));PC.displayName="NavItem";const mL=["onKeyDown"];function yL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gL(e){return!e||e.trim()==="#"}const ab=k.forwardRef((e,t)=>{let{onKeyDown:r}=e,n=yL(e,mL);const[i]=xC(Object.assign({tagName:"a"},n)),o=gn(u=>{i.onKeyDown(u),r==null||r(u)});return gL(n.href)||n.role==="button"?S.jsx("a",Object.assign({ref:t},n,i,{onKeyDown:o})):S.jsx("a",Object.assign({ref:t},n,{onKeyDown:r}))});ab.displayName="Anchor";const EC=k.forwardRef(({bsPrefix:e,className:t,as:r=ab,active:n,eventKey:i,disabled:o=!1,...u},l)=>{e=Re(e,"nav-link");const[f,d]=SC({key:Y0(i,u.href),active:n,disabled:o,...u});return S.jsx(r,{...u,...f,ref:l,disabled:o,className:Oe(t,e,o&&"disabled",d.isActive&&"active")})});EC.displayName="NavLink";const AC=k.forwardRef((e,t)=>{const{as:r="div",bsPrefix:n,variant:i,fill:o=!1,justify:u=!1,navbar:l,navbarScroll:f,className:d,activeKey:v,...p}=YT(e,{activeKey:"onSelect"}),m=Re(n,"nav");let b,O,x=!1;const g=k.useContext(yo),P=k.useContext(ib);return g?(b=g.bsPrefix,x=l??!0):P&&({cardHeaderBsPrefix:O}=P),S.jsx(vL,{as:r,ref:t,activeKey:v,className:Oe(d,{[m]:!x,[`${b}-nav`]:x,[`${b}-nav-scroll`]:x&&f,[`${O}-${i}`]:!!O,[`${m}-${i}`]:!!i,[`${m}-fill`]:o,[`${m}-justified`]:u}),...p})});AC.displayName="Nav";const Gl=Object.assign(AC,{Item:PC,Link:EC}),ob=k.forwardRef(({bsPrefix:e,fluid:t=!1,as:r="div",className:n,...i},o)=>{const u=Re(e,"container"),l=typeof t=="string"?`-${t}`:"-fluid";return S.jsx(r,{ref:o,...i,className:Oe(n,t?`${u}${l}`:u)})});ob.displayName="Container";const bL="/ProserveReport/",xL=`${bL}logo.png`;function wL(){const{lang:e,setLang:t,t:r}=tn();return S.jsx(Vl,{bg:"dark",variant:"dark",expand:"lg",className:"app-navbar",children:S.jsxs(ob,{fluid:!0,children:[S.jsxs(Vl.Brand,{as:Hl,to:"/",className:"fw-bold d-flex align-items-center gap-2",children:[S.jsx("img",{src:xL,alt:"Logo",className:"brand-logo"}),S.jsxs("span",{children:[S.jsx("span",{className:"brand-proserve",children:"PROSERVE"}),S.jsx("span",{className:"brand-report ms-2",children:"Report"})]})]}),S.jsx(Vl.Toggle,{"aria-controls":"main-nav"}),S.jsxs(Vl.Collapse,{id:"main-nav",children:[S.jsxs(Gl,{className:"me-auto",children:[S.jsx(Gl.Link,{as:Hl,to:"/",end:!0,children:r("nav.dashboard")}),S.jsx(Gl.Link,{as:Hl,to:"/sessions",children:r("nav.sessions")}),S.jsx(Gl.Link,{as:Hl,to:"/users",children:r("nav.users")})]}),S.jsxs("div",{className:"lang-switcher",children:[S.jsx("button",{className:`lang-btn ${e==="fr"?"active":""}`,onClick:()=>t("fr"),children:"FR"}),S.jsx("button",{className:`lang-btn ${e==="en"?"active":""}`,onClick:()=>t("en"),children:"EN"})]})]})]})})}function SL(){return S.jsxs("div",{className:"app-layout",children:[S.jsx(wL,{}),S.jsx(ob,{fluid:!0,className:"main-content py-4 px-4",children:S.jsx(y2,{})})]})}const Fr=k.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},i)=>{const o=Re(e,"row"),u=QT(),l=ZT(),f=`${o}-cols`,d=[];return u.forEach(v=>{const p=n[v];delete n[v];let m;p!=null&&typeof p=="object"?{cols:m}=p:m=p;const b=v!==l?`-${v}`:"";m!=null&&d.push(`${f}${b}-${m}`)}),S.jsx(r,{ref:i,...n,className:Oe(t,o,...d)})});Fr.displayName="Row";function OL({as:e,bsPrefix:t,className:r,...n}){t=Re(t,"col");const i=QT(),o=ZT(),u=[],l=[];return i.forEach(f=>{const d=n[f];delete n[f];let v,p,m;typeof d=="object"&&d!=null?{span:v,offset:p,order:m}=d:v=d;const b=f!==o?`-${f}`:"";v&&u.push(v===!0?`${t}${b}`:`${t}${b}-${v}`),m!=null&&l.push(`order${b}-${m}`),p!=null&&l.push(`offset${b}-${p}`)}),[{...n,className:Oe(r,...u,...l)},{as:e,bsPrefix:t,spans:u}]}const Be=k.forwardRef((e,t)=>{const[{className:r,...n},{as:i="div",bsPrefix:o,spans:u}]=OL(e);return S.jsx(i,{...n,ref:t,className:Oe(r,!u.length&&o)})});Be.displayName="Col";const sb=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=Re(t,"card-body"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));sb.displayName="CardBody";const jC=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=Re(t,"card-footer"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));jC.displayName="CardFooter";const TC=k.forwardRef(({bsPrefix:e,className:t,as:r="div",...n},i)=>{const o=Re(e,"card-header"),u=k.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return S.jsx(ib.Provider,{value:u,children:S.jsx(r,{ref:i,...n,className:Oe(t,o)})})});TC.displayName="CardHeader";const CC=k.forwardRef(({bsPrefix:e,className:t,variant:r,as:n="img",...i},o)=>{const u=Re(e,"card-img");return S.jsx(n,{ref:o,className:Oe(r?`${u}-${r}`:u,t),...i})});CC.displayName="CardImg";const kC=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=Re(t,"card-img-overlay"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));kC.displayName="CardImgOverlay";const NC=k.forwardRef(({className:e,bsPrefix:t,as:r="a",...n},i)=>(t=Re(t,"card-link"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));NC.displayName="CardLink";const _L=rb("h6"),RC=k.forwardRef(({className:e,bsPrefix:t,as:r=_L,...n},i)=>(t=Re(t,"card-subtitle"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));RC.displayName="CardSubtitle";const MC=k.forwardRef(({className:e,bsPrefix:t,as:r="p",...n},i)=>(t=Re(t,"card-text"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));MC.displayName="CardText";const PL=rb("h5"),$C=k.forwardRef(({className:e,bsPrefix:t,as:r=PL,...n},i)=>(t=Re(t,"card-title"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));$C.displayName="CardTitle";const IC=k.forwardRef(({bsPrefix:e,className:t,bg:r,text:n,border:i,body:o=!1,children:u,as:l="div",...f},d)=>{const v=Re(e,"card");return S.jsx(l,{ref:d,...f,className:Oe(t,v,r&&`bg-${r}`,n&&`text-${n}`,i&&`border-${i}`),children:o?S.jsx(sb,{children:u}):u})});IC.displayName="Card";const we=Object.assign(IC,{Img:CC,Title:$C,Subtitle:RC,Body:sb,Link:NC,Text:MC,Header:TC,Footer:jC,ImgOverlay:kC}),Br=k.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:n,borderless:i,hover:o,size:u,variant:l,responsive:f,...d},v)=>{const p=Re(e,"table"),m=Oe(t,p,l&&`${p}-${l}`,u&&`${p}-${u}`,r&&`${p}-${typeof r=="string"?`striped-${r}`:"striped"}`,n&&`${p}-bordered`,i&&`${p}-borderless`,o&&`${p}-hover`),b=S.jsx("table",{...d,className:m,ref:v});if(f){let O=`${p}-responsive`;return typeof f=="string"&&(O=`${O}-${f}`),S.jsx("div",{className:O,children:b})}return b});Br.displayName="Table";const EL="/proserve";async function rn(e,t={}){const r=new URLSearchParams;for(const[i,o]of Object.entries(t))r.append(i,String(o));const n=await fetch(`${EL}/${e}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r.toString()});if(!n.ok)throw new Error(`API error: ${n.status} ${n.statusText}`);return n.json()}async function DC(e=-1){return(await rn("lists/all_sessions.php",{typeId:e})).stats||[]}async function AL(e,t=-1){return(await rn("lists/sessions_for_user.php",{userId:e,typeId:t})).stats||[]}async function jL(e){return(await rn("session/get.php",{sessionId:e})).session||null}async function LC(){return(await rn("lists/all_users.php")).stats||[]}async function TL(e){return(await rn("user/get.php",{userId:e})).user||null}async function CL(e){return(await rn("lists/users_in_session.php",{sessionId:e})).stats||[]}async function kL(e,t=-1){return(await rn("stats/get.php",{sessionId:e,userId:t})).stats||[]}async function NL(e,t=-1,r=-1){const n={sessionId:e};return t>0&&(n.userId=t),r>=0&&(n.sessionType=r),(await rn("stats/get.php",n)).stats||[]}async function RL(e,t=-1){const r={sessionId:e};return t>0&&(r.userId=t),(await rn("session/getobjectives.php",r)).participation||null}async function ML(e,t=!0){var n;return((n=(await rn("stats/userhistory.php",{userId:e,sessionId:-1,quickMode:t?"true":"false"})).stats)==null?void 0:n[0])||null}function Dt({title:e,value:t,subtitle:r,color:n="#4a90d9"}){return S.jsx(we,{className:"stat-card h-100",children:S.jsxs(we.Body,{className:"text-center",children:[S.jsx(we.Subtitle,{className:"mb-2 text-muted-custom",children:e}),S.jsx(we.Title,{className:"stat-value",style:{color:n},children:t}),r&&S.jsx("small",{className:"text-muted-custom",children:r})]})})}const La=k.forwardRef(({bsPrefix:e,bg:t="primary",pill:r=!1,text:n,className:i,as:o="span",...u},l)=>{const f=Re(e,"badge");return S.jsx(o,{ref:l,...u,className:Oe(i,f,r&&"rounded-pill",n&&`text-${n}`,t&&`bg-${t}`)})});La.displayName="Badge";function jf({success:e,score:t}){const{t:r}=tn();return S.jsxs(La,{bg:e?"success":"danger",children:[t!==void 0&&S.jsx("span",{className:"me-1",children:t}),r(e?"badge.success":"badge.failed")]})}var uc=(e=>(e[e.FireRange=0]="FireRange",e[e.Challenge=1]="Challenge",e[e.Protect=2]="Protect",e[e.DeEscalation=3]="DeEscalation",e[e.Terrorism=4]="Terrorism",e[e.FireExtinction=5]="FireExtinction",e[e.Recovering=6]="Recovering",e[e.LongRange=7]="LongRange",e))(uc||{});const $L={0:"Stand de Tir",1:"Challenge",2:"Protection",3:"Désescalade",4:"Terrorisme",5:"Incendie",6:"Récupération",7:"Tir Longue Distance"},BC={0:"#4a90d9",1:"#9b59b6",2:"#27ae60",3:"#f39c12",4:"#e74c3c",5:"#e67e22",6:"#1abc9c",7:"#2980b9"},IL={0:"Ennemi",1:"Civil",2:"Police",3:"Objet",4:"Cible Papier",5:"Cible",6:"Corps"};function Bs({typeId:e}){const{t}=tn(),r=t(`sessionType.${e}`),n=BC[e]||"#6c757d";return S.jsx(La,{style:{backgroundColor:n},className:"session-type-badge",children:r})}const FC=k.forwardRef(({bsPrefix:e,variant:t,animation:r="border",size:n,as:i="div",className:o,...u},l)=>{e=Re(e,"spinner");const f=`${e}-${r}`;return S.jsx(i,{ref:l,...u,className:Oe(o,f,n&&`${f}-${n}`,t&&`text-${t}`)})});FC.displayName="Spinner";function Ou(){const{t:e}=tn();return S.jsxs("div",{className:"d-flex justify-content-center align-items-center py-5",children:[S.jsx(FC,{animation:"border",variant:"primary"}),S.jsx("span",{className:"ms-3 text-muted-custom",children:e("loading")})]})}function qC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}return Gh=t,Gh}var Xh,vO;function JL(){if(vO)return Xh;vO=1;var e=Cf();function t(r,n){var i=this.__data__,o=e(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this}return Xh=t,Xh}var Yh,mO;function kf(){if(mO)return Yh;mO=1;var e=XL(),t=YL(),r=QL(),n=ZL(),i=JL();function o(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l0?1:-1},Mi=function(t){return Fi(t)&&t.indexOf("%")===t.length-1},le=function(t){return SB(t)&&!Pu(t)},OB=function(t){return ke(t)},wt=function(t){return le(t)||Fi(t)},_B=0,xo=function(t){var r=++_B;return"".concat(t||"").concat(r)},zt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!le(t)&&!Fi(t))return n;var o;if(Mi(t)){var u=t.indexOf("%");o=r*parseFloat(t.slice(0,u))/100}else o=+t;return Pu(o)&&(o=n),i&&o>r&&(o=r),o},ni=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},PB=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tg(e){"@babel/helpers - typeof";return Tg=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},Tg(e)}var WO={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"},On=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},HO=null,Sv=null,mb=function e(t){if(t===HO&&Array.isArray(Sv))return Sv;var r=[];return k.Children.forEach(t,function(n){ke(n)||(gB.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Sv=r,HO=t,r};function cr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return On(i)}):n=[On(t)],mb(e).forEach(function(i){var o=lr(i,"type.displayName")||lr(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function ar(e,t){var r=cr(e,t);return r&&r[0]}var KO=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!le(n)||n<=0||!le(i)||i<=0)},RB=["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"],MB=function(t){return t&&t.type&&Fi(t.type)&&RB.indexOf(t.type)>=0},$B=function(t){return t&&Tg(t)==="object"&&"clipDot"in t},IB=function(t,r,n,i){var o,u=(o=wv==null?void 0:wv[i])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!Ae(t)&&(i&&u.includes(r)||jB.includes(r))||n&&vb.includes(r)},Se=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!bo(i))return null;var o={};return Object.keys(i).forEach(function(u){var l;IB((l=i)===null||l===void 0?void 0:l[u],u,r,n)&&(o[u]=i[u])}),o},Cg=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return VO(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ng(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,u=e.style,l=e.title,f=e.desc,d=FB(e,BB),v=i||{width:r,height:n,x:0,y:0},p=Me("recharts-surface",o);return I.createElement("svg",kg({},Se(d,!0,"svg"),{className:p,width:r,height:n,style:u,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),I.createElement("title",null,l),I.createElement("desc",null,f),t)}var zB=["children","className"];function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qe=I.forwardRef(function(e,t){var r=e.children,n=e.className,i=UB(e,zB),o=Me("recharts-layer",n);return I.createElement("g",Rg({className:o},Se(i,!0),{ref:t}),r)}),qr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;oo?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var u=Array(o);++i=o?r:e(r,n,i)}return _v=t,_v}var Pv,QO;function XC(){if(QO)return Pv;QO=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",u="\\u200d",l=RegExp("["+u+e+i+o+"]");function f(d){return l.test(d)}return Pv=f,Pv}var Ev,ZO;function VB(){if(ZO)return Ev;ZO=1;function e(t){return t.split("")}return Ev=e,Ev}var Av,JO;function GB(){if(JO)return Av;JO=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",u="["+e+"]",l="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+f+")",v="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",O=d+"?",x="["+o+"]?",g="(?:"+b+"(?:"+[v,p,m].join("|")+")"+x+O+")*",P=x+O+g,A="(?:"+[v+l+"?",l,p,m,u].join("|")+")",T=RegExp(f+"(?="+f+")|"+A+P,"g");function E(_){return _.match(T)||[]}return Av=E,Av}var jv,e_;function XB(){if(e_)return jv;e_=1;var e=VB(),t=XC(),r=GB();function n(i){return t(i)?r(i):e(i)}return jv=n,jv}var Tv,t_;function YB(){if(t_)return Tv;t_=1;var e=KB(),t=XC(),r=XB(),n=HC();function i(o){return function(u){u=n(u);var l=t(u)?r(u):void 0,f=l?l[0]:u.charAt(0),d=l?e(l,1).join(""):u.slice(1);return f[o]()+d}}return Tv=i,Tv}var Cv,r_;function QB(){if(r_)return Cv;r_=1;var e=YB(),t=e("toUpperCase");return Cv=t,Cv}var ZB=QB();const Mf=Ue(ZB);function Qe(e){return function(){return e}}const YC=Math.cos,mc=Math.sin,zr=Math.sqrt,yc=Math.PI,$f=2*yc,Mg=Math.PI,$g=2*Mg,ki=1e-6,JB=$g-ki;function QC(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return QC;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;iki)if(!(Math.abs(p*f-d*v)>ki)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let b=n-u,O=i-l,x=f*f+d*d,g=b*b+O*O,P=Math.sqrt(x),A=Math.sqrt(m),T=o*Math.tan((Mg-Math.acos((x+m-g)/(2*P*A)))/2),E=T/A,_=T/P;Math.abs(E-1)>ki&&this._append`L${t+E*v},${r+E*p}`,this._append`A${o},${o},0,0,${+(p*b>v*O)},${this._x1=t+_*f},${this._y1=r+_*d}`}}arc(t,r,n,i,o,u){if(t=+t,r=+r,n=+n,u=!!u,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),f=n*Math.sin(i),d=t+l,v=r+f,p=1^u,m=u?i-o:o-i;this._x1===null?this._append`M${d},${v}`:(Math.abs(this._x1-d)>ki||Math.abs(this._y1-v)>ki)&&this._append`L${d},${v}`,n&&(m<0&&(m=m%$g+$g),m>JB?this._append`A${n},${n},0,1,${p},${t-l},${r-f}A${n},${n},0,1,${p},${this._x1=d},${this._y1=v}`:m>ki&&this._append`A${n},${n},0,${+(m>=Mg)},${p},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function yb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new tF(t)}function gb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZC(e){this._context=e}ZC.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 If(e){return new ZC(e)}function JC(e){return e[0]}function ek(e){return e[1]}function tk(e,t){var r=Qe(!0),n=null,i=If,o=null,u=yb(l);e=typeof e=="function"?e:e===void 0?JC:Qe(e),t=typeof t=="function"?t:t===void 0?ek:Qe(t);function l(f){var d,v=(f=gb(f)).length,p,m=!1,b;for(n==null&&(o=i(b=u())),d=0;d<=v;++d)!(d=b;--O)l.point(T[O],E[O]);l.lineEnd(),l.areaEnd()}P&&(T[m]=+e(g,m,p),E[m]=+t(g,m,p),l.point(n?+n(g,m,p):T[m],r?+r(g,m,p):E[m]))}if(A)return l=null,A+""||null}function v(){return tk().defined(i).curve(u).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:Qe(+p),n=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Qe(+p),d):e},d.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Qe(+p),d):n},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:Qe(+p),r=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Qe(+p),d):t},d.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Qe(+p),d):r},d.lineX0=d.lineY0=function(){return v().x(e).y(t)},d.lineY1=function(){return v().x(e).y(r)},d.lineX1=function(){return v().x(n).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:Qe(!!p),d):i},d.curve=function(p){return arguments.length?(u=p,o!=null&&(l=u(o)),d):u},d.context=function(p){return arguments.length?(p==null?o=l=null:l=u(o=p),d):o},d}class rk{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function rF(e){return new rk(e,!0)}function nF(e){return new rk(e,!1)}const bb={draw(e,t){const r=zr(t/yc);e.moveTo(r,0),e.arc(0,0,r,0,$f)}},iF={draw(e,t){const r=zr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},nk=zr(1/3),aF=nk*2,oF={draw(e,t){const r=zr(t/aF),n=r*nk;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},sF={draw(e,t){const r=zr(t),n=-r/2;e.rect(n,n,r,r)}},uF=.8908130915292852,ik=mc(yc/10)/mc(7*yc/10),lF=mc($f/10)*ik,cF=-YC($f/10)*ik,fF={draw(e,t){const r=zr(t*uF),n=lF*r,i=cF*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const u=$f*o/5,l=YC(u),f=mc(u);e.lineTo(f*r,-l*r),e.lineTo(l*n-f*i,f*n+l*i)}e.closePath()}},kv=zr(3),dF={draw(e,t){const r=-zr(t/(kv*3));e.moveTo(0,r*2),e.lineTo(-kv*r,-r),e.lineTo(kv*r,-r),e.closePath()}},yr=-.5,gr=zr(3)/2,Ig=1/zr(12),pF=(Ig/2+1)*3,hF={draw(e,t){const r=zr(t/pF),n=r/2,i=r*Ig,o=n,u=r*Ig+r,l=-o,f=u;e.moveTo(n,i),e.lineTo(o,u),e.lineTo(l,f),e.lineTo(yr*n-gr*i,gr*n+yr*i),e.lineTo(yr*o-gr*u,gr*o+yr*u),e.lineTo(yr*l-gr*f,gr*l+yr*f),e.lineTo(yr*n+gr*i,yr*i-gr*n),e.lineTo(yr*o+gr*u,yr*u-gr*o),e.lineTo(yr*l+gr*f,yr*f-gr*l),e.closePath()}};function vF(e,t){let r=null,n=yb(i);e=typeof e=="function"?e:Qe(e||bb),t=typeof t=="function"?t:Qe(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Qe(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Qe(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function gc(){}function bc(e,t,r){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+r)/6)}function ak(e){this._context=e}ak.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:bc(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:bc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mF(e){return new ak(e)}function ok(e){this._context=e}ok.prototype={areaStart:gc,areaEnd:gc,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:bc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yF(e){return new ok(e)}function sk(e){this._context=e}sk.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:bc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gF(e){return new sk(e)}function uk(e){this._context=e}uk.prototype={areaStart:gc,areaEnd:gc,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 bF(e){return new uk(e)}function n_(e){return e<0?-1:1}function i_(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),u=(r-e._y1)/(i||n<0&&-0),l=(o*i+u*n)/(n+i);return(n_(o)+n_(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(l))||0}function a_(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Nv(e,t,r){var n=e._x0,i=e._y0,o=e._x1,u=e._y1,l=(o-n)/3;e._context.bezierCurveTo(n+l,i+l*t,o-l,u-l*r,o,u)}function xc(e){this._context=e}xc.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:Nv(this,this._t0,a_(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 r=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,Nv(this,a_(this,r=i_(this,e,t)),r);break;default:Nv(this,this._t0,r=i_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lk(e){this._context=new ck(e)}(lk.prototype=Object.create(xc.prototype)).point=function(e,t){xc.prototype.point.call(this,t,e)};function ck(e){this._context=e}ck.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,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function xF(e){return new xc(e)}function wF(e){return new lk(e)}function fk(e){this._context=e}fk.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=o_(e),i=o_(t),o=0,u=1;u=0;--t)i[t]=(u[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function OF(e){return new Df(e,.5)}function _F(e){return new Df(e,0)}function PF(e){return new Df(e,1)}function Ua(e,t){if((u=e.length)>1)for(var r=1,n,i,o=e[t[0]],u,l=o.length;r=0;)r[t]=t;return r}function EF(e,t){return e[t]}function AF(e){const t=[];return t.key=e,t}function jF(){var e=Qe([]),t=Dg,r=Ua,n=EF;function i(o){var u=Array.from(e.apply(this,arguments),AF),l,f=u.length,d=-1,v;for(const p of o)for(l=0,++d;l0){for(var r,n,i=0,o=e[0].length,u;i0){for(var r=0,n=e[t[0]],i,o=n.length;r0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,u;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var dk={symbolCircle:bb,symbolCross:iF,symbolDiamond:oF,symbolSquare:sF,symbolStar:fF,symbolTriangle:dF,symbolWye:hF},LF=Math.PI/180,BF=function(t){var r="symbol".concat(Mf(t));return dk[r]||bb},FF=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*LF;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},qF=function(t,r){dk["symbol".concat(Mf(t))]=r},xb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,u=t.sizeType,l=u===void 0?"area":u,f=IF(t,NF),d=u_(u_({},f),{},{type:n,size:o,sizeType:l}),v=function(){var g=BF(n),P=vF().type(g).size(FF(o,l,n));return P()},p=d.className,m=d.cx,b=d.cy,O=Se(d,!0);return m===+m&&b===+b&&o===+o?I.createElement("path",Lg({},O,{className:Me("recharts-symbols",p),transform:"translate(".concat(m,", ").concat(b,")"),d:v()})):null};xb.registerSymbol=qF;function Wa(e){"@babel/helpers - typeof";return Wa=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},Wa(e)}function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var A=b.inactive?d:b.color;return I.createElement("li",Bg({className:g,style:p,key:"legend-item-".concat(O)},qi(n.props,b,O)),I.createElement(Ng,{width:u,height:u,viewBox:v,style:m},n.renderIcon(b)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},x?x(P,b,O):P))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,u=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?u:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(k.PureComponent);qs(wb,"displayName","Legend");qs(wb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Rv,c_;function QF(){if(c_)return Rv;c_=1;var e=kf();function t(){this.__data__=new e,this.size=0}return Rv=t,Rv}var Mv,f_;function ZF(){if(f_)return Mv;f_=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Mv=e,Mv}var $v,d_;function JF(){if(d_)return $v;d_=1;function e(t){return this.__data__.get(t)}return $v=e,$v}var Iv,p_;function e3(){if(p_)return Iv;p_=1;function e(t){return this.__data__.has(t)}return Iv=e,Iv}var Dv,h_;function t3(){if(h_)return Dv;h_=1;var e=kf(),t=fb(),r=db(),n=200;function i(o,u){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!t||f.lengthb))return!1;var x=p.get(u),g=p.get(l);if(x&&g)return x==l&&g==u;var P=-1,A=!0,T=f&i?new e:void 0;for(p.set(u,l),p.set(l,u);++P-1&&n%1==0&&n-1&&r%1==0&&r<=e}return am=t,am}var om,L_;function h3(){if(L_)return om;L_=1;var e=Rn(),t=Pb(),r=Mn(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",v="[object Number]",p="[object Object]",m="[object RegExp]",b="[object Set]",O="[object String]",x="[object WeakMap]",g="[object ArrayBuffer]",P="[object DataView]",A="[object Float32Array]",T="[object Float64Array]",E="[object Int8Array]",_="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",R="[object Uint8ClampedArray]",M="[object Uint16Array]",z="[object Uint32Array]",F={};F[A]=F[T]=F[E]=F[_]=F[j]=F[N]=F[R]=F[M]=F[z]=!0,F[n]=F[i]=F[g]=F[o]=F[P]=F[u]=F[l]=F[f]=F[d]=F[v]=F[p]=F[m]=F[b]=F[O]=F[x]=!1;function L(H){return r(H)&&t(H.length)&&!!F[e(H)]}return om=L,om}var sm,B_;function Sk(){if(B_)return sm;B_=1;function e(t){return function(r){return t(r)}}return sm=e,sm}var Es={exports:{}};Es.exports;var F_;function v3(){return F_||(F_=1,(function(e,t){var r=zC(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,u=o&&r.process,l=(function(){try{var f=i&&i.require&&i.require("util").types;return f||u&&u.binding&&u.binding("util")}catch{}})();e.exports=l})(Es,Es.exports)),Es.exports}var um,q_;function Ok(){if(q_)return um;q_=1;var e=h3(),t=Sk(),r=v3(),n=r&&r.isTypedArray,i=n?t(n):e;return um=i,um}var lm,z_;function m3(){if(z_)return lm;z_=1;var e=f3(),t=Ob(),r=Zt(),n=wk(),i=_b(),o=Ok(),u=Object.prototype,l=u.hasOwnProperty;function f(d,v){var p=r(d),m=!p&&t(d),b=!p&&!m&&n(d),O=!p&&!m&&!b&&o(d),x=p||m||b||O,g=x?e(d.length,String):[],P=g.length;for(var A in d)(v||l.call(d,A))&&!(x&&(A=="length"||b&&(A=="offset"||A=="parent")||O&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||i(A,P)))&&g.push(A);return g}return lm=f,lm}var cm,U_;function y3(){if(U_)return cm;U_=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return cm=t,cm}var fm,W_;function _k(){if(W_)return fm;W_=1;function e(t,r){return function(n){return t(r(n))}}return fm=e,fm}var dm,H_;function g3(){if(H_)return dm;H_=1;var e=_k(),t=e(Object.keys,Object);return dm=t,dm}var pm,K_;function b3(){if(K_)return pm;K_=1;var e=y3(),t=g3(),r=Object.prototype,n=r.hasOwnProperty;function i(o){if(!e(o))return t(o);var u=[];for(var l in Object(o))n.call(o,l)&&l!="constructor"&&u.push(l);return u}return pm=i,pm}var hm,V_;function Eu(){if(V_)return hm;V_=1;var e=lb(),t=Pb();function r(n){return n!=null&&t(n.length)&&!e(n)}return hm=r,hm}var vm,G_;function Lf(){if(G_)return vm;G_=1;var e=m3(),t=b3(),r=Eu();function n(i){return r(i)?e(i):t(i)}return vm=n,vm}var mm,X_;function x3(){if(X_)return mm;X_=1;var e=s3(),t=c3(),r=Lf();function n(i){return e(i,r,t)}return mm=n,mm}var ym,Y_;function w3(){if(Y_)return ym;Y_=1;var e=x3(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,u,l,f,d,v){var p=l&t,m=e(o),b=m.length,O=e(u),x=O.length;if(b!=x&&!p)return!1;for(var g=b;g--;){var P=m[g];if(!(p?P in u:n.call(u,P)))return!1}var A=v.get(o),T=v.get(u);if(A&&T)return A==u&&T==o;var E=!0;v.set(o,u),v.set(u,o);for(var _=p;++g-1}return Um=t,Um}var Wm,OP;function q3(){if(OP)return Wm;OP=1;function e(t,r,n){for(var i=-1,o=t==null?0:t.length;++i=u){var P=d?null:i(f);if(P)return o(P);O=!1,m=n,g=new e}else g=d?[]:x;e:for(;++p=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nq(e){return e.value}function iq(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var r=tq(t,V3);return I.createElement(wb,r)}var kP=1,_n=(function(e){function t(){var r;G3(this,t);for(var n=arguments.length,i=new Array(n),o=0;okP||Math.abs(i.height-this.lastBoundingBox.height)>kP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?vn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,u=i.align,l=i.verticalAlign,f=i.margin,d=i.chartWidth,v=i.chartHeight,p,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(u==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();p={left:((d||0)-b.width)/2}}else p=u==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var O=this.getBBoxSnapshot();m={top:((v||0)-O.height)/2}}else m=l==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return vn(vn({},p),m)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,u=i.width,l=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,v=i.payload,p=vn(vn({position:"absolute",width:u||"auto",height:l||"auto"},this.getDefaultPosition(f)),f);return I.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){n.wrapperNode=b}},iq(o,vn(vn({},this.props),{},{payload:Tk(v,d,nq)})))}}],[{key:"getWithHeight",value:function(n,i){var o=vn(vn({},this.defaultProps),n.props),u=o.layout;return u==="vertical"&&le(n.props.height)?{height:n.props.height}:u==="horizontal"?{width:n.props.width||i}:null}}])})(k.PureComponent);Bf(_n,"displayName","Legend");Bf(_n,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Xm,NP;function aq(){if(NP)return Xm;NP=1;var e=_u(),t=Ob(),r=Zt(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return Xm=i,Xm}var Ym,RP;function Nk(){if(RP)return Ym;RP=1;var e=xk(),t=aq();function r(n,i,o,u,l){var f=-1,d=n.length;for(o||(o=t),l||(l=[]);++f0&&o(v)?i>1?r(v,i-1,o,u,l):e(l,v):u||(l[l.length]=v)}return l}return Ym=r,Ym}var Qm,MP;function oq(){if(MP)return Qm;MP=1;function e(t){return function(r,n,i){for(var o=-1,u=Object(r),l=i(r),f=l.length;f--;){var d=l[t?f:++o];if(n(u[d],d,u)===!1)break}return r}}return Qm=e,Qm}var Zm,$P;function sq(){if($P)return Zm;$P=1;var e=oq(),t=e();return Zm=t,Zm}var Jm,IP;function Rk(){if(IP)return Jm;IP=1;var e=sq(),t=Lf();function r(n,i){return n&&e(n,i,t)}return Jm=r,Jm}var ey,DP;function uq(){if(DP)return ey;DP=1;var e=Eu();function t(r,n){return function(i,o){if(i==null)return i;if(!e(i))return r(i,o);for(var u=i.length,l=n?u:-1,f=Object(i);(n?l--:++ln||l&&f&&v&&!d&&!p||o&&f&&v||!i&&v||!u)return 1;if(!o&&!l&&!p&&r=d)return v;var p=i[o];return v*(p=="desc"?-1:1)}}return r.index-n.index}return ay=t,ay}var oy,UP;function dq(){if(UP)return oy;UP=1;var e=pb(),t=hb(),r=an(),n=Mk(),i=lq(),o=Sk(),u=fq(),l=wo(),f=Zt();function d(v,p,m){p.length?p=e(p,function(x){return f(x)?function(g){return t(g,x.length===1?x[0]:x)}:x}):p=[l];var b=-1;p=e(p,o(r));var O=n(v,function(x,g,P){var A=e(p,function(T){return T(x)});return{criteria:A,index:++b,value:x}});return i(O,function(x,g){return u(x,g,m)})}return oy=d,oy}var sy,WP;function pq(){if(WP)return sy;WP=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return sy=e,sy}var uy,HP;function hq(){if(HP)return uy;HP=1;var e=pq(),t=Math.max;function r(n,i,o){return i=t(i===void 0?n.length-1:i,0),function(){for(var u=arguments,l=-1,f=t(u.length-i,0),d=Array(f);++l0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return dy=n,dy}var py,YP;function gq(){if(YP)return py;YP=1;var e=mq(),t=yq(),r=t(e);return py=r,py}var hy,QP;function bq(){if(QP)return hy;QP=1;var e=wo(),t=hq(),r=gq();function n(i,o){return r(t(i,o,e),i+"")}return hy=n,hy}var vy,ZP;function Ff(){if(ZP)return vy;ZP=1;var e=cb(),t=Eu(),r=_b(),n=li();function i(o,u,l){if(!n(l))return!1;var f=typeof u;return(f=="number"?t(l)&&r(u,l.length):f=="string"&&u in l)?e(l[u],o):!1}return vy=i,vy}var my,JP;function xq(){if(JP)return my;JP=1;var e=Nk(),t=dq(),r=bq(),n=Ff(),i=r(function(o,u){if(o==null)return[];var l=u.length;return l>1&&n(o,u[0],u[1])?u=[]:l>2&&n(u[0],u[1],u[2])&&(u=[u[0]]),t(o,e(u,1),[])});return my=i,my}var wq=xq();const jb=Ue(wq);function zs(e){"@babel/helpers - typeof";return zs=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},zs(e)}function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(vs,"-left"),le(r)&&t&&le(t.x)&&r=t.y),"".concat(vs,"-top"),le(n)&&t&&le(t.y)&&nx?Math.max(v,f[n]):Math.max(p,f[n])}function Iq(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Dq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,u=e.tooltipBox,l=e.useTranslate3d,f=e.viewBox,d,v,p;return u.height>0&&u.width>0&&r?(v=rE({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),p=rE({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),d=Iq({translateX:v,translateY:p,useTranslate3d:l})):d=Mq,{cssProperties:d,cssClasses:$q({translateX:v,translateY:p,coordinate:r})}}function Ka(e){"@babel/helpers - typeof";return Ka=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},Ka(e)}function nE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iE(e){for(var t=1;taE||Math.abs(n.height-this.state.lastBoundingBox.height)>aE)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,o=i.active,u=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,d=i.children,v=i.coordinate,p=i.hasPayload,m=i.isAnimationActive,b=i.offset,O=i.position,x=i.reverseDirection,g=i.useTranslate3d,P=i.viewBox,A=i.wrapperStyle,T=Dq({allowEscapeViewBox:u,coordinate:v,offsetTopLeft:b,position:O,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:P}),E=T.cssClasses,_=T.cssProperties,j=iE(iE({transition:m&&o?"transform ".concat(l,"ms ").concat(f):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},A);return I.createElement("div",{tabIndex:-1,className:E,style:j,ref:function(R){n.wrapperNode=R}},d)}}])})(k.PureComponent),Vq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Xi={isSsr:Vq()};function Va(e){"@babel/helpers - typeof";return Va=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},Va(e)}function oE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sE(e){for(var t=1;t0;return I.createElement(Kq,{allowEscapeViewBox:u,animationDuration:l,animationEasing:f,isAnimationActive:m,active:o,coordinate:v,hasPayload:j,offset:b,position:g,reverseDirection:P,useTranslate3d:A,viewBox:T,wrapperStyle:E},nz(d,sE(sE({},this.props),{},{payload:_})))}}])})(k.PureComponent);Tb(or,"displayName","Tooltip");Tb(or,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Xi.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 gy,uE;function iz(){if(uE)return gy;uE=1;var e=nn(),t=function(){return e.Date.now()};return gy=t,gy}var by,lE;function az(){if(lE)return by;lE=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return by=t,by}var xy,cE;function oz(){if(cE)return xy;cE=1;var e=az(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return xy=r,xy}var wy,fE;function Fk(){if(fE)return wy;fE=1;var e=oz(),t=li(),r=go(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;function f(d){if(typeof d=="number")return d;if(r(d))return n;if(t(d)){var v=typeof d.valueOf=="function"?d.valueOf():d;d=t(v)?v+"":v}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=o.test(d);return p||u.test(d)?l(d.slice(2),p?2:8):i.test(d)?n:+d}return wy=f,wy}var Sy,dE;function sz(){if(dE)return Sy;dE=1;var e=li(),t=iz(),r=Fk(),n="Expected a function",i=Math.max,o=Math.min;function u(l,f,d){var v,p,m,b,O,x,g=0,P=!1,A=!1,T=!0;if(typeof l!="function")throw new TypeError(n);f=r(f)||0,e(d)&&(P=!!d.leading,A="maxWait"in d,m=A?i(r(d.maxWait)||0,f):m,T="trailing"in d?!!d.trailing:T);function E(H){var G=v,X=p;return v=p=void 0,g=H,b=l.apply(X,G),b}function _(H){return g=H,O=setTimeout(R,f),P?E(H):b}function j(H){var G=H-x,X=H-g,Q=f-G;return A?o(Q,m-X):Q}function N(H){var G=H-x,X=H-g;return x===void 0||G>=f||G<0||A&&X>=m}function R(){var H=t();if(N(H))return M(H);O=setTimeout(R,j(H))}function M(H){return O=void 0,T&&v?E(H):(v=p=void 0,b)}function z(){O!==void 0&&clearTimeout(O),g=0,v=x=p=O=void 0}function F(){return O===void 0?b:M(t())}function L(){var H=t(),G=N(H);if(v=arguments,p=this,x=H,G){if(O===void 0)return _(x);if(A)return clearTimeout(O),O=setTimeout(R,f),E(x)}return O===void 0&&(O=setTimeout(R,f)),b}return L.cancel=z,L.flush=F,L}return Sy=u,Sy}var Oy,pE;function uz(){if(pE)return Oy;pE=1;var e=sz(),t=li(),r="Expected a function";function n(i,o,u){var l=!0,f=!0;if(typeof i!="function")throw new TypeError(r);return t(u)&&(l="leading"in u?!!u.leading:l,f="trailing"in u?!!u.trailing:f),e(i,o,{leading:l,maxWait:o,trailing:f})}return Oy=n,Oy}var lz=uz();const qk=Ue(lz);function Ws(e){"@babel/helpers - typeof";return Ws=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},Ws(e)}function hE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ql(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(H=qk(H,x,{trailing:!0,leading:!1}));var G=new ResizeObserver(H),X=_.current.getBoundingClientRect(),Q=X.width,J=X.height;return F(Q,J),G.observe(_.current),function(){G.disconnect()}},[F,x]);var L=k.useMemo(function(){var H=M.containerWidth,G=M.containerHeight;if(H<0||G<0)return null;qr(Mi(u)||Mi(f),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,u,f),qr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var X=Mi(u)?H:u,Q=Mi(f)?G:f;r&&r>0&&(X?Q=X/r:Q&&(X=Q*r),m&&Q>m&&(Q=m)),qr(X>0||Q>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.`,X,Q,u,f,v,p,r);var J=!Array.isArray(b)&&On(b.type).endsWith("Chart");return I.Children.map(b,function(W){return I.isValidElement(W)?k.cloneElement(W,Ql({width:X,height:Q},J?{style:Ql({height:"100%",width:"100%",maxHeight:Q,maxWidth:X},W.props.style)}:{})):W})},[r,b,f,m,p,v,M,u]);return I.createElement("div",{id:g?"".concat(g):void 0,className:Me("recharts-responsive-container",P),style:Ql(Ql({},E),{},{width:u,height:f,minWidth:v,minHeight:p,maxHeight:m}),ref:_},L)}),Au=function(t){return null};Au.displayName="Cell";function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function mE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Xi.isSsr)return{width:0,height:0};var n=Oz(r),i=JSON.stringify({text:t,copyStyle:n});if(Aa.widthCache[i])return Aa.widthCache[i];try{var o=document.getElementById(yE);o||(o=document.createElement("span"),o.setAttribute("id",yE),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var u=Kg(Kg({},Sz),n);Object.assign(o.style,u),o.textContent="".concat(t);var l=o.getBoundingClientRect(),f={width:l.width,height:l.height};return Aa.widthCache[i]=f,++Aa.cacheCount>wz&&(Aa.cacheCount=0,Aa.widthCache={}),f}catch{return{width:0,height:0}}},_z=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ks(e){"@babel/helpers - typeof";return Ks=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},Ks(e)}function Pc(e,t){return jz(e)||Az(e,t)||Ez(e,t)||Pz()}function Pz(){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 Ez(e,t){if(e){if(typeof e=="string")return gE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gE(e,t)}}function gE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _E(e,t){return Kz(e)||Hz(e,t)||Wz(e,t)||Uz()}function Uz(){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 Wz(e,t){if(e){if(typeof e=="string")return PE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PE(e,t)}}function PE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return X.reduce(function(Q,J){var W=J.word,ee=J.width,Z=Q[Q.length-1];if(Z&&(i==null||o||Z.width+ee+nJ.width?Q:J})};if(!v)return b;for(var x="…",g=function(X){var Q=p.slice(0,X),J=Hk({breakAll:d,style:f,children:Q+x}).wordsWithComputedWidth,W=m(J),ee=W.length>u||O(W).width>Number(i);return[ee,W]},P=0,A=p.length-1,T=0,E;P<=A&&T<=p.length-1;){var _=Math.floor((P+A)/2),j=_-1,N=g(j),R=_E(N,2),M=R[0],z=R[1],F=g(_),L=_E(F,1),H=L[0];if(!M&&!H&&(P=_+1),M&&H&&(A=_-1),!M&&H){E=z;break}T++}return E||b},EE=function(t){var r=ke(t)?[]:t.toString().split(Wk);return[{words:r}]},Gz=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,u=t.breakAll,l=t.maxLines;if((r||n)&&!Xi.isSsr){var f,d,v=Hk({breakAll:u,children:i,style:o});if(v){var p=v.wordsWithComputedWidth,m=v.spaceWidth;f=p,d=m}else return EE(i);return Vz({breakAll:u,children:i,maxLines:l,style:o},f,d,r,n)}return EE(i)},AE="#808080",zi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,u=t.lineHeight,l=u===void 0?"1em":u,f=t.capHeight,d=f===void 0?"0.71em":f,v=t.scaleToFit,p=v===void 0?!1:v,m=t.textAnchor,b=m===void 0?"start":m,O=t.verticalAnchor,x=O===void 0?"end":O,g=t.fill,P=g===void 0?AE:g,A=OE(t,Fz),T=k.useMemo(function(){return Gz({breakAll:A.breakAll,children:A.children,maxLines:A.maxLines,scaleToFit:p,style:A.style,width:A.width})},[A.breakAll,A.children,A.maxLines,p,A.style,A.width]),E=A.dx,_=A.dy,j=A.angle,N=A.className,R=A.breakAll,M=OE(A,qz);if(!wt(n)||!wt(o))return null;var z=n+(le(E)?E:0),F=o+(le(_)?_:0),L;switch(x){case"start":L=_y("calc(".concat(d,")"));break;case"middle":L=_y("calc(".concat((T.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:L=_y("calc(".concat(T.length-1," * -").concat(l,")"));break}var H=[];if(p){var G=T[0].width,X=A.width;H.push("scale(".concat((le(X)?X/G:1)/G,")"))}return j&&H.push("rotate(".concat(j,", ").concat(z,", ").concat(F,")")),H.length&&(M.transform=H.join(" ")),I.createElement("text",Vg({},Se(M,!0),{x:z,y:F,className:Me("recharts-text",N),textAnchor:b,fill:P.includes("url")?AE:P}),T.map(function(Q,J){var W=Q.words.join(R?"":" ");return I.createElement("tspan",{x:z,dy:J===0?L:l,key:"".concat(W,"-").concat(J)},W)}))};function si(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function Xz(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cb(e){let t,r,n;e.length!==2?(t=si,r=(l,f)=>si(e(l),f),n=(l,f)=>e(l)-f):(t=e===si||e===Xz?e:Yz,r=e,n=e);function i(l,f,d=0,v=l.length){if(d>>1;r(l[p],f)<0?d=p+1:v=p}while(d>>1;r(l[p],f)<=0?d=p+1:v=p}while(dd&&n(l[p-1],f)>-n(l[p],f)?p-1:p}return{left:i,center:u,right:o}}function Yz(){return 0}function Kk(e){return e===null?NaN:+e}function*Qz(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Zz=Cb(si),ju=Zz.right;Cb(Kk).center;class jE extends Map{constructor(t,r=tU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(TE(this,t))}has(t){return super.has(TE(this,t))}set(t,r){return super.set(Jz(this,t),r)}delete(t){return super.delete(eU(this,t))}}function TE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Jz({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function eU({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function tU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rU(e=si){if(e===si)return Vk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Vk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const nU=Math.sqrt(50),iU=Math.sqrt(10),aU=Math.sqrt(2);function Ec(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),u=o>=nU?10:o>=iU?5:o>=aU?2:1;let l,f,d;return i<0?(d=Math.pow(10,-i)/u,l=Math.round(e*d),f=Math.round(t*d),l/dt&&--f,d=-d):(d=Math.pow(10,i)*u,l=Math.round(e/d),f=Math.round(t/d),l*dt&&--f),f0))return[];if(e===t)return[e];const n=t=i))return[];const l=o-i+1,f=new Array(l);if(n)if(u<0)for(let d=0;d=n)&&(r=n);return r}function kE(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Gk(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Vk:rU(i);n>r;){if(n-r>600){const f=n-r+1,d=t-r+1,v=Math.log(f),p=.5*Math.exp(2*v/3),m=.5*Math.sqrt(v*p*(f-p)/f)*(d-f/2<0?-1:1),b=Math.max(r,Math.floor(t-d*p/f+m)),O=Math.min(n,Math.floor(t+(f-d)*p/f+m));Gk(e,t,b,O,i)}const o=e[t];let u=r,l=n;for(ms(e,r,t),i(e[n],o)>0&&ms(e,r,n);u0;)--l}i(e[r],o)===0?ms(e,r,l):(++l,ms(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ms(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function oU(e,t,r){if(e=Float64Array.from(Qz(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return kE(e);if(t>=1)return CE(e);var n,i=(n-1)*t,o=Math.floor(i),u=CE(Gk(e,o).subarray(0,o+1)),l=kE(e.subarray(o+1));return u+(l-u)*(i-o)}}function sU(e,t,r=Kk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),u=+r(e[o],o,e),l=+r(e[o+1],o+1,e);return u+(l-u)*(i-o)}}function uU(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jl(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=cU.exec(e))?new Qt(t[1],t[2],t[3],1):(t=fU.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=dU.exec(e))?Jl(t[1],t[2],t[3],t[4]):(t=pU.exec(e))?Jl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hU.exec(e))?LE(t[1],t[2]/100,t[3]/100,1):(t=vU.exec(e))?LE(t[1],t[2]/100,t[3]/100,t[4]):NE.hasOwnProperty(e)?$E(NE[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function $E(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function Jl(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qt(e,t,r,n)}function gU(e){return e instanceof Tu||(e=Ys(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function Zg(e,t,r,n){return arguments.length===1?gU(e):new Qt(e,t,r,n??1)}function Qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Nb(Qt,Zg,Yk(Tu,{brighter(e){return e=e==null?Ac:Math.pow(Ac,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gs:Math.pow(Gs,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(Li(this.r),Li(this.g),Li(this.b),jc(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:IE,formatHex:IE,formatHex8:bU,formatRgb:DE,toString:DE}));function IE(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}`}function bU(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}${$i((isNaN(this.opacity)?1:this.opacity)*255)}`}function DE(){const e=jc(this.opacity);return`${e===1?"rgb(":"rgba("}${Li(this.r)}, ${Li(this.g)}, ${Li(this.b)}${e===1?")":`, ${e})`}`}function jc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Li(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $i(e){return e=Li(e),(e<16?"0":"")+e.toString(16)}function LE(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,r,n)}function Qk(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof Tu||(e=Ys(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),u=NaN,l=o-i,f=(o+i)/2;return l?(t===o?u=(r-n)/l+(r0&&f<1?0:u,new Lr(u,l,f,e.opacity)}function xU(e,t,r,n){return arguments.length===1?Qk(e):new Lr(e,t,r,n??1)}function Lr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Nb(Lr,xU,Yk(Tu,{brighter(e){return e=e==null?Ac:Math.pow(Ac,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gs:Math.pow(Gs,e),new Lr(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Qt(Py(e>=240?e-240:e+120,i,n),Py(e,i,n),Py(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Lr(BE(this.h),ec(this.s),ec(this.l),jc(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=jc(this.opacity);return`${e===1?"hsl(":"hsla("}${BE(this.h)}, ${ec(this.s)*100}%, ${ec(this.l)*100}%${e===1?")":`, ${e})`}`}}));function BE(e){return e=(e||0)%360,e<0?e+360:e}function ec(e){return Math.max(0,Math.min(1,e||0))}function Py(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Rb=e=>()=>e;function wU(e,t){return function(r){return e+r*t}}function SU(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function OU(e){return(e=+e)==1?Zk:function(t,r){return r-t?SU(t,r,e):Rb(isNaN(t)?r:t)}}function Zk(e,t){var r=t-e;return r?wU(e,r):Rb(isNaN(e)?t:e)}const FE=(function e(t){var r=OU(t);function n(i,o){var u=r((i=Zg(i)).r,(o=Zg(o)).r),l=r(i.g,o.g),f=r(i.b,o.b),d=Zk(i.opacity,o.opacity);return function(v){return i.r=u(v),i.g=l(v),i.b=f(v),i.opacity=d(v),i+""}}return n.gamma=e,n})(1);function _U(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;ir&&(o=t.slice(r,o),l[u]?l[u]+=o:l[++u]=o),(n=n[0])===(i=i[0])?l[u]?l[u]+=i:l[++u]=i:(l[++u]=null,f.push({i:u,x:Tc(n,i)})),r=Ey.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function $U(e,t,r){var n=e[0],i=e[1],o=t[0],u=t[1];return i2?IU:$U,f=d=null,p}function p(m){return m==null||isNaN(m=+m)?o:(f||(f=l(e.map(n),t,r)))(n(u(m)))}return p.invert=function(m){return u(i((d||(d=l(t,e.map(n),Tc)))(m)))},p.domain=function(m){return arguments.length?(e=Array.from(m,Cc),v()):e.slice()},p.range=function(m){return arguments.length?(t=Array.from(m),v()):t.slice()},p.rangeRound=function(m){return t=Array.from(m),r=Mb,v()},p.clamp=function(m){return arguments.length?(u=m?!0:Ut,v()):u!==Ut},p.interpolate=function(m){return arguments.length?(r=m,v()):r},p.unknown=function(m){return arguments.length?(o=m,p):o},function(m,b){return n=m,i=b,v()}}function $b(){return zf()(Ut,Ut)}function DU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function kc(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ga(e){return e=kc(Math.abs(e)),e?e[1]:NaN}function LU(e,t){return function(r,n){for(var i=r.length,o=[],u=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>n&&(l=Math.max(1,n-f)),o.push(r.substring(i-=l,i+l)),!((f+=l+1)>n));)l=e[u=(u+1)%e.length];return o.reverse().join(t)}}function BU(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var FU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qs(e){if(!(t=FU.exec(e)))throw new Error("invalid format: "+e);var t;return new Ib({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]})}Qs.prototype=Ib.prototype;function Ib(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+""}Ib.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 qU(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Nc;function zU(e,t){var r=kc(e,t);if(!r)return Nc=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(Nc=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=n.length;return o===u?n:o>u?n+new Array(o-u+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+kc(e,Math.max(0,t+o-1))[0]}function zE(e,t){var r=kc(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const UE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:DU,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)=>zE(e*100,t),r:zE,s:zU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function WE(e){return e}var HE=Array.prototype.map,KE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function UU(e){var t=e.grouping===void 0||e.thousands===void 0?WE:LU(HE.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?WE:BU(HE.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p,m){p=Qs(p);var b=p.fill,O=p.align,x=p.sign,g=p.symbol,P=p.zero,A=p.width,T=p.comma,E=p.precision,_=p.trim,j=p.type;j==="n"?(T=!0,j="g"):UE[j]||(E===void 0&&(E=12),_=!0,j="g"),(P||b==="0"&&O==="=")&&(P=!0,b="0",O="=");var N=(m&&m.prefix!==void 0?m.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),R=(g==="$"?n:/[%p]/.test(j)?u:"")+(m&&m.suffix!==void 0?m.suffix:""),M=UE[j],z=/[defgprs%]/.test(j);E=E===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function F(L){var H=N,G=R,X,Q,J;if(j==="c")G=M(L)+G,L="";else{L=+L;var W=L<0||1/L<0;if(L=isNaN(L)?f:M(Math.abs(L),E),_&&(L=qU(L)),W&&+L==0&&x!=="+"&&(W=!1),H=(W?x==="("?x:l:x==="-"||x==="("?"":x)+H,G=(j==="s"&&!isNaN(L)&&Nc!==void 0?KE[8+Nc/3]:"")+G+(W&&x==="("?")":""),z){for(X=-1,Q=L.length;++XJ||J>57){G=(J===46?i+L.slice(X+1):L.slice(X))+G,L=L.slice(0,X);break}}}T&&!P&&(L=t(L,1/0));var ee=H.length+L.length+G.length,Z=ee>1)+H+L+G+Z.slice(ee);break;default:L=Z+H+L+G;break}return o(L)}return F.toString=function(){return p+""},F}function v(p,m){var b=Math.max(-8,Math.min(8,Math.floor(Ga(m)/3)))*3,O=Math.pow(10,-b),x=d((p=Qs(p),p.type="f",p),{suffix:KE[8+b/3]});return function(g){return x(O*g)}}return{format:d,formatPrefix:v}}var tc,Db,Jk;WU({thousands:",",grouping:[3],currency:["$",""]});function WU(e){return tc=UU(e),Db=tc.format,Jk=tc.formatPrefix,tc}function HU(e){return Math.max(0,-Ga(Math.abs(e)))}function KU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ga(t)/3)))*3-Ga(Math.abs(e)))}function VU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ga(t)-Ga(e))+1}function eN(e,t,r,n){var i=Yg(e,t,r),o;switch(n=Qs(n??",f"),n.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=KU(i,u))&&(n.precision=o),Jk(n,u)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=VU(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=HU(i))&&(n.precision=o-(n.type==="%")*2);break}}return Db(n)}function ci(e){var t=e.domain;return e.ticks=function(r){var n=t();return Gg(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return eN(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,u=n[i],l=n[o],f,d,v=10;for(l0;){if(d=Xg(u,l,r),d===f)return n[i]=u,n[o]=l,t(n);if(d>0)u=Math.floor(u/d)*d,l=Math.ceil(l/d)*d;else if(d<0)u=Math.ceil(u*d)/d,l=Math.floor(l*d)/d;else break;f=d}return e},e}function Rc(){var e=$b();return e.copy=function(){return Cu(e,Rc())},Or.apply(e,arguments),ci(e)}function tN(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Cc),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return tN(e).unknown(t)},e=arguments.length?Array.from(e,Cc):[0,1],ci(r)}function rN(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],u;return oMath.pow(e,t)}function ZU(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 XE(e){return(t,r)=>-e(-t,r)}function Lb(e){const t=e(VE,GE),r=t.domain;let n=10,i,o;function u(){return i=ZU(n),o=QU(n),r()[0]<0?(i=XE(i),o=XE(o),e(GU,XU)):e(VE,GE),t}return t.base=function(l){return arguments.length?(n=+l,u()):n},t.domain=function(l){return arguments.length?(r(l),u()):r()},t.ticks=l=>{const f=r();let d=f[0],v=f[f.length-1];const p=v0){for(;m<=b;++m)for(O=1;Ov)break;P.push(x)}}else for(;m<=b;++m)for(O=n-1;O>=1;--O)if(x=m>0?O/o(-m):O*o(m),!(xv)break;P.push(x)}P.length*2{if(l==null&&(l=10),f==null&&(f=n===10?"s":","),typeof f!="function"&&(!(n%1)&&(f=Qs(f)).precision==null&&(f.trim=!0),f=Db(f)),l===1/0)return f;const d=Math.max(1,n*l/t.ticks().length);return v=>{let p=v/o(Math.round(i(v)));return p*nr(rN(r(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function nN(){const e=Lb(zf()).domain([1,10]);return e.copy=()=>Cu(e,nN()).base(e.base()),Or.apply(e,arguments),e}function YE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function QE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bb(e){var t=1,r=e(YE(t),QE(t));return r.constant=function(n){return arguments.length?e(YE(t=+n),QE(t)):t},ci(r)}function iN(){var e=Bb(zf());return e.copy=function(){return Cu(e,iN()).constant(e.constant())},Or.apply(e,arguments)}function ZE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function JU(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function e4(e){return e<0?-e*e:e*e}function Fb(e){var t=e(Ut,Ut),r=1;function n(){return r===1?e(Ut,Ut):r===.5?e(JU,e4):e(ZE(r),ZE(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ci(t)}function qb(){var e=Fb(zf());return e.copy=function(){return Cu(e,qb()).exponent(e.exponent())},Or.apply(e,arguments),e}function t4(){return qb.apply(null,arguments).exponent(.5)}function JE(e){return Math.sign(e)*e*e}function r4(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function aN(){var e=$b(),t=[0,1],r=!1,n;function i(o){var u=r4(e(o));return isNaN(u)?n:r?Math.round(u):u}return i.invert=function(o){return e.invert(JE(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Cc)).map(JE)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return aN(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Or.apply(i,arguments),ci(i)}function oN(){var e=[],t=[],r=[],n;function i(){var u=0,l=Math.max(1,t.length);for(r=new Array(l-1);++u0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[d-1],n[d]]},u.unknown=function(f){return arguments.length&&(o=f),u},u.thresholds=function(){return n.slice()},u.copy=function(){return sN().domain([e,t]).range(i).unknown(o)},Or.apply(ci(u),arguments)}function uN(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[ju(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var u=t.indexOf(o);return[e[u-1],e[u]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return uN().domain(e).range(t).unknown(r)},Or.apply(i,arguments)}const Ay=new Date,jy=new Date;function St(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const u=i(o),l=i.ceil(o);return o-u(t(o=new Date(+o),u==null?1:Math.floor(u)),o),i.range=(o,u,l)=>{const f=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o0))return f;let d;do f.push(d=new Date(+o)),t(o,l),e(o);while(dSt(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,l)=>{if(u>=u)if(l<0)for(;++l<=0;)for(;t(u,-1),!o(u););else for(;--l>=0;)for(;t(u,1),!o(u););}),r&&(i.count=(o,u)=>(Ay.setTime(+o),jy.setTime(+u),e(Ay),e(jy),Math.floor(r(Ay,jy))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?u=>n(u)%o===0:u=>i.count(0,u)%o===0):i)),i}const Mc=St(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Mc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?St(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Mc);Mc.range;const bn=1e3,wr=bn*60,xn=wr*60,An=xn*24,zb=An*7,eA=An*30,Ty=An*365,Ii=St(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bn)},(e,t)=>(t-e)/bn,e=>e.getUTCSeconds());Ii.range;const Ub=St(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bn)},(e,t)=>{e.setTime(+e+t*wr)},(e,t)=>(t-e)/wr,e=>e.getMinutes());Ub.range;const Wb=St(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*wr)},(e,t)=>(t-e)/wr,e=>e.getUTCMinutes());Wb.range;const Hb=St(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bn-e.getMinutes()*wr)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getHours());Hb.range;const Kb=St(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getUTCHours());Kb.range;const ku=St(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wr)/An,e=>e.getDate()-1);ku.range;const Uf=St(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/An,e=>e.getUTCDate()-1);Uf.range;const lN=St(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/An,e=>Math.floor(e/An));lN.range;function Yi(e){return St(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*wr)/zb)}const Wf=Yi(0),$c=Yi(1),n4=Yi(2),i4=Yi(3),Xa=Yi(4),a4=Yi(5),o4=Yi(6);Wf.range;$c.range;n4.range;i4.range;Xa.range;a4.range;o4.range;function Qi(e){return St(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/zb)}const Hf=Qi(0),Ic=Qi(1),s4=Qi(2),u4=Qi(3),Ya=Qi(4),l4=Qi(5),c4=Qi(6);Hf.range;Ic.range;s4.range;u4.range;Ya.range;l4.range;c4.range;const Vb=St(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());Vb.range;const Gb=St(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());Gb.range;const jn=St(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());jn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:St(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});jn.range;const Tn=St(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());Tn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:St(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Tn.range;function cN(e,t,r,n,i,o){const u=[[Ii,1,bn],[Ii,5,5*bn],[Ii,15,15*bn],[Ii,30,30*bn],[o,1,wr],[o,5,5*wr],[o,15,15*wr],[o,30,30*wr],[i,1,xn],[i,3,3*xn],[i,6,6*xn],[i,12,12*xn],[n,1,An],[n,2,2*An],[r,1,zb],[t,1,eA],[t,3,3*eA],[e,1,Ty]];function l(d,v,p){const m=vg).right(u,m);if(b===u.length)return e.every(Yg(d/Ty,v/Ty,p));if(b===0)return Mc.every(Math.max(Yg(d,v,p),1));const[O,x]=u[m/u[b-1][2]53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ne=ky(ys(ne.y,0,1)),Ce=Ne.getUTCDay(),Ne=Ce>4||Ce===0?Ic.ceil(Ne):Ic(Ne),Ne=Uf.offset(Ne,(ne.V-1)*7),ne.y=Ne.getUTCFullYear(),ne.m=Ne.getUTCMonth(),ne.d=Ne.getUTCDate()+(ne.w+6)%7):(Ne=Cy(ys(ne.y,0,1)),Ce=Ne.getDay(),Ne=Ce>4||Ce===0?$c.ceil(Ne):$c(Ne),Ne=ku.offset(Ne,(ne.V-1)*7),ne.y=Ne.getFullYear(),ne.m=Ne.getMonth(),ne.d=Ne.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ce="Z"in ne?ky(ys(ne.y,0,1)).getUTCDay():Cy(ys(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(Ce+5)%7:ne.w+ne.U*7-(Ce+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,ky(ne)):Cy(ne)}}function R(ae,ge,Te,ne){for(var We=0,Ne=ge.length,Ce=Te.length,Je,st;We=Ce)return-1;if(Je=ge.charCodeAt(We++),Je===37){if(Je=ge.charAt(We++),st=_[Je in tA?ge.charAt(We++):Je],!st||(ne=st(ae,Te,ne))<0)return-1}else if(Je!=Te.charCodeAt(ne++))return-1}return ne}function M(ae,ge,Te){var ne=d.exec(ge.slice(Te));return ne?(ae.p=v.get(ne[0].toLowerCase()),Te+ne[0].length):-1}function z(ae,ge,Te){var ne=b.exec(ge.slice(Te));return ne?(ae.w=O.get(ne[0].toLowerCase()),Te+ne[0].length):-1}function F(ae,ge,Te){var ne=p.exec(ge.slice(Te));return ne?(ae.w=m.get(ne[0].toLowerCase()),Te+ne[0].length):-1}function L(ae,ge,Te){var ne=P.exec(ge.slice(Te));return ne?(ae.m=A.get(ne[0].toLowerCase()),Te+ne[0].length):-1}function H(ae,ge,Te){var ne=x.exec(ge.slice(Te));return ne?(ae.m=g.get(ne[0].toLowerCase()),Te+ne[0].length):-1}function G(ae,ge,Te){return R(ae,t,ge,Te)}function X(ae,ge,Te){return R(ae,r,ge,Te)}function Q(ae,ge,Te){return R(ae,n,ge,Te)}function J(ae){return u[ae.getDay()]}function W(ae){return o[ae.getDay()]}function ee(ae){return f[ae.getMonth()]}function Z(ae){return l[ae.getMonth()]}function D(ae){return i[+(ae.getHours()>=12)]}function U(ae){return 1+~~(ae.getMonth()/3)}function oe(ae){return u[ae.getUTCDay()]}function ce(ae){return o[ae.getUTCDay()]}function me(ae){return f[ae.getUTCMonth()]}function Pe(ae){return l[ae.getUTCMonth()]}function De(ae){return i[+(ae.getUTCHours()>=12)]}function je(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var ge=j(ae+="",T);return ge.toString=function(){return ae},ge},parse:function(ae){var ge=N(ae+="",!1);return ge.toString=function(){return ae},ge},utcFormat:function(ae){var ge=j(ae+="",E);return ge.toString=function(){return ae},ge},utcParse:function(ae){var ge=N(ae+="",!0);return ge.toString=function(){return ae},ge}}}var tA={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,m4=/^%/,y4=/[\\^$*+?|[\]().{}]/g;function ze(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[t.toLowerCase(),r]))}function b4(e,t,r){var n=jt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function x4(e,t,r){var n=jt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function w4(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S4(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function O4(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function rA(e,t,r){var n=jt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function nA(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _4(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function P4(e,t,r){var n=jt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function E4(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function iA(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function A4(e,t,r){var n=jt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function aA(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function j4(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function T4(e,t,r){var n=jt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function C4(e,t,r){var n=jt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function k4(e,t,r){var n=jt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function N4(e,t,r){var n=m4.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function R4(e,t,r){var n=jt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function M4(e,t,r){var n=jt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function oA(e,t){return ze(e.getDate(),t,2)}function $4(e,t){return ze(e.getHours(),t,2)}function I4(e,t){return ze(e.getHours()%12||12,t,2)}function D4(e,t){return ze(1+ku.count(jn(e),e),t,3)}function fN(e,t){return ze(e.getMilliseconds(),t,3)}function L4(e,t){return fN(e,t)+"000"}function B4(e,t){return ze(e.getMonth()+1,t,2)}function F4(e,t){return ze(e.getMinutes(),t,2)}function q4(e,t){return ze(e.getSeconds(),t,2)}function z4(e){var t=e.getDay();return t===0?7:t}function U4(e,t){return ze(Wf.count(jn(e)-1,e),t,2)}function dN(e){var t=e.getDay();return t>=4||t===0?Xa(e):Xa.ceil(e)}function W4(e,t){return e=dN(e),ze(Xa.count(jn(e),e)+(jn(e).getDay()===4),t,2)}function H4(e){return e.getDay()}function K4(e,t){return ze($c.count(jn(e)-1,e),t,2)}function V4(e,t){return ze(e.getFullYear()%100,t,2)}function G4(e,t){return e=dN(e),ze(e.getFullYear()%100,t,2)}function X4(e,t){return ze(e.getFullYear()%1e4,t,4)}function Y4(e,t){var r=e.getDay();return e=r>=4||r===0?Xa(e):Xa.ceil(e),ze(e.getFullYear()%1e4,t,4)}function Q4(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ze(t/60|0,"0",2)+ze(t%60,"0",2)}function sA(e,t){return ze(e.getUTCDate(),t,2)}function Z4(e,t){return ze(e.getUTCHours(),t,2)}function J4(e,t){return ze(e.getUTCHours()%12||12,t,2)}function e8(e,t){return ze(1+Uf.count(Tn(e),e),t,3)}function pN(e,t){return ze(e.getUTCMilliseconds(),t,3)}function t8(e,t){return pN(e,t)+"000"}function r8(e,t){return ze(e.getUTCMonth()+1,t,2)}function n8(e,t){return ze(e.getUTCMinutes(),t,2)}function i8(e,t){return ze(e.getUTCSeconds(),t,2)}function a8(e){var t=e.getUTCDay();return t===0?7:t}function o8(e,t){return ze(Hf.count(Tn(e)-1,e),t,2)}function hN(e){var t=e.getUTCDay();return t>=4||t===0?Ya(e):Ya.ceil(e)}function s8(e,t){return e=hN(e),ze(Ya.count(Tn(e),e)+(Tn(e).getUTCDay()===4),t,2)}function u8(e){return e.getUTCDay()}function l8(e,t){return ze(Ic.count(Tn(e)-1,e),t,2)}function c8(e,t){return ze(e.getUTCFullYear()%100,t,2)}function f8(e,t){return e=hN(e),ze(e.getUTCFullYear()%100,t,2)}function d8(e,t){return ze(e.getUTCFullYear()%1e4,t,4)}function p8(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ya(e):Ya.ceil(e),ze(e.getUTCFullYear()%1e4,t,4)}function h8(){return"+0000"}function uA(){return"%"}function lA(e){return+e}function cA(e){return Math.floor(+e/1e3)}var ja,vN,mN;v8({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 v8(e){return ja=v4(e),vN=ja.format,ja.parse,mN=ja.utcFormat,ja.utcParse,ja}function m8(e){return new Date(e)}function y8(e){return e instanceof Date?+e:+new Date(+e)}function Xb(e,t,r,n,i,o,u,l,f,d){var v=$b(),p=v.invert,m=v.domain,b=d(".%L"),O=d(":%S"),x=d("%I:%M"),g=d("%I %p"),P=d("%a %d"),A=d("%b %d"),T=d("%B"),E=d("%Y");function _(j){return(f(j)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>oU(e,o/n))},r.copy=function(){return xN(t).domain(e)},$n.apply(r,arguments)}function Vf(){var e=0,t=.5,r=1,n=1,i,o,u,l,f,d=Ut,v,p=!1,m;function b(x){return isNaN(x=+x)?m:(x=.5+((x=+v(x))-o)*(n*xr}return Ry=e,Ry}var My,hA;function S8(){if(hA)return My;hA=1;var e=Gf(),t=_N(),r=wo();function n(i){return i&&i.length?e(i,r,t):void 0}return My=n,My}var O8=S8();const Xf=Ue(O8);var $y,vA;function PN(){if(vA)return $y;vA=1;function e(t,r){return te.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=ne.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*rt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return Pn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return Ge(Pn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return vt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ur))throw Error(Sr+"NaN");if(r.s<1)throw Error(Sr+(r.s?"NaN":"-Infinity"));return r.eq(ur)?new n(0):(it=!1,t=Pn(Zs(r,o),Zs(e,o),o),it=!0,Ge(t,i))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TN(t,e):AN(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Sr+"NaN");return r.s?(it=!1,t=Pn(r,e,0,1).times(e),it=!0,r.minus(t)):Ge(new n(r),i)};pe.naturalExponential=pe.exp=function(){return jN(this)};pe.naturalLogarithm=pe.ln=function(){return Zs(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?AN(t,e):TN(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Bi+e);if(t=vt(i)+1,n=i.d.length-1,r=n*rt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,i,o,u,l=this,f=l.constructor;if(l.s<1){if(!l.s)return new f(0);throw Error(Sr+"NaN")}for(e=vt(l),it=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Yr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=_o((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new f(t)):n=new f(i.toString()),r=f.precision,i=u=r+3;;)if(o=n,n=o.plus(Pn(l,o,u+2)).times(.5),Yr(o.d).slice(0,u)===(t=Yr(n.d)).slice(0,u)){if(t=t.slice(u-3,u+1),i==u&&t=="4999"){if(Ge(o,r+1,0),o.times(o).eq(l)){n=o;break}}else if(t!="9999")break;u+=4}return it=!0,Ge(n,r)};pe.times=pe.mul=function(e){var t,r,n,i,o,u,l,f,d,v=this,p=v.constructor,m=v.d,b=(e=new p(e)).d;if(!v.s||!e.s)return new p(0);for(e.s*=v.s,r=v.e+e.e,f=m.length,d=b.length,f=0;){for(t=0,i=f+n;i>n;)l=o[i]+b[n]*m[i-n-1]+t,o[i--]=l%Et|0,t=l/Et|0;o[i]=(o[i]+t)%Et|0}for(;!o[--u];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,it?Ge(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Jr(e,0,Oo),t===void 0?t=n.rounding:Jr(t,0,8),Ge(r,e+vt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ui(n,!0):(Jr(e,0,Oo),t===void 0?t=i.rounding:Jr(t,0,8),n=Ge(new i(n),e+1,t),r=Ui(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Ui(i):(Jr(e,0,Oo),t===void 0?t=o.rounding:Jr(t,0,8),n=Ge(new o(i),e+vt(i)+1,t),r=Ui(n.abs(),!1,e+vt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return Ge(new t(e),vt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,i,o,u,l=this,f=l.constructor,d=12,v=+(e=new f(e));if(!e.s)return new f(ur);if(l=new f(l),!l.s){if(e.s<1)throw Error(Sr+"Infinity");return l}if(l.eq(ur))return l;if(n=f.precision,e.eq(ur))return Ge(l,n);if(t=e.e,r=e.d.length-1,u=t>=r,o=l.s,u){if((r=v<0?-v:v)<=EN){for(i=new f(ur),t=Math.ceil(n/rt+4),it=!1;r%2&&(i=i.times(l),wA(i.d,t)),r=_o(r/2),r!==0;)l=l.times(l),wA(l.d,t);return it=!0,e.s<0?new f(ur).div(i):Ge(i,n)}}else if(o<0)throw Error(Sr+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,it=!1,i=e.times(Zs(l,n+d)),it=!0,i=jN(i),i.s=o,i};pe.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=vt(i),n=Ui(i,r<=o.toExpNeg||r>=o.toExpPos)):(Jr(e,1,Oo),t===void 0?t=o.rounding:Jr(t,0,8),i=Ge(new o(i),e,t),r=vt(i),n=Ui(i,e<=r||r<=o.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Jr(e,1,Oo),t===void 0?t=n.rounding:Jr(t,0,8)),Ge(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=vt(e),r=e.constructor;return Ui(e,t<=r.toExpNeg||t>=r.toExpPos)};function AN(e,t){var r,n,i,o,u,l,f,d,v=e.constructor,p=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),it?Ge(t,p):t;if(f=e.d,d=t.d,u=e.e,i=t.e,f=f.slice(),o=u-i,o){for(o<0?(n=f,o=-o,l=d.length):(n=d,i=u,l=f.length),u=Math.ceil(p/rt),l=u>l?u+1:l+1,o>l&&(o=l,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(l=f.length,o=d.length,l-o<0&&(o=l,n=d,d=f,f=n),r=0;o;)r=(f[--o]=f[o]+d[o]+r)/Et|0,f[o]%=Et;for(r&&(f.unshift(r),++i),l=f.length;f[--l]==0;)f.pop();return t.d=f,t.e=i,it?Ge(t,p):t}function Jr(e,t,r){if(e!==~~e||er)throw Error(Bi+e)}function Yr(e){var t,r,n,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,t=1;tu?1:-1;else for(l=f=0;li[l]?1:-1;break}return f}function r(n,i,o){for(var u=0;o--;)n[o]-=u,u=n[o]1;)n.shift()}return function(n,i,o,u){var l,f,d,v,p,m,b,O,x,g,P,A,T,E,_,j,N,R,M=n.constructor,z=n.s==i.s?1:-1,F=n.d,L=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(Sr+"Division by zero");for(f=n.e-i.e,N=L.length,_=F.length,b=new M(z),O=b.d=[],d=0;L[d]==(F[d]||0);)++d;if(L[d]>(F[d]||0)&&--f,o==null?A=o=M.precision:u?A=o+(vt(n)-vt(i))+1:A=o,A<0)return new M(0);if(A=A/rt+2|0,d=0,N==1)for(v=0,L=L[0],A++;(d<_||v)&&A--;d++)T=v*Et+(F[d]||0),O[d]=T/L|0,v=T%L|0;else{for(v=Et/(L[0]+1)|0,v>1&&(L=e(L,v),F=e(F,v),N=L.length,_=F.length),E=N,x=F.slice(0,N),g=x.length;g=Et/2&&++j;do v=0,l=t(L,x,N,g),l<0?(P=x[0],N!=g&&(P=P*Et+(x[1]||0)),v=P/j|0,v>1?(v>=Et&&(v=Et-1),p=e(L,v),m=p.length,g=x.length,l=t(p,x,m,g),l==1&&(v--,r(p,N16)throw Error(Zb+vt(e));if(!e.s)return new v(ur);for(it=!1,l=p,u=new v(.03125);e.abs().gte(.1);)e=e.times(u),d+=5;for(n=Math.log(Ni(2,d))/Math.LN10*2+5|0,l+=n,r=i=o=new v(ur),v.precision=l;;){if(i=Ge(i.times(e),l),r=r.times(++f),u=o.plus(Pn(i,r,l)),Yr(u.d).slice(0,l)===Yr(o.d).slice(0,l)){for(;d--;)o=Ge(o.times(o),l);return v.precision=p,t==null?(it=!0,Ge(o,p)):o}o=u}}function vt(e){for(var t=e.e*rt,r=e.d[0];r>=10;r/=10)t++;return t}function Fy(e,t,r){if(t>e.LN10.sd())throw it=!0,r&&(e.precision=r),Error(Sr+"LN10 precision limit exceeded");return Ge(new e(e.LN10),t)}function ri(e){for(var t="";e--;)t+="0";return t}function Zs(e,t){var r,n,i,o,u,l,f,d,v,p=1,m=10,b=e,O=b.d,x=b.constructor,g=x.precision;if(b.s<1)throw Error(Sr+(b.s?"NaN":"-Infinity"));if(b.eq(ur))return new x(0);if(t==null?(it=!1,d=g):d=t,b.eq(10))return t==null&&(it=!0),Fy(x,d);if(d+=m,x.precision=d,r=Yr(O),n=r.charAt(0),o=vt(b),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)b=b.times(e),r=Yr(b.d),n=r.charAt(0),p++;o=vt(b),n>1?(b=new x("0."+r),o++):b=new x(n+"."+r.slice(1))}else return f=Fy(x,d+2,g).times(o+""),b=Zs(new x(n+"."+r.slice(1)),d-m).plus(f),x.precision=g,t==null?(it=!0,Ge(b,g)):b;for(l=u=b=Pn(b.minus(ur),b.plus(ur),d),v=Ge(b.times(b),d),i=3;;){if(u=Ge(u.times(v),d),f=l.plus(Pn(u,new x(i),d)),Yr(f.d).slice(0,d)===Yr(l.d).slice(0,d))return l=l.times(2),o!==0&&(l=l.plus(Fy(x,d+2,g).times(o+""))),l=Pn(l,new x(p),d),x.precision=g,t==null?(it=!0,Ge(l,g)):l;l=f,i+=2}}function xA(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=_o(r/rt),e.d=[],n=(r+1)%rt,r<0&&(n+=rt),nDc||e.e<-Dc))throw Error(Zb+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ge(e,t,r){var n,i,o,u,l,f,d,v,p=e.d;for(u=1,o=p[0];o>=10;o/=10)u++;if(n=t-u,n<0)n+=rt,i=t,d=p[v=0];else{if(v=Math.ceil((n+1)/rt),o=p.length,v>=o)return e;for(d=o=p[v],u=1;o>=10;o/=10)u++;n%=rt,i=n-rt+u}if(r!==void 0&&(o=Ni(10,u-i-1),l=d/o%10|0,f=t<0||p[v+1]!==void 0||d%o,f=r<4?(l||f)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||f||r==6&&(n>0?i>0?d/Ni(10,u-i):0:p[v-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return f?(o=vt(e),p.length=1,t=t-o-1,p[0]=Ni(10,(rt-t%rt)%rt),e.e=_o(-t/rt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=v,o=1,v--):(p.length=v+1,o=Ni(10,rt-n),p[v]=i>0?(d/Ni(10,u-i)%Ni(10,i)|0)*o:0),f)for(;;)if(v==0){(p[0]+=o)==Et&&(p[0]=1,++e.e);break}else{if(p[v]+=o,p[v]!=Et)break;p[v--]=0,o=1}for(n=p.length;p[--n]===0;)p.pop();if(it&&(e.e>Dc||e.e<-Dc))throw Error(Zb+vt(e));return e}function TN(e,t){var r,n,i,o,u,l,f,d,v,p,m=e.constructor,b=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),it?Ge(t,b):t;if(f=e.d,p=t.d,n=t.e,d=e.e,f=f.slice(),u=d-n,u){for(v=u<0,v?(r=f,u=-u,l=p.length):(r=p,n=d,l=f.length),i=Math.max(Math.ceil(b/rt),l)+2,u>i&&(u=i,r.length=1),r.reverse(),i=u;i--;)r.push(0);r.reverse()}else{for(i=f.length,l=p.length,v=i0;--i)f[l++]=0;for(i=p.length;i>u;){if(f[--i]0?o=o.charAt(0)+"."+o.slice(1)+ri(n):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ri(-i-1)+o,r&&(n=r-u)>0&&(o+=ri(n))):i>=u?(o+=ri(i+1-u),r&&(n=r-i-1)>0&&(o=o+"."+ri(n))):((n=i+1)0&&(i+1===u&&(o+="."),o+=ri(n))),e.s<0?"-"+o:o}function wA(e,t){if(e.length>t)return e.length=t,!0}function CN(e){var t,r,n;function i(o){var u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,o instanceof i){u.s=o.s,u.e=o.e,u.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Bi+o);if(o>0)u.s=1;else if(o<0)o=-o,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(o===~~o&&o<1e7){u.e=0,u.d=[o];return}return xA(u,o.toString())}else if(typeof o!="string")throw Error(Bi+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,R8.test(o))xA(u,o);else throw Error(Bi+o)}if(i.prototype=pe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=CN,i.config=i.set=M8,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Bi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Bi+r+": "+n);return this}var Jb=CN(N8);ur=new Jb(1);const Ve=Jb;function $8(e){return B8(e)||L8(e)||D8(e)||I8()}function I8(){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 D8(e,t){if(e){if(typeof e=="string")return t0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t0(e,t)}}function L8(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B8(e){if(Array.isArray(e))return t0(e)}function t0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-u,SA(function(){for(var l=arguments.length,f=new Array(l),d=0;de.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var u=e[Symbol.iterator](),l;!(n=(l=u.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&u.return!=null&&u.return()}finally{if(i)throw o}}return r}}function e6(e){if(Array.isArray(e))return e}function $N(e){var t=Js(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function IN(e,t,r){if(e.lte(0))return new Ve(0);var n=Zf.getDigitCount(e.toNumber()),i=new Ve(10).pow(n),o=e.div(i),u=n!==1?.05:.1,l=new Ve(Math.ceil(o.div(u).toNumber())).add(r).mul(u),f=l.mul(i);return t?f:new Ve(Math.ceil(f))}function t6(e,t,r){var n=1,i=new Ve(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new Ve(10).pow(Zf.getDigitCount(e)-1),i=new Ve(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new Ve(Math.floor(e)))}else e===0?i=new Ve(Math.floor((t-1)/2)):r||(i=new Ve(Math.floor(e)));var u=Math.floor((t-1)/2),l=U8(z8(function(f){return i.add(new Ve(f-u).mul(n)).toNumber()}),r0);return l(0,t)}function DN(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ve(0),tickMin:new Ve(0),tickMax:new Ve(0)};var o=IN(new Ve(t).sub(e).div(r-1),n,i),u;e<=0&&t>=0?u=new Ve(0):(u=new Ve(e).add(t).div(2),u=u.sub(new Ve(u).mod(o)));var l=Math.ceil(u.sub(e).div(o).toNumber()),f=Math.ceil(new Ve(t).sub(u).div(o).toNumber()),d=l+f+1;return d>r?DN(e,t,r,n,i+1):(d0?f+(r-d):f,l=t>0?l:l+(r-d)),{step:o,tickMin:u.sub(new Ve(l).mul(o)),tickMax:u.add(new Ve(f).mul(o))})}function r6(e){var t=Js(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(i,2),l=$N([r,n]),f=Js(l,2),d=f[0],v=f[1];if(d===-1/0||v===1/0){var p=v===1/0?[d].concat(i0(r0(0,i-1).map(function(){return 1/0}))):[].concat(i0(r0(0,i-1).map(function(){return-1/0})),[v]);return r>n?n0(p):p}if(d===v)return t6(d,i,o);var m=DN(d,v,u,o),b=m.step,O=m.tickMin,x=m.tickMax,g=Zf.rangeStep(O,x.add(new Ve(.1).mul(b)),b);return r>n?n0(g):g}function n6(e,t){var r=Js(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=$N([n,i]),l=Js(u,2),f=l[0],d=l[1];if(f===-1/0||d===1/0)return[n,i];if(f===d)return[f];var v=Math.max(t,2),p=IN(new Ve(d).sub(f).div(v-1),o,0),m=[].concat(i0(Zf.rangeStep(new Ve(f),new Ve(d).sub(new Ve(.99).mul(p)),p)),[d]);return n>i?n0(m):m}var i6=RN(r6),a6=RN(n6),o6="Invariant failed";function Wi(e,t){throw new Error(o6)}var s6=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Qa(e){"@babel/helpers - typeof";return Qa=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},Qa(e)}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function v6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m6(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var f=o.range,d=0;d0?i[d-1].coordinate:i[l-1].coordinate,p=i[d].coordinate,m=d>=l-1?i[0].coordinate:i[d+1].coordinate,b=void 0;if(qt(p-v)!==qt(m-p)){var O=[];if(qt(m-p)===qt(f[1]-f[0])){b=m;var x=p+f[1]-f[0];O[0]=Math.min(x,(x+v)/2),O[1]=Math.max(x,(x+v)/2)}else{b=v;var g=m+f[1]-f[0];O[0]=Math.min(p,(g+p)/2),O[1]=Math.max(p,(g+p)/2)}var P=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>P[0]&&t<=P[1]||t>=O[0]&&t<=O[1]){u=i[d].index;break}}else{var A=Math.min(v,m),T=Math.max(v,m);if(t>(A+p)/2&&t<=(T+p)/2){u=i[d].index;break}}}else for(var E=0;E0&&E(n[E].coordinate+n[E-1].coordinate)/2&&t<=(n[E].coordinate+n[E+1].coordinate)/2||E===l-1&&t>(n[E].coordinate+n[E-1].coordinate)/2){u=n[E].index;break}return u},ex=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?lt(lt({},t.type.defaultProps),t.props):t.props,u=o.stroke,l=o.fill,f;switch(i){case"Line":f=u;break;case"Area":case"Radar":f=u&&u!=="none"?u:l;break;default:f=l;break}return f},R6=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var u={},l=Object.keys(o),f=0,d=l.length;f=0});if(P&&P.length){var A=P[0].type.defaultProps,T=A!==void 0?lt(lt({},A),P[0].props):P[0].props,E=T.barSize,_=T[g];u[_]||(u[_]=[]);var j=ke(E)?r:E;u[_].push({item:P[0],stackList:P.slice(1),barSize:ke(j)?void 0:zt(j,n,0)})}}return u},M6=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,u=o===void 0?[]:o,l=t.maxBarSize,f=u.length;if(f<1)return null;var d=zt(r,i,0,!0),v,p=[];if(u[0].barSize===+u[0].barSize){var m=!1,b=i/f,O=u.reduce(function(E,_){return E+_.barSize||0},0);O+=(f-1)*d,O>=i&&(O-=(f-1)*d,d=0),O>=i&&b>0&&(m=!0,b*=.9,O=f*b);var x=(i-O)/2>>0,g={offset:x-d,size:0};v=u.reduce(function(E,_){var j={item:_.item,position:{offset:g.offset+g.size+d,size:m?b:_.barSize}},N=[].concat(PA(E),[j]);return g=N[N.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(R){N.push({item:R,position:g})}),N},p)}else{var P=zt(n,i,0,!0);i-2*P-(f-1)*d<=0&&(d=0);var A=(i-2*P-(f-1)*d)/f;A>1&&(A>>=0);var T=l===+l?Math.min(A,l):A;v=u.reduce(function(E,_,j){var N=[].concat(PA(E),[{item:_.item,position:{offset:P+(A+d)*j+(A-T)/2,size:T}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(R){N.push({item:R,position:N[N.length-1].position})}),N},p)}return v},$6=function(t,r,n,i){var o=n.children,u=n.width,l=n.margin,f=u-(l.left||0)-(l.right||0),d=qN({children:o,legendWidth:f});if(d){var v=i||{},p=v.width,m=v.height,b=d.align,O=d.verticalAlign,x=d.layout;if((x==="vertical"||x==="horizontal"&&O==="middle")&&b!=="center"&&le(t[b]))return lt(lt({},t),{},qa({},b,t[b]+(p||0)));if((x==="horizontal"||x==="vertical"&&b==="center")&&O!=="middle"&&le(t[O]))return lt(lt({},t),{},qa({},O,t[O]+(m||0)))}return t},I6=function(t,r,n){return ke(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},zN=function(t,r,n,i,o){var u=r.props.children,l=cr(u,Ru).filter(function(d){return I6(i,o,d.props.direction)});if(l&&l.length){var f=l.map(function(d){return d.props.dataKey});return t.reduce(function(d,v){var p=xt(v,n);if(ke(p))return d;var m=Array.isArray(p)?[Yf(p),Xf(p)]:[p,p],b=f.reduce(function(O,x){var g=xt(v,x,0),P=m[0]-Math.abs(Array.isArray(g)?g[0]:g),A=m[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(P,O[0]),Math.max(A,O[1])]},[1/0,-1/0]);return[Math.min(b[0],d[0]),Math.max(b[1],d[1])]},[1/0,-1/0])}return null},D6=function(t,r,n,i,o){var u=r.map(function(l){return zN(t,l,n,o,i)}).filter(function(l){return!ke(l)});return u&&u.length?u.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]):null},UN=function(t,r,n,i,o){var u=r.map(function(f){var d=f.props.dataKey;return n==="number"&&d&&zN(t,f,d,i)||Cs(t,d,n,o)});if(n==="number")return u.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var l={};return u.reduce(function(f,d){for(var v=0,p=d.length;v=2?qt(l[0]-l[1])*2*d:d,r&&(t.ticks||t.niceTicks)){var v=(t.ticks||t.niceTicks).map(function(p){var m=o?o.indexOf(p):p;return{coordinate:i(m)+d,value:p,offset:d}});return v.filter(function(p){return!Pu(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,m){return{coordinate:i(p)+d,value:p,index:m,offset:d}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+d,value:p,offset:d}}):i.domain().map(function(p,m){return{coordinate:i(p)+d,value:o?o[p]:p,index:m,offset:d}})},qy=new WeakMap,rc=function(t,r){if(typeof r!="function")return t;qy.has(t)||qy.set(t,new WeakMap);var n=qy.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},KN=function(t,r,n){var i=t.scale,o=t.type,u=t.layout,l=t.axisType;if(i==="auto")return u==="radial"&&l==="radiusAxis"?{scale:Vs(),realScaleType:"band"}:u==="radial"&&l==="angleAxis"?{scale:Rc(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Ts(),realScaleType:"point"}:o==="category"?{scale:Vs(),realScaleType:"band"}:{scale:Rc(),realScaleType:"linear"};if(Fi(i)){var f="scale".concat(Mf(i));return{scale:(fA[f]||Ts)(),realScaleType:fA[f]?f:"point"}}return Ae(i)?{scale:i}:{scale:Ts(),realScaleType:"point"}},AA=1e-4,VN=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-AA,u=Math.max(i[0],i[1])+AA,l=t(r[0]),f=t(r[n-1]);(lu||fu)&&t.domain([r[0],r[n-1]])}},L6=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]=0?(t[l][n][0]=o,t[l][n][1]=o+f,o=t[l][n][1]):(t[l][n][0]=u,t[l][n][1]=u+f,u=t[l][n][1])}},q6=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[u][n][0]=o,t[u][n][1]=o+l,o=t[u][n][1]):(t[u][n][0]=0,t[u][n][1]=0)}},z6={sign:F6,expand:TF,none:Ua,silhouette:CF,wiggle:kF,positive:q6},U6=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),o=z6[n],u=jF().keys(i).value(function(l,f){return+xt(l,f,0)}).order(Dg).offset(o);return u(t)},W6=function(t,r,n,i,o,u){if(!t)return null;var l=u?r.reverse():r,f={},d=l.reduce(function(p,m){var b,O=(b=m.type)!==null&&b!==void 0&&b.defaultProps?lt(lt({},m.type.defaultProps),m.props):m.props,x=O.stackId,g=O.hide;if(g)return p;var P=O[n],A=p[P]||{hasStack:!1,stackGroups:{}};if(wt(x)){var T=A.stackGroups[x]||{numericAxisId:n,cateAxisId:i,items:[]};T.items.push(m),A.hasStack=!0,A.stackGroups[x]=T}else A.stackGroups[xo("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[m]};return lt(lt({},p),{},qa({},P,A))},f),v={};return Object.keys(d).reduce(function(p,m){var b=d[m];if(b.hasStack){var O={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(x,g){var P=b.stackGroups[g];return lt(lt({},x),{},qa({},g,{numericAxisId:n,cateAxisId:i,items:P.items,stackedData:U6(t,P.items,o)}))},O)}return lt(lt({},p),{},qa({},m,b))},v)},GN=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,u=r.originalDomain,l=r.allowDecimals,f=n||r.scale;if(f!=="auto"&&f!=="linear")return null;if(o&&i==="number"&&u&&(u[0]==="auto"||u[1]==="auto")){var d=t.domain();if(!d.length)return null;var v=i6(d,o,l);return t.domain([Yf(v),Xf(v)]),{niceTicks:v}}if(o&&i==="number"){var p=t.domain(),m=a6(p,o,l);return{niceTicks:m}}return null};function jA(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,u=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ke(i[t.dataKey])){var l=hc(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var f=xt(i,ke(u)?t.dataKey:u);return ke(f)?null:t.scale(f)}var TA=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,u=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var f=xt(u,r.dataKey,r.domain[l]);return ke(f)?null:r.scale(f)-o/2+i},H6=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},K6=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?lt(lt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(wt(o)){var u=r[o];if(u){var l=u.items.indexOf(t);return l>=0?u.stackedData[l]:null}}return null},V6=function(t){return t.reduce(function(r,n){return[Yf(n.concat([r[0]]).filter(le)),Xf(n.concat([r[1]]).filter(le))]},[1/0,-1/0])},XN=function(t,r,n){return Object.keys(t).reduce(function(i,o){var u=t[o],l=u.stackedData,f=l.reduce(function(d,v){var p=V6(v.slice(r,n+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},CA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,u0=function(t,r,n){if(Ae(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(le(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(CA.test(t[0])){var o=+CA.exec(t[0])[1];i[0]=r[0]-o}else Ae(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(le(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(kA.test(t[1])){var u=+kA.exec(t[1])[1];i[1]=r[1]+u}else Ae(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Fc=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=jb(r,function(p){return p.coordinate}),u=1/0,l=1,f=o.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},r5=function(t,r,n,i,o){var u=t.width,l=t.height,f=t.startAngle,d=t.endAngle,v=zt(t.cx,u,u/2),p=zt(t.cy,l,l/2),m=ZN(u,l,n),b=zt(t.innerRadius,m,0),O=zt(t.outerRadius,m,m*.8),x=Object.keys(r);return x.reduce(function(g,P){var A=r[P],T=A.domain,E=A.reversed,_;if(ke(A.range))i==="angleAxis"?_=[f,d]:i==="radiusAxis"&&(_=[b,O]),E&&(_=[_[1],_[0]]);else{_=A.range;var j=_,N=Y6(j,2);f=N[0],d=N[1]}var R=KN(A,o),M=R.realScaleType,z=R.scale;z.domain(T).range(_),VN(z);var F=GN(z,mn(mn({},A),{},{realScaleType:M})),L=mn(mn(mn({},A),F),{},{range:_,radius:O,realScaleType:M,scale:z,cx:v,cy:p,innerRadius:b,outerRadius:O,startAngle:f,endAngle:d});return mn(mn({},g),{},QN({},P,L))},{})},n5=function(t,r){var n=t.x,i=t.y,o=r.x,u=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-u,2))},i5=function(t,r){var n=t.x,i=t.y,o=r.cx,u=r.cy,l=n5({x:n,y:i},{x:o,y:u});if(l<=0)return{radius:l};var f=(n-o)/l,d=Math.acos(f);return i>u&&(d=2*Math.PI-d),{radius:l,angle:t5(d),angleInRadian:d}},a5=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),u=Math.min(i,o);return{startAngle:r-u*360,endAngle:n-u*360}},o5=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),u=Math.floor(i/360),l=Math.min(o,u);return t+l*360},$A=function(t,r){var n=t.x,i=t.y,o=i5({x:n,y:i},r),u=o.radius,l=o.angle,f=r.innerRadius,d=r.outerRadius;if(ud)return!1;if(u===0)return!0;var v=a5(r),p=v.startAngle,m=v.endAngle,b=l,O;if(p<=m){for(;b>m;)b-=360;for(;b=p&&b<=m}else{for(;b>p;)b-=360;for(;b=m&&b<=p}return O?mn(mn({},r),{},{radius:u,angle:o5(b,r)}):null},JN=function(t){return!k.isValidElement(t)&&!Ae(t)&&typeof t!="boolean"?t.className:""};function nu(e){"@babel/helpers - typeof";return nu=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},nu(e)}var s5=["offset"];function u5(e){return d5(e)||f5(e)||c5(e)||l5()}function l5(){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 c5(e,t){if(e){if(typeof e=="string")return l0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l0(e,t)}}function f5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d5(e){if(Array.isArray(e))return l0(e)}function l0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t=0?1:-1,T,E;i==="insideStart"?(T=b+A*u,E=x):i==="insideEnd"?(T=O-A*u,E=!x):i==="end"&&(T=O+A*u,E=x),E=P<=0?E:!E;var _=Ze(d,v,g,T),j=Ze(d,v,g,T+(E?1:-1)*359),N="M".concat(_.x,",").concat(_.y,` A`).concat(g,",").concat(g,",0,1,").concat(E?0:1,`, `).concat(j.x,",").concat(j.y),R=ke(t.id)?xo("recharts-radial-line-"):t.id;return I.createElement("text",iu({},n,{dominantBaseline:"central",className:Me("recharts-radial-bar-label",l)}),I.createElement("defs",null,I.createElement("path",{id:R,d:N})),I.createElement("textPath",{xlinkHref:"#".concat(R)},r))},w5=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,u=o.cx,l=o.cy,f=o.innerRadius,d=o.outerRadius,v=o.startAngle,p=o.endAngle,m=(v+p)/2;if(i==="outside"){var b=Ze(u,l,d+n,m),O=b.x,x=b.y;return{x:O,y:x,textAnchor:O>=u?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:u,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:u,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:u,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(f+d)/2,P=Ze(u,l,g,m),A=P.x,T=P.y;return{x:A,y:T,textAnchor:"middle",verticalAnchor:"middle"}},S5=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,u=r,l=u.x,f=u.y,d=u.width,v=u.height,p=v>=0?1:-1,m=p*i,b=p>0?"end":"start",O=p>0?"start":"end",x=d>=0?1:-1,g=x*i,P=x>0?"end":"start",A=x>0?"start":"end";if(o==="top"){var T={x:l+d/2,y:f-p*i,textAnchor:"middle",verticalAnchor:b};return bt(bt({},T),n?{height:Math.max(f-n.y,0),width:d}:{})}if(o==="bottom"){var E={x:l+d/2,y:f+v+m,textAnchor:"middle",verticalAnchor:O};return bt(bt({},E),n?{height:Math.max(n.y+n.height-(f+v),0),width:d}:{})}if(o==="left"){var _={x:l-g,y:f+v/2,textAnchor:P,verticalAnchor:"middle"};return bt(bt({},_),n?{width:Math.max(_.x-n.x,0),height:v}:{})}if(o==="right"){var j={x:l+d+g,y:f+v/2,textAnchor:A,verticalAnchor:"middle"};return bt(bt({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:v}:{})}var N=n?{width:d,height:v}:{};return o==="insideLeft"?bt({x:l+g,y:f+v/2,textAnchor:A,verticalAnchor:"middle"},N):o==="insideRight"?bt({x:l+d-g,y:f+v/2,textAnchor:P,verticalAnchor:"middle"},N):o==="insideTop"?bt({x:l+d/2,y:f+m,textAnchor:"middle",verticalAnchor:O},N):o==="insideBottom"?bt({x:l+d/2,y:f+v-m,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?bt({x:l+g,y:f+m,textAnchor:A,verticalAnchor:O},N):o==="insideTopRight"?bt({x:l+d-g,y:f+m,textAnchor:P,verticalAnchor:O},N):o==="insideBottomLeft"?bt({x:l+g,y:f+v-m,textAnchor:A,verticalAnchor:b},N):o==="insideBottomRight"?bt({x:l+d-g,y:f+v-m,textAnchor:P,verticalAnchor:b},N):bo(o)&&(le(o.x)||Mi(o.x))&&(le(o.y)||Mi(o.y))?bt({x:l+zt(o.x,d),y:f+zt(o.y,v),textAnchor:"end",verticalAnchor:"end"},N):bt({x:l+d/2,y:f+v/2,textAnchor:"middle",verticalAnchor:"middle"},N)},O5=function(t){return"cx"in t&&le(t.cx)};function At(e){var t=e.offset,r=t===void 0?5:t,n=p5(e,s5),i=bt({offset:r},n),o=i.viewBox,u=i.position,l=i.value,f=i.children,d=i.content,v=i.className,p=v===void 0?"":v,m=i.textBreakAll;if(!o||ke(l)&&ke(f)&&!k.isValidElement(d)&&!Ae(d))return null;if(k.isValidElement(d))return k.cloneElement(d,i);var b;if(Ae(d)){if(b=k.createElement(d,i),k.isValidElement(b))return b}else b=g5(i);var O=O5(o),x=Se(i,!0);if(O&&(u==="insideStart"||u==="insideEnd"||u==="end"))return x5(i,b,x);var g=O?w5(i):S5(i);return I.createElement(zi,iu({className:Me("recharts-label",p)},x,g,{breakAll:m}),b)}At.displayName="Label";var eR=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,u=t.endAngle,l=t.r,f=t.radius,d=t.innerRadius,v=t.outerRadius,p=t.x,m=t.y,b=t.top,O=t.left,x=t.width,g=t.height,P=t.clockWise,A=t.labelViewBox;if(A)return A;if(le(x)&&le(g)){if(le(p)&&le(m))return{x:p,y:m,width:x,height:g};if(le(b)&&le(O))return{x:b,y:O,width:x,height:g}}return le(p)&&le(m)?{x:p,y:m,width:0,height:0}:le(r)&&le(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:u||i||0,innerRadius:d||0,outerRadius:v||f||l||0,clockWise:P}:t.viewBox?t.viewBox:{}},_5=function(t,r){return t?t===!0?I.createElement(At,{key:"label-implicit",viewBox:r}):wt(t)?I.createElement(At,{key:"label-implicit",viewBox:r,value:t}):k.isValidElement(t)?t.type===At?k.cloneElement(t,{key:"label-implicit",viewBox:r}):I.createElement(At,{key:"label-implicit",content:t,viewBox:r}):Ae(t)?I.createElement(At,{key:"label-implicit",content:t,viewBox:r}):bo(t)?I.createElement(At,iu({viewBox:r},t,{key:"label-implicit"})):null:null},P5=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=eR(t),u=cr(i,At).map(function(f,d){return k.cloneElement(f,{viewBox:r||o,key:"label-".concat(d)})});if(!n)return u;var l=_5(t.label,r||o);return[l].concat(u5(u))};At.parseViewBox=eR;At.renderCallByParent=P5;var zy,DA;function E5(){if(DA)return zy;DA=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return zy=e,zy}var A5=E5();const j5=Ue(A5);function au(e){"@babel/helpers - typeof";return au=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},au(e)}var T5=["valueAccessor"],C5=["data","dataKey","clockWise","id","textBreakAll"];function k5(e){return $5(e)||M5(e)||R5(e)||N5()}function N5(){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 R5(e,t){if(e){if(typeof e=="string")return c0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c0(e,t)}}function M5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $5(e){if(Array.isArray(e))return c0(e)}function c0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function B5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var F5=function(t){return Array.isArray(t.value)?j5(t.value):t.value};function En(e){var t=e.valueAccessor,r=t===void 0?F5:t,n=FA(e,T5),i=n.data,o=n.dataKey,u=n.clockWise,l=n.id,f=n.textBreakAll,d=FA(n,C5);return!i||!i.length?null:I.createElement(qe,{className:"recharts-label-list"},i.map(function(v,p){var m=ke(o)?r(v,p):xt(v&&v.payload,o),b=ke(l)?{}:{id:"".concat(l,"-").concat(p)};return I.createElement(At,zc({},Se(v,!0),d,b,{parentViewBox:v.parentViewBox,value:m,textBreakAll:f,viewBox:At.parseViewBox(ke(u)?v:BA(BA({},v),{},{clockWise:u})),key:"label-".concat(p),index:p}))}))}En.displayName="LabelList";function q5(e,t){return e?e===!0?I.createElement(En,{key:"labelList-implicit",data:t}):I.isValidElement(e)||Ae(e)?I.createElement(En,{key:"labelList-implicit",data:t,content:e}):bo(e)?I.createElement(En,zc({data:t},e,{key:"labelList-implicit"})):null:null}function z5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=cr(n,En).map(function(u,l){return k.cloneElement(u,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var o=q5(e.label,t);return[o].concat(k5(i))}En.renderCallByParent=z5;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 f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(u>d),`, `).concat(p.x,",").concat(p.y,` `);if(i>0){var b=Ze(r,n,i,u),O=Ze(r,n,i,d);m+="L ".concat(O.x,",").concat(O.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(f)>180),",").concat(+(u<=d),`, `).concat(b.x,",").concat(b.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},V5=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,u=t.cornerRadius,l=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,v=t.endAngle,p=qt(v-d),m=nc({cx:r,cy:n,radius:o,angle:d,sign:p,cornerRadius:u,cornerIsExternal:f}),b=m.circleTangency,O=m.lineTangency,x=m.theta,g=nc({cx:r,cy:n,radius:o,angle:v,sign:-p,cornerRadius:u,cornerIsExternal:f}),P=g.circleTangency,A=g.lineTangency,T=g.theta,E=f?Math.abs(d-v):Math.abs(d-v)-x-T;if(E<0)return l?"M ".concat(O.x,",").concat(O.y,` a`).concat(u,",").concat(u,",0,0,1,").concat(u*2,`,0 a`).concat(u,",").concat(u,",0,0,1,").concat(-u*2,`,0 `):tR({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:d,endAngle:v});var _="M ".concat(O.x,",").concat(O.y,` A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,` A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(p<0),",").concat(P.x,",").concat(P.y,` A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(A.x,",").concat(A.y,` `);if(i>0){var j=nc({cx:r,cy:n,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:u,cornerIsExternal:f}),N=j.circleTangency,R=j.lineTangency,M=j.theta,z=nc({cx:r,cy:n,radius:i,angle:v,sign:-p,isExternal:!0,cornerRadius:u,cornerIsExternal:f}),F=z.circleTangency,L=z.lineTangency,H=z.theta,G=f?Math.abs(d-v):Math.abs(d-v)-M-H;if(G<0&&u===0)return"".concat(_,"L").concat(r,",").concat(n,"Z");_+="L".concat(L.x,",").concat(L.y,` A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(F.x,",").concat(F.y,` A`).concat(i,",").concat(i,",0,").concat(+(G>180),",").concat(+(p>0),",").concat(N.x,",").concat(N.y,` A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(R.x,",").concat(R.y,"Z")}else _+="L".concat(r,",").concat(n,"Z");return _},G5={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rR=function(t){var r=zA(zA({},G5),t),n=r.cx,i=r.cy,o=r.innerRadius,u=r.outerRadius,l=r.cornerRadius,f=r.forceCornerRadius,d=r.cornerIsExternal,v=r.startAngle,p=r.endAngle,m=r.className;if(u0&&Math.abs(v-p)<360?g=V5({cx:n,cy:i,innerRadius:o,outerRadius:u,cornerRadius:Math.min(x,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:v,endAngle:p}):g=tR({cx:n,cy:i,innerRadius:o,outerRadius:u,startAngle:v,endAngle:p}),I.createElement("path",f0({},Se(r,!0),{className:b,d:g,role:"img"}))};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 d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;trW.call(e,t));function Zi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const aW="__v",oW="__o",sW="_owner",{getOwnPropertyDescriptor:VA,keys:GA}=Object;function uW(e,t){return e.byteLength===t.byteLength&&Wc(new Uint8Array(e),new Uint8Array(t))}function lW(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function cW(e,t){return e.byteLength===t.byteLength&&Wc(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function fW(e,t){return Zi(e.getTime(),t.getTime())}function dW(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function pW(e,t){return e===t}function XA(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.entries();let u,l,f=0;for(;(u=o.next())&&!u.done;){const d=t.entries();let v=!1,p=0;for(;(l=d.next())&&!l.done;){if(i[p]){p++;continue}const m=u.value,b=l.value;if(r.equals(m[0],b[0],f,p,e,t,r)&&r.equals(m[1],b[1],m[0],b[0],e,t,r)){v=i[p]=!0;break}p++}if(!v)return!1;f++}return!0}const hW=Zi;function vW(e,t,r){const n=GA(e);let i=n.length;if(GA(t).length!==i)return!1;for(;i-- >0;)if(!nR(e,t,r,n[i]))return!1;return!0}function Ss(e,t,r){const n=KA(e);let i=n.length;if(KA(t).length!==i)return!1;let o,u,l;for(;i-- >0;)if(o=n[i],!nR(e,t,r,o)||(u=VA(e,o),l=VA(t,o),(u||l)&&(!u||!l||u.configurable!==l.configurable||u.enumerable!==l.enumerable||u.writable!==l.writable)))return!1;return!0}function mW(e,t){return Zi(e.valueOf(),t.valueOf())}function yW(e,t){return e.source===t.source&&e.flags===t.flags}function YA(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.values();let u,l;for(;(u=o.next())&&!u.done;){const f=t.values();let d=!1,v=0;for(;(l=f.next())&&!l.done;){if(!i[v]&&r.equals(u.value,l.value,u.value,l.value,e,t,r)){d=i[v]=!0;break}v++}if(!d)return!1}return!0}function Wc(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function gW(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function nR(e,t,r,n){return(n===sW||n===oW||n===aW)&&(e.$$typeof||t.$$typeof)?!0:iW(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const bW="[object ArrayBuffer]",xW="[object Arguments]",wW="[object Boolean]",SW="[object DataView]",OW="[object Date]",_W="[object Error]",PW="[object Map]",EW="[object Number]",AW="[object Object]",jW="[object RegExp]",TW="[object Set]",CW="[object String]",kW={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},NW="[object URL]",RW=Object.prototype.toString;function MW({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:u,areNumbersEqual:l,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:v,areSetsEqual:p,areTypedArraysEqual:m,areUrlsEqual:b,unknownTagComparators:O}){return function(g,P,A){if(g===P)return!0;if(g==null||P==null)return!1;const T=typeof g;if(T!==typeof P)return!1;if(T!=="object")return T==="number"?l(g,P,A):T==="function"?o(g,P,A):!1;const E=g.constructor;if(E!==P.constructor)return!1;if(E===Object)return f(g,P,A);if(Array.isArray(g))return t(g,P,A);if(E===Date)return n(g,P,A);if(E===RegExp)return v(g,P,A);if(E===Map)return u(g,P,A);if(E===Set)return p(g,P,A);const _=RW.call(g);if(_===OW)return n(g,P,A);if(_===jW)return v(g,P,A);if(_===PW)return u(g,P,A);if(_===TW)return p(g,P,A);if(_===AW)return typeof g.then!="function"&&typeof P.then!="function"&&f(g,P,A);if(_===NW)return b(g,P,A);if(_===_W)return i(g,P,A);if(_===xW)return f(g,P,A);if(kW[_])return m(g,P,A);if(_===bW)return e(g,P,A);if(_===SW)return r(g,P,A);if(_===wW||_===EW||_===CW)return d(g,P,A);if(O){let j=O[_];if(!j){const N=nW(g);N&&(j=O[N])}if(j)return j(g,P,A)}return!1}}function $W({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:uW,areArraysEqual:r?Ss:lW,areDataViewsEqual:cW,areDatesEqual:fW,areErrorsEqual:dW,areFunctionsEqual:pW,areMapsEqual:r?Uy(XA,Ss):XA,areNumbersEqual:hW,areObjectsEqual:r?Ss:vW,arePrimitiveWrappersEqual:mW,areRegExpsEqual:yW,areSetsEqual:r?Uy(YA,Ss):YA,areTypedArraysEqual:r?Uy(Wc,Ss):Wc,areUrlsEqual:gW,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ac(n.areArraysEqual),o=ac(n.areMapsEqual),u=ac(n.areObjectsEqual),l=ac(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:l})}return n}function IW(e){return function(t,r,n,i,o,u,l){return e(t,r,l)}}function DW({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(l,f){const{cache:d=e?new WeakMap:void 0,meta:v}=r();return t(l,f,{cache:d,equals:n,meta:v,strict:i})};if(e)return function(l,f){return t(l,f,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const o={cache:void 0,equals:n,meta:void 0,strict:i};return function(l,f){return t(l,f,o)}}const LW=di();di({strict:!0});di({circular:!0});di({circular:!0,strict:!0});di({createInternalComparator:()=>Zi});di({strict:!0,createInternalComparator:()=>Zi});di({circular:!0,createInternalComparator:()=>Zi});di({circular:!0,createInternalComparator:()=>Zi,strict:!0});function di(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,o=$W(e),u=MW(o),l=r?r(u):IW(u);return DW({circular:t,comparator:u,createState:n,equals:l,strict:i})}function BW(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function QA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):BW(i)};requestAnimationFrame(n)}function p0(e){"@babel/helpers - typeof";return p0=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},p0(e)}function FW(e){return WW(e)||UW(e)||zW(e)||qW()}function qW(){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 zW(e,t){if(e){if(typeof e=="string")return ZA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZA(e,t)}}function ZA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:P<0?0:P},x=function(P){for(var A=P>1?1:P,T=A,E=0;E<8;++E){var _=p(T)-A,j=b(T);if(Math.abs(_-A)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,u=t.dt,l=u===void 0?17:u,f=function(v,p,m){var b=-(v-p)*n,O=m*o,x=m+(b-O)*l/1e3,g=m*l/1e3+v;return Math.abs(g-p)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Wy(e){return PH(e)||_H(e)||OH(e)||SH()}function SH(){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 OH(e,t){if(e){if(typeof e=="string")return g0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g0(e,t)}}function _H(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PH(e){if(Array.isArray(e))return g0(e)}function g0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vc(e){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vc(e)}var en=(function(e){CH(r,e);var t=kH(r);function r(n,i){var o;EH(this,r),o=t.call(this,n,i);var u=o.props,l=u.isActive,f=u.attributeName,d=u.from,v=u.to,p=u.steps,m=u.children,b=u.duration;if(o.handleStyleChange=o.handleStyleChange.bind(w0(o)),o.changeStyle=o.changeStyle.bind(w0(o)),!l||b<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:v}),x0(o);if(p&&p.length)o.state={style:p[0].style};else if(d){if(typeof m=="function")return o.state={style:d},x0(o);o.state={style:f?As({},f,d):d}}else o.state={style:{}};return o}return jH(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,u=i.canBegin;this.mounted=!0,!(!o||!u)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,u=o.isActive,l=o.canBegin,f=o.attributeName,d=o.shouldReAnimate,v=o.to,p=o.from,m=this.state.style;if(l){if(!u){var b={style:f?As({},f,v):v};this.state&&m&&(f&&m[f]!==v||!f&&m!==v)&&this.setState(b);return}if(!(LW(i.to,v)&&i.canBegin&&i.isActive)){var O=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=O||d?p:i.to;if(this.state&&m){var g={style:f?As({},f,x):x};(f&&m[f]!==x||!f&&m!==x)&&this.setState(g)}this.runAnimation(Rr(Rr({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,u=i.from,l=i.to,f=i.duration,d=i.easing,v=i.begin,p=i.onAnimationEnd,m=i.onAnimationStart,b=gH(u,l,sH(d),f,this.changeStyle),O=function(){o.stopJSAnimation=b()};this.manager.start([m,v,O,f,p])}},{key:"runStepAnimation",value:function(i){var o=this,u=i.steps,l=i.begin,f=i.onAnimationStart,d=u[0],v=d.style,p=d.duration,m=p===void 0?0:p,b=function(x,g,P){if(P===0)return x;var A=g.duration,T=g.easing,E=T===void 0?"ease":T,_=g.style,j=g.properties,N=g.onAnimationEnd,R=P>0?u[P-1]:g,M=j||Object.keys(_);if(typeof E=="function"||E==="spring")return[].concat(Wy(x),[o.runJSAnimation.bind(o,{from:R.style,to:_,duration:A,easing:E}),A]);var z=tj(M,A,E),F=Rr(Rr(Rr({},R.style),_),{},{transition:z});return[].concat(Wy(x),[F,A,N]).filter(XW)};return this.manager.start([f].concat(Wy(u.reduce(b,[v,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=HW());var o=i.begin,u=i.duration,l=i.attributeName,f=i.to,d=i.easing,v=i.onAnimationStart,p=i.onAnimationEnd,m=i.steps,b=i.children,O=this.manager;if(this.unSubscribe=O.subscribe(this.handleStyleChange),typeof d=="function"||typeof b=="function"||d==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var x=l?As({},l,f):f,g=tj(Object.keys(x),u,d);O.start([v,o,Rr(Rr({},x),{},{transition:g}),u,p])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var u=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=xH(i,bH),d=k.Children.count(o),v=this.state.style;if(typeof o=="function")return o(v);if(!l||d===0||u<=0)return o;var p=function(b){var O=b.props,x=O.style,g=x===void 0?{}:x,P=O.className,A=k.cloneElement(b,Rr(Rr({},f),{},{style:Rr(Rr({},g),v),className:P}));return A};return d===1?p(k.Children.only(o)):I.createElement("div",null,k.Children.map(o,function(m){return p(m)}))}}]),r})(k.PureComponent);en.displayName="Animate";en.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};en.propTypes={from:$e.oneOfType([$e.object,$e.string]),to:$e.oneOfType([$e.object,$e.string]),attributeName:$e.string,duration:$e.number,begin:$e.number,easing:$e.oneOfType([$e.string,$e.func]),steps:$e.arrayOf($e.shape({duration:$e.number.isRequired,style:$e.object.isRequired,easing:$e.oneOfType([$e.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$e.func]),properties:$e.arrayOf("string"),onAnimationEnd:$e.func})),children:$e.oneOfType([$e.node,$e.func]),isActive:$e.bool,canBegin:$e.bool,onAnimationEnd:$e.func,shouldReAnimate:$e.bool,onAnimationStart:$e.func,onAnimationReStart:$e.func};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 Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,f=n>=0?1:-1,d=i>=0&&n>=0||i<0&&n<0?1:0,v;if(u>0&&o instanceof Array){for(var p=[0,0,0,0],m=0,b=4;mu?u:o[m];v="M".concat(t,",").concat(r+l*p[0]),p[0]>0&&(v+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(r)),v+="L ".concat(t+n-f*p[1],",").concat(r),p[1]>0&&(v+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`, `).concat(t+n,",").concat(r+l*p[1])),v+="L ".concat(t+n,",").concat(r+i-l*p[2]),p[2]>0&&(v+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`, `).concat(t+n-f*p[2],",").concat(r+i)),v+="L ".concat(t+f*p[3],",").concat(r+i),p[3]>0&&(v+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`, `).concat(t,",").concat(r+i-l*p[3])),v+="Z"}else if(u>0&&o===+o&&o>0){var O=Math.min(u,o);v="M ".concat(t,",").concat(r+l*O,` A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(r,` L `).concat(t+n-f*O,",").concat(r,` A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+n,",").concat(r+l*O,` L `).concat(t+n,",").concat(r+i-l*O,` A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+n-f*O,",").concat(r+i,` L `).concat(t+f*O,",").concat(r+i,` A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t,",").concat(r+i-l*O," Z")}else v="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return v},qH=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,u=r.y,l=r.width,f=r.height;if(Math.abs(l)>0&&Math.abs(f)>0){var d=Math.min(o,o+l),v=Math.max(o,o+l),p=Math.min(u,u+f),m=Math.max(u,u+f);return n>=d&&n<=v&&i>=p&&i<=m}return!1},zH={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},tx=function(t){var r=lj(lj({},zH),t),n=k.useRef(),i=k.useState(-1),o=RH(i,2),u=o[0],l=o[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&l(E)}catch{}},[]);var f=r.x,d=r.y,v=r.width,p=r.height,m=r.radius,b=r.className,O=r.animationEasing,x=r.animationDuration,g=r.animationBegin,P=r.isAnimationActive,A=r.isUpdateAnimationActive;if(f!==+f||d!==+d||v!==+v||p!==+p||v===0||p===0)return null;var T=Me("recharts-rectangle",b);return A?I.createElement(en,{canBegin:u>0,from:{width:v,height:p,x:f,y:d},to:{width:v,height:p,x:f,y:d},duration:x,animationEasing:O,isActive:A},function(E){var _=E.width,j=E.height,N=E.x,R=E.y;return I.createElement(en,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:x,isActive:P,easing:O},I.createElement("path",Gc({},Se(r,!0),{className:T,d:cj(N,R,_,j,m),ref:n})))}):I.createElement("path",Gc({},Se(r,!0),{className:T,d:cj(f,d,v,p,m)}))},UH=["points","className","baseLinePoints","connectNulls"];function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fj(e){return XH(e)||GH(e)||VH(e)||KH()}function KH(){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 VH(e,t){if(e){if(typeof e=="string")return S0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S0(e,t)}}function GH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XH(e){if(Array.isArray(e))return S0(e)}function S0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){dj(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),dj(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Ns=function(t,r){var n=YH(t);r&&(n=[n.reduce(function(o,u){return[].concat(fj(o),fj(u))},[])]);var i=n.map(function(o){return o.reduce(function(u,l,f){return"".concat(u).concat(f===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},QH=function(t,r,n){var i=Ns(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Ns(r.reverse(),n).slice(1))},ZH=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,u=WH(t,UH);if(!r||!r.length)return null;var l=Me("recharts-polygon",n);if(i&&i.length){var f=u.stroke&&u.stroke!=="none",d=QH(r,i,o);return I.createElement("g",{className:l},I.createElement("path",Ma({},Se(u,!0),{fill:d.slice(-1)==="Z"?u.fill:"none",stroke:"none",d})),f?I.createElement("path",Ma({},Se(u,!0),{fill:"none",d:Ns(r,o)})):null,f?I.createElement("path",Ma({},Se(u,!0),{fill:"none",d:Ns(i,o)})):null)}var v=Ns(r,o);return I.createElement("path",Ma({},Se(u,!0),{fill:v.slice(-1)==="Z"?u.fill:"none",className:l,d:v}))};function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var oK=function(t,r,n,i,o,u){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(u,",").concat(r,"h").concat(n)},sK=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,u=t.top,l=u===void 0?0:u,f=t.left,d=f===void 0?0:f,v=t.width,p=v===void 0?0:v,m=t.height,b=m===void 0?0:m,O=t.className,x=iK(t,JH),g=eK({x:n,y:o,top:l,left:d,width:p,height:b},x);return!le(n)||!le(o)||!le(p)||!le(b)||!le(l)||!le(d)?null:I.createElement("path",_0({},Se(g,!0),{className:Me("recharts-cross",O),d:oK(n,o,p,b,l,d)}))},Hy,hj;function uK(){if(hj)return Hy;hj=1;var e=Gf(),t=_N(),r=an();function n(i,o){return i&&i.length?e(i,r(o,2),t):void 0}return Hy=n,Hy}var lK=uK();const cK=Ue(lK);var Ky,vj;function fK(){if(vj)return Ky;vj=1;var e=Gf(),t=an(),r=PN();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return Ky=n,Ky}var dK=fK();const pK=Ue(dK);var hK=["cx","cy","angle","ticks","axisLine"],vK=["ticks","tick","angle","tickFormatter","stroke"];function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gj(e,t){for(var r=0;rwj?u=i==="outer"?"start":"end":o<-wj?u=i==="outer"?"end":"start":u="middle",u}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,u=n.radius,l=n.axisLine,f=n.axisLineType,d=ji(ji({},Se(this.props,!1)),{},{fill:"none"},Se(l,!1));if(f==="circle")return I.createElement(Jf,Ri({className:"recharts-polar-angle-axis-line"},d,{cx:i,cy:o,r:u}));var v=this.props.ticks,p=v.map(function(m){return Ze(i,o,u,m.coordinate)});return I.createElement(ZH,Ri({className:"recharts-polar-angle-axis-line"},d,{points:p}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,u=i.tick,l=i.tickLine,f=i.tickFormatter,d=i.stroke,v=Se(this.props,!1),p=Se(u,!1),m=ji(ji({},v),{},{fill:"none"},Se(l,!1)),b=o.map(function(O,x){var g=n.getTickLineCoord(O),P=n.getTickTextAnchor(O),A=ji(ji(ji({textAnchor:P},v),{},{stroke:"none",fill:d},p),{},{index:x,payload:O,x:g.x2,y:g.y2});return I.createElement(qe,Ri({className:Me("recharts-polar-angle-axis-tick",JN(u)),key:"tick-".concat(O.coordinate)},qi(n.props,O,x)),l&&I.createElement("line",Ri({className:"recharts-polar-angle-axis-tick-line"},m,g)),u&&t.renderTickItem(u,A,f?f(O.value,x):O.value))});return I.createElement(qe,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.radius,u=n.axisLine;return o<=0||!i||!i.length?null:I.createElement(qe,{className:Me("recharts-polar-angle-axis",this.props.className)},u&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var u;return I.isValidElement(n)?u=I.cloneElement(n,i):Ae(n)?u=n(i):u=I.createElement(zi,Ri({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),u}}])})(k.PureComponent);rd(nd,"displayName","PolarAngleAxis");rd(nd,"axisType","angleAxis");rd(nd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Vy,Sj;function NK(){if(Sj)return Vy;Sj=1;var e=_k(),t=e(Object.getPrototypeOf,Object);return Vy=t,Vy}var Gy,Oj;function RK(){if(Oj)return Gy;Oj=1;var e=Rn(),t=NK(),r=Mn(),n="[object Object]",i=Function.prototype,o=Object.prototype,u=i.toString,l=o.hasOwnProperty,f=u.call(Object);function d(v){if(!r(v)||e(v)!=n)return!1;var p=t(v);if(p===null)return!0;var m=l.call(p,"constructor")&&p.constructor;return typeof m=="function"&&m instanceof m&&u.call(m)==f}return Gy=d,Gy}var MK=RK();const $K=Ue(MK);var Xy,_j;function IK(){if(_j)return Xy;_j=1;var e=Rn(),t=Mn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Xy=n,Xy}var DK=IK();const LK=Ue(DK);function du(e){"@babel/helpers - typeof";return du=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},du(e)}function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:m,x:f,y:d},to:{upperWidth:v,lowerWidth:p,height:m,x:f,y:d},duration:x,animationEasing:O,isActive:P},function(T){var E=T.upperWidth,_=T.lowerWidth,j=T.height,N=T.x,R=T.y;return I.createElement(en,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:x,easing:O},I.createElement("path",Qc({},Se(r,!0),{className:A,d:jj(N,R,E,_,j),ref:n})))}):I.createElement("g",null,I.createElement("path",Qc({},Se(r,!0),{className:A,d:jj(f,d,v,p,m)})))},XK=["option","shapeType","propTransformer","activeClassName","isActive"];function pu(e){"@babel/helpers - typeof";return pu=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},pu(e)}function YK(e,t){if(e==null)return{};var r=QK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zc(e){for(var t=1;t0?lr(T,"paddingAngle",0):0;if(_){var N=sr(_.endAngle-_.startAngle,T.endAngle-T.startAngle),R=Ye(Ye({},T),{},{startAngle:A+j,endAngle:A+N(x)+j});g.push(R),A=R.endAngle}else{var M=T.endAngle,z=T.startAngle,F=sr(0,M-z),L=F(x),H=Ye(Ye({},T),{},{startAngle:A+j,endAngle:A+L+j});g.push(H),A=H.endAngle}}),I.createElement(qe,null,n.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var u=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,o=n.isAnimationActive,u=this.state.prevSectors;return o&&i&&i.length&&(!u||!Nu(u,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,o=i.hide,u=i.sectors,l=i.className,f=i.label,d=i.cx,v=i.cy,p=i.innerRadius,m=i.outerRadius,b=i.isAnimationActive,O=this.state.isAnimationFinished;if(o||!u||!u.length||!le(d)||!le(v)||!le(p)||!le(m))return null;var x=Me("recharts-pie",l);return I.createElement(qe,{tabIndex:this.props.rootTabIndex,className:x,ref:function(P){n.pieRef=P}},this.renderSectors(),f&&this.renderLabels(u),At.renderCallByParent(this.props,null,!1),(!b||O)&&En.renderCallByParent(this.props,u,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?A:A-1)*f,E=g-A*b-T,_=i.reduce(function(R,M){var z=xt(M,P,0);return R+(le(z)?z:0)},0),j;if(_>0){var N;j=i.map(function(R,M){var z=xt(R,P,0),F=xt(R,v,M),L=(le(z)?z:0)/_,H;M?H=N.endAngle+qt(x)*f*(z!==0?1:0):H=u;var G=H+qt(x)*((z!==0?b:0)+L*E),X=(H+G)/2,Q=(O.innerRadius+O.outerRadius)/2,J=[{name:F,value:z,payload:R,dataKey:P,type:m}],W=Ze(O.cx,O.cy,Q,X);return N=Ye(Ye(Ye({percent:L,cornerRadius:o,name:F,tooltipPayload:J,midAngle:X,middleRadius:Q,tooltipPosition:W},R),O),{},{value:xt(R,P),startAngle:H,endAngle:G,payload:R,paddingAngle:qt(x)*f}),N})}return Ye(Ye({},O),{},{sectors:j,data:i})});var Yy,Rj;function g9(){if(Rj)return Yy;Rj=1;var e=Math.ceil,t=Math.max;function r(n,i,o,u){for(var l=-1,f=t(e((i-n)/(o||1)),0),d=Array(f);f--;)d[u?f:++l]=n,n+=o;return d}return Yy=r,Yy}var Qy,Mj;function yR(){if(Mj)return Qy;Mj=1;var e=Fk(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*r}return i===i?i:0}return Qy=n,Qy}var Zy,$j;function b9(){if($j)return Zy;$j=1;var e=g9(),t=Ff(),r=yR();function n(i){return function(o,u,l){return l&&typeof l!="number"&&t(o,u,l)&&(u=l=void 0),o=r(o),u===void 0?(u=o,o=0):u=r(u),l=l===void 0?o0&&n.handleDrag(i.changedTouches[0])}),ir(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,u=i.onDragEnd,l=i.startIndex;u==null||u({endIndex:o,startIndex:l})}),n.detachDragEndListener()}),ir(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ir(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ir(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ir(n,"handleSlideDragStart",function(i){var o=qj(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return k9(t,e),A9(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,u=this.state.scaleValues,l=this.props,f=l.gap,d=l.data,v=d.length-1,p=Math.min(i,o),m=Math.max(i,o),b=t.getIndexInRange(u,p),O=t.getIndexInRange(u,m);return{startIndex:b-b%f,endIndex:O===v?v:O-O%f}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,u=i.tickFormatter,l=i.dataKey,f=xt(o[n],l,n);return Ae(u)?u(f,n):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,o=i.slideMoveStartX,u=i.startX,l=i.endX,f=this.props,d=f.x,v=f.width,p=f.travellerWidth,m=f.startIndex,b=f.endIndex,O=f.onChange,x=n.pageX-o;x>0?x=Math.min(x,d+v-p-l,d+v-p-u):x<0&&(x=Math.max(x,d-u,d-l));var g=this.getIndex({startX:u+x,endX:l+x});(g.startIndex!==m||g.endIndex!==b)&&O&&O(g),this.setState({startX:u+x,endX:l+x,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=qj(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,u=i.movingTravellerId,l=i.endX,f=i.startX,d=this.state[u],v=this.props,p=v.x,m=v.width,b=v.travellerWidth,O=v.onChange,x=v.gap,g=v.data,P={startX:this.state.startX,endX:this.state.endX},A=n.pageX-o;A>0?A=Math.min(A,p+m-b-d):A<0&&(A=Math.max(A,p-d)),P[u]=d+A;var T=this.getIndex(P),E=T.startIndex,_=T.endIndex,j=function(){var R=g.length-1;return u==="startX"&&(l>f?E%x===0:_%x===0)||lf?_%x===0:E%x===0)||l>f&&_===R};this.setState(ir(ir({},u,d+A),"brushMoveStartX",n.pageX),function(){O&&j()&&O(T)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,u=this.state,l=u.scaleValues,f=u.startX,d=u.endX,v=this.state[i],p=l.indexOf(v);if(p!==-1){var m=p+n;if(!(m===-1||m>=l.length)){var b=l[m];i==="startX"&&b>=d||i==="endX"&&b<=f||this.setState(ir({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,u=n.width,l=n.height,f=n.fill,d=n.stroke;return I.createElement("rect",{stroke:d,fill:f,x:i,y:o,width:u,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,u=n.width,l=n.height,f=n.data,d=n.children,v=n.padding,p=k.Children.only(d);return p?I.cloneElement(p,{x:i,y:o,width:u,height:l,margin:v,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,u,l=this,f=this.props,d=f.y,v=f.travellerWidth,p=f.height,m=f.traveller,b=f.ariaLabel,O=f.data,x=f.startIndex,g=f.endIndex,P=Math.max(n,this.props.x),A=eg(eg({},Se(this.props,!1)),{},{x:P,y:d,width:v,height:p}),T=b||"Min value: ".concat((o=O[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((u=O[g])===null||u===void 0?void 0:u.name);return I.createElement(qe,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),l.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,A))}},{key:"renderSlide",value:function(n,i){var o=this.props,u=o.y,l=o.height,f=o.stroke,d=o.travellerWidth,v=Math.min(n,i)+d,p=Math.max(Math.abs(i-n)-d,0);return I.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:v,y:u,width:p,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,u=n.y,l=n.height,f=n.travellerWidth,d=n.stroke,v=this.state,p=v.startX,m=v.endX,b=5,O={pointerEvents:"none",fill:d};return I.createElement(qe,{className:"recharts-brush-texts"},I.createElement(zi,tf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,m)-b,y:u+l/2},O),this.getTextOfTick(i)),I.createElement(zi,tf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,m)+f+b,y:u+l/2},O),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,u=n.children,l=n.x,f=n.y,d=n.width,v=n.height,p=n.alwaysShowText,m=this.state,b=m.startX,O=m.endX,x=m.isTextActive,g=m.isSlideMoving,P=m.isTravellerMoving,A=m.isTravellerFocused;if(!i||!i.length||!le(l)||!le(f)||!le(d)||!le(v)||d<=0||v<=0)return null;var T=Me("recharts-brush",o),E=I.Children.count(u)===1,_=P9("userSelect","none");return I.createElement(qe,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(b,O),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(O,"endX"),(x||g||P||A||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,u=n.width,l=n.height,f=n.stroke,d=Math.floor(o+l/2)-1;return I.createElement(I.Fragment,null,I.createElement("rect",{x:i,y:o,width:u,height:l,fill:f,stroke:"none"}),I.createElement("line",{x1:i+1,y1:d,x2:i+u-1,y2:d,fill:"none",stroke:"#fff"}),I.createElement("line",{x1:i+1,y1:d+2,x2:i+u-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return I.isValidElement(n)?o=I.cloneElement(n,i):Ae(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,u=n.width,l=n.x,f=n.travellerWidth,d=n.updateId,v=n.startIndex,p=n.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return eg({prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:l,prevWidth:u},o&&o.length?R9({data:o,width:u,x:l,travellerWidth:f,startIndex:v,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(u!==i.prevWidth||l!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([l,l+u-f]);var m=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:l,prevWidth:u,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,u=0,l=o-1;l-u>1;){var f=Math.floor((u+l)/2);n[f]>i?l=f:u=f}return i>=n[l]?l:u}}])})(k.PureComponent);ir(no,"displayName","Brush");ir(no,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var tg,zj;function M9(){if(zj)return tg;zj=1;var e=Ab();function t(r,n){var i;return e(r,function(o,u,l){return i=n(o,u,l),!i}),!!i}return tg=t,tg}var rg,Uj;function $9(){if(Uj)return rg;Uj=1;var e=yk(),t=an(),r=M9(),n=Zt(),i=Ff();function o(u,l,f){var d=n(u)?e:r;return f&&i(u,l,f)&&(l=void 0),d(u,t(l,3))}return rg=o,rg}var I9=$9();const D9=Ue(I9);var Zr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},ng,Wj;function L9(){if(Wj)return ng;Wj=1;var e=$k();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return ng=t,ng}var ig,Hj;function B9(){if(Hj)return ig;Hj=1;var e=L9(),t=Rk(),r=an();function n(i,o){var u={};return o=r(o,3),t(i,function(l,f,d){e(u,f,o(l,f,d))}),u}return ig=n,ig}var F9=B9();const q9=Ue(F9);var ag,Kj;function z9(){if(Kj)return ag;Kj=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Q9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Z9(e,t){var r=e.x,n=e.y,i=Y9(e,K9),o="".concat(r),u=parseInt(o,10),l="".concat(n),f=parseInt(l,10),d="".concat(t.height||i.height),v=parseInt(d,10),p="".concat(t.width||i.width),m=parseInt(p,10);return Os(Os(Os(Os(Os({},t),i),u?{x:u}:{}),f?{y:f}:{}),{},{height:v,width:m,name:t.name,radius:t.radius})}function Yj(e){return I.createElement(hR,T0({shapeType:"rectangle",propTransformer:Z9,activeClassName:"recharts-active-bar"},e))}var J9=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=le(n)||OB(n);return o?t(n,i):(o||Wi(),r)}},eV=["value","background"],SR;function io(e){"@babel/helpers - typeof";return io=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},io(e)}function tV(e,t){if(e==null)return{};var r=rV(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(X)0&&Math.abs(G)0&&(H=Math.min((ce||0)-(G[me-1]||0),H))}),Number.isFinite(H)){var X=H/L,Q=x.layout==="vertical"?n.height:n.width;if(x.padding==="gap"&&(N=X*Q/2),x.padding==="no-gap"){var J=zt(t.barCategoryGap,X*Q),W=X*Q/2;N=W-J-(W-J)/Q*J}}}i==="xAxis"?R=[n.left+(T.left||0)+(N||0),n.left+n.width-(T.right||0)-(N||0)]:i==="yAxis"?R=f==="horizontal"?[n.top+n.height-(T.bottom||0),n.top+(T.top||0)]:[n.top+(T.top||0)+(N||0),n.top+n.height-(T.bottom||0)-(N||0)]:R=x.range,_&&(R=[R[1],R[0]]);var ee=KN(x,o,m),Z=ee.scale,D=ee.realScaleType;Z.domain(P).range(R),VN(Z);var U=GN(Z,$r($r({},x),{},{realScaleType:D}));i==="xAxis"?(F=g==="top"&&!E||g==="bottom"&&E,M=n.left,z=p[j]-F*x.height):i==="yAxis"&&(F=g==="left"&&!E||g==="right"&&E,M=p[j]-F*x.width,z=n.top);var oe=$r($r($r({},x),U),{},{realScaleType:D,x:M,y:z,scale:Z,width:i==="xAxis"?n.width:x.width,height:i==="yAxis"?n.height:x.height});return oe.bandSize=Fc(oe,U),!x.hide&&i==="xAxis"?p[j]+=(F?-1:1)*oe.height:x.hide||(p[j]+=(F?-1:1)*oe.width),$r($r({},b),{},od({},O,oe))},{})},AR=function(t,r){var n=t.x,i=t.y,o=r.x,u=r.y;return{x:Math.min(n,o),y:Math.min(i,u),width:Math.abs(o-n),height:Math.abs(u-i)}},pV=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return AR({x:r,y:n},{x:i,y:o})},jR=(function(){function e(t){cV(this,e),this.scale=t}return fV(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+f}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();od(jR,"EPS",1e-4);var rx=function(t){var r=Object.keys(t).reduce(function(n,i){return $r($r({},n),{},od({},i,jR.create(t[i])))},{});return $r($r({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.bandAware,l=o.position;return q9(i,function(f,d){return r[d].apply(f,{bandAware:u,position:l})})},isInRange:function(i){return wR(i,function(o,u){return r[u].isInRange(o)})}})};function hV(e){return(e%180+180)%180}var vV=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=hV(i),u=o*Math.PI/180,l=Math.atan(n/r),f=u>l&&u-1?f[d?o[v]:v]:void 0}}return ug=n,ug}var lg,rT;function yV(){if(rT)return lg;rT=1;var e=yR();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return lg=t,lg}var cg,nT;function gV(){if(nT)return cg;nT=1;var e=jk(),t=an(),r=yV(),n=Math.max;function i(o,u,l){var f=o==null?0:o.length;if(!f)return-1;var d=l==null?0:r(l);return d<0&&(d=n(f+d,0)),e(o,t(u,3),d)}return cg=i,cg}var fg,iT;function bV(){if(iT)return fg;iT=1;var e=mV(),t=gV(),r=e(t);return fg=r,fg}var xV=bV();const wV=Ue(xV);var SV=WC();const OV=Ue(SV);var _V=OV(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),nx=k.createContext(void 0),ix=k.createContext(void 0),TR=k.createContext(void 0),CR=k.createContext({}),kR=k.createContext(void 0),NR=k.createContext(0),RR=k.createContext(0),aT=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,u=t.clipPathId,l=t.children,f=t.width,d=t.height,v=_V(o);return I.createElement(nx.Provider,{value:n},I.createElement(ix.Provider,{value:i},I.createElement(CR.Provider,{value:o},I.createElement(TR.Provider,{value:v},I.createElement(kR.Provider,{value:u},I.createElement(NR.Provider,{value:d},I.createElement(RR.Provider,{value:f},l)))))))},PV=function(){return k.useContext(kR)},MR=function(t){var r=k.useContext(nx);r==null&&Wi();var n=r[t];return n==null&&Wi(),n},EV=function(){var t=k.useContext(nx);return ni(t)},AV=function(){var t=k.useContext(ix),r=wV(t,function(n){return wR(n.domain,Number.isFinite)});return r||ni(t)},$R=function(t){var r=k.useContext(ix);r==null&&Wi();var n=r[t];return n==null&&Wi(),n},jV=function(){var t=k.useContext(TR);return t},TV=function(){return k.useContext(CR)},ax=function(){return k.useContext(RR)},ox=function(){return k.useContext(NR)};function ao(e){"@babel/helpers - typeof";return ao=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},ao(e)}function CV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kV(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function d7(e,t){return zR(e,t+1)}function p7(e,t,r,n,i){for(var o=(n||[]).slice(),u=t.start,l=t.end,f=0,d=1,v=u,p=function(){var O=n==null?void 0:n[f];if(O===void 0)return{v:zR(n,d)};var x=f,g,P=function(){return g===void 0&&(g=r(O,x)),g},A=O.coordinate,T=f===0||lf(e,A,P,v,l);T||(f=0,v=u,d+=1),T&&(v=A+e*(P()/2+i),f+=d)},m;d<=o.length;)if(m=p(),m)return m.v;return[]}function gu(e){"@babel/helpers - typeof";return gu=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},gu(e)}function pT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function It(e){for(var t=1;t0?b.coordinate-g*e:b.coordinate})}else o[m]=b=It(It({},b),{},{tickCoord:b.coordinate});var P=lf(e,b.tickCoord,x,l,f);P&&(f=b.tickCoord-e*(x()/2+i),o[m]=It(It({},b),{},{isShow:!0}))},v=u-1;v>=0;v--)d(v);return o}function g7(e,t,r,n,i,o){var u=(n||[]).slice(),l=u.length,f=t.start,d=t.end;if(o){var v=n[l-1],p=r(v,l-1),m=e*(v.coordinate+e*p/2-d);u[l-1]=v=It(It({},v),{},{tickCoord:m>0?v.coordinate-m*e:v.coordinate});var b=lf(e,v.tickCoord,function(){return p},f,d);b&&(d=v.tickCoord-e*(p/2+i),u[l-1]=It(It({},v),{},{isShow:!0}))}for(var O=o?l-1:l,x=function(A){var T=u[A],E,_=function(){return E===void 0&&(E=r(T,A)),E};if(A===0){var j=e*(T.coordinate-e*_()/2-f);u[A]=T=It(It({},T),{},{tickCoord:j<0?T.coordinate-j*e:T.coordinate})}else u[A]=T=It(It({},T),{},{tickCoord:T.coordinate});var N=lf(e,T.tickCoord,_,f,d);N&&(f=T.tickCoord+e*(_()/2+i),u[A]=It(It({},T),{},{isShow:!0}))},g=0;g=2?qt(i[1].coordinate-i[0].coordinate):1,P=f7(o,g,b);return f==="equidistantPreserveStart"?p7(g,P,x,i,u):(f==="preserveStart"||f==="preserveStartEnd"?m=g7(g,P,x,i,u,f==="preserveStartEnd"):m=y7(g,P,x,i,u),m.filter(function(A){return A.isShow}))}var b7=["viewBox"],x7=["viewBox"],w7=["ticks"];function uo(e){"@babel/helpers - typeof";return uo=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},uo(e)}function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function O7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vT(e,t){for(var r=0;r0?f(this.props):f(b)),u<=0||l<=0||!O||!O.length?null:I.createElement(qe,{className:Me("recharts-cartesian-axis",d),ref:function(g){n.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(O,this.state.fontSize,this.state.letterSpacing),At.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var u,l=Me(i.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(n)?u=I.cloneElement(n,gt(gt({},i),{},{className:l})):Ae(n)?u=n(gt(gt({},i),{},{className:l})):u=I.createElement(zi,Ia({},i,{className:"recharts-cartesian-axis-tick-value"}),o),u}}])})(k.Component);cx(Po,"displayName","CartesianAxis");cx(Po,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var C7=["x1","y1","x2","y2","key"],k7=["offset"];function Hi(e){"@babel/helpers - typeof";return Hi=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},Hi(e)}function mT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var I7=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,u=t.width,l=t.height,f=t.ry;return I.createElement("rect",{x:i,y:o,ry:f,width:u,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function HR(e,t){var r;if(I.isValidElement(e))r=I.cloneElement(e,t);else if(Ae(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,u=t.y2,l=t.key,f=yT(t,C7),d=Se(f,!1);d.offset;var v=yT(d,k7);r=I.createElement("line",Di({},v,{x1:n,y1:i,x2:o,y2:u,fill:"none",key:l}))}return r}function D7(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var u=o.map(function(l,f){var d=Lt(Lt({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(f),index:f});return HR(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function L7(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var u=o.map(function(l,f){var d=Lt(Lt({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(f),index:f});return HR(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function B7(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,u=e.height,l=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var v=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,b){return m-b});i!==v[0]&&v.unshift(0);var p=v.map(function(m,b){var O=!v[b+1],x=O?i+u-m:v[b+1]-m;if(x<=0)return null;var g=b%t.length;return I.createElement("rect",{key:"react-".concat(b),y:m,x:n,height:x,width:o,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function F7(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,u=e.y,l=e.width,f=e.height,d=e.verticalPoints;if(!r||!n||!n.length)return null;var v=d.map(function(m){return Math.round(m+o-o)}).sort(function(m,b){return m-b});o!==v[0]&&v.unshift(0);var p=v.map(function(m,b){var O=!v[b+1],x=O?o+l-m:v[b+1]-m;if(x<=0)return null;var g=b%n.length;return I.createElement("rect",{key:"react-".concat(b),x:m,y:u,width:x,height:f,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var q7=function(t,r){var n=t.xAxis,i=t.width,o=t.height,u=t.offset;return HN(lx(Lt(Lt(Lt({},Po.defaultProps),n),{},{ticks:wn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),u.left,u.left+u.width,r)},z7=function(t,r){var n=t.yAxis,i=t.width,o=t.height,u=t.offset;return HN(lx(Lt(Lt(Lt({},Po.defaultProps),n),{},{ticks:wn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),u.top,u.top+u.height,r)},Ta={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function fx(e){var t,r,n,i,o,u,l=ax(),f=ox(),d=TV(),v=Lt(Lt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ta.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ta.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ta.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ta.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ta.vertical,verticalFill:(u=e.verticalFill)!==null&&u!==void 0?u:Ta.verticalFill,x:le(e.x)?e.x:d.left,y:le(e.y)?e.y:d.top,width:le(e.width)?e.width:d.width,height:le(e.height)?e.height:d.height}),p=v.x,m=v.y,b=v.width,O=v.height,x=v.syncWithTicks,g=v.horizontalValues,P=v.verticalValues,A=EV(),T=AV();if(!le(b)||b<=0||!le(O)||O<=0||!le(p)||p!==+p||!le(m)||m!==+m)return null;var E=v.verticalCoordinatesGenerator||q7,_=v.horizontalCoordinatesGenerator||z7,j=v.horizontalPoints,N=v.verticalPoints;if((!j||!j.length)&&Ae(_)){var R=g&&g.length,M=_({yAxis:T?Lt(Lt({},T),{},{ticks:R?g:T.ticks}):void 0,width:l,height:f,offset:d},R?!0:x);qr(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Hi(M),"]")),Array.isArray(M)&&(j=M)}if((!N||!N.length)&&Ae(E)){var z=P&&P.length,F=E({xAxis:A?Lt(Lt({},A),{},{ticks:z?P:A.ticks}):void 0,width:l,height:f,offset:d},z?!0:x);qr(Array.isArray(F),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Hi(F),"]")),Array.isArray(F)&&(N=F)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(I7,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height,ry:v.ry}),I.createElement(D7,Di({},v,{offset:d,horizontalPoints:j,xAxis:A,yAxis:T})),I.createElement(L7,Di({},v,{offset:d,verticalPoints:N,xAxis:A,yAxis:T})),I.createElement(B7,Di({},v,{horizontalPoints:j})),I.createElement(F7,Di({},v,{verticalPoints:N})))}fx.displayName="CartesianGrid";var U7=["type","layout","connectNulls","ref"],W7=["key"];function lo(e){"@babel/helpers - typeof";return lo=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},lo(e)}function gT(e,t){if(e==null)return{};var r=H7(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rp){b=[].concat(Ca(f.slice(0,O)),[p-x]);break}var g=b.length%2===0?[0,m]:[m];return[].concat(Ca(t.repeat(f,v)),Ca(b),g).map(function(P){return"".concat(P,"px")}).join(", ")}),Ir(r,"id",xo("recharts-line-")),Ir(r,"pathRef",function(u){r.mainCurve=u}),Ir(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ir(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return tG(t,e),Q7(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,u=o.points,l=o.xAxis,f=o.yAxis,d=o.layout,v=o.children,p=cr(v,Ru);if(!p)return null;var m=function(x,g){return{x:x.x,y:x.y,value:x.value,errorVal:xt(x.payload,g)}},b={clipPath:n?"url(#clipPath-".concat(i,")"):null};return I.createElement(qe,b,p.map(function(O){return I.cloneElement(O,{key:"bar-".concat(O.props.dataKey),data:u,xAxis:l,yAxis:f,layout:d,dataPointFormatter:m})}))}},{key:"renderDots",value:function(n,i,o){var u=this.props.isAnimationActive;if(u&&!this.state.isAnimationFinished)return null;var l=this.props,f=l.dot,d=l.points,v=l.dataKey,p=Se(this.props,!1),m=Se(f,!0),b=d.map(function(x,g){var P=nr(nr(nr({key:"dot-".concat(g),r:3},p),m),{},{index:g,cx:x.x,cy:x.y,value:x.value,dataKey:v,payload:x.payload,points:d});return t.renderDotItem(f,P)}),O={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return I.createElement(qe,Ms({className:"recharts-line-dots",key:"dots"},O),b)}},{key:"renderCurveStatically",value:function(n,i,o,u){var l=this.props,f=l.type,d=l.layout,v=l.connectNulls;l.ref;var p=gT(l,U7),m=nr(nr(nr({},Se(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},u),{},{type:f,layout:d,connectNulls:v});return I.createElement(Uc,Ms({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,u=this.props,l=u.points,f=u.strokeDasharray,d=u.isAnimationActive,v=u.animationBegin,p=u.animationDuration,m=u.animationEasing,b=u.animationId,O=u.animateNewValues,x=u.width,g=u.height,P=this.state,A=P.prevPoints,T=P.totalLength;return I.createElement(en,{begin:v,duration:p,isActive:d,easing:m,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(E){var _=E.t;if(A){var j=A.length/l.length,N=l.map(function(L,H){var G=Math.floor(H*j);if(A[G]){var X=A[G],Q=sr(X.x,L.x),J=sr(X.y,L.y);return nr(nr({},L),{},{x:Q(_),y:J(_)})}if(O){var W=sr(x*2,L.x),ee=sr(g/2,L.y);return nr(nr({},L),{},{x:W(_),y:ee(_)})}return nr(nr({},L),{},{x:L.x,y:L.y})});return o.renderCurveStatically(N,n,i)}var R=sr(0,T),M=R(_),z;if(f){var F="".concat(f).split(/[,\s]+/gim).map(function(L){return parseFloat(L)});z=o.getStrokeDasharray(M,T,F)}else z=o.generateSimpleStrokeDasharray(T,M);return o.renderCurveStatically(l,n,i,{strokeDasharray:z})})}},{key:"renderCurve",value:function(n,i){var o=this.props,u=o.points,l=o.isAnimationActive,f=this.state,d=f.prevPoints,v=f.totalLength;return l&&u&&u.length&&(!d&&v>0||!Nu(d,u))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(u,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,u=i.dot,l=i.points,f=i.className,d=i.xAxis,v=i.yAxis,p=i.top,m=i.left,b=i.width,O=i.height,x=i.isAnimationActive,g=i.id;if(o||!l||!l.length)return null;var P=this.state.isAnimationFinished,A=l.length===1,T=Me("recharts-line",f),E=d&&d.allowDataOverflow,_=v&&v.allowDataOverflow,j=E||_,N=ke(g)?this.id:g,R=(n=Se(u,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=R.r,z=M===void 0?3:M,F=R.strokeWidth,L=F===void 0?2:F,H=$B(u)?u:{},G=H.clipDot,X=G===void 0?!0:G,Q=z*2+L;return I.createElement(qe,{className:T},E||_?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(N)},I.createElement("rect",{x:E?m:m-b/2,y:_?p:p-O/2,width:E?b:b*2,height:_?O:O*2})),!X&&I.createElement("clipPath",{id:"clipPath-dots-".concat(N)},I.createElement("rect",{x:m-Q/2,y:p-Q/2,width:b+Q,height:O+Q}))):null,!A&&this.renderCurve(j,N),this.renderErrorBar(j,N),(A||u)&&this.renderDots(j,X,N),(!x||P)&&En.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(Ca(n),[0]):n,u=[],l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function KG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VG(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?u:t&&t.length&&le(i)&&le(o)?t.slice(i,o+1):[]};function oM(e){return e==="number"?[0,"auto"]:void 0}var G0=function(t,r,n,i){var o=t.graphicalItems,u=t.tooltipAxis,l=fd(r,t);return n<0||!o||!o.length||n>=l.length?null:o.reduce(function(f,d){var v,p=(v=d.props.data)!==null&&v!==void 0?v:r;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(u.dataKey&&!u.allowDuplicatedCategory){var b=p===void 0?l:p;m=hc(b,u.dataKey,i)}else m=p&&p[n]||l[n];return m?[].concat(vo(f),[YN(d,m)]):f},[])},AT=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},u=aX(o,n),l=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,v=N6(u,l,d,f);if(v>=0&&d){var p=d[v]&&d[v].value,m=G0(t,r,v,p),b=oX(n,l,v,o);return{activeTooltipIndex:v,activeLabel:p,activePayload:m,activeCoordinate:b}}return null},sX=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,u=r.axisIdKey,l=r.stackGroups,f=r.dataStartIndex,d=r.dataEndIndex,v=t.layout,p=t.children,m=t.stackOffset,b=WN(v,o);return n.reduce(function(O,x){var g,P=x.type.defaultProps!==void 0?te(te({},x.type.defaultProps),x.props):x.props,A=P.type,T=P.dataKey,E=P.allowDataOverflow,_=P.allowDuplicatedCategory,j=P.scale,N=P.ticks,R=P.includeHidden,M=P[u];if(O[M])return O;var z=fd(t.data,{graphicalItems:i.filter(function(U){var oe,ce=u in U.props?U.props[u]:(oe=U.type.defaultProps)===null||oe===void 0?void 0:oe[u];return ce===M}),dataStartIndex:f,dataEndIndex:d}),F=z.length,L,H,G;RG(P.domain,E,A)&&(L=u0(P.domain,null,E),b&&(A==="number"||j!=="auto")&&(G=Cs(z,T,"category")));var X=oM(A);if(!L||L.length===0){var Q,J=(Q=P.domain)!==null&&Q!==void 0?Q:X;if(T){if(L=Cs(z,T,A),A==="category"&&b){var W=PB(L);_&&W?(H=L,L=ef(0,F)):_||(L=NA(J,L,x).reduce(function(U,oe){return U.indexOf(oe)>=0?U:[].concat(vo(U),[oe])},[]))}else if(A==="category")_?L=L.filter(function(U){return U!==""&&!ke(U)}):L=NA(J,L,x).reduce(function(U,oe){return U.indexOf(oe)>=0||oe===""||ke(oe)?U:[].concat(vo(U),[oe])},[]);else if(A==="number"){var ee=D6(z,i.filter(function(U){var oe,ce,me=u in U.props?U.props[u]:(oe=U.type.defaultProps)===null||oe===void 0?void 0:oe[u],Pe="hide"in U.props?U.props.hide:(ce=U.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return me===M&&(R||!Pe)}),T,o,v);ee&&(L=ee)}b&&(A==="number"||j!=="auto")&&(G=Cs(z,T,"category"))}else b?L=ef(0,F):l&&l[M]&&l[M].hasStack&&A==="number"?L=m==="expand"?[0,1]:XN(l[M].stackGroups,f,d):L=UN(z,i.filter(function(U){var oe=u in U.props?U.props[u]:U.type.defaultProps[u],ce="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return oe===M&&(R||!ce)}),A,v,!0);if(A==="number")L=H0(p,L,M,o,N),J&&(L=u0(J,L,E));else if(A==="category"&&J){var Z=J,D=L.every(function(U){return Z.indexOf(U)>=0});D&&(L=Z)}}return te(te({},O),{},_e({},M,te(te({},P),{},{axisType:o,domain:L,categoricalDomain:G,duplicateDomain:H,originalDomain:(g=P.domain)!==null&&g!==void 0?g:X,isCategorical:b,layout:v})))},{})},uX=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,u=r.axisIdKey,l=r.stackGroups,f=r.dataStartIndex,d=r.dataEndIndex,v=t.layout,p=t.children,m=fd(t.data,{graphicalItems:n,dataStartIndex:f,dataEndIndex:d}),b=m.length,O=WN(v,o),x=-1;return n.reduce(function(g,P){var A=P.type.defaultProps!==void 0?te(te({},P.type.defaultProps),P.props):P.props,T=A[u],E=oM("number");if(!g[T]){x++;var _;return O?_=ef(0,b):l&&l[T]&&l[T].hasStack?(_=XN(l[T].stackGroups,f,d),_=H0(p,_,T,o)):(_=u0(E,UN(m,n.filter(function(j){var N,R,M=u in j.props?j.props[u]:(N=j.type.defaultProps)===null||N===void 0?void 0:N[u],z="hide"in j.props?j.props.hide:(R=j.type.defaultProps)===null||R===void 0?void 0:R.hide;return M===T&&!z}),"number",v),i.defaultProps.allowDataOverflow),_=H0(p,_,T,o)),te(te({},g),{},_e({},T,te(te({axisType:o},i.defaultProps),{},{hide:!0,orientation:lr(nX,"".concat(o,".").concat(x%2),null),domain:_,originalDomain:E,isCategorical:O,layout:v})))}return g},{})},lX=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,u=r.graphicalItems,l=r.stackGroups,f=r.dataStartIndex,d=r.dataEndIndex,v=t.children,p="".concat(i,"Id"),m=cr(v,o),b={};return m&&m.length?b=sX(t,{axes:m,graphicalItems:u,axisType:i,axisIdKey:p,stackGroups:l,dataStartIndex:f,dataEndIndex:d}):u&&u.length&&(b=uX(t,{Axis:o,graphicalItems:u,axisType:i,axisIdKey:p,stackGroups:l,dataStartIndex:f,dataEndIndex:d})),b},cX=function(t){var r=ni(t),n=wn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:jb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Fc(r,n)}},jT=function(t){var r=t.children,n=t.defaultShowTooltip,i=ar(r,no),o=0,u=0;return t.data&&t.data.length!==0&&(u=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(u=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:!!n}},fX=function(t){return!t||!t.length?!1:t.some(function(r){var n=On(r&&r.type);return n&&n.indexOf("Bar")>=0})},TT=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},dX=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,u=o===void 0?{}:o,l=t.yAxisMap,f=l===void 0?{}:l,d=n.width,v=n.height,p=n.children,m=n.margin||{},b=ar(p,no),O=ar(p,_n),x=Object.keys(f).reduce(function(_,j){var N=f[j],R=N.orientation;return!N.mirror&&!N.hide?te(te({},_),{},_e({},R,_[R]+N.width)):_},{left:m.left||0,right:m.right||0}),g=Object.keys(u).reduce(function(_,j){var N=u[j],R=N.orientation;return!N.mirror&&!N.hide?te(te({},_),{},_e({},R,lr(_,"".concat(R))+N.height)):_},{top:m.top||0,bottom:m.bottom||0}),P=te(te({},g),x),A=P.bottom;b&&(P.bottom+=b.props.height||no.defaultProps.height),O&&r&&(P=$6(P,i,n,r));var T=d-P.left-P.right,E=v-P.top-P.bottom;return te(te({brushBottom:A},P),{},{width:Math.max(T,0),height:Math.max(E,0)})},pX=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},dx=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,u=t.validateTooltipEventTypes,l=u===void 0?["axis"]:u,f=t.axisComponents,d=t.legendContent,v=t.formatAxisMap,p=t.defaultProps,m=function(P,A){var T=A.graphicalItems,E=A.stackGroups,_=A.offset,j=A.updateId,N=A.dataStartIndex,R=A.dataEndIndex,M=P.barSize,z=P.layout,F=P.barGap,L=P.barCategoryGap,H=P.maxBarSize,G=TT(z),X=G.numericAxisName,Q=G.cateAxisName,J=fX(T),W=[];return T.forEach(function(ee,Z){var D=fd(P.data,{graphicalItems:[ee],dataStartIndex:N,dataEndIndex:R}),U=ee.type.defaultProps!==void 0?te(te({},ee.type.defaultProps),ee.props):ee.props,oe=U.dataKey,ce=U.maxBarSize,me=U["".concat(X,"Id")],Pe=U["".concat(Q,"Id")],De={},je=f.reduce(function(Wt,Pr){var ea=A["".concat(Pr.axisType,"Map")],Ao=U["".concat(Pr.axisType,"Id")];ea&&ea[Ao]||Pr.axisType==="zAxis"||Wi();var jo=ea[Ao];return te(te({},Wt),{},_e(_e({},Pr.axisType,jo),"".concat(Pr.axisType,"Ticks"),wn(jo)))},De),ae=je[Q],ge=je["".concat(Q,"Ticks")],Te=E&&E[me]&&E[me].hasStack&&K6(ee,E[me].stackGroups),ne=On(ee.type).indexOf("Bar")>=0,We=Fc(ae,ge),Ne=[],Ce=J&&R6({barSize:M,stackGroups:E,totalSize:pX(je,Q)});if(ne){var Je,st,_r=ke(ce)?H:ce,Ur=(Je=(st=Fc(ae,ge,!0))!==null&&st!==void 0?st:_r)!==null&&Je!==void 0?Je:0;Ne=M6({barGap:F,barCategoryGap:L,bandSize:Ur!==We?Ur:We,sizeList:Ce[Pe],maxBarSize:_r}),Ur!==We&&(Ne=Ne.map(function(Wt){return te(te({},Wt),{},{position:te(te({},Wt.position),{},{offset:Wt.position.offset-Ur/2})})}))}var Wr=ee&&ee.type&&ee.type.getComposedData;Wr&&W.push({props:te(te({},Wr(te(te({},je),{},{displayedData:D,props:P,dataKey:oe,item:ee,bandSize:We,barPosition:Ne,offset:_,stackedData:Te,layout:z,dataStartIndex:N,dataEndIndex:R}))),{},_e(_e(_e({key:ee.key||"item-".concat(Z)},X,je[X]),Q,je[Q]),"animationId",j)),childIndex:LB(ee,P.children),item:ee})}),W},b=function(P,A){var T=P.props,E=P.dataStartIndex,_=P.dataEndIndex,j=P.updateId;if(!KO({props:T}))return null;var N=T.children,R=T.layout,M=T.stackOffset,z=T.data,F=T.reverseStackOrder,L=TT(R),H=L.numericAxisName,G=L.cateAxisName,X=cr(N,n),Q=W6(z,X,"".concat(H,"Id"),"".concat(G,"Id"),M,F),J=f.reduce(function(U,oe){var ce="".concat(oe.axisType,"Map");return te(te({},U),{},_e({},ce,lX(T,te(te({},oe),{},{graphicalItems:X,stackGroups:oe.axisType===H&&Q,dataStartIndex:E,dataEndIndex:_}))))},{}),W=dX(te(te({},J),{},{props:T,graphicalItems:X}),A==null?void 0:A.legendBBox);Object.keys(J).forEach(function(U){J[U]=v(T,J[U],W,U.replace("Map",""),r)});var ee=J["".concat(G,"Map")],Z=cX(ee),D=m(T,te(te({},J),{},{dataStartIndex:E,dataEndIndex:_,updateId:j,graphicalItems:X,stackGroups:Q,offset:W}));return te(te({formattedGraphicalItems:D,graphicalItems:X,offset:W,stackGroups:Q},Z),J)},O=(function(g){function P(A){var T,E,_;return KG(this,P),_=XG(this,P,[A]),_e(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_e(_,"accessibilityManager",new NG),_e(_,"handleLegendBBoxUpdate",function(j){if(j){var N=_.state,R=N.dataStartIndex,M=N.dataEndIndex,z=N.updateId;_.setState(te({legendBBox:j},b({props:_.props,dataStartIndex:R,dataEndIndex:M,updateId:z},te(te({},_.state),{},{legendBBox:j}))))}}),_e(_,"handleReceiveSyncEvent",function(j,N,R){if(_.props.syncId===j){if(R===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(N)}}),_e(_,"handleBrushChange",function(j){var N=j.startIndex,R=j.endIndex;if(N!==_.state.dataStartIndex||R!==_.state.dataEndIndex){var M=_.state.updateId;_.setState(function(){return te({dataStartIndex:N,dataEndIndex:R},b({props:_.props,dataStartIndex:N,dataEndIndex:R,updateId:M},_.state))}),_.triggerSyncEvent({dataStartIndex:N,dataEndIndex:R})}}),_e(_,"handleMouseEnter",function(j){var N=_.getMouseInfo(j);if(N){var R=te(te({},N),{},{isTooltipActive:!0});_.setState(R),_.triggerSyncEvent(R);var M=_.props.onMouseEnter;Ae(M)&&M(R,j)}}),_e(_,"triggeredAfterMouseMove",function(j){var N=_.getMouseInfo(j),R=N?te(te({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(R),_.triggerSyncEvent(R);var M=_.props.onMouseMove;Ae(M)&&M(R,j)}),_e(_,"handleItemMouseEnter",function(j){_.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),_e(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),_e(_,"handleMouseMove",function(j){j.persist(),_.throttleTriggeredAfterMouseMove(j)}),_e(_,"handleMouseLeave",function(j){_.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};_.setState(N),_.triggerSyncEvent(N);var R=_.props.onMouseLeave;Ae(R)&&R(N,j)}),_e(_,"handleOuterEvent",function(j){var N=DB(j),R=lr(_.props,"".concat(N));if(N&&Ae(R)){var M,z;/.*touch.*/i.test(N)?z=_.getMouseInfo(j.changedTouches[0]):z=_.getMouseInfo(j),R((M=z)!==null&&M!==void 0?M:{},j)}}),_e(_,"handleClick",function(j){var N=_.getMouseInfo(j);if(N){var R=te(te({},N),{},{isTooltipActive:!0});_.setState(R),_.triggerSyncEvent(R);var M=_.props.onClick;Ae(M)&&M(R,j)}}),_e(_,"handleMouseDown",function(j){var N=_.props.onMouseDown;if(Ae(N)){var R=_.getMouseInfo(j);N(R,j)}}),_e(_,"handleMouseUp",function(j){var N=_.props.onMouseUp;if(Ae(N)){var R=_.getMouseInfo(j);N(R,j)}}),_e(_,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),_e(_,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&_.handleMouseDown(j.changedTouches[0])}),_e(_,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&_.handleMouseUp(j.changedTouches[0])}),_e(_,"handleDoubleClick",function(j){var N=_.props.onDoubleClick;if(Ae(N)){var R=_.getMouseInfo(j);N(R,j)}}),_e(_,"handleContextMenu",function(j){var N=_.props.onContextMenu;if(Ae(N)){var R=_.getMouseInfo(j);N(R,j)}}),_e(_,"triggerSyncEvent",function(j){_.props.syncId!==void 0&&hg.emit(vg,_.props.syncId,j,_.eventEmitterSymbol)}),_e(_,"applySyncEvent",function(j){var N=_.props,R=N.layout,M=N.syncMethod,z=_.state.updateId,F=j.dataStartIndex,L=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)_.setState(te({dataStartIndex:F,dataEndIndex:L},b({props:_.props,dataStartIndex:F,dataEndIndex:L,updateId:z},_.state)));else if(j.activeTooltipIndex!==void 0){var H=j.chartX,G=j.chartY,X=j.activeTooltipIndex,Q=_.state,J=Q.offset,W=Q.tooltipTicks;if(!J)return;if(typeof M=="function")X=M(W,j);else if(M==="value"){X=-1;for(var ee=0;ee=0){var Te,ne;if(H.dataKey&&!H.allowDuplicatedCategory){var We=typeof H.dataKey=="function"?ge:"payload.".concat(H.dataKey.toString());Te=hc(ee,We,X),ne=Z&&D&&hc(D,We,X)}else Te=ee==null?void 0:ee[G],ne=Z&&D&&D[G];if(Pe||me){var Ne=j.props.activeIndex!==void 0?j.props.activeIndex:G;return[k.cloneElement(j,te(te(te({},M.props),je),{},{activeIndex:Ne})),null,null]}if(!ke(Te))return[ae].concat(vo(_.renderActivePoints({item:M,activePoint:Te,basePoint:ne,childIndex:G,isRange:Z})))}else{var Ce,Je=(Ce=_.getItemByXY(_.state.activeCoordinate))!==null&&Ce!==void 0?Ce:{graphicalItem:ae},st=Je.graphicalItem,_r=st.item,Ur=_r===void 0?j:_r,Wr=st.childIndex,Wt=te(te(te({},M.props),je),{},{activeIndex:Wr});return[k.cloneElement(Ur,Wt),null,null]}return Z?[ae,null,null]:[ae,null]}),_e(_,"renderCustomized",function(j,N,R){return k.cloneElement(j,te(te({key:"recharts-customized-".concat(R)},_.props),_.state))}),_e(_,"renderMap",{CartesianGrid:{handler:sc,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:sc},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:sc},YAxis:{handler:sc},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((T=A.id)!==null&&T!==void 0?T:xo("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=qk(_.triggeredAfterMouseMove,(E=A.throttleDelay)!==null&&E!==void 0?E:1e3/60),_.state={},_}return ZG(P,g),GG(P,[{key:"componentDidMount",value:function(){var T,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,E=T.children,_=T.data,j=T.height,N=T.layout,R=ar(E,or);if(R){var M=R.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,F=G0(this.state,_,M,z),L=this.state.tooltipTicks[M].coordinate,H=(this.state.offset.top+j)/2,G=N==="horizontal",X=G?{x:L,y:H}:{y:L,x:H},Q=this.state.formattedGraphicalItems.find(function(W){var ee=W.item;return ee.type.name==="Scatter"});Q&&(X=te(te({},X),Q.props.points[M].tooltipPosition),F=Q.props.points[M].tooltipPayload);var J={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:z,activePayload:F,activeCoordinate:X};this.setState(J),this.renderCursor(R),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var _,j;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(T){Cg([ar(T.children,or)],[ar(this.props.children,or)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=ar(this.props.children,or);if(T&&typeof T.props.shared=="boolean"){var E=T.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var E=this.container,_=E.getBoundingClientRect(),j=_z(_),N={chartX:Math.round(T.pageX-j.left),chartY:Math.round(T.pageY-j.top)},R=_.width/E.offsetWidth||1,M=this.inRange(N.chartX,N.chartY,R);if(!M)return null;var z=this.state,F=z.xAxisMap,L=z.yAxisMap,H=this.getTooltipEventType(),G=AT(this.state,this.props.data,this.props.layout,M);if(H!=="axis"&&F&&L){var X=ni(F).scale,Q=ni(L).scale,J=X&&X.invert?X.invert(N.chartX):null,W=Q&&Q.invert?Q.invert(N.chartY):null;return te(te({},N),{},{xValue:J,yValue:W},G)}return G?te(te({},N),G):null}},{key:"inRange",value:function(T,E){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,N=T/_,R=E/_;if(j==="horizontal"||j==="vertical"){var M=this.state.offset,z=N>=M.left&&N<=M.left+M.width&&R>=M.top&&R<=M.top+M.height;return z?{x:N,y:R}:null}var F=this.state,L=F.angleAxisMap,H=F.radiusAxisMap;if(L&&H){var G=ni(L);return $A({x:N,y:R},G)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,E=this.getTooltipEventType(),_=ar(T,or),j={};_&&E==="axis"&&(_.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=vc(this.props,this.handleOuterEvent);return te(te({},N),j)}},{key:"addListener",value:function(){hg.on(vg,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){hg.removeListener(vg,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,E,_){for(var j=this.state.formattedGraphicalItems,N=0,R=j.length;N{t[n.sessionTypeAsInt]=(t[n.sessionTypeAsInt]||0)+1});const r=Object.entries(t).map(([n,i])=>({name:$L[Number(n)]||`Type ${n}`,value:i,color:BC[Number(n)]||"#6c757d"}));return r.length===0?S.jsx("p",{className:"text-muted-custom text-center",children:"Aucune donnée"}):S.jsx(qf,{width:"100%",height:300,children:S.jsxs(sM,{children:[S.jsx(on,{data:r,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:100,label:!0,children:r.map((n,i)=>S.jsx(Au,{fill:n.color},i))}),S.jsx(or,{contentStyle:{backgroundColor:"#1a1a2e",border:"1px solid #333"}}),S.jsx(_n,{})]})})}function yX({sessions:e}){const t={};e.forEach(n=>{if(n.sessionDateAsString){const i=new Date(n.sessionDateAsString),o=`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}`;t[o]=(t[o]||0)+1}});const r=Object.entries(t).sort(([n],[i])=>n.localeCompare(i)).slice(-12).map(([n,i])=>({month:n,sessions:i}));return r.length===0?S.jsx("p",{className:"text-muted-custom text-center",children:"Aucune donnée"}):S.jsx(qf,{width:"100%",height:300,children:S.jsxs(vX,{data:r,children:[S.jsx(fx,{strokeDasharray:"3 3",stroke:"#333"}),S.jsx(Eo,{dataKey:"month",stroke:"#888"}),S.jsx(Ki,{stroke:"#888",allowDecimals:!1}),S.jsx(or,{contentStyle:{backgroundColor:"#1a1a2e",border:"1px solid #333"}}),S.jsx(Ji,{dataKey:"sessions",fill:"#4a90d9",name:"Sessions"})]})})}function gX(e){const t=Math.floor(e/60),r=Math.floor(e%60);return`${t}m ${r}s`}function bX(e,t){return e?new Date(e).toLocaleDateString(t==="fr"?"fr-FR":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function xX(){const{t:e,lang:t}=tn(),r=xf(),[n,i]=k.useState([]),[o,u]=k.useState([]),[l,f]=k.useState(!0);if(k.useEffect(()=>{Promise.all([DC(),LC()]).then(([x,g])=>{i(x),u(g)}).finally(()=>f(!1))},[]),l)return S.jsx(Ou,{});const d=n.length,v=o.length,p=d>0?Math.round(n.filter(x=>x.success).length/d*100):0,m=o.length>0?Math.round(o.reduce((x,g)=>x+g.avgPrecision,0)/o.length*100)/100:0,b=n.slice(0,10),O=[...o].sort((x,g)=>g.avgPrecision-x.avgPrecision).slice(0,5);return S.jsxs(S.Fragment,{children:[S.jsx("h2",{className:"mb-4",children:e("dashboard.title")}),S.jsxs(Fr,{className:"mb-4 g-3",children:[S.jsx(Be,{xs:6,md:3,children:S.jsx(Dt,{title:e("dashboard.totalSessions"),value:d,color:"#4a90d9"})}),S.jsx(Be,{xs:6,md:3,children:S.jsx(Dt,{title:e("dashboard.totalUsers"),value:v,color:"#9b59b6"})}),S.jsx(Be,{xs:6,md:3,children:S.jsx(Dt,{title:e("dashboard.successRate"),value:`${p}%`,color:"#27ae60"})}),S.jsx(Be,{xs:6,md:3,children:S.jsx(Dt,{title:e("dashboard.avgPrecision"),value:m.toFixed(1),color:"#f39c12"})})]}),S.jsxs(Fr,{className:"mb-4 g-3",children:[S.jsx(Be,{md:6,children:S.jsx(we,{className:"chart-card",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:e("dashboard.sessionsByType")}),S.jsx(mX,{sessions:n})]})})}),S.jsx(Be,{md:6,children:S.jsx(we,{className:"chart-card",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:e("dashboard.monthlyActivity")}),S.jsx(yX,{sessions:n})]})})})]}),S.jsxs(Fr,{className:"g-3",children:[S.jsx(Be,{md:8,children:S.jsx(we,{className:"data-card",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:e("dashboard.recentSessions")}),S.jsxs(Br,{hover:!0,responsive:!0,className:"data-table mb-0",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:e("table.date")}),S.jsx("th",{children:e("table.type")}),S.jsx("th",{children:e("table.scenario")}),S.jsx("th",{children:e("table.score")}),S.jsx("th",{children:e("table.duration")}),S.jsx("th",{children:e("table.result")})]})}),S.jsx("tbody",{children:b.map(x=>S.jsxs("tr",{className:"clickable-row",onClick:()=>r(`/sessions/${x.id}`),children:[S.jsx("td",{children:bX(x.sessionDateAsString,t)}),S.jsx("td",{children:S.jsx(Bs,{typeId:x.sessionTypeAsInt})}),S.jsx("td",{children:x.scenarioName||"-"}),S.jsx("td",{children:x.score}),S.jsx("td",{children:gX(x.timeToFinish)}),S.jsx("td",{children:S.jsx(jf,{success:x.success})})]},x.id))})]})]})})}),S.jsx(Be,{md:4,children:S.jsx(we,{className:"data-card",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:e("dashboard.topPrecision")}),S.jsxs(Br,{hover:!0,className:"data-table mb-0",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:"#"}),S.jsx("th",{children:e("table.user")}),S.jsx("th",{children:e("chart.precision")})]})}),S.jsx("tbody",{children:O.map((x,g)=>S.jsxs("tr",{className:"clickable-row",onClick:()=>r(`/users/${x.id}`),children:[S.jsx("td",{children:g+1}),S.jsx("td",{children:x.firstName&&x.lastName?`${x.firstName} ${x.lastName}`:x.username}),S.jsx("td",{children:x.avgPrecision.toFixed(1)})]},x.id))})]})]})})})]})]})}const wX={type:$e.string,tooltip:$e.bool,as:$e.elementType},dd=k.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:n=!1,...i},o)=>S.jsx(e,{...i,ref:o,className:Oe(t,`${r}-${n?"tooltip":"feedback"}`)}));dd.displayName="Feedback";dd.propTypes=wX;const Cn=k.createContext({}),px=k.forwardRef(({id:e,bsPrefix:t,className:r,type:n="checkbox",isValid:i=!1,isInvalid:o=!1,as:u="input",...l},f)=>{const{controlId:d}=k.useContext(Cn);return t=Re(t,"form-check-input"),S.jsx(u,{...l,ref:f,type:n,id:e||d,className:Oe(r,t,i&&"is-valid",o&&"is-invalid")})});px.displayName="FormCheckInput";const vf=k.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...n},i)=>{const{controlId:o}=k.useContext(Cn);return e=Re(e,"form-check-label"),S.jsx("label",{...n,ref:i,htmlFor:r||o,className:Oe(t,e)})});vf.displayName="FormCheckLabel";function SX(e,t){let r=0;return k.Children.map(e,n=>k.isValidElement(n)?t(n,r++):n)}function OX(e,t){return k.Children.toArray(e).some(r=>k.isValidElement(r)&&r.type===t)}const uM=k.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:n=!1,reverse:i=!1,disabled:o=!1,isValid:u=!1,isInvalid:l=!1,feedbackTooltip:f=!1,feedback:d,feedbackType:v,className:p,style:m,title:b="",type:O="checkbox",label:x,children:g,as:P="input",...A},T)=>{t=Re(t,"form-check"),r=Re(r,"form-switch");const{controlId:E}=k.useContext(Cn),_=k.useMemo(()=>({controlId:e||E}),[E,e]),j=!g&&x!=null&&x!==!1||OX(g,vf),N=S.jsx(px,{...A,type:O==="switch"?"checkbox":O,ref:T,isValid:u,isInvalid:l,disabled:o,as:P});return S.jsx(Cn.Provider,{value:_,children:S.jsx("div",{style:m,className:Oe(p,j&&t,n&&`${t}-inline`,i&&`${t}-reverse`,O==="switch"&&r),children:g||S.jsxs(S.Fragment,{children:[N,j&&S.jsx(vf,{title:b,children:x}),d&&S.jsx(dd,{type:v,tooltip:f,children:d})]})})})});uM.displayName="FormCheck";const mf=Object.assign(uM,{Input:px,Label:vf}),lM=k.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:n,id:i,className:o,isValid:u=!1,isInvalid:l=!1,plaintext:f,readOnly:d,as:v="input",...p},m)=>{const{controlId:b}=k.useContext(Cn);return e=Re(e,"form-control"),S.jsx(v,{...p,type:t,size:n,ref:m,readOnly:d,id:i||b,className:Oe(o,f?`${e}-plaintext`:e,r&&`${e}-${r}`,t==="color"&&`${e}-color`,u&&"is-valid",l&&"is-invalid")})});lM.displayName="FormControl";const _X=Object.assign(lM,{Feedback:dd}),cM=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=Re(t,"form-floating"),S.jsx(r,{ref:i,className:Oe(e,t),...n})));cM.displayName="FormFloating";const hx=k.forwardRef(({controlId:e,as:t="div",...r},n)=>{const i=k.useMemo(()=>({controlId:e}),[e]);return S.jsx(Cn.Provider,{value:i,children:S.jsx(t,{...r,ref:n})})});hx.displayName="FormGroup";const fM=k.forwardRef(({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:n=!1,className:i,htmlFor:o,...u},l)=>{const{controlId:f}=k.useContext(Cn);t=Re(t,"form-label");let d="col-form-label";typeof r=="string"&&(d=`${d} ${d}-${r}`);const v=Oe(i,t,n&&"visually-hidden",r&&d);return o=o||f,r?S.jsx(Be,{ref:l,as:"label",className:v,htmlFor:o,...u}):S.jsx(e,{ref:l,className:v,htmlFor:o,...u})});fM.displayName="FormLabel";const dM=k.forwardRef(({bsPrefix:e,className:t,id:r,...n},i)=>{const{controlId:o}=k.useContext(Cn);return e=Re(e,"form-range"),S.jsx("input",{...n,type:"range",ref:i,className:Oe(t,e),id:r||o})});dM.displayName="FormRange";const pM=k.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:n,isValid:i=!1,isInvalid:o=!1,id:u,...l},f)=>{const{controlId:d}=k.useContext(Cn);return e=Re(e,"form-select"),S.jsx("select",{...l,size:r,ref:f,className:Oe(n,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:u||d})});pM.displayName="FormSelect";const hM=k.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:n,...i},o)=>(e=Re(e,"form-text"),S.jsx(r,{...i,ref:o,className:Oe(t,e,n&&"text-muted")})));hM.displayName="FormText";const vM=k.forwardRef((e,t)=>S.jsx(mf,{...e,ref:t,type:"switch"}));vM.displayName="Switch";const PX=Object.assign(vM,{Input:mf.Input,Label:mf.Label}),mM=k.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:i,...o},u)=>(e=Re(e,"form-floating"),S.jsxs(hx,{ref:u,className:Oe(t,e),controlId:n,...o,children:[r,S.jsx("label",{htmlFor:n,children:i})]})));mM.displayName="FloatingLabel";const EX={_ref:$e.any,validated:$e.bool,as:$e.elementType},vx=k.forwardRef(({className:e,validated:t,as:r="form",...n},i)=>S.jsx(r,{...n,ref:i,className:Oe(e,t&&"was-validated")}));vx.displayName="Form";vx.propTypes=EX;const Mr=Object.assign(vx,{Group:hx,Control:_X,Floating:cM,Check:mf,Switch:PX,Label:fM,Text:hM,Range:dM,Select:pM,FloatingLabel:mM}),mx=k.forwardRef(({active:e=!1,disabled:t=!1,className:r,style:n,activeLabel:i="(current)",children:o,linkStyle:u,linkClassName:l,as:f=ab,...d},v)=>{const p=e||t?"span":f;return S.jsx("li",{ref:v,style:n,className:Oe(r,"page-item",{active:e,disabled:t}),children:S.jsxs(p,{className:Oe("page-link",l),style:u,...d,children:[o,e&&i&&S.jsx("span",{className:"visually-hidden",children:i})]})})});mx.displayName="PageItem";function Mu(e,t,r=e){const n=k.forwardRef(({children:i,...o},u)=>S.jsxs(mx,{...o,ref:u,children:[S.jsx("span",{"aria-hidden":"true",children:i||t}),S.jsx("span",{className:"visually-hidden",children:r})]}));return n.displayName=e,n}const AX=Mu("First","«"),jX=Mu("Prev","‹","Previous"),TX=Mu("Ellipsis","…","More"),CX=Mu("Next","›"),kX=Mu("Last","»"),yM=k.forwardRef(({bsPrefix:e,className:t,size:r,...n},i)=>{const o=Re(e,"pagination");return S.jsx("ul",{ref:i,...n,className:Oe(t,o,r&&`${o}-${r}`)})});yM.displayName="Pagination";const ka=Object.assign(yM,{First:AX,Prev:jX,Ellipsis:TX,Item:mx,Next:CX,Last:kX}),NX="/ProserveReport/",RX=`${NX}logo.png`;function pd({subtitle:e}){const{t}=tn(),n=new Date().toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});return S.jsxs("div",{className:"print-header",children:[S.jsx("img",{src:RX,alt:"Logo"}),S.jsx("span",{className:"print-title",children:"PROSERVE Report"}),e&&S.jsxs("span",{style:{color:"#333",fontSize:"0.9rem"},children:["— ",e]}),S.jsxs("span",{className:"print-subtitle",children:[t("print.generatedOn")," ",n]})]})}const yg=20;function MX(e){const t=Math.floor(e/60),r=Math.floor(e%60);return`${t}m ${r}s`}function $X(e,t){return e?new Date(e).toLocaleDateString(t==="fr"?"fr-FR":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function IX(){const{t:e,lang:t}=tn(),r=xf(),[n,i]=k.useState([]),[o,u]=k.useState(!0),[l,f]=k.useState(-1),[d,v]=k.useState("all"),[p,m]=k.useState(""),[b,O]=k.useState("sessionDateAsString"),[x,g]=k.useState("desc"),[P,A]=k.useState(1);k.useEffect(()=>{DC().then(i).finally(()=>u(!1))},[]);const T=k.useMemo(()=>{let M=n;if(l>=0&&(M=M.filter(z=>z.sessionTypeAsInt===l)),d==="success"?M=M.filter(z=>z.success):d==="failed"&&(M=M.filter(z=>!z.success)),p.trim()){const z=p.toLowerCase();M=M.filter(F=>F.scenarioName.toLowerCase().includes(z)||F.mapName.toLowerCase().includes(z)||F.sessionName.toLowerCase().includes(z))}return[...M].sort((z,F)=>{const L=z[b],H=F[b];return typeof L=="string"&&typeof H=="string"?x==="asc"?L.localeCompare(H):H.localeCompare(L):x==="asc"?Number(L)-Number(H):Number(H)-Number(L)})},[n,l,d,p,b,x]),E=Math.ceil(T.length/yg),_=T.slice((P-1)*yg,P*yg);function j(M){b===M?g(x==="asc"?"desc":"asc"):(O(M),g("desc"))}function N(M){return b!==M?"":x==="asc"?" ▲":" ▼"}if(o)return S.jsx(Ou,{});const R=[...new Set(n.map(M=>M.sessionTypeAsInt))].sort();return S.jsxs(S.Fragment,{children:[S.jsx(pd,{subtitle:e("sessions.title")}),S.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-4",children:[S.jsxs("h2",{className:"mb-0",children:[e("sessions.title")," (",T.length,")"]}),S.jsx("button",{className:"print-btn no-print",onClick:()=>window.print(),children:e("print.btn")})]}),S.jsx(we,{className:"data-card mb-4 no-print",children:S.jsx(we.Body,{children:S.jsxs(Fr,{className:"g-3",children:[S.jsx(Be,{md:3,children:S.jsxs(Mr.Group,{children:[S.jsx(Mr.Label,{className:"text-muted-custom",children:e("sessions.sessionType")}),S.jsxs(Mr.Select,{value:l,onChange:M=>{f(Number(M.target.value)),A(1)},className:"filter-select",children:[S.jsx("option",{value:-1,children:e("sessions.allTypes")}),R.map(M=>S.jsx("option",{value:M,children:e(`sessionType.${M}`)},M))]})]})}),S.jsx(Be,{md:3,children:S.jsxs(Mr.Group,{children:[S.jsx(Mr.Label,{className:"text-muted-custom",children:e("sessions.result")}),S.jsxs(Mr.Select,{value:d,onChange:M=>{v(M.target.value),A(1)},className:"filter-select",children:[S.jsx("option",{value:"all",children:e("sessions.all")}),S.jsx("option",{value:"success",children:e("sessions.success")}),S.jsx("option",{value:"failed",children:e("sessions.failed")})]})]})}),S.jsx(Be,{md:6,children:S.jsxs(Mr.Group,{children:[S.jsx(Mr.Label,{className:"text-muted-custom",children:e("sessions.search")}),S.jsx(Mr.Control,{type:"text",placeholder:e("sessions.search"),value:p,onChange:M=>{m(M.target.value),A(1)},className:"filter-input"})]})})]})})}),S.jsx(we,{className:"data-card",children:S.jsx(we.Body,{className:"p-0",children:S.jsxs(Br,{hover:!0,responsive:!0,className:"data-table mb-0",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsxs("th",{className:"sortable",onClick:()=>j("sessionDateAsString"),children:[e("table.date"),N("sessionDateAsString")]}),S.jsxs("th",{className:"sortable",onClick:()=>j("sessionTypeAsInt"),children:[e("table.type"),N("sessionTypeAsInt")]}),S.jsxs("th",{className:"sortable",onClick:()=>j("scenarioName"),children:[e("table.scenario"),N("scenarioName")]}),S.jsx("th",{children:e("table.map")}),S.jsxs("th",{className:"sortable",onClick:()=>j("score"),children:[e("table.score"),N("score")]}),S.jsx("th",{children:e("table.enemies")}),S.jsx("th",{children:e("table.civilians")}),S.jsxs("th",{className:"sortable",onClick:()=>j("timeToFinish"),children:[e("table.duration"),N("timeToFinish")]}),S.jsx("th",{children:e("table.result")})]})}),S.jsxs("tbody",{children:[_.map(M=>S.jsxs("tr",{className:"clickable-row",onClick:()=>r(`/sessions/${M.id}`),children:[S.jsx("td",{children:$X(M.sessionDateAsString,t)}),S.jsx("td",{children:S.jsx(Bs,{typeId:M.sessionTypeAsInt})}),S.jsx("td",{children:M.scenarioName||"-"}),S.jsx("td",{children:M.mapName||"-"}),S.jsx("td",{className:"fw-bold",children:M.score}),S.jsx("td",{children:M.nbEnemyHit}),S.jsx("td",{className:M.nbCivilsHit>0?"text-danger":"",children:M.nbCivilsHit}),S.jsx("td",{children:MX(M.timeToFinish)}),S.jsx("td",{children:S.jsx(jf,{success:M.success})})]},M.id)),_.length===0&&S.jsx("tr",{children:S.jsx("td",{colSpan:9,className:"text-center text-muted-custom py-4",children:e("sessions.noSession")})})]})]})})}),E>1&&S.jsx("div",{className:"d-flex justify-content-center mt-3",children:S.jsxs(ka,{className:"custom-pagination",children:[S.jsx(ka.First,{onClick:()=>A(1),disabled:P===1}),S.jsx(ka.Prev,{onClick:()=>A(P-1),disabled:P===1}),Array.from({length:Math.min(E,5)},(M,z)=>{const L=Math.max(1,Math.min(P-2,E-4))+z;return L>E?null:S.jsx(ka.Item,{active:L===P,onClick:()=>A(L),children:L},L)}),S.jsx(ka.Next,{onClick:()=>A(P+1),disabled:P===E}),S.jsx(ka.Last,{onClick:()=>A(E),disabled:P===E})]})})]})}const CT=1e3;function DX(e,t,r){const n=(e-t)/(r-t)*100;return Math.round(n*CT)/CT}function kT({min:e,now:t,max:r,label:n,visuallyHidden:i,striped:o,animated:u,className:l,style:f,variant:d,bsPrefix:v,...p},m){return S.jsx("div",{ref:m,...p,role:"progressbar",className:Oe(l,`${v}-bar`,{[`bg-${d}`]:d,[`${v}-bar-animated`]:u,[`${v}-bar-striped`]:u||o}),style:{width:`${DX(t,e,r)}%`,...f},"aria-valuenow":t,"aria-valuemin":e,"aria-valuemax":r,children:i?S.jsx("span",{className:"visually-hidden",children:n}):n})}const gM=k.forwardRef(({isChild:e=!1,...t},r)=>{const n={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...t};if(n.bsPrefix=Re(n.bsPrefix,"progress"),e)return kT(n,r);const{min:i,now:o,max:u,label:l,visuallyHidden:f,striped:d,animated:v,bsPrefix:p,variant:m,className:b,children:O,...x}=n;return S.jsx("div",{ref:r,...x,className:Oe(b,p),children:O?SX(O,g=>k.cloneElement(g,{isChild:!0})):kT({min:i,now:o,max:u,label:l,visuallyHidden:f,striped:d,animated:v,bsPrefix:p,variant:m},r)})});gM.displayName="ProgressBar";function LX(e){const t=Math.floor(e/60),r=Math.floor(e%60);return`${t}m ${r}s`}function BX(e,t){return e?new Date(e).toLocaleDateString(t==="fr"?"fr-FR":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}const NT={enemy:"#27ae60",civilian:"#e74c3c",police:"#f39c12",object:"#6c757d",target:"#4a90d9",paperTarget:"#2980b9",deadBody:"#95a5a6"},FX={Ennemi:"enemy",Civil:"civilian",Police:"police",Objet:"object",Cible:"target","Cible Papier":"paperTarget",Corps:"deadBody"},gg={enemy:"hitType.enemy",civilian:"hitType.civilian",police:"hitType.police",object:"hitType.object",target:"hitType.target",paperTarget:"hitType.paperTarget",deadBody:"hitType.deadBody"};function qX(){const{id:e}=UT(),t=Number(e),{t:r,lang:n}=tn(),[i,o]=k.useState(null),[u,l]=k.useState([]),[f,d]=k.useState([]),[v,p]=k.useState(null),[m,b]=k.useState([]),[O,x]=k.useState(!0);if(k.useEffect(()=>{t&&Promise.all([jL(t).catch(()=>null),CL(t).catch(()=>[]),kL(t).catch(()=>[]),RL(t).catch(()=>null)]).then(([E,_,j,N])=>{if(o(E),l(_),d(j),p(N),E){const R=E.sessionTypeAsInt;(R===uc.FireRange||R===uc.Challenge||R===uc.LongRange)&&NL(t,-1,R).then(b)}}).finally(()=>x(!1))},[t]),O)return S.jsx(Ou,{});if(!i)return S.jsx("p",{className:"text-center text-muted-custom py-5",children:r("session.notFound")});let g=null;if(v!=null&&v.resultsAsString)try{g=JSON.parse(v.resultsAsString)}catch{}const P={};f.forEach(E=>{E.nbEnemyHitsByUser>0&&(P.enemy=(P.enemy||0)+E.nbEnemyHitsByUser),E.nbCivilHitsByUser>0&&(P.civilian=(P.civilian||0)+E.nbCivilHitsByUser),E.nbPoliceHitsByUser>0&&(P.police=(P.police||0)+E.nbPoliceHitsByUser),E.nbObjectHitsByUser>0&&(P.object=(P.object||0)+E.nbObjectHitsByUser)});const A=Object.entries(P).map(([E,_])=>({name:r(gg[E]),value:_,color:NT[E]||"#6c757d"})),T=new Map(u.map(E=>[E.id,E]));return S.jsxs(S.Fragment,{children:[S.jsx(pd,{subtitle:i.sessionName||i.scenarioName||`Session #${i.id}`}),S.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-3",children:[S.jsxs(Ds,{to:"/sessions",className:"text-muted-custom no-print",children:["← ",r("session.backToSessions")]}),S.jsx("button",{className:"print-btn no-print",onClick:()=>window.print(),children:r("print.btn")})]}),S.jsx(we,{className:"data-card mb-4",children:S.jsx(we.Body,{children:S.jsxs(Fr,{className:"align-items-center",children:[S.jsxs(Be,{children:[S.jsx("h3",{className:"mb-1",children:i.sessionName||i.scenarioName||`Session #${i.id}`}),S.jsxs("div",{className:"d-flex gap-3 align-items-center flex-wrap",children:[S.jsx(Bs,{typeId:i.sessionTypeAsInt}),S.jsx("span",{className:"text-muted-custom",children:BX(i.sessionDateAsString,n)}),S.jsxs("span",{className:"text-muted-custom",children:["Map: ",i.mapName||"-"]}),S.jsxs("span",{className:"text-muted-custom",children:["Scenario: ",i.scenarioName||"-"]})]})]}),S.jsx(Be,{xs:"auto",children:S.jsx(jf,{success:i.success,score:i.score})})]})})}),S.jsxs(Fr,{className:"mb-4 g-3",children:[S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("session.score"),value:i.score,color:"#4a90d9"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("session.duration"),value:LX(i.timeToFinish),color:"#9b59b6"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("session.enemiesHit"),value:i.nbEnemyHit,color:"#27ae60"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("session.civiliansHit"),value:i.nbCivilsHit,color:i.nbCivilsHit>0?"#e74c3c":"#27ae60"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("session.damageTaken"),value:Math.round(i.damageTaken),color:"#f39c12"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("session.participants"),value:u.length,color:"#1abc9c"})})]}),S.jsx(we,{className:"data-card mb-4",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("session.participants")}),S.jsxs(Br,{hover:!0,responsive:!0,className:"data-table mb-0",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:r("table.user")}),S.jsx("th",{children:r("table.shotsFired")}),S.jsx("th",{children:r("table.shotsMissed")}),S.jsx("th",{children:r("table.enemiesHit")}),S.jsx("th",{children:r("table.civiliansHit")}),S.jsx("th",{children:r("table.avgPrecision")}),S.jsx("th",{children:r("table.reactionTime")}),S.jsx("th",{children:r("table.hitsReceivedIA")}),S.jsx("th",{children:r("table.enemiesKilled")}),S.jsx("th",{children:r("table.civiliansKilled")})]})}),S.jsxs("tbody",{children:[f.map((E,_)=>{const j=T.get(E.userId);return S.jsxs("tr",{children:[S.jsx("td",{children:S.jsx(Ds,{to:`/users/${E.userId}`,className:"table-link",children:j?j.firstName&&j.lastName?`${j.firstName} ${j.lastName}`:j.username:`User #${E.userId}`})}),S.jsx("td",{children:E.nbFiredShotsByUser}),S.jsx("td",{children:E.nbMissedShotsByUser}),S.jsx("td",{children:E.nbEnemyHitsByUser}),S.jsx("td",{className:E.nbCivilHitsByUser>0?"text-danger":"",children:E.nbCivilHitsByUser}),S.jsx("td",{children:E.averagePrecision!=null?`${(E.averagePrecision*100).toFixed(1)}%`:"-"}),S.jsx("td",{children:E.averageReactionTime!=null&&E.averageReactionTime>0?`${E.averageReactionTime.toFixed(0)} ms`:"-"}),S.jsx("td",{children:E.nbReceivedHitsFromEnemyIA??0}),S.jsx("td",{children:E.totalEnemyKilled??0}),S.jsx("td",{className:(E.totalCivilKilled??0)>0?"text-danger":"",children:E.totalCivilKilled??0})]},_)}),f.length===0&&S.jsx("tr",{children:S.jsx("td",{colSpan:10,className:"text-center text-muted-custom",children:r("noData")})})]})]})]})}),S.jsxs(Fr,{className:"mb-4 g-3",children:[g&&S.jsx(Be,{md:6,children:S.jsx(we,{className:"data-card h-100",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("session.objectives")}),Object.entries(g).map(([E,_])=>{if(!_||typeof _!="object")return null;const j=_.maxScore>0?_.score/_.maxScore*100:0;return S.jsxs("div",{className:"mb-3",children:[S.jsxs("div",{className:"d-flex justify-content-between mb-1",children:[S.jsx("span",{children:r(`obj.${E}`)}),S.jsxs("span",{children:[_.score,"/",_.maxScore,_.success!==void 0&&S.jsx(La,{bg:_.success?"success":"danger",className:"ms-2",children:_.success?"OK":"X"})]})]}),S.jsx(gM,{now:j,variant:_.success?"success":"danger",className:"objective-bar"})]},E)})]})})}),A.length>0&&S.jsx(Be,{md:g?6:12,children:S.jsx(we,{className:"chart-card h-100",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("session.hitDistribution")}),S.jsx(qf,{width:"100%",height:250,children:S.jsxs(sM,{children:[S.jsx(on,{data:A,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:80,label:!0,children:A.map((E,_)=>S.jsx(Au,{fill:E.color},_))}),S.jsx(or,{contentStyle:{backgroundColor:"#1a1a2e",border:"1px solid #333"}}),S.jsx(_n,{})]})})]})})})]}),m.length>0&&S.jsx(we,{className:"data-card mb-4",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("session.shotDetails")}),S.jsxs(Br,{hover:!0,responsive:!0,className:"data-table mb-0",size:"sm",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:r("shot.index")}),S.jsx("th",{children:r("shot.shooter")}),S.jsx("th",{children:r("shot.impactType")}),S.jsx("th",{children:r("shot.target")}),S.jsx("th",{children:r("shot.boneZone")}),S.jsx("th",{children:r("shot.precision")}),S.jsx("th",{children:r("shot.distance")}),S.jsx("th",{children:r("shot.reaction")}),S.jsx("th",{children:r("shot.killed")}),S.jsx("th",{children:r("shot.time")})]})}),S.jsx("tbody",{children:m.map((E,_)=>{const j=IL[E.reactTypeId]||"",N=FX[j]||"",R=N&&gg[N]?r(gg[N]):E.reactType||"-",M=NT[N]||"#6c757d";return S.jsxs("tr",{children:[S.jsx("td",{children:E.shotIndex}),S.jsx("td",{children:E.shooterName||`#${E.shooterId}`}),S.jsx("td",{children:S.jsx(La,{bg:"secondary",style:{backgroundColor:M},children:R})}),S.jsx("td",{children:E.targetName||E.targetUserName||"-"}),S.jsx("td",{children:E.targetBoneName||E.hitLocationTag||"-"}),S.jsx("td",{children:E.hitPrecision!=null?`${(E.hitPrecision*100).toFixed(1)}%`:"-"}),S.jsx("td",{children:E.hitTargetDistance!=null&&E.hitTargetDistance>0?`${E.hitTargetDistance.toFixed(1)}m`:"-"}),S.jsx("td",{children:E.reactionTime!=null&&E.reactionTime>0?`${E.reactionTime.toFixed(0)}ms`:"-"}),S.jsx("td",{children:E.targetKilled?S.jsx(La,{bg:"danger",children:r("badge.killed")}):"-"}),S.jsx("td",{children:E.timeStamp!=null?`${E.timeStamp.toFixed(1)}s`:"-"})]},_)})})]})]})})]})}function zX(e,t){if(!e)return"-";const r=new Date(e),n=t==="fr"?"fr-FR":"en-US";return r.toLocaleDateString(n,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}function UX(){const{t:e,lang:t}=tn(),r=xf(),[n,i]=k.useState([]),[o,u]=k.useState(!0),[l,f]=k.useState(""),[d,v]=k.useState("avgPrecision"),[p,m]=k.useState("desc");k.useEffect(()=>{LC().then(i).finally(()=>u(!1))},[]);const b=k.useMemo(()=>{let g=n;if(l.trim()){const P=l.toLowerCase();g=g.filter(A=>A.username.toLowerCase().includes(P)||A.firstName.toLowerCase().includes(P)||A.lastName.toLowerCase().includes(P))}return[...g].sort((P,A)=>{const T=P[d],E=A[d];return typeof T=="string"&&typeof E=="string"?p==="asc"?T.localeCompare(E):E.localeCompare(T):p==="asc"?Number(T)-Number(E):Number(E)-Number(T)})},[n,l,d,p]);function O(g){d===g?m(p==="asc"?"desc":"asc"):(v(g),m("desc"))}function x(g){return d!==g?"":p==="asc"?" ▲":" ▼"}return o?S.jsx(Ou,{}):S.jsxs(S.Fragment,{children:[S.jsx(pd,{subtitle:e("users.title")}),S.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-4",children:[S.jsxs("h2",{className:"mb-0",children:[e("users.title")," (",b.length,")"]}),S.jsx("button",{className:"print-btn no-print",onClick:()=>window.print(),children:e("print.btn")})]}),S.jsx(we,{className:"data-card mb-4 no-print",children:S.jsx(we.Body,{children:S.jsx(Mr.Group,{children:S.jsx(Mr.Control,{type:"text",placeholder:e("users.search"),value:l,onChange:g=>f(g.target.value),className:"filter-input"})})})}),S.jsx(we,{className:"data-card",children:S.jsx(we.Body,{className:"p-0",children:S.jsxs(Br,{hover:!0,responsive:!0,className:"data-table mb-0",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsxs("th",{className:"sortable",onClick:()=>O("username"),children:[e("table.username"),x("username")]}),S.jsxs("th",{className:"sortable",onClick:()=>O("firstName"),children:[e("table.name"),x("firstName")]}),S.jsxs("th",{className:"sortable",onClick:()=>O("avgPrecision"),children:[e("table.avgPrecision"),x("avgPrecision")]}),S.jsxs("th",{className:"sortable",onClick:()=>O("avgReaction"),children:[e("table.avgReaction"),x("avgReaction")]}),S.jsxs("th",{className:"sortable",onClick:()=>O("lastConnection"),children:[e("table.lastConnection"),x("lastConnection")]})]})}),S.jsxs("tbody",{children:[b.map(g=>S.jsxs("tr",{className:"clickable-row",onClick:()=>r(`/users/${g.id}`),children:[S.jsx("td",{children:g.username}),S.jsx("td",{children:g.firstName||g.lastName?`${g.firstName} ${g.lastName}`.trim():"-"}),S.jsx("td",{className:"fw-bold",children:g.avgPrecision.toFixed(1)}),S.jsx("td",{children:g.avgReaction>0?`${g.avgReaction.toFixed(0)} ms`:"-"}),S.jsx("td",{children:zX(g.lastConnection,t)})]},g.id)),b.length===0&&S.jsx("tr",{children:S.jsx("td",{colSpan:5,className:"text-center text-muted-custom py-4",children:e("users.noUser")})})]})]})})})]})}function WX({debriefRows:e}){const t=e.map((r,n)=>({session:`#${r.sessionId||n+1}`,precision:Math.round((r.hitPrecision||0)*100)/100,reactionTime:Math.round((r.reactionTime||0)*100)/100}));return t.length===0?S.jsx("p",{className:"text-muted-custom text-center",children:"Aucune donnée"}):S.jsx(qf,{width:"100%",height:300,children:S.jsxs(hX,{data:t,children:[S.jsx(fx,{strokeDasharray:"3 3",stroke:"#333"}),S.jsx(Eo,{dataKey:"session",stroke:"#888"}),S.jsx(Ki,{yAxisId:"left",stroke:"#4a90d9"}),S.jsx(Ki,{yAxisId:"right",orientation:"right",stroke:"#f39c12"}),S.jsx(or,{contentStyle:{backgroundColor:"#1a1a2e",border:"1px solid #333"}}),S.jsx(_n,{}),S.jsx(co,{yAxisId:"left",type:"monotone",dataKey:"precision",stroke:"#4a90d9",name:"Précision",dot:!1}),S.jsx(co,{yAxisId:"right",type:"monotone",dataKey:"reactionTime",stroke:"#f39c12",name:"Temps réaction (ms)",dot:!1})]})})}function RT(e){if(e<60)return`${Math.floor(e)}s`;if(e<3600)return`${Math.floor(e/60)}m ${Math.floor(e%60)}s`;const t=Math.floor(e/3600),r=Math.floor(e%3600/60);return`${t}h ${r}m`}function HX(e,t){if(!e)return"-";const r=new Date(e),n=t==="fr"?"fr-FR":"en-US";return r.toLocaleDateString(n,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}function KX(){const{id:e}=UT(),t=Number(e),{t:r,lang:n}=tn(),[i,o]=k.useState(null),[u,l]=k.useState([]),[f,d]=k.useState(null),[v,p]=k.useState(!0);if(k.useEffect(()=>{t&&Promise.all([TL(t).catch(()=>null),AL(t).catch(()=>[]),ML(t,!0).catch(()=>null)]).then(([x,g,P])=>{o(x),l(g),d(P)}).finally(()=>p(!1))},[t]),v)return S.jsx(Ou,{});if(!i)return S.jsx("p",{className:"text-center text-muted-custom py-5",children:r("user.notFound")});const m=i.firstName&&i.lastName?`${i.firstName} ${i.lastName}`:i.username,b=f==null?void 0:f.totals,O={};return u.forEach(x=>{O[x.sessionTypeAsInt]=(O[x.sessionTypeAsInt]||0)+1}),S.jsxs(S.Fragment,{children:[S.jsx(pd,{subtitle:m}),S.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-3",children:[S.jsxs(Ds,{to:"/users",className:"text-muted-custom no-print",children:["← ",r("user.backToUsers")]}),S.jsx("button",{className:"print-btn no-print",onClick:()=>window.print(),children:r("print.btn")})]}),S.jsx(we,{className:"data-card mb-4",children:S.jsx(we.Body,{children:S.jsx(Fr,{children:S.jsxs(Be,{children:[S.jsx("h3",{className:"mb-1",children:m}),S.jsxs("div",{className:"d-flex gap-3 flex-wrap text-muted-custom",children:[S.jsxs("span",{children:["@",i.username]}),S.jsx("span",{children:i.maleGender?r("user.male"):r("user.female")}),S.jsx("span",{children:i.leftHanded?r("user.leftHanded"):r("user.rightHanded")}),i.size>0&&S.jsxs("span",{children:[r("user.height"),": ",i.size," cm"]}),i.charSkinAssetName&&S.jsxs("span",{children:[r("user.avatar"),": ",i.charSkinAssetName]}),i.weaponAssetName&&S.jsxs("span",{children:[r("user.weapon"),": ",i.weaponAssetName]})]})]})})})}),S.jsxs(Fr,{className:"mb-4 g-3",children:[S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("user.sessions"),value:(f==null?void 0:f.nbSessions)||u.length,color:"#4a90d9"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("user.totalTime"),value:RT((f==null?void 0:f.totalDuration)||0),color:"#9b59b6"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("user.avgPrecision"),value:i.avgPrecision!=null?i.avgPrecision.toFixed(1):"-",color:"#27ae60"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("user.avgReaction"),value:i.avgReaction!=null&&i.avgReaction>0?`${i.avgReaction.toFixed(0)}ms`:"-",color:"#f39c12"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("user.shotsFired"),value:(b==null?void 0:b.nbFiredShotsByUser)||0,color:"#1abc9c"})}),S.jsx(Be,{xs:6,md:2,children:S.jsx(Dt,{title:r("user.enemiesKilled"),value:(b==null?void 0:b.totalEnemyKilled)||0,color:"#e74c3c"})})]}),b&&S.jsx(we,{className:"data-card mb-4",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("user.detailedStats")}),S.jsxs(Fr,{className:"g-3",children:[S.jsxs(Be,{md:4,children:[S.jsx("h6",{className:"text-muted-custom",children:r("user.shots")}),S.jsx(Br,{size:"sm",className:"data-table mb-0",children:S.jsxs("tbody",{children:[S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.shotsFired")}),S.jsx("td",{className:"fw-bold",children:b.nbFiredShotsByUser})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.shotsMissed")}),S.jsx("td",{children:b.nbMissedShotsByUser})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.enemiesHit")}),S.jsx("td",{className:"text-success",children:b.nbEnemyHitsByUser})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.civiliansHit")}),S.jsx("td",{className:b.nbCivilHitsByUser>0?"text-danger":"",children:b.nbCivilHitsByUser})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.policeHit")}),S.jsx("td",{className:b.nbPoliceHitsByUser>0?"text-warning":"",children:b.nbPoliceHitsByUser})]})]})})]}),S.jsxs(Be,{md:4,children:[S.jsx("h6",{className:"text-muted-custom",children:r("user.hitsReceived")}),S.jsx(Br,{size:"sm",className:"data-table mb-0",children:S.jsxs("tbody",{children:[S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.fromEnemyIA")}),S.jsx("td",{children:b.nbReceivedHitsFromEnemyIA})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.fromEnemyUsers")}),S.jsx("td",{children:b.nbReceivedHitsFromEnemyUser})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.fromPolice")}),S.jsx("td",{className:b.nbReceivedHitsFromPoliceUser>0?"text-warning":"",children:b.nbReceivedHitsFromPoliceUser})]})]})})]}),S.jsxs(Be,{md:4,children:[S.jsx("h6",{className:"text-muted-custom",children:r("user.eliminations")}),S.jsx(Br,{size:"sm",className:"data-table mb-0",children:S.jsxs("tbody",{children:[S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.enemiesKilled")}),S.jsx("td",{className:"text-success",children:b.totalEnemyKilled})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.civiliansKilled")}),S.jsx("td",{className:b.totalCivilKilled>0?"text-danger fw-bold":"",children:b.totalCivilKilled})]}),S.jsxs("tr",{children:[S.jsx("td",{children:r("stats.policeKilled")}),S.jsx("td",{className:b.totalPoliceKilled>0?"text-warning":"",children:b.totalPoliceKilled})]})]})})]})]})]})}),(f==null?void 0:f.sessionDebriefRows)&&f.sessionDebriefRows.length>1&&S.jsx(we,{className:"chart-card mb-4",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("user.precisionEvolution")}),S.jsx(WX,{debriefRows:f.sessionDebriefRows})]})}),Object.keys(O).length>0&&S.jsx(we,{className:"data-card mb-4",children:S.jsxs(we.Body,{children:[S.jsx(we.Title,{children:r("user.sessionTypeDistrib")}),S.jsx("div",{className:"d-flex gap-3 flex-wrap",children:Object.entries(O).map(([x,g])=>S.jsxs("div",{className:"text-center",children:[S.jsx(Bs,{typeId:Number(x)}),S.jsx("div",{className:"fw-bold mt-1",children:g})]},x))})]})}),S.jsx(we,{className:"data-card",children:S.jsxs(we.Body,{children:[S.jsxs(we.Title,{children:[r("user.sessionHistory")," (",u.length,")"]}),S.jsxs(Br,{hover:!0,responsive:!0,className:"data-table mb-0",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:r("table.date")}),S.jsx("th",{children:r("table.type")}),S.jsx("th",{children:r("table.scenario")}),S.jsx("th",{children:r("table.score")}),S.jsx("th",{children:r("table.duration")}),S.jsx("th",{children:r("table.result")})]})}),S.jsxs("tbody",{children:[u.map(x=>S.jsxs("tr",{children:[S.jsx("td",{children:S.jsx(Ds,{to:`/sessions/${x.id}`,className:"table-link",children:HX(x.sessionDateAsString,n)})}),S.jsx("td",{children:S.jsx(Bs,{typeId:x.sessionTypeAsInt})}),S.jsx("td",{children:x.scenarioName||"-"}),S.jsx("td",{className:"fw-bold",children:x.score}),S.jsx("td",{children:RT(x.timeToFinish)}),S.jsx("td",{children:S.jsx(jf,{success:x.success})})]},x.id)),u.length===0&&S.jsx("tr",{children:S.jsx("td",{colSpan:6,className:"text-center text-muted-custom",children:r("user.noSession")})})]})]})]})})]})}function VX(){return S.jsx(b2,{children:S.jsxs(Ti,{element:S.jsx(SL,{}),children:[S.jsx(Ti,{path:"/",element:S.jsx(xX,{})}),S.jsx(Ti,{path:"/sessions",element:S.jsx(IX,{})}),S.jsx(Ti,{path:"/sessions/:id",element:S.jsx(qX,{})}),S.jsx(Ti,{path:"/users",element:S.jsx(UX,{})}),S.jsx(Ti,{path:"/users/:id",element:S.jsx(KX,{})})]})})}PI.createRoot(document.getElementById("root")).render(S.jsx(I.StrictMode,{children:S.jsx(M2,{children:S.jsx(A2,{children:S.jsx(VX,{})})})}));