repospend 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,306 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Xu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qh={exports:{}},gs={},Zh={exports:{}},Ie={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var D1;function HM(){if(D1)return Ie;D1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.iterator;function y($){return $===null||typeof $!="object"?null:($=m&&$[m]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,j={};function b($,F,ce){this.props=$,this.context=F,this.refs=j,this.updater=ce||x}b.prototype.isReactComponent={},b.prototype.setState=function($,F){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,F,"setState")},b.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function k(){}k.prototype=b.prototype;function _($,F,ce){this.props=$,this.context=F,this.refs=j,this.updater=ce||x}var T=_.prototype=new k;T.constructor=_,S(T,b.prototype),T.isPureReactComponent=!0;var A=Array.isArray,C=Object.prototype.hasOwnProperty,O={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function M($,F,ce){var ve,he={},Se=null,Ae=null;if(F!=null)for(ve in F.ref!==void 0&&(Ae=F.ref),F.key!==void 0&&(Se=""+F.key),F)C.call(F,ve)&&!N.hasOwnProperty(ve)&&(he[ve]=F[ve]);var re=arguments.length-2;if(re===1)he.children=ce;else if(1<re){for(var ee=Array(re),me=0;me<re;me++)ee[me]=arguments[me+2];he.children=ee}if($&&$.defaultProps)for(ve in re=$.defaultProps,re)he[ve]===void 0&&(he[ve]=re[ve]);return{$$typeof:e,type:$,key:Se,ref:Ae,props:he,_owner:O.current}}function R($,F){return{$$typeof:e,type:$.type,key:F,ref:$.ref,props:$.props,_owner:$._owner}}function K($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function L($){var F={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(ce){return F[ce]})}var U=/\/+/g;function V($,F){return typeof $=="object"&&$!==null&&$.key!=null?L(""+$.key):F.toString(36)}function Y($,F,ce,ve,he){var Se=typeof $;(Se==="undefined"||Se==="boolean")&&($=null);var Ae=!1;if($===null)Ae=!0;else switch(Se){case"string":case"number":Ae=!0;break;case"object":switch($.$$typeof){case e:case t:Ae=!0}}if(Ae)return Ae=$,he=he(Ae),$=ve===""?"."+V(Ae,0):ve,A(he)?(ce="",$!=null&&(ce=$.replace(U,"$&/")+"/"),Y(he,F,ce,"",function(me){return me})):he!=null&&(K(he)&&(he=R(he,ce+(!he.key||Ae&&Ae.key===he.key?"":(""+he.key).replace(U,"$&/")+"/")+$)),F.push(he)),1;if(Ae=0,ve=ve===""?".":ve+":",A($))for(var re=0;re<$.length;re++){Se=$[re];var ee=ve+V(Se,re);Ae+=Y(Se,F,ce,ee,he)}else if(ee=y($),typeof ee=="function")for($=ee.call($),re=0;!(Se=$.next()).done;)Se=Se.value,ee=ve+V(Se,re++),Ae+=Y(Se,F,ce,ee,he);else if(Se==="object")throw F=String($),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Ae}function G($,F,ce){if($==null)return $;var ve=[],he=0;return Y($,ve,"","",function(Se){return F.call(ce,Se,he++)}),ve}function J($){if($._status===-1){var F=$._result;F=F(),F.then(function(ce){($._status===0||$._status===-1)&&($._status=1,$._result=ce)},function(ce){($._status===0||$._status===-1)&&($._status=2,$._result=ce)}),$._status===-1&&($._status=0,$._result=F)}if($._status===1)return $._result.default;throw $._result}var ne={current:null},z={transition:null},Q={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:z,ReactCurrentOwner:O};function Z(){throw Error("act(...) is not supported in production builds of React.")}return Ie.Children={map:G,forEach:function($,F,ce){G($,function(){F.apply(this,arguments)},ce)},count:function($){var F=0;return G($,function(){F++}),F},toArray:function($){return G($,function(F){return F})||[]},only:function($){if(!K($))throw Error("React.Children.only expected to receive a single React element child.");return $}},Ie.Component=b,Ie.Fragment=n,Ie.Profiler=a,Ie.PureComponent=_,Ie.StrictMode=r,Ie.Suspense=d,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,Ie.act=Z,Ie.cloneElement=function($,F,ce){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var ve=S({},$.props),he=$.key,Se=$.ref,Ae=$._owner;if(F!=null){if(F.ref!==void 0&&(Se=F.ref,Ae=O.current),F.key!==void 0&&(he=""+F.key),$.type&&$.type.defaultProps)var re=$.type.defaultProps;for(ee in F)C.call(F,ee)&&!N.hasOwnProperty(ee)&&(ve[ee]=F[ee]===void 0&&re!==void 0?re[ee]:F[ee])}var ee=arguments.length-2;if(ee===1)ve.children=ce;else if(1<ee){re=Array(ee);for(var me=0;me<ee;me++)re[me]=arguments[me+2];ve.children=re}return{$$typeof:e,type:$.type,key:he,ref:Se,props:ve,_owner:Ae}},Ie.createContext=function($){return $={$$typeof:u,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:o,_context:$},$.Consumer=$},Ie.createElement=M,Ie.createFactory=function($){var F=M.bind(null,$);return F.type=$,F},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function($){return{$$typeof:c,render:$}},Ie.isValidElement=K,Ie.lazy=function($){return{$$typeof:v,_payload:{_status:-1,_result:$},_init:J}},Ie.memo=function($,F){return{$$typeof:h,type:$,compare:F===void 0?null:F}},Ie.startTransition=function($){var F=z.transition;z.transition={};try{$()}finally{z.transition=F}},Ie.unstable_act=Z,Ie.useCallback=function($,F){return ne.current.useCallback($,F)},Ie.useContext=function($){return ne.current.useContext($)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function($){return ne.current.useDeferredValue($)},Ie.useEffect=function($,F){return ne.current.useEffect($,F)},Ie.useId=function(){return ne.current.useId()},Ie.useImperativeHandle=function($,F,ce){return ne.current.useImperativeHandle($,F,ce)},Ie.useInsertionEffect=function($,F){return ne.current.useInsertionEffect($,F)},Ie.useLayoutEffect=function($,F){return ne.current.useLayoutEffect($,F)},Ie.useMemo=function($,F){return ne.current.useMemo($,F)},Ie.useReducer=function($,F,ce){return ne.current.useReducer($,F,ce)},Ie.useRef=function($){return ne.current.useRef($)},Ie.useState=function($){return ne.current.useState($)},Ie.useSyncExternalStore=function($,F,ce){return ne.current.useSyncExternalStore($,F,ce)},Ie.useTransition=function(){return ne.current.useTransition()},Ie.version="18.3.1",Ie}var L1;function Px(){return L1||(L1=1,Zh.exports=HM()),Zh.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var U1;function KM(){if(U1)return gs;U1=1;var e=Px(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(c,d,h){var v,m={},y=null,x=null;h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(x=d.ref);for(v in d)r.call(d,v)&&!o.hasOwnProperty(v)&&(m[v]=d[v]);if(c&&c.defaultProps)for(v in d=c.defaultProps,d)m[v]===void 0&&(m[v]=d[v]);return{$$typeof:t,type:c,key:y,ref:x,props:m,_owner:a.current}}return gs.Fragment=n,gs.jsx=u,gs.jsxs=u,gs}var q1;function VM(){return q1||(q1=1,Qh.exports=KM()),Qh.exports}var l=VM(),ue=Px();const E=Ve(ue);var Yu={},Jh={exports:{}},en={},ep={exports:{}},tp={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var F1;function GM(){return F1||(F1=1,(function(e){function t(z,Q){var Z=z.length;z.push(Q);e:for(;0<Z;){var $=Z-1>>>1,F=z[$];if(0<a(F,Q))z[$]=Q,z[Z]=F,Z=$;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var Q=z[0],Z=z.pop();if(Z!==Q){z[0]=Z;e:for(var $=0,F=z.length,ce=F>>>1;$<ce;){var ve=2*($+1)-1,he=z[ve],Se=ve+1,Ae=z[Se];if(0>a(he,Z))Se<F&&0>a(Ae,he)?(z[$]=Ae,z[Se]=Z,$=Se):(z[$]=he,z[ve]=Z,$=ve);else if(Se<F&&0>a(Ae,Z))z[$]=Ae,z[Se]=Z,$=Se;else break e}}return Q}function a(z,Q){var Z=z.sortIndex-Q.sortIndex;return Z!==0?Z:z.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var d=[],h=[],v=1,m=null,y=3,x=!1,S=!1,j=!1,b=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,_=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(z){for(var Q=n(h);Q!==null;){if(Q.callback===null)r(h);else if(Q.startTime<=z)r(h),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=n(h)}}function A(z){if(j=!1,T(z),!S)if(n(d)!==null)S=!0,J(C);else{var Q=n(h);Q!==null&&ne(A,Q.startTime-z)}}function C(z,Q){S=!1,j&&(j=!1,k(M),M=-1),x=!0;var Z=y;try{for(T(Q),m=n(d);m!==null&&(!(m.expirationTime>Q)||z&&!L());){var $=m.callback;if(typeof $=="function"){m.callback=null,y=m.priorityLevel;var F=$(m.expirationTime<=Q);Q=e.unstable_now(),typeof F=="function"?m.callback=F:m===n(d)&&r(d),T(Q)}else r(d);m=n(d)}if(m!==null)var ce=!0;else{var ve=n(h);ve!==null&&ne(A,ve.startTime-Q),ce=!1}return ce}finally{m=null,y=Z,x=!1}}var O=!1,N=null,M=-1,R=5,K=-1;function L(){return!(e.unstable_now()-K<R)}function U(){if(N!==null){var z=e.unstable_now();K=z;var Q=!0;try{Q=N(!0,z)}finally{Q?V():(O=!1,N=null)}}else O=!1}var V;if(typeof _=="function")V=function(){_(U)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,G=Y.port2;Y.port1.onmessage=U,V=function(){G.postMessage(null)}}else V=function(){b(U,0)};function J(z){N=z,O||(O=!0,V())}function ne(z,Q){M=b(function(){z(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,J(C))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(z){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var Z=y;y=Q;try{return z()}finally{y=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,Q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Z=y;y=z;try{return Q()}finally{y=Z}},e.unstable_scheduleCallback=function(z,Q,Z){var $=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?$+Z:$):Z=$,z){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=Z+F,z={id:v++,callback:Q,priorityLevel:z,startTime:Z,expirationTime:F,sortIndex:-1},Z>$?(z.sortIndex=Z,t(h,z),n(d)===null&&z===n(h)&&(j?(k(M),M=-1):j=!0,ne(A,Z-$))):(z.sortIndex=F,t(d,z),S||x||(S=!0,J(C))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var Q=y;return function(){var Z=y;y=Q;try{return z.apply(this,arguments)}finally{y=Z}}}})(tp)),tp}var B1;function XM(){return B1||(B1=1,ep.exports=GM()),ep.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var z1;function YM(){if(z1)return en;z1=1;var e=Px(),t=XM();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,f=1;f<arguments.length;f++)s+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function o(i,s){u(i,s),u(i+"Capture",s)}function u(i,s){for(a[i]=s,i=0;i<s.length;i++)r.add(s[i])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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={},m={};function y(i){return d.call(m,i)?!0:d.call(v,i)?!1:h.test(i)?m[i]=!0:(v[i]=!0,!1)}function x(i,s,f,p){if(f!==null&&f.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return p?!1:f!==null?!f.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,s,f,p){if(s===null||typeof s>"u"||x(i,s,f,p))return!0;if(p)return!1;if(f!==null)switch(f.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 j(i,s,f,p,g,w,P){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=p,this.attributeNamespace=g,this.mustUseProperty=f,this.propertyName=i,this.type=s,this.sanitizeURL=w,this.removeEmptyString=P}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){b[i]=new j(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];b[s]=new j(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){b[i]=new j(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){b[i]=new j(i,2,!1,i,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(i){b[i]=new j(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){b[i]=new j(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){b[i]=new j(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){b[i]=new j(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){b[i]=new j(i,5,!1,i.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function _(i){return i[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(i){var s=i.replace(k,_);b[s]=new j(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(k,_);b[s]=new j(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(k,_);b[s]=new j(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){b[i]=new j(i,1,!1,i.toLowerCase(),null,!1,!1)}),b.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){b[i]=new j(i,1,!1,i.toLowerCase(),null,!0,!0)});function T(i,s,f,p){var g=b.hasOwnProperty(s)?b[s]:null;(g!==null?g.type!==0:p||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(S(s,f,g,p)&&(f=null),p||g===null?y(s)&&(f===null?i.removeAttribute(s):i.setAttribute(s,""+f)):g.mustUseProperty?i[g.propertyName]=f===null?g.type===3?!1:"":f:(s=g.attributeName,p=g.attributeNamespace,f===null?i.removeAttribute(s):(g=g.type,f=g===3||g===4&&f===!0?"":""+f,p?i.setAttributeNS(p,s,f):i.setAttribute(s,f))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),O=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),L=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),z=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=z&&i[z]||i["@@iterator"],typeof i=="function"?i:null)}var Z=Object.assign,$;function F(i){if($===void 0)try{throw Error()}catch(f){var s=f.stack.trim().match(/\n( *(at )?)/);$=s&&s[1]||""}return`
34
+ `+$+i}var ce=!1;function ve(i,s){if(!i||ce)return"";ce=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(X){var p=X}Reflect.construct(i,[],s)}else{try{s.call()}catch(X){p=X}i.call(s.prototype)}else{try{throw Error()}catch(X){p=X}i()}}catch(X){if(X&&p&&typeof X.stack=="string"){for(var g=X.stack.split(`
35
+ `),w=p.stack.split(`
36
+ `),P=g.length-1,I=w.length-1;1<=P&&0<=I&&g[P]!==w[I];)I--;for(;1<=P&&0<=I;P--,I--)if(g[P]!==w[I]){if(P!==1||I!==1)do if(P--,I--,0>I||g[P]!==w[I]){var D=`
37
+ `+g[P].replace(" at new "," at ");return i.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",i.displayName)),D}while(1<=P&&0<=I);break}}}finally{ce=!1,Error.prepareStackTrace=f}return(i=i?i.displayName||i.name:"")?F(i):""}function he(i){switch(i.tag){case 5:return F(i.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return i=ve(i.type,!1),i;case 11:return i=ve(i.type.render,!1),i;case 1:return i=ve(i.type,!0),i;default:return""}}function Se(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case N:return"Fragment";case O:return"Portal";case R:return"Profiler";case M:return"StrictMode";case V:return"Suspense";case Y:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case L:return(i.displayName||"Context")+".Consumer";case K:return(i._context.displayName||"Context")+".Provider";case U:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return s=i.displayName||null,s!==null?s:Se(i.type)||"Memo";case J:s=i._payload,i=i._init;try{return Se(i(s))}catch{}}return null}function Ae(i){var s=i.type;switch(i.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 i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(s);case 8:return s===M?"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 re(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ee(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function me(i){var s=ee(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),p=""+i[s];if(!i.hasOwnProperty(s)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,w=f.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return g.call(this)},set:function(P){p=""+P,w.call(this,P)}}),Object.defineProperty(i,s,{enumerable:f.enumerable}),{getValue:function(){return p},setValue:function(P){p=""+P},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Te(i){i._valueTracker||(i._valueTracker=me(i))}function ie(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var f=s.getValue(),p="";return i&&(p=ee(i)?i.checked?"true":"false":i.value),i=p,i!==f?(s.setValue(i),!0):!1}function Ne(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Re(i,s){var f=s.checked;return Z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??i._wrapperState.initialChecked})}function ot(i,s){var f=s.defaultValue==null?"":s.defaultValue,p=s.checked!=null?s.checked:s.defaultChecked;f=re(s.value!=null?s.value:f),i._wrapperState={initialChecked:p,initialValue:f,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function st(i,s){s=s.checked,s!=null&&T(i,"checked",s,!1)}function kt(i,s){st(i,s);var f=re(s.value),p=s.type;if(f!=null)p==="number"?(f===0&&i.value===""||i.value!=f)&&(i.value=""+f):i.value!==""+f&&(i.value=""+f);else if(p==="submit"||p==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Qn(i,s.type,f):s.hasOwnProperty("defaultValue")&&Qn(i,s.type,re(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function Nn(i,s,f){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var p=s.type;if(!(p!=="submit"&&p!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,f||s===i.value||(i.value=s),i.defaultValue=s}f=i.name,f!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,f!==""&&(i.name=f)}function Qn(i,s,f){(s!=="number"||Ne(i.ownerDocument)!==i)&&(f==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+f&&(i.defaultValue=""+f))}var Zn=Array.isArray;function Gt(i,s,f,p){if(i=i.options,s){s={};for(var g=0;g<f.length;g++)s["$"+f[g]]=!0;for(f=0;f<i.length;f++)g=s.hasOwnProperty("$"+i[f].value),i[f].selected!==g&&(i[f].selected=g),g&&p&&(i[f].defaultSelected=!0)}else{for(f=""+re(f),s=null,g=0;g<i.length;g++){if(i[g].value===f){i[g].selected=!0,p&&(i[g].defaultSelected=!0);return}s!==null||i[g].disabled||(s=i[g])}s!==null&&(s.selected=!0)}}function An(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Z({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function aa(i,s){var f=s.value;if(f==null){if(f=s.children,s=s.defaultValue,f!=null){if(s!=null)throw Error(n(92));if(Zn(f)){if(1<f.length)throw Error(n(93));f=f[0]}s=f}s==null&&(s=""),f=s}i._wrapperState={initialValue:re(f)}}function Eo(i,s){var f=re(s.value),p=re(s.defaultValue);f!=null&&(f=""+f,f!==i.value&&(i.value=f),s.defaultValue==null&&i.defaultValue!==f&&(i.defaultValue=f)),p!=null&&(i.defaultValue=""+p)}function Mo(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function Y0(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ld(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?Y0(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Fl,Q0=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,f,p,g){MSApp.execUnsafeLocalFunction(function(){return i(s,f,p,g)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Fl=Fl||document.createElement("div"),Fl.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Fl.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Io(i,s){if(s){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=s;return}}i.textContent=s}var Ro={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},X2=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(i){X2.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Ro[s]=Ro[i]})});function Z0(i,s,f){return s==null||typeof s=="boolean"||s===""?"":f||typeof s!="number"||s===0||Ro.hasOwnProperty(i)&&Ro[i]?(""+s).trim():s+"px"}function J0(i,s){i=i.style;for(var f in s)if(s.hasOwnProperty(f)){var p=f.indexOf("--")===0,g=Z0(f,s[f],p);f==="float"&&(f="cssFloat"),p?i.setProperty(f,g):i[f]=g}}var Y2=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 ud(i,s){if(s){if(Y2[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function cd(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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 fd=null;function dd(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var hd=null,oa=null,sa=null;function eb(i){if(i=rs(i)){if(typeof hd!="function")throw Error(n(280));var s=i.stateNode;s&&(s=cu(s),hd(i.stateNode,i.type,s))}}function tb(i){oa?sa?sa.push(i):sa=[i]:oa=i}function nb(){if(oa){var i=oa,s=sa;if(sa=oa=null,eb(i),s)for(i=0;i<s.length;i++)eb(s[i])}}function rb(i,s){return i(s)}function ib(){}var pd=!1;function ab(i,s,f){if(pd)return i(s,f);pd=!0;try{return rb(i,s,f)}finally{pd=!1,(oa!==null||sa!==null)&&(ib(),nb())}}function $o(i,s){var f=i.stateNode;if(f===null)return null;var p=cu(f);if(p===null)return null;f=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(n(231,s,typeof f));return f}var md=!1;if(c)try{var Do={};Object.defineProperty(Do,"passive",{get:function(){md=!0}}),window.addEventListener("test",Do,Do),window.removeEventListener("test",Do,Do)}catch{md=!1}function Q2(i,s,f,p,g,w,P,I,D){var X=Array.prototype.slice.call(arguments,3);try{s.apply(f,X)}catch(se){this.onError(se)}}var Lo=!1,Bl=null,zl=!1,vd=null,Z2={onError:function(i){Lo=!0,Bl=i}};function J2(i,s,f,p,g,w,P,I,D){Lo=!1,Bl=null,Q2.apply(Z2,arguments)}function eE(i,s,f,p,g,w,P,I,D){if(J2.apply(this,arguments),Lo){if(Lo){var X=Bl;Lo=!1,Bl=null}else throw Error(n(198));zl||(zl=!0,vd=X)}}function Si(i){var s=i,f=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(f=s.return),i=s.return;while(i)}return s.tag===3?f:null}function ob(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function sb(i){if(Si(i)!==i)throw Error(n(188))}function tE(i){var s=i.alternate;if(!s){if(s=Si(i),s===null)throw Error(n(188));return s!==i?null:i}for(var f=i,p=s;;){var g=f.return;if(g===null)break;var w=g.alternate;if(w===null){if(p=g.return,p!==null){f=p;continue}break}if(g.child===w.child){for(w=g.child;w;){if(w===f)return sb(g),i;if(w===p)return sb(g),s;w=w.sibling}throw Error(n(188))}if(f.return!==p.return)f=g,p=w;else{for(var P=!1,I=g.child;I;){if(I===f){P=!0,f=g,p=w;break}if(I===p){P=!0,p=g,f=w;break}I=I.sibling}if(!P){for(I=w.child;I;){if(I===f){P=!0,f=w,p=g;break}if(I===p){P=!0,p=w,f=g;break}I=I.sibling}if(!P)throw Error(n(189))}}if(f.alternate!==p)throw Error(n(190))}if(f.tag!==3)throw Error(n(188));return f.stateNode.current===f?i:s}function lb(i){return i=tE(i),i!==null?ub(i):null}function ub(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=ub(i);if(s!==null)return s;i=i.sibling}return null}var cb=t.unstable_scheduleCallback,fb=t.unstable_cancelCallback,nE=t.unstable_shouldYield,rE=t.unstable_requestPaint,ft=t.unstable_now,iE=t.unstable_getCurrentPriorityLevel,yd=t.unstable_ImmediatePriority,db=t.unstable_UserBlockingPriority,Wl=t.unstable_NormalPriority,aE=t.unstable_LowPriority,hb=t.unstable_IdlePriority,Hl=null,Jn=null;function oE(i){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Hl,i,void 0,(i.current.flags&128)===128)}catch{}}var En=Math.clz32?Math.clz32:uE,sE=Math.log,lE=Math.LN2;function uE(i){return i>>>=0,i===0?32:31-(sE(i)/lE|0)|0}var Kl=64,Vl=4194304;function Uo(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Gl(i,s){var f=i.pendingLanes;if(f===0)return 0;var p=0,g=i.suspendedLanes,w=i.pingedLanes,P=f&268435455;if(P!==0){var I=P&~g;I!==0?p=Uo(I):(w&=P,w!==0&&(p=Uo(w)))}else P=f&~g,P!==0?p=Uo(P):w!==0&&(p=Uo(w));if(p===0)return 0;if(s!==0&&s!==p&&(s&g)===0&&(g=p&-p,w=s&-s,g>=w||g===16&&(w&4194240)!==0))return s;if((p&4)!==0&&(p|=f&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=p;0<s;)f=31-En(s),g=1<<f,p|=i[f],s&=~g;return p}function cE(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fE(i,s){for(var f=i.suspendedLanes,p=i.pingedLanes,g=i.expirationTimes,w=i.pendingLanes;0<w;){var P=31-En(w),I=1<<P,D=g[P];D===-1?((I&f)===0||(I&p)!==0)&&(g[P]=cE(I,s)):D<=s&&(i.expiredLanes|=I),w&=~I}}function gd(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function pb(){var i=Kl;return Kl<<=1,(Kl&4194240)===0&&(Kl=64),i}function xd(i){for(var s=[],f=0;31>f;f++)s.push(i);return s}function qo(i,s,f){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-En(s),i[s]=f}function dE(i,s){var f=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var p=i.eventTimes;for(i=i.expirationTimes;0<f;){var g=31-En(f),w=1<<g;s[g]=0,p[g]=-1,i[g]=-1,f&=~w}}function bd(i,s){var f=i.entangledLanes|=s;for(i=i.entanglements;f;){var p=31-En(f),g=1<<p;g&s|i[p]&s&&(i[p]|=s),f&=~g}}var He=0;function mb(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var vb,wd,yb,gb,xb,jd=!1,Xl=[],Dr=null,Lr=null,Ur=null,Fo=new Map,Bo=new Map,qr=[],hE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function bb(i,s){switch(i){case"focusin":case"focusout":Dr=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":Fo.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bo.delete(s.pointerId)}}function zo(i,s,f,p,g,w){return i===null||i.nativeEvent!==w?(i={blockedOn:s,domEventName:f,eventSystemFlags:p,nativeEvent:w,targetContainers:[g]},s!==null&&(s=rs(s),s!==null&&wd(s)),i):(i.eventSystemFlags|=p,s=i.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),i)}function pE(i,s,f,p,g){switch(s){case"focusin":return Dr=zo(Dr,i,s,f,p,g),!0;case"dragenter":return Lr=zo(Lr,i,s,f,p,g),!0;case"mouseover":return Ur=zo(Ur,i,s,f,p,g),!0;case"pointerover":var w=g.pointerId;return Fo.set(w,zo(Fo.get(w)||null,i,s,f,p,g)),!0;case"gotpointercapture":return w=g.pointerId,Bo.set(w,zo(Bo.get(w)||null,i,s,f,p,g)),!0}return!1}function wb(i){var s=ki(i.target);if(s!==null){var f=Si(s);if(f!==null){if(s=f.tag,s===13){if(s=ob(f),s!==null){i.blockedOn=s,xb(i.priority,function(){yb(f)});return}}else if(s===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Yl(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var f=kd(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(f===null){f=i.nativeEvent;var p=new f.constructor(f.type,f);fd=p,f.target.dispatchEvent(p),fd=null}else return s=rs(f),s!==null&&wd(s),i.blockedOn=f,!1;s.shift()}return!0}function jb(i,s,f){Yl(i)&&f.delete(s)}function mE(){jd=!1,Dr!==null&&Yl(Dr)&&(Dr=null),Lr!==null&&Yl(Lr)&&(Lr=null),Ur!==null&&Yl(Ur)&&(Ur=null),Fo.forEach(jb),Bo.forEach(jb)}function Wo(i,s){i.blockedOn===s&&(i.blockedOn=null,jd||(jd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,mE)))}function Ho(i){function s(g){return Wo(g,i)}if(0<Xl.length){Wo(Xl[0],i);for(var f=1;f<Xl.length;f++){var p=Xl[f];p.blockedOn===i&&(p.blockedOn=null)}}for(Dr!==null&&Wo(Dr,i),Lr!==null&&Wo(Lr,i),Ur!==null&&Wo(Ur,i),Fo.forEach(s),Bo.forEach(s),f=0;f<qr.length;f++)p=qr[f],p.blockedOn===i&&(p.blockedOn=null);for(;0<qr.length&&(f=qr[0],f.blockedOn===null);)wb(f),f.blockedOn===null&&qr.shift()}var la=A.ReactCurrentBatchConfig,Ql=!0;function vE(i,s,f,p){var g=He,w=la.transition;la.transition=null;try{He=1,Sd(i,s,f,p)}finally{He=g,la.transition=w}}function yE(i,s,f,p){var g=He,w=la.transition;la.transition=null;try{He=4,Sd(i,s,f,p)}finally{He=g,la.transition=w}}function Sd(i,s,f,p){if(Ql){var g=kd(i,s,f,p);if(g===null)Fd(i,s,p,Zl,f),bb(i,p);else if(pE(g,i,s,f,p))p.stopPropagation();else if(bb(i,p),s&4&&-1<hE.indexOf(i)){for(;g!==null;){var w=rs(g);if(w!==null&&vb(w),w=kd(i,s,f,p),w===null&&Fd(i,s,p,Zl,f),w===g)break;g=w}g!==null&&p.stopPropagation()}else Fd(i,s,p,null,f)}}var Zl=null;function kd(i,s,f,p){if(Zl=null,i=dd(p),i=ki(i),i!==null)if(s=Si(i),s===null)i=null;else if(f=s.tag,f===13){if(i=ob(s),i!==null)return i;i=null}else if(f===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return Zl=i,null}function Sb(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(iE()){case yd:return 1;case db:return 4;case Wl:case aE:return 16;case hb:return 536870912;default:return 16}default:return 16}}var Fr=null,Cd=null,Jl=null;function kb(){if(Jl)return Jl;var i,s=Cd,f=s.length,p,g="value"in Fr?Fr.value:Fr.textContent,w=g.length;for(i=0;i<f&&s[i]===g[i];i++);var P=f-i;for(p=1;p<=P&&s[f-p]===g[w-p];p++);return Jl=g.slice(i,1<p?1-p:void 0)}function eu(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function tu(){return!0}function Cb(){return!1}function on(i){function s(f,p,g,w,P){this._reactName=f,this._targetInst=g,this.type=p,this.nativeEvent=w,this.target=P,this.currentTarget=null;for(var I in i)i.hasOwnProperty(I)&&(f=i[I],this[I]=f?f(w):w[I]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?tu:Cb,this.isPropagationStopped=Cb,this}return Z(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),s}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_d=on(ua),Ko=Z({},ua,{view:0,detail:0}),gE=on(Ko),Od,Td,Vo,nu=Z({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Vo&&(Vo&&i.type==="mousemove"?(Od=i.screenX-Vo.screenX,Td=i.screenY-Vo.screenY):Td=Od=0,Vo=i),Od)},movementY:function(i){return"movementY"in i?i.movementY:Td}}),_b=on(nu),xE=Z({},nu,{dataTransfer:0}),bE=on(xE),wE=Z({},Ko,{relatedTarget:0}),Pd=on(wE),jE=Z({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),SE=on(jE),kE=Z({},ua,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),CE=on(kE),_E=Z({},ua,{data:0}),Ob=on(_E),OE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},PE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NE(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=PE[i])?!!s[i]:!1}function Nd(){return NE}var AE=Z({},Ko,{key:function(i){if(i.key){var s=OE[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=eu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?TE[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nd,charCode:function(i){return i.type==="keypress"?eu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?eu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),EE=on(AE),ME=Z({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tb=on(ME),IE=Z({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nd}),RE=on(IE),$E=Z({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),DE=on($E),LE=Z({},nu,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),UE=on(LE),qE=[9,13,27,32],Ad=c&&"CompositionEvent"in window,Go=null;c&&"documentMode"in document&&(Go=document.documentMode);var FE=c&&"TextEvent"in window&&!Go,Pb=c&&(!Ad||Go&&8<Go&&11>=Go),Nb=" ",Ab=!1;function Eb(i,s){switch(i){case"keyup":return qE.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mb(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ca=!1;function BE(i,s){switch(i){case"compositionend":return Mb(s);case"keypress":return s.which!==32?null:(Ab=!0,Nb);case"textInput":return i=s.data,i===Nb&&Ab?null:i;default:return null}}function zE(i,s){if(ca)return i==="compositionend"||!Ad&&Eb(i,s)?(i=kb(),Jl=Cd=Fr=null,ca=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Pb&&s.locale!=="ko"?null:s.data;default:return null}}var WE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ib(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!WE[i.type]:s==="textarea"}function Rb(i,s,f,p){tb(p),s=su(s,"onChange"),0<s.length&&(f=new _d("onChange","change",null,f,p),i.push({event:f,listeners:s}))}var Xo=null,Yo=null;function HE(i){Jb(i,0)}function ru(i){var s=ma(i);if(ie(s))return i}function KE(i,s){if(i==="change")return s}var $b=!1;if(c){var Ed;if(c){var Md="oninput"in document;if(!Md){var Db=document.createElement("div");Db.setAttribute("oninput","return;"),Md=typeof Db.oninput=="function"}Ed=Md}else Ed=!1;$b=Ed&&(!document.documentMode||9<document.documentMode)}function Lb(){Xo&&(Xo.detachEvent("onpropertychange",Ub),Yo=Xo=null)}function Ub(i){if(i.propertyName==="value"&&ru(Yo)){var s=[];Rb(s,Yo,i,dd(i)),ab(HE,s)}}function VE(i,s,f){i==="focusin"?(Lb(),Xo=s,Yo=f,Xo.attachEvent("onpropertychange",Ub)):i==="focusout"&&Lb()}function GE(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return ru(Yo)}function XE(i,s){if(i==="click")return ru(s)}function YE(i,s){if(i==="input"||i==="change")return ru(s)}function QE(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Mn=typeof Object.is=="function"?Object.is:QE;function Qo(i,s){if(Mn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var f=Object.keys(i),p=Object.keys(s);if(f.length!==p.length)return!1;for(p=0;p<f.length;p++){var g=f[p];if(!d.call(s,g)||!Mn(i[g],s[g]))return!1}return!0}function qb(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Fb(i,s){var f=qb(i);i=0;for(var p;f;){if(f.nodeType===3){if(p=i+f.textContent.length,i<=s&&p>=s)return{node:f,offset:s-i};i=p}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=qb(f)}}function Bb(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Bb(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function zb(){for(var i=window,s=Ne();s instanceof i.HTMLIFrameElement;){try{var f=typeof s.contentWindow.location.href=="string"}catch{f=!1}if(f)i=s.contentWindow;else break;s=Ne(i.document)}return s}function Id(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function ZE(i){var s=zb(),f=i.focusedElem,p=i.selectionRange;if(s!==f&&f&&f.ownerDocument&&Bb(f.ownerDocument.documentElement,f)){if(p!==null&&Id(f)){if(s=p.start,i=p.end,i===void 0&&(i=s),"selectionStart"in f)f.selectionStart=s,f.selectionEnd=Math.min(i,f.value.length);else if(i=(s=f.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var g=f.textContent.length,w=Math.min(p.start,g);p=p.end===void 0?w:Math.min(p.end,g),!i.extend&&w>p&&(g=p,p=w,w=g),g=Fb(f,w);var P=Fb(f,p);g&&P&&(i.rangeCount!==1||i.anchorNode!==g.node||i.anchorOffset!==g.offset||i.focusNode!==P.node||i.focusOffset!==P.offset)&&(s=s.createRange(),s.setStart(g.node,g.offset),i.removeAllRanges(),w>p?(i.addRange(s),i.extend(P.node,P.offset)):(s.setEnd(P.node,P.offset),i.addRange(s)))}}for(s=[],i=f;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<s.length;f++)i=s[f],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var JE=c&&"documentMode"in document&&11>=document.documentMode,fa=null,Rd=null,Zo=null,$d=!1;function Wb(i,s,f){var p=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;$d||fa==null||fa!==Ne(p)||(p=fa,"selectionStart"in p&&Id(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Zo&&Qo(Zo,p)||(Zo=p,p=su(Rd,"onSelect"),0<p.length&&(s=new _d("onSelect","select",null,s,f),i.push({event:s,listeners:p}),s.target=fa)))}function iu(i,s){var f={};return f[i.toLowerCase()]=s.toLowerCase(),f["Webkit"+i]="webkit"+s,f["Moz"+i]="moz"+s,f}var da={animationend:iu("Animation","AnimationEnd"),animationiteration:iu("Animation","AnimationIteration"),animationstart:iu("Animation","AnimationStart"),transitionend:iu("Transition","TransitionEnd")},Dd={},Hb={};c&&(Hb=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function au(i){if(Dd[i])return Dd[i];if(!da[i])return i;var s=da[i],f;for(f in s)if(s.hasOwnProperty(f)&&f in Hb)return Dd[i]=s[f];return i}var Kb=au("animationend"),Vb=au("animationiteration"),Gb=au("animationstart"),Xb=au("transitionend"),Yb=new Map,Qb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Br(i,s){Yb.set(i,s),o(s,[i])}for(var Ld=0;Ld<Qb.length;Ld++){var Ud=Qb[Ld],eM=Ud.toLowerCase(),tM=Ud[0].toUpperCase()+Ud.slice(1);Br(eM,"on"+tM)}Br(Kb,"onAnimationEnd"),Br(Vb,"onAnimationIteration"),Br(Gb,"onAnimationStart"),Br("dblclick","onDoubleClick"),Br("focusin","onFocus"),Br("focusout","onBlur"),Br(Xb,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jo));function Zb(i,s,f){var p=i.type||"unknown-event";i.currentTarget=f,eE(p,s,void 0,i),i.currentTarget=null}function Jb(i,s){s=(s&4)!==0;for(var f=0;f<i.length;f++){var p=i[f],g=p.event;p=p.listeners;e:{var w=void 0;if(s)for(var P=p.length-1;0<=P;P--){var I=p[P],D=I.instance,X=I.currentTarget;if(I=I.listener,D!==w&&g.isPropagationStopped())break e;Zb(g,I,X),w=D}else for(P=0;P<p.length;P++){if(I=p[P],D=I.instance,X=I.currentTarget,I=I.listener,D!==w&&g.isPropagationStopped())break e;Zb(g,I,X),w=D}}}if(zl)throw i=vd,zl=!1,vd=null,i}function Je(i,s){var f=s[Vd];f===void 0&&(f=s[Vd]=new Set);var p=i+"__bubble";f.has(p)||(ew(s,i,2,!1),f.add(p))}function qd(i,s,f){var p=0;s&&(p|=4),ew(f,i,p,s)}var ou="_reactListening"+Math.random().toString(36).slice(2);function es(i){if(!i[ou]){i[ou]=!0,r.forEach(function(f){f!=="selectionchange"&&(nM.has(f)||qd(f,!1,i),qd(f,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[ou]||(s[ou]=!0,qd("selectionchange",!1,s))}}function ew(i,s,f,p){switch(Sb(s)){case 1:var g=vE;break;case 4:g=yE;break;default:g=Sd}f=g.bind(null,s,f,i),g=void 0,!md||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),p?g!==void 0?i.addEventListener(s,f,{capture:!0,passive:g}):i.addEventListener(s,f,!0):g!==void 0?i.addEventListener(s,f,{passive:g}):i.addEventListener(s,f,!1)}function Fd(i,s,f,p,g){var w=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var P=p.tag;if(P===3||P===4){var I=p.stateNode.containerInfo;if(I===g||I.nodeType===8&&I.parentNode===g)break;if(P===4)for(P=p.return;P!==null;){var D=P.tag;if((D===3||D===4)&&(D=P.stateNode.containerInfo,D===g||D.nodeType===8&&D.parentNode===g))return;P=P.return}for(;I!==null;){if(P=ki(I),P===null)return;if(D=P.tag,D===5||D===6){p=w=P;continue e}I=I.parentNode}}p=p.return}ab(function(){var X=w,se=dd(f),le=[];e:{var ae=Yb.get(i);if(ae!==void 0){var pe=_d,xe=i;switch(i){case"keypress":if(eu(f)===0)break e;case"keydown":case"keyup":pe=EE;break;case"focusin":xe="focus",pe=Pd;break;case"focusout":xe="blur",pe=Pd;break;case"beforeblur":case"afterblur":pe=Pd;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=_b;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=bE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=RE;break;case Kb:case Vb:case Gb:pe=SE;break;case Xb:pe=DE;break;case"scroll":pe=gE;break;case"wheel":pe=UE;break;case"copy":case"cut":case"paste":pe=CE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Tb}var be=(s&4)!==0,dt=!be&&i==="scroll",B=be?ae!==null?ae+"Capture":null:ae;be=[];for(var q=X,H;q!==null;){H=q;var fe=H.stateNode;if(H.tag===5&&fe!==null&&(H=fe,B!==null&&(fe=$o(q,B),fe!=null&&be.push(ts(q,fe,H)))),dt)break;q=q.return}0<be.length&&(ae=new pe(ae,xe,null,f,se),le.push({event:ae,listeners:be}))}}if((s&7)===0){e:{if(ae=i==="mouseover"||i==="pointerover",pe=i==="mouseout"||i==="pointerout",ae&&f!==fd&&(xe=f.relatedTarget||f.fromElement)&&(ki(xe)||xe[fr]))break e;if((pe||ae)&&(ae=se.window===se?se:(ae=se.ownerDocument)?ae.defaultView||ae.parentWindow:window,pe?(xe=f.relatedTarget||f.toElement,pe=X,xe=xe?ki(xe):null,xe!==null&&(dt=Si(xe),xe!==dt||xe.tag!==5&&xe.tag!==6)&&(xe=null)):(pe=null,xe=X),pe!==xe)){if(be=_b,fe="onMouseLeave",B="onMouseEnter",q="mouse",(i==="pointerout"||i==="pointerover")&&(be=Tb,fe="onPointerLeave",B="onPointerEnter",q="pointer"),dt=pe==null?ae:ma(pe),H=xe==null?ae:ma(xe),ae=new be(fe,q+"leave",pe,f,se),ae.target=dt,ae.relatedTarget=H,fe=null,ki(se)===X&&(be=new be(B,q+"enter",xe,f,se),be.target=H,be.relatedTarget=dt,fe=be),dt=fe,pe&&xe)t:{for(be=pe,B=xe,q=0,H=be;H;H=ha(H))q++;for(H=0,fe=B;fe;fe=ha(fe))H++;for(;0<q-H;)be=ha(be),q--;for(;0<H-q;)B=ha(B),H--;for(;q--;){if(be===B||B!==null&&be===B.alternate)break t;be=ha(be),B=ha(B)}be=null}else be=null;pe!==null&&tw(le,ae,pe,be,!1),xe!==null&&dt!==null&&tw(le,dt,xe,be,!0)}}e:{if(ae=X?ma(X):window,pe=ae.nodeName&&ae.nodeName.toLowerCase(),pe==="select"||pe==="input"&&ae.type==="file")var we=KE;else if(Ib(ae))if($b)we=YE;else{we=GE;var ke=VE}else(pe=ae.nodeName)&&pe.toLowerCase()==="input"&&(ae.type==="checkbox"||ae.type==="radio")&&(we=XE);if(we&&(we=we(i,X))){Rb(le,we,f,se);break e}ke&&ke(i,ae,X),i==="focusout"&&(ke=ae._wrapperState)&&ke.controlled&&ae.type==="number"&&Qn(ae,"number",ae.value)}switch(ke=X?ma(X):window,i){case"focusin":(Ib(ke)||ke.contentEditable==="true")&&(fa=ke,Rd=X,Zo=null);break;case"focusout":Zo=Rd=fa=null;break;case"mousedown":$d=!0;break;case"contextmenu":case"mouseup":case"dragend":$d=!1,Wb(le,f,se);break;case"selectionchange":if(JE)break;case"keydown":case"keyup":Wb(le,f,se)}var Ce;if(Ad)e:{switch(i){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else ca?Eb(i,f)&&(Pe="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Pe="onCompositionStart");Pe&&(Pb&&f.locale!=="ko"&&(ca||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&ca&&(Ce=kb()):(Fr=se,Cd="value"in Fr?Fr.value:Fr.textContent,ca=!0)),ke=su(X,Pe),0<ke.length&&(Pe=new Ob(Pe,i,null,f,se),le.push({event:Pe,listeners:ke}),Ce?Pe.data=Ce:(Ce=Mb(f),Ce!==null&&(Pe.data=Ce)))),(Ce=FE?BE(i,f):zE(i,f))&&(X=su(X,"onBeforeInput"),0<X.length&&(se=new Ob("onBeforeInput","beforeinput",null,f,se),le.push({event:se,listeners:X}),se.data=Ce))}Jb(le,s)})}function ts(i,s,f){return{instance:i,listener:s,currentTarget:f}}function su(i,s){for(var f=s+"Capture",p=[];i!==null;){var g=i,w=g.stateNode;g.tag===5&&w!==null&&(g=w,w=$o(i,f),w!=null&&p.unshift(ts(i,w,g)),w=$o(i,s),w!=null&&p.push(ts(i,w,g))),i=i.return}return p}function ha(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function tw(i,s,f,p,g){for(var w=s._reactName,P=[];f!==null&&f!==p;){var I=f,D=I.alternate,X=I.stateNode;if(D!==null&&D===p)break;I.tag===5&&X!==null&&(I=X,g?(D=$o(f,w),D!=null&&P.unshift(ts(f,D,I))):g||(D=$o(f,w),D!=null&&P.push(ts(f,D,I)))),f=f.return}P.length!==0&&i.push({event:s,listeners:P})}var rM=/\r\n?/g,iM=/\u0000|\uFFFD/g;function nw(i){return(typeof i=="string"?i:""+i).replace(rM,`
38
+ `).replace(iM,"")}function lu(i,s,f){if(s=nw(s),nw(i)!==s&&f)throw Error(n(425))}function uu(){}var Bd=null,zd=null;function Wd(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Hd=typeof setTimeout=="function"?setTimeout:void 0,aM=typeof clearTimeout=="function"?clearTimeout:void 0,rw=typeof Promise=="function"?Promise:void 0,oM=typeof queueMicrotask=="function"?queueMicrotask:typeof rw<"u"?function(i){return rw.resolve(null).then(i).catch(sM)}:Hd;function sM(i){setTimeout(function(){throw i})}function Kd(i,s){var f=s,p=0;do{var g=f.nextSibling;if(i.removeChild(f),g&&g.nodeType===8)if(f=g.data,f==="/$"){if(p===0){i.removeChild(g),Ho(s);return}p--}else f!=="$"&&f!=="$?"&&f!=="$!"||p++;f=g}while(f);Ho(s)}function zr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function iw(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(s===0)return i;s--}else f==="/$"&&s++}i=i.previousSibling}return null}var pa=Math.random().toString(36).slice(2),er="__reactFiber$"+pa,ns="__reactProps$"+pa,fr="__reactContainer$"+pa,Vd="__reactEvents$"+pa,lM="__reactListeners$"+pa,uM="__reactHandles$"+pa;function ki(i){var s=i[er];if(s)return s;for(var f=i.parentNode;f;){if(s=f[fr]||f[er]){if(f=s.alternate,s.child!==null||f!==null&&f.child!==null)for(i=iw(i);i!==null;){if(f=i[er])return f;i=iw(i)}return s}i=f,f=i.parentNode}return null}function rs(i){return i=i[er]||i[fr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ma(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function cu(i){return i[ns]||null}var Gd=[],va=-1;function Wr(i){return{current:i}}function et(i){0>va||(i.current=Gd[va],Gd[va]=null,va--)}function Ye(i,s){va++,Gd[va]=i.current,i.current=s}var Hr={},$t=Wr(Hr),Xt=Wr(!1),Ci=Hr;function ya(i,s){var f=i.type.contextTypes;if(!f)return Hr;var p=i.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===s)return p.__reactInternalMemoizedMaskedChildContext;var g={},w;for(w in f)g[w]=s[w];return p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=g),g}function Yt(i){return i=i.childContextTypes,i!=null}function fu(){et(Xt),et($t)}function aw(i,s,f){if($t.current!==Hr)throw Error(n(168));Ye($t,s),Ye(Xt,f)}function ow(i,s,f){var p=i.stateNode;if(s=s.childContextTypes,typeof p.getChildContext!="function")return f;p=p.getChildContext();for(var g in p)if(!(g in s))throw Error(n(108,Ae(i)||"Unknown",g));return Z({},f,p)}function du(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Hr,Ci=$t.current,Ye($t,i),Ye(Xt,Xt.current),!0}function sw(i,s,f){var p=i.stateNode;if(!p)throw Error(n(169));f?(i=ow(i,s,Ci),p.__reactInternalMemoizedMergedChildContext=i,et(Xt),et($t),Ye($t,i)):et(Xt),Ye(Xt,f)}var dr=null,hu=!1,Xd=!1;function lw(i){dr===null?dr=[i]:dr.push(i)}function cM(i){hu=!0,lw(i)}function Kr(){if(!Xd&&dr!==null){Xd=!0;var i=0,s=He;try{var f=dr;for(He=1;i<f.length;i++){var p=f[i];do p=p(!0);while(p!==null)}dr=null,hu=!1}catch(g){throw dr!==null&&(dr=dr.slice(i+1)),cb(yd,Kr),g}finally{He=s,Xd=!1}}return null}var ga=[],xa=0,pu=null,mu=0,vn=[],yn=0,_i=null,hr=1,pr="";function Oi(i,s){ga[xa++]=mu,ga[xa++]=pu,pu=i,mu=s}function uw(i,s,f){vn[yn++]=hr,vn[yn++]=pr,vn[yn++]=_i,_i=i;var p=hr;i=pr;var g=32-En(p)-1;p&=~(1<<g),f+=1;var w=32-En(s)+g;if(30<w){var P=g-g%5;w=(p&(1<<P)-1).toString(32),p>>=P,g-=P,hr=1<<32-En(s)+g|f<<g|p,pr=w+i}else hr=1<<w|f<<g|p,pr=i}function Yd(i){i.return!==null&&(Oi(i,1),uw(i,1,0))}function Qd(i){for(;i===pu;)pu=ga[--xa],ga[xa]=null,mu=ga[--xa],ga[xa]=null;for(;i===_i;)_i=vn[--yn],vn[yn]=null,pr=vn[--yn],vn[yn]=null,hr=vn[--yn],vn[yn]=null}var sn=null,ln=null,nt=!1,In=null;function cw(i,s){var f=wn(5,null,null,0);f.elementType="DELETED",f.stateNode=s,f.return=i,s=i.deletions,s===null?(i.deletions=[f],i.flags|=16):s.push(f)}function fw(i,s){switch(i.tag){case 5:var f=i.type;return s=s.nodeType!==1||f.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,sn=i,ln=zr(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,sn=i,ln=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(f=_i!==null?{id:hr,overflow:pr}:null,i.memoizedState={dehydrated:s,treeContext:f,retryLane:1073741824},f=wn(18,null,null,0),f.stateNode=s,f.return=i,i.child=f,sn=i,ln=null,!0):!1;default:return!1}}function Zd(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Jd(i){if(nt){var s=ln;if(s){var f=s;if(!fw(i,s)){if(Zd(i))throw Error(n(418));s=zr(f.nextSibling);var p=sn;s&&fw(i,s)?cw(p,f):(i.flags=i.flags&-4097|2,nt=!1,sn=i)}}else{if(Zd(i))throw Error(n(418));i.flags=i.flags&-4097|2,nt=!1,sn=i}}}function dw(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;sn=i}function vu(i){if(i!==sn)return!1;if(!nt)return dw(i),nt=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!Wd(i.type,i.memoizedProps)),s&&(s=ln)){if(Zd(i))throw hw(),Error(n(418));for(;s;)cw(i,s),s=zr(s.nextSibling)}if(dw(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var f=i.data;if(f==="/$"){if(s===0){ln=zr(i.nextSibling);break e}s--}else f!=="$"&&f!=="$!"&&f!=="$?"||s++}i=i.nextSibling}ln=null}}else ln=sn?zr(i.stateNode.nextSibling):null;return!0}function hw(){for(var i=ln;i;)i=zr(i.nextSibling)}function ba(){ln=sn=null,nt=!1}function eh(i){In===null?In=[i]:In.push(i)}var fM=A.ReactCurrentBatchConfig;function is(i,s,f){if(i=f.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(n(309));var p=f.stateNode}if(!p)throw Error(n(147,i));var g=p,w=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===w?s.ref:(s=function(P){var I=g.refs;P===null?delete I[w]:I[w]=P},s._stringRef=w,s)}if(typeof i!="string")throw Error(n(284));if(!f._owner)throw Error(n(290,i))}return i}function yu(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function pw(i){var s=i._init;return s(i._payload)}function mw(i){function s(B,q){if(i){var H=B.deletions;H===null?(B.deletions=[q],B.flags|=16):H.push(q)}}function f(B,q){if(!i)return null;for(;q!==null;)s(B,q),q=q.sibling;return null}function p(B,q){for(B=new Map;q!==null;)q.key!==null?B.set(q.key,q):B.set(q.index,q),q=q.sibling;return B}function g(B,q){return B=ei(B,q),B.index=0,B.sibling=null,B}function w(B,q,H){return B.index=H,i?(H=B.alternate,H!==null?(H=H.index,H<q?(B.flags|=2,q):H):(B.flags|=2,q)):(B.flags|=1048576,q)}function P(B){return i&&B.alternate===null&&(B.flags|=2),B}function I(B,q,H,fe){return q===null||q.tag!==6?(q=Hh(H,B.mode,fe),q.return=B,q):(q=g(q,H),q.return=B,q)}function D(B,q,H,fe){var we=H.type;return we===N?se(B,q,H.props.children,fe,H.key):q!==null&&(q.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===J&&pw(we)===q.type)?(fe=g(q,H.props),fe.ref=is(B,q,H),fe.return=B,fe):(fe=Fu(H.type,H.key,H.props,null,B.mode,fe),fe.ref=is(B,q,H),fe.return=B,fe)}function X(B,q,H,fe){return q===null||q.tag!==4||q.stateNode.containerInfo!==H.containerInfo||q.stateNode.implementation!==H.implementation?(q=Kh(H,B.mode,fe),q.return=B,q):(q=g(q,H.children||[]),q.return=B,q)}function se(B,q,H,fe,we){return q===null||q.tag!==7?(q=Ri(H,B.mode,fe,we),q.return=B,q):(q=g(q,H),q.return=B,q)}function le(B,q,H){if(typeof q=="string"&&q!==""||typeof q=="number")return q=Hh(""+q,B.mode,H),q.return=B,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case C:return H=Fu(q.type,q.key,q.props,null,B.mode,H),H.ref=is(B,null,q),H.return=B,H;case O:return q=Kh(q,B.mode,H),q.return=B,q;case J:var fe=q._init;return le(B,fe(q._payload),H)}if(Zn(q)||Q(q))return q=Ri(q,B.mode,H,null),q.return=B,q;yu(B,q)}return null}function ae(B,q,H,fe){var we=q!==null?q.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return we!==null?null:I(B,q,""+H,fe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case C:return H.key===we?D(B,q,H,fe):null;case O:return H.key===we?X(B,q,H,fe):null;case J:return we=H._init,ae(B,q,we(H._payload),fe)}if(Zn(H)||Q(H))return we!==null?null:se(B,q,H,fe,null);yu(B,H)}return null}function pe(B,q,H,fe,we){if(typeof fe=="string"&&fe!==""||typeof fe=="number")return B=B.get(H)||null,I(q,B,""+fe,we);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case C:return B=B.get(fe.key===null?H:fe.key)||null,D(q,B,fe,we);case O:return B=B.get(fe.key===null?H:fe.key)||null,X(q,B,fe,we);case J:var ke=fe._init;return pe(B,q,H,ke(fe._payload),we)}if(Zn(fe)||Q(fe))return B=B.get(H)||null,se(q,B,fe,we,null);yu(q,fe)}return null}function xe(B,q,H,fe){for(var we=null,ke=null,Ce=q,Pe=q=0,Ot=null;Ce!==null&&Pe<H.length;Pe++){Ce.index>Pe?(Ot=Ce,Ce=null):Ot=Ce.sibling;var Fe=ae(B,Ce,H[Pe],fe);if(Fe===null){Ce===null&&(Ce=Ot);break}i&&Ce&&Fe.alternate===null&&s(B,Ce),q=w(Fe,q,Pe),ke===null?we=Fe:ke.sibling=Fe,ke=Fe,Ce=Ot}if(Pe===H.length)return f(B,Ce),nt&&Oi(B,Pe),we;if(Ce===null){for(;Pe<H.length;Pe++)Ce=le(B,H[Pe],fe),Ce!==null&&(q=w(Ce,q,Pe),ke===null?we=Ce:ke.sibling=Ce,ke=Ce);return nt&&Oi(B,Pe),we}for(Ce=p(B,Ce);Pe<H.length;Pe++)Ot=pe(Ce,B,Pe,H[Pe],fe),Ot!==null&&(i&&Ot.alternate!==null&&Ce.delete(Ot.key===null?Pe:Ot.key),q=w(Ot,q,Pe),ke===null?we=Ot:ke.sibling=Ot,ke=Ot);return i&&Ce.forEach(function(ti){return s(B,ti)}),nt&&Oi(B,Pe),we}function be(B,q,H,fe){var we=Q(H);if(typeof we!="function")throw Error(n(150));if(H=we.call(H),H==null)throw Error(n(151));for(var ke=we=null,Ce=q,Pe=q=0,Ot=null,Fe=H.next();Ce!==null&&!Fe.done;Pe++,Fe=H.next()){Ce.index>Pe?(Ot=Ce,Ce=null):Ot=Ce.sibling;var ti=ae(B,Ce,Fe.value,fe);if(ti===null){Ce===null&&(Ce=Ot);break}i&&Ce&&ti.alternate===null&&s(B,Ce),q=w(ti,q,Pe),ke===null?we=ti:ke.sibling=ti,ke=ti,Ce=Ot}if(Fe.done)return f(B,Ce),nt&&Oi(B,Pe),we;if(Ce===null){for(;!Fe.done;Pe++,Fe=H.next())Fe=le(B,Fe.value,fe),Fe!==null&&(q=w(Fe,q,Pe),ke===null?we=Fe:ke.sibling=Fe,ke=Fe);return nt&&Oi(B,Pe),we}for(Ce=p(B,Ce);!Fe.done;Pe++,Fe=H.next())Fe=pe(Ce,B,Pe,Fe.value,fe),Fe!==null&&(i&&Fe.alternate!==null&&Ce.delete(Fe.key===null?Pe:Fe.key),q=w(Fe,q,Pe),ke===null?we=Fe:ke.sibling=Fe,ke=Fe);return i&&Ce.forEach(function(WM){return s(B,WM)}),nt&&Oi(B,Pe),we}function dt(B,q,H,fe){if(typeof H=="object"&&H!==null&&H.type===N&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case C:e:{for(var we=H.key,ke=q;ke!==null;){if(ke.key===we){if(we=H.type,we===N){if(ke.tag===7){f(B,ke.sibling),q=g(ke,H.props.children),q.return=B,B=q;break e}}else if(ke.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===J&&pw(we)===ke.type){f(B,ke.sibling),q=g(ke,H.props),q.ref=is(B,ke,H),q.return=B,B=q;break e}f(B,ke);break}else s(B,ke);ke=ke.sibling}H.type===N?(q=Ri(H.props.children,B.mode,fe,H.key),q.return=B,B=q):(fe=Fu(H.type,H.key,H.props,null,B.mode,fe),fe.ref=is(B,q,H),fe.return=B,B=fe)}return P(B);case O:e:{for(ke=H.key;q!==null;){if(q.key===ke)if(q.tag===4&&q.stateNode.containerInfo===H.containerInfo&&q.stateNode.implementation===H.implementation){f(B,q.sibling),q=g(q,H.children||[]),q.return=B,B=q;break e}else{f(B,q);break}else s(B,q);q=q.sibling}q=Kh(H,B.mode,fe),q.return=B,B=q}return P(B);case J:return ke=H._init,dt(B,q,ke(H._payload),fe)}if(Zn(H))return xe(B,q,H,fe);if(Q(H))return be(B,q,H,fe);yu(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,q!==null&&q.tag===6?(f(B,q.sibling),q=g(q,H),q.return=B,B=q):(f(B,q),q=Hh(H,B.mode,fe),q.return=B,B=q),P(B)):f(B,q)}return dt}var wa=mw(!0),vw=mw(!1),gu=Wr(null),xu=null,ja=null,th=null;function nh(){th=ja=xu=null}function rh(i){var s=gu.current;et(gu),i._currentValue=s}function ih(i,s,f){for(;i!==null;){var p=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),i===f)break;i=i.return}}function Sa(i,s){xu=i,th=ja=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Qt=!0),i.firstContext=null)}function gn(i){var s=i._currentValue;if(th!==i)if(i={context:i,memoizedValue:s,next:null},ja===null){if(xu===null)throw Error(n(308));ja=i,xu.dependencies={lanes:0,firstContext:i}}else ja=ja.next=i;return s}var Ti=null;function ah(i){Ti===null?Ti=[i]:Ti.push(i)}function yw(i,s,f,p){var g=s.interleaved;return g===null?(f.next=f,ah(s)):(f.next=g.next,g.next=f),s.interleaved=f,mr(i,p)}function mr(i,s){i.lanes|=s;var f=i.alternate;for(f!==null&&(f.lanes|=s),f=i,i=i.return;i!==null;)i.childLanes|=s,f=i.alternate,f!==null&&(f.childLanes|=s),f=i,i=i.return;return f.tag===3?f.stateNode:null}var Vr=!1;function oh(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gw(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function vr(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Gr(i,s,f){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(Ue&2)!==0){var g=p.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),p.pending=s,mr(i,f)}return g=p.interleaved,g===null?(s.next=s,ah(p)):(s.next=g.next,g.next=s),p.interleaved=s,mr(i,f)}function bu(i,s,f){if(s=s.updateQueue,s!==null&&(s=s.shared,(f&4194240)!==0)){var p=s.lanes;p&=i.pendingLanes,f|=p,s.lanes=f,bd(i,f)}}function xw(i,s){var f=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,f===p)){var g=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var P={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};w===null?g=w=P:w=w.next=P,f=f.next}while(f!==null);w===null?g=w=s:w=w.next=s}else g=w=s;f={baseState:p.baseState,firstBaseUpdate:g,lastBaseUpdate:w,shared:p.shared,effects:p.effects},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=s:i.next=s,f.lastBaseUpdate=s}function wu(i,s,f,p){var g=i.updateQueue;Vr=!1;var w=g.firstBaseUpdate,P=g.lastBaseUpdate,I=g.shared.pending;if(I!==null){g.shared.pending=null;var D=I,X=D.next;D.next=null,P===null?w=X:P.next=X,P=D;var se=i.alternate;se!==null&&(se=se.updateQueue,I=se.lastBaseUpdate,I!==P&&(I===null?se.firstBaseUpdate=X:I.next=X,se.lastBaseUpdate=D))}if(w!==null){var le=g.baseState;P=0,se=X=D=null,I=w;do{var ae=I.lane,pe=I.eventTime;if((p&ae)===ae){se!==null&&(se=se.next={eventTime:pe,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var xe=i,be=I;switch(ae=s,pe=f,be.tag){case 1:if(xe=be.payload,typeof xe=="function"){le=xe.call(pe,le,ae);break e}le=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=be.payload,ae=typeof xe=="function"?xe.call(pe,le,ae):xe,ae==null)break e;le=Z({},le,ae);break e;case 2:Vr=!0}}I.callback!==null&&I.lane!==0&&(i.flags|=64,ae=g.effects,ae===null?g.effects=[I]:ae.push(I))}else pe={eventTime:pe,lane:ae,tag:I.tag,payload:I.payload,callback:I.callback,next:null},se===null?(X=se=pe,D=le):se=se.next=pe,P|=ae;if(I=I.next,I===null){if(I=g.shared.pending,I===null)break;ae=I,I=ae.next,ae.next=null,g.lastBaseUpdate=ae,g.shared.pending=null}}while(!0);if(se===null&&(D=le),g.baseState=D,g.firstBaseUpdate=X,g.lastBaseUpdate=se,s=g.shared.interleaved,s!==null){g=s;do P|=g.lane,g=g.next;while(g!==s)}else w===null&&(g.shared.lanes=0);Ai|=P,i.lanes=P,i.memoizedState=le}}function bw(i,s,f){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var p=i[s],g=p.callback;if(g!==null){if(p.callback=null,p=f,typeof g!="function")throw Error(n(191,g));g.call(p)}}}var as={},tr=Wr(as),os=Wr(as),ss=Wr(as);function Pi(i){if(i===as)throw Error(n(174));return i}function sh(i,s){switch(Ye(ss,s),Ye(os,i),Ye(tr,as),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ld(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=ld(s,i)}et(tr),Ye(tr,s)}function ka(){et(tr),et(os),et(ss)}function ww(i){Pi(ss.current);var s=Pi(tr.current),f=ld(s,i.type);s!==f&&(Ye(os,i),Ye(tr,f))}function lh(i){os.current===i&&(et(tr),et(os))}var it=Wr(0);function ju(i){for(var s=i;s!==null;){if(s.tag===13){var f=s.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var uh=[];function ch(){for(var i=0;i<uh.length;i++)uh[i]._workInProgressVersionPrimary=null;uh.length=0}var Su=A.ReactCurrentDispatcher,fh=A.ReactCurrentBatchConfig,Ni=0,at=null,gt=null,Ct=null,ku=!1,ls=!1,us=0,dM=0;function Dt(){throw Error(n(321))}function dh(i,s){if(s===null)return!1;for(var f=0;f<s.length&&f<i.length;f++)if(!Mn(i[f],s[f]))return!1;return!0}function hh(i,s,f,p,g,w){if(Ni=w,at=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Su.current=i===null||i.memoizedState===null?vM:yM,i=f(p,g),ls){w=0;do{if(ls=!1,us=0,25<=w)throw Error(n(301));w+=1,Ct=gt=null,s.updateQueue=null,Su.current=gM,i=f(p,g)}while(ls)}if(Su.current=Ou,s=gt!==null&&gt.next!==null,Ni=0,Ct=gt=at=null,ku=!1,s)throw Error(n(300));return i}function ph(){var i=us!==0;return us=0,i}function nr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?at.memoizedState=Ct=i:Ct=Ct.next=i,Ct}function xn(){if(gt===null){var i=at.alternate;i=i!==null?i.memoizedState:null}else i=gt.next;var s=Ct===null?at.memoizedState:Ct.next;if(s!==null)Ct=s,gt=i;else{if(i===null)throw Error(n(310));gt=i,i={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Ct===null?at.memoizedState=Ct=i:Ct=Ct.next=i}return Ct}function cs(i,s){return typeof s=="function"?s(i):s}function mh(i){var s=xn(),f=s.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var p=gt,g=p.baseQueue,w=f.pending;if(w!==null){if(g!==null){var P=g.next;g.next=w.next,w.next=P}p.baseQueue=g=w,f.pending=null}if(g!==null){w=g.next,p=p.baseState;var I=P=null,D=null,X=w;do{var se=X.lane;if((Ni&se)===se)D!==null&&(D=D.next={lane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),p=X.hasEagerState?X.eagerState:i(p,X.action);else{var le={lane:se,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null};D===null?(I=D=le,P=p):D=D.next=le,at.lanes|=se,Ai|=se}X=X.next}while(X!==null&&X!==w);D===null?P=p:D.next=I,Mn(p,s.memoizedState)||(Qt=!0),s.memoizedState=p,s.baseState=P,s.baseQueue=D,f.lastRenderedState=p}if(i=f.interleaved,i!==null){g=i;do w=g.lane,at.lanes|=w,Ai|=w,g=g.next;while(g!==i)}else g===null&&(f.lanes=0);return[s.memoizedState,f.dispatch]}function vh(i){var s=xn(),f=s.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var p=f.dispatch,g=f.pending,w=s.memoizedState;if(g!==null){f.pending=null;var P=g=g.next;do w=i(w,P.action),P=P.next;while(P!==g);Mn(w,s.memoizedState)||(Qt=!0),s.memoizedState=w,s.baseQueue===null&&(s.baseState=w),f.lastRenderedState=w}return[w,p]}function jw(){}function Sw(i,s){var f=at,p=xn(),g=s(),w=!Mn(p.memoizedState,g);if(w&&(p.memoizedState=g,Qt=!0),p=p.queue,yh(_w.bind(null,f,p,i),[i]),p.getSnapshot!==s||w||Ct!==null&&Ct.memoizedState.tag&1){if(f.flags|=2048,fs(9,Cw.bind(null,f,p,g,s),void 0,null),_t===null)throw Error(n(349));(Ni&30)!==0||kw(f,s,g)}return g}function kw(i,s,f){i.flags|=16384,i={getSnapshot:s,value:f},s=at.updateQueue,s===null?(s={lastEffect:null,stores:null},at.updateQueue=s,s.stores=[i]):(f=s.stores,f===null?s.stores=[i]:f.push(i))}function Cw(i,s,f,p){s.value=f,s.getSnapshot=p,Ow(s)&&Tw(i)}function _w(i,s,f){return f(function(){Ow(s)&&Tw(i)})}function Ow(i){var s=i.getSnapshot;i=i.value;try{var f=s();return!Mn(i,f)}catch{return!0}}function Tw(i){var s=mr(i,1);s!==null&&Ln(s,i,1,-1)}function Pw(i){var s=nr();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:i},s.queue=i,i=i.dispatch=mM.bind(null,at,i),[s.memoizedState,i]}function fs(i,s,f,p){return i={tag:i,create:s,destroy:f,deps:p,next:null},s=at.updateQueue,s===null?(s={lastEffect:null,stores:null},at.updateQueue=s,s.lastEffect=i.next=i):(f=s.lastEffect,f===null?s.lastEffect=i.next=i:(p=f.next,f.next=i,i.next=p,s.lastEffect=i)),i}function Nw(){return xn().memoizedState}function Cu(i,s,f,p){var g=nr();at.flags|=i,g.memoizedState=fs(1|s,f,void 0,p===void 0?null:p)}function _u(i,s,f,p){var g=xn();p=p===void 0?null:p;var w=void 0;if(gt!==null){var P=gt.memoizedState;if(w=P.destroy,p!==null&&dh(p,P.deps)){g.memoizedState=fs(s,f,w,p);return}}at.flags|=i,g.memoizedState=fs(1|s,f,w,p)}function Aw(i,s){return Cu(8390656,8,i,s)}function yh(i,s){return _u(2048,8,i,s)}function Ew(i,s){return _u(4,2,i,s)}function Mw(i,s){return _u(4,4,i,s)}function Iw(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Rw(i,s,f){return f=f!=null?f.concat([i]):null,_u(4,4,Iw.bind(null,s,i),f)}function gh(){}function $w(i,s){var f=xn();s=s===void 0?null:s;var p=f.memoizedState;return p!==null&&s!==null&&dh(s,p[1])?p[0]:(f.memoizedState=[i,s],i)}function Dw(i,s){var f=xn();s=s===void 0?null:s;var p=f.memoizedState;return p!==null&&s!==null&&dh(s,p[1])?p[0]:(i=i(),f.memoizedState=[i,s],i)}function Lw(i,s,f){return(Ni&21)===0?(i.baseState&&(i.baseState=!1,Qt=!0),i.memoizedState=f):(Mn(f,s)||(f=pb(),at.lanes|=f,Ai|=f,i.baseState=!0),s)}function hM(i,s){var f=He;He=f!==0&&4>f?f:4,i(!0);var p=fh.transition;fh.transition={};try{i(!1),s()}finally{He=f,fh.transition=p}}function Uw(){return xn().memoizedState}function pM(i,s,f){var p=Zr(i);if(f={lane:p,action:f,hasEagerState:!1,eagerState:null,next:null},qw(i))Fw(s,f);else if(f=yw(i,s,f,p),f!==null){var g=Kt();Ln(f,i,p,g),Bw(f,s,p)}}function mM(i,s,f){var p=Zr(i),g={lane:p,action:f,hasEagerState:!1,eagerState:null,next:null};if(qw(i))Fw(s,g);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=s.lastRenderedReducer,w!==null))try{var P=s.lastRenderedState,I=w(P,f);if(g.hasEagerState=!0,g.eagerState=I,Mn(I,P)){var D=s.interleaved;D===null?(g.next=g,ah(s)):(g.next=D.next,D.next=g),s.interleaved=g;return}}catch{}finally{}f=yw(i,s,g,p),f!==null&&(g=Kt(),Ln(f,i,p,g),Bw(f,s,p))}}function qw(i){var s=i.alternate;return i===at||s!==null&&s===at}function Fw(i,s){ls=ku=!0;var f=i.pending;f===null?s.next=s:(s.next=f.next,f.next=s),i.pending=s}function Bw(i,s,f){if((f&4194240)!==0){var p=s.lanes;p&=i.pendingLanes,f|=p,s.lanes=f,bd(i,f)}}var Ou={readContext:gn,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},vM={readContext:gn,useCallback:function(i,s){return nr().memoizedState=[i,s===void 0?null:s],i},useContext:gn,useEffect:Aw,useImperativeHandle:function(i,s,f){return f=f!=null?f.concat([i]):null,Cu(4194308,4,Iw.bind(null,s,i),f)},useLayoutEffect:function(i,s){return Cu(4194308,4,i,s)},useInsertionEffect:function(i,s){return Cu(4,2,i,s)},useMemo:function(i,s){var f=nr();return s=s===void 0?null:s,i=i(),f.memoizedState=[i,s],i},useReducer:function(i,s,f){var p=nr();return s=f!==void 0?f(s):s,p.memoizedState=p.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},p.queue=i,i=i.dispatch=pM.bind(null,at,i),[p.memoizedState,i]},useRef:function(i){var s=nr();return i={current:i},s.memoizedState=i},useState:Pw,useDebugValue:gh,useDeferredValue:function(i){return nr().memoizedState=i},useTransition:function(){var i=Pw(!1),s=i[0];return i=hM.bind(null,i[1]),nr().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,f){var p=at,g=nr();if(nt){if(f===void 0)throw Error(n(407));f=f()}else{if(f=s(),_t===null)throw Error(n(349));(Ni&30)!==0||kw(p,s,f)}g.memoizedState=f;var w={value:f,getSnapshot:s};return g.queue=w,Aw(_w.bind(null,p,w,i),[i]),p.flags|=2048,fs(9,Cw.bind(null,p,w,f,s),void 0,null),f},useId:function(){var i=nr(),s=_t.identifierPrefix;if(nt){var f=pr,p=hr;f=(p&~(1<<32-En(p)-1)).toString(32)+f,s=":"+s+"R"+f,f=us++,0<f&&(s+="H"+f.toString(32)),s+=":"}else f=dM++,s=":"+s+"r"+f.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},yM={readContext:gn,useCallback:$w,useContext:gn,useEffect:yh,useImperativeHandle:Rw,useInsertionEffect:Ew,useLayoutEffect:Mw,useMemo:Dw,useReducer:mh,useRef:Nw,useState:function(){return mh(cs)},useDebugValue:gh,useDeferredValue:function(i){var s=xn();return Lw(s,gt.memoizedState,i)},useTransition:function(){var i=mh(cs)[0],s=xn().memoizedState;return[i,s]},useMutableSource:jw,useSyncExternalStore:Sw,useId:Uw,unstable_isNewReconciler:!1},gM={readContext:gn,useCallback:$w,useContext:gn,useEffect:yh,useImperativeHandle:Rw,useInsertionEffect:Ew,useLayoutEffect:Mw,useMemo:Dw,useReducer:vh,useRef:Nw,useState:function(){return vh(cs)},useDebugValue:gh,useDeferredValue:function(i){var s=xn();return gt===null?s.memoizedState=i:Lw(s,gt.memoizedState,i)},useTransition:function(){var i=vh(cs)[0],s=xn().memoizedState;return[i,s]},useMutableSource:jw,useSyncExternalStore:Sw,useId:Uw,unstable_isNewReconciler:!1};function Rn(i,s){if(i&&i.defaultProps){s=Z({},s),i=i.defaultProps;for(var f in i)s[f]===void 0&&(s[f]=i[f]);return s}return s}function xh(i,s,f,p){s=i.memoizedState,f=f(p,s),f=f==null?s:Z({},s,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Tu={isMounted:function(i){return(i=i._reactInternals)?Si(i)===i:!1},enqueueSetState:function(i,s,f){i=i._reactInternals;var p=Kt(),g=Zr(i),w=vr(p,g);w.payload=s,f!=null&&(w.callback=f),s=Gr(i,w,g),s!==null&&(Ln(s,i,g,p),bu(s,i,g))},enqueueReplaceState:function(i,s,f){i=i._reactInternals;var p=Kt(),g=Zr(i),w=vr(p,g);w.tag=1,w.payload=s,f!=null&&(w.callback=f),s=Gr(i,w,g),s!==null&&(Ln(s,i,g,p),bu(s,i,g))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var f=Kt(),p=Zr(i),g=vr(f,p);g.tag=2,s!=null&&(g.callback=s),s=Gr(i,g,p),s!==null&&(Ln(s,i,p,f),bu(s,i,p))}};function zw(i,s,f,p,g,w,P){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,w,P):s.prototype&&s.prototype.isPureReactComponent?!Qo(f,p)||!Qo(g,w):!0}function Ww(i,s,f){var p=!1,g=Hr,w=s.contextType;return typeof w=="object"&&w!==null?w=gn(w):(g=Yt(s)?Ci:$t.current,p=s.contextTypes,w=(p=p!=null)?ya(i,g):Hr),s=new s(f,w),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Tu,i.stateNode=s,s._reactInternals=i,p&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=g,i.__reactInternalMemoizedMaskedChildContext=w),s}function Hw(i,s,f,p){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(f,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(f,p),s.state!==i&&Tu.enqueueReplaceState(s,s.state,null)}function bh(i,s,f,p){var g=i.stateNode;g.props=f,g.state=i.memoizedState,g.refs={},oh(i);var w=s.contextType;typeof w=="object"&&w!==null?g.context=gn(w):(w=Yt(s)?Ci:$t.current,g.context=ya(i,w)),g.state=i.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(xh(i,s,w,f),g.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(s=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),s!==g.state&&Tu.enqueueReplaceState(g,g.state,null),wu(i,f,g,p),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308)}function Ca(i,s){try{var f="",p=s;do f+=he(p),p=p.return;while(p);var g=f}catch(w){g=`
39
+ Error generating stack: `+w.message+`
40
+ `+w.stack}return{value:i,source:s,stack:g,digest:null}}function wh(i,s,f){return{value:i,source:null,stack:f??null,digest:s??null}}function jh(i,s){try{console.error(s.value)}catch(f){setTimeout(function(){throw f})}}var xM=typeof WeakMap=="function"?WeakMap:Map;function Kw(i,s,f){f=vr(-1,f),f.tag=3,f.payload={element:null};var p=s.value;return f.callback=function(){Ru||(Ru=!0,Dh=p),jh(i,s)},f}function Vw(i,s,f){f=vr(-1,f),f.tag=3;var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var g=s.value;f.payload=function(){return p(g)},f.callback=function(){jh(i,s)}}var w=i.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){jh(i,s),typeof p!="function"&&(Yr===null?Yr=new Set([this]):Yr.add(this));var P=s.stack;this.componentDidCatch(s.value,{componentStack:P!==null?P:""})}),f}function Gw(i,s,f){var p=i.pingCache;if(p===null){p=i.pingCache=new xM;var g=new Set;p.set(s,g)}else g=p.get(s),g===void 0&&(g=new Set,p.set(s,g));g.has(f)||(g.add(f),i=MM.bind(null,i,s,f),s.then(i,i))}function Xw(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Yw(i,s,f,p,g){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(s=vr(-1,1),s.tag=2,Gr(f,s,1))),f.lanes|=1),i):(i.flags|=65536,i.lanes=g,i)}var bM=A.ReactCurrentOwner,Qt=!1;function Ht(i,s,f,p){s.child=i===null?vw(s,null,f,p):wa(s,i.child,f,p)}function Qw(i,s,f,p,g){f=f.render;var w=s.ref;return Sa(s,g),p=hh(i,s,f,p,w,g),f=ph(),i!==null&&!Qt?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~g,yr(i,s,g)):(nt&&f&&Yd(s),s.flags|=1,Ht(i,s,p,g),s.child)}function Zw(i,s,f,p,g){if(i===null){var w=f.type;return typeof w=="function"&&!Wh(w)&&w.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(s.tag=15,s.type=w,Jw(i,s,w,p,g)):(i=Fu(f.type,null,p,s,s.mode,g),i.ref=s.ref,i.return=s,s.child=i)}if(w=i.child,(i.lanes&g)===0){var P=w.memoizedProps;if(f=f.compare,f=f!==null?f:Qo,f(P,p)&&i.ref===s.ref)return yr(i,s,g)}return s.flags|=1,i=ei(w,p),i.ref=s.ref,i.return=s,s.child=i}function Jw(i,s,f,p,g){if(i!==null){var w=i.memoizedProps;if(Qo(w,p)&&i.ref===s.ref)if(Qt=!1,s.pendingProps=p=w,(i.lanes&g)!==0)(i.flags&131072)!==0&&(Qt=!0);else return s.lanes=i.lanes,yr(i,s,g)}return Sh(i,s,f,p,g)}function e1(i,s,f){var p=s.pendingProps,g=p.children,w=i!==null?i.memoizedState:null;if(p.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ye(Oa,un),un|=f;else{if((f&1073741824)===0)return i=w!==null?w.baseLanes|f:f,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,Ye(Oa,un),un|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=w!==null?w.baseLanes:f,Ye(Oa,un),un|=p}else w!==null?(p=w.baseLanes|f,s.memoizedState=null):p=f,Ye(Oa,un),un|=p;return Ht(i,s,g,f),s.child}function t1(i,s){var f=s.ref;(i===null&&f!==null||i!==null&&i.ref!==f)&&(s.flags|=512,s.flags|=2097152)}function Sh(i,s,f,p,g){var w=Yt(f)?Ci:$t.current;return w=ya(s,w),Sa(s,g),f=hh(i,s,f,p,w,g),p=ph(),i!==null&&!Qt?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~g,yr(i,s,g)):(nt&&p&&Yd(s),s.flags|=1,Ht(i,s,f,g),s.child)}function n1(i,s,f,p,g){if(Yt(f)){var w=!0;du(s)}else w=!1;if(Sa(s,g),s.stateNode===null)Nu(i,s),Ww(s,f,p),bh(s,f,p,g),p=!0;else if(i===null){var P=s.stateNode,I=s.memoizedProps;P.props=I;var D=P.context,X=f.contextType;typeof X=="object"&&X!==null?X=gn(X):(X=Yt(f)?Ci:$t.current,X=ya(s,X));var se=f.getDerivedStateFromProps,le=typeof se=="function"||typeof P.getSnapshotBeforeUpdate=="function";le||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(I!==p||D!==X)&&Hw(s,P,p,X),Vr=!1;var ae=s.memoizedState;P.state=ae,wu(s,p,P,g),D=s.memoizedState,I!==p||ae!==D||Xt.current||Vr?(typeof se=="function"&&(xh(s,f,se,p),D=s.memoizedState),(I=Vr||zw(s,f,I,p,ae,D,X))?(le||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(s.flags|=4194308)):(typeof P.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=D),P.props=p,P.state=D,P.context=X,p=I):(typeof P.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{P=s.stateNode,gw(i,s),I=s.memoizedProps,X=s.type===s.elementType?I:Rn(s.type,I),P.props=X,le=s.pendingProps,ae=P.context,D=f.contextType,typeof D=="object"&&D!==null?D=gn(D):(D=Yt(f)?Ci:$t.current,D=ya(s,D));var pe=f.getDerivedStateFromProps;(se=typeof pe=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(I!==le||ae!==D)&&Hw(s,P,p,D),Vr=!1,ae=s.memoizedState,P.state=ae,wu(s,p,P,g);var xe=s.memoizedState;I!==le||ae!==xe||Xt.current||Vr?(typeof pe=="function"&&(xh(s,f,pe,p),xe=s.memoizedState),(X=Vr||zw(s,f,X,p,ae,xe,D)||!1)?(se||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(p,xe,D),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(p,xe,D)),typeof P.componentDidUpdate=="function"&&(s.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof P.componentDidUpdate!="function"||I===i.memoizedProps&&ae===i.memoizedState||(s.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&ae===i.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=xe),P.props=p,P.state=xe,P.context=D,p=X):(typeof P.componentDidUpdate!="function"||I===i.memoizedProps&&ae===i.memoizedState||(s.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&ae===i.memoizedState||(s.flags|=1024),p=!1)}return kh(i,s,f,p,w,g)}function kh(i,s,f,p,g,w){t1(i,s);var P=(s.flags&128)!==0;if(!p&&!P)return g&&sw(s,f,!1),yr(i,s,w);p=s.stateNode,bM.current=s;var I=P&&typeof f.getDerivedStateFromError!="function"?null:p.render();return s.flags|=1,i!==null&&P?(s.child=wa(s,i.child,null,w),s.child=wa(s,null,I,w)):Ht(i,s,I,w),s.memoizedState=p.state,g&&sw(s,f,!0),s.child}function r1(i){var s=i.stateNode;s.pendingContext?aw(i,s.pendingContext,s.pendingContext!==s.context):s.context&&aw(i,s.context,!1),sh(i,s.containerInfo)}function i1(i,s,f,p,g){return ba(),eh(g),s.flags|=256,Ht(i,s,f,p),s.child}var Ch={dehydrated:null,treeContext:null,retryLane:0};function _h(i){return{baseLanes:i,cachePool:null,transitions:null}}function a1(i,s,f){var p=s.pendingProps,g=it.current,w=!1,P=(s.flags&128)!==0,I;if((I=P)||(I=i!==null&&i.memoizedState===null?!1:(g&2)!==0),I?(w=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(g|=1),Ye(it,g&1),i===null)return Jd(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(P=p.children,i=p.fallback,w?(p=s.mode,w=s.child,P={mode:"hidden",children:P},(p&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=P):w=Bu(P,p,0,null),i=Ri(i,p,f,null),w.return=s,i.return=s,w.sibling=i,s.child=w,s.child.memoizedState=_h(f),s.memoizedState=Ch,i):Oh(s,P));if(g=i.memoizedState,g!==null&&(I=g.dehydrated,I!==null))return wM(i,s,P,p,I,g,f);if(w){w=p.fallback,P=s.mode,g=i.child,I=g.sibling;var D={mode:"hidden",children:p.children};return(P&1)===0&&s.child!==g?(p=s.child,p.childLanes=0,p.pendingProps=D,s.deletions=null):(p=ei(g,D),p.subtreeFlags=g.subtreeFlags&14680064),I!==null?w=ei(I,w):(w=Ri(w,P,f,null),w.flags|=2),w.return=s,p.return=s,p.sibling=w,s.child=p,p=w,w=s.child,P=i.child.memoizedState,P=P===null?_h(f):{baseLanes:P.baseLanes|f,cachePool:null,transitions:P.transitions},w.memoizedState=P,w.childLanes=i.childLanes&~f,s.memoizedState=Ch,p}return w=i.child,i=w.sibling,p=ei(w,{mode:"visible",children:p.children}),(s.mode&1)===0&&(p.lanes=f),p.return=s,p.sibling=null,i!==null&&(f=s.deletions,f===null?(s.deletions=[i],s.flags|=16):f.push(i)),s.child=p,s.memoizedState=null,p}function Oh(i,s){return s=Bu({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function Pu(i,s,f,p){return p!==null&&eh(p),wa(s,i.child,null,f),i=Oh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function wM(i,s,f,p,g,w,P){if(f)return s.flags&256?(s.flags&=-257,p=wh(Error(n(422))),Pu(i,s,P,p)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(w=p.fallback,g=s.mode,p=Bu({mode:"visible",children:p.children},g,0,null),w=Ri(w,g,P,null),w.flags|=2,p.return=s,w.return=s,p.sibling=w,s.child=p,(s.mode&1)!==0&&wa(s,i.child,null,P),s.child.memoizedState=_h(P),s.memoizedState=Ch,w);if((s.mode&1)===0)return Pu(i,s,P,null);if(g.data==="$!"){if(p=g.nextSibling&&g.nextSibling.dataset,p)var I=p.dgst;return p=I,w=Error(n(419)),p=wh(w,p,void 0),Pu(i,s,P,p)}if(I=(P&i.childLanes)!==0,Qt||I){if(p=_t,p!==null){switch(P&-P){case 4:g=2;break;case 16:g=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(p.suspendedLanes|P))!==0?0:g,g!==0&&g!==w.retryLane&&(w.retryLane=g,mr(i,g),Ln(p,i,g,-1))}return zh(),p=wh(Error(n(421))),Pu(i,s,P,p)}return g.data==="$?"?(s.flags|=128,s.child=i.child,s=IM.bind(null,i),g._reactRetry=s,null):(i=w.treeContext,ln=zr(g.nextSibling),sn=s,nt=!0,In=null,i!==null&&(vn[yn++]=hr,vn[yn++]=pr,vn[yn++]=_i,hr=i.id,pr=i.overflow,_i=s),s=Oh(s,p.children),s.flags|=4096,s)}function o1(i,s,f){i.lanes|=s;var p=i.alternate;p!==null&&(p.lanes|=s),ih(i.return,s,f)}function Th(i,s,f,p,g){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:f,tailMode:g}:(w.isBackwards=s,w.rendering=null,w.renderingStartTime=0,w.last=p,w.tail=f,w.tailMode=g)}function s1(i,s,f){var p=s.pendingProps,g=p.revealOrder,w=p.tail;if(Ht(i,s,p.children,f),p=it.current,(p&2)!==0)p=p&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&o1(i,f,s);else if(i.tag===19)o1(i,f,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}p&=1}if(Ye(it,p),(s.mode&1)===0)s.memoizedState=null;else switch(g){case"forwards":for(f=s.child,g=null;f!==null;)i=f.alternate,i!==null&&ju(i)===null&&(g=f),f=f.sibling;f=g,f===null?(g=s.child,s.child=null):(g=f.sibling,f.sibling=null),Th(s,!1,g,f,w);break;case"backwards":for(f=null,g=s.child,s.child=null;g!==null;){if(i=g.alternate,i!==null&&ju(i)===null){s.child=g;break}i=g.sibling,g.sibling=f,f=g,g=i}Th(s,!0,f,null,w);break;case"together":Th(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Nu(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function yr(i,s,f){if(i!==null&&(s.dependencies=i.dependencies),Ai|=s.lanes,(f&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,f=ei(i,i.pendingProps),s.child=f,f.return=s;i.sibling!==null;)i=i.sibling,f=f.sibling=ei(i,i.pendingProps),f.return=s;f.sibling=null}return s.child}function jM(i,s,f){switch(s.tag){case 3:r1(s),ba();break;case 5:ww(s);break;case 1:Yt(s.type)&&du(s);break;case 4:sh(s,s.stateNode.containerInfo);break;case 10:var p=s.type._context,g=s.memoizedProps.value;Ye(gu,p._currentValue),p._currentValue=g;break;case 13:if(p=s.memoizedState,p!==null)return p.dehydrated!==null?(Ye(it,it.current&1),s.flags|=128,null):(f&s.child.childLanes)!==0?a1(i,s,f):(Ye(it,it.current&1),i=yr(i,s,f),i!==null?i.sibling:null);Ye(it,it.current&1);break;case 19:if(p=(f&s.childLanes)!==0,(i.flags&128)!==0){if(p)return s1(i,s,f);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Ye(it,it.current),p)break;return null;case 22:case 23:return s.lanes=0,e1(i,s,f)}return yr(i,s,f)}var l1,Ph,u1,c1;l1=function(i,s){for(var f=s.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===s)break;for(;f.sibling===null;){if(f.return===null||f.return===s)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Ph=function(){},u1=function(i,s,f,p){var g=i.memoizedProps;if(g!==p){i=s.stateNode,Pi(tr.current);var w=null;switch(f){case"input":g=Re(i,g),p=Re(i,p),w=[];break;case"select":g=Z({},g,{value:void 0}),p=Z({},p,{value:void 0}),w=[];break;case"textarea":g=An(i,g),p=An(i,p),w=[];break;default:typeof g.onClick!="function"&&typeof p.onClick=="function"&&(i.onclick=uu)}ud(f,p);var P;f=null;for(X in g)if(!p.hasOwnProperty(X)&&g.hasOwnProperty(X)&&g[X]!=null)if(X==="style"){var I=g[X];for(P in I)I.hasOwnProperty(P)&&(f||(f={}),f[P]="")}else X!=="dangerouslySetInnerHTML"&&X!=="children"&&X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&X!=="autoFocus"&&(a.hasOwnProperty(X)?w||(w=[]):(w=w||[]).push(X,null));for(X in p){var D=p[X];if(I=g!=null?g[X]:void 0,p.hasOwnProperty(X)&&D!==I&&(D!=null||I!=null))if(X==="style")if(I){for(P in I)!I.hasOwnProperty(P)||D&&D.hasOwnProperty(P)||(f||(f={}),f[P]="");for(P in D)D.hasOwnProperty(P)&&I[P]!==D[P]&&(f||(f={}),f[P]=D[P])}else f||(w||(w=[]),w.push(X,f)),f=D;else X==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,I=I?I.__html:void 0,D!=null&&I!==D&&(w=w||[]).push(X,D)):X==="children"?typeof D!="string"&&typeof D!="number"||(w=w||[]).push(X,""+D):X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&(a.hasOwnProperty(X)?(D!=null&&X==="onScroll"&&Je("scroll",i),w||I===D||(w=[])):(w=w||[]).push(X,D))}f&&(w=w||[]).push("style",f);var X=w;(s.updateQueue=X)&&(s.flags|=4)}},c1=function(i,s,f,p){f!==p&&(s.flags|=4)};function ds(i,s){if(!nt)switch(i.tailMode){case"hidden":s=i.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var p=null;f!==null;)f.alternate!==null&&(p=f),f=f.sibling;p===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Lt(i){var s=i.alternate!==null&&i.alternate.child===i.child,f=0,p=0;if(s)for(var g=i.child;g!==null;)f|=g.lanes|g.childLanes,p|=g.subtreeFlags&14680064,p|=g.flags&14680064,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)f|=g.lanes|g.childLanes,p|=g.subtreeFlags,p|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=p,i.childLanes=f,s}function SM(i,s,f){var p=s.pendingProps;switch(Qd(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(s),null;case 1:return Yt(s.type)&&fu(),Lt(s),null;case 3:return p=s.stateNode,ka(),et(Xt),et($t),ch(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(vu(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,In!==null&&(qh(In),In=null))),Ph(i,s),Lt(s),null;case 5:lh(s);var g=Pi(ss.current);if(f=s.type,i!==null&&s.stateNode!=null)u1(i,s,f,p,g),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!p){if(s.stateNode===null)throw Error(n(166));return Lt(s),null}if(i=Pi(tr.current),vu(s)){p=s.stateNode,f=s.type;var w=s.memoizedProps;switch(p[er]=s,p[ns]=w,i=(s.mode&1)!==0,f){case"dialog":Je("cancel",p),Je("close",p);break;case"iframe":case"object":case"embed":Je("load",p);break;case"video":case"audio":for(g=0;g<Jo.length;g++)Je(Jo[g],p);break;case"source":Je("error",p);break;case"img":case"image":case"link":Je("error",p),Je("load",p);break;case"details":Je("toggle",p);break;case"input":ot(p,w),Je("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!w.multiple},Je("invalid",p);break;case"textarea":aa(p,w),Je("invalid",p)}ud(f,w),g=null;for(var P in w)if(w.hasOwnProperty(P)){var I=w[P];P==="children"?typeof I=="string"?p.textContent!==I&&(w.suppressHydrationWarning!==!0&&lu(p.textContent,I,i),g=["children",I]):typeof I=="number"&&p.textContent!==""+I&&(w.suppressHydrationWarning!==!0&&lu(p.textContent,I,i),g=["children",""+I]):a.hasOwnProperty(P)&&I!=null&&P==="onScroll"&&Je("scroll",p)}switch(f){case"input":Te(p),Nn(p,w,!0);break;case"textarea":Te(p),Mo(p);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(p.onclick=uu)}p=g,s.updateQueue=p,p!==null&&(s.flags|=4)}else{P=g.nodeType===9?g:g.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=Y0(f)),i==="http://www.w3.org/1999/xhtml"?f==="script"?(i=P.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof p.is=="string"?i=P.createElement(f,{is:p.is}):(i=P.createElement(f),f==="select"&&(P=i,p.multiple?P.multiple=!0:p.size&&(P.size=p.size))):i=P.createElementNS(i,f),i[er]=s,i[ns]=p,l1(i,s,!1,!1),s.stateNode=i;e:{switch(P=cd(f,p),f){case"dialog":Je("cancel",i),Je("close",i),g=p;break;case"iframe":case"object":case"embed":Je("load",i),g=p;break;case"video":case"audio":for(g=0;g<Jo.length;g++)Je(Jo[g],i);g=p;break;case"source":Je("error",i),g=p;break;case"img":case"image":case"link":Je("error",i),Je("load",i),g=p;break;case"details":Je("toggle",i),g=p;break;case"input":ot(i,p),g=Re(i,p),Je("invalid",i);break;case"option":g=p;break;case"select":i._wrapperState={wasMultiple:!!p.multiple},g=Z({},p,{value:void 0}),Je("invalid",i);break;case"textarea":aa(i,p),g=An(i,p),Je("invalid",i);break;default:g=p}ud(f,g),I=g;for(w in I)if(I.hasOwnProperty(w)){var D=I[w];w==="style"?J0(i,D):w==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&Q0(i,D)):w==="children"?typeof D=="string"?(f!=="textarea"||D!=="")&&Io(i,D):typeof D=="number"&&Io(i,""+D):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(a.hasOwnProperty(w)?D!=null&&w==="onScroll"&&Je("scroll",i):D!=null&&T(i,w,D,P))}switch(f){case"input":Te(i),Nn(i,p,!1);break;case"textarea":Te(i),Mo(i);break;case"option":p.value!=null&&i.setAttribute("value",""+re(p.value));break;case"select":i.multiple=!!p.multiple,w=p.value,w!=null?Gt(i,!!p.multiple,w,!1):p.defaultValue!=null&&Gt(i,!!p.multiple,p.defaultValue,!0);break;default:typeof g.onClick=="function"&&(i.onclick=uu)}switch(f){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}}p&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Lt(s),null;case 6:if(i&&s.stateNode!=null)c1(i,s,i.memoizedProps,p);else{if(typeof p!="string"&&s.stateNode===null)throw Error(n(166));if(f=Pi(ss.current),Pi(tr.current),vu(s)){if(p=s.stateNode,f=s.memoizedProps,p[er]=s,(w=p.nodeValue!==f)&&(i=sn,i!==null))switch(i.tag){case 3:lu(p.nodeValue,f,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&lu(p.nodeValue,f,(i.mode&1)!==0)}w&&(s.flags|=4)}else p=(f.nodeType===9?f:f.ownerDocument).createTextNode(p),p[er]=s,s.stateNode=p}return Lt(s),null;case 13:if(et(it),p=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(nt&&ln!==null&&(s.mode&1)!==0&&(s.flags&128)===0)hw(),ba(),s.flags|=98560,w=!1;else if(w=vu(s),p!==null&&p.dehydrated!==null){if(i===null){if(!w)throw Error(n(318));if(w=s.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[er]=s}else ba(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Lt(s),w=!1}else In!==null&&(qh(In),In=null),w=!0;if(!w)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=f,s):(p=p!==null,p!==(i!==null&&i.memoizedState!==null)&&p&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(it.current&1)!==0?xt===0&&(xt=3):zh())),s.updateQueue!==null&&(s.flags|=4),Lt(s),null);case 4:return ka(),Ph(i,s),i===null&&es(s.stateNode.containerInfo),Lt(s),null;case 10:return rh(s.type._context),Lt(s),null;case 17:return Yt(s.type)&&fu(),Lt(s),null;case 19:if(et(it),w=s.memoizedState,w===null)return Lt(s),null;if(p=(s.flags&128)!==0,P=w.rendering,P===null)if(p)ds(w,!1);else{if(xt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(P=ju(i),P!==null){for(s.flags|=128,ds(w,!1),p=P.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),s.subtreeFlags=0,p=f,f=s.child;f!==null;)w=f,i=p,w.flags&=14680066,P=w.alternate,P===null?(w.childLanes=0,w.lanes=i,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=P.childLanes,w.lanes=P.lanes,w.child=P.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=P.memoizedProps,w.memoizedState=P.memoizedState,w.updateQueue=P.updateQueue,w.type=P.type,i=P.dependencies,w.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),f=f.sibling;return Ye(it,it.current&1|2),s.child}i=i.sibling}w.tail!==null&&ft()>Ta&&(s.flags|=128,p=!0,ds(w,!1),s.lanes=4194304)}else{if(!p)if(i=ju(P),i!==null){if(s.flags|=128,p=!0,f=i.updateQueue,f!==null&&(s.updateQueue=f,s.flags|=4),ds(w,!0),w.tail===null&&w.tailMode==="hidden"&&!P.alternate&&!nt)return Lt(s),null}else 2*ft()-w.renderingStartTime>Ta&&f!==1073741824&&(s.flags|=128,p=!0,ds(w,!1),s.lanes=4194304);w.isBackwards?(P.sibling=s.child,s.child=P):(f=w.last,f!==null?f.sibling=P:s.child=P,w.last=P)}return w.tail!==null?(s=w.tail,w.rendering=s,w.tail=s.sibling,w.renderingStartTime=ft(),s.sibling=null,f=it.current,Ye(it,p?f&1|2:f&1),s):(Lt(s),null);case 22:case 23:return Bh(),p=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==p&&(s.flags|=8192),p&&(s.mode&1)!==0?(un&1073741824)!==0&&(Lt(s),s.subtreeFlags&6&&(s.flags|=8192)):Lt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function kM(i,s){switch(Qd(s),s.tag){case 1:return Yt(s.type)&&fu(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ka(),et(Xt),et($t),ch(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return lh(s),null;case 13:if(et(it),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));ba()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return et(it),null;case 4:return ka(),null;case 10:return rh(s.type._context),null;case 22:case 23:return Bh(),null;case 24:return null;default:return null}}var Au=!1,Ut=!1,CM=typeof WeakSet=="function"?WeakSet:Set,ye=null;function _a(i,s){var f=i.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(p){lt(i,s,p)}else f.current=null}function Nh(i,s,f){try{f()}catch(p){lt(i,s,p)}}var f1=!1;function _M(i,s){if(Bd=Ql,i=zb(),Id(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var p=f.getSelection&&f.getSelection();if(p&&p.rangeCount!==0){f=p.anchorNode;var g=p.anchorOffset,w=p.focusNode;p=p.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var P=0,I=-1,D=-1,X=0,se=0,le=i,ae=null;t:for(;;){for(var pe;le!==f||g!==0&&le.nodeType!==3||(I=P+g),le!==w||p!==0&&le.nodeType!==3||(D=P+p),le.nodeType===3&&(P+=le.nodeValue.length),(pe=le.firstChild)!==null;)ae=le,le=pe;for(;;){if(le===i)break t;if(ae===f&&++X===g&&(I=P),ae===w&&++se===p&&(D=P),(pe=le.nextSibling)!==null)break;le=ae,ae=le.parentNode}le=pe}f=I===-1||D===-1?null:{start:I,end:D}}else f=null}f=f||{start:0,end:0}}else f=null;for(zd={focusedElem:i,selectionRange:f},Ql=!1,ye=s;ye!==null;)if(s=ye,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,ye=i;else for(;ye!==null;){s=ye;try{var xe=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(xe!==null){var be=xe.memoizedProps,dt=xe.memoizedState,B=s.stateNode,q=B.getSnapshotBeforeUpdate(s.elementType===s.type?be:Rn(s.type,be),dt);B.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var H=s.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(fe){lt(s,s.return,fe)}if(i=s.sibling,i!==null){i.return=s.return,ye=i;break}ye=s.return}return xe=f1,f1=!1,xe}function hs(i,s,f){var p=s.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var g=p=p.next;do{if((g.tag&i)===i){var w=g.destroy;g.destroy=void 0,w!==void 0&&Nh(s,f,w)}g=g.next}while(g!==p)}}function Eu(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var f=s=s.next;do{if((f.tag&i)===i){var p=f.create;f.destroy=p()}f=f.next}while(f!==s)}}function Ah(i){var s=i.ref;if(s!==null){var f=i.stateNode;switch(i.tag){case 5:i=f;break;default:i=f}typeof s=="function"?s(i):s.current=i}}function d1(i){var s=i.alternate;s!==null&&(i.alternate=null,d1(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[er],delete s[ns],delete s[Vd],delete s[lM],delete s[uM])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function h1(i){return i.tag===5||i.tag===3||i.tag===4}function p1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||h1(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Eh(i,s,f){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?f.nodeType===8?f.parentNode.insertBefore(i,s):f.insertBefore(i,s):(f.nodeType===8?(s=f.parentNode,s.insertBefore(i,f)):(s=f,s.appendChild(i)),f=f._reactRootContainer,f!=null||s.onclick!==null||(s.onclick=uu));else if(p!==4&&(i=i.child,i!==null))for(Eh(i,s,f),i=i.sibling;i!==null;)Eh(i,s,f),i=i.sibling}function Mh(i,s,f){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?f.insertBefore(i,s):f.appendChild(i);else if(p!==4&&(i=i.child,i!==null))for(Mh(i,s,f),i=i.sibling;i!==null;)Mh(i,s,f),i=i.sibling}var Et=null,$n=!1;function Xr(i,s,f){for(f=f.child;f!==null;)m1(i,s,f),f=f.sibling}function m1(i,s,f){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Hl,f)}catch{}switch(f.tag){case 5:Ut||_a(f,s);case 6:var p=Et,g=$n;Et=null,Xr(i,s,f),Et=p,$n=g,Et!==null&&($n?(i=Et,f=f.stateNode,i.nodeType===8?i.parentNode.removeChild(f):i.removeChild(f)):Et.removeChild(f.stateNode));break;case 18:Et!==null&&($n?(i=Et,f=f.stateNode,i.nodeType===8?Kd(i.parentNode,f):i.nodeType===1&&Kd(i,f),Ho(i)):Kd(Et,f.stateNode));break;case 4:p=Et,g=$n,Et=f.stateNode.containerInfo,$n=!0,Xr(i,s,f),Et=p,$n=g;break;case 0:case 11:case 14:case 15:if(!Ut&&(p=f.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){g=p=p.next;do{var w=g,P=w.destroy;w=w.tag,P!==void 0&&((w&2)!==0||(w&4)!==0)&&Nh(f,s,P),g=g.next}while(g!==p)}Xr(i,s,f);break;case 1:if(!Ut&&(_a(f,s),p=f.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=f.memoizedProps,p.state=f.memoizedState,p.componentWillUnmount()}catch(I){lt(f,s,I)}Xr(i,s,f);break;case 21:Xr(i,s,f);break;case 22:f.mode&1?(Ut=(p=Ut)||f.memoizedState!==null,Xr(i,s,f),Ut=p):Xr(i,s,f);break;default:Xr(i,s,f)}}function v1(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var f=i.stateNode;f===null&&(f=i.stateNode=new CM),s.forEach(function(p){var g=RM.bind(null,i,p);f.has(p)||(f.add(p),p.then(g,g))})}}function Dn(i,s){var f=s.deletions;if(f!==null)for(var p=0;p<f.length;p++){var g=f[p];try{var w=i,P=s,I=P;e:for(;I!==null;){switch(I.tag){case 5:Et=I.stateNode,$n=!1;break e;case 3:Et=I.stateNode.containerInfo,$n=!0;break e;case 4:Et=I.stateNode.containerInfo,$n=!0;break e}I=I.return}if(Et===null)throw Error(n(160));m1(w,P,g),Et=null,$n=!1;var D=g.alternate;D!==null&&(D.return=null),g.return=null}catch(X){lt(g,s,X)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)y1(s,i),s=s.sibling}function y1(i,s){var f=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Dn(s,i),rr(i),p&4){try{hs(3,i,i.return),Eu(3,i)}catch(be){lt(i,i.return,be)}try{hs(5,i,i.return)}catch(be){lt(i,i.return,be)}}break;case 1:Dn(s,i),rr(i),p&512&&f!==null&&_a(f,f.return);break;case 5:if(Dn(s,i),rr(i),p&512&&f!==null&&_a(f,f.return),i.flags&32){var g=i.stateNode;try{Io(g,"")}catch(be){lt(i,i.return,be)}}if(p&4&&(g=i.stateNode,g!=null)){var w=i.memoizedProps,P=f!==null?f.memoizedProps:w,I=i.type,D=i.updateQueue;if(i.updateQueue=null,D!==null)try{I==="input"&&w.type==="radio"&&w.name!=null&&st(g,w),cd(I,P);var X=cd(I,w);for(P=0;P<D.length;P+=2){var se=D[P],le=D[P+1];se==="style"?J0(g,le):se==="dangerouslySetInnerHTML"?Q0(g,le):se==="children"?Io(g,le):T(g,se,le,X)}switch(I){case"input":kt(g,w);break;case"textarea":Eo(g,w);break;case"select":var ae=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!w.multiple;var pe=w.value;pe!=null?Gt(g,!!w.multiple,pe,!1):ae!==!!w.multiple&&(w.defaultValue!=null?Gt(g,!!w.multiple,w.defaultValue,!0):Gt(g,!!w.multiple,w.multiple?[]:"",!1))}g[ns]=w}catch(be){lt(i,i.return,be)}}break;case 6:if(Dn(s,i),rr(i),p&4){if(i.stateNode===null)throw Error(n(162));g=i.stateNode,w=i.memoizedProps;try{g.nodeValue=w}catch(be){lt(i,i.return,be)}}break;case 3:if(Dn(s,i),rr(i),p&4&&f!==null&&f.memoizedState.isDehydrated)try{Ho(s.containerInfo)}catch(be){lt(i,i.return,be)}break;case 4:Dn(s,i),rr(i);break;case 13:Dn(s,i),rr(i),g=i.child,g.flags&8192&&(w=g.memoizedState!==null,g.stateNode.isHidden=w,!w||g.alternate!==null&&g.alternate.memoizedState!==null||($h=ft())),p&4&&v1(i);break;case 22:if(se=f!==null&&f.memoizedState!==null,i.mode&1?(Ut=(X=Ut)||se,Dn(s,i),Ut=X):Dn(s,i),rr(i),p&8192){if(X=i.memoizedState!==null,(i.stateNode.isHidden=X)&&!se&&(i.mode&1)!==0)for(ye=i,se=i.child;se!==null;){for(le=ye=se;ye!==null;){switch(ae=ye,pe=ae.child,ae.tag){case 0:case 11:case 14:case 15:hs(4,ae,ae.return);break;case 1:_a(ae,ae.return);var xe=ae.stateNode;if(typeof xe.componentWillUnmount=="function"){p=ae,f=ae.return;try{s=p,xe.props=s.memoizedProps,xe.state=s.memoizedState,xe.componentWillUnmount()}catch(be){lt(p,f,be)}}break;case 5:_a(ae,ae.return);break;case 22:if(ae.memoizedState!==null){b1(le);continue}}pe!==null?(pe.return=ae,ye=pe):b1(le)}se=se.sibling}e:for(se=null,le=i;;){if(le.tag===5){if(se===null){se=le;try{g=le.stateNode,X?(w=g.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(I=le.stateNode,D=le.memoizedProps.style,P=D!=null&&D.hasOwnProperty("display")?D.display:null,I.style.display=Z0("display",P))}catch(be){lt(i,i.return,be)}}}else if(le.tag===6){if(se===null)try{le.stateNode.nodeValue=X?"":le.memoizedProps}catch(be){lt(i,i.return,be)}}else if((le.tag!==22&&le.tag!==23||le.memoizedState===null||le===i)&&le.child!==null){le.child.return=le,le=le.child;continue}if(le===i)break e;for(;le.sibling===null;){if(le.return===null||le.return===i)break e;se===le&&(se=null),le=le.return}se===le&&(se=null),le.sibling.return=le.return,le=le.sibling}}break;case 19:Dn(s,i),rr(i),p&4&&v1(i);break;case 21:break;default:Dn(s,i),rr(i)}}function rr(i){var s=i.flags;if(s&2){try{e:{for(var f=i.return;f!==null;){if(h1(f)){var p=f;break e}f=f.return}throw Error(n(160))}switch(p.tag){case 5:var g=p.stateNode;p.flags&32&&(Io(g,""),p.flags&=-33);var w=p1(i);Mh(i,w,g);break;case 3:case 4:var P=p.stateNode.containerInfo,I=p1(i);Eh(i,I,P);break;default:throw Error(n(161))}}catch(D){lt(i,i.return,D)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function OM(i,s,f){ye=i,g1(i)}function g1(i,s,f){for(var p=(i.mode&1)!==0;ye!==null;){var g=ye,w=g.child;if(g.tag===22&&p){var P=g.memoizedState!==null||Au;if(!P){var I=g.alternate,D=I!==null&&I.memoizedState!==null||Ut;I=Au;var X=Ut;if(Au=P,(Ut=D)&&!X)for(ye=g;ye!==null;)P=ye,D=P.child,P.tag===22&&P.memoizedState!==null?w1(g):D!==null?(D.return=P,ye=D):w1(g);for(;w!==null;)ye=w,g1(w),w=w.sibling;ye=g,Au=I,Ut=X}x1(i)}else(g.subtreeFlags&8772)!==0&&w!==null?(w.return=g,ye=w):x1(i)}}function x1(i){for(;ye!==null;){var s=ye;if((s.flags&8772)!==0){var f=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Ut||Eu(5,s);break;case 1:var p=s.stateNode;if(s.flags&4&&!Ut)if(f===null)p.componentDidMount();else{var g=s.elementType===s.type?f.memoizedProps:Rn(s.type,f.memoizedProps);p.componentDidUpdate(g,f.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var w=s.updateQueue;w!==null&&bw(s,w,p);break;case 3:var P=s.updateQueue;if(P!==null){if(f=null,s.child!==null)switch(s.child.tag){case 5:f=s.child.stateNode;break;case 1:f=s.child.stateNode}bw(s,P,f)}break;case 5:var I=s.stateNode;if(f===null&&s.flags&4){f=I;var D=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&f.focus();break;case"img":D.src&&(f.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var X=s.alternate;if(X!==null){var se=X.memoizedState;if(se!==null){var le=se.dehydrated;le!==null&&Ho(le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ut||s.flags&512&&Ah(s)}catch(ae){lt(s,s.return,ae)}}if(s===i){ye=null;break}if(f=s.sibling,f!==null){f.return=s.return,ye=f;break}ye=s.return}}function b1(i){for(;ye!==null;){var s=ye;if(s===i){ye=null;break}var f=s.sibling;if(f!==null){f.return=s.return,ye=f;break}ye=s.return}}function w1(i){for(;ye!==null;){var s=ye;try{switch(s.tag){case 0:case 11:case 15:var f=s.return;try{Eu(4,s)}catch(D){lt(s,f,D)}break;case 1:var p=s.stateNode;if(typeof p.componentDidMount=="function"){var g=s.return;try{p.componentDidMount()}catch(D){lt(s,g,D)}}var w=s.return;try{Ah(s)}catch(D){lt(s,w,D)}break;case 5:var P=s.return;try{Ah(s)}catch(D){lt(s,P,D)}}}catch(D){lt(s,s.return,D)}if(s===i){ye=null;break}var I=s.sibling;if(I!==null){I.return=s.return,ye=I;break}ye=s.return}}var TM=Math.ceil,Mu=A.ReactCurrentDispatcher,Ih=A.ReactCurrentOwner,bn=A.ReactCurrentBatchConfig,Ue=0,_t=null,pt=null,Mt=0,un=0,Oa=Wr(0),xt=0,ps=null,Ai=0,Iu=0,Rh=0,ms=null,Zt=null,$h=0,Ta=1/0,gr=null,Ru=!1,Dh=null,Yr=null,$u=!1,Qr=null,Du=0,vs=0,Lh=null,Lu=-1,Uu=0;function Kt(){return(Ue&6)!==0?ft():Lu!==-1?Lu:Lu=ft()}function Zr(i){return(i.mode&1)===0?1:(Ue&2)!==0&&Mt!==0?Mt&-Mt:fM.transition!==null?(Uu===0&&(Uu=pb()),Uu):(i=He,i!==0||(i=window.event,i=i===void 0?16:Sb(i.type)),i)}function Ln(i,s,f,p){if(50<vs)throw vs=0,Lh=null,Error(n(185));qo(i,f,p),((Ue&2)===0||i!==_t)&&(i===_t&&((Ue&2)===0&&(Iu|=f),xt===4&&Jr(i,Mt)),Jt(i,p),f===1&&Ue===0&&(s.mode&1)===0&&(Ta=ft()+500,hu&&Kr()))}function Jt(i,s){var f=i.callbackNode;fE(i,s);var p=Gl(i,i===_t?Mt:0);if(p===0)f!==null&&fb(f),i.callbackNode=null,i.callbackPriority=0;else if(s=p&-p,i.callbackPriority!==s){if(f!=null&&fb(f),s===1)i.tag===0?cM(S1.bind(null,i)):lw(S1.bind(null,i)),oM(function(){(Ue&6)===0&&Kr()}),f=null;else{switch(mb(p)){case 1:f=yd;break;case 4:f=db;break;case 16:f=Wl;break;case 536870912:f=hb;break;default:f=Wl}f=A1(f,j1.bind(null,i))}i.callbackPriority=s,i.callbackNode=f}}function j1(i,s){if(Lu=-1,Uu=0,(Ue&6)!==0)throw Error(n(327));var f=i.callbackNode;if(Pa()&&i.callbackNode!==f)return null;var p=Gl(i,i===_t?Mt:0);if(p===0)return null;if((p&30)!==0||(p&i.expiredLanes)!==0||s)s=qu(i,p);else{s=p;var g=Ue;Ue|=2;var w=C1();(_t!==i||Mt!==s)&&(gr=null,Ta=ft()+500,Mi(i,s));do try{AM();break}catch(I){k1(i,I)}while(!0);nh(),Mu.current=w,Ue=g,pt!==null?s=0:(_t=null,Mt=0,s=xt)}if(s!==0){if(s===2&&(g=gd(i),g!==0&&(p=g,s=Uh(i,g))),s===1)throw f=ps,Mi(i,0),Jr(i,p),Jt(i,ft()),f;if(s===6)Jr(i,p);else{if(g=i.current.alternate,(p&30)===0&&!PM(g)&&(s=qu(i,p),s===2&&(w=gd(i),w!==0&&(p=w,s=Uh(i,w))),s===1))throw f=ps,Mi(i,0),Jr(i,p),Jt(i,ft()),f;switch(i.finishedWork=g,i.finishedLanes=p,s){case 0:case 1:throw Error(n(345));case 2:Ii(i,Zt,gr);break;case 3:if(Jr(i,p),(p&130023424)===p&&(s=$h+500-ft(),10<s)){if(Gl(i,0)!==0)break;if(g=i.suspendedLanes,(g&p)!==p){Kt(),i.pingedLanes|=i.suspendedLanes&g;break}i.timeoutHandle=Hd(Ii.bind(null,i,Zt,gr),s);break}Ii(i,Zt,gr);break;case 4:if(Jr(i,p),(p&4194240)===p)break;for(s=i.eventTimes,g=-1;0<p;){var P=31-En(p);w=1<<P,P=s[P],P>g&&(g=P),p&=~w}if(p=g,p=ft()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*TM(p/1960))-p,10<p){i.timeoutHandle=Hd(Ii.bind(null,i,Zt,gr),p);break}Ii(i,Zt,gr);break;case 5:Ii(i,Zt,gr);break;default:throw Error(n(329))}}}return Jt(i,ft()),i.callbackNode===f?j1.bind(null,i):null}function Uh(i,s){var f=ms;return i.current.memoizedState.isDehydrated&&(Mi(i,s).flags|=256),i=qu(i,s),i!==2&&(s=Zt,Zt=f,s!==null&&qh(s)),i}function qh(i){Zt===null?Zt=i:Zt.push.apply(Zt,i)}function PM(i){for(var s=i;;){if(s.flags&16384){var f=s.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var p=0;p<f.length;p++){var g=f[p],w=g.getSnapshot;g=g.value;try{if(!Mn(w(),g))return!1}catch{return!1}}}if(f=s.child,s.subtreeFlags&16384&&f!==null)f.return=s,s=f;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Jr(i,s){for(s&=~Rh,s&=~Iu,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var f=31-En(s),p=1<<f;i[f]=-1,s&=~p}}function S1(i){if((Ue&6)!==0)throw Error(n(327));Pa();var s=Gl(i,0);if((s&1)===0)return Jt(i,ft()),null;var f=qu(i,s);if(i.tag!==0&&f===2){var p=gd(i);p!==0&&(s=p,f=Uh(i,p))}if(f===1)throw f=ps,Mi(i,0),Jr(i,s),Jt(i,ft()),f;if(f===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Ii(i,Zt,gr),Jt(i,ft()),null}function Fh(i,s){var f=Ue;Ue|=1;try{return i(s)}finally{Ue=f,Ue===0&&(Ta=ft()+500,hu&&Kr())}}function Ei(i){Qr!==null&&Qr.tag===0&&(Ue&6)===0&&Pa();var s=Ue;Ue|=1;var f=bn.transition,p=He;try{if(bn.transition=null,He=1,i)return i()}finally{He=p,bn.transition=f,Ue=s,(Ue&6)===0&&Kr()}}function Bh(){un=Oa.current,et(Oa)}function Mi(i,s){i.finishedWork=null,i.finishedLanes=0;var f=i.timeoutHandle;if(f!==-1&&(i.timeoutHandle=-1,aM(f)),pt!==null)for(f=pt.return;f!==null;){var p=f;switch(Qd(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&fu();break;case 3:ka(),et(Xt),et($t),ch();break;case 5:lh(p);break;case 4:ka();break;case 13:et(it);break;case 19:et(it);break;case 10:rh(p.type._context);break;case 22:case 23:Bh()}f=f.return}if(_t=i,pt=i=ei(i.current,null),Mt=un=s,xt=0,ps=null,Rh=Iu=Ai=0,Zt=ms=null,Ti!==null){for(s=0;s<Ti.length;s++)if(f=Ti[s],p=f.interleaved,p!==null){f.interleaved=null;var g=p.next,w=f.pending;if(w!==null){var P=w.next;w.next=g,p.next=P}f.pending=p}Ti=null}return i}function k1(i,s){do{var f=pt;try{if(nh(),Su.current=Ou,ku){for(var p=at.memoizedState;p!==null;){var g=p.queue;g!==null&&(g.pending=null),p=p.next}ku=!1}if(Ni=0,Ct=gt=at=null,ls=!1,us=0,Ih.current=null,f===null||f.return===null){xt=1,ps=s,pt=null;break}e:{var w=i,P=f.return,I=f,D=s;if(s=Mt,I.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var X=D,se=I,le=se.tag;if((se.mode&1)===0&&(le===0||le===11||le===15)){var ae=se.alternate;ae?(se.updateQueue=ae.updateQueue,se.memoizedState=ae.memoizedState,se.lanes=ae.lanes):(se.updateQueue=null,se.memoizedState=null)}var pe=Xw(P);if(pe!==null){pe.flags&=-257,Yw(pe,P,I,w,s),pe.mode&1&&Gw(w,X,s),s=pe,D=X;var xe=s.updateQueue;if(xe===null){var be=new Set;be.add(D),s.updateQueue=be}else xe.add(D);break e}else{if((s&1)===0){Gw(w,X,s),zh();break e}D=Error(n(426))}}else if(nt&&I.mode&1){var dt=Xw(P);if(dt!==null){(dt.flags&65536)===0&&(dt.flags|=256),Yw(dt,P,I,w,s),eh(Ca(D,I));break e}}w=D=Ca(D,I),xt!==4&&(xt=2),ms===null?ms=[w]:ms.push(w),w=P;do{switch(w.tag){case 3:w.flags|=65536,s&=-s,w.lanes|=s;var B=Kw(w,D,s);xw(w,B);break e;case 1:I=D;var q=w.type,H=w.stateNode;if((w.flags&128)===0&&(typeof q.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(Yr===null||!Yr.has(H)))){w.flags|=65536,s&=-s,w.lanes|=s;var fe=Vw(w,I,s);xw(w,fe);break e}}w=w.return}while(w!==null)}O1(f)}catch(we){s=we,pt===f&&f!==null&&(pt=f=f.return);continue}break}while(!0)}function C1(){var i=Mu.current;return Mu.current=Ou,i===null?Ou:i}function zh(){(xt===0||xt===3||xt===2)&&(xt=4),_t===null||(Ai&268435455)===0&&(Iu&268435455)===0||Jr(_t,Mt)}function qu(i,s){var f=Ue;Ue|=2;var p=C1();(_t!==i||Mt!==s)&&(gr=null,Mi(i,s));do try{NM();break}catch(g){k1(i,g)}while(!0);if(nh(),Ue=f,Mu.current=p,pt!==null)throw Error(n(261));return _t=null,Mt=0,xt}function NM(){for(;pt!==null;)_1(pt)}function AM(){for(;pt!==null&&!nE();)_1(pt)}function _1(i){var s=N1(i.alternate,i,un);i.memoizedProps=i.pendingProps,s===null?O1(i):pt=s,Ih.current=null}function O1(i){var s=i;do{var f=s.alternate;if(i=s.return,(s.flags&32768)===0){if(f=SM(f,s,un),f!==null){pt=f;return}}else{if(f=kM(f,s),f!==null){f.flags&=32767,pt=f;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{xt=6,pt=null;return}}if(s=s.sibling,s!==null){pt=s;return}pt=s=i}while(s!==null);xt===0&&(xt=5)}function Ii(i,s,f){var p=He,g=bn.transition;try{bn.transition=null,He=1,EM(i,s,f,p)}finally{bn.transition=g,He=p}return null}function EM(i,s,f,p){do Pa();while(Qr!==null);if((Ue&6)!==0)throw Error(n(327));f=i.finishedWork;var g=i.finishedLanes;if(f===null)return null;if(i.finishedWork=null,i.finishedLanes=0,f===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var w=f.lanes|f.childLanes;if(dE(i,w),i===_t&&(pt=_t=null,Mt=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||$u||($u=!0,A1(Wl,function(){return Pa(),null})),w=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||w){w=bn.transition,bn.transition=null;var P=He;He=1;var I=Ue;Ue|=4,Ih.current=null,_M(i,f),y1(f,i),ZE(zd),Ql=!!Bd,zd=Bd=null,i.current=f,OM(f),rE(),Ue=I,He=P,bn.transition=w}else i.current=f;if($u&&($u=!1,Qr=i,Du=g),w=i.pendingLanes,w===0&&(Yr=null),oE(f.stateNode),Jt(i,ft()),s!==null)for(p=i.onRecoverableError,f=0;f<s.length;f++)g=s[f],p(g.value,{componentStack:g.stack,digest:g.digest});if(Ru)throw Ru=!1,i=Dh,Dh=null,i;return(Du&1)!==0&&i.tag!==0&&Pa(),w=i.pendingLanes,(w&1)!==0?i===Lh?vs++:(vs=0,Lh=i):vs=0,Kr(),null}function Pa(){if(Qr!==null){var i=mb(Du),s=bn.transition,f=He;try{if(bn.transition=null,He=16>i?16:i,Qr===null)var p=!1;else{if(i=Qr,Qr=null,Du=0,(Ue&6)!==0)throw Error(n(331));var g=Ue;for(Ue|=4,ye=i.current;ye!==null;){var w=ye,P=w.child;if((ye.flags&16)!==0){var I=w.deletions;if(I!==null){for(var D=0;D<I.length;D++){var X=I[D];for(ye=X;ye!==null;){var se=ye;switch(se.tag){case 0:case 11:case 15:hs(8,se,w)}var le=se.child;if(le!==null)le.return=se,ye=le;else for(;ye!==null;){se=ye;var ae=se.sibling,pe=se.return;if(d1(se),se===X){ye=null;break}if(ae!==null){ae.return=pe,ye=ae;break}ye=pe}}}var xe=w.alternate;if(xe!==null){var be=xe.child;if(be!==null){xe.child=null;do{var dt=be.sibling;be.sibling=null,be=dt}while(be!==null)}}ye=w}}if((w.subtreeFlags&2064)!==0&&P!==null)P.return=w,ye=P;else e:for(;ye!==null;){if(w=ye,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:hs(9,w,w.return)}var B=w.sibling;if(B!==null){B.return=w.return,ye=B;break e}ye=w.return}}var q=i.current;for(ye=q;ye!==null;){P=ye;var H=P.child;if((P.subtreeFlags&2064)!==0&&H!==null)H.return=P,ye=H;else e:for(P=q;ye!==null;){if(I=ye,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:Eu(9,I)}}catch(we){lt(I,I.return,we)}if(I===P){ye=null;break e}var fe=I.sibling;if(fe!==null){fe.return=I.return,ye=fe;break e}ye=I.return}}if(Ue=g,Kr(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Hl,i)}catch{}p=!0}return p}finally{He=f,bn.transition=s}}return!1}function T1(i,s,f){s=Ca(f,s),s=Kw(i,s,1),i=Gr(i,s,1),s=Kt(),i!==null&&(qo(i,1,s),Jt(i,s))}function lt(i,s,f){if(i.tag===3)T1(i,i,f);else for(;s!==null;){if(s.tag===3){T1(s,i,f);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Yr===null||!Yr.has(p))){i=Ca(f,i),i=Vw(s,i,1),s=Gr(s,i,1),i=Kt(),s!==null&&(qo(s,1,i),Jt(s,i));break}}s=s.return}}function MM(i,s,f){var p=i.pingCache;p!==null&&p.delete(s),s=Kt(),i.pingedLanes|=i.suspendedLanes&f,_t===i&&(Mt&f)===f&&(xt===4||xt===3&&(Mt&130023424)===Mt&&500>ft()-$h?Mi(i,0):Rh|=f),Jt(i,s)}function P1(i,s){s===0&&((i.mode&1)===0?s=1:(s=Vl,Vl<<=1,(Vl&130023424)===0&&(Vl=4194304)));var f=Kt();i=mr(i,s),i!==null&&(qo(i,s,f),Jt(i,f))}function IM(i){var s=i.memoizedState,f=0;s!==null&&(f=s.retryLane),P1(i,f)}function RM(i,s){var f=0;switch(i.tag){case 13:var p=i.stateNode,g=i.memoizedState;g!==null&&(f=g.retryLane);break;case 19:p=i.stateNode;break;default:throw Error(n(314))}p!==null&&p.delete(s),P1(i,f)}var N1;N1=function(i,s,f){if(i!==null)if(i.memoizedProps!==s.pendingProps||Xt.current)Qt=!0;else{if((i.lanes&f)===0&&(s.flags&128)===0)return Qt=!1,jM(i,s,f);Qt=(i.flags&131072)!==0}else Qt=!1,nt&&(s.flags&1048576)!==0&&uw(s,mu,s.index);switch(s.lanes=0,s.tag){case 2:var p=s.type;Nu(i,s),i=s.pendingProps;var g=ya(s,$t.current);Sa(s,f),g=hh(null,s,p,i,g,f);var w=ph();return s.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Yt(p)?(w=!0,du(s)):w=!1,s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,oh(s),g.updater=Tu,s.stateNode=g,g._reactInternals=s,bh(s,p,i,f),s=kh(null,s,p,!0,w,f)):(s.tag=0,nt&&w&&Yd(s),Ht(null,s,g,f),s=s.child),s;case 16:p=s.elementType;e:{switch(Nu(i,s),i=s.pendingProps,g=p._init,p=g(p._payload),s.type=p,g=s.tag=DM(p),i=Rn(p,i),g){case 0:s=Sh(null,s,p,i,f);break e;case 1:s=n1(null,s,p,i,f);break e;case 11:s=Qw(null,s,p,i,f);break e;case 14:s=Zw(null,s,p,Rn(p.type,i),f);break e}throw Error(n(306,p,""))}return s;case 0:return p=s.type,g=s.pendingProps,g=s.elementType===p?g:Rn(p,g),Sh(i,s,p,g,f);case 1:return p=s.type,g=s.pendingProps,g=s.elementType===p?g:Rn(p,g),n1(i,s,p,g,f);case 3:e:{if(r1(s),i===null)throw Error(n(387));p=s.pendingProps,w=s.memoizedState,g=w.element,gw(i,s),wu(s,p,null,f);var P=s.memoizedState;if(p=P.element,w.isDehydrated)if(w={element:p,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},s.updateQueue.baseState=w,s.memoizedState=w,s.flags&256){g=Ca(Error(n(423)),s),s=i1(i,s,p,f,g);break e}else if(p!==g){g=Ca(Error(n(424)),s),s=i1(i,s,p,f,g);break e}else for(ln=zr(s.stateNode.containerInfo.firstChild),sn=s,nt=!0,In=null,f=vw(s,null,p,f),s.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(ba(),p===g){s=yr(i,s,f);break e}Ht(i,s,p,f)}s=s.child}return s;case 5:return ww(s),i===null&&Jd(s),p=s.type,g=s.pendingProps,w=i!==null?i.memoizedProps:null,P=g.children,Wd(p,g)?P=null:w!==null&&Wd(p,w)&&(s.flags|=32),t1(i,s),Ht(i,s,P,f),s.child;case 6:return i===null&&Jd(s),null;case 13:return a1(i,s,f);case 4:return sh(s,s.stateNode.containerInfo),p=s.pendingProps,i===null?s.child=wa(s,null,p,f):Ht(i,s,p,f),s.child;case 11:return p=s.type,g=s.pendingProps,g=s.elementType===p?g:Rn(p,g),Qw(i,s,p,g,f);case 7:return Ht(i,s,s.pendingProps,f),s.child;case 8:return Ht(i,s,s.pendingProps.children,f),s.child;case 12:return Ht(i,s,s.pendingProps.children,f),s.child;case 10:e:{if(p=s.type._context,g=s.pendingProps,w=s.memoizedProps,P=g.value,Ye(gu,p._currentValue),p._currentValue=P,w!==null)if(Mn(w.value,P)){if(w.children===g.children&&!Xt.current){s=yr(i,s,f);break e}}else for(w=s.child,w!==null&&(w.return=s);w!==null;){var I=w.dependencies;if(I!==null){P=w.child;for(var D=I.firstContext;D!==null;){if(D.context===p){if(w.tag===1){D=vr(-1,f&-f),D.tag=2;var X=w.updateQueue;if(X!==null){X=X.shared;var se=X.pending;se===null?D.next=D:(D.next=se.next,se.next=D),X.pending=D}}w.lanes|=f,D=w.alternate,D!==null&&(D.lanes|=f),ih(w.return,f,s),I.lanes|=f;break}D=D.next}}else if(w.tag===10)P=w.type===s.type?null:w.child;else if(w.tag===18){if(P=w.return,P===null)throw Error(n(341));P.lanes|=f,I=P.alternate,I!==null&&(I.lanes|=f),ih(P,f,s),P=w.sibling}else P=w.child;if(P!==null)P.return=w;else for(P=w;P!==null;){if(P===s){P=null;break}if(w=P.sibling,w!==null){w.return=P.return,P=w;break}P=P.return}w=P}Ht(i,s,g.children,f),s=s.child}return s;case 9:return g=s.type,p=s.pendingProps.children,Sa(s,f),g=gn(g),p=p(g),s.flags|=1,Ht(i,s,p,f),s.child;case 14:return p=s.type,g=Rn(p,s.pendingProps),g=Rn(p.type,g),Zw(i,s,p,g,f);case 15:return Jw(i,s,s.type,s.pendingProps,f);case 17:return p=s.type,g=s.pendingProps,g=s.elementType===p?g:Rn(p,g),Nu(i,s),s.tag=1,Yt(p)?(i=!0,du(s)):i=!1,Sa(s,f),Ww(s,p,g),bh(s,p,g,f),kh(null,s,p,!0,i,f);case 19:return s1(i,s,f);case 22:return e1(i,s,f)}throw Error(n(156,s.tag))};function A1(i,s){return cb(i,s)}function $M(i,s,f,p){this.tag=i,this.key=f,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=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(i,s,f,p){return new $M(i,s,f,p)}function Wh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function DM(i){if(typeof i=="function")return Wh(i)?1:0;if(i!=null){if(i=i.$$typeof,i===U)return 11;if(i===G)return 14}return 2}function ei(i,s){var f=i.alternate;return f===null?(f=wn(i.tag,s,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=s,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&14680064,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,s=i.dependencies,f.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f}function Fu(i,s,f,p,g,w){var P=2;if(p=i,typeof i=="function")Wh(i)&&(P=1);else if(typeof i=="string")P=5;else e:switch(i){case N:return Ri(f.children,g,w,s);case M:P=8,g|=8;break;case R:return i=wn(12,f,s,g|2),i.elementType=R,i.lanes=w,i;case V:return i=wn(13,f,s,g),i.elementType=V,i.lanes=w,i;case Y:return i=wn(19,f,s,g),i.elementType=Y,i.lanes=w,i;case ne:return Bu(f,g,w,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case K:P=10;break e;case L:P=9;break e;case U:P=11;break e;case G:P=14;break e;case J:P=16,p=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=wn(P,f,s,g),s.elementType=i,s.type=p,s.lanes=w,s}function Ri(i,s,f,p){return i=wn(7,i,p,s),i.lanes=f,i}function Bu(i,s,f,p){return i=wn(22,i,p,s),i.elementType=ne,i.lanes=f,i.stateNode={isHidden:!1},i}function Hh(i,s,f){return i=wn(6,i,null,s),i.lanes=f,i}function Kh(i,s,f){return s=wn(4,i.children!==null?i.children:[],i.key,s),s.lanes=f,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function LM(i,s,f,p,g){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xd(0),this.expirationTimes=xd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xd(0),this.identifierPrefix=p,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function Vh(i,s,f,p,g,w,P,I,D){return i=new LM(i,s,f,I,D),s===1?(s=1,w===!0&&(s|=8)):s=0,w=wn(3,null,null,s),i.current=w,w.stateNode=i,w.memoizedState={element:p,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},oh(w),i}function UM(i,s,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:p==null?null:""+p,children:i,containerInfo:s,implementation:f}}function E1(i){if(!i)return Hr;i=i._reactInternals;e:{if(Si(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Yt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var f=i.type;if(Yt(f))return ow(i,f,s)}return s}function M1(i,s,f,p,g,w,P,I,D){return i=Vh(f,p,!0,i,g,w,P,I,D),i.context=E1(null),f=i.current,p=Kt(),g=Zr(f),w=vr(p,g),w.callback=s??null,Gr(f,w,g),i.current.lanes=g,qo(i,g,p),Jt(i,p),i}function zu(i,s,f,p){var g=s.current,w=Kt(),P=Zr(g);return f=E1(f),s.context===null?s.context=f:s.pendingContext=f,s=vr(w,P),s.payload={element:i},p=p===void 0?null:p,p!==null&&(s.callback=p),i=Gr(g,s,P),i!==null&&(Ln(i,g,P,w),bu(i,g,P)),P}function Wu(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function I1(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<s?f:s}}function Gh(i,s){I1(i,s),(i=i.alternate)&&I1(i,s)}function qM(){return null}var R1=typeof reportError=="function"?reportError:function(i){console.error(i)};function Xh(i){this._internalRoot=i}Hu.prototype.render=Xh.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));zu(i,s,null,null)},Hu.prototype.unmount=Xh.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Ei(function(){zu(null,i,null,null)}),s[fr]=null}};function Hu(i){this._internalRoot=i}Hu.prototype.unstable_scheduleHydration=function(i){if(i){var s=gb();i={blockedOn:null,target:i,priority:s};for(var f=0;f<qr.length&&s!==0&&s<qr[f].priority;f++);qr.splice(f,0,i),f===0&&wb(i)}};function Yh(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Ku(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function $1(){}function FM(i,s,f,p,g){if(g){if(typeof p=="function"){var w=p;p=function(){var X=Wu(P);w.call(X)}}var P=M1(s,p,i,0,null,!1,!1,"",$1);return i._reactRootContainer=P,i[fr]=P.current,es(i.nodeType===8?i.parentNode:i),Ei(),P}for(;g=i.lastChild;)i.removeChild(g);if(typeof p=="function"){var I=p;p=function(){var X=Wu(D);I.call(X)}}var D=Vh(i,0,!1,null,null,!1,!1,"",$1);return i._reactRootContainer=D,i[fr]=D.current,es(i.nodeType===8?i.parentNode:i),Ei(function(){zu(s,D,f,p)}),D}function Vu(i,s,f,p,g){var w=f._reactRootContainer;if(w){var P=w;if(typeof g=="function"){var I=g;g=function(){var D=Wu(P);I.call(D)}}zu(s,P,i,g)}else P=FM(f,s,i,g,p);return Wu(P)}vb=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var f=Uo(s.pendingLanes);f!==0&&(bd(s,f|1),Jt(s,ft()),(Ue&6)===0&&(Ta=ft()+500,Kr()))}break;case 13:Ei(function(){var p=mr(i,1);if(p!==null){var g=Kt();Ln(p,i,1,g)}}),Gh(i,1)}},wd=function(i){if(i.tag===13){var s=mr(i,134217728);if(s!==null){var f=Kt();Ln(s,i,134217728,f)}Gh(i,134217728)}},yb=function(i){if(i.tag===13){var s=Zr(i),f=mr(i,s);if(f!==null){var p=Kt();Ln(f,i,s,p)}Gh(i,s)}},gb=function(){return He},xb=function(i,s){var f=He;try{return He=i,s()}finally{He=f}},hd=function(i,s,f){switch(s){case"input":if(kt(i,f),s=f.name,f.type==="radio"&&s!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<f.length;s++){var p=f[s];if(p!==i&&p.form===i.form){var g=cu(p);if(!g)throw Error(n(90));ie(p),kt(p,g)}}}break;case"textarea":Eo(i,f);break;case"select":s=f.value,s!=null&&Gt(i,!!f.multiple,s,!1)}},rb=Fh,ib=Ei;var BM={usingClientEntryPoint:!1,Events:[rs,ma,cu,tb,nb,Fh]},ys={findFiberByHostInstance:ki,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zM={bundleType:ys.bundleType,version:ys.version,rendererPackageName:ys.rendererPackageName,rendererConfig:ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=lb(i),i===null?null:i.stateNode},findFiberByHostInstance:ys.findFiberByHostInstance||qM,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gu.isDisabled&&Gu.supportsFiber)try{Hl=Gu.inject(zM),Jn=Gu}catch{}}return en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BM,en.createPortal=function(i,s){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yh(s))throw Error(n(200));return UM(i,s,null,f)},en.createRoot=function(i,s){if(!Yh(i))throw Error(n(299));var f=!1,p="",g=R1;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=Vh(i,1,!1,null,null,f,!1,p,g),i[fr]=s.current,es(i.nodeType===8?i.parentNode:i),new Xh(s)},en.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=lb(s),i=i===null?null:i.stateNode,i},en.flushSync=function(i){return Ei(i)},en.hydrate=function(i,s,f){if(!Ku(s))throw Error(n(200));return Vu(null,i,s,!0,f)},en.hydrateRoot=function(i,s,f){if(!Yh(i))throw Error(n(405));var p=f!=null&&f.hydratedSources||null,g=!1,w="",P=R1;if(f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(w=f.identifierPrefix),f.onRecoverableError!==void 0&&(P=f.onRecoverableError)),s=M1(s,null,i,1,f??null,g,!1,w,P),i[fr]=s.current,es(i),p)for(i=0;i<p.length;i++)f=p[i],g=f._getVersion,g=g(f._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[f,g]:s.mutableSourceEagerHydrationData.push(f,g);return new Hu(s)},en.render=function(i,s,f){if(!Ku(s))throw Error(n(200));return Vu(null,i,s,!1,f)},en.unmountComponentAtNode=function(i){if(!Ku(i))throw Error(n(40));return i._reactRootContainer?(Ei(function(){Vu(null,null,i,!1,function(){i._reactRootContainer=null,i[fr]=null})}),!0):!1},en.unstable_batchedUpdates=Fh,en.unstable_renderSubtreeIntoContainer=function(i,s,f,p){if(!Ku(f))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Vu(i,s,f,!1,p)},en.version="18.3.1-next-f1338f8080-20240426",en}var W1;function QM(){if(W1)return Jh.exports;W1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jh.exports=YM(),Jh.exports}var H1;function ZM(){if(H1)return Yu;H1=1;var e=QM();return Yu.createRoot=e.createRoot,Yu.hydrateRoot=e.hydrateRoot,Yu}var JM=ZM();const eI=Ve(JM);/**
41
+ * @license lucide-react v0.468.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const tI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aP=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.468.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var nI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
+ * @license lucide-react v0.468.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const rI=ue.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:u,...c},d)=>ue.createElement("svg",{ref:d,...nI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:aP("lucide",a),...c},[...u.map(([h,v])=>ue.createElement(h,v)),...Array.isArray(o)?o:[o]]));/**
56
+ * @license lucide-react v0.468.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Le=(e,t)=>{const n=ue.forwardRef(({className:r,...a},o)=>ue.createElement(rI,{ref:o,iconNode:t,className:aP(`lucide-${tI(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.468.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const iI=Le("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/**
66
+ * @license lucide-react v0.468.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const aI=Le("ArrowDownUp",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]);/**
71
+ * @license lucide-react v0.468.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const oI=Le("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);/**
76
+ * @license lucide-react v0.468.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const xc=Le("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
81
+ * @license lucide-react v0.468.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const Wa=Le("BrainCircuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]);/**
86
+ * @license lucide-react v0.468.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const oP=Le("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
91
+ * @license lucide-react v0.468.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Nx=Le("ChartNoAxesCombined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]]);/**
96
+ * @license lucide-react v0.468.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const sP=Le("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/**
101
+ * @license lucide-react v0.468.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Ls=Le("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
106
+ * @license lucide-react v0.468.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const sI=Le("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
111
+ * @license lucide-react v0.468.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Ax=Le("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
116
+ * @license lucide-react v0.468.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const vc=Le("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
121
+ * @license lucide-react v0.468.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const lI=Le("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
126
+ * @license lucide-react v0.468.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Ex=Le("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
131
+ * @license lucide-react v0.468.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Sf=Le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
136
+ * @license lucide-react v0.468.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const lP=Le("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
141
+ * @license lucide-react v0.468.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const uP=Le("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
146
+ * @license lucide-react v0.468.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Or=Le("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
151
+ * @license lucide-react v0.468.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const cP=Le("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
156
+ * @license lucide-react v0.468.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const fP=Le("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
161
+ * @license lucide-react v0.468.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const uI=Le("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
166
+ * @license lucide-react v0.468.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const yi=Le("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
171
+ * @license lucide-react v0.468.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const dP=Le("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
176
+ * @license lucide-react v0.468.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const sg=Le("LayoutPanelTop",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]]);/**
181
+ * @license lucide-react v0.468.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const cI=Le("MonitorCog",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m15.2 4.9-.9-.4",key:"12wd2u"}],["path",{d:"m15.2 7.1-.9.4",key:"1r2vl7"}],["path",{d:"m16.9 3.2-.4-.9",key:"3zbo91"}],["path",{d:"m16.9 8.8-.4.9",key:"1qr2dn"}],["path",{d:"m19.5 2.3-.4.9",key:"1rjrkq"}],["path",{d:"m19.5 9.7-.4-.9",key:"heryx5"}],["path",{d:"m21.7 4.5-.9.4",key:"17fqt1"}],["path",{d:"m21.7 7.5-.9-.4",key:"14zyni"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]]);/**
186
+ * @license lucide-react v0.468.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const fI=Le("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
191
+ * @license lucide-react v0.468.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const dI=Le("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
196
+ * @license lucide-react v0.468.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const Cl=Le("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
201
+ * @license lucide-react v0.468.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const bo=Le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
206
+ * @license lucide-react v0.468.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const Mx=Le("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
211
+ * @license lucide-react v0.468.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const hP=Le("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
216
+ * @license lucide-react v0.468.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const pP=Le("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
221
+ * @license lucide-react v0.468.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const Ha=Le("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
226
+ * @license lucide-react v0.468.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const ur=Le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
231
+ * @license lucide-react v0.468.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const hI=Le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function mP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=mP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qe(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=mP(e))&&(r&&(r+=" "),r+=t);return r}var np,K1;function an(){if(K1)return np;K1=1;var e=Array.isArray;return np=e,np}var rp,V1;function vP(){if(V1)return rp;V1=1;var e=typeof Xu=="object"&&Xu&&Xu.Object===Object&&Xu;return rp=e,rp}var ip,G1;function cr(){if(G1)return ip;G1=1;var e=vP(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ip=n,ip}var ap,X1;function _l(){if(X1)return ap;X1=1;var e=cr(),t=e.Symbol;return ap=t,ap}var op,Y1;function pI(){if(Y1)return op;Y1=1;var e=_l(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(u){var c=n.call(u,a),d=u[a];try{u[a]=void 0;var h=!0}catch{}var v=r.call(u);return h&&(c?u[a]=d:delete u[a]),v}return op=o,op}var sp,Q1;function mI(){if(Q1)return sp;Q1=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return sp=n,sp}var lp,Z1;function Ir(){if(Z1)return lp;Z1=1;var e=_l(),t=pI(),n=mI(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function u(c){return c==null?c===void 0?a:r:o&&o in Object(c)?t(c):n(c)}return lp=u,lp}var up,J1;function Rr(){if(J1)return up;J1=1;function e(t){return t!=null&&typeof t=="object"}return up=e,up}var cp,ej;function wo(){if(ej)return cp;ej=1;var e=Ir(),t=Rr(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return cp=r,cp}var fp,tj;function Ix(){if(tj)return fp;tj=1;var e=an(),t=wo(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,u){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||u!=null&&o in Object(u)}return fp=a,fp}var dp,nj;function gi(){if(nj)return dp;nj=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return dp=e,dp}var hp,rj;function Rx(){if(rj)return hp;rj=1;var e=Ir(),t=gi(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function u(c){if(!t(c))return!1;var d=e(c);return d==r||d==a||d==n||d==o}return hp=u,hp}var pp,ij;function vI(){if(ij)return pp;ij=1;var e=cr(),t=e["__core-js_shared__"];return pp=t,pp}var mp,aj;function yI(){if(aj)return mp;aj=1;var e=vI(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return mp=n,mp}var vp,oj;function yP(){if(oj)return vp;oj=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return vp=n,vp}var yp,sj;function gI(){if(sj)return yp;sj=1;var e=Rx(),t=yI(),n=gi(),r=yP(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,d=u.toString,h=c.hasOwnProperty,v=RegExp("^"+d.call(h).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(y){if(!n(y)||t(y))return!1;var x=e(y)?v:o;return x.test(r(y))}return yp=m,yp}var gp,lj;function xI(){if(lj)return gp;lj=1;function e(t,n){return t==null?void 0:t[n]}return gp=e,gp}var xp,uj;function ta(){if(uj)return xp;uj=1;var e=gI(),t=xI();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return xp=n,xp}var bp,cj;function kf(){if(cj)return bp;cj=1;var e=ta(),t=e(Object,"create");return bp=t,bp}var wp,fj;function bI(){if(fj)return wp;fj=1;var e=kf();function t(){this.__data__=e?e(null):{},this.size=0}return wp=t,wp}var jp,dj;function wI(){if(dj)return jp;dj=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return jp=e,jp}var Sp,hj;function jI(){if(hj)return Sp;hj=1;var e=kf(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var u=this.__data__;if(e){var c=u[o];return c===t?void 0:c}return r.call(u,o)?u[o]:void 0}return Sp=a,Sp}var kp,pj;function SI(){if(pj)return kp;pj=1;var e=kf(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return kp=r,kp}var Cp,mj;function kI(){if(mj)return Cp;mj=1;var e=kf(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return Cp=n,Cp}var _p,vj;function CI(){if(vj)return _p;vj=1;var e=bI(),t=wI(),n=jI(),r=SI(),a=kI();function o(u){var c=-1,d=u==null?0:u.length;for(this.clear();++c<d;){var h=u[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,_p=o,_p}var Op,yj;function _I(){if(yj)return Op;yj=1;function e(){this.__data__=[],this.size=0}return Op=e,Op}var Tp,gj;function $x(){if(gj)return Tp;gj=1;function e(t,n){return t===n||t!==t&&n!==n}return Tp=e,Tp}var Pp,xj;function Cf(){if(xj)return Pp;xj=1;var e=$x();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return Pp=t,Pp}var Np,bj;function OI(){if(bj)return Np;bj=1;var e=Cf(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,u=e(o,a);if(u<0)return!1;var c=o.length-1;return u==c?o.pop():n.call(o,u,1),--this.size,!0}return Np=r,Np}var Ap,wj;function TI(){if(wj)return Ap;wj=1;var e=Cf();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Ap=t,Ap}var Ep,jj;function PI(){if(jj)return Ep;jj=1;var e=Cf();function t(n){return e(this.__data__,n)>-1}return Ep=t,Ep}var Mp,Sj;function NI(){if(Sj)return Mp;Sj=1;var e=Cf();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return Mp=t,Mp}var Ip,kj;function _f(){if(kj)return Ip;kj=1;var e=_I(),t=OI(),n=TI(),r=PI(),a=NI();function o(u){var c=-1,d=u==null?0:u.length;for(this.clear();++c<d;){var h=u[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Ip=o,Ip}var Rp,Cj;function Dx(){if(Cj)return Rp;Cj=1;var e=ta(),t=cr(),n=e(t,"Map");return Rp=n,Rp}var $p,_j;function AI(){if(_j)return $p;_j=1;var e=CI(),t=_f(),n=Dx();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return $p=r,$p}var Dp,Oj;function EI(){if(Oj)return Dp;Oj=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Dp=e,Dp}var Lp,Tj;function Of(){if(Tj)return Lp;Tj=1;var e=EI();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return Lp=t,Lp}var Up,Pj;function MI(){if(Pj)return Up;Pj=1;var e=Of();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Up=t,Up}var qp,Nj;function II(){if(Nj)return qp;Nj=1;var e=Of();function t(n){return e(this,n).get(n)}return qp=t,qp}var Fp,Aj;function RI(){if(Aj)return Fp;Aj=1;var e=Of();function t(n){return e(this,n).has(n)}return Fp=t,Fp}var Bp,Ej;function $I(){if(Ej)return Bp;Ej=1;var e=Of();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return Bp=t,Bp}var zp,Mj;function Lx(){if(Mj)return zp;Mj=1;var e=AI(),t=MI(),n=II(),r=RI(),a=$I();function o(u){var c=-1,d=u==null?0:u.length;for(this.clear();++c<d;){var h=u[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,zp=o,zp}var Wp,Ij;function gP(){if(Ij)return Wp;Ij=1;var e=Lx(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var u=arguments,c=a?a.apply(this,u):u[0],d=o.cache;if(d.has(c))return d.get(c);var h=r.apply(this,u);return o.cache=d.set(c,h)||d,h};return o.cache=new(n.Cache||e),o}return n.Cache=e,Wp=n,Wp}var Hp,Rj;function DI(){if(Rj)return Hp;Rj=1;var e=gP(),t=500;function n(r){var a=e(r,function(u){return o.size===t&&o.clear(),u}),o=a.cache;return a}return Hp=n,Hp}var Kp,$j;function LI(){if($j)return Kp;$j=1;var e=DI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(u,c,d,h){o.push(d?h.replace(n,"$1"):c||u)}),o});return Kp=r,Kp}var Vp,Dj;function Ux(){if(Dj)return Vp;Dj=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return Vp=e,Vp}var Gp,Lj;function UI(){if(Lj)return Gp;Lj=1;var e=_l(),t=Ux(),n=an(),r=wo(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function u(c){if(typeof c=="string")return c;if(n(c))return t(c,u)+"";if(r(c))return o?o.call(c):"";var d=c+"";return d=="0"&&1/c==-1/0?"-0":d}return Gp=u,Gp}var Xp,Uj;function xP(){if(Uj)return Xp;Uj=1;var e=UI();function t(n){return n==null?"":e(n)}return Xp=t,Xp}var Yp,qj;function bP(){if(qj)return Yp;qj=1;var e=an(),t=Ix(),n=LI(),r=xP();function a(o,u){return e(o)?o:t(o,u)?[o]:n(r(o))}return Yp=a,Yp}var Qp,Fj;function Tf(){if(Fj)return Qp;Fj=1;var e=wo();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Qp=t,Qp}var Zp,Bj;function qx(){if(Bj)return Zp;Bj=1;var e=bP(),t=Tf();function n(r,a){a=e(a,r);for(var o=0,u=a.length;r!=null&&o<u;)r=r[t(a[o++])];return o&&o==u?r:void 0}return Zp=n,Zp}var Jp,zj;function wP(){if(zj)return Jp;zj=1;var e=qx();function t(n,r,a){var o=n==null?void 0:e(n,r);return o===void 0?a:o}return Jp=t,Jp}var qI=wP();const _n=Ve(qI);var em,Wj;function FI(){if(Wj)return em;Wj=1;function e(t){return t==null}return em=e,em}var BI=FI();const $e=Ve(BI);var tm,Hj;function zI(){if(Hj)return tm;Hj=1;var e=Ir(),t=an(),n=Rr(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return tm=a,tm}var WI=zI();const Vi=Ve(WI);var HI=Rx();const Me=Ve(HI);var KI=gi();const jo=Ve(KI);var nm={exports:{}},ze={};/**
236
+ * @license React
237
+ * react-is.production.min.js
238
+ *
239
+ * Copyright (c) Facebook, Inc. and its affiliates.
240
+ *
241
+ * This source code is licensed under the MIT license found in the
242
+ * LICENSE file in the root directory of this source tree.
243
+ */var Kj;function VI(){if(Kj)return ze;Kj=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function j(b){if(typeof b=="object"&&b!==null){var k=b.$$typeof;switch(k){case e:switch(b=b.type,b){case n:case a:case r:case h:case v:return b;default:switch(b=b&&b.$$typeof,b){case c:case u:case d:case y:case m:case o:return b;default:return k}}case t:return k}}}return ze.ContextConsumer=u,ze.ContextProvider=o,ze.Element=e,ze.ForwardRef=d,ze.Fragment=n,ze.Lazy=y,ze.Memo=m,ze.Portal=t,ze.Profiler=a,ze.StrictMode=r,ze.Suspense=h,ze.SuspenseList=v,ze.isAsyncMode=function(){return!1},ze.isConcurrentMode=function(){return!1},ze.isContextConsumer=function(b){return j(b)===u},ze.isContextProvider=function(b){return j(b)===o},ze.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ze.isForwardRef=function(b){return j(b)===d},ze.isFragment=function(b){return j(b)===n},ze.isLazy=function(b){return j(b)===y},ze.isMemo=function(b){return j(b)===m},ze.isPortal=function(b){return j(b)===t},ze.isProfiler=function(b){return j(b)===a},ze.isStrictMode=function(b){return j(b)===r},ze.isSuspense=function(b){return j(b)===h},ze.isSuspenseList=function(b){return j(b)===v},ze.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===h||b===v||b===x||typeof b=="object"&&b!==null&&(b.$$typeof===y||b.$$typeof===m||b.$$typeof===o||b.$$typeof===u||b.$$typeof===d||b.$$typeof===S||b.getModuleId!==void 0)},ze.typeOf=j,ze}var Vj;function GI(){return Vj||(Vj=1,nm.exports=VI()),nm.exports}var XI=GI(),rm,Gj;function jP(){if(Gj)return rm;Gj=1;var e=Ir(),t=Rr(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return rm=r,rm}var im,Xj;function YI(){if(Xj)return im;Xj=1;var e=jP();function t(n){return e(n)&&n!=+n}return im=t,im}var QI=YI();const Ol=Ve(QI);var ZI=jP();const JI=Ve(ZI);var Wn=function(t){return t===0?0:t>0?1:-1},Ui=function(t){return Vi(t)&&t.indexOf("%")===t.length-1},de=function(t){return JI(t)&&!Ol(t)},eR=function(t){return $e(t)},jt=function(t){return de(t)||Vi(t)},tR=0,Tl=function(t){var n=++tR;return"".concat(t||"").concat(n)},Gi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!de(t)&&!Vi(t))return r;var o;if(Ui(t)){var u=t.indexOf("%");o=n*parseFloat(t.slice(0,u))/100}else o=+t;return Ol(o)&&(o=r),a&&o>n&&(o=n),o},ai=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},nR=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Bn=function(t,n){return de(t)&&de(n)?function(r){return t+r*(n-t)}:function(){return n}};function bc(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):_n(r,t))===n})}var rR=function(t,n){return de(t)&&de(n)?t-n:Vi(t)&&Vi(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ua(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function lg(e){"@babel/helpers - typeof";return lg=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},lg(e)}var iR=["viewBox","children"],aR=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Yj=["points","pathLength"],am={svg:iR,polygon:Yj,polyline:Yj},Fx=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],wc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(ue.isValidElement(t)&&(r=t.props),!jo(r))return null;var a={};return Object.keys(r).forEach(function(o){Fx.includes(o)&&(a[o]=n||function(u){return r[o](r,u)})}),a},oR=function(t,n,r){return function(a){return t(n,r,a),null}},jc=function(t,n,r){if(!jo(t)||lg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var u=t[o];Fx.includes(o)&&typeof u=="function"&&(a||(a={}),a[o]=oR(u,n,r))}),a},sR=["children"],lR=["children"];function Qj(e,t){if(e==null)return{};var n=uR(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ug(e){"@babel/helpers - typeof";return ug=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},ug(e)}var Zj={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"},Sr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Jj=null,om=null,Bx=function e(t){if(t===Jj&&Array.isArray(om))return om;var n=[];return ue.Children.forEach(t,function(r){$e(r)||(XI.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),om=n,Jj=t,n};function On(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Sr(a)}):r=[Sr(t)],Bx(e).forEach(function(a){var o=_n(a,"type.displayName")||_n(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function dn(e,t){var n=On(e,t);return n&&n[0]}var eS=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!de(r)||r<=0||!de(a)||a<=0)},cR=["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"],fR=function(t){return t&&t.type&&Vi(t.type)&&cR.indexOf(t.type)>=0},dR=function(t){return t&&ug(t)==="object"&&"clipDot"in t},hR=function(t,n,r,a){var o,u=(o=am==null?void 0:am[a])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Me(t)&&(a&&u.includes(n)||aR.includes(n))||r&&Fx.includes(n)},De=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(ue.isValidElement(t)&&(a=t.props),!jo(a))return null;var o={};return Object.keys(a).forEach(function(u){var c;hR((c=a)===null||c===void 0?void 0:c[u],u,n,r)&&(o[u]=a[u])}),o},cg=function e(t,n){if(t===n)return!0;var r=ue.Children.count(t);if(r!==ue.Children.count(n))return!1;if(r===0)return!0;if(r===1)return tS(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var o=t[a],u=n[a];if(Array.isArray(o)||Array.isArray(u)){if(!e(o,u))return!1}else if(!tS(o,u))return!1}return!0},tS=function(t,n){if($e(t)&&$e(n))return!0;if(!$e(t)&&!$e(n)){var r=t.props||{},a=r.children,o=Qj(r,sR),u=n.props||{},c=u.children,d=Qj(u,lR);return a&&c?Ua(o,d)&&cg(a,c):!a&&!c?Ua(o,d):!1}return!1},nS=function(t,n){var r=[],a={};return Bx(t).forEach(function(o,u){if(fR(o))r.push(o);else if(o){var c=Sr(o.type),d=n[c]||{},h=d.handler,v=d.once;if(h&&(!v||!a[c])){var m=h(o,c,u);r.push(m),a[c]=!0}}}),r},pR=function(t){var n=t&&t.type;return n&&Zj[n]?Zj[n]:null},mR=function(t,n){return Bx(n).indexOf(t)},vR=["children","width","height","viewBox","className","style","title","desc"];function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fg.apply(this,arguments)}function yR(e,t){if(e==null)return{};var n=gR(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dg(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,o=e.className,u=e.style,c=e.title,d=e.desc,h=yR(e,vR),v=a||{width:n,height:r,x:0,y:0},m=qe("recharts-surface",o);return E.createElement("svg",fg({},De(h,!0,"svg"),{className:m,width:n,height:r,style:u,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),E.createElement("title",null,c),E.createElement("desc",null,d),t)}var xR=["children","className"];function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(this,arguments)}function bR(e,t){if(e==null)return{};var n=wR(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ht=E.forwardRef(function(e,t){var n=e.children,r=e.className,a=bR(e,xR),o=qe("recharts-layer",r);return E.createElement("g",hg({className:o},De(a,!0),{ref:t}),n)}),kr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o]},sm,rS;function jR(){if(rS)return sm;rS=1;function e(t,n,r){var a=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var u=Array(o);++a<o;)u[a]=t[a+n];return u}return sm=e,sm}var lm,iS;function SR(){if(iS)return lm;iS=1;var e=jR();function t(n,r,a){var o=n.length;return a=a===void 0?o:a,!r&&a>=o?n:e(n,r,a)}return lm=t,lm}var um,aS;function SP(){if(aS)return um;aS=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",u="\\u200d",c=RegExp("["+u+e+a+o+"]");function d(h){return c.test(h)}return um=d,um}var cm,oS;function kR(){if(oS)return cm;oS=1;function e(t){return t.split("")}return cm=e,cm}var fm,sS;function CR(){if(sS)return fm;sS=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",u="["+e+"]",c="["+a+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+d+")",v="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",S=h+"?",j="["+o+"]?",b="(?:"+x+"(?:"+[v,m,y].join("|")+")"+j+S+")*",k=j+S+b,_="(?:"+[v+c+"?",c,m,y,u].join("|")+")",T=RegExp(d+"(?="+d+")|"+_+k,"g");function A(C){return C.match(T)||[]}return fm=A,fm}var dm,lS;function _R(){if(lS)return dm;lS=1;var e=kR(),t=SP(),n=CR();function r(a){return t(a)?n(a):e(a)}return dm=r,dm}var hm,uS;function OR(){if(uS)return hm;uS=1;var e=SR(),t=SP(),n=_R(),r=xP();function a(o){return function(u){u=r(u);var c=t(u)?n(u):void 0,d=c?c[0]:u.charAt(0),h=c?e(c,1).join(""):u.slice(1);return d[o]()+h}}return hm=a,hm}var pm,cS;function TR(){if(cS)return pm;cS=1;var e=OR(),t=e("toUpperCase");return pm=t,pm}var PR=TR();const Pf=Ve(PR);function Ze(e){return function(){return e}}const kP=Math.cos,Sc=Math.sin,Yn=Math.sqrt,kc=Math.PI,Nf=2*kc,pg=Math.PI,mg=2*pg,Di=1e-6,NR=mg-Di;function CP(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function AR(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CP;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class ER{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?CP:AR(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,u){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+u}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let u=this._x1,c=this._y1,d=r-t,h=a-n,v=u-t,m=c-n,y=v*v+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>Di)if(!(Math.abs(m*d-h*v)>Di)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-u,S=a-c,j=d*d+h*h,b=x*x+S*S,k=Math.sqrt(j),_=Math.sqrt(y),T=o*Math.tan((pg-Math.acos((j+y-b)/(2*k*_)))/2),A=T/_,C=T/k;Math.abs(A-1)>Di&&this._append`L${t+A*v},${n+A*m}`,this._append`A${o},${o},0,0,${+(m*x>v*S)},${this._x1=t+C*d},${this._y1=n+C*h}`}}arc(t,n,r,a,o,u){if(t=+t,n=+n,r=+r,u=!!u,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),d=r*Math.sin(a),h=t+c,v=n+d,m=1^u,y=u?a-o:o-a;this._x1===null?this._append`M${h},${v}`:(Math.abs(this._x1-h)>Di||Math.abs(this._y1-v)>Di)&&this._append`L${h},${v}`,r&&(y<0&&(y=y%mg+mg),y>NR?this._append`A${r},${r},0,1,${m},${t-c},${n-d}A${r},${r},0,1,${m},${this._x1=h},${this._y1=v}`:y>Di&&this._append`A${r},${r},0,${+(y>=pg)},${m},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function zx(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new ER(t)}function Wx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _P(e){this._context=e}_P.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 Af(e){return new _P(e)}function OP(e){return e[0]}function TP(e){return e[1]}function PP(e,t){var n=Ze(!0),r=null,a=Af,o=null,u=zx(c);e=typeof e=="function"?e:e===void 0?OP:Ze(e),t=typeof t=="function"?t:t===void 0?TP:Ze(t);function c(d){var h,v=(d=Wx(d)).length,m,y=!1,x;for(r==null&&(o=a(x=u())),h=0;h<=v;++h)!(h<v&&n(m=d[h],h,d))===y&&((y=!y)?o.lineStart():o.lineEnd()),y&&o.point(+e(m,h,d),+t(m,h,d));if(x)return o=null,x+""||null}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ze(+d),c):e},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ze(+d),c):t},c.defined=function(d){return arguments.length?(n=typeof d=="function"?d:Ze(!!d),c):n},c.curve=function(d){return arguments.length?(a=d,r!=null&&(o=a(r)),c):a},c.context=function(d){return arguments.length?(d==null?r=o=null:o=a(r=d),c):r},c}function Qu(e,t,n){var r=null,a=Ze(!0),o=null,u=Af,c=null,d=zx(h);e=typeof e=="function"?e:e===void 0?OP:Ze(+e),t=typeof t=="function"?t:Ze(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?TP:Ze(+n);function h(m){var y,x,S,j=(m=Wx(m)).length,b,k=!1,_,T=new Array(j),A=new Array(j);for(o==null&&(c=u(_=d())),y=0;y<=j;++y){if(!(y<j&&a(b=m[y],y,m))===k)if(k=!k)x=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),S=y-1;S>=x;--S)c.point(T[S],A[S]);c.lineEnd(),c.areaEnd()}k&&(T[y]=+e(b,y,m),A[y]=+t(b,y,m),c.point(r?+r(b,y,m):T[y],n?+n(b,y,m):A[y]))}if(_)return c=null,_+""||null}function v(){return PP().defined(a).curve(u).context(o)}return h.x=function(m){return arguments.length?(e=typeof m=="function"?m:Ze(+m),r=null,h):e},h.x0=function(m){return arguments.length?(e=typeof m=="function"?m:Ze(+m),h):e},h.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:Ze(+m),h):r},h.y=function(m){return arguments.length?(t=typeof m=="function"?m:Ze(+m),n=null,h):t},h.y0=function(m){return arguments.length?(t=typeof m=="function"?m:Ze(+m),h):t},h.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:Ze(+m),h):n},h.lineX0=h.lineY0=function(){return v().x(e).y(t)},h.lineY1=function(){return v().x(e).y(n)},h.lineX1=function(){return v().x(r).y(t)},h.defined=function(m){return arguments.length?(a=typeof m=="function"?m:Ze(!!m),h):a},h.curve=function(m){return arguments.length?(u=m,o!=null&&(c=u(o)),h):u},h.context=function(m){return arguments.length?(m==null?o=c=null:c=u(o=m),h):o},h}class NP{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function MR(e){return new NP(e,!0)}function IR(e){return new NP(e,!1)}const Hx={draw(e,t){const n=Yn(t/kc);e.moveTo(n,0),e.arc(0,0,n,0,Nf)}},RR={draw(e,t){const n=Yn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},AP=Yn(1/3),$R=AP*2,DR={draw(e,t){const n=Yn(t/$R),r=n*AP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},LR={draw(e,t){const n=Yn(t),r=-n/2;e.rect(r,r,n,n)}},UR=.8908130915292852,EP=Sc(kc/10)/Sc(7*kc/10),qR=Sc(Nf/10)*EP,FR=-kP(Nf/10)*EP,BR={draw(e,t){const n=Yn(t*UR),r=qR*n,a=FR*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const u=Nf*o/5,c=kP(u),d=Sc(u);e.lineTo(d*n,-c*n),e.lineTo(c*r-d*a,d*r+c*a)}e.closePath()}},mm=Yn(3),zR={draw(e,t){const n=-Yn(t/(mm*3));e.moveTo(0,n*2),e.lineTo(-mm*n,-n),e.lineTo(mm*n,-n),e.closePath()}},jn=-.5,Sn=Yn(3)/2,vg=1/Yn(12),WR=(vg/2+1)*3,HR={draw(e,t){const n=Yn(t/WR),r=n/2,a=n*vg,o=r,u=n*vg+n,c=-o,d=u;e.moveTo(r,a),e.lineTo(o,u),e.lineTo(c,d),e.lineTo(jn*r-Sn*a,Sn*r+jn*a),e.lineTo(jn*o-Sn*u,Sn*o+jn*u),e.lineTo(jn*c-Sn*d,Sn*c+jn*d),e.lineTo(jn*r+Sn*a,jn*a-Sn*r),e.lineTo(jn*o+Sn*u,jn*u-Sn*o),e.lineTo(jn*c+Sn*d,jn*d-Sn*c),e.closePath()}};function KR(e,t){let n=null,r=zx(a);e=typeof e=="function"?e:Ze(e||Hx),t=typeof t=="function"?t:Ze(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ze(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ze(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function Cc(){}function _c(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function MP(e){this._context=e}MP.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:_c(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:_c(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VR(e){return new MP(e)}function IP(e){this._context=e}IP.prototype={areaStart:Cc,areaEnd:Cc,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:_c(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GR(e){return new IP(e)}function RP(e){this._context=e}RP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_c(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XR(e){return new RP(e)}function $P(e){this._context=e}$P.prototype={areaStart:Cc,areaEnd:Cc,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 YR(e){return new $P(e)}function fS(e){return e<0?-1:1}function dS(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),u=(n-e._y1)/(a||r<0&&-0),c=(o*a+u*r)/(r+a);return(fS(o)+fS(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(c))||0}function hS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function vm(e,t,n){var r=e._x0,a=e._y0,o=e._x1,u=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,u-c*n,o,u)}function Oc(e){this._context=e}Oc.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:vm(this,this._t0,hS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,vm(this,hS(this,n=dS(this,e,t)),n);break;default:vm(this,this._t0,n=dS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function DP(e){this._context=new LP(e)}(DP.prototype=Object.create(Oc.prototype)).point=function(e,t){Oc.prototype.point.call(this,t,e)};function LP(e){this._context=e}LP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function QR(e){return new Oc(e)}function ZR(e){return new DP(e)}function UP(e){this._context=e}UP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=pS(e),a=pS(t),o=0,u=1;u<n;++o,++u)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function pS(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),u=new Array(n);for(a[0]=0,o[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,u[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,u[t]-=r*u[t-1];for(a[n-1]=u[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(u[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function JR(e){return new UP(e)}function Ef(e,t){this._context=e,this._t=t}Ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function e$(e){return new Ef(e,.5)}function t$(e){return new Ef(e,0)}function n$(e){return new Ef(e,1)}function Ka(e,t){if((u=e.length)>1)for(var n=1,r,a,o=e[t[0]],u,c=o.length;n<u;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function yg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function r$(e,t){return e[t]}function i$(e){const t=[];return t.key=e,t}function a$(){var e=Ze([]),t=yg,n=Ka,r=r$;function a(o){var u=Array.from(e.apply(this,arguments),i$),c,d=u.length,h=-1,v;for(const m of o)for(c=0,++h;c<d;++c)(u[c][h]=[0,+r(m,u[c].key,h,o)]).data=m;for(c=0,v=Wx(t(u));c<d;++c)u[v[c]].index=c;return n(u,v),u}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ze(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ze(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?yg:typeof o=="function"?o:Ze(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Ka,a):n},a}function o$(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,u;a<o;++a){for(u=n=0;n<r;++n)u+=e[n][a][1]||0;if(u)for(n=0;n<r;++n)e[n][a][1]/=u}Ka(e,t)}}function s$(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var u=0,c=0;u<a;++u)c+=e[u][n][1]||0;r[n][1]+=r[n][0]=-c/2}Ka(e,t)}}function l$(e,t){if(!(!((u=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,u;r<o;++r){for(var c=0,d=0,h=0;c<u;++c){for(var v=e[t[c]],m=v[r][1]||0,y=v[r-1][1]||0,x=(m-y)/2,S=0;S<c;++S){var j=e[t[S]],b=j[r][1]||0,k=j[r-1][1]||0;x+=b-k}d+=m,h+=x*m}a[r-1][1]+=a[r-1][0]=n,d&&(n-=h/d)}a[r-1][1]+=a[r-1][0]=n,Ka(e,t)}}function Us(e){"@babel/helpers - typeof";return Us=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},Us(e)}var u$=["type","size","sizeType"];function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gg.apply(this,arguments)}function mS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(n),!0).forEach(function(r){c$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c$(e,t,n){return t=f$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f$(e){var t=d$(e,"string");return Us(t)=="symbol"?t:t+""}function d$(e,t){if(Us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h$(e,t){if(e==null)return{};var n=p$(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p$(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var qP={symbolCircle:Hx,symbolCross:RR,symbolDiamond:DR,symbolSquare:LR,symbolStar:BR,symbolTriangle:zR,symbolWye:HR},m$=Math.PI/180,v$=function(t){var n="symbol".concat(Pf(t));return qP[n]||Hx},y$=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*m$;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},g$=function(t,n){qP["symbol".concat(Pf(t))]=n},Kx=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,o=a===void 0?64:a,u=t.sizeType,c=u===void 0?"area":u,d=h$(t,u$),h=vS(vS({},d),{},{type:r,size:o,sizeType:c}),v=function(){var b=v$(r),k=KR().type(b).size(y$(o,c,r));return k()},m=h.className,y=h.cx,x=h.cy,S=De(h,!0);return y===+y&&x===+x&&o===+o?E.createElement("path",gg({},S,{className:qe("recharts-symbols",m),transform:"translate(".concat(y,", ").concat(x,")"),d:v()})):null};Kx.registerSymbol=g$;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 xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xg.apply(this,arguments)}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function x$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(n),!0).forEach(function(r){qs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BP(r.key),r)}}function j$(e,t,n){return t&&w$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function S$(e,t,n){return t=Tc(t),k$(e,FP()?Reflect.construct(t,n||[],Tc(e).constructor):t.apply(e,n))}function k$(e,t){if(t&&(Va(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C$(e)}function C$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FP=function(){return!!e})()}function Tc(e){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tc(e)}function _$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bg(e,t)}function bg(e,t){return bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},bg(e,t)}function qs(e,t,n){return t=BP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BP(e){var t=O$(e,"string");return Va(t)=="symbol"?t:t+""}function O$(e,t){if(Va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kn=32,Vx=(function(e){function t(){return b$(this,t),S$(this,t,arguments)}return _$(t,e),j$(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,o=kn/2,u=kn/6,c=kn/3,d=r.inactive?a:r.color;if(r.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:kn,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(o,"h").concat(c,`
244
+ A`).concat(u,",").concat(u,",0,1,1,").concat(2*c,",").concat(o,`
245
+ H`).concat(kn,"M").concat(2*c,",").concat(o,`
246
+ A`).concat(u,",").concat(u,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return E.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(kn/8,"h").concat(kn,"v").concat(kn*3/4,"h").concat(-kn,"z"),className:"recharts-legend-icon"});if(E.isValidElement(r.legendIcon)){var h=x$({},r);return delete h.legendIcon,E.cloneElement(r.legendIcon,h)}return E.createElement(Kx,{fill:d,cx:o,cy:o,size:kn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,o=a.payload,u=a.iconSize,c=a.layout,d=a.formatter,h=a.inactiveColor,v={x:0,y:0,width:kn,height:kn},m={display:c==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(x,S){var j=x.formatter||d,b=qe(qs(qs({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",x.inactive));if(x.type==="none")return null;var k=Me(x.value)?null:x.value;kr(!Me(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=x.inactive?h:x.color;return E.createElement("li",xg({className:b,style:m,key:"legend-item-".concat(S)},jc(r.props,x,S)),E.createElement(dg,{width:u,height:u,viewBox:v,style:y},r.renderIcon(x)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},j?j(k,x,S):k))})}},{key:"render",value:function(){var r=this.props,a=r.payload,o=r.layout,u=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?u:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(ue.PureComponent);qs(Vx,"displayName","Legend");qs(Vx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ym,gS;function T$(){if(gS)return ym;gS=1;var e=_f();function t(){this.__data__=new e,this.size=0}return ym=t,ym}var gm,xS;function P$(){if(xS)return gm;xS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return gm=e,gm}var xm,bS;function N$(){if(bS)return xm;bS=1;function e(t){return this.__data__.get(t)}return xm=e,xm}var bm,wS;function A$(){if(wS)return bm;wS=1;function e(t){return this.__data__.has(t)}return bm=e,bm}var wm,jS;function E$(){if(jS)return wm;jS=1;var e=_f(),t=Dx(),n=Lx(),r=200;function a(o,u){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!t||d.length<r-1)return d.push([o,u]),this.size=++c.size,this;c=this.__data__=new n(d)}return c.set(o,u),this.size=c.size,this}return wm=a,wm}var jm,SS;function zP(){if(SS)return jm;SS=1;var e=_f(),t=T$(),n=P$(),r=N$(),a=A$(),o=E$();function u(c){var d=this.__data__=new e(c);this.size=d.size}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=r,u.prototype.has=a,u.prototype.set=o,jm=u,jm}var Sm,kS;function M$(){if(kS)return Sm;kS=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Sm=t,Sm}var km,CS;function I$(){if(CS)return km;CS=1;function e(t){return this.__data__.has(t)}return km=e,km}var Cm,_S;function WP(){if(_S)return Cm;_S=1;var e=Lx(),t=M$(),n=I$();function r(a){var o=-1,u=a==null?0:a.length;for(this.__data__=new e;++o<u;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Cm=r,Cm}var _m,OS;function HP(){if(OS)return _m;OS=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return _m=e,_m}var Om,TS;function KP(){if(TS)return Om;TS=1;function e(t,n){return t.has(n)}return Om=e,Om}var Tm,PS;function VP(){if(PS)return Tm;PS=1;var e=WP(),t=HP(),n=KP(),r=1,a=2;function o(u,c,d,h,v,m){var y=d&r,x=u.length,S=c.length;if(x!=S&&!(y&&S>x))return!1;var j=m.get(u),b=m.get(c);if(j&&b)return j==c&&b==u;var k=-1,_=!0,T=d&a?new e:void 0;for(m.set(u,c),m.set(c,u);++k<x;){var A=u[k],C=c[k];if(h)var O=y?h(C,A,k,c,u,m):h(A,C,k,u,c,m);if(O!==void 0){if(O)continue;_=!1;break}if(T){if(!t(c,function(N,M){if(!n(T,M)&&(A===N||v(A,N,d,h,m)))return T.push(M)})){_=!1;break}}else if(!(A===C||v(A,C,d,h,m))){_=!1;break}}return m.delete(u),m.delete(c),_}return Tm=o,Tm}var Pm,NS;function R$(){if(NS)return Pm;NS=1;var e=cr(),t=e.Uint8Array;return Pm=t,Pm}var Nm,AS;function $$(){if(AS)return Nm;AS=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}return Nm=e,Nm}var Am,ES;function Gx(){if(ES)return Am;ES=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return Am=e,Am}var Em,MS;function D$(){if(MS)return Em;MS=1;var e=_l(),t=R$(),n=$x(),r=VP(),a=$$(),o=Gx(),u=1,c=2,d="[object Boolean]",h="[object Date]",v="[object Error]",m="[object Map]",y="[object Number]",x="[object RegExp]",S="[object Set]",j="[object String]",b="[object Symbol]",k="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,A=T?T.valueOf:void 0;function C(O,N,M,R,K,L,U){switch(M){case _:if(O.byteLength!=N.byteLength||O.byteOffset!=N.byteOffset)return!1;O=O.buffer,N=N.buffer;case k:return!(O.byteLength!=N.byteLength||!L(new t(O),new t(N)));case d:case h:case y:return n(+O,+N);case v:return O.name==N.name&&O.message==N.message;case x:case j:return O==N+"";case m:var V=a;case S:var Y=R&u;if(V||(V=o),O.size!=N.size&&!Y)return!1;var G=U.get(O);if(G)return G==N;R|=c,U.set(O,N);var J=r(V(O),V(N),R,K,L,U);return U.delete(O),J;case b:if(A)return A.call(O)==A.call(N)}return!1}return Em=C,Em}var Mm,IS;function GP(){if(IS)return Mm;IS=1;function e(t,n){for(var r=-1,a=n.length,o=t.length;++r<a;)t[o+r]=n[r];return t}return Mm=e,Mm}var Im,RS;function L$(){if(RS)return Im;RS=1;var e=GP(),t=an();function n(r,a,o){var u=a(r);return t(r)?u:e(u,o(r))}return Im=n,Im}var Rm,$S;function U$(){if($S)return Rm;$S=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=0,u=[];++r<a;){var c=t[r];n(c,r,t)&&(u[o++]=c)}return u}return Rm=e,Rm}var $m,DS;function q$(){if(DS)return $m;DS=1;function e(){return[]}return $m=e,$m}var Dm,LS;function F$(){if(LS)return Dm;LS=1;var e=U$(),t=q$(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(u){return u==null?[]:(u=Object(u),e(a(u),function(c){return r.call(u,c)}))}:t;return Dm=o,Dm}var Lm,US;function B$(){if(US)return Lm;US=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return Lm=e,Lm}var Um,qS;function z$(){if(qS)return Um;qS=1;var e=Ir(),t=Rr(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return Um=r,Um}var qm,FS;function Xx(){if(FS)return qm;FS=1;var e=z$(),t=Rr(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(u){return t(u)&&r.call(u,"callee")&&!a.call(u,"callee")};return qm=o,qm}var Ps={exports:{}},Fm,BS;function W$(){if(BS)return Fm;BS=1;function e(){return!1}return Fm=e,Fm}Ps.exports;var zS;function XP(){return zS||(zS=1,(function(e,t){var n=cr(),r=W$(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,u=o&&o.exports===a,c=u?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||r;e.exports=h})(Ps,Ps.exports)),Ps.exports}var Bm,WS;function Yx(){if(WS)return Bm;WS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Bm=n,Bm}var zm,HS;function Qx(){if(HS)return zm;HS=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return zm=t,zm}var Wm,KS;function H$(){if(KS)return Wm;KS=1;var e=Ir(),t=Qx(),n=Rr(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",v="[object Number]",m="[object Object]",y="[object RegExp]",x="[object Set]",S="[object String]",j="[object WeakMap]",b="[object ArrayBuffer]",k="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",A="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",R="[object Uint16Array]",K="[object Uint32Array]",L={};L[_]=L[T]=L[A]=L[C]=L[O]=L[N]=L[M]=L[R]=L[K]=!0,L[r]=L[a]=L[b]=L[o]=L[k]=L[u]=L[c]=L[d]=L[h]=L[v]=L[m]=L[y]=L[x]=L[S]=L[j]=!1;function U(V){return n(V)&&t(V.length)&&!!L[e(V)]}return Wm=U,Wm}var Hm,VS;function YP(){if(VS)return Hm;VS=1;function e(t){return function(n){return t(n)}}return Hm=e,Hm}var Ns={exports:{}};Ns.exports;var GS;function K$(){return GS||(GS=1,(function(e,t){var n=vP(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,u=o&&n.process,c=(function(){try{var d=a&&a.require&&a.require("util").types;return d||u&&u.binding&&u.binding("util")}catch{}})();e.exports=c})(Ns,Ns.exports)),Ns.exports}var Km,XS;function QP(){if(XS)return Km;XS=1;var e=H$(),t=YP(),n=K$(),r=n&&n.isTypedArray,a=r?t(r):e;return Km=a,Km}var Vm,YS;function V$(){if(YS)return Vm;YS=1;var e=B$(),t=Xx(),n=an(),r=XP(),a=Yx(),o=QP(),u=Object.prototype,c=u.hasOwnProperty;function d(h,v){var m=n(h),y=!m&&t(h),x=!m&&!y&&r(h),S=!m&&!y&&!x&&o(h),j=m||y||x||S,b=j?e(h.length,String):[],k=b.length;for(var _ in h)(v||c.call(h,_))&&!(j&&(_=="length"||x&&(_=="offset"||_=="parent")||S&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,k)))&&b.push(_);return b}return Vm=d,Vm}var Gm,QS;function G$(){if(QS)return Gm;QS=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Gm=t,Gm}var Xm,ZS;function ZP(){if(ZS)return Xm;ZS=1;function e(t,n){return function(r){return t(n(r))}}return Xm=e,Xm}var Ym,JS;function X$(){if(JS)return Ym;JS=1;var e=ZP(),t=e(Object.keys,Object);return Ym=t,Ym}var Qm,ek;function Y$(){if(ek)return Qm;ek=1;var e=G$(),t=X$(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var u=[];for(var c in Object(o))r.call(o,c)&&c!="constructor"&&u.push(c);return u}return Qm=a,Qm}var Zm,tk;function Pl(){if(tk)return Zm;tk=1;var e=Rx(),t=Qx();function n(r){return r!=null&&t(r.length)&&!e(r)}return Zm=n,Zm}var Jm,nk;function Mf(){if(nk)return Jm;nk=1;var e=V$(),t=Y$(),n=Pl();function r(a){return n(a)?e(a):t(a)}return Jm=r,Jm}var ev,rk;function Q$(){if(rk)return ev;rk=1;var e=L$(),t=F$(),n=Mf();function r(a){return e(a,n,t)}return ev=r,ev}var tv,ik;function Z$(){if(ik)return tv;ik=1;var e=Q$(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,u,c,d,h,v){var m=c&t,y=e(o),x=y.length,S=e(u),j=S.length;if(x!=j&&!m)return!1;for(var b=x;b--;){var k=y[b];if(!(m?k in u:r.call(u,k)))return!1}var _=v.get(o),T=v.get(u);if(_&&T)return _==u&&T==o;var A=!0;v.set(o,u),v.set(u,o);for(var C=m;++b<x;){k=y[b];var O=o[k],N=u[k];if(d)var M=m?d(N,O,k,u,o,v):d(O,N,k,o,u,v);if(!(M===void 0?O===N||h(O,N,c,d,v):M)){A=!1;break}C||(C=k=="constructor")}if(A&&!C){var R=o.constructor,K=u.constructor;R!=K&&"constructor"in o&&"constructor"in u&&!(typeof R=="function"&&R instanceof R&&typeof K=="function"&&K instanceof K)&&(A=!1)}return v.delete(o),v.delete(u),A}return tv=a,tv}var nv,ak;function J$(){if(ak)return nv;ak=1;var e=ta(),t=cr(),n=e(t,"DataView");return nv=n,nv}var rv,ok;function eD(){if(ok)return rv;ok=1;var e=ta(),t=cr(),n=e(t,"Promise");return rv=n,rv}var iv,sk;function JP(){if(sk)return iv;sk=1;var e=ta(),t=cr(),n=e(t,"Set");return iv=n,iv}var av,lk;function tD(){if(lk)return av;lk=1;var e=ta(),t=cr(),n=e(t,"WeakMap");return av=n,av}var ov,uk;function nD(){if(uk)return ov;uk=1;var e=J$(),t=Dx(),n=eD(),r=JP(),a=tD(),o=Ir(),u=yP(),c="[object Map]",d="[object Object]",h="[object Promise]",v="[object Set]",m="[object WeakMap]",y="[object DataView]",x=u(e),S=u(t),j=u(n),b=u(r),k=u(a),_=o;return(e&&_(new e(new ArrayBuffer(1)))!=y||t&&_(new t)!=c||n&&_(n.resolve())!=h||r&&_(new r)!=v||a&&_(new a)!=m)&&(_=function(T){var A=o(T),C=A==d?T.constructor:void 0,O=C?u(C):"";if(O)switch(O){case x:return y;case S:return c;case j:return h;case b:return v;case k:return m}return A}),ov=_,ov}var sv,ck;function rD(){if(ck)return sv;ck=1;var e=zP(),t=VP(),n=D$(),r=Z$(),a=nD(),o=an(),u=XP(),c=QP(),d=1,h="[object Arguments]",v="[object Array]",m="[object Object]",y=Object.prototype,x=y.hasOwnProperty;function S(j,b,k,_,T,A){var C=o(j),O=o(b),N=C?v:a(j),M=O?v:a(b);N=N==h?m:N,M=M==h?m:M;var R=N==m,K=M==m,L=N==M;if(L&&u(j)){if(!u(b))return!1;C=!0,R=!1}if(L&&!R)return A||(A=new e),C||c(j)?t(j,b,k,_,T,A):n(j,b,N,k,_,T,A);if(!(k&d)){var U=R&&x.call(j,"__wrapped__"),V=K&&x.call(b,"__wrapped__");if(U||V){var Y=U?j.value():j,G=V?b.value():b;return A||(A=new e),T(Y,G,k,_,A)}}return L?(A||(A=new e),r(j,b,k,_,T,A)):!1}return sv=S,sv}var lv,fk;function Zx(){if(fk)return lv;fk=1;var e=rD(),t=Rr();function n(r,a,o,u,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,o,u,n,c)}return lv=n,lv}var uv,dk;function iD(){if(dk)return uv;dk=1;var e=zP(),t=Zx(),n=1,r=2;function a(o,u,c,d){var h=c.length,v=h,m=!d;if(o==null)return!v;for(o=Object(o);h--;){var y=c[h];if(m&&y[2]?y[1]!==o[y[0]]:!(y[0]in o))return!1}for(;++h<v;){y=c[h];var x=y[0],S=o[x],j=y[1];if(m&&y[2]){if(S===void 0&&!(x in o))return!1}else{var b=new e;if(d)var k=d(S,j,x,o,u,b);if(!(k===void 0?t(j,S,n|r,d,b):k))return!1}}return!0}return uv=a,uv}var cv,hk;function eN(){if(hk)return cv;hk=1;var e=gi();function t(n){return n===n&&!e(n)}return cv=t,cv}var fv,pk;function aD(){if(pk)return fv;pk=1;var e=eN(),t=Mf();function n(r){for(var a=t(r),o=a.length;o--;){var u=a[o],c=r[u];a[o]=[u,c,e(c)]}return a}return fv=n,fv}var dv,mk;function tN(){if(mk)return dv;mk=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return dv=e,dv}var hv,vk;function oD(){if(vk)return hv;vk=1;var e=iD(),t=aD(),n=tN();function r(a){var o=t(a);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(u){return u===a||e(u,a,o)}}return hv=r,hv}var pv,yk;function sD(){if(yk)return pv;yk=1;function e(t,n){return t!=null&&n in Object(t)}return pv=e,pv}var mv,gk;function lD(){if(gk)return mv;gk=1;var e=bP(),t=Xx(),n=an(),r=Yx(),a=Qx(),o=Tf();function u(c,d,h){d=e(d,c);for(var v=-1,m=d.length,y=!1;++v<m;){var x=o(d[v]);if(!(y=c!=null&&h(c,x)))break;c=c[x]}return y||++v!=m?y:(m=c==null?0:c.length,!!m&&a(m)&&r(x,m)&&(n(c)||t(c)))}return mv=u,mv}var vv,xk;function uD(){if(xk)return vv;xk=1;var e=sD(),t=lD();function n(r,a){return r!=null&&t(r,a,e)}return vv=n,vv}var yv,bk;function cD(){if(bk)return yv;bk=1;var e=Zx(),t=wP(),n=uD(),r=Ix(),a=eN(),o=tN(),u=Tf(),c=1,d=2;function h(v,m){return r(v)&&a(m)?o(u(v),m):function(y){var x=t(y,v);return x===void 0&&x===m?n(y,v):e(m,x,c|d)}}return yv=h,yv}var gv,wk;function So(){if(wk)return gv;wk=1;function e(t){return t}return gv=e,gv}var xv,jk;function fD(){if(jk)return xv;jk=1;function e(t){return function(n){return n==null?void 0:n[t]}}return xv=e,xv}var bv,Sk;function dD(){if(Sk)return bv;Sk=1;var e=qx();function t(n){return function(r){return e(r,n)}}return bv=t,bv}var wv,kk;function hD(){if(kk)return wv;kk=1;var e=fD(),t=dD(),n=Ix(),r=Tf();function a(o){return n(o)?e(r(o)):t(o)}return wv=a,wv}var jv,Ck;function xi(){if(Ck)return jv;Ck=1;var e=oD(),t=cD(),n=So(),r=an(),a=hD();function o(u){return typeof u=="function"?u:u==null?n:typeof u=="object"?r(u)?t(u[0],u[1]):e(u):a(u)}return jv=o,jv}var Sv,_k;function nN(){if(_k)return Sv;_k=1;function e(t,n,r,a){for(var o=t.length,u=r+(a?1:-1);a?u--:++u<o;)if(n(t[u],u,t))return u;return-1}return Sv=e,Sv}var kv,Ok;function pD(){if(Ok)return kv;Ok=1;function e(t){return t!==t}return kv=e,kv}var Cv,Tk;function mD(){if(Tk)return Cv;Tk=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return Cv=e,Cv}var _v,Pk;function vD(){if(Pk)return _v;Pk=1;var e=nN(),t=pD(),n=mD();function r(a,o,u){return o===o?n(a,o,u):e(a,t,u)}return _v=r,_v}var Ov,Nk;function yD(){if(Nk)return Ov;Nk=1;var e=vD();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return Ov=t,Ov}var Tv,Ak;function gD(){if(Ak)return Tv;Ak=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return Tv=e,Tv}var Pv,Ek;function xD(){if(Ek)return Pv;Ek=1;function e(){}return Pv=e,Pv}var Nv,Mk;function bD(){if(Mk)return Nv;Mk=1;var e=JP(),t=xD(),n=Gx(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return Nv=a,Nv}var Av,Ik;function wD(){if(Ik)return Av;Ik=1;var e=WP(),t=yD(),n=gD(),r=KP(),a=bD(),o=Gx(),u=200;function c(d,h,v){var m=-1,y=t,x=d.length,S=!0,j=[],b=j;if(v)S=!1,y=n;else if(x>=u){var k=h?null:a(d);if(k)return o(k);S=!1,y=r,b=new e}else b=h?[]:j;e:for(;++m<x;){var _=d[m],T=h?h(_):_;if(_=v||_!==0?_:0,S&&T===T){for(var A=b.length;A--;)if(b[A]===T)continue e;h&&b.push(T),j.push(_)}else y(b,T,v)||(b!==j&&b.push(T),j.push(_))}return j}return Av=c,Av}var Ev,Rk;function jD(){if(Rk)return Ev;Rk=1;var e=xi(),t=wD();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return Ev=n,Ev}var SD=jD();const $k=Ve(SD);function rN(e,t,n){return t===!0?$k(e,n):Me(t)?$k(e,t):e}function Ga(e){"@babel/helpers - typeof";return Ga=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},Ga(e)}var kD=["ref"];function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dk(Object(n),!0).forEach(function(r){If(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aN(r.key),r)}}function _D(e,t,n){return t&&Lk(e.prototype,t),n&&Lk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OD(e,t,n){return t=Pc(t),TD(e,iN()?Reflect.construct(t,n||[],Pc(e).constructor):t.apply(e,n))}function TD(e,t){if(t&&(Ga(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PD(e)}function PD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iN=function(){return!!e})()}function Pc(e){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pc(e)}function ND(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wg(e,t)}function If(e,t,n){return t=aN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aN(e){var t=AD(e,"string");return Ga(t)=="symbol"?t:t+""}function AD(e,t){if(Ga(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ED(e,t){if(e==null)return{};var n=MD(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ID(e){return e.value}function RD(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var n=ED(t,kD);return E.createElement(Vx,n)}var Uk=1,Wi=(function(e){function t(){var n;CD(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=OD(this,t,[].concat(a)),If(n,"lastBoundingBox",{width:-1,height:-1}),n}return ND(t,e),_D(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Uk||Math.abs(a.height-this.lastBoundingBox.height)>Uk)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?xr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,o=a.layout,u=a.align,c=a.verticalAlign,d=a.margin,h=a.chartWidth,v=a.chartHeight,m,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(u==="center"&&o==="vertical"){var x=this.getBBoxSnapshot();m={left:((h||0)-x.width)/2}}else m=u==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var S=this.getBBoxSnapshot();y={top:((v||0)-S.height)/2}}else y=c==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return xr(xr({},m),y)}},{key:"render",value:function(){var r=this,a=this.props,o=a.content,u=a.width,c=a.height,d=a.wrapperStyle,h=a.payloadUniqBy,v=a.payload,m=xr(xr({position:"absolute",width:u||"auto",height:c||"auto"},this.getDefaultPosition(d)),d);return E.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(x){r.wrapperNode=x}},RD(o,xr(xr({},this.props),{},{payload:rN(v,h,ID)})))}}],[{key:"getWithHeight",value:function(r,a){var o=xr(xr({},this.defaultProps),r.props),u=o.layout;return u==="vertical"&&de(r.props.height)?{height:r.props.height}:u==="horizontal"?{width:r.props.width||a}:null}}])})(ue.PureComponent);If(Wi,"displayName","Legend");If(Wi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Mv,qk;function $D(){if(qk)return Mv;qk=1;var e=_l(),t=Xx(),n=an(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return Mv=a,Mv}var Iv,Fk;function oN(){if(Fk)return Iv;Fk=1;var e=GP(),t=$D();function n(r,a,o,u,c){var d=-1,h=r.length;for(o||(o=t),c||(c=[]);++d<h;){var v=r[d];a>0&&o(v)?a>1?n(v,a-1,o,u,c):e(c,v):u||(c[c.length]=v)}return c}return Iv=n,Iv}var Rv,Bk;function DD(){if(Bk)return Rv;Bk=1;function e(t){return function(n,r,a){for(var o=-1,u=Object(n),c=a(n),d=c.length;d--;){var h=c[t?d:++o];if(r(u[h],h,u)===!1)break}return n}}return Rv=e,Rv}var $v,zk;function LD(){if(zk)return $v;zk=1;var e=DD(),t=e();return $v=t,$v}var Dv,Wk;function sN(){if(Wk)return Dv;Wk=1;var e=LD(),t=Mf();function n(r,a){return r&&e(r,a,t)}return Dv=n,Dv}var Lv,Hk;function UD(){if(Hk)return Lv;Hk=1;var e=Pl();function t(n,r){return function(a,o){if(a==null)return a;if(!e(a))return n(a,o);for(var u=a.length,c=r?u:-1,d=Object(a);(r?c--:++c<u)&&o(d[c],c,d)!==!1;);return a}}return Lv=t,Lv}var Uv,Kk;function Jx(){if(Kk)return Uv;Kk=1;var e=sN(),t=UD(),n=t(e);return Uv=n,Uv}var qv,Vk;function lN(){if(Vk)return qv;Vk=1;var e=Jx(),t=Pl();function n(r,a){var o=-1,u=t(r)?Array(r.length):[];return e(r,function(c,d,h){u[++o]=a(c,d,h)}),u}return qv=n,qv}var Fv,Gk;function qD(){if(Gk)return Fv;Gk=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Fv=e,Fv}var Bv,Xk;function FD(){if(Xk)return Bv;Xk=1;var e=wo();function t(n,r){if(n!==r){var a=n!==void 0,o=n===null,u=n===n,c=e(n),d=r!==void 0,h=r===null,v=r===r,m=e(r);if(!h&&!m&&!c&&n>r||c&&d&&v&&!h&&!m||o&&d&&v||!a&&v||!u)return 1;if(!o&&!c&&!m&&n<r||m&&a&&u&&!o&&!c||h&&a&&u||!d&&u||!v)return-1}return 0}return Bv=t,Bv}var zv,Yk;function BD(){if(Yk)return zv;Yk=1;var e=FD();function t(n,r,a){for(var o=-1,u=n.criteria,c=r.criteria,d=u.length,h=a.length;++o<d;){var v=e(u[o],c[o]);if(v){if(o>=h)return v;var m=a[o];return v*(m=="desc"?-1:1)}}return n.index-r.index}return zv=t,zv}var Wv,Qk;function zD(){if(Qk)return Wv;Qk=1;var e=Ux(),t=qx(),n=xi(),r=lN(),a=qD(),o=YP(),u=BD(),c=So(),d=an();function h(v,m,y){m.length?m=e(m,function(j){return d(j)?function(b){return t(b,j.length===1?j[0]:j)}:j}):m=[c];var x=-1;m=e(m,o(n));var S=r(v,function(j,b,k){var _=e(m,function(T){return T(j)});return{criteria:_,index:++x,value:j}});return a(S,function(j,b){return u(j,b,y)})}return Wv=h,Wv}var Hv,Zk;function WD(){if(Zk)return Hv;Zk=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Hv=e,Hv}var Kv,Jk;function HD(){if(Jk)return Kv;Jk=1;var e=WD(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var u=arguments,c=-1,d=t(u.length-a,0),h=Array(d);++c<d;)h[c]=u[a+c];c=-1;for(var v=Array(a+1);++c<a;)v[c]=u[c];return v[a]=o(h),e(r,this,v)}}return Kv=n,Kv}var Vv,eC;function KD(){if(eC)return Vv;eC=1;function e(t){return function(){return t}}return Vv=e,Vv}var Gv,tC;function uN(){if(tC)return Gv;tC=1;var e=ta(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Gv=t,Gv}var Xv,nC;function VD(){if(nC)return Xv;nC=1;var e=KD(),t=uN(),n=So(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Xv=r,Xv}var Yv,rC;function GD(){if(rC)return Yv;rC=1;var e=800,t=16,n=Date.now;function r(a){var o=0,u=0;return function(){var c=n(),d=t-(c-u);if(u=c,d>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return Yv=r,Yv}var Qv,iC;function XD(){if(iC)return Qv;iC=1;var e=VD(),t=GD(),n=t(e);return Qv=n,Qv}var Zv,aC;function YD(){if(aC)return Zv;aC=1;var e=So(),t=HD(),n=XD();function r(a,o){return n(t(a,o,e),a+"")}return Zv=r,Zv}var Jv,oC;function Rf(){if(oC)return Jv;oC=1;var e=$x(),t=Pl(),n=Yx(),r=gi();function a(o,u,c){if(!r(c))return!1;var d=typeof u;return(d=="number"?t(c)&&n(u,c.length):d=="string"&&u in c)?e(c[u],o):!1}return Jv=a,Jv}var ey,sC;function QD(){if(sC)return ey;sC=1;var e=oN(),t=zD(),n=YD(),r=Rf(),a=n(function(o,u){if(o==null)return[];var c=u.length;return c>1&&r(o,u[0],u[1])?u=[]:c>2&&r(u[0],u[1],u[2])&&(u=[u[0]]),t(o,e(u,1),[])});return ey=a,ey}var ZD=QD();const e0=Ve(ZD);function Fs(e){"@babel/helpers - typeof";return Fs=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},Fs(e)}function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jg.apply(this,arguments)}function JD(e,t){return r3(e)||n3(e,t)||t3(e,t)||e3()}function e3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
247
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t3(e,t){if(e){if(typeof e=="string")return lC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lC(e,t)}}function lC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function r3(e){if(Array.isArray(e))return e}function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(n),!0).forEach(function(r){i3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i3(e,t,n){return t=a3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a3(e){var t=o3(e,"string");return Fs(t)=="symbol"?t:t+""}function o3(e,t){if(Fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s3(e){return Array.isArray(e)&&jt(e[0])&&jt(e[1])?e.join(" ~ "):e}var l3=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,o=a===void 0?{}:a,u=t.itemStyle,c=u===void 0?{}:u,d=t.labelStyle,h=d===void 0?{}:d,v=t.payload,m=t.formatter,y=t.itemSorter,x=t.wrapperClassName,S=t.labelClassName,j=t.label,b=t.labelFormatter,k=t.accessibilityLayer,_=k===void 0?!1:k,T=function(){if(v&&v.length){var U={padding:0,margin:0},V=(y?e0(v,y):v).map(function(Y,G){if(Y.type==="none")return null;var J=ty({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},c),ne=Y.formatter||m||s3,z=Y.value,Q=Y.name,Z=z,$=Q;if(ne&&Z!=null&&$!=null){var F=ne(z,Q,Y,G,v);if(Array.isArray(F)){var ce=JD(F,2);Z=ce[0],$=ce[1]}else Z=F}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(G),style:J},jt($)?E.createElement("span",{className:"recharts-tooltip-item-name"},$):null,jt($)?E.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,E.createElement("span",{className:"recharts-tooltip-item-value"},Z),E.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:U},V)}return null},A=ty({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),C=ty({margin:0},h),O=!$e(j),N=O?j:"",M=qe("recharts-default-tooltip",x),R=qe("recharts-tooltip-label",S);O&&b&&v!==void 0&&v!==null&&(N=b(j,v));var K=_?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",jg({className:M,style:A},K),E.createElement("p",{className:R,style:C},E.isValidElement(N)?N:"".concat(N)),T())};function Bs(e){"@babel/helpers - typeof";return Bs=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},Bs(e)}function Zu(e,t,n){return t=u3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u3(e){var t=c3(e,"string");return Bs(t)=="symbol"?t:t+""}function c3(e,t){if(Bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xs="recharts-tooltip-wrapper",f3={visibility:"hidden"};function d3(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return qe(xs,Zu(Zu(Zu(Zu({},"".concat(xs,"-right"),de(n)&&t&&de(t.x)&&n>=t.x),"".concat(xs,"-left"),de(n)&&t&&de(t.x)&&n<t.x),"".concat(xs,"-bottom"),de(r)&&t&&de(t.y)&&r>=t.y),"".concat(xs,"-top"),de(r)&&t&&de(t.y)&&r<t.y))}function cC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,o=e.position,u=e.reverseDirection,c=e.tooltipDimension,d=e.viewBox,h=e.viewBoxDimension;if(o&&de(o[r]))return o[r];var v=n[r]-c-a,m=n[r]+a;if(t[r])return u[r]?v:m;if(u[r]){var y=v,x=d[r];return y<x?Math.max(m,d[r]):Math.max(v,d[r])}var S=m+c,j=d[r]+h;return S>j?Math.max(v,d[r]):Math.max(m,d[r])}function h3(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function p3(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipBox,c=e.useTranslate3d,d=e.viewBox,h,v,m;return u.height>0&&u.width>0&&n?(v=cC({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:d,viewBoxDimension:d.width}),m=cC({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:d,viewBoxDimension:d.height}),h=h3({translateX:v,translateY:m,useTranslate3d:c})):h=f3,{cssProperties:h,cssClasses:d3({translateX:v,translateY:m,coordinate:n})}}function Xa(e){"@babel/helpers - typeof";return Xa=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},Xa(e)}function fC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fC(Object(n),!0).forEach(function(r){kg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fN(r.key),r)}}function y3(e,t,n){return t&&v3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g3(e,t,n){return t=Nc(t),x3(e,cN()?Reflect.construct(t,n||[],Nc(e).constructor):t.apply(e,n))}function x3(e,t){if(t&&(Xa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b3(e)}function b3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cN=function(){return!!e})()}function Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nc(e)}function w3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sg(e,t)}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sg(e,t)}function kg(e,t,n){return t=fN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(e){var t=j3(e,"string");return Xa(t)=="symbol"?t:t+""}function j3(e,t){if(Xa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hC=1,S3=(function(e){function t(){var n;m3(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=g3(this,t,[].concat(a)),kg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),kg(n,"handleKeyDown",function(u){if(u.key==="Escape"){var c,d,h,v;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(d=n.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&c!==void 0?c:0,y:(h=(v=n.props.coordinate)===null||v===void 0?void 0:v.y)!==null&&h!==void 0?h:0}})}}),n}return w3(t,e),y3(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>hC||Math.abs(r.height-this.state.lastBoundingBox.height)>hC)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,o=a.active,u=a.allowEscapeViewBox,c=a.animationDuration,d=a.animationEasing,h=a.children,v=a.coordinate,m=a.hasPayload,y=a.isAnimationActive,x=a.offset,S=a.position,j=a.reverseDirection,b=a.useTranslate3d,k=a.viewBox,_=a.wrapperStyle,T=p3({allowEscapeViewBox:u,coordinate:v,offsetTopLeft:x,position:S,reverseDirection:j,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:k}),A=T.cssClasses,C=T.cssProperties,O=dC(dC({transition:y&&o?"transform ".concat(c,"ms ").concat(d):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&m?"visible":"hidden",position:"absolute",top:0,left:0},_);return E.createElement("div",{tabIndex:-1,className:A,style:O,ref:function(M){r.wrapperNode=M}},h)}}])})(ue.PureComponent),k3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ko={isSsr:k3()};function Ya(e){"@babel/helpers - typeof";return Ya=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},Ya(e)}function pC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pC(Object(n),!0).forEach(function(r){t0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hN(r.key),r)}}function O3(e,t,n){return t&&_3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T3(e,t,n){return t=Ac(t),P3(e,dN()?Reflect.construct(t,n||[],Ac(e).constructor):t.apply(e,n))}function P3(e,t){if(t&&(Ya(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N3(e)}function N3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dN=function(){return!!e})()}function Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ac(e)}function A3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cg(e,t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cg(e,t)}function t0(e,t,n){return t=hN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e){var t=E3(e,"string");return Ya(t)=="symbol"?t:t+""}function E3(e,t){if(Ya(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function M3(e){return e.dataKey}function I3(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(l3,t)}var Ft=(function(e){function t(){return C3(this,t),T3(this,t,arguments)}return A3(t,e),O3(t,[{key:"render",value:function(){var r=this,a=this.props,o=a.active,u=a.allowEscapeViewBox,c=a.animationDuration,d=a.animationEasing,h=a.content,v=a.coordinate,m=a.filterNull,y=a.isAnimationActive,x=a.offset,S=a.payload,j=a.payloadUniqBy,b=a.position,k=a.reverseDirection,_=a.useTranslate3d,T=a.viewBox,A=a.wrapperStyle,C=S??[];m&&C.length&&(C=rN(S.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),j,M3));var O=C.length>0;return E.createElement(S3,{allowEscapeViewBox:u,animationDuration:c,animationEasing:d,isAnimationActive:y,active:o,coordinate:v,hasPayload:O,offset:x,position:b,reverseDirection:k,useTranslate3d:_,viewBox:T,wrapperStyle:A},I3(h,mC(mC({},this.props),{},{payload:C})))}}])})(ue.PureComponent);t0(Ft,"displayName","Tooltip");t0(Ft,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ko.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 ny,vC;function R3(){if(vC)return ny;vC=1;var e=cr(),t=function(){return e.Date.now()};return ny=t,ny}var ry,yC;function $3(){if(yC)return ry;yC=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return ry=t,ry}var iy,gC;function D3(){if(gC)return iy;gC=1;var e=$3(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return iy=n,iy}var ay,xC;function pN(){if(xC)return ay;xC=1;var e=D3(),t=gi(),n=wo(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function d(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=t(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=e(h);var m=o.test(h);return m||u.test(h)?c(h.slice(2),m?2:8):a.test(h)?r:+h}return ay=d,ay}var oy,bC;function L3(){if(bC)return oy;bC=1;var e=gi(),t=R3(),n=pN(),r="Expected a function",a=Math.max,o=Math.min;function u(c,d,h){var v,m,y,x,S,j,b=0,k=!1,_=!1,T=!0;if(typeof c!="function")throw new TypeError(r);d=n(d)||0,e(h)&&(k=!!h.leading,_="maxWait"in h,y=_?a(n(h.maxWait)||0,d):y,T="trailing"in h?!!h.trailing:T);function A(V){var Y=v,G=m;return v=m=void 0,b=V,x=c.apply(G,Y),x}function C(V){return b=V,S=setTimeout(M,d),k?A(V):x}function O(V){var Y=V-j,G=V-b,J=d-Y;return _?o(J,y-G):J}function N(V){var Y=V-j,G=V-b;return j===void 0||Y>=d||Y<0||_&&G>=y}function M(){var V=t();if(N(V))return R(V);S=setTimeout(M,O(V))}function R(V){return S=void 0,T&&v?A(V):(v=m=void 0,x)}function K(){S!==void 0&&clearTimeout(S),b=0,v=j=m=S=void 0}function L(){return S===void 0?x:R(t())}function U(){var V=t(),Y=N(V);if(v=arguments,m=this,j=V,Y){if(S===void 0)return C(j);if(_)return clearTimeout(S),S=setTimeout(M,d),A(j)}return S===void 0&&(S=setTimeout(M,d)),x}return U.cancel=K,U.flush=L,U}return oy=u,oy}var sy,wC;function U3(){if(wC)return sy;wC=1;var e=L3(),t=gi(),n="Expected a function";function r(a,o,u){var c=!0,d=!0;if(typeof a!="function")throw new TypeError(n);return t(u)&&(c="leading"in u?!!u.leading:c,d="trailing"in u?!!u.trailing:d),e(a,o,{leading:c,maxWait:o,trailing:d})}return sy=r,sy}var q3=U3();const mN=Ve(q3);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 jC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ju(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jC(Object(n),!0).forEach(function(r){F3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F3(e,t,n){return t=B3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B3(e){var t=z3(e,"string");return zs(t)=="symbol"?t:t+""}function z3(e,t){if(zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W3(e,t){return G3(e)||V3(e,t)||K3(e,t)||H3()}function H3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
248
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K3(e,t){if(e){if(typeof e=="string")return SC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SC(e,t)}}function SC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function G3(e){if(Array.isArray(e))return e}var Qa=ue.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,o=e.width,u=o===void 0?"100%":o,c=e.height,d=c===void 0?"100%":c,h=e.minWidth,v=h===void 0?0:h,m=e.minHeight,y=e.maxHeight,x=e.children,S=e.debounce,j=S===void 0?0:S,b=e.id,k=e.className,_=e.onResize,T=e.style,A=T===void 0?{}:T,C=ue.useRef(null),O=ue.useRef();O.current=_,ue.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var N=ue.useState({containerWidth:a.width,containerHeight:a.height}),M=W3(N,2),R=M[0],K=M[1],L=ue.useCallback(function(V,Y){K(function(G){var J=Math.round(V),ne=Math.round(Y);return G.containerWidth===J&&G.containerHeight===ne?G:{containerWidth:J,containerHeight:ne}})},[]);ue.useEffect(function(){var V=function(Q){var Z,$=Q[0].contentRect,F=$.width,ce=$.height;L(F,ce),(Z=O.current)===null||Z===void 0||Z.call(O,F,ce)};j>0&&(V=mN(V,j,{trailing:!0,leading:!1}));var Y=new ResizeObserver(V),G=C.current.getBoundingClientRect(),J=G.width,ne=G.height;return L(J,ne),Y.observe(C.current),function(){Y.disconnect()}},[L,j]);var U=ue.useMemo(function(){var V=R.containerWidth,Y=R.containerHeight;if(V<0||Y<0)return null;kr(Ui(u)||Ui(d),`The width(%s) and height(%s) are both fixed numbers,
249
+ maybe you don't need to use a ResponsiveContainer.`,u,d),kr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var G=Ui(u)?V:u,J=Ui(d)?Y:d;n&&n>0&&(G?J=G/n:J&&(G=J*n),y&&J>y&&(J=y)),kr(G>0||J>0,`The width(%s) and height(%s) of chart should be greater than 0,
250
+ please check the style of container, or the props width(%s) and height(%s),
251
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
252
+ height and width.`,G,J,u,d,v,m,n);var ne=!Array.isArray(x)&&Sr(x.type).endsWith("Chart");return E.Children.map(x,function(z){return E.isValidElement(z)?ue.cloneElement(z,Ju({width:G,height:J},ne?{style:Ju({height:"100%",width:"100%",maxHeight:J,maxWidth:G},z.props.style)}:{})):z})},[n,x,d,y,m,v,R,u]);return E.createElement("div",{id:b?"".concat(b):void 0,className:qe("recharts-responsive-container",k),style:Ju(Ju({},A),{},{width:u,height:d,minWidth:v,minHeight:m,maxHeight:y}),ref:C},U)}),$f=function(t){return null};$f.displayName="Cell";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 kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kC(Object(n),!0).forEach(function(r){X3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X3(e,t,n){return t=Y3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y3(e){var t=Q3(e,"string");return Ws(t)=="symbol"?t:t+""}function Q3(e,t){if(Ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Na={widthCache:{},cacheCount:0},Z3=2e3,J3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},CC="recharts_measurement_span";function e4(e){var t=_g({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Es=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ko.isSsr)return{width:0,height:0};var r=e4(n),a=JSON.stringify({text:t,copyStyle:r});if(Na.widthCache[a])return Na.widthCache[a];try{var o=document.getElementById(CC);o||(o=document.createElement("span"),o.setAttribute("id",CC),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var u=_g(_g({},J3),r);Object.assign(o.style,u),o.textContent="".concat(t);var c=o.getBoundingClientRect(),d={width:c.width,height:c.height};return Na.widthCache[a]=d,++Na.cacheCount>Z3&&(Na.cacheCount=0,Na.widthCache={}),d}catch{return{width:0,height:0}}},t4=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ec(e,t){return a4(e)||i4(e,t)||r4(e,t)||n4()}function n4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
253
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r4(e,t){if(e){if(typeof e=="string")return _C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _C(e,t)}}function _C(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function a4(e){if(Array.isArray(e))return e}function o4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l4(r.key),r)}}function s4(e,t,n){return t&&OC(e.prototype,t),n&&OC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l4(e){var t=u4(e,"string");return Hs(t)=="symbol"?t:t+""}function u4(e,t){if(Hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TC=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PC=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,c4=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,f4=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,vN={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},d4=Object.keys(vN),Ra="NaN";function h4(e,t){return e*vN[t]}var ec=(function(){function e(t,n){o4(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!c4.test(n)&&(this.num=NaN,this.unit=""),d4.includes(n)&&(this.num=h4(t,n),this.unit="px")}return s4(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=f4.exec(n))!==null&&r!==void 0?r:[],o=Ec(a,3),u=o[1],c=o[2];return new e(parseFloat(u),c??"")}}])})();function yN(e){if(e.includes(Ra))return Ra;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=TC.exec(t))!==null&&n!==void 0?n:[],a=Ec(r,4),o=a[1],u=a[2],c=a[3],d=ec.parse(o??""),h=ec.parse(c??""),v=u==="*"?d.multiply(h):d.divide(h);if(v.isNaN())return Ra;t=t.replace(TC,v.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,y=(m=PC.exec(t))!==null&&m!==void 0?m:[],x=Ec(y,4),S=x[1],j=x[2],b=x[3],k=ec.parse(S??""),_=ec.parse(b??""),T=j==="+"?k.add(_):k.subtract(_);if(T.isNaN())return Ra;t=t.replace(PC,T.toString())}return t}var NC=/\(([^()]*)\)/;function p4(e){for(var t=e;t.includes("(");){var n=NC.exec(t),r=Ec(n,2),a=r[1];t=t.replace(NC,yN(a))}return t}function m4(e){var t=e.replace(/\s+/g,"");return t=p4(t),t=yN(t),t}function v4(e){try{return m4(e)}catch{return Ra}}function ly(e){var t=v4(e.slice(5,-1));return t===Ra?"":t}var y4=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],g4=["dx","dy","angle","className","breakAll"];function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Og.apply(this,arguments)}function AC(e,t){if(e==null)return{};var n=x4(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function EC(e,t){return S4(e)||j4(e,t)||w4(e,t)||b4()}function b4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w4(e,t){if(e){if(typeof e=="string")return MC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MC(e,t)}}function MC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function S4(e){if(Array.isArray(e))return e}var gN=/[ \f\n\r\t\v\u2028\u2029]+/,xN=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var o=[];$e(n)||(r?o=n.toString().split(""):o=n.toString().split(gN));var u=o.map(function(d){return{word:d,width:Es(d,a).width}}),c=r?0:Es(" ",a).width;return{wordsWithComputedWidth:u,spaceWidth:c}}catch{return null}},k4=function(t,n,r,a,o){var u=t.maxLines,c=t.children,d=t.style,h=t.breakAll,v=de(u),m=c,y=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(J,ne){var z=ne.word,Q=ne.width,Z=J[J.length-1];if(Z&&(a==null||o||Z.width+Q+r<Number(a)))Z.words.push(z),Z.width+=Q+r;else{var $={words:[z],width:Q};J.push($)}return J},[])},x=y(n),S=function(G){return G.reduce(function(J,ne){return J.width>ne.width?J:ne})};if(!v)return x;for(var j="…",b=function(G){var J=m.slice(0,G),ne=xN({breakAll:h,style:d,children:J+j}).wordsWithComputedWidth,z=y(ne),Q=z.length>u||S(z).width>Number(a);return[Q,z]},k=0,_=m.length-1,T=0,A;k<=_&&T<=m.length-1;){var C=Math.floor((k+_)/2),O=C-1,N=b(O),M=EC(N,2),R=M[0],K=M[1],L=b(C),U=EC(L,1),V=U[0];if(!R&&!V&&(k=C+1),R&&V&&(_=C-1),!R&&V){A=K;break}T++}return A||x},IC=function(t){var n=$e(t)?[]:t.toString().split(gN);return[{words:n}]},C4=function(t){var n=t.width,r=t.scaleToFit,a=t.children,o=t.style,u=t.breakAll,c=t.maxLines;if((n||r)&&!ko.isSsr){var d,h,v=xN({breakAll:u,children:a,style:o});if(v){var m=v.wordsWithComputedWidth,y=v.spaceWidth;d=m,h=y}else return IC(a);return k4({breakAll:u,children:a,maxLines:c,style:o},d,h,n,r)}return IC(a)},RC="#808080",Mc=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,u=t.lineHeight,c=u===void 0?"1em":u,d=t.capHeight,h=d===void 0?"0.71em":d,v=t.scaleToFit,m=v===void 0?!1:v,y=t.textAnchor,x=y===void 0?"start":y,S=t.verticalAnchor,j=S===void 0?"end":S,b=t.fill,k=b===void 0?RC:b,_=AC(t,y4),T=ue.useMemo(function(){return C4({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:m,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,m,_.style,_.width]),A=_.dx,C=_.dy,O=_.angle,N=_.className,M=_.breakAll,R=AC(_,g4);if(!jt(r)||!jt(o))return null;var K=r+(de(A)?A:0),L=o+(de(C)?C:0),U;switch(j){case"start":U=ly("calc(".concat(h,")"));break;case"middle":U=ly("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(h," / 2))"));break;default:U=ly("calc(".concat(T.length-1," * -").concat(c,")"));break}var V=[];if(m){var Y=T[0].width,G=_.width;V.push("scale(".concat((de(G)?G/Y:1)/Y,")"))}return O&&V.push("rotate(".concat(O,", ").concat(K,", ").concat(L,")")),V.length&&(R.transform=V.join(" ")),E.createElement("text",Og({},De(R,!0),{x:K,y:L,className:qe("recharts-text",N),textAnchor:x,fill:k.includes("url")?RC:k}),T.map(function(J,ne){var z=J.words.join(M?"":" ");return E.createElement("tspan",{x:K,dy:ne===0?U:c,key:"".concat(z,"-").concat(ne)},z)}))};function li(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _4(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n0(e){let t,n,r;e.length!==2?(t=li,n=(c,d)=>li(e(c),d),r=(c,d)=>e(c)-d):(t=e===li||e===_4?e:O4,n=e,r=e);function a(c,d,h=0,v=c.length){if(h<v){if(t(d,d)!==0)return v;do{const m=h+v>>>1;n(c[m],d)<0?h=m+1:v=m}while(h<v)}return h}function o(c,d,h=0,v=c.length){if(h<v){if(t(d,d)!==0)return v;do{const m=h+v>>>1;n(c[m],d)<=0?h=m+1:v=m}while(h<v)}return h}function u(c,d,h=0,v=c.length){const m=a(c,d,h,v-1);return m>h&&r(c[m-1],d)>-r(c[m],d)?m-1:m}return{left:a,center:u,right:o}}function O4(){return 0}function bN(e){return e===null?NaN:+e}function*T4(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const P4=n0(li),Nl=P4.right;n0(bN).center;class $C extends Map{constructor(t,n=E4){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(DC(this,t))}has(t){return super.has(DC(this,t))}set(t,n){return super.set(N4(this,t),n)}delete(t){return super.delete(A4(this,t))}}function DC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function N4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function A4({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function E4(e){return e!==null&&typeof e=="object"?e.valueOf():e}function M4(e=li){if(e===li)return wN;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function wN(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const I4=Math.sqrt(50),R4=Math.sqrt(10),$4=Math.sqrt(2);function Ic(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),u=o>=I4?10:o>=R4?5:o>=$4?2:1;let c,d,h;return a<0?(h=Math.pow(10,-a)/u,c=Math.round(e*h),d=Math.round(t*h),c/h<e&&++c,d/h>t&&--d,h=-h):(h=Math.pow(10,a)*u,c=Math.round(e/h),d=Math.round(t/h),c*h<e&&++c,d*h>t&&--d),d<c&&.5<=n&&n<2?Ic(e,t,n*2):[c,d,h]}function Tg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,u]=r?Ic(t,e,n):Ic(e,t,n);if(!(o>=a))return[];const c=o-a+1,d=new Array(c);if(r)if(u<0)for(let h=0;h<c;++h)d[h]=(o-h)/-u;else for(let h=0;h<c;++h)d[h]=(o-h)*u;else if(u<0)for(let h=0;h<c;++h)d[h]=(a+h)/-u;else for(let h=0;h<c;++h)d[h]=(a+h)*u;return d}function Pg(e,t,n){return t=+t,e=+e,n=+n,Ic(e,t,n)[2]}function Ng(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Pg(t,e,n):Pg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function LC(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function UC(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function jN(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?wN:M4(a);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,v=Math.log(d),m=.5*Math.exp(2*v/3),y=.5*Math.sqrt(v*m*(d-m)/d)*(h-d/2<0?-1:1),x=Math.max(n,Math.floor(t-h*m/d+y)),S=Math.min(r,Math.floor(t+(d-h)*m/d+y));jN(e,t,x,S,a)}const o=e[t];let u=n,c=r;for(bs(e,n,t),a(e[r],o)>0&&bs(e,n,r);u<c;){for(bs(e,u,c),++u,--c;a(e[u],o)<0;)++u;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?bs(e,n,c):(++c,bs(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function bs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function D4(e,t,n){if(e=Float64Array.from(T4(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return UC(e);if(t>=1)return LC(e);var r,a=(r-1)*t,o=Math.floor(a),u=LC(jN(e,o).subarray(0,o+1)),c=UC(e.subarray(o+1));return u+(c-u)*(a-o)}}function L4(e,t,n=bN){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),u=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return u+(c-u)*(a-o)}}function U4(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function Pn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function $r(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Ag=Symbol("implicit");function r0(){var e=new $C,t=[],n=[],r=Ag;function a(o){let u=e.get(o);if(u===void 0){if(r!==Ag)return r;e.set(o,u=t.push(o)-1)}return n[u%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new $C;for(const u of o)e.has(u)||e.set(u,t.push(u)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return r0(t,n).unknown(r)},Pn.apply(a,arguments),a}function Ks(){var e=r0().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,u,c=!1,d=0,h=0,v=.5;delete e.unknown;function m(){var y=t().length,x=a<r,S=x?a:r,j=x?r:a;o=(j-S)/Math.max(1,y-d+h*2),c&&(o=Math.floor(o)),S+=(j-S-o*(y-d))*v,u=o*(1-d),c&&(S=Math.round(S),u=Math.round(u));var b=U4(y).map(function(k){return S+o*k});return n(x?b.reverse():b)}return e.domain=function(y){return arguments.length?(t(y),m()):t()},e.range=function(y){return arguments.length?([r,a]=y,r=+r,a=+a,m()):[r,a]},e.rangeRound=function(y){return[r,a]=y,r=+r,a=+a,c=!0,m()},e.bandwidth=function(){return u},e.step=function(){return o},e.round=function(y){return arguments.length?(c=!!y,m()):c},e.padding=function(y){return arguments.length?(d=Math.min(1,h=+y),m()):d},e.paddingInner=function(y){return arguments.length?(d=Math.min(1,y),m()):d},e.paddingOuter=function(y){return arguments.length?(h=+y,m()):h},e.align=function(y){return arguments.length?(v=Math.max(0,Math.min(1,y)),m()):v},e.copy=function(){return Ks(t(),[r,a]).round(c).paddingInner(d).paddingOuter(h).align(v)},Pn.apply(m(),arguments)}function SN(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return SN(t())},e}function Ms(){return SN(Ks.apply(null,arguments).paddingInner(1))}function i0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kN(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Al(){}var Vs=.7,Rc=1/Vs,qa="\\s*([+-]?\\d+)\\s*",Gs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",q4=/^#([0-9a-f]{3,8})$/,F4=new RegExp(`^rgb\\(${qa},${qa},${qa}\\)$`),B4=new RegExp(`^rgb\\(${or},${or},${or}\\)$`),z4=new RegExp(`^rgba\\(${qa},${qa},${qa},${Gs}\\)$`),W4=new RegExp(`^rgba\\(${or},${or},${or},${Gs}\\)$`),H4=new RegExp(`^hsl\\(${Gs},${or},${or}\\)$`),K4=new RegExp(`^hsla\\(${Gs},${or},${or},${Gs}\\)$`),qC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};i0(Al,Xs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:FC,formatHex:FC,formatHex8:V4,formatHsl:G4,formatRgb:BC,toString:BC});function FC(){return this.rgb().formatHex()}function V4(){return this.rgb().formatHex8()}function G4(){return CN(this).formatHsl()}function BC(){return this.rgb().formatRgb()}function Xs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=q4.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?zC(t):n===3?new nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tc(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=F4.exec(e))?new nn(t[1],t[2],t[3],1):(t=B4.exec(e))?new nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z4.exec(e))?tc(t[1],t[2],t[3],t[4]):(t=W4.exec(e))?tc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=H4.exec(e))?KC(t[1],t[2]/100,t[3]/100,1):(t=K4.exec(e))?KC(t[1],t[2]/100,t[3]/100,t[4]):qC.hasOwnProperty(e)?zC(qC[e]):e==="transparent"?new nn(NaN,NaN,NaN,0):null}function zC(e){return new nn(e>>16&255,e>>8&255,e&255,1)}function tc(e,t,n,r){return r<=0&&(e=t=n=NaN),new nn(e,t,n,r)}function X4(e){return e instanceof Al||(e=Xs(e)),e?(e=e.rgb(),new nn(e.r,e.g,e.b,e.opacity)):new nn}function Eg(e,t,n,r){return arguments.length===1?X4(e):new nn(e,t,n,r??1)}function nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}i0(nn,Eg,kN(Al,{brighter(e){return e=e==null?Rc:Math.pow(Rc,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vs:Math.pow(Vs,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nn(Hi(this.r),Hi(this.g),Hi(this.b),$c(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:WC,formatHex:WC,formatHex8:Y4,formatRgb:HC,toString:HC}));function WC(){return`#${qi(this.r)}${qi(this.g)}${qi(this.b)}`}function Y4(){return`#${qi(this.r)}${qi(this.g)}${qi(this.b)}${qi((isNaN(this.opacity)?1:this.opacity)*255)}`}function HC(){const e=$c(this.opacity);return`${e===1?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${e===1?")":`, ${e})`}`}function $c(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qi(e){return e=Hi(e),(e<16?"0":"")+e.toString(16)}function KC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zn(e,t,n,r)}function CN(e){if(e instanceof zn)return new zn(e.h,e.s,e.l,e.opacity);if(e instanceof Al||(e=Xs(e)),!e)return new zn;if(e instanceof zn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),u=NaN,c=o-a,d=(o+a)/2;return c?(t===o?u=(n-r)/c+(n<r)*6:n===o?u=(r-t)/c+2:u=(t-n)/c+4,c/=d<.5?o+a:2-o-a,u*=60):c=d>0&&d<1?0:u,new zn(u,c,d,e.opacity)}function Q4(e,t,n,r){return arguments.length===1?CN(e):new zn(e,t,n,r??1)}function zn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}i0(zn,Q4,kN(Al,{brighter(e){return e=e==null?Rc:Math.pow(Rc,e),new zn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vs:Math.pow(Vs,e),new zn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new nn(uy(e>=240?e-240:e+120,a,r),uy(e,a,r),uy(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new zn(VC(this.h),nc(this.s),nc(this.l),$c(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=$c(this.opacity);return`${e===1?"hsl(":"hsla("}${VC(this.h)}, ${nc(this.s)*100}%, ${nc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function VC(e){return e=(e||0)%360,e<0?e+360:e}function nc(e){return Math.max(0,Math.min(1,e||0))}function uy(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const a0=e=>()=>e;function Z4(e,t){return function(n){return e+n*t}}function J4(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function eL(e){return(e=+e)==1?_N:function(t,n){return n-t?J4(t,n,e):a0(isNaN(t)?n:t)}}function _N(e,t){var n=t-e;return n?Z4(e,n):a0(isNaN(e)?t:e)}const GC=(function e(t){var n=eL(t);function r(a,o){var u=n((a=Eg(a)).r,(o=Eg(o)).r),c=n(a.g,o.g),d=n(a.b,o.b),h=_N(a.opacity,o.opacity);return function(v){return a.r=u(v),a.g=c(v),a.b=d(v),a.opacity=h(v),a+""}}return r.gamma=e,r})(1);function tL(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function nL(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rL(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),u;for(u=0;u<r;++u)a[u]=Co(e[u],t[u]);for(;u<n;++u)o[u]=t[u];return function(c){for(u=0;u<r;++u)o[u]=a[u](c);return o}}function iL(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function aL(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Co(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var Mg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cy=new RegExp(Mg.source,"g");function oL(e){return function(){return e}}function sL(e){return function(t){return e(t)+""}}function lL(e,t){var n=Mg.lastIndex=cy.lastIndex=0,r,a,o,u=-1,c=[],d=[];for(e=e+"",t=t+"";(r=Mg.exec(e))&&(a=cy.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[u]?c[u]+=o:c[++u]=o),(r=r[0])===(a=a[0])?c[u]?c[u]+=a:c[++u]=a:(c[++u]=null,d.push({i:u,x:Dc(r,a)})),n=cy.lastIndex;return n<t.length&&(o=t.slice(n),c[u]?c[u]+=o:c[++u]=o),c.length<2?d[0]?sL(d[0].x):oL(t):(t=d.length,function(h){for(var v=0,m;v<t;++v)c[(m=d[v]).i]=m.x(h);return c.join("")})}function Co(e,t){var n=typeof t,r;return t==null||n==="boolean"?a0(t):(n==="number"?Dc:n==="string"?(r=Xs(t))?(t=r,GC):lL:t instanceof Xs?GC:t instanceof Date?iL:nL(t)?tL:Array.isArray(t)?rL:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?aL:Dc)(e,t)}function o0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function uL(e,t){t===void 0&&(t=e,e=Co);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(u){var c=Math.max(0,Math.min(r-1,Math.floor(u*=r)));return o[c](u-c)}}function cL(e){return function(){return e}}function Lc(e){return+e}var XC=[0,1];function Vt(e){return e}function Ig(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cL(isNaN(t)?NaN:.5)}function fL(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function dL(e,t,n){var r=e[0],a=e[1],o=t[0],u=t[1];return a<r?(r=Ig(a,r),o=n(u,o)):(r=Ig(r,a),o=n(o,u)),function(c){return o(r(c))}}function hL(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),u=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<r;)a[u]=Ig(e[u],e[u+1]),o[u]=n(t[u],t[u+1]);return function(c){var d=Nl(e,c,1,r)-1;return o[d](a[d](c))}}function El(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Df(){var e=XC,t=XC,n=Co,r,a,o,u=Vt,c,d,h;function v(){var y=Math.min(e.length,t.length);return u!==Vt&&(u=fL(e[0],e[y-1])),c=y>2?hL:dL,d=h=null,m}function m(y){return y==null||isNaN(y=+y)?o:(d||(d=c(e.map(r),t,n)))(r(u(y)))}return m.invert=function(y){return u(a((h||(h=c(t,e.map(r),Dc)))(y)))},m.domain=function(y){return arguments.length?(e=Array.from(y,Lc),v()):e.slice()},m.range=function(y){return arguments.length?(t=Array.from(y),v()):t.slice()},m.rangeRound=function(y){return t=Array.from(y),n=o0,v()},m.clamp=function(y){return arguments.length?(u=y?!0:Vt,v()):u!==Vt},m.interpolate=function(y){return arguments.length?(n=y,v()):n},m.unknown=function(y){return arguments.length?(o=y,m):o},function(y,x){return r=y,a=x,v()}}function s0(){return Df()(Vt,Vt)}function pL(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Uc(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Za(e){return e=Uc(Math.abs(e)),e?e[1]:NaN}function mL(e,t){return function(n,r){for(var a=n.length,o=[],u=0,c=e[0],d=0;a>0&&c>0&&(d+c+1>r&&(c=Math.max(1,r-d)),o.push(n.substring(a-=c,a+c)),!((d+=c+1)>r));)c=e[u=(u+1)%e.length];return o.reverse().join(t)}}function vL(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var yL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ys(e){if(!(t=yL.exec(e)))throw new Error("invalid format: "+e);var t;return new l0({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]})}Ys.prototype=l0.prototype;function l0(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+""}l0.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 gL(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var qc;function xL(e,t){var n=Uc(e,t);if(!n)return qc=void 0,e.toPrecision(t);var r=n[0],a=n[1],o=a-(qc=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Uc(e,Math.max(0,t+o-1))[0]}function YC(e,t){var n=Uc(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const QC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:pL,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)=>YC(e*100,t),r:YC,s:xL,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ZC(e){return e}var JC=Array.prototype.map,e_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bL(e){var t=e.grouping===void 0||e.thousands===void 0?ZC:mL(JC.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?ZC:vL(JC.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(m,y){m=Ys(m);var x=m.fill,S=m.align,j=m.sign,b=m.symbol,k=m.zero,_=m.width,T=m.comma,A=m.precision,C=m.trim,O=m.type;O==="n"?(T=!0,O="g"):QC[O]||(A===void 0&&(A=12),C=!0,O="g"),(k||x==="0"&&S==="=")&&(k=!0,x="0",S="=");var N=(y&&y.prefix!==void 0?y.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),M=(b==="$"?r:/[%p]/.test(O)?u:"")+(y&&y.suffix!==void 0?y.suffix:""),R=QC[O],K=/[defgprs%]/.test(O);A=A===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function L(U){var V=N,Y=M,G,J,ne;if(O==="c")Y=R(U)+Y,U="";else{U=+U;var z=U<0||1/U<0;if(U=isNaN(U)?d:R(Math.abs(U),A),C&&(U=gL(U)),z&&+U==0&&j!=="+"&&(z=!1),V=(z?j==="("?j:c:j==="-"||j==="("?"":j)+V,Y=(O==="s"&&!isNaN(U)&&qc!==void 0?e_[8+qc/3]:"")+Y+(z&&j==="("?")":""),K){for(G=-1,J=U.length;++G<J;)if(ne=U.charCodeAt(G),48>ne||ne>57){Y=(ne===46?a+U.slice(G+1):U.slice(G))+Y,U=U.slice(0,G);break}}}T&&!k&&(U=t(U,1/0));var Q=V.length+U.length+Y.length,Z=Q<_?new Array(_-Q+1).join(x):"";switch(T&&k&&(U=t(Z+U,Z.length?_-Y.length:1/0),Z=""),S){case"<":U=V+U+Y+Z;break;case"=":U=V+Z+U+Y;break;case"^":U=Z.slice(0,Q=Z.length>>1)+V+U+Y+Z.slice(Q);break;default:U=Z+V+U+Y;break}return o(U)}return L.toString=function(){return m+""},L}function v(m,y){var x=Math.max(-8,Math.min(8,Math.floor(Za(y)/3)))*3,S=Math.pow(10,-x),j=h((m=Ys(m),m.type="f",m),{suffix:e_[8+x/3]});return function(b){return j(S*b)}}return{format:h,formatPrefix:v}}var rc,u0,ON;wL({thousands:",",grouping:[3],currency:["$",""]});function wL(e){return rc=bL(e),u0=rc.format,ON=rc.formatPrefix,rc}function jL(e){return Math.max(0,-Za(Math.abs(e)))}function SL(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Za(t)/3)))*3-Za(Math.abs(e)))}function kL(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Za(t)-Za(e))+1}function TN(e,t,n,r){var a=Ng(e,t,n),o;switch(r=Ys(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=SL(a,u))&&(r.precision=o),ON(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=kL(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=jL(a))&&(r.precision=o-(r.type==="%")*2);break}}return u0(r)}function bi(e){var t=e.domain;return e.ticks=function(n){var r=t();return Tg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return TN(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,u=r[a],c=r[o],d,h,v=10;for(c<u&&(h=u,u=c,c=h,h=a,a=o,o=h);v-- >0;){if(h=Pg(u,c,n),h===d)return r[a]=u,r[o]=c,t(r);if(h>0)u=Math.floor(u/h)*h,c=Math.ceil(c/h)*h;else if(h<0)u=Math.ceil(u*h)/h,c=Math.floor(c*h)/h;else break;d=h}return e},e}function Fc(){var e=s0();return e.copy=function(){return El(e,Fc())},Pn.apply(e,arguments),bi(e)}function PN(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Lc),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return PN(e).unknown(t)},e=arguments.length?Array.from(e,Lc):[0,1],bi(n)}function NN(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],u;return o<a&&(u=n,n=r,r=u,u=a,a=o,o=u),e[n]=t.floor(a),e[r]=t.ceil(o),e}function t_(e){return Math.log(e)}function n_(e){return Math.exp(e)}function CL(e){return-Math.log(-e)}function _L(e){return-Math.exp(-e)}function OL(e){return isFinite(e)?+("1e"+e):e<0?0:e}function TL(e){return e===10?OL:e===Math.E?Math.exp:t=>Math.pow(e,t)}function PL(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 r_(e){return(t,n)=>-e(-t,n)}function c0(e){const t=e(t_,n_),n=t.domain;let r=10,a,o;function u(){return a=PL(r),o=TL(r),n()[0]<0?(a=r_(a),o=r_(o),e(CL,_L)):e(t_,n_),t}return t.base=function(c){return arguments.length?(r=+c,u()):r},t.domain=function(c){return arguments.length?(n(c),u()):n()},t.ticks=c=>{const d=n();let h=d[0],v=d[d.length-1];const m=v<h;m&&([h,v]=[v,h]);let y=a(h),x=a(v),S,j;const b=c==null?10:+c;let k=[];if(!(r%1)&&x-y<b){if(y=Math.floor(y),x=Math.ceil(x),h>0){for(;y<=x;++y)for(S=1;S<r;++S)if(j=y<0?S/o(-y):S*o(y),!(j<h)){if(j>v)break;k.push(j)}}else for(;y<=x;++y)for(S=r-1;S>=1;--S)if(j=y>0?S/o(-y):S*o(y),!(j<h)){if(j>v)break;k.push(j)}k.length*2<b&&(k=Tg(h,v,b))}else k=Tg(y,x,Math.min(x-y,b)).map(o);return m?k.reverse():k},t.tickFormat=(c,d)=>{if(c==null&&(c=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Ys(d)).precision==null&&(d.trim=!0),d=u0(d)),c===1/0)return d;const h=Math.max(1,r*c/t.ticks().length);return v=>{let m=v/o(Math.round(a(v)));return m*r<r-.5&&(m*=r),m<=h?d(v):""}},t.nice=()=>n(NN(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function AN(){const e=c0(Df()).domain([1,10]);return e.copy=()=>El(e,AN()).base(e.base()),Pn.apply(e,arguments),e}function i_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function a_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function f0(e){var t=1,n=e(i_(t),a_(t));return n.constant=function(r){return arguments.length?e(i_(t=+r),a_(t)):t},bi(n)}function EN(){var e=f0(Df());return e.copy=function(){return El(e,EN()).constant(e.constant())},Pn.apply(e,arguments)}function o_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function NL(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function AL(e){return e<0?-e*e:e*e}function d0(e){var t=e(Vt,Vt),n=1;function r(){return n===1?e(Vt,Vt):n===.5?e(NL,AL):e(o_(n),o_(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},bi(t)}function h0(){var e=d0(Df());return e.copy=function(){return El(e,h0()).exponent(e.exponent())},Pn.apply(e,arguments),e}function EL(){return h0.apply(null,arguments).exponent(.5)}function s_(e){return Math.sign(e)*e*e}function ML(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function MN(){var e=s0(),t=[0,1],n=!1,r;function a(o){var u=ML(e(o));return isNaN(u)?r:n?Math.round(u):u}return a.invert=function(o){return e.invert(s_(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,Lc)).map(s_)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return MN(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Pn.apply(a,arguments),bi(a)}function IN(){var e=[],t=[],n=[],r;function a(){var u=0,c=Math.max(1,t.length);for(n=new Array(c-1);++u<c;)n[u-1]=L4(e,u/c);return o}function o(u){return u==null||isNaN(u=+u)?r:t[Nl(n,u)]}return o.invertExtent=function(u){var c=t.indexOf(u);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let c of u)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(li),a()},o.range=function(u){return arguments.length?(t=Array.from(u),a()):t.slice()},o.unknown=function(u){return arguments.length?(r=u,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return IN().domain(e).range(t).unknown(r)},Pn.apply(o,arguments)}function RN(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function u(d){return d!=null&&d<=d?a[Nl(r,d,0,n)]:o}function c(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return u}return u.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,c()):[e,t]},u.range=function(d){return arguments.length?(n=(a=Array.from(d)).length-1,c()):a.slice()},u.invertExtent=function(d){var h=a.indexOf(d);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},u.unknown=function(d){return arguments.length&&(o=d),u},u.thresholds=function(){return r.slice()},u.copy=function(){return RN().domain([e,t]).range(a).unknown(o)},Pn.apply(bi(u),arguments)}function $N(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[Nl(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var u=t.indexOf(o);return[e[u-1],e[u]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return $N().domain(e).range(t).unknown(n)},Pn.apply(a,arguments)}const fy=new Date,dy=new Date;function St(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const u=a(o),c=a.ceil(o);return o-u<c-o?u:c},a.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),a.range=(o,u,c)=>{const d=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<u)||!(c>0))return d;let h;do d.push(h=new Date(+o)),t(o,c),e(o);while(h<o&&o<u);return d},a.filter=o=>St(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,c)=>{if(u>=u)if(c<0)for(;++c<=0;)for(;t(u,-1),!o(u););else for(;--c>=0;)for(;t(u,1),!o(u););}),n&&(a.count=(o,u)=>(fy.setTime(+o),dy.setTime(+u),e(fy),e(dy),Math.floor(n(fy,dy))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?u=>r(u)%o===0:u=>a.count(0,u)%o===0):a)),a}const Bc=St(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Bc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?St(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Bc);Bc.range;const br=1e3,Cn=br*60,wr=Cn*60,Tr=wr*24,p0=Tr*7,l_=Tr*30,hy=Tr*365,Fi=St(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCSeconds());Fi.range;const m0=St(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*br)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());m0.range;const v0=St(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());v0.range;const y0=St(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*br-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*wr)},(e,t)=>(t-e)/wr,e=>e.getHours());y0.range;const g0=St(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*wr)},(e,t)=>(t-e)/wr,e=>e.getUTCHours());g0.range;const Ml=St(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/Tr,e=>e.getDate()-1);Ml.range;const Lf=St(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tr,e=>e.getUTCDate()-1);Lf.range;const DN=St(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tr,e=>Math.floor(e/Tr));DN.range;function na(e){return St(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cn)/p0)}const Uf=na(0),zc=na(1),IL=na(2),RL=na(3),Ja=na(4),$L=na(5),DL=na(6);Uf.range;zc.range;IL.range;RL.range;Ja.range;$L.range;DL.range;function ra(e){return St(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/p0)}const qf=ra(0),Wc=ra(1),LL=ra(2),UL=ra(3),eo=ra(4),qL=ra(5),FL=ra(6);qf.range;Wc.range;LL.range;UL.range;eo.range;qL.range;FL.range;const x0=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());x0.range;const b0=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());b0.range;const Pr=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());Pr.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,n)=>{t.setFullYear(t.getFullYear()+n*e)});Pr.range;const Nr=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());Nr.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,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Nr.range;function LN(e,t,n,r,a,o){const u=[[Fi,1,br],[Fi,5,5*br],[Fi,15,15*br],[Fi,30,30*br],[o,1,Cn],[o,5,5*Cn],[o,15,15*Cn],[o,30,30*Cn],[a,1,wr],[a,3,3*wr],[a,6,6*wr],[a,12,12*wr],[r,1,Tr],[r,2,2*Tr],[n,1,p0],[t,1,l_],[t,3,3*l_],[e,1,hy]];function c(h,v,m){const y=v<h;y&&([h,v]=[v,h]);const x=m&&typeof m.range=="function"?m:d(h,v,m),S=x?x.range(h,+v+1):[];return y?S.reverse():S}function d(h,v,m){const y=Math.abs(v-h)/m,x=n0(([,,b])=>b).right(u,y);if(x===u.length)return e.every(Ng(h/hy,v/hy,m));if(x===0)return Bc.every(Math.max(Ng(h,v,m),1));const[S,j]=u[y/u[x-1][2]<u[x][2]/y?x-1:x];return S.every(j)}return[c,d]}const[BL,zL]=LN(Nr,b0,qf,DN,g0,v0),[WL,HL]=LN(Pr,x0,Uf,Ml,y0,m0);function py(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function my(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ws(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function KL(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,u=e.shortDays,c=e.months,d=e.shortMonths,h=js(a),v=Ss(a),m=js(o),y=Ss(o),x=js(u),S=Ss(u),j=js(c),b=Ss(c),k=js(d),_=Ss(d),T={a:ne,A:z,b:Q,B:Z,c:null,d:p_,e:p_,f:m5,g:C5,G:O5,H:d5,I:h5,j:p5,L:UN,m:v5,M:y5,p:$,q:F,Q:y_,s:g_,S:g5,u:x5,U:b5,V:w5,w:j5,W:S5,x:null,X:null,y:k5,Y:_5,Z:T5,"%":v_},A={a:ce,A:ve,b:he,B:Se,c:null,d:m_,e:m_,f:E5,g:B5,G:W5,H:P5,I:N5,j:A5,L:FN,m:M5,M:I5,p:Ae,q:re,Q:y_,s:g_,S:R5,u:$5,U:D5,V:L5,w:U5,W:q5,x:null,X:null,y:F5,Y:z5,Z:H5,"%":v_},C={a:K,A:L,b:U,B:V,c:Y,d:d_,e:d_,f:l5,g:f_,G:c_,H:h_,I:h_,j:i5,L:s5,m:r5,M:a5,p:R,q:n5,Q:c5,s:f5,S:o5,u:QL,U:ZL,V:JL,w:YL,W:e5,x:G,X:J,y:f_,Y:c_,Z:t5,"%":u5};T.x=O(n,T),T.X=O(r,T),T.c=O(t,T),A.x=O(n,A),A.X=O(r,A),A.c=O(t,A);function O(ee,me){return function(Te){var ie=[],Ne=-1,Re=0,ot=ee.length,st,kt,Nn;for(Te instanceof Date||(Te=new Date(+Te));++Ne<ot;)ee.charCodeAt(Ne)===37&&(ie.push(ee.slice(Re,Ne)),(kt=u_[st=ee.charAt(++Ne)])!=null?st=ee.charAt(++Ne):kt=st==="e"?" ":"0",(Nn=me[st])&&(st=Nn(Te,kt)),ie.push(st),Re=Ne+1);return ie.push(ee.slice(Re,Ne)),ie.join("")}}function N(ee,me){return function(Te){var ie=ws(1900,void 0,1),Ne=M(ie,ee,Te+="",0),Re,ot;if(Ne!=Te.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(me&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Re=my(ws(ie.y,0,1)),ot=Re.getUTCDay(),Re=ot>4||ot===0?Wc.ceil(Re):Wc(Re),Re=Lf.offset(Re,(ie.V-1)*7),ie.y=Re.getUTCFullYear(),ie.m=Re.getUTCMonth(),ie.d=Re.getUTCDate()+(ie.w+6)%7):(Re=py(ws(ie.y,0,1)),ot=Re.getDay(),Re=ot>4||ot===0?zc.ceil(Re):zc(Re),Re=Ml.offset(Re,(ie.V-1)*7),ie.y=Re.getFullYear(),ie.m=Re.getMonth(),ie.d=Re.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),ot="Z"in ie?my(ws(ie.y,0,1)).getUTCDay():py(ws(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(ot+5)%7:ie.w+ie.U*7-(ot+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,my(ie)):py(ie)}}function M(ee,me,Te,ie){for(var Ne=0,Re=me.length,ot=Te.length,st,kt;Ne<Re;){if(ie>=ot)return-1;if(st=me.charCodeAt(Ne++),st===37){if(st=me.charAt(Ne++),kt=C[st in u_?me.charAt(Ne++):st],!kt||(ie=kt(ee,Te,ie))<0)return-1}else if(st!=Te.charCodeAt(ie++))return-1}return ie}function R(ee,me,Te){var ie=h.exec(me.slice(Te));return ie?(ee.p=v.get(ie[0].toLowerCase()),Te+ie[0].length):-1}function K(ee,me,Te){var ie=x.exec(me.slice(Te));return ie?(ee.w=S.get(ie[0].toLowerCase()),Te+ie[0].length):-1}function L(ee,me,Te){var ie=m.exec(me.slice(Te));return ie?(ee.w=y.get(ie[0].toLowerCase()),Te+ie[0].length):-1}function U(ee,me,Te){var ie=k.exec(me.slice(Te));return ie?(ee.m=_.get(ie[0].toLowerCase()),Te+ie[0].length):-1}function V(ee,me,Te){var ie=j.exec(me.slice(Te));return ie?(ee.m=b.get(ie[0].toLowerCase()),Te+ie[0].length):-1}function Y(ee,me,Te){return M(ee,t,me,Te)}function G(ee,me,Te){return M(ee,n,me,Te)}function J(ee,me,Te){return M(ee,r,me,Te)}function ne(ee){return u[ee.getDay()]}function z(ee){return o[ee.getDay()]}function Q(ee){return d[ee.getMonth()]}function Z(ee){return c[ee.getMonth()]}function $(ee){return a[+(ee.getHours()>=12)]}function F(ee){return 1+~~(ee.getMonth()/3)}function ce(ee){return u[ee.getUTCDay()]}function ve(ee){return o[ee.getUTCDay()]}function he(ee){return d[ee.getUTCMonth()]}function Se(ee){return c[ee.getUTCMonth()]}function Ae(ee){return a[+(ee.getUTCHours()>=12)]}function re(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var me=O(ee+="",T);return me.toString=function(){return ee},me},parse:function(ee){var me=N(ee+="",!1);return me.toString=function(){return ee},me},utcFormat:function(ee){var me=O(ee+="",A);return me.toString=function(){return ee},me},utcParse:function(ee){var me=N(ee+="",!0);return me.toString=function(){return ee},me}}}var u_={"-":"",_:" ",0:"0"},At=/^\s*\d+/,VL=/^%/,GL=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function XL(e){return e.replace(GL,"\\$&")}function js(e){return new RegExp("^(?:"+e.map(XL).join("|")+")","i")}function Ss(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function YL(e,t,n){var r=At.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function QL(e,t,n){var r=At.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZL(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function JL(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function e5(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function c_(e,t,n){var r=At.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function f_(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function t5(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function n5(e,t,n){var r=At.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function r5(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function d_(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function i5(e,t,n){var r=At.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function h_(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function a5(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function o5(e,t,n){var r=At.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function s5(e,t,n){var r=At.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function l5(e,t,n){var r=At.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function u5(e,t,n){var r=VL.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function c5(e,t,n){var r=At.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function f5(e,t,n){var r=At.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function p_(e,t){return Be(e.getDate(),t,2)}function d5(e,t){return Be(e.getHours(),t,2)}function h5(e,t){return Be(e.getHours()%12||12,t,2)}function p5(e,t){return Be(1+Ml.count(Pr(e),e),t,3)}function UN(e,t){return Be(e.getMilliseconds(),t,3)}function m5(e,t){return UN(e,t)+"000"}function v5(e,t){return Be(e.getMonth()+1,t,2)}function y5(e,t){return Be(e.getMinutes(),t,2)}function g5(e,t){return Be(e.getSeconds(),t,2)}function x5(e){var t=e.getDay();return t===0?7:t}function b5(e,t){return Be(Uf.count(Pr(e)-1,e),t,2)}function qN(e){var t=e.getDay();return t>=4||t===0?Ja(e):Ja.ceil(e)}function w5(e,t){return e=qN(e),Be(Ja.count(Pr(e),e)+(Pr(e).getDay()===4),t,2)}function j5(e){return e.getDay()}function S5(e,t){return Be(zc.count(Pr(e)-1,e),t,2)}function k5(e,t){return Be(e.getFullYear()%100,t,2)}function C5(e,t){return e=qN(e),Be(e.getFullYear()%100,t,2)}function _5(e,t){return Be(e.getFullYear()%1e4,t,4)}function O5(e,t){var n=e.getDay();return e=n>=4||n===0?Ja(e):Ja.ceil(e),Be(e.getFullYear()%1e4,t,4)}function T5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function m_(e,t){return Be(e.getUTCDate(),t,2)}function P5(e,t){return Be(e.getUTCHours(),t,2)}function N5(e,t){return Be(e.getUTCHours()%12||12,t,2)}function A5(e,t){return Be(1+Lf.count(Nr(e),e),t,3)}function FN(e,t){return Be(e.getUTCMilliseconds(),t,3)}function E5(e,t){return FN(e,t)+"000"}function M5(e,t){return Be(e.getUTCMonth()+1,t,2)}function I5(e,t){return Be(e.getUTCMinutes(),t,2)}function R5(e,t){return Be(e.getUTCSeconds(),t,2)}function $5(e){var t=e.getUTCDay();return t===0?7:t}function D5(e,t){return Be(qf.count(Nr(e)-1,e),t,2)}function BN(e){var t=e.getUTCDay();return t>=4||t===0?eo(e):eo.ceil(e)}function L5(e,t){return e=BN(e),Be(eo.count(Nr(e),e)+(Nr(e).getUTCDay()===4),t,2)}function U5(e){return e.getUTCDay()}function q5(e,t){return Be(Wc.count(Nr(e)-1,e),t,2)}function F5(e,t){return Be(e.getUTCFullYear()%100,t,2)}function B5(e,t){return e=BN(e),Be(e.getUTCFullYear()%100,t,2)}function z5(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function W5(e,t){var n=e.getUTCDay();return e=n>=4||n===0?eo(e):eo.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function H5(){return"+0000"}function v_(){return"%"}function y_(e){return+e}function g_(e){return Math.floor(+e/1e3)}var Aa,zN,WN;K5({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 K5(e){return Aa=KL(e),zN=Aa.format,Aa.parse,WN=Aa.utcFormat,Aa.utcParse,Aa}function V5(e){return new Date(e)}function G5(e){return e instanceof Date?+e:+new Date(+e)}function w0(e,t,n,r,a,o,u,c,d,h){var v=s0(),m=v.invert,y=v.domain,x=h(".%L"),S=h(":%S"),j=h("%I:%M"),b=h("%I %p"),k=h("%a %d"),_=h("%b %d"),T=h("%B"),A=h("%Y");function C(O){return(d(O)<O?x:c(O)<O?S:u(O)<O?j:o(O)<O?b:r(O)<O?a(O)<O?k:_:n(O)<O?T:A)(O)}return v.invert=function(O){return new Date(m(O))},v.domain=function(O){return arguments.length?y(Array.from(O,G5)):y().map(V5)},v.ticks=function(O){var N=y();return e(N[0],N[N.length-1],O??10)},v.tickFormat=function(O,N){return N==null?C:h(N)},v.nice=function(O){var N=y();return(!O||typeof O.range!="function")&&(O=t(N[0],N[N.length-1],O??10)),O?y(NN(N,O)):v},v.copy=function(){return El(v,w0(e,t,n,r,a,o,u,c,d,h))},v}function X5(){return Pn.apply(w0(WL,HL,Pr,x0,Uf,Ml,y0,m0,Fi,zN).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Y5(){return Pn.apply(w0(BL,zL,Nr,b0,qf,Lf,g0,v0,Fi,WN).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ff(){var e=0,t=1,n,r,a,o,u=Vt,c=!1,d;function h(m){return m==null||isNaN(m=+m)?d:u(a===0?.5:(m=(o(m)-n)*a,c?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t]=m,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(m){return arguments.length?(c=!!m,h):c},h.interpolator=function(m){return arguments.length?(u=m,h):u};function v(m){return function(y){var x,S;return arguments.length?([x,S]=y,u=m(x,S),h):[u(0),u(1)]}}return h.range=v(Co),h.rangeRound=v(o0),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return o=m,n=m(e),r=m(t),a=n===r?0:1/(r-n),h}}function wi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function HN(){var e=bi(Ff()(Vt));return e.copy=function(){return wi(e,HN())},$r.apply(e,arguments)}function KN(){var e=c0(Ff()).domain([1,10]);return e.copy=function(){return wi(e,KN()).base(e.base())},$r.apply(e,arguments)}function VN(){var e=f0(Ff());return e.copy=function(){return wi(e,VN()).constant(e.constant())},$r.apply(e,arguments)}function j0(){var e=d0(Ff());return e.copy=function(){return wi(e,j0()).exponent(e.exponent())},$r.apply(e,arguments)}function Q5(){return j0.apply(null,arguments).exponent(.5)}function GN(){var e=[],t=Vt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Nl(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(li),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>D4(e,o/r))},n.copy=function(){return GN(t).domain(e)},$r.apply(n,arguments)}function Bf(){var e=0,t=.5,n=1,r=1,a,o,u,c,d,h=Vt,v,m=!1,y;function x(j){return isNaN(j=+j)?y:(j=.5+((j=+v(j))-o)*(r*j<r*o?c:d),h(m?Math.max(0,Math.min(1,j)):j))}x.domain=function(j){return arguments.length?([e,t,n]=j,a=v(e=+e),o=v(t=+t),u=v(n=+n),c=a===o?0:.5/(o-a),d=o===u?0:.5/(u-o),r=o<a?-1:1,x):[e,t,n]},x.clamp=function(j){return arguments.length?(m=!!j,x):m},x.interpolator=function(j){return arguments.length?(h=j,x):h};function S(j){return function(b){var k,_,T;return arguments.length?([k,_,T]=b,h=uL(j,[k,_,T]),x):[h(0),h(.5),h(1)]}}return x.range=S(Co),x.rangeRound=S(o0),x.unknown=function(j){return arguments.length?(y=j,x):y},function(j){return v=j,a=j(e),o=j(t),u=j(n),c=a===o?0:.5/(o-a),d=o===u?0:.5/(u-o),r=o<a?-1:1,x}}function XN(){var e=bi(Bf()(Vt));return e.copy=function(){return wi(e,XN())},$r.apply(e,arguments)}function YN(){var e=c0(Bf()).domain([.1,1,10]);return e.copy=function(){return wi(e,YN()).base(e.base())},$r.apply(e,arguments)}function QN(){var e=f0(Bf());return e.copy=function(){return wi(e,QN()).constant(e.constant())},$r.apply(e,arguments)}function S0(){var e=d0(Bf());return e.copy=function(){return wi(e,S0()).exponent(e.exponent())},$r.apply(e,arguments)}function Z5(){return S0.apply(null,arguments).exponent(.5)}const x_=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ks,scaleDiverging:XN,scaleDivergingLog:YN,scaleDivergingPow:S0,scaleDivergingSqrt:Z5,scaleDivergingSymlog:QN,scaleIdentity:PN,scaleImplicit:Ag,scaleLinear:Fc,scaleLog:AN,scaleOrdinal:r0,scalePoint:Ms,scalePow:h0,scaleQuantile:IN,scaleQuantize:RN,scaleRadial:MN,scaleSequential:HN,scaleSequentialLog:KN,scaleSequentialPow:j0,scaleSequentialQuantile:GN,scaleSequentialSqrt:Q5,scaleSequentialSymlog:VN,scaleSqrt:EL,scaleSymlog:EN,scaleThreshold:$N,scaleTime:X5,scaleUtc:Y5,tickFormat:TN},Symbol.toStringTag,{value:"Module"}));var vy,b_;function ZN(){if(b_)return vy;b_=1;var e=wo();function t(n,r,a){for(var o=-1,u=n.length;++o<u;){var c=n[o],d=r(c);if(d!=null&&(h===void 0?d===d&&!e(d):a(d,h)))var h=d,v=c}return v}return vy=t,vy}var yy,w_;function J5(){if(w_)return yy;w_=1;function e(t,n){return t>n}return yy=e,yy}var gy,j_;function eU(){if(j_)return gy;j_=1;var e=ZN(),t=J5(),n=So();function r(a){return a&&a.length?e(a,n,t):void 0}return gy=r,gy}var tU=eU();const zf=Ve(tU);var xy,S_;function nU(){if(S_)return xy;S_=1;function e(t,n){return t<n}return xy=e,xy}var by,k_;function rU(){if(k_)return by;k_=1;var e=ZN(),t=nU(),n=So();function r(a){return a&&a.length?e(a,n,t):void 0}return by=r,by}var iU=rU();const Wf=Ve(iU);var wy,C_;function aU(){if(C_)return wy;C_=1;var e=Ux(),t=xi(),n=lN(),r=an();function a(o,u){var c=r(o)?e:n;return c(o,t(u,3))}return wy=a,wy}var jy,__;function oU(){if(__)return jy;__=1;var e=oN(),t=aU();function n(r,a){return e(t(r,a),1)}return jy=n,jy}var sU=oU();const lU=Ve(sU);var Sy,O_;function uU(){if(O_)return Sy;O_=1;var e=Zx();function t(n,r){return e(n,r)}return Sy=t,Sy}var cU=uU();const Hf=Ve(cU);var _o=1e9,fU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},C0,rt=!0,Tn="[DecimalError] ",Ki=Tn+"Invalid argument: ",k0=Tn+"Exponent out of range: ",Oo=Math.floor,Li=Math.pow,dU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hn,Tt=1e7,tt=7,JN=9007199254740991,Hc=Oo(JN/tt),ge={};ge.absoluteValue=ge.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ge.comparedTo=ge.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};ge.decimalPlaces=ge.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*tt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ge.dividedBy=ge.div=function(e){return Cr(this,new this.constructor(e))};ge.dividedToIntegerBy=ge.idiv=function(e){var t=this,n=t.constructor;return Ge(Cr(t,new n(e),0,1),n.precision)};ge.equals=ge.eq=function(e){return!this.cmp(e)};ge.exponent=function(){return yt(this)};ge.greaterThan=ge.gt=function(e){return this.cmp(e)>0};ge.greaterThanOrEqualTo=ge.gte=function(e){return this.cmp(e)>=0};ge.isInteger=ge.isint=function(){return this.e>this.d.length-2};ge.isNegative=ge.isneg=function(){return this.s<0};ge.isPositive=ge.ispos=function(){return this.s>0};ge.isZero=function(){return this.s===0};ge.lessThan=ge.lt=function(e){return this.cmp(e)<0};ge.lessThanOrEqualTo=ge.lte=function(e){return this.cmp(e)<1};ge.logarithm=ge.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(hn))throw Error(Tn+"NaN");if(n.s<1)throw Error(Tn+(n.s?"NaN":"-Infinity"));return n.eq(hn)?new r(0):(rt=!1,t=Cr(Qs(n,o),Qs(e,o),o),rt=!0,Ge(t,a))};ge.minus=ge.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nA(t,e):eA(t,(e.s=-e.s,e))};ge.modulo=ge.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Tn+"NaN");return n.s?(rt=!1,t=Cr(n,e,0,1).times(e),rt=!0,n.minus(t)):Ge(new r(n),a)};ge.naturalExponential=ge.exp=function(){return tA(this)};ge.naturalLogarithm=ge.ln=function(){return Qs(this)};ge.negated=ge.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ge.plus=ge.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eA(t,e):nA(t,(e.s=-e.s,e))};ge.precision=ge.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ki+e);if(t=yt(a)+1,r=a.d.length-1,n=r*tt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ge.squareRoot=ge.sqrt=function(){var e,t,n,r,a,o,u,c=this,d=c.constructor;if(c.s<1){if(!c.s)return new d(0);throw Error(Tn+"NaN")}for(e=yt(c),rt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=ir(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Oo((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(a.toString()),n=d.precision,a=u=n+3;;)if(o=r,r=o.plus(Cr(c,o,u+2)).times(.5),ir(o.d).slice(0,u)===(t=ir(r.d)).slice(0,u)){if(t=t.slice(u-3,u+1),a==u&&t=="4999"){if(Ge(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;u+=4}return rt=!0,Ge(r,n)};ge.times=ge.mul=function(e){var t,n,r,a,o,u,c,d,h,v=this,m=v.constructor,y=v.d,x=(e=new m(e)).d;if(!v.s||!e.s)return new m(0);for(e.s*=v.s,n=v.e+e.e,d=y.length,h=x.length,d<h&&(o=y,y=x,x=o,u=d,d=h,h=u),o=[],u=d+h,r=u;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,a=d+r;a>r;)c=o[a]+x[r]*y[a-r-1]+t,o[a--]=c%Tt|0,t=c/Tt|0;o[a]=(o[a]+t)%Tt|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,rt?Ge(e,m.precision):e};ge.toDecimalPlaces=ge.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(lr(e,0,_o),t===void 0?t=r.rounding:lr(t,0,8),Ge(n,e+yt(n)+1,t))};ge.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Xi(r,!0):(lr(e,0,_o),t===void 0?t=a.rounding:lr(t,0,8),r=Ge(new a(r),e+1,t),n=Xi(r,!0,e+1)),n};ge.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?Xi(a):(lr(e,0,_o),t===void 0?t=o.rounding:lr(t,0,8),r=Ge(new o(a),e+yt(a)+1,t),n=Xi(r.abs(),!1,e+yt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ge.toInteger=ge.toint=function(){var e=this,t=e.constructor;return Ge(new t(e),yt(e)+1,t.rounding)};ge.toNumber=function(){return+this};ge.toPower=ge.pow=function(e){var t,n,r,a,o,u,c=this,d=c.constructor,h=12,v=+(e=new d(e));if(!e.s)return new d(hn);if(c=new d(c),!c.s){if(e.s<1)throw Error(Tn+"Infinity");return c}if(c.eq(hn))return c;if(r=d.precision,e.eq(hn))return Ge(c,r);if(t=e.e,n=e.d.length-1,u=t>=n,o=c.s,u){if((n=v<0?-v:v)<=JN){for(a=new d(hn),t=Math.ceil(r/tt+4),rt=!1;n%2&&(a=a.times(c),P_(a.d,t)),n=Oo(n/2),n!==0;)c=c.times(c),P_(c.d,t);return rt=!0,e.s<0?new d(hn).div(a):Ge(a,r)}}else if(o<0)throw Error(Tn+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,rt=!1,a=e.times(Qs(c,r+h)),rt=!0,a=tA(a),a.s=o,a};ge.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=yt(a),r=Xi(a,n<=o.toExpNeg||n>=o.toExpPos)):(lr(e,1,_o),t===void 0?t=o.rounding:lr(t,0,8),a=Ge(new o(a),e,t),n=yt(a),r=Xi(a,e<=n||n<=o.toExpNeg,e)),r};ge.toSignificantDigits=ge.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(lr(e,1,_o),t===void 0?t=r.rounding:lr(t,0,8)),Ge(new r(n),e,t)};ge.toString=ge.valueOf=ge.val=ge.toJSON=ge[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=yt(e),n=e.constructor;return Xi(e,t<=n.toExpNeg||t>=n.toExpPos)};function eA(e,t){var n,r,a,o,u,c,d,h,v=e.constructor,m=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),rt?Ge(t,m):t;if(d=e.d,h=t.d,u=e.e,a=t.e,d=d.slice(),o=u-a,o){for(o<0?(r=d,o=-o,c=h.length):(r=h,a=u,c=d.length),u=Math.ceil(m/tt),c=u>c?u+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=d.length,o=h.length,c-o<0&&(o=c,r=h,h=d,d=r),n=0;o;)n=(d[--o]=d[o]+h[o]+n)/Tt|0,d[o]%=Tt;for(n&&(d.unshift(n),++a),c=d.length;d[--c]==0;)d.pop();return t.d=d,t.e=a,rt?Ge(t,m):t}function lr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Ki+e)}function ir(e){var t,n,r,a=e.length-1,o="",u=e[0];if(a>0){for(o+=u,t=1;t<a;t++)r=e[t]+"",n=tt-r.length,n&&(o+=ii(n)),o+=r;u=e[t],r=u+"",n=tt-r.length,n&&(o+=ii(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return o+u}var Cr=(function(){function e(r,a){var o,u=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+u,r[c]=o%Tt|0,u=o/Tt|0;return u&&r.unshift(u),r}function t(r,a,o,u){var c,d;if(o!=u)d=o>u?1:-1;else for(c=d=0;c<o;c++)if(r[c]!=a[c]){d=r[c]>a[c]?1:-1;break}return d}function n(r,a,o){for(var u=0;o--;)r[o]-=u,u=r[o]<a[o]?1:0,r[o]=u*Tt+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,u){var c,d,h,v,m,y,x,S,j,b,k,_,T,A,C,O,N,M,R=r.constructor,K=r.s==a.s?1:-1,L=r.d,U=a.d;if(!r.s)return new R(r);if(!a.s)throw Error(Tn+"Division by zero");for(d=r.e-a.e,N=U.length,C=L.length,x=new R(K),S=x.d=[],h=0;U[h]==(L[h]||0);)++h;if(U[h]>(L[h]||0)&&--d,o==null?_=o=R.precision:u?_=o+(yt(r)-yt(a))+1:_=o,_<0)return new R(0);if(_=_/tt+2|0,h=0,N==1)for(v=0,U=U[0],_++;(h<C||v)&&_--;h++)T=v*Tt+(L[h]||0),S[h]=T/U|0,v=T%U|0;else{for(v=Tt/(U[0]+1)|0,v>1&&(U=e(U,v),L=e(L,v),N=U.length,C=L.length),A=N,j=L.slice(0,N),b=j.length;b<N;)j[b++]=0;M=U.slice(),M.unshift(0),O=U[0],U[1]>=Tt/2&&++O;do v=0,c=t(U,j,N,b),c<0?(k=j[0],N!=b&&(k=k*Tt+(j[1]||0)),v=k/O|0,v>1?(v>=Tt&&(v=Tt-1),m=e(U,v),y=m.length,b=j.length,c=t(m,j,y,b),c==1&&(v--,n(m,N<y?M:U,y))):(v==0&&(c=v=1),m=U.slice()),y=m.length,y<b&&m.unshift(0),n(j,m,b),c==-1&&(b=j.length,c=t(U,j,N,b),c<1&&(v++,n(j,N<b?M:U,b))),b=j.length):c===0&&(v++,j=[0]),S[h++]=v,c&&j[0]?j[b++]=L[A]||0:(j=[L[A]],b=1);while((A++<C||j[0]!==void 0)&&_--)}return S[0]||S.shift(),x.e=d,Ge(x,u?o+yt(x)+1:o)}})();function tA(e,t){var n,r,a,o,u,c,d=0,h=0,v=e.constructor,m=v.precision;if(yt(e)>16)throw Error(k0+yt(e));if(!e.s)return new v(hn);for(rt=!1,c=m,u=new v(.03125);e.abs().gte(.1);)e=e.times(u),h+=5;for(r=Math.log(Li(2,h))/Math.LN10*2+5|0,c+=r,n=a=o=new v(hn),v.precision=c;;){if(a=Ge(a.times(e),c),n=n.times(++d),u=o.plus(Cr(a,n,c)),ir(u.d).slice(0,c)===ir(o.d).slice(0,c)){for(;h--;)o=Ge(o.times(o),c);return v.precision=m,t==null?(rt=!0,Ge(o,m)):o}o=u}}function yt(e){for(var t=e.e*tt,n=e.d[0];n>=10;n/=10)t++;return t}function ky(e,t,n){if(t>e.LN10.sd())throw rt=!0,n&&(e.precision=n),Error(Tn+"LN10 precision limit exceeded");return Ge(new e(e.LN10),t)}function ii(e){for(var t="";e--;)t+="0";return t}function Qs(e,t){var n,r,a,o,u,c,d,h,v,m=1,y=10,x=e,S=x.d,j=x.constructor,b=j.precision;if(x.s<1)throw Error(Tn+(x.s?"NaN":"-Infinity"));if(x.eq(hn))return new j(0);if(t==null?(rt=!1,h=b):h=t,x.eq(10))return t==null&&(rt=!0),ky(j,h);if(h+=y,j.precision=h,n=ir(S),r=n.charAt(0),o=yt(x),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=ir(x.d),r=n.charAt(0),m++;o=yt(x),r>1?(x=new j("0."+n),o++):x=new j(r+"."+n.slice(1))}else return d=ky(j,h+2,b).times(o+""),x=Qs(new j(r+"."+n.slice(1)),h-y).plus(d),j.precision=b,t==null?(rt=!0,Ge(x,b)):x;for(c=u=x=Cr(x.minus(hn),x.plus(hn),h),v=Ge(x.times(x),h),a=3;;){if(u=Ge(u.times(v),h),d=c.plus(Cr(u,new j(a),h)),ir(d.d).slice(0,h)===ir(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(ky(j,h+2,b).times(o+""))),c=Cr(c,new j(m),h),j.precision=b,t==null?(rt=!0,Ge(c,b)):c;c=d,a+=2}}function T_(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Oo(n/tt),e.d=[],r=(n+1)%tt,n<0&&(r+=tt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=tt;r<a;)e.d.push(+t.slice(r,r+=tt));t=t.slice(r),r=tt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),rt&&(e.e>Hc||e.e<-Hc))throw Error(k0+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ge(e,t,n){var r,a,o,u,c,d,h,v,m=e.d;for(u=1,o=m[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=tt,a=t,h=m[v=0];else{if(v=Math.ceil((r+1)/tt),o=m.length,v>=o)return e;for(h=o=m[v],u=1;o>=10;o/=10)u++;r%=tt,a=r-tt+u}if(n!==void 0&&(o=Li(10,u-a-1),c=h/o%10|0,d=t<0||m[v+1]!==void 0||h%o,d=n<4?(c||d)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||d||n==6&&(r>0?a>0?h/Li(10,u-a):0:m[v-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return d?(o=yt(e),m.length=1,t=t-o-1,m[0]=Li(10,(tt-t%tt)%tt),e.e=Oo(-t/tt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=v,o=1,v--):(m.length=v+1,o=Li(10,tt-r),m[v]=a>0?(h/Li(10,u-a)%Li(10,a)|0)*o:0),d)for(;;)if(v==0){(m[0]+=o)==Tt&&(m[0]=1,++e.e);break}else{if(m[v]+=o,m[v]!=Tt)break;m[v--]=0,o=1}for(r=m.length;m[--r]===0;)m.pop();if(rt&&(e.e>Hc||e.e<-Hc))throw Error(k0+yt(e));return e}function nA(e,t){var n,r,a,o,u,c,d,h,v,m,y=e.constructor,x=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),rt?Ge(t,x):t;if(d=e.d,m=t.d,r=t.e,h=e.e,d=d.slice(),u=h-r,u){for(v=u<0,v?(n=d,u=-u,c=m.length):(n=m,r=h,c=d.length),a=Math.max(Math.ceil(x/tt),c)+2,u>a&&(u=a,n.length=1),n.reverse(),a=u;a--;)n.push(0);n.reverse()}else{for(a=d.length,c=m.length,v=a<c,v&&(c=a),a=0;a<c;a++)if(d[a]!=m[a]){v=d[a]<m[a];break}u=0}for(v&&(n=d,d=m,m=n,t.s=-t.s),c=d.length,a=m.length-c;a>0;--a)d[c++]=0;for(a=m.length;a>u;){if(d[--a]<m[a]){for(o=a;o&&d[--o]===0;)d[o]=Tt-1;--d[o],d[a]+=Tt}d[a]-=m[a]}for(;d[--c]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,rt?Ge(t,x):t):new y(0)}function Xi(e,t,n){var r,a=yt(e),o=ir(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+ii(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+ii(-a-1)+o,n&&(r=n-u)>0&&(o+=ii(r))):a>=u?(o+=ii(a+1-u),n&&(r=n-a-1)>0&&(o=o+"."+ii(r))):((r=a+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(a+1===u&&(o+="."),o+=ii(r))),e.s<0?"-"+o:o}function P_(e,t){if(e.length>t)return e.length=t,!0}function rA(e){var t,n,r;function a(o){var u=this;if(!(u instanceof a))return new a(o);if(u.constructor=a,o instanceof a){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(Ki+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 T_(u,o.toString())}else if(typeof o!="string")throw Error(Ki+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,dU.test(o))T_(u,o);else throw Error(Ki+o)}if(a.prototype=ge,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=rA,a.config=a.set=hU,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function hU(e){if(!e||typeof e!="object")throw Error(Tn+"Object expected");var t,n,r,a=["precision",1,_o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Oo(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ki+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ki+n+": "+r);return this}var C0=rA(fU);hn=new C0(1);const Ke=C0;function pU(e){return gU(e)||yU(e)||vU(e)||mU()}function mU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
255
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vU(e,t){if(e){if(typeof e=="string")return Rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(e,t)}}function yU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function gU(e){if(Array.isArray(e))return Rg(e)}function Rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xU=function(t){return t},iA={},aA=function(t){return t===iA},N_=function(t){return function n(){return arguments.length===0||arguments.length===1&&aA(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},bU=function e(t,n){return t===1?n:N_(function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var u=a.filter(function(c){return c!==iA}).length;return u>=t?n.apply(void 0,a):e(t-u,N_(function(){for(var c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];var v=a.map(function(m){return aA(m)?d.shift():m});return n.apply(void 0,pU(v).concat(d))}))})},Kf=function(t){return bU(t.length,t)},$g=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},wU=Kf(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),jU=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return xU;var a=n.reverse(),o=a[0],u=a.slice(1);return function(){return u.reduce(function(c,d){return d(c)},o.apply(void 0,arguments))}},Dg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},oA=function(t){var n=null,r=null;return function(){for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];return n&&o.every(function(c,d){return c===n[d]})||(n=o,r=t.apply(void 0,o)),r}};function SU(e){var t;return e===0?t=1:t=Math.floor(new Ke(e).abs().log(10).toNumber())+1,t}function kU(e,t,n){for(var r=new Ke(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var CU=Kf(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),_U=Kf(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),OU=Kf(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Vf={rangeStep:kU,getDigitCount:SU,interpolateNumber:CU,uninterpolateNumber:_U,uninterpolateTruncation:OU};function Lg(e){return NU(e)||PU(e)||sA(e)||TU()}function TU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
256
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function NU(e){if(Array.isArray(e))return Ug(e)}function Zs(e,t){return MU(e)||EU(e,t)||sA(e,t)||AU()}function AU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
257
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sA(e,t){if(e){if(typeof e=="string")return Ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ug(e,t)}}function Ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var u=e[Symbol.iterator](),c;!(r=(c=u.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(d){a=!0,o=d}finally{try{!r&&u.return!=null&&u.return()}finally{if(a)throw o}}return n}}function MU(e){if(Array.isArray(e))return e}function lA(e){var t=Zs(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function uA(e,t,n){if(e.lte(0))return new Ke(0);var r=Vf.getDigitCount(e.toNumber()),a=new Ke(10).pow(r),o=e.div(a),u=r!==1?.05:.1,c=new Ke(Math.ceil(o.div(u).toNumber())).add(n).mul(u),d=c.mul(a);return t?d:new Ke(Math.ceil(d))}function IU(e,t,n){var r=1,a=new Ke(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new Ke(10).pow(Vf.getDigitCount(e)-1),a=new Ke(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new Ke(Math.floor(e)))}else e===0?a=new Ke(Math.floor((t-1)/2)):n||(a=new Ke(Math.floor(e)));var u=Math.floor((t-1)/2),c=jU(wU(function(d){return a.add(new Ke(d-u).mul(r)).toNumber()}),$g);return c(0,t)}function cA(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var o=uA(new Ke(t).sub(e).div(n-1),r,a),u;e<=0&&t>=0?u=new Ke(0):(u=new Ke(e).add(t).div(2),u=u.sub(new Ke(u).mod(o)));var c=Math.ceil(u.sub(e).div(o).toNumber()),d=Math.ceil(new Ke(t).sub(u).div(o).toNumber()),h=c+d+1;return h>n?cA(e,t,n,r,a+1):(h<n&&(d=t>0?d+(n-h):d,c=t>0?c:c+(n-h)),{step:o,tickMin:u.sub(new Ke(c).mul(o)),tickMax:u.add(new Ke(d).mul(o))})}function RU(e){var t=Zs(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(a,2),c=lA([n,r]),d=Zs(c,2),h=d[0],v=d[1];if(h===-1/0||v===1/0){var m=v===1/0?[h].concat(Lg($g(0,a-1).map(function(){return 1/0}))):[].concat(Lg($g(0,a-1).map(function(){return-1/0})),[v]);return n>r?Dg(m):m}if(h===v)return IU(h,a,o);var y=cA(h,v,u,o),x=y.step,S=y.tickMin,j=y.tickMax,b=Vf.rangeStep(S,j.add(new Ke(.1).mul(x)),x);return n>r?Dg(b):b}function $U(e,t){var n=Zs(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=lA([r,a]),c=Zs(u,2),d=c[0],h=c[1];if(d===-1/0||h===1/0)return[r,a];if(d===h)return[d];var v=Math.max(t,2),m=uA(new Ke(h).sub(d).div(v-1),o,0),y=[].concat(Lg(Vf.rangeStep(new Ke(d),new Ke(h).sub(new Ke(.99).mul(m)),m)),[h]);return r>a?Dg(y):y}var DU=oA(RU),LU=oA($U),UU="Invariant failed";function Yi(e,t){throw new Error(UU)}var qU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function to(e){"@babel/helpers - typeof";return to=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},to(e)}function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kc.apply(this,arguments)}function FU(e,t){return HU(e)||WU(e,t)||zU(e,t)||BU()}function BU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
258
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zU(e,t){if(e){if(typeof e=="string")return A_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A_(e,t)}}function A_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function HU(e){if(Array.isArray(e))return e}function KU(e,t){if(e==null)return{};var n=VU(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VU(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hA(r.key),r)}}function YU(e,t,n){return t&&XU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QU(e,t,n){return t=Vc(t),ZU(e,fA()?Reflect.construct(t,n||[],Vc(e).constructor):t.apply(e,n))}function ZU(e,t){if(t&&(to(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JU(e)}function JU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fA=function(){return!!e})()}function Vc(e){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vc(e)}function eq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},qg(e,t)}function dA(e,t,n){return t=hA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hA(e){var t=tq(e,"string");return to(t)=="symbol"?t:t+""}function tq(e,t){if(to(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(to(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Il=(function(e){function t(){return GU(this,t),QU(this,t,arguments)}return eq(t,e),YU(t,[{key:"render",value:function(){var r=this.props,a=r.offset,o=r.layout,u=r.width,c=r.dataKey,d=r.data,h=r.dataPointFormatter,v=r.xAxis,m=r.yAxis,y=KU(r,qU),x=De(y,!1);this.props.direction==="x"&&v.type!=="number"&&Yi();var S=d.map(function(j){var b=h(j,c),k=b.x,_=b.y,T=b.value,A=b.errorVal;if(!A)return null;var C=[],O,N;if(Array.isArray(A)){var M=FU(A,2);O=M[0],N=M[1]}else O=N=A;if(o==="vertical"){var R=v.scale,K=_+a,L=K+u,U=K-u,V=R(T-O),Y=R(T+N);C.push({x1:Y,y1:L,x2:Y,y2:U}),C.push({x1:V,y1:K,x2:Y,y2:K}),C.push({x1:V,y1:L,x2:V,y2:U})}else if(o==="horizontal"){var G=m.scale,J=k+a,ne=J-u,z=J+u,Q=G(T-O),Z=G(T+N);C.push({x1:ne,y1:Z,x2:z,y2:Z}),C.push({x1:J,y1:Q,x2:J,y2:Z}),C.push({x1:ne,y1:Q,x2:z,y2:Q})}return E.createElement(ht,Kc({className:"recharts-errorBar",key:"bar-".concat(C.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),C.map(function($){return E.createElement("line",Kc({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return E.createElement(ht,{className:"recharts-errorBars"},S)}}])})(E.Component);dA(Il,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});dA(Il,"displayName","ErrorBar");function Js(e){"@babel/helpers - typeof";return Js=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},Js(e)}function E_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E_(Object(n),!0).forEach(function(r){nq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nq(e,t,n){return t=rq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rq(e){var t=iq(e,"string");return Js(t)=="symbol"?t:t+""}function iq(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pA=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,u=dn(n,Wi);if(!u)return null;var c=Wi.defaultProps,d=c!==void 0?$i($i({},c),u.props):{},h;return u.props&&u.props.payload?h=u.props&&u.props.payload:o==="children"?h=(r||[]).reduce(function(v,m){var y=m.item,x=m.props,S=x.sectors||x.data||[];return v.concat(S.map(function(j){return{type:u.props.iconType||y.props.legendType,value:j.name,color:j.fill,payload:j}}))},[]):h=(r||[]).map(function(v){var m=v.item,y=m.type.defaultProps,x=y!==void 0?$i($i({},y),m.props):{},S=x.dataKey,j=x.name,b=x.legendType,k=x.hide;return{inactive:k,dataKey:S,type:d.iconType||b||"square",color:_0(m),value:j||S,payload:x}}),$i($i($i({},d),Wi.getWithHeight(u,a)),{},{payload:h,item:u})};function el(e){"@babel/helpers - typeof";return el=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},el(e)}function M_(e){return lq(e)||sq(e)||oq(e)||aq()}function aq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
259
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oq(e,t){if(e){if(typeof e=="string")return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}}function sq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lq(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I_(Object(n),!0).forEach(function(r){Fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fa(e,t,n){return t=uq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uq(e){var t=cq(e,"string");return el(t)=="symbol"?t:t+""}function cq(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pn(e,t,n){return $e(e)||$e(t)?n:jt(t)?_n(e,t,n):Me(t)?t(e):n}function Is(e,t,n,r){var a=lU(e,function(c){return pn(c,t)});if(n==="number"){var o=a.filter(function(c){return de(c)||parseFloat(c)});return o.length?[Wf(o),zf(o)]:[1/0,-1/0]}var u=r?a.filter(function(c){return!$e(c)}):a;return u.map(function(c){return jt(c)||c instanceof Date?c:""})}var fq=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var d=o.range,h=0;h<c;h++){var v=h>0?a[h-1].coordinate:a[c-1].coordinate,m=a[h].coordinate,y=h>=c-1?a[0].coordinate:a[h+1].coordinate,x=void 0;if(Wn(m-v)!==Wn(y-m)){var S=[];if(Wn(y-m)===Wn(d[1]-d[0])){x=y;var j=m+d[1]-d[0];S[0]=Math.min(j,(j+v)/2),S[1]=Math.max(j,(j+v)/2)}else{x=v;var b=y+d[1]-d[0];S[0]=Math.min(m,(b+m)/2),S[1]=Math.max(m,(b+m)/2)}var k=[Math.min(m,(x+m)/2),Math.max(m,(x+m)/2)];if(t>k[0]&&t<=k[1]||t>=S[0]&&t<=S[1]){u=a[h].index;break}}else{var _=Math.min(v,y),T=Math.max(v,y);if(t>(_+m)/2&&t<=(T+m)/2){u=a[h].index;break}}}else for(var A=0;A<c;A++)if(A===0&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A>0&&A<c-1&&t>(r[A].coordinate+r[A-1].coordinate)/2&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A===c-1&&t>(r[A].coordinate+r[A-1].coordinate)/2){u=r[A].index;break}return u},_0=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ut(ut({},t.type.defaultProps),t.props):t.props,u=o.stroke,c=o.fill,d;switch(a){case"Line":d=u;break;case"Area":case"Radar":d=u&&u!=="none"?u:c;break;default:d=c;break}return d},dq=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var u={},c=Object.keys(o),d=0,h=c.length;d<h;d++)for(var v=o[c[d]].stackGroups,m=Object.keys(v),y=0,x=m.length;y<x;y++){var S=v[m[y]],j=S.items,b=S.cateAxisId,k=j.filter(function(N){return Sr(N.type).indexOf("Bar")>=0});if(k&&k.length){var _=k[0].type.defaultProps,T=_!==void 0?ut(ut({},_),k[0].props):k[0].props,A=T.barSize,C=T[b];u[C]||(u[C]=[]);var O=$e(A)?n:A;u[C].push({item:k[0],stackList:k.slice(1),barSize:$e(O)?void 0:Gi(O,r,0)})}}return u},hq=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,o=t.sizeList,u=o===void 0?[]:o,c=t.maxBarSize,d=u.length;if(d<1)return null;var h=Gi(n,a,0,!0),v,m=[];if(u[0].barSize===+u[0].barSize){var y=!1,x=a/d,S=u.reduce(function(A,C){return A+C.barSize||0},0);S+=(d-1)*h,S>=a&&(S-=(d-1)*h,h=0),S>=a&&x>0&&(y=!0,x*=.9,S=d*x);var j=(a-S)/2>>0,b={offset:j-h,size:0};v=u.reduce(function(A,C){var O={item:C.item,position:{offset:b.offset+b.size+h,size:y?x:C.barSize}},N=[].concat(M_(A),[O]);return b=N[N.length-1].position,C.stackList&&C.stackList.length&&C.stackList.forEach(function(M){N.push({item:M,position:b})}),N},m)}else{var k=Gi(r,a,0,!0);a-2*k-(d-1)*h<=0&&(h=0);var _=(a-2*k-(d-1)*h)/d;_>1&&(_>>=0);var T=c===+c?Math.min(_,c):_;v=u.reduce(function(A,C,O){var N=[].concat(M_(A),[{item:C.item,position:{offset:k+(_+h)*O+(_-T)/2,size:T}}]);return C.stackList&&C.stackList.length&&C.stackList.forEach(function(M){N.push({item:M,position:N[N.length-1].position})}),N},m)}return v},pq=function(t,n,r,a){var o=r.children,u=r.width,c=r.margin,d=u-(c.left||0)-(c.right||0),h=pA({children:o,legendWidth:d});if(h){var v=a||{},m=v.width,y=v.height,x=h.align,S=h.verticalAlign,j=h.layout;if((j==="vertical"||j==="horizontal"&&S==="middle")&&x!=="center"&&de(t[x]))return ut(ut({},t),{},Fa({},x,t[x]+(m||0)));if((j==="horizontal"||j==="vertical"&&x==="center")&&S!=="middle"&&de(t[S]))return ut(ut({},t),{},Fa({},S,t[S]+(y||0)))}return t},mq=function(t,n,r){return $e(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},mA=function(t,n,r,a,o){var u=n.props.children,c=On(u,Il).filter(function(h){return mq(a,o,h.props.direction)});if(c&&c.length){var d=c.map(function(h){return h.props.dataKey});return t.reduce(function(h,v){var m=pn(v,r);if($e(m))return h;var y=Array.isArray(m)?[Wf(m),zf(m)]:[m,m],x=d.reduce(function(S,j){var b=pn(v,j,0),k=y[0]-Math.abs(Array.isArray(b)?b[0]:b),_=y[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(k,S[0]),Math.max(_,S[1])]},[1/0,-1/0]);return[Math.min(x[0],h[0]),Math.max(x[1],h[1])]},[1/0,-1/0])}return null},vq=function(t,n,r,a,o){var u=n.map(function(c){return mA(t,c,r,o,a)}).filter(function(c){return!$e(c)});return u&&u.length?u.reduce(function(c,d){return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]):null},vA=function(t,n,r,a,o){var u=n.map(function(d){var h=d.props.dataKey;return r==="number"&&h&&mA(t,d,h,a)||Is(t,h,r,o)});if(r==="number")return u.reduce(function(d,h){return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);var c={};return u.reduce(function(d,h){for(var v=0,m=h.length;v<m;v++)c[h[v]]||(c[h[v]]=!0,d.push(h[v]));return d},[])},yA=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},gA=function(t,n,r,a){if(a)return t.map(function(d){return d.coordinate});var o,u,c=t.map(function(d){return d.coordinate===n&&(o=!0),d.coordinate===r&&(u=!0),d.coordinate});return o||c.push(n),u||c.push(r),c},jr=function(t,n,r){if(!t)return null;var a=t.scale,o=t.duplicateDomain,u=t.type,c=t.range,d=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,h=(n||r)&&u==="category"&&a.bandwidth?a.bandwidth()/d:0;if(h=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?Wn(c[0]-c[1])*2*h:h,n&&(t.ticks||t.niceTicks)){var v=(t.ticks||t.niceTicks).map(function(m){var y=o?o.indexOf(m):m;return{coordinate:a(y)+h,value:m,offset:h}});return v.filter(function(m){return!Ol(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,y){return{coordinate:a(m)+h,value:m,index:y,offset:h}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(m){return{coordinate:a(m)+h,value:m,offset:h}}):a.domain().map(function(m,y){return{coordinate:a(m)+h,value:o?o[m]:m,index:y,offset:h}})},Cy=new WeakMap,ic=function(t,n){if(typeof n!="function")return t;Cy.has(t)||Cy.set(t,new WeakMap);var r=Cy.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},yq=function(t,n,r){var a=t.scale,o=t.type,u=t.layout,c=t.axisType;if(a==="auto")return u==="radial"&&c==="radiusAxis"?{scale:Ks(),realScaleType:"band"}:u==="radial"&&c==="angleAxis"?{scale:Fc(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ms(),realScaleType:"point"}:o==="category"?{scale:Ks(),realScaleType:"band"}:{scale:Fc(),realScaleType:"linear"};if(Vi(a)){var d="scale".concat(Pf(a));return{scale:(x_[d]||Ms)(),realScaleType:x_[d]?d:"point"}}return Me(a)?{scale:a}:{scale:Ms(),realScaleType:"point"}},R_=1e-4,gq=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),o=Math.min(a[0],a[1])-R_,u=Math.max(a[0],a[1])+R_,c=t(n[0]),d=t(n[r-1]);(c<o||c>u||d<o||d>u)&&t.domain([n[0],n[r-1]])}},xq=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},bq=function(t,n){if(!n||n.length!==2||!de(n[0])||!de(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!de(t[0])||t[0]<r)&&(o[0]=r),(!de(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<r&&(o[1]=r),o},wq=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,u=0,c=0;c<n;++c){var d=Ol(t[c][r][1])?t[c][r][0]:t[c][r][1];d>=0?(t[c][r][0]=o,t[c][r][1]=o+d,o=t[c][r][1]):(t[c][r][0]=u,t[c][r][1]=u+d,u=t[c][r][1])}},jq=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,u=0;u<n;++u){var c=Ol(t[u][r][1])?t[u][r][0]:t[u][r][1];c>=0?(t[u][r][0]=o,t[u][r][1]=o+c,o=t[u][r][1]):(t[u][r][0]=0,t[u][r][1]=0)}},Sq={sign:wq,expand:o$,none:Ka,silhouette:s$,wiggle:l$,positive:jq},kq=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=Sq[r],u=a$().keys(a).value(function(c,d){return+pn(c,d,0)}).order(yg).offset(o);return u(t)},Cq=function(t,n,r,a,o,u){if(!t)return null;var c=u?n.reverse():n,d={},h=c.reduce(function(m,y){var x,S=(x=y.type)!==null&&x!==void 0&&x.defaultProps?ut(ut({},y.type.defaultProps),y.props):y.props,j=S.stackId,b=S.hide;if(b)return m;var k=S[r],_=m[k]||{hasStack:!1,stackGroups:{}};if(jt(j)){var T=_.stackGroups[j]||{numericAxisId:r,cateAxisId:a,items:[]};T.items.push(y),_.hasStack=!0,_.stackGroups[j]=T}else _.stackGroups[Tl("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[y]};return ut(ut({},m),{},Fa({},k,_))},d),v={};return Object.keys(h).reduce(function(m,y){var x=h[y];if(x.hasStack){var S={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(j,b){var k=x.stackGroups[b];return ut(ut({},j),{},Fa({},b,{numericAxisId:r,cateAxisId:a,items:k.items,stackedData:kq(t,k.items,o)}))},S)}return ut(ut({},m),{},Fa({},y,x))},v)},_q=function(t,n){var r=n.realScaleType,a=n.type,o=n.tickCount,u=n.originalDomain,c=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(o&&a==="number"&&u&&(u[0]==="auto"||u[1]==="auto")){var h=t.domain();if(!h.length)return null;var v=DU(h,o,c);return t.domain([Wf(v),zf(v)]),{niceTicks:v}}if(o&&a==="number"){var m=t.domain(),y=LU(m,o,c);return{niceTicks:y}}return null};function $_(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,o=e.index,u=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!$e(a[t.dataKey])){var c=bc(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var d=pn(a,$e(u)?t.dataKey:u);return $e(d)?null:t.scale(d)}var D_=function(t){var n=t.axis,r=t.ticks,a=t.offset,o=t.bandSize,u=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var d=pn(u,n.dataKey,n.domain[c]);return $e(d)?null:n.scale(d)-o/2+a},Oq=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},Tq=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ut(ut({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(jt(o)){var u=n[o];if(u){var c=u.items.indexOf(t);return c>=0?u.stackedData[c]:null}}return null},Pq=function(t){return t.reduce(function(n,r){return[Wf(r.concat([n[0]]).filter(de)),zf(r.concat([n[1]]).filter(de))]},[1/0,-1/0])},xA=function(t,n,r){return Object.keys(t).reduce(function(a,o){var u=t[o],c=u.stackedData,d=c.reduce(function(h,v){var m=Pq(v.slice(n,r+1));return[Math.min(h[0],m[0]),Math.max(h[1],m[1])]},[1/0,-1/0]);return[Math.min(d[0],a[0]),Math.max(d[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},L_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,U_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Bg=function(t,n,r){if(Me(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(de(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(L_.test(t[0])){var o=+L_.exec(t[0])[1];a[0]=n[0]-o}else Me(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(de(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(U_.test(t[1])){var u=+U_.exec(t[1])[1];a[1]=n[1]+u}else Me(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Gc=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var o=e0(n,function(m){return m.coordinate}),u=1/0,c=1,d=o.length;c<d;c++){var h=o[c],v=o[c-1];u=Math.min((h.coordinate||0)-(v.coordinate||0),u)}return u===1/0?0:u}return r?void 0:0},q_=function(t,n,r){return!t||!t.length||Hf(t,_n(r,"type.defaultProps.domain"))?n:t},bA=function(t,n){var r=t.type.defaultProps?ut(ut({},t.type.defaultProps),t.props):t.props,a=r.dataKey,o=r.name,u=r.unit,c=r.formatter,d=r.tooltipType,h=r.chartType,v=r.hide;return ut(ut({},De(t,!1)),{},{dataKey:a,unit:u,formatter:c,name:o||a,color:_0(t),value:pn(n,a),type:d,payload:n,chartType:h,hide:v})};function tl(e){"@babel/helpers - typeof";return tl=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},tl(e)}function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(n),!0).forEach(function(r){Nq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nq(e,t,n){return t=Aq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aq(e){var t=Eq(e,"string");return tl(t)=="symbol"?t:t+""}function Eq(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xc=Math.PI/180,Mq=function(t){return t*180/Math.PI},Rt=function(t,n,r,a){return{x:t+Math.cos(-Xc*a)*r,y:n+Math.sin(-Xc*a)*r}},Iq=function(t,n){var r=t.x,a=t.y,o=n.x,u=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(a-u,2))},Rq=function(t,n){var r=t.x,a=t.y,o=n.cx,u=n.cy,c=Iq({x:r,y:a},{x:o,y:u});if(c<=0)return{radius:c};var d=(r-o)/c,h=Math.acos(d);return a>u&&(h=2*Math.PI-h),{radius:c,angle:Mq(h),angleInRadian:h}},$q=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),o=Math.floor(r/360),u=Math.min(a,o);return{startAngle:n-u*360,endAngle:r-u*360}},Dq=function(t,n){var r=n.startAngle,a=n.endAngle,o=Math.floor(r/360),u=Math.floor(a/360),c=Math.min(o,u);return t+c*360},z_=function(t,n){var r=t.x,a=t.y,o=Rq({x:r,y:a},n),u=o.radius,c=o.angle,d=n.innerRadius,h=n.outerRadius;if(u<d||u>h)return!1;if(u===0)return!0;var v=$q(n),m=v.startAngle,y=v.endAngle,x=c,S;if(m<=y){for(;x>y;)x-=360;for(;x<m;)x+=360;S=x>=m&&x<=y}else{for(;x>m;)x-=360;for(;x<y;)x+=360;S=x>=y&&x<=m}return S?B_(B_({},n),{},{radius:u,angle:Dq(x,n)}):null};function nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}var Lq=["offset"];function Uq(e){return zq(e)||Bq(e)||Fq(e)||qq()}function qq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
260
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fq(e,t){if(e){if(typeof e=="string")return zg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zg(e,t)}}function Bq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zq(e){if(Array.isArray(e))return zg(e)}function zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wq(e,t){if(e==null)return{};var n=Hq(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hq(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W_(Object(n),!0).forEach(function(r){Kq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kq(e,t,n){return t=Vq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vq(e){var t=Gq(e,"string");return nl(t)=="symbol"?t:t+""}function Gq(e,t){if(nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rl.apply(this,arguments)}var Xq=function(t){var n=t.value,r=t.formatter,a=$e(t.children)?n:t.children;return Me(r)?r(a):a},Yq=function(t,n){var r=Wn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Qq=function(t,n,r){var a=t.position,o=t.viewBox,u=t.offset,c=t.className,d=o,h=d.cx,v=d.cy,m=d.innerRadius,y=d.outerRadius,x=d.startAngle,S=d.endAngle,j=d.clockWise,b=(m+y)/2,k=Yq(x,S),_=k>=0?1:-1,T,A;a==="insideStart"?(T=x+_*u,A=j):a==="insideEnd"?(T=S-_*u,A=!j):a==="end"&&(T=S+_*u,A=j),A=k<=0?A:!A;var C=Rt(h,v,b,T),O=Rt(h,v,b,T+(A?1:-1)*359),N="M".concat(C.x,",").concat(C.y,`
261
+ A`).concat(b,",").concat(b,",0,1,").concat(A?0:1,`,
262
+ `).concat(O.x,",").concat(O.y),M=$e(t.id)?Tl("recharts-radial-line-"):t.id;return E.createElement("text",rl({},r,{dominantBaseline:"central",className:qe("recharts-radial-bar-label",c)}),E.createElement("defs",null,E.createElement("path",{id:M,d:N})),E.createElement("textPath",{xlinkHref:"#".concat(M)},n))},Zq=function(t){var n=t.viewBox,r=t.offset,a=t.position,o=n,u=o.cx,c=o.cy,d=o.innerRadius,h=o.outerRadius,v=o.startAngle,m=o.endAngle,y=(v+m)/2;if(a==="outside"){var x=Rt(u,c,h+r,y),S=x.x,j=x.y;return{x:S,y:j,textAnchor:S>=u?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"end"};var b=(d+h)/2,k=Rt(u,c,b,y),_=k.x,T=k.y;return{x:_,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Jq=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,o=t.position,u=n,c=u.x,d=u.y,h=u.width,v=u.height,m=v>=0?1:-1,y=m*a,x=m>0?"end":"start",S=m>0?"start":"end",j=h>=0?1:-1,b=j*a,k=j>0?"end":"start",_=j>0?"start":"end";if(o==="top"){var T={x:c+h/2,y:d-m*a,textAnchor:"middle",verticalAnchor:x};return wt(wt({},T),r?{height:Math.max(d-r.y,0),width:h}:{})}if(o==="bottom"){var A={x:c+h/2,y:d+v+y,textAnchor:"middle",verticalAnchor:S};return wt(wt({},A),r?{height:Math.max(r.y+r.height-(d+v),0),width:h}:{})}if(o==="left"){var C={x:c-b,y:d+v/2,textAnchor:k,verticalAnchor:"middle"};return wt(wt({},C),r?{width:Math.max(C.x-r.x,0),height:v}:{})}if(o==="right"){var O={x:c+h+b,y:d+v/2,textAnchor:_,verticalAnchor:"middle"};return wt(wt({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:v}:{})}var N=r?{width:h,height:v}:{};return o==="insideLeft"?wt({x:c+b,y:d+v/2,textAnchor:_,verticalAnchor:"middle"},N):o==="insideRight"?wt({x:c+h-b,y:d+v/2,textAnchor:k,verticalAnchor:"middle"},N):o==="insideTop"?wt({x:c+h/2,y:d+y,textAnchor:"middle",verticalAnchor:S},N):o==="insideBottom"?wt({x:c+h/2,y:d+v-y,textAnchor:"middle",verticalAnchor:x},N):o==="insideTopLeft"?wt({x:c+b,y:d+y,textAnchor:_,verticalAnchor:S},N):o==="insideTopRight"?wt({x:c+h-b,y:d+y,textAnchor:k,verticalAnchor:S},N):o==="insideBottomLeft"?wt({x:c+b,y:d+v-y,textAnchor:_,verticalAnchor:x},N):o==="insideBottomRight"?wt({x:c+h-b,y:d+v-y,textAnchor:k,verticalAnchor:x},N):jo(o)&&(de(o.x)||Ui(o.x))&&(de(o.y)||Ui(o.y))?wt({x:c+Gi(o.x,h),y:d+Gi(o.y,v),textAnchor:"end",verticalAnchor:"end"},N):wt({x:c+h/2,y:d+v/2,textAnchor:"middle",verticalAnchor:"middle"},N)},e6=function(t){return"cx"in t&&de(t.cx)};function Bt(e){var t=e.offset,n=t===void 0?5:t,r=Wq(e,Lq),a=wt({offset:n},r),o=a.viewBox,u=a.position,c=a.value,d=a.children,h=a.content,v=a.className,m=v===void 0?"":v,y=a.textBreakAll;if(!o||$e(c)&&$e(d)&&!ue.isValidElement(h)&&!Me(h))return null;if(ue.isValidElement(h))return ue.cloneElement(h,a);var x;if(Me(h)){if(x=ue.createElement(h,a),ue.isValidElement(x))return x}else x=Xq(a);var S=e6(o),j=De(a,!0);if(S&&(u==="insideStart"||u==="insideEnd"||u==="end"))return Qq(a,x,j);var b=S?Zq(a):Jq(a);return E.createElement(Mc,rl({className:qe("recharts-label",m)},j,b,{breakAll:y}),x)}Bt.displayName="Label";var wA=function(t){var n=t.cx,r=t.cy,a=t.angle,o=t.startAngle,u=t.endAngle,c=t.r,d=t.radius,h=t.innerRadius,v=t.outerRadius,m=t.x,y=t.y,x=t.top,S=t.left,j=t.width,b=t.height,k=t.clockWise,_=t.labelViewBox;if(_)return _;if(de(j)&&de(b)){if(de(m)&&de(y))return{x:m,y,width:j,height:b};if(de(x)&&de(S))return{x,y:S,width:j,height:b}}return de(m)&&de(y)?{x:m,y,width:0,height:0}:de(n)&&de(r)?{cx:n,cy:r,startAngle:o||a||0,endAngle:u||a||0,innerRadius:h||0,outerRadius:v||d||c||0,clockWise:k}:t.viewBox?t.viewBox:{}},t6=function(t,n){return t?t===!0?E.createElement(Bt,{key:"label-implicit",viewBox:n}):jt(t)?E.createElement(Bt,{key:"label-implicit",viewBox:n,value:t}):ue.isValidElement(t)?t.type===Bt?ue.cloneElement(t,{key:"label-implicit",viewBox:n}):E.createElement(Bt,{key:"label-implicit",content:t,viewBox:n}):Me(t)?E.createElement(Bt,{key:"label-implicit",content:t,viewBox:n}):jo(t)?E.createElement(Bt,rl({viewBox:n},t,{key:"label-implicit"})):null:null},n6=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,o=wA(t),u=On(a,Bt).map(function(d,h){return ue.cloneElement(d,{viewBox:n||o,key:"label-".concat(h)})});if(!r)return u;var c=t6(t.label,n||o);return[c].concat(Uq(u))};Bt.parseViewBox=wA;Bt.renderCallByParent=n6;var _y,H_;function r6(){if(H_)return _y;H_=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return _y=e,_y}var i6=r6();const a6=Ve(i6);function il(e){"@babel/helpers - typeof";return il=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},il(e)}var o6=["valueAccessor"],s6=["data","dataKey","clockWise","id","textBreakAll"];function l6(e){return d6(e)||f6(e)||c6(e)||u6()}function u6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c6(e,t){if(e){if(typeof e=="string")return Wg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wg(e,t)}}function f6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d6(e){if(Array.isArray(e))return Wg(e)}function Wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(this,arguments)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function V_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(r){h6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h6(e,t,n){return t=p6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p6(e){var t=m6(e,"string");return il(t)=="symbol"?t:t+""}function m6(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G_(e,t){if(e==null)return{};var n=v6(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var y6=function(t){return Array.isArray(t.value)?a6(t.value):t.value};function ui(e){var t=e.valueAccessor,n=t===void 0?y6:t,r=G_(e,o6),a=r.data,o=r.dataKey,u=r.clockWise,c=r.id,d=r.textBreakAll,h=G_(r,s6);return!a||!a.length?null:E.createElement(ht,{className:"recharts-label-list"},a.map(function(v,m){var y=$e(o)?n(v,m):pn(v&&v.payload,o),x=$e(c)?{}:{id:"".concat(c,"-").concat(m)};return E.createElement(Bt,Yc({},De(v,!0),h,x,{parentViewBox:v.parentViewBox,value:y,textBreakAll:d,viewBox:Bt.parseViewBox($e(u)?v:V_(V_({},v),{},{clockWise:u})),key:"label-".concat(m),index:m}))}))}ui.displayName="LabelList";function g6(e,t){return e?e===!0?E.createElement(ui,{key:"labelList-implicit",data:t}):E.isValidElement(e)||Me(e)?E.createElement(ui,{key:"labelList-implicit",data:t,content:e}):jo(e)?E.createElement(ui,Yc({data:t},e,{key:"labelList-implicit"})):null:null}function x6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=On(r,ui).map(function(u,c){return ue.cloneElement(u,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var o=g6(e.label,t);return[o].concat(l6(a))}ui.renderCallByParent=x6;function al(e){"@babel/helpers - typeof";return al=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},al(e)}function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hg.apply(this,arguments)}function X_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X_(Object(n),!0).forEach(function(r){b6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b6(e,t,n){return t=w6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w6(e){var t=j6(e,"string");return al(t)=="symbol"?t:t+""}function j6(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S6=function(t,n){var r=Wn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},ac=function(t){var n=t.cx,r=t.cy,a=t.radius,o=t.angle,u=t.sign,c=t.isExternal,d=t.cornerRadius,h=t.cornerIsExternal,v=d*(c?1:-1)+a,m=Math.asin(d/v)/Xc,y=h?o:o+u*m,x=Rt(n,r,v,y),S=Rt(n,r,a,y),j=h?o-u*m:o,b=Rt(n,r,v*Math.cos(m*Xc),j);return{center:x,circleTangency:S,lineTangency:b,theta:m}},jA=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,u=t.startAngle,c=t.endAngle,d=S6(u,c),h=u+d,v=Rt(n,r,o,u),m=Rt(n,r,o,h),y="M ".concat(v.x,",").concat(v.y,`
264
+ A `).concat(o,",").concat(o,`,0,
265
+ `).concat(+(Math.abs(d)>180),",").concat(+(u>h),`,
266
+ `).concat(m.x,",").concat(m.y,`
267
+ `);if(a>0){var x=Rt(n,r,a,u),S=Rt(n,r,a,h);y+="L ".concat(S.x,",").concat(S.y,`
268
+ A `).concat(a,",").concat(a,`,0,
269
+ `).concat(+(Math.abs(d)>180),",").concat(+(u<=h),`,
270
+ `).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},k6=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,u=t.cornerRadius,c=t.forceCornerRadius,d=t.cornerIsExternal,h=t.startAngle,v=t.endAngle,m=Wn(v-h),y=ac({cx:n,cy:r,radius:o,angle:h,sign:m,cornerRadius:u,cornerIsExternal:d}),x=y.circleTangency,S=y.lineTangency,j=y.theta,b=ac({cx:n,cy:r,radius:o,angle:v,sign:-m,cornerRadius:u,cornerIsExternal:d}),k=b.circleTangency,_=b.lineTangency,T=b.theta,A=d?Math.abs(h-v):Math.abs(h-v)-j-T;if(A<0)return c?"M ".concat(S.x,",").concat(S.y,`
271
+ a`).concat(u,",").concat(u,",0,0,1,").concat(u*2,`,0
272
+ a`).concat(u,",").concat(u,",0,0,1,").concat(-u*2,`,0
273
+ `):jA({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:v});var C="M ".concat(S.x,",").concat(S.y,`
274
+ A`).concat(u,",").concat(u,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
275
+ A`).concat(o,",").concat(o,",0,").concat(+(A>180),",").concat(+(m<0),",").concat(k.x,",").concat(k.y,`
276
+ A`).concat(u,",").concat(u,",0,0,").concat(+(m<0),",").concat(_.x,",").concat(_.y,`
277
+ `);if(a>0){var O=ac({cx:n,cy:r,radius:a,angle:h,sign:m,isExternal:!0,cornerRadius:u,cornerIsExternal:d}),N=O.circleTangency,M=O.lineTangency,R=O.theta,K=ac({cx:n,cy:r,radius:a,angle:v,sign:-m,isExternal:!0,cornerRadius:u,cornerIsExternal:d}),L=K.circleTangency,U=K.lineTangency,V=K.theta,Y=d?Math.abs(h-v):Math.abs(h-v)-R-V;if(Y<0&&u===0)return"".concat(C,"L").concat(n,",").concat(r,"Z");C+="L".concat(U.x,",").concat(U.y,`
278
+ A`).concat(u,",").concat(u,",0,0,").concat(+(m<0),",").concat(L.x,",").concat(L.y,`
279
+ A`).concat(a,",").concat(a,",0,").concat(+(Y>180),",").concat(+(m>0),",").concat(N.x,",").concat(N.y,`
280
+ A`).concat(u,",").concat(u,",0,0,").concat(+(m<0),",").concat(M.x,",").concat(M.y,"Z")}else C+="L".concat(n,",").concat(r,"Z");return C},C6={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},SA=function(t){var n=Y_(Y_({},C6),t),r=n.cx,a=n.cy,o=n.innerRadius,u=n.outerRadius,c=n.cornerRadius,d=n.forceCornerRadius,h=n.cornerIsExternal,v=n.startAngle,m=n.endAngle,y=n.className;if(u<o||v===m)return null;var x=qe("recharts-sector",y),S=u-o,j=Gi(c,S,0,!0),b;return j>0&&Math.abs(v-m)<360?b=k6({cx:r,cy:a,innerRadius:o,outerRadius:u,cornerRadius:Math.min(j,S/2),forceCornerRadius:d,cornerIsExternal:h,startAngle:v,endAngle:m}):b=jA({cx:r,cy:a,innerRadius:o,outerRadius:u,startAngle:v,endAngle:m}),E.createElement("path",Hg({},De(n,!0),{className:x,d:b,role:"img"}))};function ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kg.apply(this,arguments)}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(r){_6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _6(e,t,n){return t=O6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O6(e){var t=T6(e,"string");return ol(t)=="symbol"?t:t+""}function T6(e,t){if(ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J_={curveBasisClosed:GR,curveBasisOpen:XR,curveBasis:VR,curveBumpX:MR,curveBumpY:IR,curveLinearClosed:YR,curveLinear:Af,curveMonotoneX:QR,curveMonotoneY:ZR,curveNatural:JR,curveStep:e$,curveStepAfter:n$,curveStepBefore:t$},oc=function(t){return t.x===+t.x&&t.y===+t.y},ks=function(t){return t.x},Cs=function(t){return t.y},P6=function(t,n){if(Me(t))return t;var r="curve".concat(Pf(t));return(r==="curveMonotone"||r==="curveBump")&&n?J_["".concat(r).concat(n==="vertical"?"Y":"X")]:J_[r]||Af},N6=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,o=a===void 0?[]:a,u=t.baseLine,c=t.layout,d=t.connectNulls,h=d===void 0?!1:d,v=P6(r,c),m=h?o.filter(function(j){return oc(j)}):o,y;if(Array.isArray(u)){var x=h?u.filter(function(j){return oc(j)}):u,S=m.map(function(j,b){return Z_(Z_({},j),{},{base:x[b]})});return c==="vertical"?y=Qu().y(Cs).x1(ks).x0(function(j){return j.base.x}):y=Qu().x(ks).y1(Cs).y0(function(j){return j.base.y}),y.defined(oc).curve(v),y(S)}return c==="vertical"&&de(u)?y=Qu().y(Cs).x1(ks).x0(u):de(u)?y=Qu().x(ks).y1(Cs).y0(u):y=PP().x(ks).y(Cs),y.defined(oc).curve(v),y(m)},Vg=function(t){var n=t.className,r=t.points,a=t.path,o=t.pathRef;if((!r||!r.length)&&!a)return null;var u=r&&r.length?N6(t):a;return ue.createElement("path",Kg({},De(t,!1),wc(t),{className:qe("recharts-curve",n),d:u,ref:o}))},Oy={exports:{}},Ty,eO;function A6(){if(eO)return Ty;eO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ty=e,Ty}var Py,tO;function E6(){if(tO)return Py;tO=1;var e=A6();function t(){}function n(){}return n.resetWarningCache=t,Py=function(){function r(u,c,d,h,v,m){if(m!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Py}var nO;function M6(){return nO||(nO=1,Oy.exports=E6()()),Oy.exports}var I6=M6();const We=Ve(I6),{getOwnPropertyNames:R6,getOwnPropertySymbols:$6}=Object,{hasOwnProperty:D6}=Object.prototype;function Ny(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function sc(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:o}=a,u=o.get(n),c=o.get(r);if(u&&c)return u===r&&c===n;o.set(n,r),o.set(r,n);const d=e(n,r,a);return o.delete(n),o.delete(r),d}}function L6(e){return e!=null?e[Symbol.toStringTag]:void 0}function rO(e){return R6(e).concat($6(e))}const U6=Object.hasOwn||((e,t)=>D6.call(e,t));function ia(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const q6="__v",F6="__o",B6="_owner",{getOwnPropertyDescriptor:iO,keys:aO}=Object;function z6(e,t){return e.byteLength===t.byteLength&&Qc(new Uint8Array(e),new Uint8Array(t))}function W6(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function H6(e,t){return e.byteLength===t.byteLength&&Qc(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function K6(e,t){return ia(e.getTime(),t.getTime())}function V6(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function G6(e,t){return e===t}function oO(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.entries();let u,c,d=0;for(;(u=o.next())&&!u.done;){const h=t.entries();let v=!1,m=0;for(;(c=h.next())&&!c.done;){if(a[m]){m++;continue}const y=u.value,x=c.value;if(n.equals(y[0],x[0],d,m,e,t,n)&&n.equals(y[1],x[1],y[0],x[0],e,t,n)){v=a[m]=!0;break}m++}if(!v)return!1;d++}return!0}const X6=ia;function Y6(e,t,n){const r=aO(e);let a=r.length;if(aO(t).length!==a)return!1;for(;a-- >0;)if(!kA(e,t,n,r[a]))return!1;return!0}function _s(e,t,n){const r=rO(e);let a=r.length;if(rO(t).length!==a)return!1;let o,u,c;for(;a-- >0;)if(o=r[a],!kA(e,t,n,o)||(u=iO(e,o),c=iO(t,o),(u||c)&&(!u||!c||u.configurable!==c.configurable||u.enumerable!==c.enumerable||u.writable!==c.writable)))return!1;return!0}function Q6(e,t){return ia(e.valueOf(),t.valueOf())}function Z6(e,t){return e.source===t.source&&e.flags===t.flags}function sO(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.values();let u,c;for(;(u=o.next())&&!u.done;){const d=t.values();let h=!1,v=0;for(;(c=d.next())&&!c.done;){if(!a[v]&&n.equals(u.value,c.value,u.value,c.value,e,t,n)){h=a[v]=!0;break}v++}if(!h)return!1}return!0}function Qc(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function J6(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 kA(e,t,n,r){return(r===B6||r===F6||r===q6)&&(e.$$typeof||t.$$typeof)?!0:U6(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const e8="[object ArrayBuffer]",t8="[object Arguments]",n8="[object Boolean]",r8="[object DataView]",i8="[object Date]",a8="[object Error]",o8="[object Map]",s8="[object Number]",l8="[object Object]",u8="[object RegExp]",c8="[object Set]",f8="[object String]",d8={"[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},h8="[object URL]",p8=Object.prototype.toString;function m8({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:o,areMapsEqual:u,areNumbersEqual:c,areObjectsEqual:d,arePrimitiveWrappersEqual:h,areRegExpsEqual:v,areSetsEqual:m,areTypedArraysEqual:y,areUrlsEqual:x,unknownTagComparators:S}){return function(b,k,_){if(b===k)return!0;if(b==null||k==null)return!1;const T=typeof b;if(T!==typeof k)return!1;if(T!=="object")return T==="number"?c(b,k,_):T==="function"?o(b,k,_):!1;const A=b.constructor;if(A!==k.constructor)return!1;if(A===Object)return d(b,k,_);if(Array.isArray(b))return t(b,k,_);if(A===Date)return r(b,k,_);if(A===RegExp)return v(b,k,_);if(A===Map)return u(b,k,_);if(A===Set)return m(b,k,_);const C=p8.call(b);if(C===i8)return r(b,k,_);if(C===u8)return v(b,k,_);if(C===o8)return u(b,k,_);if(C===c8)return m(b,k,_);if(C===l8)return typeof b.then!="function"&&typeof k.then!="function"&&d(b,k,_);if(C===h8)return x(b,k,_);if(C===a8)return a(b,k,_);if(C===t8)return d(b,k,_);if(d8[C])return y(b,k,_);if(C===e8)return e(b,k,_);if(C===r8)return n(b,k,_);if(C===n8||C===s8||C===f8)return h(b,k,_);if(S){let O=S[C];if(!O){const N=L6(b);N&&(O=S[N])}if(O)return O(b,k,_)}return!1}}function v8({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:z6,areArraysEqual:n?_s:W6,areDataViewsEqual:H6,areDatesEqual:K6,areErrorsEqual:V6,areFunctionsEqual:G6,areMapsEqual:n?Ny(oO,_s):oO,areNumbersEqual:X6,areObjectsEqual:n?_s:Y6,arePrimitiveWrappersEqual:Q6,areRegExpsEqual:Z6,areSetsEqual:n?Ny(sO,_s):sO,areTypedArraysEqual:n?Ny(Qc,_s):Qc,areUrlsEqual:J6,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=sc(r.areArraysEqual),o=sc(r.areMapsEqual),u=sc(r.areObjectsEqual),c=sc(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:c})}return r}function y8(e){return function(t,n,r,a,o,u,c){return e(t,n,c)}}function g8({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(c,d){const{cache:h=e?new WeakMap:void 0,meta:v}=n();return t(c,d,{cache:h,equals:r,meta:v,strict:a})};if(e)return function(c,d){return t(c,d,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const o={cache:void 0,equals:r,meta:void 0,strict:a};return function(c,d){return t(c,d,o)}}const x8=ji();ji({strict:!0});ji({circular:!0});ji({circular:!0,strict:!0});ji({createInternalComparator:()=>ia});ji({strict:!0,createInternalComparator:()=>ia});ji({circular:!0,createInternalComparator:()=>ia});ji({circular:!0,createInternalComparator:()=>ia,strict:!0});function ji(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,o=v8(e),u=m8(o),c=n?n(u):y8(u);return g8({circular:t,comparator:u,createState:r,equals:c,strict:a})}function b8(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function lO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(o){n<0&&(n=o),o-n>t?(e(o),n=-1):b8(a)};requestAnimationFrame(r)}function Gg(e){"@babel/helpers - typeof";return Gg=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},Gg(e)}function w8(e){return C8(e)||k8(e)||S8(e)||j8()}function j8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
281
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S8(e,t){if(e){if(typeof e=="string")return uO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uO(e,t)}}function uO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C8(e){if(Array.isArray(e))return e}function _8(){var e={},t=function(){return null},n=!1,r=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,c=w8(u),d=c[0],h=c.slice(1);if(typeof d=="number"){lO(a.bind(null,h),d);return}a(d),lO(a.bind(null,h));return}Gg(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function sl(e){"@babel/helpers - typeof";return sl=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},sl(e)}function cO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(n),!0).forEach(function(r){CA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CA(e,t,n){return t=O8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O8(e){var t=T8(e,"string");return sl(t)==="symbol"?t:String(t)}function T8(e,t){if(sl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var P8=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},N8=function(t){return t},A8=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Rs=function(t,n){return Object.keys(n).reduce(function(r,a){return fO(fO({},r),{},CA({},a,t(a,n[a])))},{})},dO=function(t,n,r){return t.map(function(a){return"".concat(A8(a)," ").concat(n,"ms ").concat(r)}).join(",")};function E8(e,t){return R8(e)||I8(e,t)||_A(e,t)||M8()}function M8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
282
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function R8(e){if(Array.isArray(e))return e}function $8(e){return U8(e)||L8(e)||_A(e)||D8()}function D8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
283
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _A(e,t){if(e){if(typeof e=="string")return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}}function L8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function U8(e){if(Array.isArray(e))return Xg(e)}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zc=1e-4,OA=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},TA=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},hO=function(t,n){return function(r){var a=OA(t,n);return TA(a,r)}},q8=function(t,n){return function(r){var a=OA(t,n),o=[].concat($8(a.map(function(u,c){return u*c}).slice(1)),[0]);return TA(o,r)}},pO=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],o=n[1],u=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,o=0,u=1,c=1;break;case"ease":a=.25,o=.1,u=.25,c=1;break;case"ease-in":a=.42,o=0,u=1,c=1;break;case"ease-out":a=.42,o=0,u=.58,c=1;break;case"ease-in-out":a=0,o=0,u=.58,c=1;break;default:{var d=n[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var h=d[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),v=E8(h,4);a=v[0],o=v[1],u=v[2],c=v[3]}}}var m=hO(a,u),y=hO(o,c),x=q8(a,u),S=function(k){return k>1?1:k<0?0:k},j=function(k){for(var _=k>1?1:k,T=_,A=0;A<8;++A){var C=m(T)-_,O=x(T);if(Math.abs(C-_)<Zc||O<Zc)return y(T);T=S(T-C/O)}return y(T)};return j.isStepper=!1,j},F8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,o=a===void 0?8:a,u=t.dt,c=u===void 0?17:u,d=function(v,m,y){var x=-(v-m)*r,S=y*o,j=y+(x-S)*c/1e3,b=y*c/1e3+v;return Math.abs(b-m)<Zc&&Math.abs(j)<Zc?[m,0]:[b,j]};return d.isStepper=!0,d.dt=c,d},B8=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return pO(a);case"spring":return F8();default:if(a.split("(")[0]==="cubic-bezier")return pO(a)}return typeof a=="function"?a:null};function ll(e){"@babel/helpers - typeof";return ll=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},ll(e)}function mO(e){return H8(e)||W8(e)||PA(e)||z8()}function z8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
284
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function H8(e){if(Array.isArray(e))return Qg(e)}function vO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vO(Object(n),!0).forEach(function(r){Yg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yg(e,t,n){return t=K8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K8(e){var t=V8(e,"string");return ll(t)==="symbol"?t:String(t)}function V8(e,t){if(ll(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G8(e,t){return Q8(e)||Y8(e,t)||PA(e,t)||X8()}function X8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
285
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PA(e,t){if(e){if(typeof e=="string")return Qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qg(e,t)}}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function Q8(e){if(Array.isArray(e))return e}var Jc=function(t,n,r){return t+(n-t)*r},Zg=function(t){var n=t.from,r=t.to;return n!==r},Z8=function e(t,n,r){var a=Rs(function(o,u){if(Zg(u)){var c=t(u.from,u.to,u.velocity),d=G8(c,2),h=d[0],v=d[1];return It(It({},u),{},{from:h,velocity:v})}return u},n);return r<1?Rs(function(o,u){return Zg(u)?It(It({},u),{},{velocity:Jc(u.velocity,a[o].velocity,r),from:Jc(u.from,a[o].from,r)}):u},n):e(t,a,r-1)};const J8=(function(e,t,n,r,a){var o=P8(e,t),u=o.reduce(function(b,k){return It(It({},b),{},Yg({},k,[e[k],t[k]]))},{}),c=o.reduce(function(b,k){return It(It({},b),{},Yg({},k,{from:e[k],velocity:0,to:t[k]}))},{}),d=-1,h,v,m=function(){return null},y=function(){return Rs(function(k,_){return _.from},c)},x=function(){return!Object.values(c).filter(Zg).length},S=function(k){h||(h=k);var _=k-h,T=_/n.dt;c=Z8(n,c,T),a(It(It(It({},e),t),y())),h=k,x()||(d=requestAnimationFrame(m))},j=function(k){v||(v=k);var _=(k-v)/r,T=Rs(function(C,O){return Jc.apply(void 0,mO(O).concat([n(_)]))},u);if(a(It(It(It({},e),t),T)),_<1)d=requestAnimationFrame(m);else{var A=Rs(function(C,O){return Jc.apply(void 0,mO(O).concat([n(1)]))},u);a(It(It(It({},e),t),A))}};return m=n.isStepper?S:j,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(d)}}});function no(e){"@babel/helpers - typeof";return no=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},no(e)}var eF=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function tF(e,t){if(e==null)return{};var n=nF(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nF(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Ay(e){return oF(e)||aF(e)||iF(e)||rF()}function rF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
286
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iF(e,t){if(e){if(typeof e=="string")return Jg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jg(e,t)}}function aF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oF(e){if(Array.isArray(e))return Jg(e)}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function As(e,t,n){return t=NA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NA(r.key),r)}}function uF(e,t,n){return t&&lF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NA(e){var t=cF(e,"string");return no(t)==="symbol"?t:String(t)}function cF(e,t){if(no(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(no(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ex(e,t)}function ex(e,t){return ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ex(e,t)}function dF(e){var t=hF();return function(){var r=ef(e),a;if(t){var o=ef(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return tx(this,a)}}function tx(e,t){if(t&&(no(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nx(e)}function nx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hF(){if(typeof Reflect>"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 ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}var Ar=(function(e){fF(n,e);var t=dF(n);function n(r,a){var o;sF(this,n),o=t.call(this,r,a);var u=o.props,c=u.isActive,d=u.attributeName,h=u.from,v=u.to,m=u.steps,y=u.children,x=u.duration;if(o.handleStyleChange=o.handleStyleChange.bind(nx(o)),o.changeStyle=o.changeStyle.bind(nx(o)),!c||x<=0)return o.state={style:{}},typeof y=="function"&&(o.state={style:v}),tx(o);if(m&&m.length)o.state={style:m[0].style};else if(h){if(typeof y=="function")return o.state={style:h},tx(o);o.state={style:d?As({},d,h):h}}else o.state={style:{}};return o}return uF(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,u=a.canBegin;this.mounted=!0,!(!o||!u)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,u=o.isActive,c=o.canBegin,d=o.attributeName,h=o.shouldReAnimate,v=o.to,m=o.from,y=this.state.style;if(c){if(!u){var x={style:d?As({},d,v):v};this.state&&y&&(d&&y[d]!==v||!d&&y!==v)&&this.setState(x);return}if(!(x8(a.to,v)&&a.canBegin&&a.isActive)){var S=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var j=S||h?m:a.to;if(this.state&&y){var b={style:d?As({},d,j):j};(d&&y[d]!==j||!d&&y!==j)&&this.setState(b)}this.runAnimation(Un(Un({},this.props),{},{from:j,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,u=a.from,c=a.to,d=a.duration,h=a.easing,v=a.begin,m=a.onAnimationEnd,y=a.onAnimationStart,x=J8(u,c,B8(h),d,this.changeStyle),S=function(){o.stopJSAnimation=x()};this.manager.start([y,v,S,d,m])}},{key:"runStepAnimation",value:function(a){var o=this,u=a.steps,c=a.begin,d=a.onAnimationStart,h=u[0],v=h.style,m=h.duration,y=m===void 0?0:m,x=function(j,b,k){if(k===0)return j;var _=b.duration,T=b.easing,A=T===void 0?"ease":T,C=b.style,O=b.properties,N=b.onAnimationEnd,M=k>0?u[k-1]:b,R=O||Object.keys(C);if(typeof A=="function"||A==="spring")return[].concat(Ay(j),[o.runJSAnimation.bind(o,{from:M.style,to:C,duration:_,easing:A}),_]);var K=dO(R,_,A),L=Un(Un(Un({},M.style),C),{},{transition:K});return[].concat(Ay(j),[L,_,N]).filter(N8)};return this.manager.start([d].concat(Ay(u.reduce(x,[v,Math.max(y,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=_8());var o=a.begin,u=a.duration,c=a.attributeName,d=a.to,h=a.easing,v=a.onAnimationStart,m=a.onAnimationEnd,y=a.steps,x=a.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof h=="function"||typeof x=="function"||h==="spring"){this.runJSAnimation(a);return}if(y.length>1){this.runStepAnimation(a);return}var j=c?As({},c,d):d,b=dO(Object.keys(j),u,h);S.start([v,o,Un(Un({},j),{},{transition:b}),u,m])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var u=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var d=tF(a,eF),h=ue.Children.count(o),v=this.state.style;if(typeof o=="function")return o(v);if(!c||h===0||u<=0)return o;var m=function(x){var S=x.props,j=S.style,b=j===void 0?{}:j,k=S.className,_=ue.cloneElement(x,Un(Un({},d),{},{style:Un(Un({},b),v),className:k}));return _};return h===1?m(ue.Children.only(o)):E.createElement("div",null,ue.Children.map(o,function(y){return m(y)}))}}]),n})(ue.PureComponent);Ar.displayName="Animate";Ar.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ar.propTypes={from:We.oneOfType([We.object,We.string]),to:We.oneOfType([We.object,We.string]),attributeName:We.string,duration:We.number,begin:We.number,easing:We.oneOfType([We.string,We.func]),steps:We.arrayOf(We.shape({duration:We.number.isRequired,style:We.object.isRequired,easing:We.oneOfType([We.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),We.func]),properties:We.arrayOf("string"),onAnimationEnd:We.func})),children:We.oneOfType([We.node,We.func]),isActive:We.bool,canBegin:We.bool,onAnimationEnd:We.func,shouldReAnimate:We.bool,onAnimationStart:We.func,onAnimationReStart:We.func};function ul(e){"@babel/helpers - typeof";return ul=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},ul(e)}function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(this,arguments)}function pF(e,t){return gF(e)||yF(e,t)||vF(e,t)||mF()}function mF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
287
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vF(e,t){if(e){if(typeof e=="string")return gO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gO(e,t)}}function gO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function gF(e){if(Array.isArray(e))return e}function xO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(n),!0).forEach(function(r){xF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xF(e,t,n){return t=bF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bF(e){var t=wF(e,"string");return ul(t)=="symbol"?t:t+""}function wF(e,t){if(ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wO=function(t,n,r,a,o){var u=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,d=r>=0?1:-1,h=a>=0&&r>=0||a<0&&r<0?1:0,v;if(u>0&&o instanceof Array){for(var m=[0,0,0,0],y=0,x=4;y<x;y++)m[y]=o[y]>u?u:o[y];v="M".concat(t,",").concat(n+c*m[0]),m[0]>0&&(v+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(h,",").concat(t+d*m[0],",").concat(n)),v+="L ".concat(t+r-d*m[1],",").concat(n),m[1]>0&&(v+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(h,`,
288
+ `).concat(t+r,",").concat(n+c*m[1])),v+="L ".concat(t+r,",").concat(n+a-c*m[2]),m[2]>0&&(v+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(h,`,
289
+ `).concat(t+r-d*m[2],",").concat(n+a)),v+="L ".concat(t+d*m[3],",").concat(n+a),m[3]>0&&(v+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(h,`,
290
+ `).concat(t,",").concat(n+a-c*m[3])),v+="Z"}else if(u>0&&o===+o&&o>0){var S=Math.min(u,o);v="M ".concat(t,",").concat(n+c*S,`
291
+ A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t+d*S,",").concat(n,`
292
+ L `).concat(t+r-d*S,",").concat(n,`
293
+ A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t+r,",").concat(n+c*S,`
294
+ L `).concat(t+r,",").concat(n+a-c*S,`
295
+ A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t+r-d*S,",").concat(n+a,`
296
+ L `).concat(t+d*S,",").concat(n+a,`
297
+ A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t,",").concat(n+a-c*S," Z")}else v="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return v},jF=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,o=n.x,u=n.y,c=n.width,d=n.height;if(Math.abs(c)>0&&Math.abs(d)>0){var h=Math.min(o,o+c),v=Math.max(o,o+c),m=Math.min(u,u+d),y=Math.max(u,u+d);return r>=h&&r<=v&&a>=m&&a<=y}return!1},SF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},O0=function(t){var n=bO(bO({},SF),t),r=ue.useRef(),a=ue.useState(-1),o=pF(a,2),u=o[0],c=o[1];ue.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&c(A)}catch{}},[]);var d=n.x,h=n.y,v=n.width,m=n.height,y=n.radius,x=n.className,S=n.animationEasing,j=n.animationDuration,b=n.animationBegin,k=n.isAnimationActive,_=n.isUpdateAnimationActive;if(d!==+d||h!==+h||v!==+v||m!==+m||v===0||m===0)return null;var T=qe("recharts-rectangle",x);return _?E.createElement(Ar,{canBegin:u>0,from:{width:v,height:m,x:d,y:h},to:{width:v,height:m,x:d,y:h},duration:j,animationEasing:S,isActive:_},function(A){var C=A.width,O=A.height,N=A.x,M=A.y;return E.createElement(Ar,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:j,isActive:k,easing:S},E.createElement("path",tf({},De(n,!0),{className:T,d:wO(N,M,C,O,y),ref:r})))}):E.createElement("path",tf({},De(n,!0),{className:T,d:wO(d,h,v,m,y)}))};function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rx.apply(this,arguments)}var T0=function(t){var n=t.cx,r=t.cy,a=t.r,o=t.className,u=qe("recharts-dot",o);return n===+n&&r===+r&&a===+a?ue.createElement("circle",rx({},De(t,!1),wc(t),{className:u,cx:n,cy:r,r:a})):null};function cl(e){"@babel/helpers - typeof";return cl=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},cl(e)}var kF=["x","y","top","left","width","height","className"];function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ix.apply(this,arguments)}function jO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function CF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(n),!0).forEach(function(r){_F(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _F(e,t,n){return t=OF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OF(e){var t=TF(e,"string");return cl(t)=="symbol"?t:t+""}function TF(e,t){if(cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PF(e,t){if(e==null)return{};var n=NF(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var AF=function(t,n,r,a,o,u){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(u,",").concat(n,"h").concat(r)},EF=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,u=t.top,c=u===void 0?0:u,d=t.left,h=d===void 0?0:d,v=t.width,m=v===void 0?0:v,y=t.height,x=y===void 0?0:y,S=t.className,j=PF(t,kF),b=CF({x:r,y:o,top:c,left:h,width:m,height:x},j);return!de(r)||!de(o)||!de(m)||!de(x)||!de(c)||!de(h)?null:E.createElement("path",ix({},De(b,!0),{className:qe("recharts-cross",S),d:AF(r,o,m,x,c,h)}))},Ey,SO;function MF(){if(SO)return Ey;SO=1;var e=ZP(),t=e(Object.getPrototypeOf,Object);return Ey=t,Ey}var My,kO;function IF(){if(kO)return My;kO=1;var e=Ir(),t=MF(),n=Rr(),r="[object Object]",a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,d=u.call(Object);function h(v){if(!n(v)||e(v)!=r)return!1;var m=t(v);if(m===null)return!0;var y=c.call(m,"constructor")&&m.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==d}return My=h,My}var RF=IF();const $F=Ve(RF);var Iy,CO;function DF(){if(CO)return Iy;CO=1;var e=Ir(),t=Rr(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return Iy=r,Iy}var LF=DF();const UF=Ve(LF);function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nf.apply(this,arguments)}function qF(e,t){return WF(e)||zF(e,t)||BF(e,t)||FF()}function FF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
298
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BF(e,t){if(e){if(typeof e=="string")return _O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _O(e,t)}}function _O(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function WF(e){if(Array.isArray(e))return e}function OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function TO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(n),!0).forEach(function(r){HF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HF(e,t,n){return t=KF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KF(e){var t=VF(e,"string");return fl(t)=="symbol"?t:t+""}function VF(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PO=function(t,n,r,a,o){var u=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-u/2,",").concat(n+o),c+="L ".concat(t+r-u/2-a,",").concat(n+o),c+="L ".concat(t,",").concat(n," Z"),c},GF={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},XF=function(t){var n=TO(TO({},GF),t),r=ue.useRef(),a=ue.useState(-1),o=qF(a,2),u=o[0],c=o[1];ue.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&c(T)}catch{}},[]);var d=n.x,h=n.y,v=n.upperWidth,m=n.lowerWidth,y=n.height,x=n.className,S=n.animationEasing,j=n.animationDuration,b=n.animationBegin,k=n.isUpdateAnimationActive;if(d!==+d||h!==+h||v!==+v||m!==+m||y!==+y||v===0&&m===0||y===0)return null;var _=qe("recharts-trapezoid",x);return k?E.createElement(Ar,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:y,x:d,y:h},to:{upperWidth:v,lowerWidth:m,height:y,x:d,y:h},duration:j,animationEasing:S,isActive:k},function(T){var A=T.upperWidth,C=T.lowerWidth,O=T.height,N=T.x,M=T.y;return E.createElement(Ar,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:j,easing:S},E.createElement("path",nf({},De(n,!0),{className:_,d:PO(N,M,A,C,O),ref:r})))}):E.createElement("g",null,E.createElement("path",nf({},De(n,!0),{className:_,d:PO(d,h,v,m,y)})))},YF=["option","shapeType","propTransformer","activeClassName","isActive"];function dl(e){"@babel/helpers - typeof";return dl=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},dl(e)}function QF(e,t){if(e==null)return{};var n=ZF(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(n),!0).forEach(function(r){JF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JF(e,t,n){return t=eB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e){var t=tB(e,"string");return dl(t)=="symbol"?t:t+""}function tB(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nB(e,t){return rf(rf({},t),e)}function rB(e,t){return e==="symbols"}function AO(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return E.createElement(O0,n);case"trapezoid":return E.createElement(XF,n);case"sector":return E.createElement(SA,n);case"symbols":if(rB(t))return E.createElement(Kx,n);break;default:return null}}function iB(e){return ue.isValidElement(e)?e.props:e}function aB(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?nB:r,o=e.activeClassName,u=o===void 0?"recharts-active-shape":o,c=e.isActive,d=QF(e,YF),h;if(ue.isValidElement(t))h=ue.cloneElement(t,rf(rf({},d),iB(t)));else if(Me(t))h=t(d);else if($F(t)&&!UF(t)){var v=a(t,d);h=E.createElement(AO,{shapeType:n,elementProps:v})}else{var m=d;h=E.createElement(AO,{shapeType:n,elementProps:m})}return c?E.createElement(ht,{className:u},h):h}function Gf(e,t){return t!=null&&"trapezoids"in e.props}function Xf(e,t){return t!=null&&"sectors"in e.props}function hl(e,t){return t!=null&&"points"in e.props}function oB(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&o}function sB(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function lB(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function uB(e,t){var n;return Gf(e,t)?n=oB:Xf(e,t)?n=sB:hl(e,t)&&(n=lB),n}function cB(e,t){var n;return Gf(e,t)?n="trapezoids":Xf(e,t)?n="sectors":hl(e,t)&&(n="points"),n}function fB(e,t){if(Gf(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Xf(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return hl(e,t)?t.payload:{}}function dB(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=cB(n,t),o=fB(n,t),u=r.filter(function(d,h){var v=Hf(o,d),m=n.props[a].filter(function(S){var j=uB(n,t);return j(S,t)}),y=n.props[a].indexOf(m[m.length-1]),x=h===y;return v&&x}),c=r.indexOf(u[u.length-1]);return c}var Ry,EO;function hB(){if(EO)return Ry;EO=1;var e=Math.ceil,t=Math.max;function n(r,a,o,u){for(var c=-1,d=t(e((a-r)/(o||1)),0),h=Array(d);d--;)h[u?d:++c]=r,r+=o;return h}return Ry=n,Ry}var $y,MO;function AA(){if(MO)return $y;MO=1;var e=pN(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var o=a<0?-1:1;return o*n}return a===a?a:0}return $y=r,$y}var Dy,IO;function pB(){if(IO)return Dy;IO=1;var e=hB(),t=Rf(),n=AA();function r(a){return function(o,u,c){return c&&typeof c!="number"&&t(o,u,c)&&(u=c=void 0),o=n(o),u===void 0?(u=o,o=0):u=n(u),c=c===void 0?o<u?1:-1:n(c),e(o,u,c,a)}}return Dy=r,Dy}var Ly,RO;function mB(){if(RO)return Ly;RO=1;var e=pB(),t=e();return Ly=t,Ly}var vB=mB();const af=Ve(vB);function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function DO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(n),!0).forEach(function(r){EA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EA(e,t,n){return t=yB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yB(e){var t=gB(e,"string");return pl(t)=="symbol"?t:t+""}function gB(e,t){if(pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xB=["Webkit","Moz","O","ms"],bB=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=xB.reduce(function(o,u){return DO(DO({},o),{},EA({},u+r,n))},{});return a[t]=n,a};function ro(e){"@babel/helpers - typeof";return ro=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},ro(e)}function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},of.apply(this,arguments)}function LO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IA(r.key),r)}}function jB(e,t,n){return t&&UO(e.prototype,t),n&&UO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SB(e,t,n){return t=sf(t),kB(e,MA()?Reflect.construct(t,n||[],sf(e).constructor):t.apply(e,n))}function kB(e,t){if(t&&(ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CB(e)}function CB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MA=function(){return!!e})()}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function _B(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ax(e,t)}function ax(e,t){return ax=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ax(e,t)}function fn(e,t,n){return t=IA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IA(e){var t=OB(e,"string");return ro(t)=="symbol"?t:t+""}function OB(e,t){if(ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TB=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,o=t.x,u=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var d=n.length,h=Ms().domain(af(0,d)).range([o,o+u-c]),v=h.domain().map(function(m){return h(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:h(r),endX:h(a),scale:h,scaleValues:v}},qO=function(t){return t.changedTouches&&!!t.changedTouches.length},io=(function(e){function t(n){var r;return wB(this,t),r=SB(this,t,[n]),fn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),fn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),fn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,o=a.endIndex,u=a.onDragEnd,c=a.startIndex;u==null||u({endIndex:o,startIndex:c})}),r.detachDragEndListener()}),fn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),fn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),fn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),fn(r,"handleSlideDragStart",function(a){var o=qO(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return _B(t,e),jB(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,o=r.endX,u=this.state.scaleValues,c=this.props,d=c.gap,h=c.data,v=h.length-1,m=Math.min(a,o),y=Math.max(a,o),x=t.getIndexInRange(u,m),S=t.getIndexInRange(u,y);return{startIndex:x-x%d,endIndex:S===v?v:S-S%d}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,u=a.tickFormatter,c=a.dataKey,d=pn(o[r],c,r);return Me(u)?u(d,r):d}},{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(r){var a=this.state,o=a.slideMoveStartX,u=a.startX,c=a.endX,d=this.props,h=d.x,v=d.width,m=d.travellerWidth,y=d.startIndex,x=d.endIndex,S=d.onChange,j=r.pageX-o;j>0?j=Math.min(j,h+v-m-c,h+v-m-u):j<0&&(j=Math.max(j,h-u,h-c));var b=this.getIndex({startX:u+j,endX:c+j});(b.startIndex!==y||b.endIndex!==x)&&S&&S(b),this.setState({startX:u+j,endX:c+j,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=qO(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,o=a.brushMoveStartX,u=a.movingTravellerId,c=a.endX,d=a.startX,h=this.state[u],v=this.props,m=v.x,y=v.width,x=v.travellerWidth,S=v.onChange,j=v.gap,b=v.data,k={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,m+y-x-h):_<0&&(_=Math.max(_,m-h)),k[u]=h+_;var T=this.getIndex(k),A=T.startIndex,C=T.endIndex,O=function(){var M=b.length-1;return u==="startX"&&(c>d?A%j===0:C%j===0)||c<d&&C===M||u==="endX"&&(c>d?C%j===0:A%j===0)||c>d&&C===M};this.setState(fn(fn({},u,h+_),"brushMoveStartX",r.pageX),function(){S&&O()&&S(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var o=this,u=this.state,c=u.scaleValues,d=u.startX,h=u.endX,v=this.state[a],m=c.indexOf(v);if(m!==-1){var y=m+r;if(!(y===-1||y>=c.length)){var x=c[y];a==="startX"&&x>=h||a==="endX"&&x<=d||this.setState(fn({},a,x),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,o=r.y,u=r.width,c=r.height,d=r.fill,h=r.stroke;return E.createElement("rect",{stroke:h,fill:d,x:a,y:o,width:u,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,o=r.y,u=r.width,c=r.height,d=r.data,h=r.children,v=r.padding,m=ue.Children.only(h);return m?E.cloneElement(m,{x:a,y:o,width:u,height:c,margin:v,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(r,a){var o,u,c=this,d=this.props,h=d.y,v=d.travellerWidth,m=d.height,y=d.traveller,x=d.ariaLabel,S=d.data,j=d.startIndex,b=d.endIndex,k=Math.max(r,this.props.x),_=Uy(Uy({},De(this.props,!1)),{},{x:k,y:h,width:v,height:m}),T=x||"Min value: ".concat((o=S[j])===null||o===void 0?void 0:o.name,", Max value: ").concat((u=S[b])===null||u===void 0?void 0:u.name);return E.createElement(ht,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(C){["ArrowLeft","ArrowRight"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),c.handleTravellerMoveKeyboard(C.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,_))}},{key:"renderSlide",value:function(r,a){var o=this.props,u=o.y,c=o.height,d=o.stroke,h=o.travellerWidth,v=Math.min(r,a)+h,m=Math.max(Math.abs(a-r)-h,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:v,y:u,width:m,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,o=r.endIndex,u=r.y,c=r.height,d=r.travellerWidth,h=r.stroke,v=this.state,m=v.startX,y=v.endX,x=5,S={pointerEvents:"none",fill:h};return E.createElement(ht,{className:"recharts-brush-texts"},E.createElement(Mc,of({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,y)-x,y:u+c/2},S),this.getTextOfTick(a)),E.createElement(Mc,of({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,y)+d+x,y:u+c/2},S),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,a=r.data,o=r.className,u=r.children,c=r.x,d=r.y,h=r.width,v=r.height,m=r.alwaysShowText,y=this.state,x=y.startX,S=y.endX,j=y.isTextActive,b=y.isSlideMoving,k=y.isTravellerMoving,_=y.isTravellerFocused;if(!a||!a.length||!de(c)||!de(d)||!de(h)||!de(v)||h<=0||v<=0)return null;var T=qe("recharts-brush",o),A=E.Children.count(u)===1,C=bB("userSelect","none");return E.createElement(ht,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(x,S),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(S,"endX"),(j||b||k||_||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,o=r.y,u=r.width,c=r.height,d=r.stroke,h=Math.floor(o+c/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:a,y:o,width:u,height:c,fill:d,stroke:"none"}),E.createElement("line",{x1:a+1,y1:h,x2:a+u-1,y2:h,fill:"none",stroke:"#fff"}),E.createElement("line",{x1:a+1,y1:h+2,x2:a+u-1,y2:h+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var o;return E.isValidElement(r)?o=E.cloneElement(r,a):Me(r)?o=r(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(r,a){var o=r.data,u=r.width,c=r.x,d=r.travellerWidth,h=r.updateId,v=r.startIndex,m=r.endIndex;if(o!==a.prevData||h!==a.prevUpdateId)return Uy({prevData:o,prevTravellerWidth:d,prevUpdateId:h,prevX:c,prevWidth:u},o&&o.length?TB({data:o,width:u,x:c,travellerWidth:d,startIndex:v,endIndex:m}):{scale:null,scaleValues:null});if(a.scale&&(u!==a.prevWidth||c!==a.prevX||d!==a.prevTravellerWidth)){a.scale.range([c,c+u-d]);var y=a.scale.domain().map(function(x){return a.scale(x)});return{prevData:o,prevTravellerWidth:d,prevUpdateId:h,prevX:c,prevWidth:u,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,a){for(var o=r.length,u=0,c=o-1;c-u>1;){var d=Math.floor((u+c)/2);r[d]>a?c=d:u=d}return a>=r[c]?c:u}}])})(ue.PureComponent);fn(io,"displayName","Brush");fn(io,"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 qy,FO;function PB(){if(FO)return qy;FO=1;var e=Jx();function t(n,r){var a;return e(n,function(o,u,c){return a=r(o,u,c),!a}),!!a}return qy=t,qy}var Fy,BO;function NB(){if(BO)return Fy;BO=1;var e=HP(),t=xi(),n=PB(),r=an(),a=Rf();function o(u,c,d){var h=r(u)?e:n;return d&&a(u,c,d)&&(c=void 0),h(u,t(c,3))}return Fy=o,Fy}var AB=NB();const EB=Ve(AB);var sr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},By,zO;function MB(){if(zO)return By;zO=1;var e=uN();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return By=t,By}var zy,WO;function IB(){if(WO)return zy;WO=1;var e=MB(),t=sN(),n=xi();function r(a,o){var u={};return o=n(o,3),t(a,function(c,d,h){e(u,d,o(c,d,h))}),u}return zy=r,zy}var RB=IB();const $B=Ve(RB);var Wy,HO;function DB(){if(HO)return Wy;HO=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return Wy=e,Wy}var Hy,KO;function LB(){if(KO)return Hy;KO=1;var e=Jx();function t(n,r){var a=!0;return e(n,function(o,u,c){return a=!!r(o,u,c),a}),a}return Hy=t,Hy}var Ky,VO;function UB(){if(VO)return Ky;VO=1;var e=DB(),t=LB(),n=xi(),r=an(),a=Rf();function o(u,c,d){var h=r(u)?e:t;return d&&a(u,c,d)&&(c=void 0),h(u,n(c,3))}return Ky=o,Ky}var qB=UB();const RA=Ve(qB);var FB=["x","y"];function ml(e){"@babel/helpers - typeof";return ml=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},ml(e)}function ox(){return ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ox.apply(this,arguments)}function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(n),!0).forEach(function(r){BB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BB(e,t,n){return t=zB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zB(e){var t=WB(e,"string");return ml(t)=="symbol"?t:t+""}function WB(e,t){if(ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HB(e,t){if(e==null)return{};var n=KB(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KB(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function VB(e,t){var n=e.x,r=e.y,a=HB(e,FB),o="".concat(n),u=parseInt(o,10),c="".concat(r),d=parseInt(c,10),h="".concat(t.height||a.height),v=parseInt(h,10),m="".concat(t.width||a.width),y=parseInt(m,10);return Os(Os(Os(Os(Os({},t),a),u?{x:u}:{}),d?{y:d}:{}),{},{height:v,width:y,name:t.name,radius:t.radius})}function XO(e){return E.createElement(aB,ox({shapeType:"rectangle",propTransformer:VB,activeClassName:"recharts-active-bar"},e))}var GB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var o=de(r)||eR(r);return o?t(r,a):(o||Yi(),n)}},XB=["value","background"],$A;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 YB(e,t){if(e==null)return{};var n=QB(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QB(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lf.apply(this,arguments)}function YO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LA(r.key),r)}}function JB(e,t,n){return t&&QO(e.prototype,t),n&&QO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ez(e,t,n){return t=uf(t),tz(e,DA()?Reflect.construct(t,n||[],uf(e).constructor):t.apply(e,n))}function tz(e,t){if(t&&(ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nz(e)}function nz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DA=function(){return!!e})()}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function rz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sx(e,t)}function sx(e,t){return sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},sx(e,t)}function oi(e,t,n){return t=LA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LA(e){var t=iz(e,"string");return ao(t)=="symbol"?t:t+""}function iz(e,t){if(ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vn=(function(e){function t(){var n;ZB(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=ez(this,t,[].concat(a)),oi(n,"state",{isAnimationFinished:!1}),oi(n,"id",Tl("recharts-bar-")),oi(n,"handleAnimationEnd",function(){var u=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),u&&u()}),oi(n,"handleAnimationStart",function(){var u=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),u&&u()}),n}return rz(t,e),JB(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,o=this.props,u=o.shape,c=o.dataKey,d=o.activeIndex,h=o.activeBar,v=De(this.props,!1);return r&&r.map(function(m,y){var x=y===d,S=x?h:u,j=mt(mt(mt({},v),m),{},{isActive:x,option:S,index:y,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return E.createElement(ht,lf({className:"recharts-bar-rectangle"},jc(a.props,m,y),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(y)}),E.createElement(XO,j))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,o=a.data,u=a.layout,c=a.isAnimationActive,d=a.animationBegin,h=a.animationDuration,v=a.animationEasing,m=a.animationId,y=this.state.prevData;return E.createElement(Ar,{begin:d,duration:h,isActive:c,easing:v,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var S=x.t,j=o.map(function(b,k){var _=y&&y[k];if(_){var T=Bn(_.x,b.x),A=Bn(_.y,b.y),C=Bn(_.width,b.width),O=Bn(_.height,b.height);return mt(mt({},b),{},{x:T(S),y:A(S),width:C(S),height:O(S)})}if(u==="horizontal"){var N=Bn(0,b.height),M=N(S);return mt(mt({},b),{},{y:b.y+b.height-M,height:M})}var R=Bn(0,b.width),K=R(S);return mt(mt({},b),{},{width:K})});return E.createElement(ht,null,r.renderRectanglesStatically(j))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,o=r.isAnimationActive,u=this.state.prevData;return o&&a&&a.length&&(!u||!Hf(u,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,o=a.data,u=a.dataKey,c=a.activeIndex,d=De(this.props.background,!1);return o.map(function(h,v){h.value;var m=h.background,y=YB(h,XB);if(!m)return null;var x=mt(mt(mt(mt(mt({},y),{},{fill:"#eee"},m),d),jc(r.props,h,v)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:u,index:v,className:"recharts-bar-background-rectangle"});return E.createElement(XO,lf({key:"background-bar-".concat(v),option:r.props.background,isActive:v===c},x))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,u=o.data,c=o.xAxis,d=o.yAxis,h=o.layout,v=o.children,m=On(v,Il);if(!m)return null;var y=h==="vertical"?u[0].height/2:u[0].width/2,x=function(b,k){var _=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:_,errorVal:pn(b,k)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return E.createElement(ht,S,m.map(function(j){return E.cloneElement(j,{key:"error-bar-".concat(a,"-").concat(j.props.dataKey),data:u,xAxis:c,yAxis:d,layout:h,offset:y,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,o=r.data,u=r.className,c=r.xAxis,d=r.yAxis,h=r.left,v=r.top,m=r.width,y=r.height,x=r.isAnimationActive,S=r.background,j=r.id;if(a||!o||!o.length)return null;var b=this.state.isAnimationFinished,k=qe("recharts-bar",u),_=c&&c.allowDataOverflow,T=d&&d.allowDataOverflow,A=_||T,C=$e(j)?this.id:j;return E.createElement(ht,{className:k},_||T?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(C)},E.createElement("rect",{x:_?h:h-m/2,y:T?v:v-y/2,width:_?m:m*2,height:T?y:y*2}))):null,E.createElement(ht,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(C,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,C),(!x||b)&&ui.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])})(ue.PureComponent);$A=Vn;oi(Vn,"displayName","Bar");oi(Vn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ko.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});oi(Vn,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,o=e.xAxis,u=e.yAxis,c=e.xAxisTicks,d=e.yAxisTicks,h=e.stackedData,v=e.dataStartIndex,m=e.displayedData,y=e.offset,x=xq(r,n);if(!x)return null;var S=t.layout,j=n.type.defaultProps,b=j!==void 0?mt(mt({},j),n.props):n.props,k=b.dataKey,_=b.children,T=b.minPointSize,A=S==="horizontal"?u:o,C=h?A.scale.domain():null,O=Oq({numericAxis:A}),N=On(_,$f),M=m.map(function(R,K){var L,U,V,Y,G,J;h?L=bq(h[v+K],C):(L=pn(R,k),Array.isArray(L)||(L=[O,L]));var ne=GB(T,$A.defaultProps.minPointSize)(L[1],K);if(S==="horizontal"){var z,Q=[u.scale(L[0]),u.scale(L[1])],Z=Q[0],$=Q[1];U=D_({axis:o,ticks:c,bandSize:a,offset:x.offset,entry:R,index:K}),V=(z=$??Z)!==null&&z!==void 0?z:void 0,Y=x.size;var F=Z-$;if(G=Number.isNaN(F)?0:F,J={x:U,y:u.y,width:Y,height:u.height},Math.abs(ne)>0&&Math.abs(G)<Math.abs(ne)){var ce=Wn(G||ne)*(Math.abs(ne)-Math.abs(G));V-=ce,G+=ce}}else{var ve=[o.scale(L[0]),o.scale(L[1])],he=ve[0],Se=ve[1];if(U=he,V=D_({axis:u,ticks:d,bandSize:a,offset:x.offset,entry:R,index:K}),Y=Se-he,G=x.size,J={x:o.x,y:V,width:o.width,height:G},Math.abs(ne)>0&&Math.abs(Y)<Math.abs(ne)){var Ae=Wn(Y||ne)*(Math.abs(ne)-Math.abs(Y));Y+=Ae}}return mt(mt(mt({},R),{},{x:U,y:V,width:Y,height:G,value:h?L:L[1],payload:R,background:J},N&&N[K]&&N[K].props),{},{tooltipPayload:[bA(n,R)],tooltipPosition:{x:U+Y/2,y:V+G/2}})});return mt({data:M,layout:S},y)});function vl(e){"@babel/helpers - typeof";return vl=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},vl(e)}function az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UA(r.key),r)}}function oz(e,t,n){return t&&ZO(e.prototype,t),n&&ZO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){Yf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yf(e,t,n){return t=UA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UA(e){var t=sz(e,"string");return vl(t)=="symbol"?t:t+""}function sz(e,t){if(vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qA=function(t,n,r,a,o){var u=t.width,c=t.height,d=t.layout,h=t.children,v=Object.keys(n),m={left:r.left,leftMirror:r.left,right:u-r.right,rightMirror:u-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},y=!!dn(h,Vn);return v.reduce(function(x,S){var j=n[S],b=j.orientation,k=j.domain,_=j.padding,T=_===void 0?{}:_,A=j.mirror,C=j.reversed,O="".concat(b).concat(A?"Mirror":""),N,M,R,K,L;if(j.type==="number"&&(j.padding==="gap"||j.padding==="no-gap")){var U=k[1]-k[0],V=1/0,Y=j.categoricalDomain.sort(rR);if(Y.forEach(function(ve,he){he>0&&(V=Math.min((ve||0)-(Y[he-1]||0),V))}),Number.isFinite(V)){var G=V/U,J=j.layout==="vertical"?r.height:r.width;if(j.padding==="gap"&&(N=G*J/2),j.padding==="no-gap"){var ne=Gi(t.barCategoryGap,G*J),z=G*J/2;N=z-ne-(z-ne)/J*ne}}}a==="xAxis"?M=[r.left+(T.left||0)+(N||0),r.left+r.width-(T.right||0)-(N||0)]:a==="yAxis"?M=d==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(N||0),r.top+r.height-(T.bottom||0)-(N||0)]:M=j.range,C&&(M=[M[1],M[0]]);var Q=yq(j,o,y),Z=Q.scale,$=Q.realScaleType;Z.domain(k).range(M),gq(Z);var F=_q(Z,qn(qn({},j),{},{realScaleType:$}));a==="xAxis"?(L=b==="top"&&!A||b==="bottom"&&A,R=r.left,K=m[O]-L*j.height):a==="yAxis"&&(L=b==="left"&&!A||b==="right"&&A,R=m[O]-L*j.width,K=r.top);var ce=qn(qn(qn({},j),F),{},{realScaleType:$,x:R,y:K,scale:Z,width:a==="xAxis"?r.width:j.width,height:a==="yAxis"?r.height:j.height});return ce.bandSize=Gc(ce,F),!j.hide&&a==="xAxis"?m[O]+=(L?-1:1)*ce.height:j.hide||(m[O]+=(L?-1:1)*ce.width),qn(qn({},x),{},Yf({},S,ce))},{})},FA=function(t,n){var r=t.x,a=t.y,o=n.x,u=n.y;return{x:Math.min(r,o),y:Math.min(a,u),width:Math.abs(o-r),height:Math.abs(u-a)}},lz=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return FA({x:n,y:r},{x:a,y:o})},BA=(function(){function e(t){az(this,e),this.scale=t}return oz(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+d}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],o=r[r.length-1];return a<=o?n>=a&&n<=o:n>=o&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();Yf(BA,"EPS",1e-4);var P0=function(t){var n=Object.keys(t).reduce(function(r,a){return qn(qn({},r),{},Yf({},a,BA.create(t[a])))},{});return qn(qn({},n),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.bandAware,c=o.position;return $B(a,function(d,h){return n[h].apply(d,{bandAware:u,position:c})})},isInRange:function(a){return RA(a,function(o,u){return n[u].isInRange(o)})}})};function uz(e){return(e%180+180)%180}var cz=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=uz(a),u=o*Math.PI/180,c=Math.atan(r/n),d=u>c&&u<Math.PI-c?r/Math.sin(u):n/Math.cos(u);return Math.abs(d)},Vy,eT;function fz(){if(eT)return Vy;eT=1;var e=xi(),t=Pl(),n=Mf();function r(a){return function(o,u,c){var d=Object(o);if(!t(o)){var h=e(u,3);o=n(o),u=function(m){return h(d[m],m,d)}}var v=a(o,u,c);return v>-1?d[h?o[v]:v]:void 0}}return Vy=r,Vy}var Gy,tT;function dz(){if(tT)return Gy;tT=1;var e=AA();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return Gy=t,Gy}var Xy,nT;function hz(){if(nT)return Xy;nT=1;var e=nN(),t=xi(),n=dz(),r=Math.max;function a(o,u,c){var d=o==null?0:o.length;if(!d)return-1;var h=c==null?0:n(c);return h<0&&(h=r(d+h,0)),e(o,t(u,3),h)}return Xy=a,Xy}var Yy,rT;function pz(){if(rT)return Yy;rT=1;var e=fz(),t=hz(),n=e(t);return Yy=n,Yy}var mz=pz();const vz=Ve(mz);var yz=gP();const gz=Ve(yz);var xz=gz(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("")}),N0=ue.createContext(void 0),A0=ue.createContext(void 0),zA=ue.createContext(void 0),WA=ue.createContext({}),HA=ue.createContext(void 0),KA=ue.createContext(0),VA=ue.createContext(0),iT=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,o=n.offset,u=t.clipPathId,c=t.children,d=t.width,h=t.height,v=xz(o);return E.createElement(N0.Provider,{value:r},E.createElement(A0.Provider,{value:a},E.createElement(WA.Provider,{value:o},E.createElement(zA.Provider,{value:v},E.createElement(HA.Provider,{value:u},E.createElement(KA.Provider,{value:h},E.createElement(VA.Provider,{value:d},c)))))))},bz=function(){return ue.useContext(HA)},GA=function(t){var n=ue.useContext(N0);n==null&&Yi();var r=n[t];return r==null&&Yi(),r},wz=function(){var t=ue.useContext(N0);return ai(t)},jz=function(){var t=ue.useContext(A0),n=vz(t,function(r){return RA(r.domain,Number.isFinite)});return n||ai(t)},XA=function(t){var n=ue.useContext(A0);n==null&&Yi();var r=n[t];return r==null&&Yi(),r},Sz=function(){var t=ue.useContext(zA);return t},kz=function(){return ue.useContext(WA)},E0=function(){return ue.useContext(VA)},M0=function(){return ue.useContext(KA)};function oo(e){"@babel/helpers - typeof";return oo=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},oo(e)}function Cz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QA(r.key),r)}}function Oz(e,t,n){return t&&_z(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tz(e,t,n){return t=cf(t),Pz(e,YA()?Reflect.construct(t,n||[],cf(e).constructor):t.apply(e,n))}function Pz(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nz(e)}function Nz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YA=function(){return!!e})()}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function Az(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lx(e,t)}function lx(e,t){return lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lx(e,t)}function aT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aT(Object(n),!0).forEach(function(r){I0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I0(e,t,n){return t=QA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QA(e){var t=Ez(e,"string");return oo(t)=="symbol"?t:t+""}function Ez(e,t){if(oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mz(e,t){return Dz(e)||$z(e,t)||Rz(e,t)||Iz()}function Iz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
299
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rz(e,t){if(e){if(typeof e=="string")return sT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sT(e,t)}}function sT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $z(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function Dz(e){if(Array.isArray(e))return e}function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ux.apply(this,arguments)}var Lz=function(t,n){var r;return E.isValidElement(t)?r=E.cloneElement(t,n):Me(t)?r=t(n):r=E.createElement("line",ux({},n,{className:"recharts-reference-line-line"})),r},Uz=function(t,n,r,a,o,u,c,d,h){var v=o.x,m=o.y,y=o.width,x=o.height;if(r){var S=h.y,j=t.y.apply(S,{position:u});if(sr(h,"discard")&&!t.y.isInRange(j))return null;var b=[{x:v+y,y:j},{x:v,y:j}];return d==="left"?b.reverse():b}if(n){var k=h.x,_=t.x.apply(k,{position:u});if(sr(h,"discard")&&!t.x.isInRange(_))return null;var T=[{x:_,y:m+x},{x:_,y:m}];return c==="top"?T.reverse():T}if(a){var A=h.segment,C=A.map(function(O){return t.apply(O,{position:u})});return sr(h,"discard")&&EB(C,function(O){return!t.isInRange(O)})?null:C}return null};function qz(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,o=e.yAxisId,u=e.shape,c=e.className,d=e.alwaysShow,h=bz(),v=GA(a),m=XA(o),y=Sz();if(!h||!y)return null;kr(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=P0({x:v.scale,y:m.scale}),S=jt(t),j=jt(n),b=r&&r.length===2,k=Uz(x,S,j,b,y,e.position,v.orientation,m.orientation,e);if(!k)return null;var _=Mz(k,2),T=_[0],A=T.x,C=T.y,O=_[1],N=O.x,M=O.y,R=sr(e,"hidden")?"url(#".concat(h,")"):void 0,K=oT(oT({clipPath:R},De(e,!0)),{},{x1:A,y1:C,x2:N,y2:M});return E.createElement(ht,{className:qe("recharts-reference-line",c)},Lz(u,K),Bt.renderCallByParent(e,lz({x1:A,y1:C,x2:N,y2:M})))}var R0=(function(e){function t(){return Cz(this,t),Tz(this,t,arguments)}return Az(t,e),Oz(t,[{key:"render",value:function(){return E.createElement(qz,this.props)}}])})(E.Component);I0(R0,"displayName","ReferenceLine");I0(R0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cx.apply(this,arguments)}function so(e){"@babel/helpers - typeof";return so=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},so(e)}function lT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lT(Object(n),!0).forEach(function(r){Qf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JA(r.key),r)}}function zz(e,t,n){return t&&Bz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wz(e,t,n){return t=ff(t),Hz(e,ZA()?Reflect.construct(t,n||[],ff(e).constructor):t.apply(e,n))}function Hz(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kz(e)}function Kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZA=function(){return!!e})()}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function Vz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fx(e,t)}function fx(e,t){return fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fx(e,t)}function Qf(e,t,n){return t=JA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(e){var t=Gz(e,"string");return so(t)=="symbol"?t:t+""}function Gz(e,t){if(so(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(so(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xz=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,u=P0({x:a.scale,y:o.scale}),c=u.apply({x:n,y:r},{bandAware:!0});return sr(t,"discard")&&!u.isInRange(c)?null:c},Zf=(function(e){function t(){return Fz(this,t),Wz(this,t,arguments)}return Vz(t,e),zz(t,[{key:"render",value:function(){var r=this.props,a=r.x,o=r.y,u=r.r,c=r.alwaysShow,d=r.clipPathId,h=jt(a),v=jt(o);if(kr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!h||!v)return null;var m=Xz(this.props);if(!m)return null;var y=m.x,x=m.y,S=this.props,j=S.shape,b=S.className,k=sr(this.props,"hidden")?"url(#".concat(d,")"):void 0,_=uT(uT({clipPath:k},De(this.props,!0)),{},{cx:y,cy:x});return E.createElement(ht,{className:qe("recharts-reference-dot",b)},t.renderDot(j,_),Bt.renderCallByParent(this.props,{x:y-u,y:x-u,width:2*u,height:2*u}))}}])})(E.Component);Qf(Zf,"displayName","ReferenceDot");Qf(Zf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Qf(Zf,"renderDot",function(e,t){var n;return E.isValidElement(e)?n=E.cloneElement(e,t):Me(e)?n=e(t):n=E.createElement(T0,cx({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(this,arguments)}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 cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cT(Object(n),!0).forEach(function(r){Jf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,t2(r.key),r)}}function Zz(e,t,n){return t&&Qz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jz(e,t,n){return t=df(t),e9(e,e2()?Reflect.construct(t,n||[],df(e).constructor):t.apply(e,n))}function e9(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t9(e)}function t9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e2=function(){return!!e})()}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function n9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hx(e,t)}function hx(e,t){return hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hx(e,t)}function Jf(e,t,n){return t=t2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2(e){var t=r9(e,"string");return lo(t)=="symbol"?t:t+""}function r9(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var i9=function(t,n,r,a,o){var u=o.x1,c=o.x2,d=o.y1,h=o.y2,v=o.xAxis,m=o.yAxis;if(!v||!m)return null;var y=P0({x:v.scale,y:m.scale}),x={x:t?y.x.apply(u,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(d,{position:"start"}):y.y.rangeMin},S={x:n?y.x.apply(c,{position:"end"}):y.x.rangeMax,y:a?y.y.apply(h,{position:"end"}):y.y.rangeMax};return sr(o,"discard")&&(!y.isInRange(x)||!y.isInRange(S))?null:FA(x,S)},ed=(function(e){function t(){return Yz(this,t),Jz(this,t,arguments)}return n9(t,e),Zz(t,[{key:"render",value:function(){var r=this.props,a=r.x1,o=r.x2,u=r.y1,c=r.y2,d=r.className,h=r.alwaysShow,v=r.clipPathId;kr(h===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=jt(a),y=jt(o),x=jt(u),S=jt(c),j=this.props.shape;if(!m&&!y&&!x&&!S&&!j)return null;var b=i9(m,y,x,S,this.props);if(!b&&!j)return null;var k=sr(this.props,"hidden")?"url(#".concat(v,")"):void 0;return E.createElement(ht,{className:qe("recharts-reference-area",d)},t.renderRect(j,fT(fT({clipPath:k},De(this.props,!0)),b)),Bt.renderCallByParent(this.props,b))}}])})(E.Component);Jf(ed,"displayName","ReferenceArea");Jf(ed,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jf(ed,"renderRect",function(e,t){var n;return E.isValidElement(e)?n=E.cloneElement(e,t):Me(e)?n=e(t):n=E.createElement(O0,dx({},t,{className:"recharts-reference-area-rect"})),n});function n2(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function a9(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return cz(r,n)}function o9(e,t,n){var r=n==="width",a=e.x,o=e.y,u=e.width,c=e.height;return t===1?{start:r?a:o,end:r?a+u:o+c}:{start:r?a+u:o+c,end:r?a:o}}function hf(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function s9(e,t){return n2(e,t+1)}function l9(e,t,n,r,a){for(var o=(r||[]).slice(),u=t.start,c=t.end,d=0,h=1,v=u,m=function(){var S=r==null?void 0:r[d];if(S===void 0)return{v:n2(r,h)};var j=d,b,k=function(){return b===void 0&&(b=n(S,j)),b},_=S.coordinate,T=d===0||hf(e,_,k,v,c);T||(d=0,v=u,h+=1),T&&(v=_+e*(k()/2+a),d+=h)},y;h<=o.length;)if(y=m(),y)return y.v;return[]}function yl(e){"@babel/helpers - typeof";return yl=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},yl(e)}function dT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dT(Object(n),!0).forEach(function(r){u9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u9(e,t,n){return t=c9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c9(e){var t=f9(e,"string");return yl(t)=="symbol"?t:t+""}function f9(e,t){if(yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d9(e,t,n,r,a){for(var o=(r||[]).slice(),u=o.length,c=t.start,d=t.end,h=function(y){var x=o[y],S,j=function(){return S===void 0&&(S=n(x,y)),S};if(y===u-1){var b=e*(x.coordinate+e*j()/2-d);o[y]=x=qt(qt({},x),{},{tickCoord:b>0?x.coordinate-b*e:x.coordinate})}else o[y]=x=qt(qt({},x),{},{tickCoord:x.coordinate});var k=hf(e,x.tickCoord,j,c,d);k&&(d=x.tickCoord-e*(j()/2+a),o[y]=qt(qt({},x),{},{isShow:!0}))},v=u-1;v>=0;v--)h(v);return o}function h9(e,t,n,r,a,o){var u=(r||[]).slice(),c=u.length,d=t.start,h=t.end;if(o){var v=r[c-1],m=n(v,c-1),y=e*(v.coordinate+e*m/2-h);u[c-1]=v=qt(qt({},v),{},{tickCoord:y>0?v.coordinate-y*e:v.coordinate});var x=hf(e,v.tickCoord,function(){return m},d,h);x&&(h=v.tickCoord-e*(m/2+a),u[c-1]=qt(qt({},v),{},{isShow:!0}))}for(var S=o?c-1:c,j=function(_){var T=u[_],A,C=function(){return A===void 0&&(A=n(T,_)),A};if(_===0){var O=e*(T.coordinate-e*C()/2-d);u[_]=T=qt(qt({},T),{},{tickCoord:O<0?T.coordinate-O*e:T.coordinate})}else u[_]=T=qt(qt({},T),{},{tickCoord:T.coordinate});var N=hf(e,T.tickCoord,C,d,h);N&&(d=T.tickCoord+e*(C()/2+a),u[_]=qt(qt({},T),{},{isShow:!0}))},b=0;b<S;b++)j(b);return u}function $0(e,t,n){var r=e.tick,a=e.ticks,o=e.viewBox,u=e.minTickGap,c=e.orientation,d=e.interval,h=e.tickFormatter,v=e.unit,m=e.angle;if(!a||!a.length||!r)return[];if(de(d)||ko.isSsr)return s9(a,typeof d=="number"&&de(d)?d:0);var y=[],x=c==="top"||c==="bottom"?"width":"height",S=v&&x==="width"?Es(v,{fontSize:t,letterSpacing:n}):{width:0,height:0},j=function(T,A){var C=Me(h)?h(T.value,A):T.value;return x==="width"?a9(Es(C,{fontSize:t,letterSpacing:n}),S,m):Es(C,{fontSize:t,letterSpacing:n})[x]},b=a.length>=2?Wn(a[1].coordinate-a[0].coordinate):1,k=o9(o,b,x);return d==="equidistantPreserveStart"?l9(b,k,j,a,u):(d==="preserveStart"||d==="preserveStartEnd"?y=h9(b,k,j,a,u,d==="preserveStartEnd"):y=d9(b,k,j,a,u),y.filter(function(_){return _.isShow}))}var p9=["viewBox"],m9=["viewBox"],v9=["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 $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$a.apply(this,arguments)}function hT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hT(Object(n),!0).forEach(function(r){D0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qy(e,t){if(e==null)return{};var n=y9(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function g9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i2(r.key),r)}}function x9(e,t,n){return t&&pT(e.prototype,t),n&&pT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b9(e,t,n){return t=pf(t),w9(e,r2()?Reflect.construct(t,n||[],pf(e).constructor):t.apply(e,n))}function w9(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j9(e)}function j9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r2=function(){return!!e})()}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function S9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&px(e,t)}function px(e,t){return px=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},px(e,t)}function D0(e,t,n){return t=i2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2(e){var t=k9(e,"string");return uo(t)=="symbol"?t:t+""}function k9(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var To=(function(e){function t(n){var r;return g9(this,t),r=b9(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return S9(t,e),x9(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,u=Qy(r,p9),c=this.props,d=c.viewBox,h=Qy(c,m9);return!Ua(o,d)||!Ua(u,h)||!Ua(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.x,u=a.y,c=a.width,d=a.height,h=a.orientation,v=a.tickSize,m=a.mirror,y=a.tickMargin,x,S,j,b,k,_,T=m?-1:1,A=r.tickSize||v,C=de(r.tickCoord)?r.tickCoord:r.coordinate;switch(h){case"top":x=S=r.coordinate,b=u+ +!m*d,j=b-T*A,_=j-T*y,k=C;break;case"left":j=b=r.coordinate,S=o+ +!m*c,x=S-T*A,k=x-T*y,_=C;break;case"right":j=b=r.coordinate,S=o+ +m*c,x=S+T*A,k=x+T*y,_=C;break;default:x=S=r.coordinate,b=u+ +m*d,j=b+T*A,_=j+T*y,k=C;break}return{line:{x1:x,y1:j,x2:S,y2:b},tick:{x:k,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,u;switch(a){case"left":u=o?"start":"end";break;case"right":u=o?"end":"start";break;default:u="middle";break}return u}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,u="end";switch(a){case"left":case"right":u="middle";break;case"top":u=o?"start":"end";break;default:u=o?"end":"start";break}return u}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,o=r.y,u=r.width,c=r.height,d=r.orientation,h=r.mirror,v=r.axisLine,m=bt(bt(bt({},De(this.props,!1)),De(v,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var y=+(d==="top"&&!h||d==="bottom"&&h);m=bt(bt({},m),{},{x1:a,y1:o+y*c,x2:a+u,y2:o+y*c})}else{var x=+(d==="left"&&!h||d==="right"&&h);m=bt(bt({},m),{},{x1:a+x*u,y1:o,x2:a+x*u,y2:o+c})}return E.createElement("line",$a({},m,{className:qe("recharts-cartesian-axis-line",_n(v,"className"))}))}},{key:"renderTicks",value:function(r,a,o){var u=this,c=this.props,d=c.tickLine,h=c.stroke,v=c.tick,m=c.tickFormatter,y=c.unit,x=$0(bt(bt({},this.props),{},{ticks:r}),a,o),S=this.getTickTextAnchor(),j=this.getTickVerticalAnchor(),b=De(this.props,!1),k=De(v,!1),_=bt(bt({},b),{},{fill:"none"},De(d,!1)),T=x.map(function(A,C){var O=u.getTickLineCoord(A),N=O.line,M=O.tick,R=bt(bt(bt(bt({textAnchor:S,verticalAnchor:j},b),{},{stroke:"none",fill:h},k),M),{},{index:C,payload:A,visibleTicksCount:x.length,tickFormatter:m});return E.createElement(ht,$a({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},jc(u.props,A,C)),d&&E.createElement("line",$a({},_,N,{className:qe("recharts-cartesian-axis-tick-line",_n(d,"className"))})),v&&t.renderTickItem(v,R,"".concat(Me(m)?m(A.value,C):A.value).concat(y||"")))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,a=this.props,o=a.axisLine,u=a.width,c=a.height,d=a.ticksGenerator,h=a.className,v=a.hide;if(v)return null;var m=this.props,y=m.ticks,x=Qy(m,v9),S=y;return Me(d)&&(S=y&&y.length>0?d(this.props):d(x)),u<=0||c<=0||!S||!S.length?null:E.createElement(ht,{className:qe("recharts-cartesian-axis",h),ref:function(b){r.layerReference=b}},o&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Bt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,o){var u,c=qe(a.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(r)?u=E.cloneElement(r,bt(bt({},a),{},{className:c})):Me(r)?u=r(bt(bt({},a),{},{className:c})):u=E.createElement(Mc,$a({},a,{className:"recharts-cartesian-axis-tick-value"}),o),u}}])})(ue.Component);D0(To,"displayName","CartesianAxis");D0(To,"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 C9=["x1","y1","x2","y2","key"],_9=["offset"];function Qi(e){"@babel/helpers - typeof";return Qi=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},Qi(e)}function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(n),!0).forEach(function(r){O9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O9(e,t,n){return t=T9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T9(e){var t=P9(e,"string");return Qi(t)=="symbol"?t:t+""}function P9(e,t){if(Qi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bi.apply(this,arguments)}function vT(e,t){if(e==null)return{};var n=N9(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function N9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var A9=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,o=t.y,u=t.width,c=t.height,d=t.ry;return E.createElement("rect",{x:a,y:o,ry:d,width:u,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function a2(e,t){var n;if(E.isValidElement(e))n=E.cloneElement(e,t);else if(Me(e))n=e(t);else{var r=t.x1,a=t.y1,o=t.x2,u=t.y2,c=t.key,d=vT(t,C9),h=De(d,!1);h.offset;var v=vT(h,_9);n=E.createElement("line",Bi({},v,{x1:r,y1:a,x2:o,y2:u,fill:"none",key:c}))}return n}function E9(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var u=o.map(function(c,d){var h=zt(zt({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(d),index:d});return a2(a,h)});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function M9(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,o=e.verticalPoints;if(!a||!o||!o.length)return null;var u=o.map(function(c,d){var h=zt(zt({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(d),index:d});return a2(a,h)});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function I9(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,o=e.width,u=e.height,c=e.horizontalPoints,d=e.horizontal,h=d===void 0?!0:d;if(!h||!t||!t.length)return null;var v=c.map(function(y){return Math.round(y+a-a)}).sort(function(y,x){return y-x});a!==v[0]&&v.unshift(0);var m=v.map(function(y,x){var S=!v[x+1],j=S?a+u-y:v[x+1]-y;if(j<=0)return null;var b=x%t.length;return E.createElement("rect",{key:"react-".concat(x),y,x:r,height:j,width:o,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function R9(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,o=e.x,u=e.y,c=e.width,d=e.height,h=e.verticalPoints;if(!n||!r||!r.length)return null;var v=h.map(function(y){return Math.round(y+o-o)}).sort(function(y,x){return y-x});o!==v[0]&&v.unshift(0);var m=v.map(function(y,x){var S=!v[x+1],j=S?o+c-y:v[x+1]-y;if(j<=0)return null;var b=x%r.length;return E.createElement("rect",{key:"react-".concat(x),x:y,y:u,width:j,height:d,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var $9=function(t,n){var r=t.xAxis,a=t.width,o=t.height,u=t.offset;return gA($0(zt(zt(zt({},To.defaultProps),r),{},{ticks:jr(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),u.left,u.left+u.width,n)},D9=function(t,n){var r=t.yAxis,a=t.width,o=t.height,u=t.offset;return gA($0(zt(zt(zt({},To.defaultProps),r),{},{ticks:jr(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),u.top,u.top+u.height,n)},Ea={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function di(e){var t,n,r,a,o,u,c=E0(),d=M0(),h=kz(),v=zt(zt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ea.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Ea.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Ea.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Ea.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ea.vertical,verticalFill:(u=e.verticalFill)!==null&&u!==void 0?u:Ea.verticalFill,x:de(e.x)?e.x:h.left,y:de(e.y)?e.y:h.top,width:de(e.width)?e.width:h.width,height:de(e.height)?e.height:h.height}),m=v.x,y=v.y,x=v.width,S=v.height,j=v.syncWithTicks,b=v.horizontalValues,k=v.verticalValues,_=wz(),T=jz();if(!de(x)||x<=0||!de(S)||S<=0||!de(m)||m!==+m||!de(y)||y!==+y)return null;var A=v.verticalCoordinatesGenerator||$9,C=v.horizontalCoordinatesGenerator||D9,O=v.horizontalPoints,N=v.verticalPoints;if((!O||!O.length)&&Me(C)){var M=b&&b.length,R=C({yAxis:T?zt(zt({},T),{},{ticks:M?b:T.ticks}):void 0,width:c,height:d,offset:h},M?!0:j);kr(Array.isArray(R),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Qi(R),"]")),Array.isArray(R)&&(O=R)}if((!N||!N.length)&&Me(A)){var K=k&&k.length,L=A({xAxis:_?zt(zt({},_),{},{ticks:K?k:_.ticks}):void 0,width:c,height:d,offset:h},K?!0:j);kr(Array.isArray(L),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Qi(L),"]")),Array.isArray(L)&&(N=L)}return E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(A9,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height,ry:v.ry}),E.createElement(E9,Bi({},v,{offset:h,horizontalPoints:O,xAxis:_,yAxis:T})),E.createElement(M9,Bi({},v,{offset:h,verticalPoints:N,xAxis:_,yAxis:T})),E.createElement(I9,Bi({},v,{horizontalPoints:O})),E.createElement(R9,Bi({},v,{verticalPoints:N})))}di.displayName="CartesianGrid";var L9=["type","layout","connectNulls","ref"],U9=["key"];function co(e){"@babel/helpers - typeof";return co=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},co(e)}function yT(e,t){if(e==null)return{};var n=q9(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(this,arguments)}function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gT(Object(n),!0).forEach(function(r){Fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ma(e){return W9(e)||z9(e)||B9(e)||F9()}function F9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
300
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B9(e,t){if(e){if(typeof e=="string")return mx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mx(e,t)}}function z9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W9(e){if(Array.isArray(e))return mx(e)}function mx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s2(r.key),r)}}function K9(e,t,n){return t&&xT(e.prototype,t),n&&xT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V9(e,t,n){return t=mf(t),G9(e,o2()?Reflect.construct(t,n||[],mf(e).constructor):t.apply(e,n))}function G9(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X9(e)}function X9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o2=function(){return!!e})()}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function Y9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vx(e,t)}function vx(e,t){return vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},vx(e,t)}function Fn(e,t,n){return t=s2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s2(e){var t=Q9(e,"string");return co(t)=="symbol"?t:t+""}function Q9(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Po=(function(e){function t(){var n;H9(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=V9(this,t,[].concat(a)),Fn(n,"state",{isAnimationFinished:!0,totalLength:0}),Fn(n,"generateSimpleStrokeDasharray",function(u,c){return"".concat(c,"px ").concat(u-c,"px")}),Fn(n,"getStrokeDasharray",function(u,c,d){var h=d.reduce(function(k,_){return k+_});if(!h)return n.generateSimpleStrokeDasharray(c,u);for(var v=Math.floor(u/h),m=u%h,y=c-u,x=[],S=0,j=0;S<d.length;j+=d[S],++S)if(j+d[S]>m){x=[].concat(Ma(d.slice(0,S)),[m-j]);break}var b=x.length%2===0?[0,y]:[y];return[].concat(Ma(t.repeat(d,v)),Ma(x),b).map(function(k){return"".concat(k,"px")}).join(", ")}),Fn(n,"id",Tl("recharts-line-")),Fn(n,"pathRef",function(u){n.mainCurve=u}),Fn(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Fn(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Y9(t,e),K9(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,u=o.points,c=o.xAxis,d=o.yAxis,h=o.layout,v=o.children,m=On(v,Il);if(!m)return null;var y=function(j,b){return{x:j.x,y:j.y,value:j.value,errorVal:pn(j.payload,b)}},x={clipPath:r?"url(#clipPath-".concat(a,")"):null};return E.createElement(ht,x,m.map(function(S){return E.cloneElement(S,{key:"bar-".concat(S.props.dataKey),data:u,xAxis:c,yAxis:d,layout:h,dataPointFormatter:y})}))}},{key:"renderDots",value:function(r,a,o){var u=this.props.isAnimationActive;if(u&&!this.state.isAnimationFinished)return null;var c=this.props,d=c.dot,h=c.points,v=c.dataKey,m=De(this.props,!1),y=De(d,!0),x=h.map(function(j,b){var k=cn(cn(cn({key:"dot-".concat(b),r:3},m),y),{},{index:b,cx:j.x,cy:j.y,value:j.value,dataKey:v,payload:j.payload,points:h});return t.renderDotItem(d,k)}),S={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return E.createElement(ht,$s({className:"recharts-line-dots",key:"dots"},S),x)}},{key:"renderCurveStatically",value:function(r,a,o,u){var c=this.props,d=c.type,h=c.layout,v=c.connectNulls;c.ref;var m=yT(c,L9),y=cn(cn(cn({},De(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(o,")"):null,points:r},u),{},{type:d,layout:h,connectNulls:v});return E.createElement(Vg,$s({},y,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var o=this,u=this.props,c=u.points,d=u.strokeDasharray,h=u.isAnimationActive,v=u.animationBegin,m=u.animationDuration,y=u.animationEasing,x=u.animationId,S=u.animateNewValues,j=u.width,b=u.height,k=this.state,_=k.prevPoints,T=k.totalLength;return E.createElement(Ar,{begin:v,duration:m,isActive:h,easing:y,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var C=A.t;if(_){var O=_.length/c.length,N=c.map(function(U,V){var Y=Math.floor(V*O);if(_[Y]){var G=_[Y],J=Bn(G.x,U.x),ne=Bn(G.y,U.y);return cn(cn({},U),{},{x:J(C),y:ne(C)})}if(S){var z=Bn(j*2,U.x),Q=Bn(b/2,U.y);return cn(cn({},U),{},{x:z(C),y:Q(C)})}return cn(cn({},U),{},{x:U.x,y:U.y})});return o.renderCurveStatically(N,r,a)}var M=Bn(0,T),R=M(C),K;if(d){var L="".concat(d).split(/[,\s]+/gim).map(function(U){return parseFloat(U)});K=o.getStrokeDasharray(R,T,L)}else K=o.generateSimpleStrokeDasharray(T,R);return o.renderCurveStatically(c,r,a,{strokeDasharray:K})})}},{key:"renderCurve",value:function(r,a){var o=this.props,u=o.points,c=o.isAnimationActive,d=this.state,h=d.prevPoints,v=d.totalLength;return c&&u&&u.length&&(!h&&v>0||!Hf(h,u))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(u,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,u=a.dot,c=a.points,d=a.className,h=a.xAxis,v=a.yAxis,m=a.top,y=a.left,x=a.width,S=a.height,j=a.isAnimationActive,b=a.id;if(o||!c||!c.length)return null;var k=this.state.isAnimationFinished,_=c.length===1,T=qe("recharts-line",d),A=h&&h.allowDataOverflow,C=v&&v.allowDataOverflow,O=A||C,N=$e(b)?this.id:b,M=(r=De(u,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},R=M.r,K=R===void 0?3:R,L=M.strokeWidth,U=L===void 0?2:L,V=dR(u)?u:{},Y=V.clipDot,G=Y===void 0?!0:Y,J=K*2+U;return E.createElement(ht,{className:T},A||C?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(N)},E.createElement("rect",{x:A?y:y-x/2,y:C?m:m-S/2,width:A?x:x*2,height:C?S:S*2})),!G&&E.createElement("clipPath",{id:"clipPath-dots-".concat(N)},E.createElement("rect",{x:y-J/2,y:m-J/2,width:x+J,height:S+J}))):null,!_&&this.renderCurve(O,N),this.renderErrorBar(O,N),(_||u)&&this.renderDots(O,G,N),(!j||k)&&ui.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var o=r.length%2!==0?[].concat(Ma(r),[0]):r,u=[],c=0;c<a;++c)u=[].concat(Ma(u),Ma(o));return u}},{key:"renderDotItem",value:function(r,a){var o;if(E.isValidElement(r))o=E.cloneElement(r,a);else if(Me(r))o=r(a);else{var u=a.key,c=yT(a,U9),d=qe("recharts-line-dot",typeof r!="boolean"?r.className:"");o=E.createElement(T0,$s({key:u},c,{className:d}))}return o}}])})(ue.PureComponent);Fn(Po,"displayName","Line");Fn(Po,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ko.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Fn(Po,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.dataKey,c=e.bandSize,d=e.displayedData,h=e.offset,v=t.layout,m=d.map(function(y,x){var S=pn(y,u);return v==="horizontal"?{x:$_({axis:n,ticks:a,bandSize:c,entry:y,index:x}),y:$e(S)?null:r.scale(S),value:S,payload:y}:{x:$e(S)?null:n.scale(S),y:$_({axis:r,ticks:o,bandSize:c,entry:y,index:x}),value:S,payload:y}});return cn({points:m,layout:v},h)});function fo(e){"@babel/helpers - typeof";return fo=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},fo(e)}function Z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c2(r.key),r)}}function e7(e,t,n){return t&&J9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function t7(e,t,n){return t=vf(t),n7(e,l2()?Reflect.construct(t,n||[],vf(e).constructor):t.apply(e,n))}function n7(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r7(e)}function r7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l2=function(){return!!e})()}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function i7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yx(e,t)}function yx(e,t){return yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yx(e,t)}function u2(e,t,n){return t=c2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c2(e){var t=a7(e,"string");return fo(t)=="symbol"?t:t+""}function a7(e,t){if(fo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(this,arguments)}function o7(e){var t=e.xAxisId,n=E0(),r=M0(),a=GA(t);return a==null?null:ue.createElement(To,gx({},a,{className:qe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(u){return jr(u,!0)}}))}var Gn=(function(e){function t(){return Z9(this,t),t7(this,t,arguments)}return i7(t,e),e7(t,[{key:"render",value:function(){return ue.createElement(o7,this.props)}}])})(ue.Component);u2(Gn,"displayName","XAxis");u2(Gn,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ho(e){"@babel/helpers - typeof";return ho=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},ho(e)}function s7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h2(r.key),r)}}function u7(e,t,n){return t&&l7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c7(e,t,n){return t=yf(t),f7(e,f2()?Reflect.construct(t,n||[],yf(e).constructor):t.apply(e,n))}function f7(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d7(e)}function d7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f2=function(){return!!e})()}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function h7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xx(e,t)}function xx(e,t){return xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},xx(e,t)}function d2(e,t,n){return t=h2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h2(e){var t=p7(e,"string");return ho(t)=="symbol"?t:t+""}function p7(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(this,arguments)}var m7=function(t){var n=t.yAxisId,r=E0(),a=M0(),o=XA(n);return o==null?null:ue.createElement(To,bx({},o,{className:qe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return jr(c,!0)}}))},Xn=(function(e){function t(){return s7(this,t),c7(this,t,arguments)}return h7(t,e),u7(t,[{key:"render",value:function(){return ue.createElement(m7,this.props)}}])})(ue.Component);d2(Xn,"displayName","YAxis");d2(Xn,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function bT(e){return x7(e)||g7(e)||y7(e)||v7()}function v7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
301
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y7(e,t){if(e){if(typeof e=="string")return wx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wx(e,t)}}function g7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x7(e){if(Array.isArray(e))return wx(e)}function wx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jx=function(t,n,r,a,o){var u=On(t,R0),c=On(t,Zf),d=[].concat(bT(u),bT(c)),h=On(t,ed),v="".concat(a,"Id"),m=a[0],y=n;if(d.length&&(y=d.reduce(function(j,b){if(b.props[v]===r&&sr(b.props,"extendDomain")&&de(b.props[m])){var k=b.props[m];return[Math.min(j[0],k),Math.max(j[1],k)]}return j},y)),h.length){var x="".concat(m,"1"),S="".concat(m,"2");y=h.reduce(function(j,b){if(b.props[v]===r&&sr(b.props,"extendDomain")&&de(b.props[x])&&de(b.props[S])){var k=b.props[x],_=b.props[S];return[Math.min(j[0],k,_),Math.max(j[1],k,_)]}return j},y)}return o&&o.length&&(y=o.reduce(function(j,b){return de(b)?[Math.min(j[0],b),Math.max(j[1],b)]:j},y)),y},Zy={exports:{}},wT;function b7(){return wT||(wT=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(d,h,v){this.fn=d,this.context=h,this.once=v||!1}function o(d,h,v,m,y){if(typeof v!="function")throw new TypeError("The listener must be a function");var x=new a(v,m||d,y),S=n?n+h:h;return d._events[S]?d._events[S].fn?d._events[S]=[d._events[S],x]:d._events[S].push(x):(d._events[S]=x,d._eventsCount++),d}function u(d,h){--d._eventsCount===0?d._events=new r:delete d._events[h]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var h=[],v,m;if(this._eventsCount===0)return h;for(m in v=this._events)t.call(v,m)&&h.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(v)):h},c.prototype.listeners=function(h){var v=n?n+h:h,m=this._events[v];if(!m)return[];if(m.fn)return[m.fn];for(var y=0,x=m.length,S=new Array(x);y<x;y++)S[y]=m[y].fn;return S},c.prototype.listenerCount=function(h){var v=n?n+h:h,m=this._events[v];return m?m.fn?1:m.length:0},c.prototype.emit=function(h,v,m,y,x,S){var j=n?n+h:h;if(!this._events[j])return!1;var b=this._events[j],k=arguments.length,_,T;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),k){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,v),!0;case 3:return b.fn.call(b.context,v,m),!0;case 4:return b.fn.call(b.context,v,m,y),!0;case 5:return b.fn.call(b.context,v,m,y,x),!0;case 6:return b.fn.call(b.context,v,m,y,x,S),!0}for(T=1,_=new Array(k-1);T<k;T++)_[T-1]=arguments[T];b.fn.apply(b.context,_)}else{var A=b.length,C;for(T=0;T<A;T++)switch(b[T].once&&this.removeListener(h,b[T].fn,void 0,!0),k){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,v);break;case 3:b[T].fn.call(b[T].context,v,m);break;case 4:b[T].fn.call(b[T].context,v,m,y);break;default:if(!_)for(C=1,_=new Array(k-1);C<k;C++)_[C-1]=arguments[C];b[T].fn.apply(b[T].context,_)}}return!0},c.prototype.on=function(h,v,m){return o(this,h,v,m,!1)},c.prototype.once=function(h,v,m){return o(this,h,v,m,!0)},c.prototype.removeListener=function(h,v,m,y){var x=n?n+h:h;if(!this._events[x])return this;if(!v)return u(this,x),this;var S=this._events[x];if(S.fn)S.fn===v&&(!y||S.once)&&(!m||S.context===m)&&u(this,x);else{for(var j=0,b=[],k=S.length;j<k;j++)(S[j].fn!==v||y&&!S[j].once||m&&S[j].context!==m)&&b.push(S[j]);b.length?this._events[x]=b.length===1?b[0]:b:u(this,x)}return this},c.prototype.removeAllListeners=function(h){var v;return h?(v=n?n+h:h,this._events[v]&&u(this,v)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Zy)),Zy.exports}var w7=b7();const j7=Ve(w7);var Jy=new j7,eg="recharts.syncMouseEvents";function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function S7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p2(r.key),r)}}function C7(e,t,n){return t&&k7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tg(e,t,n){return t=p2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p2(e){var t=_7(e,"string");return gl(t)=="symbol"?t:t+""}function _7(e,t){if(gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var O7=(function(){function e(){S7(this,e),tg(this,"activeIndex",0),tg(this,"coordinateList",[]),tg(this,"layout","horizontal")}return C7(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,o=a===void 0?null:a,u=n.container,c=u===void 0?null:u,d=n.layout,h=d===void 0?null:d,v=n.offset,m=v===void 0?null:v,y=n.mouseHandlerCallback,x=y===void 0?null:y;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=h??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),o=a.x,u=a.y,c=a.height,d=this.coordinateList[this.activeIndex].coordinate,h=((n=window)===null||n===void 0?void 0:n.scrollX)||0,v=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=o+d+h,y=u+this.offset.top+c/2+v;this.mouseHandlerCallback({pageX:m,pageY:y})}}}])})();function T7(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&de(r)&&de(a))return!0}return!1}function P7(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function m2(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,o=e.endAngle,u=Rt(t,n,r,a),c=Rt(t,n,r,o);return{points:[u,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}function N7(e,t,n){var r,a,o,u;if(e==="horizontal")r=t.x,o=r,a=n.top,u=n.top+n.height;else if(e==="vertical")a=t.y,u=a,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,d=t.cy,h=t.innerRadius,v=t.outerRadius,m=t.angle,y=Rt(c,d,h,m),x=Rt(c,d,v,m);r=y.x,a=y.y,o=x.x,u=x.y}else return m2(t);return[{x:r,y:a},{x:o,y:u}]}function xl(e){"@babel/helpers - typeof";return xl=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},xl(e)}function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){A7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A7(e,t,n){return t=E7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E7(e){var t=M7(e,"string");return xl(t)=="symbol"?t:t+""}function M7(e,t){if(xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I7(e){var t,n,r=e.element,a=e.tooltipEventType,o=e.isActive,u=e.activeCoordinate,c=e.activePayload,d=e.offset,h=e.activeTooltipIndex,v=e.tooltipAxisBandSize,m=e.layout,y=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!o||!u||y!=="ScatterChart"&&a!=="axis")return null;var S,j=Vg;if(y==="ScatterChart")S=u,j=EF;else if(y==="BarChart")S=P7(m,u,d,v),j=O0;else if(m==="radial"){var b=m2(u),k=b.cx,_=b.cy,T=b.radius,A=b.startAngle,C=b.endAngle;S={cx:k,cy:_,startAngle:A,endAngle:C,innerRadius:T,outerRadius:T},j=SA}else S={points:N7(m,u,d)},j=Vg;var O=lc(lc(lc(lc({stroke:"#ccc",pointerEvents:"none"},d),S),De(x,!1)),{},{payload:c,payloadIndex:h,className:qe("recharts-tooltip-cursor",x.className)});return ue.isValidElement(x)?ue.cloneElement(x,O):ue.createElement(j,O)}var R7=["item"],$7=["children","className","width","height","style","compact","title","desc"];function po(e){"@babel/helpers - typeof";return po=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},po(e)}function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(this,arguments)}function ST(e,t){return U7(e)||L7(e,t)||y2(e,t)||D7()}function D7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
302
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,c=[],d=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(v){h=!0,a=v}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function U7(e){if(Array.isArray(e))return e}function kT(e,t){if(e==null)return{};var n=q7(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g2(r.key),r)}}function z7(e,t,n){return t&&B7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W7(e,t,n){return t=gf(t),H7(e,v2()?Reflect.construct(t,n||[],gf(e).constructor):t.apply(e,n))}function H7(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K7(e)}function K7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v2=function(){return!!e})()}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function V7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sx(e,t)}function Sx(e,t){return Sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sx(e,t)}function mo(e){return Y7(e)||X7(e)||y2(e)||G7()}function G7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
303
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y2(e,t){if(e){if(typeof e=="string")return kx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kx(e,t)}}function X7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y7(e){if(Array.isArray(e))return kx(e)}function kx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CT(Object(n),!0).forEach(function(r){_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _e(e,t,n){return t=g2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g2(e){var t=Q7(e,"string");return po(t)=="symbol"?t:t+""}function Q7(e,t){if(po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z7={xAxis:["bottom","top"],yAxis:["left","right"]},J7={width:"100%",height:"100%"},x2={x:0,y:0};function uc(e){return e}var eW=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},tW=function(t,n,r,a){var o=n.find(function(v){return v&&v.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var u=o.coordinate,c=a.radius;return te(te(te({},a),Rt(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}var d=o.coordinate,h=a.angle;return te(te(te({},a),Rt(a.cx,a.cy,d,h)),{},{angle:h,radius:d})}return x2},td=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,o=n.dataEndIndex,u=(r??[]).reduce(function(c,d){var h=d.props.data;return h&&h.length?[].concat(mo(c),mo(h)):c},[]);return u.length>0?u:t&&t.length&&de(a)&&de(o)?t.slice(a,o+1):[]};function b2(e){return e==="number"?[0,"auto"]:void 0}var Cx=function(t,n,r,a){var o=t.graphicalItems,u=t.tooltipAxis,c=td(n,t);return r<0||!o||!o.length||r>=c.length?null:o.reduce(function(d,h){var v,m=(v=h.props.data)!==null&&v!==void 0?v:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(u.dataKey&&!u.allowDuplicatedCategory){var x=m===void 0?c:m;y=bc(x,u.dataKey,a)}else y=m&&m[r]||c[r];return y?[].concat(mo(d),[bA(h,y)]):d},[])},_T=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},u=eW(o,r),c=t.orderedTooltipTicks,d=t.tooltipAxis,h=t.tooltipTicks,v=fq(u,c,h,d);if(v>=0&&h){var m=h[v]&&h[v].value,y=Cx(t,n,v,m),x=tW(r,c,v,o);return{activeTooltipIndex:v,activeLabel:m,activePayload:y,activeCoordinate:x}}return null},nW=function(t,n){var r=n.axes,a=n.graphicalItems,o=n.axisType,u=n.axisIdKey,c=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,v=t.layout,m=t.children,y=t.stackOffset,x=yA(v,o);return r.reduce(function(S,j){var b,k=j.type.defaultProps!==void 0?te(te({},j.type.defaultProps),j.props):j.props,_=k.type,T=k.dataKey,A=k.allowDataOverflow,C=k.allowDuplicatedCategory,O=k.scale,N=k.ticks,M=k.includeHidden,R=k[u];if(S[R])return S;var K=td(t.data,{graphicalItems:a.filter(function(F){var ce,ve=u in F.props?F.props[u]:(ce=F.type.defaultProps)===null||ce===void 0?void 0:ce[u];return ve===R}),dataStartIndex:d,dataEndIndex:h}),L=K.length,U,V,Y;T7(k.domain,A,_)&&(U=Bg(k.domain,null,A),x&&(_==="number"||O!=="auto")&&(Y=Is(K,T,"category")));var G=b2(_);if(!U||U.length===0){var J,ne=(J=k.domain)!==null&&J!==void 0?J:G;if(T){if(U=Is(K,T,_),_==="category"&&x){var z=nR(U);C&&z?(V=U,U=af(0,L)):C||(U=q_(ne,U,j).reduce(function(F,ce){return F.indexOf(ce)>=0?F:[].concat(mo(F),[ce])},[]))}else if(_==="category")C?U=U.filter(function(F){return F!==""&&!$e(F)}):U=q_(ne,U,j).reduce(function(F,ce){return F.indexOf(ce)>=0||ce===""||$e(ce)?F:[].concat(mo(F),[ce])},[]);else if(_==="number"){var Q=vq(K,a.filter(function(F){var ce,ve,he=u in F.props?F.props[u]:(ce=F.type.defaultProps)===null||ce===void 0?void 0:ce[u],Se="hide"in F.props?F.props.hide:(ve=F.type.defaultProps)===null||ve===void 0?void 0:ve.hide;return he===R&&(M||!Se)}),T,o,v);Q&&(U=Q)}x&&(_==="number"||O!=="auto")&&(Y=Is(K,T,"category"))}else x?U=af(0,L):c&&c[R]&&c[R].hasStack&&_==="number"?U=y==="expand"?[0,1]:xA(c[R].stackGroups,d,h):U=vA(K,a.filter(function(F){var ce=u in F.props?F.props[u]:F.type.defaultProps[u],ve="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return ce===R&&(M||!ve)}),_,v,!0);if(_==="number")U=jx(m,U,R,o,N),ne&&(U=Bg(ne,U,A));else if(_==="category"&&ne){var Z=ne,$=U.every(function(F){return Z.indexOf(F)>=0});$&&(U=Z)}}return te(te({},S),{},_e({},R,te(te({},k),{},{axisType:o,domain:U,categoricalDomain:Y,duplicateDomain:V,originalDomain:(b=k.domain)!==null&&b!==void 0?b:G,isCategorical:x,layout:v})))},{})},rW=function(t,n){var r=n.graphicalItems,a=n.Axis,o=n.axisType,u=n.axisIdKey,c=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,v=t.layout,m=t.children,y=td(t.data,{graphicalItems:r,dataStartIndex:d,dataEndIndex:h}),x=y.length,S=yA(v,o),j=-1;return r.reduce(function(b,k){var _=k.type.defaultProps!==void 0?te(te({},k.type.defaultProps),k.props):k.props,T=_[u],A=b2("number");if(!b[T]){j++;var C;return S?C=af(0,x):c&&c[T]&&c[T].hasStack?(C=xA(c[T].stackGroups,d,h),C=jx(m,C,T,o)):(C=Bg(A,vA(y,r.filter(function(O){var N,M,R=u in O.props?O.props[u]:(N=O.type.defaultProps)===null||N===void 0?void 0:N[u],K="hide"in O.props?O.props.hide:(M=O.type.defaultProps)===null||M===void 0?void 0:M.hide;return R===T&&!K}),"number",v),a.defaultProps.allowDataOverflow),C=jx(m,C,T,o)),te(te({},b),{},_e({},T,te(te({axisType:o},a.defaultProps),{},{hide:!0,orientation:_n(Z7,"".concat(o,".").concat(j%2),null),domain:C,originalDomain:A,isCategorical:S,layout:v})))}return b},{})},iW=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,o=n.AxisComp,u=n.graphicalItems,c=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,v=t.children,m="".concat(a,"Id"),y=On(v,o),x={};return y&&y.length?x=nW(t,{axes:y,graphicalItems:u,axisType:a,axisIdKey:m,stackGroups:c,dataStartIndex:d,dataEndIndex:h}):u&&u.length&&(x=rW(t,{Axis:o,graphicalItems:u,axisType:a,axisIdKey:m,stackGroups:c,dataStartIndex:d,dataEndIndex:h})),x},aW=function(t){var n=ai(t),r=jr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:e0(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Gc(n,r)}},OT=function(t){var n=t.children,r=t.defaultShowTooltip,a=dn(n,io),o=0,u=0;return t.data&&t.data.length!==0&&(u=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(u=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:!!r}},oW=function(t){return!t||!t.length?!1:t.some(function(n){var r=Sr(n&&n.type);return r&&r.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"}},sW=function(t,n){var r=t.props,a=t.graphicalItems,o=t.xAxisMap,u=o===void 0?{}:o,c=t.yAxisMap,d=c===void 0?{}:c,h=r.width,v=r.height,m=r.children,y=r.margin||{},x=dn(m,io),S=dn(m,Wi),j=Object.keys(d).reduce(function(C,O){var N=d[O],M=N.orientation;return!N.mirror&&!N.hide?te(te({},C),{},_e({},M,C[M]+N.width)):C},{left:y.left||0,right:y.right||0}),b=Object.keys(u).reduce(function(C,O){var N=u[O],M=N.orientation;return!N.mirror&&!N.hide?te(te({},C),{},_e({},M,_n(C,"".concat(M))+N.height)):C},{top:y.top||0,bottom:y.bottom||0}),k=te(te({},b),j),_=k.bottom;x&&(k.bottom+=x.props.height||io.defaultProps.height),S&&n&&(k=pq(k,a,r,n));var T=h-k.left-k.right,A=v-k.top-k.bottom;return te(te({brushBottom:_},k),{},{width:Math.max(T,0),height:Math.max(A,0)})},lW=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},w2=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,u=t.validateTooltipEventTypes,c=u===void 0?["axis"]:u,d=t.axisComponents,h=t.legendContent,v=t.formatAxisMap,m=t.defaultProps,y=function(k,_){var T=_.graphicalItems,A=_.stackGroups,C=_.offset,O=_.updateId,N=_.dataStartIndex,M=_.dataEndIndex,R=k.barSize,K=k.layout,L=k.barGap,U=k.barCategoryGap,V=k.maxBarSize,Y=TT(K),G=Y.numericAxisName,J=Y.cateAxisName,ne=oW(T),z=[];return T.forEach(function(Q,Z){var $=td(k.data,{graphicalItems:[Q],dataStartIndex:N,dataEndIndex:M}),F=Q.type.defaultProps!==void 0?te(te({},Q.type.defaultProps),Q.props):Q.props,ce=F.dataKey,ve=F.maxBarSize,he=F["".concat(G,"Id")],Se=F["".concat(J,"Id")],Ae={},re=d.reduce(function(Gt,An){var aa=_["".concat(An.axisType,"Map")],Eo=F["".concat(An.axisType,"Id")];aa&&aa[Eo]||An.axisType==="zAxis"||Yi();var Mo=aa[Eo];return te(te({},Gt),{},_e(_e({},An.axisType,Mo),"".concat(An.axisType,"Ticks"),jr(Mo)))},Ae),ee=re[J],me=re["".concat(J,"Ticks")],Te=A&&A[he]&&A[he].hasStack&&Tq(Q,A[he].stackGroups),ie=Sr(Q.type).indexOf("Bar")>=0,Ne=Gc(ee,me),Re=[],ot=ne&&dq({barSize:R,stackGroups:A,totalSize:lW(re,J)});if(ie){var st,kt,Nn=$e(ve)?V:ve,Qn=(st=(kt=Gc(ee,me,!0))!==null&&kt!==void 0?kt:Nn)!==null&&st!==void 0?st:0;Re=hq({barGap:L,barCategoryGap:U,bandSize:Qn!==Ne?Qn:Ne,sizeList:ot[Se],maxBarSize:Nn}),Qn!==Ne&&(Re=Re.map(function(Gt){return te(te({},Gt),{},{position:te(te({},Gt.position),{},{offset:Gt.position.offset-Qn/2})})}))}var Zn=Q&&Q.type&&Q.type.getComposedData;Zn&&z.push({props:te(te({},Zn(te(te({},re),{},{displayedData:$,props:k,dataKey:ce,item:Q,bandSize:Ne,barPosition:Re,offset:C,stackedData:Te,layout:K,dataStartIndex:N,dataEndIndex:M}))),{},_e(_e(_e({key:Q.key||"item-".concat(Z)},G,re[G]),J,re[J]),"animationId",O)),childIndex:mR(Q,k.children),item:Q})}),z},x=function(k,_){var T=k.props,A=k.dataStartIndex,C=k.dataEndIndex,O=k.updateId;if(!eS({props:T}))return null;var N=T.children,M=T.layout,R=T.stackOffset,K=T.data,L=T.reverseStackOrder,U=TT(M),V=U.numericAxisName,Y=U.cateAxisName,G=On(N,r),J=Cq(K,G,"".concat(V,"Id"),"".concat(Y,"Id"),R,L),ne=d.reduce(function(F,ce){var ve="".concat(ce.axisType,"Map");return te(te({},F),{},_e({},ve,iW(T,te(te({},ce),{},{graphicalItems:G,stackGroups:ce.axisType===V&&J,dataStartIndex:A,dataEndIndex:C}))))},{}),z=sW(te(te({},ne),{},{props:T,graphicalItems:G}),_==null?void 0:_.legendBBox);Object.keys(ne).forEach(function(F){ne[F]=v(T,ne[F],z,F.replace("Map",""),n)});var Q=ne["".concat(Y,"Map")],Z=aW(Q),$=y(T,te(te({},ne),{},{dataStartIndex:A,dataEndIndex:C,updateId:O,graphicalItems:G,stackGroups:J,offset:z}));return te(te({formattedGraphicalItems:$,graphicalItems:G,offset:z,stackGroups:J},Z),ne)},S=(function(b){function k(_){var T,A,C;return F7(this,k),C=W7(this,k,[_]),_e(C,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_e(C,"accessibilityManager",new O7),_e(C,"handleLegendBBoxUpdate",function(O){if(O){var N=C.state,M=N.dataStartIndex,R=N.dataEndIndex,K=N.updateId;C.setState(te({legendBBox:O},x({props:C.props,dataStartIndex:M,dataEndIndex:R,updateId:K},te(te({},C.state),{},{legendBBox:O}))))}}),_e(C,"handleReceiveSyncEvent",function(O,N,M){if(C.props.syncId===O){if(M===C.eventEmitterSymbol&&typeof C.props.syncMethod!="function")return;C.applySyncEvent(N)}}),_e(C,"handleBrushChange",function(O){var N=O.startIndex,M=O.endIndex;if(N!==C.state.dataStartIndex||M!==C.state.dataEndIndex){var R=C.state.updateId;C.setState(function(){return te({dataStartIndex:N,dataEndIndex:M},x({props:C.props,dataStartIndex:N,dataEndIndex:M,updateId:R},C.state))}),C.triggerSyncEvent({dataStartIndex:N,dataEndIndex:M})}}),_e(C,"handleMouseEnter",function(O){var N=C.getMouseInfo(O);if(N){var M=te(te({},N),{},{isTooltipActive:!0});C.setState(M),C.triggerSyncEvent(M);var R=C.props.onMouseEnter;Me(R)&&R(M,O)}}),_e(C,"triggeredAfterMouseMove",function(O){var N=C.getMouseInfo(O),M=N?te(te({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};C.setState(M),C.triggerSyncEvent(M);var R=C.props.onMouseMove;Me(R)&&R(M,O)}),_e(C,"handleItemMouseEnter",function(O){C.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),_e(C,"handleItemMouseLeave",function(){C.setState(function(){return{isTooltipActive:!1}})}),_e(C,"handleMouseMove",function(O){O.persist(),C.throttleTriggeredAfterMouseMove(O)}),_e(C,"handleMouseLeave",function(O){C.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};C.setState(N),C.triggerSyncEvent(N);var M=C.props.onMouseLeave;Me(M)&&M(N,O)}),_e(C,"handleOuterEvent",function(O){var N=pR(O),M=_n(C.props,"".concat(N));if(N&&Me(M)){var R,K;/.*touch.*/i.test(N)?K=C.getMouseInfo(O.changedTouches[0]):K=C.getMouseInfo(O),M((R=K)!==null&&R!==void 0?R:{},O)}}),_e(C,"handleClick",function(O){var N=C.getMouseInfo(O);if(N){var M=te(te({},N),{},{isTooltipActive:!0});C.setState(M),C.triggerSyncEvent(M);var R=C.props.onClick;Me(R)&&R(M,O)}}),_e(C,"handleMouseDown",function(O){var N=C.props.onMouseDown;if(Me(N)){var M=C.getMouseInfo(O);N(M,O)}}),_e(C,"handleMouseUp",function(O){var N=C.props.onMouseUp;if(Me(N)){var M=C.getMouseInfo(O);N(M,O)}}),_e(C,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&C.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),_e(C,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&C.handleMouseDown(O.changedTouches[0])}),_e(C,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&C.handleMouseUp(O.changedTouches[0])}),_e(C,"handleDoubleClick",function(O){var N=C.props.onDoubleClick;if(Me(N)){var M=C.getMouseInfo(O);N(M,O)}}),_e(C,"handleContextMenu",function(O){var N=C.props.onContextMenu;if(Me(N)){var M=C.getMouseInfo(O);N(M,O)}}),_e(C,"triggerSyncEvent",function(O){C.props.syncId!==void 0&&Jy.emit(eg,C.props.syncId,O,C.eventEmitterSymbol)}),_e(C,"applySyncEvent",function(O){var N=C.props,M=N.layout,R=N.syncMethod,K=C.state.updateId,L=O.dataStartIndex,U=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)C.setState(te({dataStartIndex:L,dataEndIndex:U},x({props:C.props,dataStartIndex:L,dataEndIndex:U,updateId:K},C.state)));else if(O.activeTooltipIndex!==void 0){var V=O.chartX,Y=O.chartY,G=O.activeTooltipIndex,J=C.state,ne=J.offset,z=J.tooltipTicks;if(!ne)return;if(typeof R=="function")G=R(z,O);else if(R==="value"){G=-1;for(var Q=0;Q<z.length;Q++)if(z[Q].value===O.activeLabel){G=Q;break}}var Z=te(te({},ne),{},{x:ne.left,y:ne.top}),$=Math.min(V,Z.x+Z.width),F=Math.min(Y,Z.y+Z.height),ce=z[G]&&z[G].value,ve=Cx(C.state,C.props.data,G),he=z[G]?{x:M==="horizontal"?z[G].coordinate:$,y:M==="horizontal"?F:z[G].coordinate}:x2;C.setState(te(te({},O),{},{activeLabel:ce,activeCoordinate:he,activePayload:ve,activeTooltipIndex:G}))}else C.setState(O)}),_e(C,"renderCursor",function(O){var N,M=C.state,R=M.isTooltipActive,K=M.activeCoordinate,L=M.activePayload,U=M.offset,V=M.activeTooltipIndex,Y=M.tooltipAxisBandSize,G=C.getTooltipEventType(),J=(N=O.props.active)!==null&&N!==void 0?N:R,ne=C.props.layout,z=O.key||"_recharts-cursor";return E.createElement(I7,{key:z,activeCoordinate:K,activePayload:L,activeTooltipIndex:V,chartName:n,element:O,isActive:J,layout:ne,offset:U,tooltipAxisBandSize:Y,tooltipEventType:G})}),_e(C,"renderPolarAxis",function(O,N,M){var R=_n(O,"type.axisType"),K=_n(C.state,"".concat(R,"Map")),L=O.type.defaultProps,U=L!==void 0?te(te({},L),O.props):O.props,V=K&&K[U["".concat(R,"Id")]];return ue.cloneElement(O,te(te({},V),{},{className:qe(R,V.className),key:O.key||"".concat(N,"-").concat(M),ticks:jr(V,!0)}))}),_e(C,"renderPolarGrid",function(O){var N=O.props,M=N.radialLines,R=N.polarAngles,K=N.polarRadius,L=C.state,U=L.radiusAxisMap,V=L.angleAxisMap,Y=ai(U),G=ai(V),J=G.cx,ne=G.cy,z=G.innerRadius,Q=G.outerRadius;return ue.cloneElement(O,{polarAngles:Array.isArray(R)?R:jr(G,!0).map(function(Z){return Z.coordinate}),polarRadius:Array.isArray(K)?K:jr(Y,!0).map(function(Z){return Z.coordinate}),cx:J,cy:ne,innerRadius:z,outerRadius:Q,key:O.key||"polar-grid",radialLines:M})}),_e(C,"renderLegend",function(){var O=C.state.formattedGraphicalItems,N=C.props,M=N.children,R=N.width,K=N.height,L=C.props.margin||{},U=R-(L.left||0)-(L.right||0),V=pA({children:M,formattedGraphicalItems:O,legendWidth:U,legendContent:h});if(!V)return null;var Y=V.item,G=kT(V,R7);return ue.cloneElement(Y,te(te({},G),{},{chartWidth:R,chartHeight:K,margin:L,onBBoxUpdate:C.handleLegendBBoxUpdate}))}),_e(C,"renderTooltip",function(){var O,N=C.props,M=N.children,R=N.accessibilityLayer,K=dn(M,Ft);if(!K)return null;var L=C.state,U=L.isTooltipActive,V=L.activeCoordinate,Y=L.activePayload,G=L.activeLabel,J=L.offset,ne=(O=K.props.active)!==null&&O!==void 0?O:U;return ue.cloneElement(K,{viewBox:te(te({},J),{},{x:J.left,y:J.top}),active:ne,label:G,payload:ne?Y:[],coordinate:V,accessibilityLayer:R})}),_e(C,"renderBrush",function(O){var N=C.props,M=N.margin,R=N.data,K=C.state,L=K.offset,U=K.dataStartIndex,V=K.dataEndIndex,Y=K.updateId;return ue.cloneElement(O,{key:O.key||"_recharts-brush",onChange:ic(C.handleBrushChange,O.props.onChange),data:R,x:de(O.props.x)?O.props.x:L.left,y:de(O.props.y)?O.props.y:L.top+L.height+L.brushBottom-(M.bottom||0),width:de(O.props.width)?O.props.width:L.width,startIndex:U,endIndex:V,updateId:"brush-".concat(Y)})}),_e(C,"renderReferenceElement",function(O,N,M){if(!O)return null;var R=C,K=R.clipPathId,L=C.state,U=L.xAxisMap,V=L.yAxisMap,Y=L.offset,G=O.type.defaultProps||{},J=O.props,ne=J.xAxisId,z=ne===void 0?G.xAxisId:ne,Q=J.yAxisId,Z=Q===void 0?G.yAxisId:Q;return ue.cloneElement(O,{key:O.key||"".concat(N,"-").concat(M),xAxis:U[z],yAxis:V[Z],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:K})}),_e(C,"renderActivePoints",function(O){var N=O.item,M=O.activePoint,R=O.basePoint,K=O.childIndex,L=O.isRange,U=[],V=N.props.key,Y=N.item.type.defaultProps!==void 0?te(te({},N.item.type.defaultProps),N.item.props):N.item.props,G=Y.activeDot,J=Y.dataKey,ne=te(te({index:K,dataKey:J,cx:M.x,cy:M.y,r:4,fill:_0(N.item),strokeWidth:2,stroke:"#fff",payload:M.payload,value:M.value},De(G,!1)),wc(G));return U.push(k.renderActiveDot(G,ne,"".concat(V,"-activePoint-").concat(K))),R?U.push(k.renderActiveDot(G,te(te({},ne),{},{cx:R.x,cy:R.y}),"".concat(V,"-basePoint-").concat(K))):L&&U.push(null),U}),_e(C,"renderGraphicChild",function(O,N,M){var R=C.filterFormatItem(O,N,M);if(!R)return null;var K=C.getTooltipEventType(),L=C.state,U=L.isTooltipActive,V=L.tooltipAxis,Y=L.activeTooltipIndex,G=L.activeLabel,J=C.props.children,ne=dn(J,Ft),z=R.props,Q=z.points,Z=z.isRange,$=z.baseLine,F=R.item.type.defaultProps!==void 0?te(te({},R.item.type.defaultProps),R.item.props):R.item.props,ce=F.activeDot,ve=F.hide,he=F.activeBar,Se=F.activeShape,Ae=!!(!ve&&U&&ne&&(ce||he||Se)),re={};K!=="axis"&&ne&&ne.props.trigger==="click"?re={onClick:ic(C.handleItemMouseEnter,O.props.onClick)}:K!=="axis"&&(re={onMouseLeave:ic(C.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:ic(C.handleItemMouseEnter,O.props.onMouseEnter)});var ee=ue.cloneElement(O,te(te({},R.props),re));function me(An){return typeof V.dataKey=="function"?V.dataKey(An.payload):null}if(Ae)if(Y>=0){var Te,ie;if(V.dataKey&&!V.allowDuplicatedCategory){var Ne=typeof V.dataKey=="function"?me:"payload.".concat(V.dataKey.toString());Te=bc(Q,Ne,G),ie=Z&&$&&bc($,Ne,G)}else Te=Q==null?void 0:Q[Y],ie=Z&&$&&$[Y];if(Se||he){var Re=O.props.activeIndex!==void 0?O.props.activeIndex:Y;return[ue.cloneElement(O,te(te(te({},R.props),re),{},{activeIndex:Re})),null,null]}if(!$e(Te))return[ee].concat(mo(C.renderActivePoints({item:R,activePoint:Te,basePoint:ie,childIndex:Y,isRange:Z})))}else{var ot,st=(ot=C.getItemByXY(C.state.activeCoordinate))!==null&&ot!==void 0?ot:{graphicalItem:ee},kt=st.graphicalItem,Nn=kt.item,Qn=Nn===void 0?O:Nn,Zn=kt.childIndex,Gt=te(te(te({},R.props),re),{},{activeIndex:Zn});return[ue.cloneElement(Qn,Gt),null,null]}return Z?[ee,null,null]:[ee,null]}),_e(C,"renderCustomized",function(O,N,M){return ue.cloneElement(O,te(te({key:"recharts-customized-".concat(M)},C.props),C.state))}),_e(C,"renderMap",{CartesianGrid:{handler:uc,once:!0},ReferenceArea:{handler:C.renderReferenceElement},ReferenceLine:{handler:uc},ReferenceDot:{handler:C.renderReferenceElement},XAxis:{handler:uc},YAxis:{handler:uc},Brush:{handler:C.renderBrush,once:!0},Bar:{handler:C.renderGraphicChild},Line:{handler:C.renderGraphicChild},Area:{handler:C.renderGraphicChild},Radar:{handler:C.renderGraphicChild},RadialBar:{handler:C.renderGraphicChild},Scatter:{handler:C.renderGraphicChild},Pie:{handler:C.renderGraphicChild},Funnel:{handler:C.renderGraphicChild},Tooltip:{handler:C.renderCursor,once:!0},PolarGrid:{handler:C.renderPolarGrid,once:!0},PolarAngleAxis:{handler:C.renderPolarAxis},PolarRadiusAxis:{handler:C.renderPolarAxis},Customized:{handler:C.renderCustomized}}),C.clipPathId="".concat((T=_.id)!==null&&T!==void 0?T:Tl("recharts"),"-clip"),C.throttleTriggeredAfterMouseMove=mN(C.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),C.state={},C}return V7(k,b),z7(k,[{key:"componentDidMount",value:function(){var T,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,A=T.children,C=T.data,O=T.height,N=T.layout,M=dn(A,Ft);if(M){var R=M.props.defaultIndex;if(!(typeof R!="number"||R<0||R>this.state.tooltipTicks.length-1)){var K=this.state.tooltipTicks[R]&&this.state.tooltipTicks[R].value,L=Cx(this.state,C,R,K),U=this.state.tooltipTicks[R].coordinate,V=(this.state.offset.top+O)/2,Y=N==="horizontal",G=Y?{x:U,y:V}:{y:U,x:V},J=this.state.formattedGraphicalItems.find(function(z){var Q=z.item;return Q.type.name==="Scatter"});J&&(G=te(te({},G),J.props.points[R].tooltipPosition),L=J.props.points[R].tooltipPayload);var ne={activeTooltipIndex:R,isTooltipActive:!0,activeLabel:K,activePayload:L,activeCoordinate:G};this.setState(ne),this.renderCursor(M),this.accessibilityManager.setIndex(R)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.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 C,O;this.accessibilityManager.setDetails({offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(T){cg([dn(T.children,Ft)],[dn(this.props.children,Ft)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=dn(this.props.children,Ft);if(T&&typeof T.props.shared=="boolean"){var A=T.props.shared?"axis":"item";return c.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var A=this.container,C=A.getBoundingClientRect(),O=t4(C),N={chartX:Math.round(T.pageX-O.left),chartY:Math.round(T.pageY-O.top)},M=C.width/A.offsetWidth||1,R=this.inRange(N.chartX,N.chartY,M);if(!R)return null;var K=this.state,L=K.xAxisMap,U=K.yAxisMap,V=this.getTooltipEventType(),Y=_T(this.state,this.props.data,this.props.layout,R);if(V!=="axis"&&L&&U){var G=ai(L).scale,J=ai(U).scale,ne=G&&G.invert?G.invert(N.chartX):null,z=J&&J.invert?J.invert(N.chartY):null;return te(te({},N),{},{xValue:ne,yValue:z},Y)}return Y?te(te({},N),Y):null}},{key:"inRange",value:function(T,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,N=T/C,M=A/C;if(O==="horizontal"||O==="vertical"){var R=this.state.offset,K=N>=R.left&&N<=R.left+R.width&&M>=R.top&&M<=R.top+R.height;return K?{x:N,y:M}:null}var L=this.state,U=L.angleAxisMap,V=L.radiusAxisMap;if(U&&V){var Y=ai(U);return z_({x:N,y:M},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,A=this.getTooltipEventType(),C=dn(T,Ft),O={};C&&A==="axis"&&(C.props.trigger==="click"?O={onClick:this.handleClick}:O={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=wc(this.props,this.handleOuterEvent);return te(te({},N),O)}},{key:"addListener",value:function(){Jy.on(eg,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Jy.removeListener(eg,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,A,C){for(var O=this.state.formattedGraphicalItems,N=0,M=O.length;N<M;N++){var R=O[N];if(R.item===T||R.props.key===T.key||A===Sr(R.item.type)&&C===R.childIndex)return R}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,A=this.state.offset,C=A.left,O=A.top,N=A.height,M=A.width;return E.createElement("defs",null,E.createElement("clipPath",{id:T},E.createElement("rect",{x:C,y:O,height:N,width:M})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(A,C){var O=ST(C,2),N=O[0],M=O[1];return te(te({},A),{},_e({},N,M.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(A,C){var O=ST(C,2),N=O[0],M=O[1];return te(te({},A),{},_e({},N,M.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[T])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(T){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[T])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(T){var A=this.state,C=A.formattedGraphicalItems,O=A.activeItem;if(C&&C.length)for(var N=0,M=C.length;N<M;N++){var R=C[N],K=R.props,L=R.item,U=L.type.defaultProps!==void 0?te(te({},L.type.defaultProps),L.props):L.props,V=Sr(L.type);if(V==="Bar"){var Y=(K.data||[]).find(function(z){return jF(T,z)});if(Y)return{graphicalItem:R,payload:Y}}else if(V==="RadialBar"){var G=(K.data||[]).find(function(z){return z_(T,z)});if(G)return{graphicalItem:R,payload:G}}else if(Gf(R,O)||Xf(R,O)||hl(R,O)){var J=dB({graphicalItem:R,activeTooltipItem:O,itemData:U.data}),ne=U.activeIndex===void 0?J:U.activeIndex;return{graphicalItem:te(te({},R),{},{childIndex:ne}),payload:hl(R,O)?U.data[J]:R.props.data[J]}}}return null}},{key:"render",value:function(){var T=this;if(!eS(this))return null;var A=this.props,C=A.children,O=A.className,N=A.width,M=A.height,R=A.style,K=A.compact,L=A.title,U=A.desc,V=kT(A,$7),Y=De(V,!1);if(K)return E.createElement(iT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement(dg,Da({},Y,{width:N,height:M,title:L,desc:U}),this.renderClipPath(),nS(C,this.renderMap)));if(this.props.accessibilityLayer){var G,J;Y.tabIndex=(G=this.props.tabIndex)!==null&&G!==void 0?G:0,Y.role=(J=this.props.role)!==null&&J!==void 0?J:"application",Y.onKeyDown=function(z){T.accessibilityManager.keyboardEvent(z)},Y.onFocus=function(){T.accessibilityManager.focus()}}var ne=this.parseEventsOfWrapper();return E.createElement(iT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement("div",Da({className:qe("recharts-wrapper",O),style:te({position:"relative",cursor:"default",width:N,height:M},R)},ne,{ref:function(Q){T.container=Q}}),E.createElement(dg,Da({},Y,{width:N,height:M,title:L,desc:U,style:J7}),this.renderClipPath(),nS(C,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(ue.Component);_e(S,"displayName",n),_e(S,"defaultProps",te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),_e(S,"getDerivedStateFromProps",function(b,k){var _=b.dataKey,T=b.data,A=b.children,C=b.width,O=b.height,N=b.layout,M=b.stackOffset,R=b.margin,K=k.dataStartIndex,L=k.dataEndIndex;if(k.updateId===void 0){var U=OT(b);return te(te(te({},U),{},{updateId:0},x(te(te({props:b},U),{},{updateId:0}),k)),{},{prevDataKey:_,prevData:T,prevWidth:C,prevHeight:O,prevLayout:N,prevStackOffset:M,prevMargin:R,prevChildren:A})}if(_!==k.prevDataKey||T!==k.prevData||C!==k.prevWidth||O!==k.prevHeight||N!==k.prevLayout||M!==k.prevStackOffset||!Ua(R,k.prevMargin)){var V=OT(b),Y={chartX:k.chartX,chartY:k.chartY,isTooltipActive:k.isTooltipActive},G=te(te({},_T(k,T,N)),{},{updateId:k.updateId+1}),J=te(te(te({},V),Y),G);return te(te(te({},J),x(te({props:b},J),k)),{},{prevDataKey:_,prevData:T,prevWidth:C,prevHeight:O,prevLayout:N,prevStackOffset:M,prevMargin:R,prevChildren:A})}if(!cg(A,k.prevChildren)){var ne,z,Q,Z,$=dn(A,io),F=$&&(ne=(z=$.props)===null||z===void 0?void 0:z.startIndex)!==null&&ne!==void 0?ne:K,ce=$&&(Q=(Z=$.props)===null||Z===void 0?void 0:Z.endIndex)!==null&&Q!==void 0?Q:L,ve=F!==K||ce!==L,he=!$e(T),Se=he&&!ve?k.updateId:k.updateId+1;return te(te({updateId:Se},x(te(te({props:b},k),{},{updateId:Se,dataStartIndex:F,dataEndIndex:ce}),k)),{},{prevChildren:A,dataStartIndex:F,dataEndIndex:ce})}return null}),_e(S,"renderActiveDot",function(b,k,_){var T;return ue.isValidElement(b)?T=ue.cloneElement(b,k):Me(b)?T=b(k):T=E.createElement(T0,k),E.createElement(ht,{className:"recharts-active-dot",key:_},T)});var j=ue.forwardRef(function(k,_){return E.createElement(S,Da({},k,{ref:_}))});return j.displayName=S.displayName,j},j2=w2({chartName:"LineChart",GraphicalChild:Po,axisComponents:[{axisType:"xAxis",AxisComp:Gn},{axisType:"yAxis",AxisComp:Xn}],formatAxisMap:qA}),bl=w2({chartName:"BarChart",GraphicalChild:Vn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Gn},{axisType:"yAxis",AxisComp:Xn}],formatAxisMap:qA});const nd=[{value:"estimatedCostUsd",label:"API-equivalent cost"},{value:"totalTokens",label:"Total tokens"},{value:"inputTokens",label:"Total input tokens"},{value:"cachedInputTokens",label:"Cached input tokens"},{value:"outputTokens",label:"Output tokens"},{value:"reasoningTokens",label:"Reasoning tokens"}],rd=[{value:"lastHour",label:"Last hour"},{value:"last6",label:"Last 6 hours"},{value:"last12",label:"Last 12 hours"},{value:"last24",label:"Last 24 hours"},{value:"last7",label:"Last 7 days"},{value:"last14",label:"Last 14 days"},{value:"last30",label:"Last 30 days"},{value:"thisWeek",label:"This week"},{value:"thisMonth",label:"This month"},{value:"all",label:"All time"},{value:"custom",label:"Custom dates"}],xf=["#2dd4bf","#38bdf8","#f59e0b","#22c55e","#8b5cf6","#ef4444"],L0=[5,10,15,25],No=[10,25,50,100,250],cc={chartGroupLimit:10,tablePageSize:25,splitSourceApps:!0},id=["input","cached","output","reasoning","messages","prompts","commands","commandIssues","edits"],uW=[{key:"input",label:"Total input tokens",group:"Usage"},{key:"cached",label:"Cached input",group:"Usage"},{key:"output",label:"Output tokens",group:"Usage"},{key:"reasoning",label:"Reasoning tokens",group:"Usage"},{key:"messages",label:"Messages",group:"Activity"},{key:"prompts",label:"Prompts",group:"Activity"},{key:"commands",label:"Commands",group:"Activity"},{key:"commandIssues",label:"Command issues",group:"Activity"},{key:"edits",label:"Edits",group:"Activity"},{key:"parse",label:"Parse status",group:"Technical"},{key:"tokenMethod",label:"Token method",group:"Technical"},{key:"confidence",label:"Token confidence",group:"Technical"},{key:"checkpoints",label:"Token checkpoints",group:"Technical"}];function vo(e){if(e===void 0)return"Unknown";const t=Math.round(e/6e4);if(t<1)return"<1m";if(t<60)return`${t}m`;const n=Math.floor(t/60),r=t%60;return r?`${n}h ${r}m`:`${n}h`}function Kn(e){if(!e)return"Unknown";const t=new Date(e);return Number.isNaN(t.getTime())?"Unknown":t.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}function _r(e){return e.replace(/^\/Users\/[^/]+/,"~")}function rn(e){return e===void 0?"Not priced":e>0&&e<.01?"<$0.01 USD":`${U0(e,2,2)} USD`}function cW(e){return e===void 0?"Not priced":`${U0(e,2,6)} USD`}function ct(e){return`${Er(e)} ${ad("token",e)}`}function zi(e){return`${new Intl.NumberFormat().format(e)} ${ad("token",e)}`}function fW(e){return Er(e)}function Ee(e,t){return`${Er(e)} ${ad(t,e)}`}function _x(e,t){return`${new Intl.NumberFormat().format(e)} ${ad(t,e)}`}function hi(e){return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e*100)}%`}function dW(e){return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:3}).format(e*100)}%`}function Ox(e){return typeof e=="number"?U0(e,0,1,!0):"Unknown"}function Er(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1,notation:"compact"}).format(e)}function U0(e,t,n,r=!1){return`$${new Intl.NumberFormat(void 0,{maximumFractionDigits:n,minimumFractionDigits:t,notation:r?"compact":"standard"}).format(e)}`}function ad(e,t){return t===1||e.endsWith("s")?e:e.endsWith("y")&&!/[aeiou]y$/i.test(e)?`${e.slice(0,-1)}ies`:`${e}s`}function q0(e,t){const n=new Blob([t],{type:"text/plain;charset=utf-8"}),r=URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=e,a.click(),URL.revokeObjectURL(r)}function hW(e,t){return t?e.includes(t)?e.filter(n=>n!==t):[...e,t]:[]}function pW(e,t,n,r){const a=new Map,o=new Map;for(const c of t)a.set(c.sourceClient,(a.get(c.sourceClient)??0)+c.totalTokens),o.set(c.sourceClient,(o.get(c.sourceClient)??0)+1);const u=e.filter(c=>(o.get(c.id)??0)>0||n.includes(c.id)).map(c=>({value:c.id,label:c.label,icon:"source",usage:a.get(c.id)??0}));for(const c of n)u.some(d=>d.value===c)||u.push({value:c,label:c,icon:"source",usage:a.get(c)??0});return k2(u)}function ng(e,t,n,r){const a=e.filter(o=>r!=="model"||o.totalTokens>0||t.includes(o.label)).map(o=>({value:r==="repo"?o.id:o.label,label:o.label,icon:r,usage:o.totalTokens,...r==="repo"&&o.verified!==void 0?{verified:o.verified}:{}}));for(const o of t)a.some(u=>u.value===o)||a.push({value:o,label:o,icon:r,usage:0});return k2(a)}function mW(){try{return window.localStorage.getItem("repospend.filterSortMode")==="name"?"name":"usage"}catch{return"usage"}}function vW(){try{const e=JSON.parse(window.localStorage.getItem("repospend.displaySettings.v2")??"{}"),t=L0.includes(e.chartGroupLimit??0)?e.chartGroupLimit:cc.chartGroupLimit,n=No.includes(e.tablePageSize??0)?e.tablePageSize:cc.tablePageSize,r=typeof e.splitSourceApps=="boolean"?e.splitSourceApps:cc.splitSourceApps;return{chartGroupLimit:t,tablePageSize:n,splitSourceApps:r}}catch{return cc}}function S2(e){const t=new Set;return e.filter(n=>t.has(n.value)?!1:(t.add(n.value),!0))}function La(e){const t=new Date,r={lastHour:1,last6:6,last12:12,last24:24}[e];if(r)return{from:new Date(t.getTime()-r*60*60*1e3).toISOString(),to:t.toISOString()};const o={last7:7,last14:14,last30:30}[e];return o?{from:Ia(new Date(t.getTime()-o*24*60*60*1e3)),to:Ia(t)}:e==="thisWeek"?{from:Ia(gW(t)),to:Ia(t)}:e==="thisMonth"?{from:Ia(new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1))),to:Ia(t)}:{from:"",to:""}}function ar(e){return e.includes("T")?e.slice(0,10):e}function yc(e,t){return e==="lastHour"?"Showing sessions from the last hour.":e==="last6"?"Showing sessions from the last 6 hours.":e==="last12"?"Showing sessions from the last 12 hours.":e==="last24"?"Showing sessions from the last 24 hours.":e==="last7"||e==="last14"||e==="last30"||e==="thisWeek"||e==="thisMonth"?`Showing sessions from ${ar(t.from)} to ${ar(t.to)}.`:e==="all"?"Showing all local sessions.":""}function Mr(e){return e==="terminal_cli"?"Terminal":e==="vscode_extension"?"VS Code":e==="local_agent"?"Desktop local agent":e==="codex_exec"?"Codex":e==="codex_app_cloud"?"Codex app":"Unknown"}function pi(e){return e==="codex"?"Codex":e==="claude"?"Claude Code":e==="gemini-cli"?"Gemini CLI":e==="opencode"?"OpenCode":e==="cursor"?"Cursor":"Unknown"}function Rl(e){return e==="completed"?"Completed":e==="partial"?"Partial":e==="failed"?"Failed":e==="research_only"?"Research only":e==="no_code_change"?"No edits":e==="setup_debugging"?"Setup/debugging":"Unknown"}function yW(e){return e==="completed"?"Codex activity appears to include detected file edits and no command failure signal.":e==="partial"?"RepoSpend saw useful activity, but also detected command failures or incomplete signals. This is worth reviewing, not necessarily a failed session.":e==="failed"?"Local logs suggest parsing failed or the session ended with a failure signal.":e==="research_only"?"No file edits were detected, but prompts or assistant messages were present. This may be normal research.":e==="no_code_change"?"No local file edits were detected for this session.":e==="setup_debugging"?"Commands were run, but no file edits were detected. Often setup, local debugging, or environment work.":"RepoSpend could not infer a confident outcome from local logs."}function Hn(e){var t;return((t=nd.find(n=>n.value===e))==null?void 0:t.label)??"Metric"}function wl(e,t){return e==="estimatedCostUsd"?Ox(t):fW(t)}function jl(e,t){return[e==="estimatedCostUsd"?cW(t):zi(t),Hn(e)]}function gc(e,t,n){const r=e.filter(h=>rg(h,t)>0).sort((h,v)=>rg(v,t)-rg(h,t)),a=Math.max(1,n);if(r.length<=a)return r;const o=r.slice(0,a),u=r.slice(a),c=u.filter(h=>h.estimatedCostUsd!==void 0),d={id:"__other",label:`Other (${u.length})`,estimatedCostUsd:c.length?xW(c.reduce((h,v)=>h+(v.estimatedCostUsd??0),0)):void 0,knownCostSessions:u.reduce((h,v)=>h+v.knownCostSessions,0),unknownCostSessions:u.reduce((h,v)=>h+v.unknownCostSessions,0),inputTokens:u.reduce((h,v)=>h+v.inputTokens,0),cachedInputTokens:u.reduce((h,v)=>h+v.cachedInputTokens,0),outputTokens:u.reduce((h,v)=>h+v.outputTokens,0),reasoningTokens:u.reduce((h,v)=>h+v.reasoningTokens,0),reasoningOutputTokens:u.reduce((h,v)=>h+(v.reasoningOutputTokens??0),0),totalTokens:u.reduce((h,v)=>h+v.totalTokens,0),sessionCount:u.reduce((h,v)=>h+v.sessionCount,0),messageCount:u.reduce((h,v)=>h+v.messageCount,0),warnings:[...new Set(u.flatMap(h=>h.warnings))].sort()};return[...o,d]}function k2(e,t){return[...S2(e)].sort((r,a)=>(a.usage??0)-(r.usage??0)||r.label.localeCompare(a.label))}function Ia(e){return e.toISOString().slice(0,10)}function gW(e){const t=e.getUTCDay(),n=t===0?6:t-1,r=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));return r.setUTCDate(r.getUTCDate()-n),r}function rg(e,t){return t==="estimatedCostUsd"?e.estimatedCostUsd??0:e[t]}function xW(e){return Number(e.toFixed(6))}function PT(){const e=new URLSearchParams(window.location.search),t=window.location.pathname.split("/").filter(Boolean).map(a=>decodeURIComponent(a)),n=SW(e.get("range")),r=n==="custom"?{from:e.get("from")??"",to:e.get("to")??""}:La(n);return{activeView:jW(t)??"dashboard",rangePreset:n,filters:{source:fc(e,"source"),sourceApp:fc(e,"sourceApp"),repo:fc(e,"repo"),model:fc(e,"model"),...r},metric:kW(e.get("metric")),selectedRepo:t[0]==="repos"&&t[1]?t.slice(1).join("/"):null,selectedSessionId:t[0]==="sessions"&&t[1]?t.slice(1).join("/"):null}}function bW({activeView:e,selectedRepo:t,selectedSessionId:n}){return e==="sessionDetail"&&n?`/sessions/${encodeURIComponent(n)}`:e==="repoDetail"&&t?`/repos/${encodeURIComponent(t)}`:e==="sessions"?"/sessions":e==="repos"?"/repos":e==="models"?"/models":e==="commands"?"/agent-friction":e==="insights"?"/insights":e==="rtk"?"/rtk":e==="settings"?"/settings":"/"}function wW({filters:e,rangePreset:t,metric:n}){const r=new URLSearchParams;dc(r,"source",e.source),dc(r,"sourceApp",e.sourceApp),dc(r,"repo",e.repo),dc(r,"model",e.model),t!=="last7"&&r.set("range",t),t==="custom"&&(e.from&&r.set("from",ar(e.from)),e.to&&r.set("to",ar(e.to))),n!=="totalTokens"&&r.set("metric",n);const a=r.toString();return a?`?${a}`:""}function jW(e){if(e.length!==0){if(e[0]==="sessions")return e[1]?"sessionDetail":"sessions";if(e[0]==="repos")return e[1]?"repoDetail":"repos";if(e[0]==="models")return"models";if(e[0]==="agent-friction")return"commands";if(e[0]==="insights")return"insights";if(e[0]==="rtk")return"rtk";if(e[0]==="settings")return"settings"}}function SW(e){return rd.some(t=>t.value===e)?e:"last7"}function kW(e){return nd.some(t=>t.value===e)?e:"totalTokens"}function fc(e,t,n){const r=[...e.getAll(t)];return[...new Set(r.flatMap(a=>a.split(",")).map(a=>a.trim()).filter(Boolean))]}function dc(e,t,n){n.length&&e.set(t,n.join(","))}const Zi={background:"#0f172a",border:"1px solid rgba(148, 163, 184, 0.22)",borderRadius:10,color:"#e5e7eb"},Ji={color:"#f8fafc",fontWeight:700},ea={color:"#e5e7eb"},CW={dashboard:{title:"Overview",subtitle:"Your local AI coding activity at a glance"},sessions:{title:"Sessions",subtitle:"Inspect metadata, surfaces, outcomes, commands, and parse status"},sessionDetail:{title:"Session Detail",subtitle:"One local AI coding session, with signals and token shape"},repos:{title:"Repos / folders",subtitle:"Compare local AI coding usage, API-equivalent cost, productivity, and warnings by Git repo or inferred folder"},repoDetail:{title:"Repo / folder detail",subtitle:"Focused repo or folder usage, sessions, warnings, and command signals"},models:{title:"Models",subtitle:"Compare model token shape, API-equivalent cost, cache reuse, and repo concentration"},commands:{title:"Agent Friction",subtitle:"Command signals that separate blocking issues from harmless shell exits"},insights:{title:"Usage Health",subtitle:"What looks good, what needs attention, and why"},rtk:{title:"RTK Insights",subtitle:"Token savings from RTK command proxy"},settings:{title:"Settings",subtitle:"Local pricing and dashboard configuration"}},_W={dashboard:l.jsx(dP,{}),sessions:l.jsx(Ha,{}),sessionDetail:l.jsx(Ha,{}),repos:l.jsx(Or,{}),repoDetail:l.jsx(Or,{}),models:l.jsx(Wa,{}),commands:l.jsx(ur,{}),insights:l.jsx(yi,{}),rtk:l.jsx(Ax,{}),settings:l.jsx(Mx,{})};function OW(){const e=E.useMemo(()=>PT(),[]),[t,n]=E.useState(null),[r,a]=E.useState(null),[o,u]=E.useState(null),[c,d]=E.useState(!0),[h,v]=E.useState(e.rangePreset),[m,y]=E.useState(e.filters),[x,S]=E.useState(e.metric),[j,b]=E.useState(e.selectedRepo),[k,_]=E.useState(e.selectedSessionId),[T,A]=E.useState(e.activeView),[C,O]=E.useState({}),[N,M]=E.useState(null),[R,K]=E.useState(()=>mW()),[L,U]=E.useState(()=>vW()),[V,Y]=E.useState(!1),G=E.useRef(!1),J=E.useMemo(()=>{const re=new URLSearchParams;return Object.entries(m).forEach(([ee,me])=>{Array.isArray(me)?me.length&&re.set(ee,me.join(",")):me&&re.set(ee,me)}),L.splitSourceApps&&re.set("splitSourceApps","true"),re.toString()},[L.splitSourceApps,m]),ne=E.useMemo(()=>{const re=new URLSearchParams;return m.from&&re.set("from",m.from),m.to&&re.set("to",m.to),L.splitSourceApps&&re.set("splitSourceApps","true"),re.toString()},[L.splitSourceApps,m.from,m.to]);E.useEffect(()=>{let re=!0;return d(!0),u(null),GT(`/api/dashboard?${J}`).then(ee=>{re&&(n(ee),J===ne?a(ee):GT(`/api/dashboard${ne?`?${ne}`:""}`).then(me=>{re&&a(me)}).catch(()=>{re&&a(ee)}))}).catch(ee=>{re&&u(ee instanceof Error?ee.message:String(ee))}).finally(()=>{re&&d(!1)}),()=>{re=!1}},[ne,J]),E.useEffect(()=>{const re=r??t;re&&j&&!re.repos.some(ee=>ee.id===j)&&b(null)},[t,r,j]),E.useEffect(()=>{if(!r)return;const re=new Set(r.sessions.map(Ne=>Ne.sourceClient)),ee=new Set(r.sourceApps.map(Ne=>Ne.label)),me=new Set(r.repos.flatMap(Ne=>[Ne.id,Ne.label])),Te=new Set(r.models.map(Ne=>Ne.label)),ie={...m,source:m.source.filter(Ne=>re.has(Ne)),sourceApp:m.sourceApp.filter(Ne=>ee.has(Ne)),repo:m.repo.filter(Ne=>me.has(Ne)),model:m.model.filter(Ne=>Te.has(Ne))};(ie.source.length!==m.source.length||ie.sourceApp.length!==m.sourceApp.length||ie.repo.length!==m.repo.length||ie.model.length!==m.model.length)&&y(ie)},[r,m]),E.useEffect(()=>{const re=()=>{const ee=PT();G.current=!0,A(ee.activeView),v(ee.rangePreset),y(ee.filters),S(ee.metric),b(ee.selectedRepo),_(ee.selectedSessionId)};return window.addEventListener("popstate",re),()=>window.removeEventListener("popstate",re)},[]),E.useEffect(()=>{const re=bW({activeView:T,selectedRepo:j,selectedSessionId:k}),ee=wW({filters:m,rangePreset:h,metric:x}),me=`${re}${ee}${window.location.hash}`,Te=`${window.location.pathname}${window.location.search}${window.location.hash}`;if(G.current){G.current=!1;return}me!==Te&&window.history.pushState(null,"",me)},[T,m,h,x,j,k]),E.useEffect(()=>{try{window.localStorage.setItem("repospend.filterSortMode",R)}catch{}},[R]),E.useEffect(()=>{try{window.localStorage.setItem("repospend.displaySettings.v2",JSON.stringify(L))}catch{}},[L]);const z=E.useCallback(re=>{re.splitSourceApps!==void 0&&y(ee=>({...ee,sourceApp:[]})),U(ee=>({...ee,...re}))},[]),Q=r??t,Z="usage",$=pW((Q==null?void 0:Q.sources)??(t==null?void 0:t.sources)??[],(Q==null?void 0:Q.sessions)??(t==null?void 0:t.sessions)??[],m.source),F=ng((Q==null?void 0:Q.repos)??[],m.repo,Z,"repo"),ce=ng((Q==null?void 0:Q.models)??[],m.model,Z,"model"),ve=ng((Q==null?void 0:Q.sourceApps)??[],m.sourceApp,Z,"app"),he=E.useCallback(re=>A(re),[]),Se=E.useCallback(re=>{_(re),A("sessionDetail")},[]),Ae=E.useCallback(re=>{b(re),y(ee=>({...ee,repo:[re]})),A("repoDetail")},[]);return E.useEffect(()=>{t!=null&&t.pricing.models&&O(t.pricing.models)},[t==null?void 0:t.pricing.models]),l.jsxs("main",{className:`app-shell ${V?"sidebar-collapsed":""}`,children:[l.jsxs("aside",{className:"sidebar",children:[l.jsxs("div",{className:"brand-lockup",children:[l.jsx("div",{className:"brand-mark",children:l.jsx(Nx,{className:"h-6 w-6","aria-hidden":!0})}),l.jsxs("div",{className:"brand-text",children:[l.jsx("h1",{children:"RepoSpend"}),l.jsx("p",{children:"Local analytics"})]}),l.jsx("button",{className:"sidebar-toggle",type:"button",onClick:()=>Y(re=>!re),title:V?"Expand sidebar":"Collapse sidebar","aria-label":V?"Expand sidebar":"Collapse sidebar",children:V?l.jsx(dI,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(fI,{className:"h-4 w-4","aria-hidden":!0})})]}),l.jsxs("nav",{className:"sidebar-nav","aria-label":"Primary",children:[l.jsx(ni,{icon:l.jsx(dP,{}),label:"Overview",active:T==="dashboard",onClick:()=>he("dashboard")}),l.jsx(ni,{icon:l.jsx(Or,{}),label:"Repos / folders",active:T==="repos"||T==="repoDetail",onClick:()=>he("repos")}),l.jsx(ni,{icon:l.jsx(Wa,{}),label:"Models",active:T==="models",onClick:()=>he("models")}),l.jsx(ni,{icon:l.jsx(Ha,{}),label:"Sessions",active:T==="sessions"||T==="sessionDetail",onClick:()=>he("sessions")}),l.jsx(ni,{icon:l.jsx(ur,{}),label:"Agent Friction",active:T==="commands",onClick:()=>he("commands"),badge:t&&t.summary.importantCommandFailures>0?Er(t.summary.importantCommandFailures):void 0}),l.jsx(ni,{icon:l.jsx(yi,{}),label:"Insights",active:T==="insights",onClick:()=>he("insights"),badge:t&&t.health.attentionCount>0?Er(t.health.attentionCount):void 0}),l.jsx(ni,{icon:l.jsx(Ax,{}),label:"RTK",active:T==="rtk",onClick:()=>he("rtk")}),l.jsx(ni,{icon:l.jsx(Mx,{}),label:"Settings",active:T==="settings",onClick:()=>he("settings")})]}),l.jsxs("div",{className:"sidebar-section",children:[l.jsx("div",{className:"sidebar-label",children:"Quick links"}),l.jsxs("div",{className:"quick-links",children:[l.jsx(mc,{href:"https://chatgpt.com/codex/cloud/settings/analytics#usage",label:"Codex usage",icon:l.jsx($l,{}),tone:"codex"}),l.jsx(mc,{href:"https://claude.ai/settings/usage",label:"Claude usage",icon:l.jsx(Dl,{}),tone:"claude"}),l.jsx(mc,{href:"https://cursor.com/dashboard/usage",label:"Cursor usage",icon:l.jsx(Ls,{className:"h-4 w-4","aria-hidden":!0}),tone:"cursor"}),l.jsx(mc,{href:"https://github.com/mehmetdemircs/RepoSpend",label:"GitHub repo",icon:l.jsx(uI,{className:"h-4 w-4","aria-hidden":!0}),tone:"github"})]})]}),l.jsxs("div",{className:"sidebar-status",children:[l.jsx("span",{className:"status-dot"}),l.jsxs("div",{children:[l.jsx("div",{children:"Read-only"}),l.jsx("span",{children:t!=null&&t.appVersion?`v${t.appVersion} · local sources`:"local sources"})]}),l.jsx("button",{className:"icon-button",onClick:()=>window.location.reload(),title:"Refresh","aria-label":"Refresh local scan",type:"button",children:l.jsx(Cl,{className:"h-4 w-4","aria-hidden":!0})})]})]}),l.jsxs("section",{className:"content-shell",children:[l.jsx(PW,{view:T,data:t,filters:m,rangePreset:h,sources:$,sourceApps:ve,repos:F,models:ce,onRefresh:()=>window.location.reload(),onResetFilters:()=>{v("last7"),y({source:[],sourceApp:[],repo:[],model:[],...La("last7")}),T==="repoDetail"&&(b(null),A("repos"))}}),T==="dashboard"||T==="sessions"||T==="repos"||T==="repoDetail"||T==="models"||T==="commands"||T==="insights"?l.jsx(TW,{filters:m,setFilters:y,rangePreset:h,setRangePreset:v,sources:$,sourceApps:ve,repos:F,models:ce,repoNavigationMode:T==="repoDetail",selectedRepo:j,onRepoNavigate:re=>Ae(re),onRepoAll:()=>{b(null),y(re=>({...re,repo:[]})),A("repos")}}):null,!o&&c?l.jsx(fH,{compact:!!t,data:t}):null,o?l.jsx(AH,{message:o}):null,!o&&T==="dashboard"&&!c&&t&&t.sessions.length===0?l.jsxs("div",{className:"mt-4 space-y-4",children:[l.jsx(IT,{data:t,onOpenSettings:()=>he("settings")}),l.jsx(cH,{data:t})]}):null,!o&&t&&T==="settings"?l.jsx(bH,{data:t,draft:C,setDraft:O,status:N,filterSortMode:R,setFilterSortMode:K,displaySettings:L,setDisplaySettings:z,onSave:async()=>{M("Saving local pricing...");const re=await VH(C);n({...t,pricing:re}),M(`Saved pricing to ${re.path??"local pricing file"}. Refreshing cost estimates...`),window.setTimeout(()=>window.location.reload(),250)},onReset:()=>{O(t.pricing.models),M("Reset unsaved edits.")},onClearLocalData:async()=>{M("Clearing RepoSpend local data...");const re=await GH();try{window.localStorage.removeItem("repospend.filterSortMode"),window.localStorage.removeItem("repospend.displaySettings.v2")}catch{}M(`${re.removed?"Removed":"No local data found at"} ${re.path}. Reloading...`),window.setTimeout(()=>window.location.reload(),350)}}):null,!o&&t&&T==="insights"?l.jsx(NH,{data:t,onNavigate:he}):null,!o&&t&&T==="sessions"?l.jsx(wH,{data:t,displaySettings:L,setDisplaySettings:z,onOpenSession:Se}):null,!o&&t&&T==="sessionDetail"?l.jsx(uH,{session:kK(r??t,k),onBack:()=>he("sessions")}):null,!o&&t&&T==="repos"?l.jsx(jH,{data:t,onSelectRepo:Ae,selectedRepo:j,displaySettings:L,setDisplaySettings:z}):null,!o&&t&&T==="repoDetail"?l.jsx(CH,{data:t,selectedRepo:j,dateRangeLabel:yc(h,m),pageSize:L.tablePageSize,onBack:()=>he("repos"),onOpenSession:Se}):null,!o&&t&&T==="models"?l.jsx(SH,{data:t,displaySettings:L,setDisplaySettings:z,onOpenRepo:Ae,onOpenSession:Se,onFilterModel:re=>y(ee=>({...ee,model:[re]}))}):null,!o&&t&&T==="commands"?l.jsx(_H,{data:t,onOpenRepo:Ae,onOpenSession:Se,displaySettings:L,setDisplaySettings:z}):null,!o&&t&&T==="rtk"?l.jsx(qW,{gain:t.rtkGain,pricing:t.pricing,displaySettings:L}):null,!o&&t&&t.sessions.length>0&&T==="dashboard"?l.jsxs("div",{className:"mt-4 space-y-4",children:[l.jsx(MW,{data:t,onOpenRepo:Ae}),l.jsx(IW,{data:t,onNavigate:he,onOpenRepo:Ae,onOpenSession:Se}),l.jsx(RW,{summary:t.summary}),l.jsx($W,{data:t}),l.jsx(UW,{data:t,onOpenRepos:()=>he("repos"),onOpenRepo:Ae,pageSize:L.tablePageSize}),l.jsx(TH,{data:t,onOpenSessions:()=>he("sessions")}),l.jsx("div",{className:"panel p-3",children:l.jsxs("div",{className:"display-control-row",children:[l.jsx(P2,{icon:l.jsx(oP,{}),label:"Chart metric",value:x,onChange:re=>S(re),options:nd}),l.jsx(Sl,{label:"Chart groups",value:L.chartGroupLimit,options:L0,onChange:re=>z({chartGroupLimit:re})})]})}),l.jsxs("div",{className:"overview-chart-stack",children:[l.jsx(NW,{data:t,metric:x}),l.jsxs("div",{className:"overview-chart-pair",children:[l.jsx(yo,{title:`Models: ${Hn(x)}`,className:"overview-chart-panel",children:l.jsx(Qa,{width:"100%",height:284,children:l.jsxs(bl,{data:gc(t.models,x,L.chartGroupLimit),layout:"vertical",margin:{left:16,right:16},children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{type:"number",tickFormatter:re=>wl(x,Number(re)),tick:{fill:"#94a3b8"}}),l.jsx(Xn,{dataKey:"label",type:"category",width:170,tickFormatter:re=>L2(String(re)),tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,formatter:re=>jl(x,Number(re))}),l.jsx(Vn,{dataKey:x,name:Hn(x),fill:"#6d5dfc"})]})})}),l.jsx(yo,{title:`${Hn(x)} by repo`,className:"overview-chart-panel",children:l.jsx(Qa,{width:"100%",height:284,children:l.jsxs(bl,{data:gc(t.repos,x,L.chartGroupLimit),margin:{left:8,right:8,bottom:48},children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{dataKey:"label",angle:-30,textAnchor:"end",height:70,tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Xn,{tickFormatter:re=>wl(x,Number(re)),width:62,tick:{fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,formatter:re=>jl(x,Number(re))}),l.jsx(Vn,{dataKey:x,name:Hn(x),children:gc(t.repos,x,L.chartGroupLimit).map((re,ee)=>l.jsx($f,{fill:xf[ee%xf.length]},ee))})]})})})]})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-[1.1fr_0.9fr]",children:[l.jsx(LW,{sessions:W2(t.sessions).slice(0,6),onOpenSession:Se}),l.jsx(OH,{insights:t.health.keyInsights.slice(0,4),compact:!0})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:t.summary.knownCostSessions>0?"Highest Estimated Cost Sessions":"Largest Sessions"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Sessions to inspect first for estimated API-equivalent cost, token volume, or productivity signals."})]})}),l.jsx(PH,{sessions:jf(t.sessions,t.summary.knownCostSessions>0),pageSize:L.tablePageSize,onOpenSession:Se,onOpenRepo:Ae})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsx(IT,{data:t,onOpenSettings:()=>he("settings")}),l.jsx(DW,{data:t,compact:!0})]})]}):null]})]})}function TW({filters:e,setFilters:t,rangePreset:n,setRangePreset:r,sources:a,sourceApps:o,repos:u,models:c,repoNavigationMode:d=!1,selectedRepo:h,onRepoNavigate:v,onRepoAll:m}){const y=(b,k)=>{if(b==="repo"&&d){k?v==null||v(k):m==null||m();return}t({...e,[b]:hW(e[b],k)})},x=()=>{r("last7"),t({source:[],sourceApp:[],repo:[],model:[],...La("last7")}),d&&(m==null||m())},S=b=>{r(b),b!=="custom"&&t({...e,...La(b)})},j=d&&h?{...e,repo:[h]}:e;return d&&h?l.jsxs("div",{className:"panel repo-compact-filters filter-panel",children:[l.jsxs("div",{className:"repo-compact-filter-row",children:[l.jsx(WT,{value:n,onChange:S}),l.jsx(ri,{icon:l.jsx(xc,{}),iconKind:"source",label:"AI providers",values:e.source,onChange:b=>y("source",b),options:a}),l.jsx(ri,{icon:l.jsx(sg,{}),iconKind:"app",label:"Apps / surfaces",values:e.sourceApp,onChange:b=>y("sourceApp",b),options:o,collapsedLimit:8}),l.jsx(ri,{icon:l.jsx(Wa,{}),iconKind:"model",label:"Model",values:e.model,onChange:b=>y("model",b),options:c,collapsedLimit:10}),l.jsxs("details",{className:"repo-more-filters",children:[l.jsxs("summary",{children:[l.jsx(Mx,{className:"h-4 w-4","aria-hidden":!0}),"More filters"]}),l.jsxs("div",{className:"repo-more-filter-body",children:[l.jsx(ri,{icon:l.jsx(Or,{}),iconKind:"repo",label:"Scoped repo / folder",values:[h],onChange:b=>y("repo",b),options:u}),n==="custom"?l.jsxs("div",{className:"repo-custom-dates",children:[l.jsx(pc,{label:"From",value:ar(e.from),onChange:b=>t({...e,from:b})}),l.jsx(pc,{label:"To",value:ar(e.to),onChange:b=>t({...e,to:b})})]}):l.jsx("div",{className:"text-xs text-slate-500",children:yc(n,e)}),l.jsx(zT,{filters:j,rangePreset:n,sources:a,sourceApps:o,repos:u,models:c,onClearValue:(b,k)=>{if(b==="repo"){m==null||m();return}t({...e,[b]:e[b].filter(_=>_!==k)})},onResetDate:()=>{r("last7"),t({...e,...La("last7")})},onResetAll:x})]})]})]}),n!=="custom"?l.jsx("div",{className:"repo-filter-date-note",children:yc(n,e)}):null]}):l.jsxs("div",{className:"panel p-3 filter-panel",children:[l.jsxs("div",{className:"filter-grid",children:[l.jsx(ri,{icon:l.jsx(xc,{}),iconKind:"source",label:"AI providers",values:e.source,onChange:b=>y("source",b),options:a}),l.jsx(ri,{icon:l.jsx(sg,{}),iconKind:"app",label:"Apps / surfaces",values:e.sourceApp,onChange:b=>y("sourceApp",b),options:o,collapsedLimit:8}),l.jsx(ri,{icon:l.jsx(Or,{}),iconKind:"repo",label:"Repos / folders",values:d&&h?[h]:e.repo,onChange:b=>y("repo",b),options:u,collapsedLimit:12}),l.jsx(ri,{icon:l.jsx(Wa,{}),iconKind:"model",label:"Model",values:e.model,onChange:b=>y("model",b),options:c,collapsedLimit:10}),l.jsx(WT,{value:n,onChange:S})]}),n==="custom"?l.jsxs("div",{className:"mt-3 grid gap-3 md:grid-cols-2",children:[l.jsx(pc,{label:"From",value:ar(e.from),onChange:b=>t({...e,from:b})}),l.jsx(pc,{label:"To",value:ar(e.to),onChange:b=>t({...e,to:b})})]}):l.jsx("div",{className:"mt-3 text-xs text-slate-500",children:yc(n,e)}),l.jsx(zT,{filters:j,rangePreset:n,sources:a,sourceApps:o,repos:u,models:c,onClearValue:(b,k)=>{if(b==="repo"&&d){m==null||m();return}t({...e,[b]:e[b].filter(_=>_!==k)})},onResetDate:()=>{r("last7"),t({...e,...La("last7")})},onResetAll:x})]})}function PW({view:e,data:t,filters:n,rangePreset:r,sources:a,sourceApps:o,repos:u,models:c,onRefresh:d,onResetFilters:h}){const v=CW[e],m=MH(n,r,{sources:a,sourceApps:o,repos:u,models:c}),y=EH(n,r);return l.jsxs("header",{className:"page-header",children:[l.jsxs("div",{className:"page-title-lockup",children:[l.jsx("span",{className:"page-title-icon",children:E.cloneElement(_W[e],{className:"h-5 w-5","aria-hidden":!0})}),l.jsxs("div",{children:[l.jsx("h2",{children:v.title}),l.jsx("p",{children:v.subtitle}),l.jsxs("div",{className:"header-filter-strip","aria-label":"Current dashboard filters",children:[l.jsx("span",{className:"header-filter-chip strong",children:m.date}),l.jsx("span",{className:`header-filter-chip ${y?"attention":""}`,children:m.countLabel}),m.preview.map(x=>l.jsx("span",{className:"header-filter-chip",children:x},x)),y?l.jsx("button",{className:"text-button header-filter-reset",type:"button",onClick:h,children:"Reset"}):null]})]})]}),l.jsxs("div",{className:"page-header-actions",children:[l.jsxs("div",{className:"page-header-badge",title:t!=null&&t.scan.lastScannedAt?`Last scanned ${Kn(t.scan.lastScannedAt)}`:"Waiting for first scan",children:[l.jsx("span",{className:"status-dot"}),t!=null&&t.scan.lastScannedAt?`Last scan ${Kn(t.scan.lastScannedAt)}`:"Local-first · no telemetry"]}),l.jsx("button",{className:"icon-button",onClick:d,title:"Refresh local scan","aria-label":"Refresh local scan",type:"button",children:l.jsx(Cl,{className:"h-4 w-4","aria-hidden":!0})})]})]})}function ni({icon:e,label:t,active:n,onClick:r,badge:a}){return l.jsxs("button",{className:`nav-item ${n?"active":""}`,onClick:r,type:"button",children:[E.cloneElement(e,{className:"h-4 w-4"}),l.jsx("span",{children:t}),a?l.jsx("strong",{className:"nav-badge",children:a}):null]})}function NW({data:e,metric:t}){const n=E.useMemo(()=>AW(e,t),[e,t]),r=Hn(t);return l.jsxs(yo,{title:n.title,className:"overview-chart-panel timeline-chart-panel",children:[l.jsxs("div",{className:"timeline-context-row",children:[l.jsx(ig,{label:"Granularity",value:Ee(n.rows.length,n.granularity==="hour"?"active hour":"active day")}),l.jsx(ig,{label:"Peak",value:n.peak?`${n.peak.fullLabel} · ${AT(t,n.peak.chartValue)}`:"No activity"}),l.jsx(ig,{label:"Average",value:AT(t,n.averageValue)})]}),l.jsx(Qa,{width:"100%",height:n.sparse?232:248,children:n.sparse?l.jsxs(bl,{data:n.rows,margin:{left:8,right:16,bottom:n.rows.length>2?34:10},children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{dataKey:"chartLabel",angle:n.rows.length>2?-18:0,textAnchor:n.rows.length>2?"end":"middle",height:n.rows.length>2?62:36,tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Xn,{tickFormatter:a=>wl(t,Number(a)),width:62,tick:{fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,labelFormatter:(a,o)=>{var u,c;return((c=(u=o==null?void 0:o[0])==null?void 0:u.payload)==null?void 0:c.fullLabel)??""},formatter:a=>jl(t,Number(a))}),l.jsx(Vn,{dataKey:"chartValue",name:r,radius:[5,5,0,0],children:n.rows.map((a,o)=>l.jsx($f,{fill:xf[o%xf.length]},o))})]}):l.jsxs(j2,{data:n.rows,children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{dataKey:"chartLabel",tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Xn,{tickFormatter:a=>wl(t,Number(a)),width:62,tick:{fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,labelFormatter:(a,o)=>{var u,c;return((c=(u=o==null?void 0:o[0])==null?void 0:u.payload)==null?void 0:c.fullLabel)??""},formatter:a=>jl(t,Number(a))}),l.jsx(Wi,{}),l.jsx(Po,{type:"monotone",dataKey:"chartValue",name:r,stroke:"#2dd4bf",strokeWidth:2,dot:{r:3},activeDot:{r:5}})]})})]})}function ig({label:e,value:t}){return l.jsxs("div",{className:"timeline-context-item",children:[l.jsx("span",{children:e}),l.jsx("strong",{children:t})]})}function AW(e,t){const n=NT(e.days,t,"day"),r=NT(e.hours,t,"hour"),a=n.length<=3&&r.length>=4,o=a?"hour":"day",u=a?r:n,c=[...u].sort((v,m)=>m.chartValue-v.chartValue)[0],d=u.length?u.reduce((v,m)=>v+m.chartValue,0)/u.length:0;return{title:a?`${Hn(t)} by active hour`:u.length<=3?`${Hn(t)} by active day`:`${Hn(t)} over time`,granularity:o,rows:u,sparse:a||u.length<=3,peak:c,averageValue:d}}function NT(e,t,n){return[...e].sort((r,a)=>r.id.localeCompare(a.id)).map(r=>({...r,chartLabel:n==="hour"?MT(r.id,"short"):ET(r.id,"short"),fullLabel:n==="hour"?MT(r.id,"long"):ET(r.id,"long"),chartValue:EW(r,t)}))}function EW(e,t){return t==="estimatedCostUsd"?e.estimatedCostUsd??0:e[t]}function AT(e,t){return e==="estimatedCostUsd"?rn(t):ct(Math.round(t))}function ET(e,t){const n=new Date(`${e}T00:00:00`);return Number.isNaN(n.getTime())?e:n.toLocaleDateString(void 0,t==="short"?{month:"short",day:"numeric"}:{dateStyle:"medium"})}function MT(e,t){const n=new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleString(void 0,t==="short"?{month:"short",day:"numeric",hour:"numeric"}:{dateStyle:"medium",timeStyle:"short"})}function MW({data:e,onOpenRepo:t}){const n=e.summary,r=n.knownCostSessions>0,a=e.repos[0],o=n.sessionCount>0?(n.sessionCount-n.noCodeChangeSessions)/n.sessionCount:0,u=n.shellCommandCount>0?n.importantCommandFailures/n.shellCommandCount:0,c=[{label:"Total Tokens",value:l.jsx(Oe,{value:n.totalTokens}),detail:n.skippedZeroTokenSessions>0?l.jsxs("span",{title:`${_x(n.sessionCount,"session")}, ${_x(n.skippedZeroTokenSessions,"zero-token session")} skipped`,children:[Ee(n.sessionCount,"session"),", ",Ee(n.skippedZeroTokenSessions,"zero-token session")," skipped"]}):l.jsx(oe,{value:n.sessionCount,noun:"session"}),icon:l.jsx(Ex,{}),strong:!0,help:l.jsx(vi,{title:"Total tokens",mainValue:ct(n.totalTokens),body:"Total token usage loaded from local AI provider sessions in the current dashboard filter.",note:"RepoSpend avoids overcounting cumulative Codex token checkpoints by using the final valid checkpoint per session where available.",breakdown:[{label:"Input",value:ct(n.inputTokens)},{label:"Cached input",value:ct(n.cachedInputTokens)},{label:"Output",value:ct(n.outputTokens)},{label:"Reasoning",value:ct(n.reasoningTokens)}]})},{label:"API-equivalent Cost",value:l.jsx(Nt,{value:n.estimatedCostUsd,label:r?rn(n.estimatedCostUsd):"Needs token split"}),detail:"Estimate only. Not your actual subscription bill.",icon:l.jsx(sP,{}),strong:!0,help:l.jsx(I2,{value:n.estimatedCostUsd,breakdown:n})},{label:"Top repo / folder",value:a?l.jsx("button",{className:"kpi-link",type:"button",onClick:()=>t(a.id),children:a.label}):"No repo or folder",detail:a?l.jsxs("span",{children:[l.jsx(Oe,{value:a.totalTokens})," · ",l.jsx(Nt,{value:a.estimatedCostUsd})]}):"No repo or folder usage in this view",icon:l.jsx(Or,{}),strong:!0},{label:"Sessions",value:l.jsx(oe,{value:n.sessionCount,noun:"session"}),detail:n.skippedZeroTokenSessions>0?`${Ee(n.skippedZeroTokenSessions,"zero-token placeholder")} skipped`:"Token-bearing local sessions",icon:l.jsx(Ha,{})},{label:"Sessions With File Edits",value:l.jsx(oe,{value:n.sessionCount-n.noCodeChangeSessions,noun:"session"}),detail:n.sessionCount>0?`${hi(o)} of sessions have detected file edits`:"No sessions in this view",icon:l.jsx(Nx,{})},{label:"Important Command Issue Rate",value:l.jsx(mn,{value:u}),detail:n.shellCommandCount>0?`${Ee(n.importantCommandFailures,"important issue")} of ${Ee(n.shellCommandCount,"command")}`:"No shell commands detected",icon:l.jsx(ur,{}),help:l.jsx(vi,{title:"Important command issue rate",mainValue:hi(u),body:"Share of detected shell commands that RepoSpend classified as blocking, repeated, or token-expensive command issues.",note:"Harmless non-zero exits such as search misses and file-existence probes are not counted here.",breakdown:[{label:"Important issues",value:Ee(n.importantCommandFailures,"issue")},{label:"Shell commands",value:Ee(n.shellCommandCount,"command")},{label:"Harmless exits",value:Ee(n.harmlessNonZeroEvents+n.exploratoryMisses,"event")}]})}];return l.jsx("div",{className:"primary-kpi-grid",children:c.map(d=>l.jsxs("div",{className:`panel kpi-card ${d.strong?"kpi-card-strong":""}`,children:[l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsxs("span",{className:"kpi-label",children:[d.label,d.help]}),l.jsx("span",{className:"kpi-icon",children:E.cloneElement(d.icon,{className:"h-4 w-4"})})]}),l.jsx("div",{className:"kpi-value",children:d.value}),d.detail?l.jsx("div",{className:"kpi-detail",children:d.detail}):null]},d.label))})}function IW({data:e,onNavigate:t,onOpenRepo:n,onOpenSession:r}){const a=ZH(e);return a.length?l.jsxs("section",{className:"panel top-actions-card",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Top Actions"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Fastest next checks for the current filters."})]})}),l.jsx("div",{className:"top-actions-list",children:a.map(o=>l.jsxs("button",{className:"top-action-row",type:"button",onClick:()=>{o.sessionId?r(o.sessionId):o.repoId?n(o.repoId):t(o.view)},children:[l.jsx("span",{className:`top-action-icon top-action-${o.tone}`,children:E.cloneElement(o.icon,{className:"h-4 w-4","aria-hidden":!0})}),l.jsxs("span",{children:[l.jsx("strong",{children:o.label}),l.jsx("small",{children:o.detail})]})]},o.label))})]}):null}function RW({summary:e}){return l.jsxs("div",{className:"secondary-metric-grid",children:[l.jsx(W,{label:"Total input tokens",value:l.jsx(Oe,{value:e.inputTokens})}),l.jsx(W,{label:"Output tokens",value:l.jsx(Oe,{value:e.outputTokens})}),l.jsx(W,{label:"Reasoning tokens",value:l.jsx(Oe,{value:e.reasoningTokens})}),l.jsx(W,{label:"Cached input %",value:l.jsx(mn,{value:e.cachedInputPct}),help:l.jsx(vi,{title:"Cached input percentage",mainValue:hi(e.cachedInputPct),body:"How much of the input token volume Codex reported as cached input in the current filter.",note:"Cached input can reduce API-equivalent cost depending on the local pricing table.",breakdown:[{label:"Cached input",value:ct(e.cachedInputTokens)},{label:"Total input",value:ct(e.inputTokens)}]})}),l.jsx(W,{label:"Files edited",value:l.jsx(oe,{value:e.fileEditCount,noun:"file"})}),l.jsx(W,{label:"Commands run",value:l.jsx(oe,{value:e.shellCommandCount,noun:"command"})}),l.jsx(W,{label:"No-edit sessions",value:l.jsx(oe,{value:e.noCodeChangeSessions,noun:"session"})})]})}function $W({data:e}){var o;const[t,n]=E.useState("providers"),r=hK(e,t).filter(u=>u.sessionCount>0||u.totalTokens>0||u.estimatedCostUsd!==void 0),a=[{value:"providers",label:"AI providers"},{value:"apps",label:"Apps / surfaces"}];return l.jsxs("section",{className:"panel source-breakdown-panel",children:[l.jsxs("div",{className:"panel-heading breakdown-heading",children:[l.jsxs("div",{className:"breakdown-heading-text",children:[l.jsx("h2",{children:((o=a.find(u=>u.value===t))==null?void 0:o.label)??"AI providers"}),l.jsxs("p",{className:"text-sm text-slate-600",children:["Providers scanned: ",e.sources.map(u=>u.label).join(", ")]})]}),l.jsx("div",{className:"breakdown-tabs",role:"tablist","aria-label":"Usage breakdown",children:a.map(u=>l.jsx("button",{className:t===u.value?"active":"",type:"button",onClick:()=>n(u.value),children:u.label},u.value))})]}),l.jsxs("div",{className:"source-breakdown-grid",children:[r.map(u=>l.jsxs("div",{className:"source-breakdown-row",children:[u.source?l.jsx(z0,{source:u.source,label:u.label}):l.jsx(B0,{app:u.iconLabel??u.label,surface:u.id}),l.jsx(W,{label:"Sessions",value:l.jsx(oe,{value:u.sessionCount,noun:"session"})}),l.jsx(W,{label:"Tokens",value:l.jsx(Oe,{value:u.totalTokens})}),l.jsx(W,{label:"API-equivalent cost",value:l.jsx(Nt,{value:u.estimatedCostUsd,label:yK(u)})}),l.jsx(W,{label:"Missing token data",value:l.jsx(oe,{value:u.missingTokenSessions,noun:"session"})})]},u.id)),r.length?null:l.jsx("p",{className:"p-2 text-sm text-slate-600",children:"No token-bearing usage in this breakdown for the current filter."})]}),e.sources.some(u=>u.id==="claude"&&u.available)?l.jsx("p",{className:"source-note",children:"Claude Code data found, but token details may be incomplete depending on local files. Cost is API-equivalent where token counts and pricing are available."}):null]})}function IT({data:e,onOpenSettings:t}){const n=e.sources.filter(r=>r.available).map(r=>r.label).join(", ")||"No active providers";return l.jsxs("section",{className:"panel data-health-card",children:[l.jsxs("div",{className:"data-health-main",children:[l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(yi,{className:"mt-1 h-5 w-5 text-teal","aria-hidden":!0}),l.jsxs("div",{children:[l.jsx("h2",{children:"Data Health"}),l.jsx("p",{children:"RepoSpend reads local logs only. No telemetry, no cloud sync, no login."})]})]}),l.jsx("button",{className:"button",type:"button",onClick:t,children:"View data sources"})]}),l.jsxs("div",{className:"data-health-grid",children:[l.jsx(W,{label:"Sessions scanned",value:l.jsx(oe,{value:e.scan.sessionFileCount,noun:"file"})}),l.jsx(W,{label:"Repos / folders discovered",value:l.jsx(oe,{value:e.scan.repoCount,noun:"item"})}),l.jsx(W,{label:"Parser issues",value:e.scan.parseFailureCount?l.jsx(oe,{value:e.scan.parseFailureCount,noun:"issue"}):"No parser issues found"}),l.jsx(W,{label:"Last scan",value:Kn(e.scan.lastScannedAt)}),l.jsx(W,{label:"AI providers",value:n})]})]})}function DW({data:e,compact:t=!1}){const n=V0(e);return l.jsxs("section",{className:`panel token-accuracy-card ${t?"token-accuracy-compact":""}`,children:[l.jsx("div",{className:"token-accuracy-main",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(Ex,{className:"mt-1 h-5 w-5 text-teal","aria-hidden":!0}),l.jsxs("div",{children:[l.jsx("h2",{children:"Token Counting"}),l.jsx("p",{children:"Using provider-specific token records without summing repeated cumulative checkpoints."}),t?null:l.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"Codex token_count events may be cumulative. RepoSpend avoids overcounting by using the final valid checkpoint per session when cumulative checkpoints are detected."})]})]})}),l.jsxs("div",{className:"token-accuracy-grid",children:[l.jsx(W,{label:"Aggregation",value:n.methodLabel,help:l.jsx(vi,{title:"Token aggregation method",mainValue:n.methodLabel,body:"How RepoSpend counted tokens for the sessions in this view.",note:"A token checkpoint is a Codex token_count reading captured during a session. Because these readings may be cumulative, RepoSpend prefers the final valid checkpoint instead of summing repeated readings.",breakdown:[{label:"Checkpoints parsed",value:Ee(n.tokenSnapshots,"checkpoint")},{label:"Sessions with token data",value:Ee(n.sessionsWithTokenData,"session")},{label:"Missing token data",value:Ee(n.sessionsMissingTokenData,"session")}]})}),l.jsx(W,{label:"Confidence",value:n.confidenceLabel}),l.jsx(W,{label:"Token checkpoints",value:l.jsx(oe,{value:n.tokenSnapshots,noun:"checkpoint"})}),l.jsx(W,{label:"Sessions with token data",value:l.jsx(oe,{value:n.sessionsWithTokenData,noun:"session"})}),l.jsx(W,{label:"Missing token data",value:l.jsx(oe,{value:n.sessionsMissingTokenData,noun:"session"})})]})]})}function LW({sessions:e,onOpenSession:t}){return l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsx("h2",{children:"Recent Sessions"}),l.jsx("span",{className:"text-xs text-slate-500",children:"Recent activity worth scanning"})]}),l.jsx("div",{className:"session-list",children:e.length?e.map(n=>l.jsxs("button",{className:"session-row session-row-rich session-row-button",type:"button",onClick:()=>t(n.id),children:[l.jsx("div",{className:"session-icon",children:l.jsx(Ha,{className:"h-4 w-4","aria-hidden":!0})}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"truncate text-sm font-semibold",title:Pt(n),children:Pt(n)}),l.jsxs("div",{className:"truncate text-xs text-slate-500",children:[l.jsx(mi,{name:n.repoName,verified:od(n)})," · ",pi(n.sourceClient)," · ",n.sourceApp||Mr(n.detectedSurface)," · ",n.startedAt?n.startedAt.slice(0,10):"Unknown date"]}),l.jsx(sd,{labels:H0(n)})]}),l.jsxs("div",{className:"text-right",children:[l.jsx("div",{className:"text-sm font-semibold",children:l.jsx(Oe,{value:n.totalTokens,showUnit:!1})}),l.jsx("div",{className:"text-xs text-slate-500",children:l.jsx(Nt,{value:n.estimatedCostUsd})})]})]},n.id)):l.jsx("p",{className:"p-4 text-sm text-slate-600",children:"No sessions in this view."})})]})}function UW({data:e,onOpenRepos:t,onOpenRepo:n,pageSize:r}){const a=Ul(e).slice(0,Math.min(r,10));return l.jsxs("section",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Or,{className:"h-4 w-4 text-teal","aria-hidden":!0}),l.jsx("h2",{children:"Top repos / folders"})]}),l.jsx("p",{className:"text-sm text-slate-600",children:"Repo/folder-level usage is the main RepoSpend view: tokens, API-equivalent cost, sessions, edits, command friction, and token intensity."})]}),l.jsx("button",{className:"button",type:"button",onClick:t,children:"Open repos / folders"})]}),l.jsx("div",{className:"p-4",children:a.length?l.jsx(C2,{repos:a,onSelect:n,selectedRepo:null,compact:!0,pageSize:Math.min(r,10)}):l.jsx("p",{className:"text-sm text-slate-600",children:"No repos or folders matched this filter."})})]})}function qW({gain:e,pricing:t,displaySettings:n}){const[r,a]=E.useState(null),o=e.rtkTopSavingsCommands??e.topCommands,u=e.rtkRecentActivity??e.recentCommands,c=e.rtkCoverageGaps??[],d=e.rtkUnhandledCommands??[],h=e.rtkCommandsProcessed??e.totalCommands,v=e.rtkSavingsRate??e.savedPercent,m=e.rtkTokensSaved??e.tokensSaved,y=e.rtkAverageCommandRuntime??e.averageExecTime,x=si(m),S=si(e.inputTokens)??((si(e.outputTokens)??0)+(x??0)||void 0),j=si(e.outputTokens)??(S!==void 0&&x!==void 0?Math.max(S-x,0):void 0),b=TK(x,t),k=o.slice(0,3).map(C=>xo(C.command)),_=G2(o,{key:"saved",direction:"desc"})[0],T=[x!==void 0&&h!==void 0?`RTK avoided about ${ct(x)} across ${Ee(h,"command")}.`:void 0,k.length?`Most savings came from ${PK(k)}.`:void 0,v!==void 0?`Average command reduction was ${v.toFixed(1)}%.`:void 0,y?`Average command runtime was ${y}.`:void 0,_!=null&&_.command?`Top saving command: ${xo(_.command)}.`:void 0].filter(Boolean),A=AK({gain:e,topCommand:_,commandsProcessed:h,savingsRate:v,coverageGaps:c});return e.available?l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsx($T,{gain:e}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"RTK Insights"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Token savings from RTK command proxy."})]})}),l.jsx("div",{className:"space-y-4 p-4",children:l.jsxs("div",{className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:[l.jsx(W,{label:"Tokens avoided",value:x===void 0?m??"Unknown":l.jsx(Oe,{value:x})}),l.jsx(W,{label:"Estimated cost avoided",value:b===void 0?"Unavailable":rn(b),help:l.jsx(vi,{title:"Estimated cost avoided",mainValue:b===void 0?"Unavailable":rn(b),body:"Approximate API-equivalent cost avoided from RTK-compressed command output.",note:"This is an estimate from avoided input-context tokens and local pricing assumptions, not a bill or billing credit.",breakdown:[{label:"Tokens avoided",value:x===void 0?"Unavailable":ct(x)},{label:"Assumed rate",value:`$${K2(t).toFixed(2)} / 1M input tokens`}],footer:l.jsx("a",{className:"text-button",href:"/settings",children:"View pricing assumptions"})})}),l.jsx(W,{label:"Average reduction",value:v===void 0?"Unknown":`${v.toFixed(1)}%`,help:l.jsx(vi,{title:"Average reduction",mainValue:v===void 0?"Unknown":`${v.toFixed(1)}%`,body:"RTK savings rate comes from the local rtk gain report.",note:"This is an estimate of avoided LLM context tokens, not a billing credit or invoice adjustment.",breakdown:[{label:"Estimated tokens saved",value:m??"Unavailable"},{label:"Commands processed",value:h===void 0?"Unknown":Ee(h,"command")}]})}),l.jsx(W,{label:"Optimised commands",value:h===void 0?"Unknown":l.jsx(oe,{value:h,noun:"command"})})]})})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsx(WW,{withoutRtkTokens:S,withRtkTokens:j,avoidedTokens:x,savingsRate:v}),l.jsxs("div",{className:"panel p-4",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(yi,{className:"h-4 w-4 text-teal","aria-hidden":!0}),l.jsx("h2",{children:"Plain English summary"})]}),T.length?l.jsx("ul",{className:"plain-summary-list mt-3",children:T.map(C=>l.jsx("li",{children:C},C))}):l.jsx("p",{className:"mt-3 text-sm text-slate-600",children:"The current local RTK report does not include enough summary data yet."})]})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Top RTK Commands"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Commands where RTK changed token volume the most."})]})}),l.jsx("div",{className:"p-4",children:o.length?l.jsx(KW,{commands:o,pageSize:n.tablePageSize}):l.jsx("p",{className:"text-sm text-slate-600",children:"No RTK command savings breakdown reported."})})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsx(UT,{gain:e}),l.jsx(LT,{actions:A})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsx("h2",{children:"Recent RTK Activity"}),l.jsx("span",{className:"text-xs text-slate-500",children:"Latest local RTK command history"})]}),l.jsx("div",{className:"p-4",children:u.length?l.jsx(VW,{commands:u}):l.jsx("p",{className:"text-sm text-slate-600",children:"No recent RTK activity reported."})})]}),l.jsx(HW,{commands:d})]}),l.jsx(DT,{}),l.jsx(RT,{gain:e}),l.jsxs("details",{className:"panel overflow-hidden",children:[l.jsx("summary",{className:"advanced-summary",children:"Developer details"}),l.jsxs("div",{className:"developer-details-actions",children:[l.jsxs("button",{className:"button",type:"button",onClick:()=>IK(e.raw,a),children:[l.jsx(vc,{className:"h-4 w-4","aria-hidden":!0}),"Copy raw report"]}),l.jsxs("button",{className:"button",type:"button",onClick:()=>q0("repospend-rtk-report.txt",e.raw),children:[l.jsx(Sf,{className:"h-4 w-4","aria-hidden":!0}),"Download raw report"]}),r?l.jsx("span",{className:"text-xs text-slate-500",children:r}):null]}),l.jsx("pre",{className:"raw-output",children:e.raw})]})]}):l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsx($T,{gain:e}),l.jsx(zW,{}),l.jsx(DT,{}),l.jsx(UT,{gain:e}),l.jsx(LT,{actions:A}),l.jsx(RT,{gain:e})]})}function RT({gain:e}){return l.jsxs("div",{className:"panel p-4",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(Ax,{className:"h-4 w-4 text-plum","aria-hidden":!0}),l.jsx("h2",{children:"Diagnostics"})]}),l.jsxs("div",{className:"mt-3 grid gap-3 md:grid-cols-2",children:[l.jsx(W,{label:"RTK detected",value:e.rtkDetected??e.available?"Detected":"Not detected"}),l.jsx(W,{label:"RTK version",value:e.rtkVersion??"Unknown"}),l.jsx(W,{label:"Codex hook",value:WH(e.rtkCodexHookStatus)}),l.jsx(W,{label:"Last RTK activity",value:e.rtkLastActivityAt?Kn(e.rtkLastActivityAt):"Unknown"}),l.jsx(W,{label:"Data source",value:e.rtkDataSource??"rtk gain output unavailable"})]}),e.rtkVersion?null:l.jsx("p",{className:"mt-2 text-xs text-slate-500",children:"RTK version is unavailable because the local report did not expose it or `rtk --version` could not be read."}),e.rtkCodexHookStatus==="unknown"||e.rtkCodexHookStatus===void 0?l.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"Codex hook status is unknown because the current local RTK report does not expose hook state."}):null]})}function $T({gain:e}){const t=e.available&&(e.rtkDetected??!0);return l.jsx("div",{className:`panel rtk-health-banner ${t?"rtk-health-good":"rtk-health-critical"}`,children:l.jsxs("div",{className:"flex items-start gap-3",children:[t?l.jsx(yi,{className:"mt-1 h-5 w-5","aria-hidden":!0}):l.jsx(ur,{className:"mt-1 h-5 w-5","aria-hidden":!0}),l.jsxs("div",{children:[l.jsx("h2",{children:t?"RTK detected":"RTK is not detected"}),l.jsx("p",{children:t?"RepoSpend can read local RTK activity, so token-savings insights are available.":"RepoSpend cannot find RTK data on this machine. Install RTK and connect it to your AI tool to track how many tokens it saves on command output."}),t?null:l.jsxs("p",{className:"mt-1 text-xs",children:["Try running ",l.jsx("code",{children:"rtk gain --history"})," in your terminal to confirm RTK is installed and producing a local report."]}),t&&e.rtkCodexHookStatus==="unknown"?l.jsx("p",{className:"mt-1 text-xs",children:"Codex hook status is unknown from the current RTK report."}):null]})]})})}function FW(){return navigator.userAgent.toLowerCase().includes("win")?"windows":"unix"}const BW=[{tool:"Claude Code / Copilot",cmd:"rtk init -g"},{tool:"Gemini CLI",cmd:"rtk init -g --gemini"},{tool:"Codex",cmd:"rtk init -g --codex"},{tool:"Cursor",cmd:"rtk init -g --agent cursor"},{tool:"Windsurf",cmd:"rtk init --agent windsurf"},{tool:"Cline / Roo Code",cmd:"rtk init --agent cline"},{tool:"Kilo Code",cmd:"rtk init --agent kilocode"},{tool:"Google Antigravity",cmd:"rtk init --agent antigravity"},{tool:"Hermes",cmd:"rtk init --agent hermes"}];function zW(){const[e,t]=E.useState(FW),[n,r]=E.useState(null);function a(u,c){navigator.clipboard.writeText(u).then(()=>{r(c),window.setTimeout(()=>r(null),1800)}).catch(()=>{})}const o=e==="windows"?"winget install -e --id rtk-ai.rtk":"curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh | sh";return l.jsxs("div",{className:"panel p-4",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(Sf,{className:"h-4 w-4 text-teal","aria-hidden":!0}),l.jsx("h2",{children:"Install RTK"})]}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"RTK is a single binary with no dependencies. Three steps to enable token savings tracking."}),l.jsxs("div",{className:"breakdown-tabs mt-3",children:[l.jsx("button",{type:"button",className:e==="windows"?"active":"",onClick:()=>t("windows"),children:"Windows"}),l.jsx("button",{type:"button",className:e==="unix"?"active":"",onClick:()=>t("unix"),children:"macOS / Linux"})]}),l.jsxs("ol",{className:"mt-4 space-y-5",children:[l.jsxs("li",{children:[l.jsx("p",{className:"text-sm font-medium text-slate-400",children:"1. Install the binary"}),l.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[l.jsx("code",{className:"rtk-install-cmd",children:o}),l.jsxs("button",{type:"button",className:"button shrink-0",onClick:()=>a(o,"install"),children:[l.jsx(vc,{className:"h-3.5 w-3.5","aria-hidden":!0}),n==="install"?"Copied":"Copy"]})]})]}),l.jsxs("li",{children:[l.jsx("p",{className:"text-sm font-medium text-slate-400",children:"2. Wire up your AI tool"}),l.jsx("div",{className:"mt-1.5 space-y-1.5",children:BW.map(({tool:u,cmd:c})=>l.jsxs("div",{className:"rtk-init-row",children:[l.jsx("span",{className:"rtk-tool-label",children:u}),l.jsx("code",{className:"rtk-install-cmd",children:c}),l.jsxs("button",{type:"button",className:"button shrink-0",onClick:()=>a(c,c),children:[l.jsx(vc,{className:"h-3.5 w-3.5","aria-hidden":!0}),n===c?"Copied":"Copy"]})]},c))}),l.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:"Restart your AI tool after running the relevant command."})]}),l.jsxs("li",{children:[l.jsx("p",{className:"text-sm font-medium text-slate-400",children:"3. Verify"}),l.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[l.jsx("code",{className:"rtk-install-cmd",children:"rtk gain"}),l.jsxs("button",{type:"button",className:"button shrink-0",onClick:()=>a("rtk gain","verify"),children:[l.jsx(vc,{className:"h-3.5 w-3.5","aria-hidden":!0}),n==="verify"?"Copied":"Copy"]})]}),l.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"If you see token stats, RTK is working. Refresh this page to load your data."})]})]})]})}function DT(){return l.jsxs("div",{className:"panel p-4",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(yi,{className:"h-4 w-4 text-teal","aria-hidden":!0}),l.jsx("h2",{children:"What RTK does"})]}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"RTK wraps common developer commands and compresses their output before it reaches the LLM context. RepoSpend reads local RTK activity and estimates how many tokens were avoided."})]})}function WW({withoutRtkTokens:e,withRtkTokens:t,avoidedTokens:n,savingsRate:r}){const a=Math.max(e??0,t??0,n??0);return l.jsxs("div",{className:"panel p-4",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(Nx,{className:"h-4 w-4 text-plum","aria-hidden":!0}),l.jsx("h2",{children:"RTK Impact"})]}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"Command output tokens before RTK compression versus the smaller output sent onward."}),l.jsxs("div",{className:"rtk-impact-stats",children:[l.jsx(W,{label:"Before RTK",value:e===void 0?"Unavailable":l.jsx(Oe,{value:e})}),l.jsx(W,{label:"After RTK",value:t===void 0?"Unavailable":l.jsx(Oe,{value:t})}),l.jsx(W,{label:"Saved",value:n===void 0?"Unavailable":l.jsx(Oe,{value:n})})]}),l.jsxs("div",{className:"rtk-impact-bars",children:[l.jsx(ag,{label:"Original command output",value:e,maxValue:a,tone:"before"}),l.jsx(ag,{label:"RTK output sent",value:t,maxValue:a,tone:"after"}),l.jsx(ag,{label:"Avoided tokens",value:n,maxValue:a,tone:"saved"})]}),l.jsxs("div",{className:"rtk-impact-footer",children:[l.jsx("span",{children:"Reduction"}),l.jsx("strong",{children:r===void 0?"Unavailable":`${r.toFixed(1)}%`})]})]})}function ag({label:e,value:t,maxValue:n,tone:r}){const a=t!==void 0&&n>0?Math.max(2,t/n*100):0;return l.jsxs("div",{className:"rtk-impact-row",children:[l.jsxs("div",{className:"rtk-impact-label",children:[l.jsx("span",{children:e}),l.jsx("strong",{children:t===void 0?"Unavailable":ct(t)})]}),l.jsx("div",{className:`rtk-impact-track rtk-impact-${r}`,children:t===void 0?null:l.jsx("div",{style:{width:`${Math.min(a,100)}%`}})})]})}function LT({actions:e}){return l.jsxs("div",{className:"panel p-4",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(ur,{className:"h-4 w-4 text-amber-400","aria-hidden":!0}),l.jsx("h2",{children:"Recommended next actions"})]}),e.length?l.jsx("ul",{className:"action-list mt-3",children:e.map(t=>l.jsx("li",{children:t},t))}):l.jsx("p",{className:"mt-3 text-sm text-slate-600",children:"No RTK follow-up actions found from this report."})]})}function UT({gain:e}){const t=e.rtkCoverageGaps??[];return l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"RTK Coverage Gaps"}),l.jsxs("p",{className:"text-sm text-slate-600",children:["Commands found by local ",l.jsx("code",{children:"rtk discover --all --since 7"})," that could be routed through RTK."]})]}),l.jsx("span",{className:"text-xs text-slate-500",children:e.rtkDiscoverSummary??"Local discovery"})]}),l.jsx("div",{className:"p-4",children:t.length?l.jsx("div",{className:"table-wrap",children:l.jsxs("table",{className:"compact-table rtk-coverage-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Command"}),l.jsx("th",{children:"Runs"}),l.jsx("th",{children:"Use RTK"}),l.jsx("th",{children:"Saveable tokens"})]})}),l.jsx("tbody",{children:t.slice(0,8).map(n=>l.jsxs("tr",{children:[l.jsx("td",{className:"font-mono text-xs",title:n.command,children:n.command}),l.jsx("td",{children:n.count===void 0?"Unknown":l.jsx(oe,{value:n.count,noun:"run"})}),l.jsx("td",{children:n.rtkEquivalent??"Unknown"}),l.jsx("td",{children:n.estimatedSavings??"Unknown"})]},`${n.command}-${n.rtkEquivalent}`))})]})}):l.jsx("p",{className:"text-sm text-slate-600",children:e.rtkDiscoverAvailable===!1?`Coverage discovery could not run locally${e.rtkDiscoverError?`: ${e.rtkDiscoverError}`:"."}`:"No RTK coverage gaps were reported by local discovery."})})]})}function HW({commands:e}){return l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Unhandled Commands"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Commands seen locally that RTK may not optimise yet."})]})}),l.jsx("div",{className:"p-4",children:e.length?l.jsx("div",{className:"table-wrap",children:l.jsxs("table",{className:"compact-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Command"}),l.jsx("th",{children:"Runs"}),l.jsx("th",{children:"Example"})]})}),l.jsx("tbody",{children:e.slice(0,8).map(t=>l.jsxs("tr",{children:[l.jsx("td",{className:"font-mono text-xs",children:t.command}),l.jsx("td",{children:t.count===void 0?"Unknown":l.jsx(oe,{value:t.count,noun:"run"})}),l.jsx("td",{className:"max-w-96 truncate font-mono text-xs",title:t.example,children:t.example??"No example"})]},`${t.command}-${t.example}`))})]})}):l.jsx("p",{className:"text-sm text-slate-600",children:"No unhandled command suggestions were reported by local discovery."})})]})}function KW({commands:e,pageSize:t}){const[n,r]=E.useState({key:"saved",direction:"desc"}),a=E.useMemo(()=>G2(e,n),[e,n]),o=fi(a,t);return l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"compact-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx(je,{label:"Command",column:"command",sort:n,setSort:r}),l.jsx(je,{label:"Runs",column:"count",sort:n,setSort:r}),l.jsx(je,{label:"Tokens avoided",column:"saved",sort:n,setSort:r}),l.jsx(je,{label:"Avg reduction",column:"reduction",sort:n,setSort:r}),l.jsx(je,{label:"Avg runtime",column:"runtime",sort:n,setSort:r})]})}),l.jsx("tbody",{children:o.items.map(u=>l.jsxs("tr",{children:[l.jsx("td",{className:"font-mono text-xs",title:u.command,children:xo(u.command)}),l.jsx("td",{children:u.count===void 0?"Unknown":l.jsx(oe,{value:u.count,noun:"run"})}),l.jsx("td",{children:u.saved??"Unknown"}),l.jsx("td",{children:u.averageSavedPercent===void 0?"Unknown":`${u.averageSavedPercent.toFixed(1)}%`}),l.jsx("td",{children:u.time??"Unknown"})]},`${u.command}-${u.saved}-${u.time}`))})]}),l.jsx(ci,{page:o.page,pageCount:o.pageCount,total:a.length,pageSize:t,onPageChange:o.setPage})]})}function VW({commands:e}){return l.jsx("ul",{className:"recent-rtk-list",children:e.map(t=>{const n=NK(t);return l.jsxs("li",{className:"recent-rtk-item",children:[l.jsx("span",{className:"recent-rtk-time",children:n.time??"Recent"}),l.jsx("span",{className:"recent-rtk-command",title:n.command,children:n.command}),l.jsx("span",{className:"recent-rtk-savings",children:n.savings??"No savings reported"})]},t)})})}function C2({repos:e,onSelect:t,selectedRepo:n,compact:r=!1,pageSize:a,onPageSizeChange:o}){const[u,c]=E.useState({key:"cost",direction:"desc"}),d=E.useMemo(()=>gK(e,u),[e,u]),h=fi(d,a);return l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:r?"compact-table repo-table":"repo-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx(je,{label:"Repo / folder",column:"repo",sort:u,setSort:c}),l.jsx(je,{label:"API-equivalent cost",column:"cost",sort:u,setSort:c}),l.jsx(je,{label:"Total tokens",column:"tokens",sort:u,setSort:c}),l.jsx(je,{label:"Sessions",column:"sessions",sort:u,setSort:c}),r?null:l.jsx(je,{label:"Total input",column:"input",sort:u,setSort:c}),r?null:l.jsx(je,{label:"Cached input",column:"cached",sort:u,setSort:c}),r?null:l.jsx(je,{label:"Output",column:"output",sort:u,setSort:c}),r?null:l.jsx(je,{label:"Reasoning",column:"reasoning",sort:u,setSort:c}),l.jsx(je,{label:"Files edited",column:"files",sort:u,setSort:c}),l.jsx(je,{label:"Tokens per edit",column:"roi",sort:u,setSort:c}),r?null:l.jsx(je,{label:"Cache hit",column:"cache",sort:u,setSort:c}),l.jsx(je,{label:"Warnings",column:"warnings",sort:u,setSort:c})]})}),l.jsx("tbody",{children:h.items.map(v=>l.jsxs("tr",{onClick:()=>t(v.id),onKeyDown:m=>Ba(m,()=>t(v.id)),className:`clickable-row ${n===v.id?"selected":""}`,role:"button",tabIndex:0,children:[l.jsx("td",{className:"font-medium",children:l.jsx(mi,{name:v.label,verified:v.verified===!0})}),l.jsx("td",{children:l.jsx(Nt,{value:v.estimatedCostUsd,breakdown:v})}),l.jsx("td",{children:l.jsx(Oe,{value:v.totalTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:v.sessionCount,noun:"session",showUnit:!1})}),r?null:l.jsx("td",{children:l.jsx(Oe,{value:v.inputTokens,showUnit:!1})}),r?null:l.jsx("td",{children:l.jsx(Oe,{value:v.cachedInputTokens,showUnit:!1})}),r?null:l.jsx("td",{children:l.jsx(Oe,{value:v.outputTokens,showUnit:!1})}),r?null:l.jsx("td",{children:l.jsx(Oe,{value:v.reasoningTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:v.fileEditCount,noun:"file",showUnit:!1})}),l.jsx("td",{children:l.jsx(W0,{label:v.tokenRoiLabel,title:v.tokenRoiTitle})}),r?null:l.jsx("td",{children:l.jsx(mn,{value:v.inputTokens?v.cachedInputTokens/v.inputTokens:0})}),l.jsx("td",{children:l.jsx($H,{warnings:v.warnings,commandIssueCount:v.failedCommandCount})})]},v.id))})]}),l.jsx(ci,{page:h.page,pageCount:h.pageCount,total:d.length,pageSize:a,onPageChange:h.setPage,...o?{pageSizeOptions:No,onPageSizeChange:o}:{}})]})}function GW({repo:e,sessions:t,allRepos:n,data:r,dateRangeLabel:a,pageSize:o,onOpenSession:u}){const[c,d]=E.useState("overview"),[h,v]=E.useState(""),[m,y]=E.useState(""),[x,S]=E.useState(id);if(E.useEffect(()=>{d("overview"),v(""),y("")},[e==null?void 0:e.id]),!e)return l.jsxs("div",{className:"panel p-5",children:[l.jsx("h2",{className:"text-base font-semibold",children:"Repo / folder detail"}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"No repo or folder selected. Select one to inspect token shape, warnings, and recent sessions."})]});const j=XH(e,t),b=FH(j,t),k=JH(j,t),_=k.extreme?"expensive_session_concentration":b[0],T=eK(t,j),A=t.filter(R=>F2(R,h)&&nP(R,m,t)),C=[{key:"overview",label:"Overview"},{key:"sessions",label:"Sessions"},{key:"cost",label:"Cost & Tokens"},{key:"files",label:"Files"},{key:"commands",label:"Commands"},{key:"metadata",label:"Metadata"}],O=rK(t),N=R2(t,j)[0],M=aK(j);return l.jsxs("div",{className:"repo-detail-page",children:[l.jsxs("section",{className:"panel repo-hero",children:[l.jsxs("div",{className:"repo-hero-main",children:[l.jsx("div",{className:"repo-hero-eyebrow",children:a}),l.jsx("h2",{children:l.jsx(mi,{name:e.label,verified:e.verified===!0})}),l.jsxs("p",{children:[e.label," — ",Ee(j.sessionCount,"session")," · ",rn(j.estimatedCostUsd)," estimated · ",ct(j.totalTokens)," · ",Ee(j.fileEditCount,"file")," edited"]}),l.jsxs("p",{className:"repo-hero-warning",children:[l.jsx(ur,{className:"h-4 w-4","aria-hidden":!0}),"Top warning: ",_?ql(_):"No major repo/folder warning detected in this filtered view."]}),l.jsx("p",{className:"repo-cost-note",children:"Estimated API-equivalent cost. This is not your actual subscription bill."})]}),l.jsxs("div",{className:"repo-hero-metrics",children:[l.jsx(W,{label:"Estimated cost",value:l.jsx(Nt,{value:j.estimatedCostUsd,breakdown:j})}),l.jsx(W,{label:"Total tokens",value:l.jsx(Oe,{value:j.totalTokens})}),l.jsx(W,{label:"Sessions",value:l.jsx(oe,{value:j.sessionCount,noun:"session"})}),l.jsx(W,{label:"Files edited",value:l.jsx(oe,{value:j.fileEditCount,noun:"file"})})]})]}),l.jsx("div",{className:"repo-detail-tabs",role:"tablist","aria-label":"Repo or folder detail sections",children:C.map(R=>l.jsx("button",{className:c===R.key?"active":"",type:"button",role:"tab","aria-selected":c===R.key,onClick:()=>d(R.key),children:R.label},R.key))}),c==="overview"?l.jsxs("div",{className:"repo-tab-body",children:[l.jsxs("div",{className:"repo-overview-grid",children:[l.jsx(XW,{repo:j,sessions:t,concentration:k,topModel:N}),l.jsx(YW,{concentration:k,sessions:t,...u?{onOpenSession:u}:{}})]}),l.jsxs("div",{className:"repo-detail-summary",children:[l.jsx(W,{label:"Estimated cost",value:l.jsx(Nt,{value:j.estimatedCostUsd,breakdown:j})}),l.jsx(W,{label:"Total tokens",value:l.jsx(Oe,{value:j.totalTokens})}),l.jsx(W,{label:"Files edited",value:l.jsx(oe,{value:j.fileEditCount,noun:"file"})}),l.jsx(W,{label:"Command issues",value:l.jsx(oe,{value:j.failedCommandCount,noun:"issue"})}),l.jsx(W,{label:"Tokens per edit",value:l.jsx(W0,{label:j.tokenRoiLabel,title:j.tokenRoiTitle})}),l.jsx(W,{label:"Interpretation",value:M}),l.jsx(W,{label:"Top model",value:N?N.label:"Unknown"}),l.jsx(W,{label:"Cache reuse",value:l.jsx(mn,{value:j.inputTokens?j.cachedInputTokens/j.inputTokens:0})})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-[1.1fr_0.9fr]",children:[l.jsx(QW,{sessions:T,...u?{onOpenSession:u}:{}}),l.jsx(ZW,{warnings:b})]}),l.jsx(JW,{repo:j,allRepos:n})]}):null,c==="sessions"?l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Sessions"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Sorted, searchable sessions for this repo or folder. Cost outliers are highlighted."})]}),l.jsx("div",{className:"panel-actions",children:l.jsx(O2,{columns:x,setColumns:S})})]}),l.jsxs("div",{className:"session-controls",children:[l.jsxs("label",{className:"search-field",children:[l.jsx(bo,{className:"h-4 w-4","aria-hidden":!0}),l.jsx("input",{value:h,onChange:R=>v(R.target.value),placeholder:"Search sessions..."})]}),l.jsxs("div",{className:"quick-filter-row",children:[l.jsx("button",{className:`quick-filter ${m===""?"active":""}`,type:"button",onClick:()=>y(""),children:"All"}),[["expensive","Expensive"],["partial","Partial"],["longRunning","Long-running"],["commandIssues","Command issues"],["opusOnly","Opus only"]].map(([R,K])=>l.jsx("button",{className:`quick-filter ${m===R?"active":""}`,disabled:!t.some(L=>nP(L,R,t)),type:"button",onClick:()=>y(R),children:K},R))]})]}),A.length?l.jsx(_2,{sessions:A,pageSize:o,...u?{onSelectSession:u}:{},visibleColumns:x}):l.jsx(T2,{title:"No sessions matched this filter.",text:"Try clearing search or quick filters."})]}):null,c==="cost"?l.jsx(eH,{repo:j,sessions:t}):null,c==="files"?l.jsx(tH,{repo:j,sessions:t}):null,c==="commands"?l.jsx(nH,{sessions:t,commandTotals:O,...u?{onOpenSession:u}:{}}):null,c==="metadata"?l.jsx(rH,{repo:j,sessions:t,data:r}):null]})}function XW({repo:e,sessions:t,concentration:n,topModel:r}){const a=iK(e,t,n,r);return l.jsxs("div",{className:"detail-card repo-diagnosis-card",children:[l.jsx("h3",{children:"Repo diagnosis"}),l.jsx("p",{className:"repo-diagnosis-text",children:a}),l.jsxs("div",{className:"repo-diagnosis-points",children:[l.jsx("span",{children:r?`${r.label} drives ${hi(r.costShare)} of known repo cost.`:"Model cost driver is unavailable."}),l.jsx("span",{children:e.failedCommandCount>0?`${Ee(e.failedCommandCount,"important command issue")} detected.`:"No important command issues were detected."}),l.jsx("span",{children:e.fileEditCount>0?"File edit counts were detected, but stable paths may be unavailable.":"No file edits were detected in this filtered view."})]})]})}function YW({concentration:e,sessions:t,onOpenSession:n}){const r=Math.max(...e.topSessions.map(a=>a.estimatedCostUsd??0),0);return l.jsxs("div",{className:`detail-card repo-concentration-card ${e.extreme?"repo-warning-card":""}`,children:[l.jsx("h3",{children:"Cost concentration"}),l.jsxs("div",{className:"repo-concentration-stats",children:[l.jsx(W,{label:"Most expensive session",value:l.jsx(Nt,{value:e.topSessionCost})}),l.jsx(W,{label:"Top session share",value:l.jsx(mn,{value:e.topSessionShare})}),l.jsx(W,{label:"Top 3 sessions",value:l.jsx(Nt,{value:e.topThreeCost})}),l.jsx(W,{label:"Top 3 share",value:l.jsx(mn,{value:e.topThreeShare})})]}),e.extreme?l.jsx("p",{className:"warning-text mt-3",children:"Cost concentration is very high. One session accounts for most of this repo or folder’s estimated cost."}):null,l.jsxs("div",{className:"repo-concentration-list",children:[e.topSessions.map(a=>{const o=r>0&&a.estimatedCostUsd!==void 0?Math.max(4,a.estimatedCostUsd/r*100):0;return l.jsxs("button",{className:"repo-concentration-row",type:"button",onClick:()=>n==null?void 0:n(a.id),children:[l.jsx("span",{title:Pt(a),children:Pt(a)}),l.jsx("strong",{children:l.jsx(Nt,{value:a.estimatedCostUsd,session:a})}),l.jsx("div",{className:"repo-bar",children:l.jsx("div",{style:{width:`${Math.min(o,100)}%`,background:"#f59e0b"}})})]},a.id)}),t.length?null:l.jsx("p",{className:"text-sm text-slate-600",children:"No sessions matched this repo or folder."})]})]})}function QW({sessions:e,onOpenSession:t}){return l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Top sessions to review"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Picked by cost, duration, outcome, command issues, and unusual token volume."})]})}),l.jsxs("div",{className:"repo-review-list",children:[e.map(({session:n,reason:r})=>l.jsxs("div",{className:"repo-review-row",children:[l.jsxs("div",{className:"repo-review-main",children:[l.jsx("strong",{title:Pt(n),children:Pt(n)}),l.jsx("span",{children:r})]}),l.jsxs("div",{className:"repo-review-metrics",children:[l.jsx("span",{children:l.jsx(Nt,{value:n.estimatedCostUsd,session:n})}),l.jsx("span",{children:l.jsx(Oe,{value:n.totalTokens})}),l.jsx("span",{children:vo(n.durationMs)}),l.jsx(go,{outcome:n.sessionOutcome}),l.jsxs("button",{className:"button",type:"button",onClick:()=>t==null?void 0:t(n.id),children:[l.jsx(lP,{className:"h-4 w-4","aria-hidden":!0}),"Open"]})]})]},n.id)),e.length?null:l.jsx("p",{className:"p-4 text-sm text-slate-600",children:"No sessions need review in this filtered view."})]})]})}function ZW({warnings:e}){return l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsx("h2",{children:"Estimated cost warnings"})}),l.jsx("div",{className:"repo-warning-list",children:e.length?e.map(t=>l.jsxs("div",{className:"repo-warning-row",children:[l.jsx(ur,{className:"h-4 w-4 text-amber","aria-hidden":!0}),l.jsx("span",{children:ql(t)})]},t)):l.jsx("p",{className:"p-4 text-sm text-slate-600",children:"No repo/folder warnings detected."})})]})}function JW({repo:e,allRepos:t}){var u;if(t.length<=1)return null;const n=[...t].sort((c,d)=>Wt(d.estimatedCostUsd)-Wt(c.estimatedCostUsd)),r=n.findIndex(c=>c.id===e.id)+1,a=t.reduce((c,d)=>c+(d.estimatedCostUsd??0),0),o=a>0&&e.estimatedCostUsd!==void 0?e.estimatedCostUsd/a:0;return l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Compared to other repos / folders"}),l.jsxs("div",{className:"mt-3 grid gap-2 md:grid-cols-3",children:[l.jsx(W,{label:"Cost rank",value:r?`#${r} of ${t.length}`:"Unknown"}),l.jsx(W,{label:"Share of filtered cost",value:l.jsx(mn,{value:o})}),l.jsx(W,{label:"Most expensive repo / folder",value:((u=n[0])==null?void 0:u.label)??"Unknown"})]})]})}function eH({repo:e,sessions:t}){const n=R2(t,e),r=nK(t);return l.jsxs("div",{className:"repo-tab-body",children:[l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Token breakdown"}),l.jsxs("div",{className:"mt-3 grid gap-2 md:grid-cols-2",children:[l.jsx(W,{label:"Total input",value:l.jsx(Oe,{value:e.inputTokens})}),l.jsx(W,{label:"Cached input",value:l.jsx(Oe,{value:e.cachedInputTokens})}),l.jsx(W,{label:"Output",value:l.jsx(Oe,{value:e.outputTokens})}),l.jsx(W,{label:"Reasoning",value:l.jsx(Oe,{value:e.reasoningTokens})})]})]}),l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Cache usage"}),l.jsxs("div",{className:"mt-3 grid gap-2 md:grid-cols-2",children:[l.jsx(W,{label:"Cache reuse",value:l.jsx(mn,{value:e.inputTokens?e.cachedInputTokens/e.inputTokens:0})}),l.jsx(W,{label:"Cached input",value:l.jsx(Oe,{value:e.cachedInputTokens})}),l.jsx(W,{label:"Total input",value:l.jsx(Oe,{value:e.inputTokens})}),l.jsx(W,{label:"Sessions",value:l.jsx(oe,{value:e.sessionCount,noun:"session"})})]})]})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-[1.1fr_0.9fr]",children:[l.jsx(yo,{title:"Estimated API-equivalent cost over time",children:l.jsx(Qa,{width:"100%",height:260,children:l.jsxs(j2,{data:r,children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{dataKey:"label",tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Xn,{tickFormatter:a=>Ox(Number(a)),width:62,tick:{fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,formatter:a=>rn(Number(a))}),l.jsx(Po,{type:"monotone",dataKey:"estimatedCostUsd",name:"Estimated cost",stroke:"#6d5dfc",strokeWidth:2,dot:!1})]})})}),l.jsx(yo,{title:"Model breakdown",children:l.jsx(Qa,{width:"100%",height:260,children:l.jsxs(bl,{data:n.slice(0,8),layout:"vertical",margin:{left:16,right:16},children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{type:"number",tickFormatter:a=>Ox(Number(a)),tick:{fill:"#94a3b8"}}),l.jsx(Xn,{dataKey:"label",type:"category",width:130,tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,formatter:a=>rn(Number(a))}),l.jsx(Vn,{dataKey:"estimatedCostUsd",name:"Estimated cost",fill:"#2dd4bf"})]})})})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Model cost drivers"}),l.jsxs("div",{className:"repo-model-list",children:[n.map(a=>l.jsxs("div",{className:"repo-model-row",children:[l.jsx("strong",{children:a.label}),l.jsxs("span",{children:[rn(a.estimatedCostUsd)," · ",hi(a.costShare)," of repo cost · ",Ee(a.sessionCount,"session")]})]},a.id)),n.length?null:l.jsx("p",{className:"text-sm text-slate-600",children:"No model breakdown is available."})]})]}),l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Cost driver explanation"}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:oK(e,n[0])})]})]})]})}function tH({repo:e,sessions:t}){const n=t.reduce((a,o)=>a+(o.fileEditCount??0),0),r=t.reduce((a,o)=>a+(o.fileReadCount??0),0);return l.jsx("div",{className:"repo-tab-body",children:l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Files edited/read"}),l.jsxs("div",{className:"mt-3 grid gap-2 md:grid-cols-4",children:[l.jsx(W,{label:"Files edited",value:l.jsx(oe,{value:n,noun:"file"})}),l.jsx(W,{label:"Files read",value:l.jsx(oe,{value:r,noun:"file"})}),l.jsx(W,{label:"Sessions with edits",value:l.jsx(oe,{value:t.filter(a=>(a.fileEditCount??0)>0).length,noun:"session"})}),l.jsx(W,{label:"Tokens per edit",value:l.jsx(W0,{label:e.tokenRoiLabel,title:e.tokenRoiTitle})})]}),n>0?l.jsxs("div",{className:"compact-warning mt-4",children:["File edit counts were detected, but stable file paths are unavailable for this log format.",l.jsxs("details",{children:[l.jsx("summary",{children:"Learn more"}),l.jsx("p",{children:"RepoSpend can count file reads and edits from local session metadata, but some source formats do not persist stable per-file paths. Source limitations and raw paths are listed in Metadata."})]})]}):l.jsx("p",{className:"mt-3 text-sm text-slate-600",children:"No file edits were detected for this repo or folder in the current filtered view."})]})})}function nH({sessions:e,commandTotals:t,onOpenSession:n}){const r=e.filter(Ll).slice(0,8),a=e.flatMap(o=>(o.commandIssueSamples??[]).map(u=>({session:o,issue:u})));return l.jsxs("div",{className:"repo-tab-body",children:[l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Command summary"}),l.jsxs("div",{className:"mt-3 grid gap-2 md:grid-cols-4",children:[l.jsx(W,{label:"Important issues",value:l.jsx(oe,{value:t.important,noun:"issue"})}),l.jsx(W,{label:"Harmless exits",value:l.jsx(oe,{value:t.harmless,noun:"event"})}),l.jsx(W,{label:"Repeated clusters",value:l.jsx(oe,{value:t.repeated,noun:"cluster"})}),l.jsx(W,{label:"Sessions to review",value:l.jsx(oe,{value:r.length,noun:"session"})})]}),t.important===0?l.jsx("p",{className:"success-state mt-4",children:"No important command issues detected."}):null]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Important command issues"}),l.jsxs("div",{className:"mt-3 space-y-2",children:[a.filter(({issue:o})=>o.severity==="critical"||o.severity==="warning").slice(0,8).map(({session:o,issue:u},c)=>l.jsxs("div",{className:"issue-row",children:[l.jsxs("div",{children:[l.jsx("div",{className:"font-mono text-xs text-slate-100",title:u.command,children:V2(u.command)}),l.jsx("p",{className:"mt-1 text-xs text-slate-500",children:u.reason})]}),l.jsxs("div",{className:"issue-row-badges",children:[l.jsx(vt,{label:Tx(u.category)}),l.jsx(vt,{label:`${u.impact} impact`})]})]},`${o.id}-${u.command}-${c}`)),a.some(({issue:o})=>o.severity==="critical"||o.severity==="warning")?null:l.jsx("p",{className:"text-sm text-slate-600",children:"No important command issue samples were available."})]})]}),l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Sessions to review"}),l.jsxs("div",{className:"repo-model-list",children:[r.map(o=>l.jsxs("button",{className:"repo-model-row buttonless-row",type:"button",onClick:()=>n==null?void 0:n(o.id),children:[l.jsx("strong",{children:Pt(o)}),l.jsxs("span",{children:[Ee(Xe(o),"issue")," · ",Ee(o.repeatedFailureClusters??0,"cluster")," · ",vo(o.durationMs)]})]},o.id)),r.length?null:l.jsx("p",{className:"text-sm text-slate-600",children:"No sessions need command review."})]})]})]})]})}function rH({repo:e,sessions:t,data:n}){const r=[...new Set(t.map(o=>o.sourcePath).filter(Boolean))],a=[...new Set(t.map(o=>o.repoRoot).filter(Boolean))];return l.jsx("div",{className:"repo-tab-body",children:l.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Repo / folder grouping"}),l.jsxs("div",{className:"metadata-list mt-3",children:[l.jsx(Qe,{label:"Repo / folder",value:e.label}),l.jsx(Qe,{label:"Root path",value:_r(e.id),title:e.id}),l.jsx(Qe,{label:"Grouping method",value:"Git repo root when available; otherwise folder/path fallback."}),l.jsx(Qe,{label:"Sessions",value:Ee(e.sessionCount,"session")})]})]}),l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Local scan metadata"}),l.jsxs("div",{className:"metadata-list mt-3",children:[l.jsx(Qe,{label:"Last scan",value:Kn(n.scan.lastScannedAt)}),l.jsx(Qe,{label:"Session files scanned",value:Ee(n.scan.sessionFileCount,"file")}),l.jsx(Qe,{label:"Raw events",value:Ee(n.scan.rawEventCount,"event")}),l.jsx(Qe,{label:"Parse failures",value:Ee(n.scan.parseFailureCount,"failure")})]})]}),l.jsxs("div",{className:"detail-card xl:col-span-2",children:[l.jsx("h3",{children:"Source format limitations"}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"Estimated API-equivalent cost depends on local token splits and pricing coverage. Some log formats expose file edit counts without stable file paths, so file-level analysis may be limited even when edit counts are present."})]}),l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Raw paths"}),l.jsxs("div",{className:"metadata-list mt-3",children:[a.slice(0,8).map(o=>l.jsx(Qe,{label:"Repo/folder path",value:_r(o),title:o},o)),a.length?null:l.jsx(Qe,{label:"Repo/folder path",value:"Unavailable"})]})]}),l.jsxs("div",{className:"detail-card",children:[l.jsx("h3",{children:"Data source files"}),l.jsxs("div",{className:"metadata-list mt-3",children:[r.slice(0,8).map(o=>l.jsx(Qe,{label:"Source file",value:_r(o),title:o},o)),r.length?null:l.jsx(Qe,{label:"Source file",value:"Unavailable"})]})]})]})})}function _2({sessions:e,compact:t=!1,pageSize:n,selectedSessionId:r,onSelectSession:a,visibleColumns:o=id,onPageSizeChange:u}){const[c,d]=E.useState({key:"cost",direction:"desc"}),h=E.useMemo(()=>q2(e,c),[e,c]),v=fi(h,n),m=E.useCallback(x=>o.includes(x),[o]),y=E.useMemo(()=>B2(e),[e]);return l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"sessions-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[t?null:l.jsx(je,{label:"Repo / folder",column:"repo",sort:c,setSort:d}),t?null:l.jsx(je,{label:"Provider / app/surface",column:"app",sort:c,setSort:d}),l.jsx(je,{label:"Session",column:"session",sort:c,setSort:d}),l.jsx("th",{children:"Outcome"}),l.jsx(je,{label:"Model",column:"model",sort:c,setSort:d}),l.jsx(je,{label:"Started",column:"started",sort:c,setSort:d}),l.jsx(je,{label:"Duration",column:"duration",sort:c,setSort:d}),l.jsx(je,{label:"API-equivalent cost",column:"cost",sort:c,setSort:d}),l.jsx(je,{label:"Total",column:"tokens",sort:c,setSort:d}),!t&&m("input")?l.jsx(je,{label:"Total input",column:"input",sort:c,setSort:d}):null,!t&&m("cached")?l.jsx(je,{label:"Cached",column:"cached",sort:c,setSort:d}):null,!t&&m("output")?l.jsx(je,{label:"Output",column:"output",sort:c,setSort:d}):null,!t&&m("reasoning")?l.jsx(je,{label:"Reasoning",column:"reasoning",sort:c,setSort:d}):null,m("messages")?l.jsx(je,{label:"Messages",column:"messages",sort:c,setSort:d}):null,m("prompts")?l.jsx(je,{label:"Prompts",column:"prompts",sort:c,setSort:d}):null,m("commands")?l.jsx(je,{label:"Commands",column:"commands",sort:c,setSort:d}):null,m("commandIssues")?l.jsx(je,{label:"Command issues",column:"failed",sort:c,setSort:d}):null,m("edits")?l.jsx(je,{label:"Edits",column:"files",sort:c,setSort:d}):null,m("parse")?l.jsx("th",{children:"Parse"}):null,!t&&m("tokenMethod")?l.jsx("th",{children:"Token method"}):null,!t&&m("confidence")?l.jsx("th",{children:"Confidence"}):null,!t&&m("checkpoints")?l.jsx("th",{children:"Checkpoints"}):null]})}),l.jsx("tbody",{children:v.items.map(x=>l.jsxs("tr",{onClick:()=>a==null?void 0:a(x.id),onKeyDown:a?S=>Ba(S,()=>a(x.id)):void 0,className:`${r===x.id?"selected":""} ${z2(x,y)?"cost-outlier-row":""} ${a?"clickable-row":""}`,role:a?"button":void 0,tabIndex:a?0:void 0,children:[t?null:l.jsx("td",{children:l.jsx(mi,{name:x.repoName,verified:od(x)})}),t?null:l.jsx("td",{children:l.jsxs("div",{className:"source-app-cell",children:[l.jsx(z0,{source:x.sourceClient}),l.jsx(B0,{app:x.sourceApp,surface:x.detectedSurface})]})}),l.jsx("td",{className:"max-w-72 truncate font-medium",title:Pt(x),children:Pt(x)}),l.jsx("td",{children:l.jsx(go,{outcome:x.sessionOutcome})}),l.jsx("td",{children:l.jsx(Ao,{model:x.model})}),l.jsx("td",{children:x.startedAt?x.startedAt.slice(0,10):"Unknown"}),l.jsx("td",{children:vo(x.durationMs)}),l.jsx("td",{children:l.jsx(Nt,{value:x.estimatedCostUsd,session:x})}),l.jsx("td",{children:l.jsx(Oe,{value:x.totalTokens,showUnit:!1})}),!t&&m("input")?l.jsx("td",{children:l.jsx(Oe,{value:x.inputTokens,showUnit:!1})}):null,!t&&m("cached")?l.jsx("td",{children:l.jsx(Oe,{value:x.cachedInputTokens,showUnit:!1})}):null,!t&&m("output")?l.jsx("td",{children:l.jsx(Oe,{value:x.outputTokens,showUnit:!1})}):null,!t&&m("reasoning")?l.jsx("td",{children:l.jsx(Oe,{value:x.reasoningTokens,showUnit:!1})}):null,m("messages")?l.jsx("td",{children:l.jsx(oe,{value:x.messageCount,noun:"message",showUnit:!1})}):null,m("prompts")?l.jsx("td",{children:l.jsx(oe,{value:x.userPromptCount??0,noun:"prompt",showUnit:!1})}):null,m("commands")?l.jsx("td",{children:l.jsx(oe,{value:x.shellCommandCount??0,noun:"command",showUnit:!1})}):null,m("commandIssues")?l.jsx("td",{children:l.jsx(oe,{value:Xe(x),noun:"issue",showUnit:!1})}):null,m("edits")?l.jsx("td",{children:l.jsx(oe,{value:x.fileEditCount??0,noun:"edit",showUnit:!1})}):null,m("parse")?l.jsx("td",{children:l.jsx(vt,{label:x.parseStatus??"unknown",title:(x.parseErrors??[]).join(`
304
+ `)||"No parse errors"})}):null,!t&&m("tokenMethod")?l.jsx("td",{children:l.jsx(vt,{label:kl(x.tokenAggregationMethod??"unknown")})}):null,!t&&m("confidence")?l.jsx("td",{children:l.jsx(vt,{label:x.tokenConfidence??"low"})}):null,!t&&m("checkpoints")?l.jsx("td",{children:l.jsx(oe,{value:x.tokenSnapshotCount??0,noun:"checkpoint",showUnit:!1})}):null]},x.id))})]}),l.jsx(ci,{page:v.page,pageCount:v.pageCount,total:h.length,pageSize:n,onPageChange:v.setPage,...u?{pageSizeOptions:No,onPageSizeChange:u}:{}})]})}function iH({session:e}){const[t,n]=E.useState("overview"),[r,a]=E.useState(""),[o,u]=E.useState("all"),[c,d]=E.useState(()=>new Set);if(E.useEffect(()=>{n("overview"),a(""),u("all"),d(new Set)},[e==null?void 0:e.id]),!e)return l.jsxs("div",{className:"panel p-5",children:[l.jsx("h2",{className:"text-base font-semibold",children:"Session details"}),l.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"No session selected. Select a row to inspect one session."})]});const h=EK(e),v=MK(e),m=(e.commandIssueSamples??[]).filter(k=>k.severity==="critical"||k.severity==="warning"),y=m.length?m:(e.commandIssueSamples??[]).slice(0,6),x=e.promptTimeline??[],S=[{key:"overview",label:"Overview"},{key:"timeline",label:"Timeline"},{key:"files",label:"Files & Commands"},{key:"tokens",label:"Tokens & Cost"},{key:"metadata",label:"Metadata"}],j=x.filter(k=>{const _=o==="all"||k.role===o,T=!r.trim()||k.text.toLowerCase().includes(r.trim().toLowerCase());return _&&T}),b=k=>{d(_=>{const T=new Set(_);return T.has(k)?T.delete(k):T.add(k),T})};return l.jsxs("div",{className:"panel session-detail-panel overflow-hidden",children:[l.jsxs("div",{className:"session-detail-heading",children:[l.jsxs("div",{children:[l.jsx("div",{className:"session-detail-eyebrow",children:"Session summary"}),l.jsx("h2",{title:Pt(e),children:Pt(e)}),l.jsxs("div",{className:"session-summary-meta",children:[l.jsx(go,{outcome:e.sessionOutcome}),l.jsx("span",{children:pi(e.sourceClient)}),l.jsx("span",{children:e.sourceApp||Mr(e.detectedSurface)}),l.jsx("span",{children:vo(e.durationMs)}),l.jsxs("span",{children:[rn(e.estimatedCostUsd)," estimated"]})]}),l.jsx("p",{children:aH(e)})]}),l.jsx(sd,{labels:H0(e)})]}),l.jsxs("div",{className:"session-key-metrics",children:[l.jsx(W,{label:"Estimated cost",value:l.jsx(Nt,{value:e.estimatedCostUsd,session:e})}),l.jsx(W,{label:"Total tokens",value:l.jsx(Oe,{value:e.totalTokens})}),l.jsx(W,{label:"Duration",value:vo(e.durationMs)}),l.jsx(W,{label:"Model",value:l.jsx(Ao,{model:e.model})}),l.jsx(W,{label:"File edits",value:l.jsx(oe,{value:e.fileEditCount??0,noun:"edit"})}),l.jsx(W,{label:"Commands",value:l.jsx(oe,{value:e.shellCommandCount??0,noun:"command"})})]}),l.jsx("div",{className:"session-detail-tabs",role:"tablist","aria-label":"Session detail sections",children:S.map(k=>l.jsx("button",{className:t===k.key?"active":"",type:"button",role:"tab","aria-selected":t===k.key,onClick:()=>n(k.key),children:k.label},k.key))}),l.jsxs("div",{className:"session-detail-body",children:[t==="overview"?l.jsxs("div",{className:"session-tab-grid",children:[l.jsx(tn,{title:"Highlights",children:h.length?l.jsx(qT,{items:h}):l.jsx("p",{className:"detail-muted",children:"No strong positive signals were detected from local metadata."})}),l.jsx(tn,{title:"Needs attention",children:v.length?l.jsx(qT,{items:v}):l.jsx("p",{className:"detail-muted",children:"No obvious issues detected for this session."})}),l.jsx(tn,{title:"Session activity",children:l.jsxs("div",{className:"session-mini-grid",children:[l.jsx(W,{label:"Messages",value:l.jsx(oe,{value:e.messageCount,noun:"message"})}),l.jsx(W,{label:"Prompts",value:l.jsx(oe,{value:e.userPromptCount??0,noun:"prompt"})}),l.jsx(W,{label:"Assistant replies",value:l.jsx(oe,{value:e.assistantMessageCount??0,noun:"reply"})}),l.jsx(W,{label:"Tool calls",value:l.jsx(oe,{value:e.toolCallCount??0,noun:"tool call"})}),l.jsx(W,{label:"Command issues",value:l.jsx(oe,{value:Xe(e),noun:"issue"})}),l.jsx(W,{label:"Compactions",value:l.jsx(LH,{compaction:e.compaction}),help:UH(e.compaction)}),l.jsx(W,{label:"Outcome",value:l.jsx(go,{outcome:e.sessionOutcome})})]})}),l.jsx(tn,{title:"Token breakdown",children:l.jsx(FT,{session:e})}),e.compaction&&e.compaction.count>0?l.jsx(tn,{className:"session-card-wide",title:"Compaction events",children:l.jsx(qH,{compaction:e.compaction})}):null]}):null,t==="timeline"?l.jsxs("div",{className:"session-tab-stack",children:[l.jsxs("div",{className:"session-timeline-toolbar",children:[l.jsxs("label",{className:"search-field session-timeline-search",children:[l.jsx(bo,{className:"h-4 w-4","aria-hidden":!0}),l.jsx("input",{value:r,onChange:k=>a(k.target.value),placeholder:"Search timeline"})]}),l.jsx("div",{className:"session-filter-buttons","aria-label":"Timeline filter",children:[["all","All"],["user","Prompts"],["assistant","Assistant"]].map(([k,_])=>l.jsx("button",{className:o===k?"active":"",type:"button",onClick:()=>u(k),children:_},k))})]}),j.length?l.jsx("ol",{className:"timeline-list session-message-list",children:j.map((k,_)=>{const T=`${k.role}-${k.timestamp??"step"}-${_}`,A=c.has(T);return l.jsxs("li",{children:[l.jsxs("div",{className:"timeline-meta",children:[l.jsx(vt,{label:k.role==="user"?"Prompt":"Assistant"}),l.jsx("span",{children:k.timestamp?Kn(k.timestamp):`Step ${_+1}`})]}),l.jsx("p",{className:A?"expanded":"",children:k.text}),k.text.length>280?l.jsx("button",{className:"text-button mt-2",type:"button",onClick:()=>b(T),children:A?"Collapse message":"Expand full message"}):null]},T)})}):l.jsx("p",{className:"detail-muted",children:"No timeline messages matched this view, or prompt text was not exposed by this local session log format."})]}):null,t==="files"?l.jsxs("div",{className:"session-tab-grid",children:[l.jsx(tn,{title:"Files edited/read",children:l.jsxs("div",{className:"session-mini-grid",children:[l.jsx(W,{label:"Files edited",value:l.jsx(oe,{value:e.fileEditCount??0,noun:"edit"})}),l.jsx(W,{label:"Files read",value:l.jsx(oe,{value:e.fileReadCount??0,noun:"read"})}),l.jsx(W,{label:"Repo / folder",value:e.repoName}),l.jsx(W,{label:"Branch",value:e.gitBranch??"Unknown"})]})}),l.jsx(tn,{title:"Commands run",children:l.jsxs("div",{className:"session-mini-grid",children:[l.jsx(W,{label:"Shell commands",value:l.jsx(oe,{value:e.shellCommandCount??0,noun:"command"})}),l.jsx(W,{label:"Tool calls",value:l.jsx(oe,{value:e.toolCallCount??0,noun:"tool call"})}),l.jsx(W,{label:"Non-zero events",value:l.jsx(oe,{value:e.nonZeroCommandEvents??0,noun:"event"})}),l.jsx(W,{label:"Harmless exits",value:l.jsx(oe,{value:(e.harmlessNonZeroEvents??0)+(e.exploratoryMisses??0),noun:"event"})})]})}),l.jsx(tn,{className:"session-card-wide",title:"Command diagnostics",children:y.length?l.jsx("div",{className:"space-y-2",children:y.map((k,_)=>l.jsxs("div",{className:"issue-row",children:[l.jsxs("div",{children:[l.jsx("div",{className:"font-mono text-xs text-slate-100",title:k.command,children:V2(k.command)}),l.jsx("p",{className:"mt-1 text-xs text-slate-500",children:k.reason})]}),l.jsxs("div",{className:"issue-row-badges",children:[l.jsx(vt,{label:Tx(k.category)}),l.jsx(vt,{label:Tx(k.severity)}),l.jsx(vt,{label:`${k.impact} impact`})]})]},`${k.command}-${_}`))}):l.jsx("p",{className:"detail-muted",children:"No command issue detail was available in this local session log."})})]}):null,t==="tokens"?l.jsxs("div",{className:"session-tab-grid",children:[l.jsx(tn,{title:"Token breakdown",children:l.jsx(FT,{session:e})}),l.jsxs(tn,{title:"Cache reuse",children:[l.jsxs("div",{className:"session-mini-grid",children:[l.jsx(W,{label:"Cache reuse",value:l.jsx(mn,{value:e.inputTokens?e.cachedInputTokens/e.inputTokens:0})}),l.jsx(W,{label:"Cached input",value:l.jsx(Oe,{value:e.cachedInputTokens})}),l.jsx(W,{label:"Total input",value:l.jsx(Oe,{value:e.inputTokens})}),l.jsx(W,{label:"Confidence",value:l.jsx(vt,{label:G0(e.tokenConfidence??"low")})})]}),l.jsx("p",{className:"detail-muted mt-3",children:sH(e)})]}),l.jsxs(tn,{className:"session-card-wide",title:"Cost driver explanation",children:[l.jsx("p",{className:"detail-muted",children:lH(e)}),l.jsxs("div",{className:"session-mini-grid mt-3",children:[l.jsx(W,{label:"API-equivalent cost",value:l.jsx(Nt,{value:e.estimatedCostUsd,session:e})}),l.jsx(W,{label:"Aggregation",value:l.jsx(vt,{label:kl(e.tokenAggregationMethod??"unknown")})}),l.jsx(W,{label:"Token readings",value:l.jsx(oe,{value:e.tokenSnapshotCount??0,noun:"reading"})}),l.jsx(W,{label:"Raw token total",value:e.rawTokenTotal===void 0?"Unknown":l.jsx(Oe,{value:e.rawTokenTotal})})]})]})]}):null,t==="metadata"?l.jsxs("div",{className:"session-tab-grid",children:[l.jsx(tn,{title:"Repo / folder, branch, provider, source file",children:l.jsxs("div",{className:"metadata-list",children:[l.jsx(Qe,{label:"Repo / folder",value:e.repoName,title:e.repoRoot}),l.jsx(Qe,{label:"Root path",value:_r(e.repoRoot),title:e.repoRoot}),l.jsx(Qe,{label:"Branch",value:e.gitBranch??"Unknown"}),l.jsx(Qe,{label:"Provider",value:e.provider??"Unknown"}),l.jsx(Qe,{label:"AI provider",value:pi(e.sourceClient)}),l.jsx(Qe,{label:"App / surface",value:e.sourceApp||Mr(e.detectedSurface)}),l.jsx(Qe,{label:"Source file",value:_r(e.sourcePath),title:e.sourcePath})]})}),l.jsx(tn,{title:"Raw records",children:l.jsxs("div",{className:"session-mini-grid",children:[l.jsx(W,{label:"Raw records",value:l.jsx(oe,{value:e.rawEventCount??0,noun:"record"})}),l.jsx(W,{label:"Messages",value:l.jsx(oe,{value:e.messageCount,noun:"message"})}),l.jsx(W,{label:"Started",value:Kn(e.startedAt)}),l.jsx(W,{label:"Ended",value:Kn(e.endedAt)})]})}),l.jsx(tn,{className:"session-card-wide",title:"Debug details",children:l.jsxs("div",{className:"metadata-list",children:[l.jsx(Qe,{label:"Session id",value:e.id,title:e.id}),l.jsx(Qe,{label:"Parse status",value:e.parseStatus??"Unknown"}),l.jsx(Qe,{label:"Token method",value:kl(e.tokenAggregationMethod??"unknown")}),l.jsx(Qe,{label:"Surface confidence",value:e.surfaceConfidence??"Unknown"}),l.jsx(Qe,{label:"Surface reason",value:e.surfaceReason??"Unknown"}),l.jsx(Qe,{label:"Warnings",value:e.warnings.length?e.warnings.map(ql).join(", "):"None"}),l.jsx(Qe,{label:"Parse errors",value:(e.parseErrors??[]).length?(e.parseErrors??[]).join(", "):"None"})]})})]}):null]})]})}function tn({title:e,children:t,className:n=""}){return l.jsxs("div",{className:`detail-card session-detail-card ${n}`,children:[l.jsx("h3",{children:e}),l.jsx("div",{className:"mt-3",children:t})]})}function qT({items:e}){return l.jsx("ul",{className:"signal-list",children:e.map(t=>l.jsx("li",{children:t},t))})}function FT({session:e}){return l.jsxs("div",{className:"session-mini-grid",children:[l.jsx(W,{label:"Total input",value:l.jsx(Oe,{value:e.inputTokens})}),l.jsx(W,{label:"Cached input",value:l.jsx(Oe,{value:e.cachedInputTokens})}),l.jsx(W,{label:"Output",value:l.jsx(Oe,{value:e.outputTokens})}),l.jsx(W,{label:"Reasoning",value:l.jsx(Oe,{value:e.reasoningTokens})})]})}function Qe({label:e,value:t,title:n}){return l.jsxs("div",{className:"metadata-row",children:[l.jsx("span",{children:e}),l.jsx("strong",{title:n,children:t})]})}function aH(e){const t=[];return e.totalTokens>=1e6?t.push("High-token session"):t.push(`${ct(e.totalTokens)} session`),t.push(`with ${oH(e)} cache reuse`),t.push(Xe(e)===0?"and no command issues":`and ${Ee(Xe(e),"command issue")}`),`${t.join(" ")}.`}function oH(e){const t=e.inputTokens?e.cachedInputTokens/e.inputTokens:0;return t>=.5?"strong":t>=.2?"moderate":e.inputTokens>0?"low":"unknown"}function sH(e){const t=e.inputTokens?e.cachedInputTokens/e.inputTokens:0;return e.inputTokens?`${hi(t)} of input tokens were reported as cached input. Strong reuse usually means the model was able to reuse existing context efficiently.`:"Cache reuse cannot be calculated because input token data is missing."}function lH(e){if(e.estimatedCostUsd===void 0)return"API-equivalent cost is unavailable because this session is missing pricing coverage or a token split.";const n=[{label:"input",value:e.inputTokens},{label:"cached input",value:e.cachedInputTokens},{label:"output",value:e.outputTokens},{label:"reasoning",value:e.reasoningTokens}].sort((r,a)=>a.value-r.value)[0]??{label:"input",value:e.inputTokens};return`The largest token bucket was ${n.label} at ${ct(n.value)}. Cost is estimated from local token counts and the local pricing table, so it is an API-equivalent estimate rather than an invoice.`}function uH({session:e,onBack:t}){return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsx("button",{className:"text-button",type:"button",onClick:t,children:"Back to sessions"}),l.jsx(iH,{session:e})]})}function je({label:e,column:t,sort:n,setSort:r}){const a=n.key===t;return l.jsx("th",{children:l.jsxs("button",{className:`sort-header ${a?"active":""}`,onClick:()=>r({key:t,direction:a&&n.direction==="desc"?"asc":"desc"}),type:"button",children:[l.jsx("span",{children:e}),l.jsx(aI,{className:"h-3 w-3","aria-hidden":!0}),a?l.jsxs("span",{className:"sr-only",children:["sorted ",n.direction]}):null]})})}function cH({data:e}){const t=e.sources.map(r=>r.label).join(", ")||"Codex, Claude Code, Cursor",n=e.sources.flatMap(r=>r.paths);return l.jsx("div",{className:"panel mt-4 p-6",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx(bo,{className:"mt-1 h-5 w-5 text-amber","aria-hidden":!0}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-base font-semibold",children:"RepoSpend could not find local usage sessions yet."}),l.jsxs("p",{className:"mt-1 text-sm text-slate-600",children:["Providers scanned: ",t,". Run Codex, Claude Code, or Cursor locally, then refresh the scan. RepoSpend reads local files read-only and never mutates source data."]}),l.jsx("div",{className:"source-checklist mt-4",children:e.sourceStats.map(r=>l.jsxs("div",{className:"source-check-row",children:[l.jsxs("div",{children:[l.jsx("strong",{children:r.sourceLabel??"Source"}),l.jsx("span",{title:wf(r),children:_r(wf(r))})]}),l.jsx(vt,{label:K0(r)?"Path found":"Path missing"}),l.jsx(vt,{label:(r.sessionsImported??0)>0?`${Ee(r.sessionsImported??0,"session")} imported`:"No sessions imported"}),l.jsx("span",{className:"source-check-fix",children:fK(r)})]},r.sourceId??r.homePath??r.sessionsPath??r.statePath??"source"))}),l.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:n.map(r=>l.jsx("code",{className:"inline-code",children:_r(r)},r))}),l.jsx("p",{className:"mt-3 text-sm text-slate-600",children:"If history persistence is disabled or sessions are stored elsewhere, local usage may be unavailable to RepoSpend."}),l.jsx("button",{className:"button mt-3",type:"button",onClick:()=>window.location.reload(),children:"Refresh scan"}),l.jsx("div",{className:"mt-3 space-y-1 text-sm text-slate-600",children:e.sources.flatMap(r=>r.warnings).map(r=>l.jsx("p",{className:"warning-text",children:r},r))})]})]})})}function fH({compact:e=!1,data:t}){var h;const[n,r]=E.useState(0),a=E.useRef(Date.now());E.useEffect(()=>{a.current=Date.now(),r(0);const v=window.setInterval(()=>r(Date.now()-a.current),1e3);return()=>window.clearInterval(v)},[e]);const o=Math.max(0,Math.floor(n/1e3)),u=[{label:"Discovering local source files",detail:"Codex, Claude Code, Cursor, and RTK paths"},{label:"Parsing sessions and token checkpoints",detail:"Reading transcripts and local SQLite/vscdb data"},{label:"Grouping by repo or inferred folder",detail:"Resolving cwd paths, models, warnings, and surfaces"},{label:"Estimating API-equivalent cost",detail:"Applying local pricing and dashboard filters"}],c=Math.min(u.length-1,Math.floor(o/5)),d=[{id:"codex",label:"Codex",detail:"CLI sessions and token checkpoints",count:t?za(t,"codex"):0},{id:"claude",label:"Claude Code",detail:"Project JSONL transcripts and history",count:t?za(t,"claude"):0},{id:"cursor",label:"Cursor",detail:"Experimental JSONL and SQLite/vscdb discovery",count:t?za(t,"cursor"):0},{id:"rtk",label:"RTK",detail:"Local token-savings report when available",count:(h=t==null?void 0:t.rtkGain)!=null&&h.available?1:0}];return l.jsx("div",{className:`panel loading-state ${e?"loading-state-compact":""}`,children:l.jsxs("div",{className:"loading-state-inner",children:[l.jsx(Cl,{className:"loading-state-icon animate-spin","aria-hidden":!0}),l.jsxs("div",{children:[l.jsx("h2",{children:e?"Refreshing local scan":"Loading local AI coding usage"}),l.jsx("p",{children:e?`Keeping the previous dashboard visible while RepoSpend rescans local files. ${o}s elapsed.`:`RepoSpend is scanning local files, then grouping each session by Git repo or inferred folder. ${o}s elapsed.`}),l.jsx("div",{className:"loading-source-grid","aria-label":"Local scan sources",children:d.map(v=>l.jsxs("div",{className:"loading-source-row",children:[l.jsx("span",{className:`loading-source-dot loading-source-dot-${v.id}`}),l.jsxs("span",{children:[l.jsx("strong",{children:v.label}),l.jsx("small",{children:t?`${Ee(v.count,v.id==="rtk"?"local report":"previous session")} · ${v.detail}`:v.detail})]})]},v.id))}),l.jsx("div",{className:"loading-stage-list","aria-label":"Current scan stages",children:u.map((v,m)=>l.jsxs("div",{className:`loading-stage-row ${m===c?"active":""}`,children:[l.jsx("span",{children:m+1}),l.jsxs("div",{children:[l.jsx("strong",{children:v.label}),l.jsx("small",{children:v.detail})]})]},v.label))}),o>=12?l.jsx("p",{className:"loading-state-note",children:"Longer scans usually mean RepoSpend is reading a large local transcript set. Results will replace this view as soon as the scan finishes."}):null]})]})})}const dH=[{id:"pricing",label:"Pricing"},{id:"sources",label:"Data Sources"},{id:"tokens",label:"Token Counting"},{id:"privacy",label:"Privacy"},{id:"advanced",label:"Advanced"}],hH="RepoSpend shows API-equivalent cost estimates. This is not your actual bill. Local Codex, Claude Code, and Cursor logs may include token counts, but they do not always include your real subscription, credit, cache, or provider billing details.";function pH({data:e}){const t=za(e,"codex"),n=za(e,"claude"),r=za(e,"cursor");return l.jsxs("div",{className:"settings-status-banner",children:[l.jsxs("div",{children:[l.jsx("div",{className:"settings-status-title",children:"Local scan complete"}),l.jsxs("p",{children:[Ee(t,"Codex session"),", ",Ee(n,"Claude session"),", ",Ee(r,"Cursor session"),", ",Ee(e.scan.parseFailureCount,"parse issue"),"."]})]}),l.jsxs("button",{className:"button",type:"button",onClick:()=>window.location.reload(),children:[l.jsx(Cl,{className:"h-4 w-4","aria-hidden":!0}),"Rescan local logs"]})]})}function mH({data:e,draft:t,setDraft:n,status:r,onSave:a,onReset:o}){const[u,c]=E.useState(""),[d,h]=E.useState(""),[v,m]=E.useState("all"),[y,x]=E.useState("used"),S=E.useMemo(()=>new Set(e.models.map(N=>N.id)),[e.models]),j=E.useMemo(()=>new Map(e.models.map(N=>[N.id,N.sessionCount])),[e.models]),b=uK(t,e.models),k=(N,M,R)=>{var U;const K=R===""?void 0:Number(R),L=D2(N,t).pricing;n({...t,[N]:{...L,[M]:K===void 0||Number.isFinite(K)?K:(U=t[N])==null?void 0:U[M]}})},_=()=>{const N=u.trim();N&&(n({...t,[N]:t[N]??{inputPerMillion:0,cacheCreationInputPerMillion:0,cachedInputPerMillion:0,outputPerMillion:0,reasoningOutputPerMillion:0}}),c(""),x("all"))},T=b.filter(N=>{const M=N.model.toLowerCase(),R=S.has(N.model),K=$2(N.model),L=YT(N);return!(!(!d.trim()||M.includes(d.trim().toLowerCase()))||v!=="all"&&K!==v||y==="used"&&!R||y==="missing"&&!L)}),A=b.filter(N=>!S.has(N.model)).length,C=T.filter(N=>!S.has(N.model)).length,O=e.pricing.path??"~/.repospend/pricing.json";return l.jsxs("div",{className:"settings-tab-panel",children:[l.jsxs("div",{className:"settings-section-header",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Model pricing"}),l.jsx("p",{children:hH})]}),l.jsxs("div",{className:"settings-primary-actions",children:[l.jsx("button",{className:"button",type:"button",onClick:o,children:"Reset edits"}),l.jsx("button",{className:"button active-button",type:"button",onClick:()=>void a(),children:"Save pricing"})]})]}),l.jsxs("div",{className:"pricing-toolbar",children:[l.jsxs("label",{className:"search-field pricing-search",children:[l.jsx(bo,{className:"h-4 w-4","aria-hidden":!0}),l.jsx("input",{value:d,onChange:N=>h(N.target.value),placeholder:"Search model names"})]}),l.jsx("div",{className:"pricing-filter-group","aria-label":"Provider filter",children:[["all","All providers"],["openai","OpenAI"],["claude","Claude"],["custom","Custom"]].map(([N,M])=>l.jsx("button",{className:`quick-filter ${v===N?"active":""}`,type:"button",onClick:()=>m(N),children:M},N))}),l.jsx("div",{className:"pricing-filter-group","aria-label":"Model view",children:[["used","Used models"],["missing","Missing prices"],["all","All models"]].map(([N,M])=>l.jsx("button",{className:`quick-filter ${y===N?"active":""}`,type:"button",onClick:()=>x(N),children:M},N))})]}),l.jsxs("div",{className:"pricing-add-row",children:[l.jsx("input",{className:"input",placeholder:"Add model id, e.g. gpt-5.5-custom",value:u,onChange:N=>c(N.target.value)}),l.jsx("button",{className:"button",type:"button",onClick:_,children:"Add model"})]}),l.jsxs("div",{className:"pricing-meta-row",children:[l.jsx(W,{label:"Pricing file",value:l.jsx("span",{title:O,children:_r(O)})}),l.jsx(W,{label:"Models shown",value:`${T.length} of ${b.length}`}),l.jsx(W,{label:"Used models",value:l.jsx(oe,{value:e.models.length,noun:"model"})}),l.jsx(W,{label:"Hidden unused",value:l.jsx(oe,{value:Math.max(A-C,0),noun:"model"})})]}),l.jsx("div",{className:"table-wrap settings-table-wrap",children:l.jsxs("table",{className:"pricing-table spacious-pricing-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Model"}),l.jsx("th",{children:"Input"}),l.jsx("th",{children:"Cache write"}),l.jsx("th",{children:"Cached input"}),l.jsx("th",{children:"Output"}),l.jsx("th",{children:"Reasoning"})]})}),l.jsx("tbody",{children:T.map(N=>l.jsxs("tr",{children:[l.jsx("td",{children:l.jsxs("div",{className:"pricing-model-cell",children:[l.jsx("div",{className:"font-medium",children:l.jsx(Ao,{model:N.model})}),l.jsxs("div",{className:"pricing-model-meta",children:[S.has(N.model)?`${Ee(j.get(N.model)??0,"session")} in current scan`:"Unused in current scan",N.inherited&&N.sourceModel?l.jsxs("span",{children:["Uses ",N.sourceModel," pricing"]}):null,YT(N)?l.jsx("span",{className:"warning-text",children:"Missing price"}):null]})]})}),l.jsx(Ts,{value:N.pricing.inputPerMillion,onChange:M=>k(N.model,"inputPerMillion",M)}),l.jsx(Ts,{value:N.pricing.cacheCreationInputPerMillion,onChange:M=>k(N.model,"cacheCreationInputPerMillion",M)}),l.jsx(Ts,{value:N.pricing.cachedInputPerMillion,onChange:M=>k(N.model,"cachedInputPerMillion",M)}),l.jsx(Ts,{value:N.pricing.outputPerMillion,onChange:M=>k(N.model,"outputPerMillion",M)}),l.jsx(Ts,{value:N.pricing.reasoningOutputPerMillion,onChange:M=>k(N.model,"reasoningOutputPerMillion",M)})]},N.model))})]})}),T.length===0?l.jsx("p",{className:"settings-empty-note",children:"No models match the current filters."}):null,l.jsxs("div",{className:"settings-supporting-copy",children:[l.jsxs("p",{children:["Rates are USD per 1M tokens. Saving writes local RepoSpend settings under ",l.jsx("code",{children:"~/.repospend/"})," unless ",l.jsx("code",{children:"repospend.config.json"})," sets ",l.jsx("code",{children:"pricingPath"}),"."]}),(e.pricing.info.sourceUrls??[{label:e.pricing.info.sourceName,url:e.pricing.info.sourceUrl}]).map(N=>l.jsx("a",{className:"text-button",href:N.url,children:N.label},N.url)),r?l.jsx("p",{className:"font-semibold text-teal",children:r}):null]})]})}function vH({data:e}){const t=e.sources.flatMap(n=>n.warnings);return l.jsxs("div",{className:"settings-tab-panel",children:[l.jsx("div",{className:"settings-section-header",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Data sources"}),l.jsx("p",{children:"RepoSpend reads Codex, Claude Code, and experimental Cursor local data read-only, then groups sessions by Git repo where possible and folder/path fallback otherwise."})]})}),l.jsx("div",{className:"source-card-grid",children:e.sourceStats.map(n=>l.jsxs("div",{className:"settings-source-card",children:[l.jsxs("div",{className:"settings-source-card-header",children:[l.jsxs("div",{children:[l.jsx("h3",{children:n.sourceLabel??"Unknown source"}),l.jsx("p",{title:wf(n),children:_r(wf(n))})]}),l.jsx("span",{className:"status-badge",children:"Read only"})]}),l.jsxs("div",{className:"settings-source-metrics",children:[l.jsx(W,{label:"Session files",value:l.jsx(oe,{value:n.sessionFileCount,noun:"file"})}),l.jsx(W,{label:"Imported sessions",value:l.jsx(oe,{value:n.sessionsImported??0,noun:"session"})}),l.jsx(W,{label:"Parse issues",value:n.parseFailureCount?l.jsx(oe,{value:n.parseFailureCount,noun:"issue"}):"None"}),l.jsx(W,{label:"Primary data",value:K0(n)?"Found":"Not found"}),n.sourceId==="cursor"?l.jsx(W,{label:"SQLite/vscdb files",value:l.jsx(oe,{value:n.databaseFileCount??0,noun:"file"})}):null,l.jsx(W,{label:"Read-only status",value:"Read only"}),l.jsx(W,{label:"Last scan",value:Kn(n.lastScannedAt)})]}),l.jsxs("details",{className:"settings-details",children:[l.jsx("summary",{children:"Show detected paths"}),l.jsx("div",{className:"settings-path-list",children:dK(n,e).map(r=>l.jsx("code",{className:"inline-code",children:r},r))})]})]},n.sourceId??n.codexHome??n.claudeHome??n.sessionsPath??n.statePath??"source"))}),t.length?l.jsx("p",{className:"warning-text",children:t.slice(0,4).join(" · ")}):null]})}function yH({data:e}){const t=V0(e);return l.jsxs("div",{className:"settings-tab-panel",children:[l.jsx("div",{className:"settings-section-header",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Token counting"}),l.jsx("p",{children:"Token counts come from local Codex and Claude Code logs. Those logs may be incomplete, so RepoSpend shows the best available count rather than inventing missing billing details."})]})}),l.jsxs("div",{className:"token-accuracy-grid settings-token-grid",children:[l.jsx(W,{label:"Aggregation method",value:t.methodLabel}),l.jsx(W,{label:"Confidence",value:t.confidenceLabel}),l.jsx(W,{label:"Token checkpoints",value:l.jsx(oe,{value:t.tokenSnapshots,noun:"checkpoint"})}),l.jsx(W,{label:"Sessions with token data",value:l.jsx(oe,{value:t.sessionsWithTokenData,noun:"session"})}),l.jsx(W,{label:"Missing token data",value:l.jsx(oe,{value:t.sessionsMissingTokenData,noun:"session"})})]}),l.jsxs("details",{className:"settings-details",children:[l.jsx("summary",{children:"Show method breakdown"}),l.jsxs("div",{className:"settings-detail-grid",children:[Object.entries(t.methodCounts).map(([n,r])=>l.jsx(W,{label:kl(n),value:l.jsx(oe,{value:r,noun:"session"})},n)),Object.entries(t.confidenceCounts).map(([n,r])=>l.jsx(W,{label:`${G0(n)} confidence`,value:l.jsx(oe,{value:r,noun:"session"})},n))]})]})]})}function gH(){return l.jsxs("div",{className:"settings-tab-panel",children:[l.jsx("div",{className:"settings-section-header",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Privacy"}),l.jsx("p",{children:"RepoSpend is local-first: no telemetry, no login, no cloud sync, and read-only access to source logs."})]})}),l.jsxs("div",{className:"privacy-grid",children:[l.jsx(og,{title:"Local-first",text:"Scans run against files on this machine. RepoSpend does not upload prompts, session content, token counts, or pricing settings."}),l.jsx(og,{title:"No account required",text:"There is no RepoSpend login and no cloud workspace to sync with."}),l.jsx(og,{title:"Read-only source logs",text:"RepoSpend reads local Codex, Claude Code, and Cursor files but does not modify them."})]})]})}function xH({data:e,filterSortMode:t,setFilterSortMode:n,displaySettings:r,setDisplaySettings:a,onClearLocalData:o}){const u=V0(e);return l.jsxs("div",{className:"settings-tab-panel",children:[l.jsx("div",{className:"settings-section-header",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Advanced"}),l.jsx("p",{children:"Operational details and local dashboard preferences."})]})}),l.jsxs("div",{className:"advanced-settings-grid",children:[l.jsxs("div",{className:"settings-subsection",children:[l.jsx("h3",{children:"Dashboard preferences"}),l.jsxs("div",{className:"settings-control-grid",children:[l.jsxs("label",{className:"field",children:[l.jsxs("span",{children:[l.jsx(uP,{className:"h-4 w-4"}),"Filter order"]}),l.jsxs("select",{value:t,onChange:c=>n(c.target.value),children:[l.jsx("option",{value:"usage",children:"Usage, high to low"}),l.jsx("option",{value:"name",children:"Name, A to Z"})]})]}),l.jsx(Sl,{label:"Chart groups",value:r.chartGroupLimit,options:L0,onChange:c=>a({chartGroupLimit:c})}),l.jsx(Sl,{label:"Rows per page",value:r.tablePageSize,options:No,onChange:c=>a({tablePageSize:c})}),l.jsxs("label",{className:"settings-toggle-card",children:[l.jsx("input",{type:"checkbox",checked:r.splitSourceApps,onChange:c=>a({splitSourceApps:c.target.checked})}),l.jsxs("span",{className:"settings-toggle-copy",children:[l.jsx("strong",{children:"Split apps / surfaces by provider"}),l.jsx("span",{children:"Shows VS Code and Terminal as separate entries for each AI provider instead of grouping them together."})]})]})]})]}),l.jsxs("div",{className:"settings-subsection",children:[l.jsxs("div",{className:"panel-inline-heading",children:[l.jsx(Ex,{className:"h-4 w-4 text-teal","aria-hidden":!0}),l.jsx("h3",{children:"Parser Health"})]}),l.jsxs("div",{className:"parser-health-grid mt-3",children:[l.jsx(W,{label:"Session files scanned",value:l.jsx(oe,{value:e.scan.sessionFileCount,noun:"file"})}),l.jsx(W,{label:"Sessions imported",value:l.jsx(oe,{value:e.scan.sessionCount,noun:"session"})}),l.jsx(W,{label:"Sessions skipped",value:l.jsx(oe,{value:e.scan.zeroTokenSessionCount,noun:"session"})}),l.jsx(W,{label:"Parse issues",value:l.jsx(oe,{value:e.scan.parseFailureCount,noun:"issue"})}),l.jsx(W,{label:"Token checkpoints found",value:l.jsx(oe,{value:u.tokenSnapshots,noun:"checkpoint"})}),l.jsx(W,{label:"Sessions with token data",value:l.jsx(oe,{value:u.sessionsWithTokenData,noun:"session"})}),l.jsx(W,{label:"Missing token data",value:l.jsx(oe,{value:u.sessionsMissingTokenData,noun:"session"})}),l.jsx(W,{label:"Last scan",value:Kn(e.scan.lastScannedAt)})]})]})]}),l.jsxs("div",{className:"panel red-zone settings-danger-zone p-4",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Danger zone"}),l.jsxs("p",{children:["This only removes RepoSpend-owned local settings under ",l.jsx("code",{children:"~/.repospend/"}),". It does not touch Codex logs in ",l.jsx("code",{children:"~/.codex"})," or Claude Code logs in ",l.jsx("code",{children:"~/.claude"}),"."]})]}),l.jsx("button",{className:"button danger-button",type:"button",onClick:()=>{window.confirm("Clear RepoSpend local data under ~/.repospend and reload? Codex and Claude Code source data will not be touched.")&&o()},children:"Clear local RepoSpend data"})]})]})}function og({title:e,text:t}){return l.jsxs("div",{className:"settings-info-panel",children:[l.jsx("h2",{children:e}),l.jsx("p",{children:t})]})}function bH({data:e,draft:t,setDraft:n,status:r,filterSortMode:a,setFilterSortMode:o,displaySettings:u,setDisplaySettings:c,onSave:d,onReset:h,onClearLocalData:v}){const[m,y]=E.useState("pricing");return l.jsxs("section",{className:"settings-page mt-4",children:[l.jsx(pH,{data:e}),l.jsx("div",{className:"settings-tabs",role:"tablist","aria-label":"Settings sections",children:dH.map(x=>l.jsx("button",{className:`settings-tab ${m===x.id?"active":""}`,type:"button",role:"tab","aria-selected":m===x.id,onClick:()=>y(x.id),children:x.label},x.id))}),l.jsxs("div",{className:"panel settings-panel",children:[m==="pricing"?l.jsx(mH,{data:e,draft:t,setDraft:n,status:r,onSave:d,onReset:h}):null,m==="sources"?l.jsx(vH,{data:e}):null,m==="tokens"?l.jsx(yH,{data:e}):null,m==="privacy"?l.jsx(gH,{}):null,m==="advanced"?l.jsx(xH,{data:e,filterSortMode:a,setFilterSortMode:o,displaySettings:u,setDisplaySettings:c,onClearLocalData:v}):null]})]})}function Ts({value:e,onChange:t}){return l.jsx("td",{children:l.jsx("input",{className:"price-input",min:"0",step:"0.001",type:"number",value:e??"",onChange:n=>t(n.target.value)})})}function O2({columns:e,setColumns:t}){const[n,r]=E.useState(!1),a=E.useMemo(()=>uW.reduce((u,c)=>(u[c.group]=u[c.group]?[...u[c.group]??[],c]:[c],u),{}),[]),o=u=>{t(c=>c.includes(u)?c.filter(d=>d!==u):[...c,u])};return l.jsxs("div",{className:"column-menu-wrap",children:[l.jsxs("button",{className:"button",type:"button",onClick:()=>r(u=>!u),"aria-expanded":n,children:[l.jsx(sI,{className:"h-4 w-4","aria-hidden":!0}),"Columns"]}),n?l.jsxs("div",{className:"column-menu",role:"menu",children:[l.jsxs("div",{className:"column-menu-header",children:[l.jsx("span",{children:"Visible columns"}),l.jsx("button",{className:"text-button",type:"button",onClick:()=>t(id),children:"Reset"})]}),Object.entries(a).map(([u,c])=>l.jsxs("div",{className:"column-menu-group",children:[l.jsx("div",{className:"column-menu-label",children:u}),c.map(d=>l.jsxs("label",{className:"column-menu-option",children:[l.jsx("input",{type:"checkbox",checked:e.includes(d.key),onChange:()=>o(d.key)}),l.jsx("span",{children:d.label})]},d.key))]},u))]}):null]})}function wH({data:e,displaySettings:t,setDisplaySettings:n,onOpenSession:r}){const[a,o]=E.useState(""),[u,c]=E.useState(""),[d,h]=E.useState(id),v=E.useMemo(()=>e.sessions.filter(k=>F2(k,a)&&tP(k,u)),[e.sessions,u,a]),m=v.reduce((k,_)=>k+_.totalTokens,0),y=v.reduce((k,_)=>_.estimatedCostUsd===void 0?k:Number(((k??0)+_.estimatedCostUsd).toFixed(6)),void 0),x=v.reduce((k,_)=>k+(_.shellCommandCount??0),0),S=v.reduce((k,_)=>k+(_.fileEditCount??0),0),j=v.filter(Ll).length,b=[{value:"highToken",label:"High token"},{value:"failedCommands",label:"Command issues"},{value:"noEdits",label:"No edits"},{value:"completed",label:"Completed"},{value:"partial",label:"Partial"},{value:"vscode",label:"VS Code"},{value:"terminal",label:"Terminal"},{value:"unknownSurface",label:"Unknown surface"}];return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsxs("div",{className:"page-summary-panel",children:[l.jsx(W,{label:"Loaded sessions",value:l.jsx(oe,{value:v.length,noun:"session"})}),l.jsx(W,{label:"Total tokens",value:l.jsx(Oe,{value:m})}),l.jsx(W,{label:"API-equivalent cost",value:l.jsx(Nt,{value:y})}),l.jsx(W,{label:"Sessions needing review",value:l.jsx(oe,{value:j,noun:"session"})}),l.jsx(W,{label:"File edits detected",value:l.jsx(oe,{value:S,noun:"edit"})}),l.jsx(W,{label:"Commands run",value:l.jsx(oe,{value:x,noun:"command"})})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Session Inventory"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Local metadata parsed from source threads and session files."})]}),l.jsxs("div",{className:"panel-actions",children:[l.jsxs("button",{className:"button",type:"button",onClick:()=>CK(v),children:[l.jsx(Sf,{className:"h-4 w-4","aria-hidden":!0}),"Export CSV"]}),l.jsx(O2,{columns:d,setColumns:h})]})]}),l.jsxs("div",{className:"session-controls",children:[l.jsxs("label",{className:"search-field",children:[l.jsx(bo,{className:"h-4 w-4","aria-hidden":!0}),l.jsx("input",{value:a,onChange:k=>o(k.target.value),placeholder:"Search sessions..."})]}),l.jsxs("div",{className:"quick-filter-row",children:[l.jsx("button",{className:`quick-filter ${u===""?"active":""}`,type:"button",onClick:()=>c(""),children:"All"}),b.map(k=>{const _=e.sessions.filter(T=>tP(T,k.value)).length;return l.jsx("button",{className:`quick-filter ${u===k.value?"active":""}`,disabled:_===0,type:"button",onClick:()=>c(k.value),title:_===0?"No matching sessions in this view":`${_} matching sessions`,children:k.label},k.value)})]}),l.jsx(F0,{shown:v.length,total:e.sessions.length,itemLabel:"sessions"})]}),v.length?l.jsx(_2,{sessions:v,pageSize:t.tablePageSize,onSelectSession:r,visibleColumns:d,onPageSizeChange:k=>n({tablePageSize:k})}):l.jsx(T2,{title:"No sessions matched this filter.",text:"Try clearing the search box, quick filter, or top dashboard filters."})]})]})}function jH({data:e,onSelectRepo:t,selectedRepo:n,displaySettings:r,setDisplaySettings:a}){const o=Ul(e),u=o[0],c=o.filter(v=>v.failedCommandCount>0).length,d=e.sessions.filter(v=>v.estimatedCostUsd===void 0&&v.totalTokens>0).length,h=u&&e.summary.estimatedCostUsd?(u.estimatedCostUsd??0)/e.summary.estimatedCostUsd:0;return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsxs("div",{className:"page-summary-panel",children:[l.jsx(W,{label:"Repos / folders discovered",value:l.jsx(oe,{value:o.length,noun:"item"})}),l.jsx(W,{label:"Top estimated cost repo / folder",value:u?u.label:"None"}),l.jsx(W,{label:"Top repo/folder share",value:l.jsx(mn,{value:h})}),l.jsx(W,{label:"Repos / folders with command issues",value:l.jsx(oe,{value:c,noun:"item"})}),l.jsx(W,{label:"Unpriced token sessions",value:l.jsx(oe,{value:d,noun:"session"})})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Repos / folders"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Compare local AI coding usage by confirmed Git repo root or inferred folder. Nested working directories are merged into their parent repo/folder when a Git root is available."})]}),l.jsxs("div",{className:"panel-actions",children:[l.jsxs("button",{className:"button",type:"button",onClick:()=>_K(o),children:[l.jsx(Sf,{className:"h-4 w-4","aria-hidden":!0}),"Export CSV"]}),l.jsx(F0,{shown:o.length,total:o.length,itemLabel:"repos / folders"})]})]}),l.jsx(C2,{repos:o,onSelect:t,selectedRepo:n,pageSize:r.tablePageSize,...o.length>25?{onPageSizeChange:v=>a({tablePageSize:v})}:{}})]})]})}function SH({data:e,displaySettings:t,setDisplaySettings:n,onOpenRepo:r,onOpenSession:a,onFilterModel:o}){const[u,c]=E.useState("totalTokens"),d=YH(e),h=d[0],v=d.filter(b=>b.estimatedCostUsd===void 0&&b.totalTokens>0).length,m=[...d].sort((b,k)=>k.cacheRate-b.cacheRate)[0],y=[...d].sort((b,k)=>k.inputTokens-b.inputTokens)[0],x=[...d].sort((b,k)=>k.cachedInputTokens-b.cachedInputTokens)[0],S=[...d].sort((b,k)=>k.outputTokens-b.outputTokens)[0],j=[...d].sort((b,k)=>k.reasoningTokens-b.reasoningTokens)[0];return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsxs("div",{className:"page-summary-panel",children:[l.jsx(W,{label:"Models used",value:l.jsx(oe,{value:d.length,noun:"model"})}),l.jsx(W,{label:"Top estimated cost model",value:h?l.jsx(Ao,{model:h.label}):"None"}),l.jsx(W,{label:"Top model share",value:l.jsx(mn,{value:h&&e.summary.estimatedCostUsd?(h.estimatedCostUsd??0)/e.summary.estimatedCostUsd:0})}),l.jsx(W,{label:"Best cache reuse",value:m?l.jsxs("span",{children:[m.label," · ",l.jsx(mn,{value:m.cacheRate})]}):"None"}),l.jsx(W,{label:"Unpriced token models",value:l.jsx(oe,{value:v,noun:"model"})})]}),l.jsxs("div",{className:"grid gap-4 xl:grid-cols-[1.15fr_0.85fr]",children:[l.jsx(yo,{title:`Models: ${Hn(u)}`,className:"overview-chart-panel model-chart-panel",actions:l.jsx(P2,{icon:l.jsx(oP,{}),label:"Chart metric",value:u,onChange:b=>c(b),options:nd}),children:l.jsx(Qa,{width:"100%",height:300,children:l.jsxs(bl,{data:gc(d,u,t.chartGroupLimit),layout:"vertical",margin:{left:16,right:16},children:[l.jsx(di,{strokeDasharray:"3 3",stroke:"rgba(148, 163, 184, 0.14)"}),l.jsx(Gn,{type:"number",tickFormatter:b=>wl(u,Number(b)),tick:{fill:"#94a3b8"}}),l.jsx(Xn,{dataKey:"label",type:"category",width:170,tickFormatter:b=>L2(String(b)),tick:{fontSize:12,fill:"#94a3b8"}}),l.jsx(Ft,{contentStyle:Zi,labelStyle:Ji,itemStyle:ea,formatter:b=>jl(u,Number(b))}),l.jsx(Vn,{dataKey:u,name:Hn(u),fill:u==="estimatedCostUsd"?"#f59e0b":"#2dd4bf"})]})})}),l.jsxs("div",{className:"panel model-shape-panel",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Token shape by model"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Largest token buckets in this filtered view."})]})}),l.jsxs("div",{className:"model-shape-list",children:[l.jsx(W,{label:"Highest input",value:y?l.jsxs("span",{children:[y.label," · ",l.jsx(Oe,{value:y.inputTokens})]}):"None"}),l.jsx(W,{label:"Largest cached input",value:x&&x.cachedInputTokens>0?l.jsxs("span",{children:[x.label," · ",l.jsx(Oe,{value:x.cachedInputTokens})]}):"None"}),l.jsx(W,{label:"Highest output",value:S?l.jsxs("span",{children:[S.label," · ",l.jsx(Oe,{value:S.outputTokens})]}):"None"}),l.jsx(W,{label:"Highest reasoning",value:j?l.jsxs("span",{children:[j.label," · ",l.jsx(Oe,{value:j.reasoningTokens})]}):"None"})]})]})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Models"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Compare each model by input tokens, cached input, output, reasoning, sessions, API-equivalent cost, cache reuse, and repo concentration."})]}),l.jsxs("div",{className:"panel-actions",children:[l.jsx(Sl,{label:"Rows",value:t.tablePageSize,options:No,onChange:b=>n({tablePageSize:b})}),l.jsx(F0,{shown:d.length,total:d.length,itemLabel:"models"})]})]}),l.jsx(kH,{rows:d,pageSize:t.tablePageSize,onOpenRepo:r,onOpenSession:a,onFilterModel:o})]})]})}function kH({rows:e,pageSize:t,onOpenRepo:n,onOpenSession:r,onFilterModel:a}){const[o,u]=E.useState({key:"cost",direction:"desc"}),c=E.useMemo(()=>xK(e,o),[e,o]),d=fi(c,t);return l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"model-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx(je,{label:"Model",column:"model",sort:o,setSort:u}),l.jsx("th",{children:"Provider"}),l.jsx(je,{label:"API-equivalent cost",column:"cost",sort:o,setSort:u}),l.jsx(je,{label:"Total tokens",column:"tokens",sort:o,setSort:u}),l.jsx(je,{label:"Total input",column:"input",sort:o,setSort:u}),l.jsx(je,{label:"Cached input",column:"cached",sort:o,setSort:u}),l.jsx(je,{label:"Output",column:"output",sort:o,setSort:u}),l.jsx(je,{label:"Reasoning",column:"reasoning",sort:o,setSort:u}),l.jsx(je,{label:"Sessions",column:"sessions",sort:o,setSort:u}),l.jsx(je,{label:"Cache hit",column:"cache",sort:o,setSort:u}),l.jsx(je,{label:"Top repo / folder",column:"repo",sort:o,setSort:u}),l.jsx(je,{label:"Latest activity",column:"activity",sort:o,setSort:u}),l.jsx("th",{children:"Action"})]})}),l.jsx("tbody",{children:d.items.map(h=>l.jsxs("tr",{children:[l.jsx("td",{className:"font-medium",children:l.jsx(Ao,{model:h.label})}),l.jsx("td",{children:l.jsx(vt,{label:h.providerLabel})}),l.jsx("td",{children:l.jsx(Nt,{value:h.estimatedCostUsd,breakdown:h})}),l.jsx("td",{children:l.jsx(Oe,{value:h.totalTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(Oe,{value:h.inputTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(Oe,{value:h.cachedInputTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(Oe,{value:h.outputTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(Oe,{value:h.reasoningTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:h.sessionCount,noun:"session",showUnit:!1})}),l.jsx("td",{children:l.jsx(mn,{value:h.cacheRate})}),l.jsx("td",{children:h.topRepo?l.jsx("button",{className:"row-link-button",type:"button",onClick:()=>n(h.topRepo.id),children:l.jsx(mi,{name:h.topRepo.label,verified:h.topRepo.verified===!0})}):"None"}),l.jsx("td",{children:h.latestSession?l.jsx("button",{className:"row-link-button",type:"button",onClick:()=>r(h.latestSession.id),children:zH(h.latestSession.startedAt??h.latestSession.endedAt)}):"Unknown"}),l.jsx("td",{children:l.jsx("button",{className:"button compact-button",type:"button",onClick:()=>a(h.id),children:"Filter"})})]},h.id))})]}),l.jsx(ci,{page:d.page,pageCount:d.pageCount,total:c.length,pageSize:t,onPageChange:d.setPage})]})}function CH({data:e,selectedRepo:t,dateRangeLabel:n,pageSize:r,onBack:a,onOpenSession:o}){const u=Ul(e),c=t?u.find(d=>d.id===t):void 0;return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsx("button",{className:"text-button",type:"button",onClick:a,children:"Back to repos / folders"}),l.jsx(GW,{repo:c,sessions:(c==null?void 0:c.sessions)??[],allRepos:u,data:e,dateRangeLabel:n,pageSize:r,onOpenSession:o})]})}function Ba(e,t){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),t())}function _H({data:e,onOpenRepo:t,onOpenSession:n,displaySettings:r,setDisplaySettings:a}){const o=e.sessions.filter(Ll),u=e.sessions.filter(y=>Xe(y)===0&&((y.harmlessNonZeroEvents??0)>0||(y.exploratoryMisses??0)>0)),c=sK(e.sessions),d=fi(c,r.tablePageSize),h=fi(o,r.tablePageSize),v=fi(u,r.tablePageSize),m=c[0];return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsxs("div",{className:"page-summary-panel",children:[l.jsx(W,{label:"Important failures",value:l.jsx(oe,{value:e.summary.importantCommandFailures,noun:"issue"})}),l.jsx(W,{label:"Repeated failure clusters",value:l.jsx(oe,{value:e.summary.repeatedFailureClusters,noun:"cluster"})}),l.jsx(W,{label:"Harmless non-zero exits",value:l.jsx(oe,{value:e.summary.harmlessNonZeroEvents+e.summary.exploratoryMisses,noun:"event"})}),l.jsx(W,{label:"Sessions needing review",value:l.jsx(oe,{value:o.length,noun:"session"})}),l.jsx(W,{label:"Top affected repo / folder",value:m?m.repoName:"None"})]}),l.jsxs("p",{className:"text-xs text-slate-500",children:["Total non-zero command events: ",Ee(e.summary.nonZeroCommandEvents,"event"),"."]}),l.jsxs("details",{className:"panel command-health-note",children:[l.jsx("summary",{className:"advanced-summary",children:l.jsxs("span",{className:"inline-flex items-center gap-2",children:[l.jsx(ur,{className:"h-4 w-4 text-amber","aria-hidden":!0}),"How Agent Friction is classified"]})}),l.jsxs("div",{className:"command-health-note-body",children:[l.jsx("p",{children:"Many shell commands return a non-zero exit during normal exploration. RepoSpend separates blocking failures from harmless non-zero exits and focuses on repeated, blocking, or token-expensive command issues."}),l.jsx("p",{children:"Search misses, optional file probes, and Git diff checks are treated as low severity unless other evidence suggests they blocked progress. Builds, tests, installs, permissions, auth, database, deploy, and repeated failures are treated as important signals."})]})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Command signals by repo / folder"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Repos or folders where important command issues, harmless exits, or repeated clusters appear in the current filtered view."})]}),l.jsx("div",{className:"panel-actions",children:l.jsx(Sl,{label:"Rows",value:r.tablePageSize,options:No,onChange:y=>a({tablePageSize:y})})})]}),c.length?l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"command-health-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Repo / folder"}),l.jsx("th",{children:"Important failures"}),l.jsx("th",{children:"Harmless non-zero exits"}),l.jsx("th",{children:"Repeated clusters"}),l.jsx("th",{children:"Sessions needing review"}),l.jsx("th",{children:"Top failure type"}),l.jsx("th",{children:"Impact"}),l.jsx("th",{children:"API-equivalent cost"})]})}),l.jsx("tbody",{children:d.items.map(y=>l.jsxs("tr",{className:"clickable-row",role:"button",tabIndex:0,onClick:()=>t(y.repoRoot),onKeyDown:x=>Ba(x,()=>t(y.repoRoot)),children:[l.jsx("td",{className:"font-medium",children:l.jsx(mi,{name:y.repoName,verified:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.importantFailures,noun:"issue",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.harmlessNonZeroEvents,noun:"event",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.repeatedFailureClusters,noun:"cluster",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.sessionsNeedingReview,noun:"session",showUnit:!1})}),l.jsx("td",{children:VT(y.topFailureType)}),l.jsx("td",{children:l.jsx(vt,{label:KT(y.impact)})}),l.jsx("td",{children:l.jsx(Nt,{value:y.estimatedCostUsd})})]},y.repoRoot))})]}),l.jsx(ci,{page:d.page,pageCount:d.pageCount,total:c.length,pageSize:r.tablePageSize,onPageChange:d.setPage})]}):l.jsx("div",{className:"p-4",children:l.jsx("p",{className:"text-sm text-slate-600",children:"No important command issues detected. Some harmless non-zero shell exits may still exist."})})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Sessions Needing Review"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Sessions with important failures, repeated clusters, high non-zero rates, or command issues in high-token work."})]})}),o.length?l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"sessions-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Session"}),l.jsx("th",{children:"Repo / folder"}),l.jsx("th",{children:"Outcome"}),l.jsx("th",{children:"Important failures"}),l.jsx("th",{children:"Harmless exits"}),l.jsx("th",{children:"Top failure type"}),l.jsx("th",{children:"Impact"}),l.jsx("th",{children:"Total tokens"}),l.jsx("th",{children:"Files edited"})]})}),l.jsx("tbody",{children:h.items.map(y=>l.jsxs("tr",{className:"clickable-row",role:"button",tabIndex:0,onClick:()=>n(y.id),onKeyDown:x=>Ba(x,()=>n(y.id)),children:[l.jsx("td",{className:"max-w-80 truncate font-medium",title:Pt(y),children:Pt(y)}),l.jsx("td",{children:l.jsx(mi,{name:y.repoName,verified:od(y)})}),l.jsx("td",{children:l.jsx(go,{outcome:y.sessionOutcome})}),l.jsx("td",{children:l.jsx(oe,{value:Xe(y),noun:"issue",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:(y.harmlessNonZeroEvents??0)+(y.exploratoryMisses??0),noun:"event",showUnit:!1})}),l.jsx("td",{children:VT(y.topFailureType)}),l.jsx("td",{children:l.jsx(vt,{label:KT(y.commandIssueImpact)})}),l.jsx("td",{children:l.jsx(Oe,{value:y.totalTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.fileEditCount??0,noun:"edit",showUnit:!1})})]},y.id))})]}),l.jsx(ci,{page:h.page,pageCount:h.pageCount,total:o.length,pageSize:r.tablePageSize,onPageChange:h.setPage})]}):l.jsx("p",{className:"p-4 text-sm text-slate-600",children:"No important command issues detected. Some harmless non-zero shell exits may still exist."})]}),l.jsxs("details",{className:"panel overflow-hidden",children:[l.jsx("summary",{className:"advanced-summary",children:"Harmless / ignored non-zero events"}),u.length?l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"compact-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Session"}),l.jsx("th",{children:"Repo / folder"}),l.jsx("th",{children:"Harmless exits"}),l.jsx("th",{children:"Exploratory misses"}),l.jsx("th",{children:"Total non-zero"})]})}),l.jsx("tbody",{children:v.items.map(y=>l.jsxs("tr",{className:"clickable-row",role:"button",tabIndex:0,onClick:()=>n(y.id),onKeyDown:x=>Ba(x,()=>n(y.id)),children:[l.jsx("td",{className:"max-w-96 truncate font-medium",title:Pt(y),children:Pt(y)}),l.jsx("td",{children:y.repoName}),l.jsx("td",{children:l.jsx(oe,{value:y.harmlessNonZeroEvents??0,noun:"event",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.exploratoryMisses??0,noun:"miss",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:y.nonZeroCommandEvents??0,noun:"event",showUnit:!1})})]},y.id))})]}),l.jsx(ci,{page:v.page,pageCount:v.pageCount,total:u.length,pageSize:r.tablePageSize,onPageChange:v.setPage})]}):l.jsx("p",{className:"p-4 text-sm text-slate-600",children:"No harmless non-zero events were detected in this filtered view."})]})]})}function OH({insights:e,compact:t=!1}){return l.jsxs("section",{className:"panel overflow-hidden",children:[l.jsx("div",{className:"panel-heading",children:l.jsxs("div",{children:[l.jsx("h2",{children:"Key Insights"}),t?null:l.jsx("p",{className:"text-sm text-slate-600",children:"The fastest read on where usage went and what to inspect first."})]})}),l.jsx("div",{className:`${t?"key-insights-list":"key-insights-grid"} p-4`,children:e.length?e.map(n=>l.jsxs("div",{className:`key-insight key-insight-${n.tone??"neutral"}`,children:[l.jsxs("div",{className:"key-insight-topline",children:[l.jsx("span",{children:n.label}),n.metric?l.jsx("strong",{children:n.metric}):null]}),l.jsx("p",{children:n.text})]},n.text)):l.jsx("p",{className:"text-sm text-slate-600",children:"No insights available for this filtered view yet."})})]})}function TH({data:e,onOpenSessions:t}){const n=e.health.wasteSignals;return l.jsxs("section",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Needs Attention"}),l.jsx("p",{className:"text-sm text-slate-600",children:"Waste and friction signals that may be worth reviewing before broad conclusions."})]}),l.jsx("button",{className:"button",type:"button",onClick:t,children:"Open Sessions"})]}),l.jsx("div",{className:"waste-grid p-4",children:n.length?n.map(r=>l.jsxs("div",{className:"waste-card",children:[l.jsx("div",{className:"text-xs uppercase text-slate-500",children:Ds(r.title)}),l.jsx("div",{className:"mt-1 text-lg font-semibold",children:r.value}),l.jsx("p",{className:"mt-1 text-sm text-slate-600",children:Ds(r.detail)})]},r.title)):l.jsxs("div",{className:"waste-card waste-good",children:[l.jsx("div",{className:"text-xs uppercase text-slate-500",children:"Waste signals"}),l.jsx("div",{className:"mt-1 text-lg font-semibold",children:"Clear"}),l.jsx("p",{className:"mt-1 text-sm text-slate-600",children:"No obvious waste signals detected in this period."})]})})]})}function PH({sessions:e,pageSize:t,onOpenSession:n,onOpenRepo:r}){const[a,o]=E.useState({key:"cost",direction:"desc"}),u=E.useMemo(()=>q2(e,a),[e,a]),c=fi(u,t);return l.jsxs("div",{className:"table-wrap",children:[l.jsxs("table",{className:"expensive-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx(je,{label:"Repo / folder",column:"repo",sort:a,setSort:o}),l.jsx(je,{label:"Session",column:"session",sort:a,setSort:o}),l.jsx(je,{label:"Provider / app/surface",column:"app",sort:a,setSort:o}),l.jsx("th",{children:"Outcome"}),l.jsx(je,{label:"Model",column:"model",sort:a,setSort:o}),l.jsx(je,{label:"Started",column:"started",sort:a,setSort:o}),l.jsx(je,{label:"Duration",column:"duration",sort:a,setSort:o}),l.jsx(je,{label:"API-equivalent cost",column:"cost",sort:a,setSort:o}),l.jsx(je,{label:"Total tokens",column:"tokens",sort:a,setSort:o}),l.jsx(je,{label:"Files edited",column:"files",sort:a,setSort:o}),l.jsx(je,{label:"Command issues",column:"failed",sort:a,setSort:o}),l.jsx("th",{children:"Warnings"})]})}),l.jsx("tbody",{children:c.items.map(d=>l.jsxs("tr",{className:"clickable-row",role:"button",tabIndex:0,onClick:()=>n(d.id),onKeyDown:h=>Ba(h,()=>n(d.id)),children:[l.jsx("td",{children:l.jsx("button",{className:"row-link-button",type:"button",onClick:h=>{h.stopPropagation(),r(d.repoRoot||d.repoName)},children:l.jsx(mi,{name:d.repoName,verified:od(d)})})}),l.jsx("td",{className:"max-w-80 truncate font-medium",title:Pt(d),children:Pt(d)}),l.jsx("td",{children:l.jsxs("div",{className:"source-app-cell",children:[l.jsx(z0,{source:d.sourceClient}),l.jsx(B0,{app:d.sourceApp,surface:d.detectedSurface})]})}),l.jsx("td",{children:l.jsx(go,{outcome:d.sessionOutcome})}),l.jsx("td",{children:l.jsx(Ao,{model:d.model})}),l.jsx("td",{children:d.startedAt?d.startedAt.slice(0,10):"Unknown"}),l.jsx("td",{children:vo(d.durationMs)}),l.jsx("td",{children:l.jsx(Nt,{value:d.estimatedCostUsd,session:d})}),l.jsx("td",{children:l.jsx(Oe,{value:d.totalTokens,showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:d.fileEditCount??0,noun:"file",showUnit:!1})}),l.jsx("td",{children:l.jsx(oe,{value:Xe(d),noun:"issue",showUnit:!1})}),l.jsx("td",{children:l.jsx(sd,{labels:H0(d).filter(h=>h!==Rl(d.sessionOutcome))})})]},d.id))})]}),l.jsx(ci,{page:c.page,pageCount:c.pageCount,total:u.length,pageSize:t,onPageChange:c.setPage})]})}function NH({data:e,onNavigate:t}){const n=e.health.signals,r=n.filter(o=>o.tone==="good"),a=n.filter(o=>o.tone==="attention");return l.jsxs("section",{className:"mt-4 space-y-4",children:[l.jsxs("div",{className:"page-summary-panel",children:[l.jsx(W,{label:"Healthy checks",value:l.jsx(oe,{value:e.health.healthyCount,noun:"check"})}),l.jsx(W,{label:"Needs attention",value:l.jsx(oe,{value:e.health.attentionCount,noun:"item"})}),l.jsx(W,{label:"Critical issues",value:l.jsx(oe,{value:e.health.criticalCount,noun:"issue"})}),l.jsx(W,{label:"Sessions affected",value:l.jsx(oe,{value:e.health.affectedSessionCount,noun:"session"})})]}),l.jsxs("div",{className:"panel overflow-hidden",children:[l.jsxs("div",{className:"panel-heading",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Usage Health"}),l.jsx("p",{className:"text-sm text-slate-600",children:"A quick read on what is already working and what to improve next."})]}),l.jsx("span",{className:"text-xs text-slate-500",children:"Based on the current dashboard filters"})]}),l.jsxs("div",{className:"insights-grid p-4",children:[l.jsx(BT,{title:"Already healthy",empty:"No healthy signals yet. Load usage or widen the filters.",items:r,onNavigate:t}),l.jsx(BT,{title:"Needs attention",empty:"No major issues detected in this filtered view.",items:a,onNavigate:t})]})]})]})}function BT({title:e,empty:t,items:n,onNavigate:r}){return l.jsxs("div",{children:[l.jsx("h3",{className:"mb-2 text-sm font-semibold",children:e}),n.length?l.jsx("div",{className:"space-y-2",children:n.map(a=>l.jsxs("div",{className:`insight-card ${a.tone==="good"?"insight-good":"insight-attention"}`,children:[l.jsxs("div",{className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l.jsx("span",{className:`severity-pill severity-${rP(a).toLowerCase()}`,children:rP(a)}),l.jsx("div",{className:"font-semibold",children:Ds(a.title)})]}),l.jsx("p",{className:"mt-1 text-sm text-slate-600",children:Ds(a.detail)})]}),a.metric?l.jsx("span",{className:"insight-metric",children:a.metric}):null]}),a.action?l.jsx("p",{className:"mt-2 text-xs font-semibold text-slate-700",children:Ds(a.action)}):null,a.actionTarget?l.jsx("button",{className:"text-button mt-2",type:"button",onClick:()=>r(a.actionTarget),children:a.actionLabel??"Open"}):null]},a.title))}):l.jsx("p",{className:"text-sm text-slate-600",children:t})]})}function AH({message:e}){return l.jsxs("div",{className:"panel error-state mt-4",role:"alert",children:[l.jsx(ur,{className:"mt-0.5 h-5 w-5","aria-hidden":!0}),l.jsxs("div",{children:[l.jsx("strong",{children:"Unable to load RepoSpend data."}),l.jsx("p",{children:e}),l.jsxs("button",{className:"button mt-3",type:"button",onClick:()=>window.location.reload(),children:[l.jsx(Cl,{className:"h-4 w-4","aria-hidden":!0}),"Retry scan"]})]})]})}function F0({shown:e,total:t,itemLabel:n}){const r=e!==t;return l.jsxs("div",{className:"results-summary","aria-live":"polite",children:[l.jsx("strong",{children:Er(e)}),l.jsx("span",{children:r?`of ${Er(t)} ${n}`:n})]})}function T2({title:e,text:t}){return l.jsxs("div",{className:"empty-panel",children:[l.jsx("div",{className:"font-semibold",children:e}),l.jsx("p",{className:"mt-1 text-sm text-slate-600",children:t})]})}function EH(e,t){return e.source.length>0||e.sourceApp.length>0||e.repo.length>0||e.model.length>0||t!=="last7"}function MH(e,t,n){var u;const r=[];e.source.forEach(c=>{var d;return r.push(((d=n.sources.find(h=>h.value===c))==null?void 0:d.label)??c)}),e.sourceApp.forEach(c=>{var d;return r.push(((d=n.sourceApps.find(h=>h.value===c))==null?void 0:d.label)??c)}),e.repo.forEach(c=>{var d;return r.push(((d=n.repos.find(h=>h.value===c))==null?void 0:d.label)??c)}),e.model.forEach(c=>{var d;return r.push(((d=n.models.find(h=>h.value===c))==null?void 0:d.label)??c)});const a=((u=rd.find(c=>c.value===t))==null?void 0:u.label)??"Custom dates";return{date:t==="custom"?`${ar(e.from)||"Any start"} to ${ar(e.to)||"now"}`:a,countLabel:r.length?`${r.length} filter${r.length===1?"":"s"} active`:"No extra filters",preview:r.slice(0,3)}}function yo({title:e,children:t,className:n="",actions:r}){return l.jsxs("div",{className:`panel chart-panel overflow-hidden ${n}`,children:[l.jsxs("div",{className:"panel-heading",children:[l.jsx("h2",{children:e}),r?l.jsx("div",{className:"panel-actions chart-panel-actions",children:r}):null]}),l.jsx("div",{className:"chart-panel-body p-3",children:t})]})}function ri({icon:e,iconKind:t,label:n,values:r,onChange:a,options:o,collapsedLimit:u=5}){const[c,d]=E.useState(u),[h,v]=E.useState(""),m=h.trim().toLowerCase(),y=o.filter(A=>r.includes(A.value)),x=o.filter(A=>!r.includes(A.value)),S=y,j=m?x.filter(A=>A.label.toLowerCase().includes(m)||A.value.toLowerCase().includes(m)):x,b=j.slice(0,c),k=S2([...S,...b]),_=Math.max(j.length-b.length,0),T=Math.min(5,_);return E.useEffect(()=>{d(u)},[u,m,o.length]),l.jsxs("div",{className:"field app-picker-field",children:[l.jsxs("span",{children:[E.cloneElement(e,{className:"h-4 w-4"}),n]}),l.jsxs("label",{className:"filter-search-field",children:[l.jsx(bo,{className:"h-3.5 w-3.5","aria-hidden":!0}),l.jsx("input",{value:h,onChange:A=>v(A.target.value),placeholder:`Search ${n.toLowerCase()}...`})]}),l.jsxs("div",{className:"app-picker",role:"group","aria-label":`${n} filter`,children:[l.jsxs("button",{className:`app-pill ${r.length===0?"active":""}`,onClick:()=>a(""),type:"button","aria-pressed":r.length===0,title:`Show all ${n.toLowerCase()} values`,children:[l.jsx(HT,{kind:t,label:"All"}),l.jsx("span",{children:"All"})]}),k.map(A=>{const C=r.includes(A.value);return l.jsxs("button",{className:`app-pill ${C?"active":""}`,onClick:()=>a(A.value),type:"button","aria-pressed":C,title:A.usage===void 0?C?`Remove ${A.label}`:`Add ${A.label}`:`${A.label}: ${zi(A.usage)} in this option set`,children:[l.jsx(HT,{kind:A.icon??t,label:A.label,verified:A.verified===!0}),l.jsx("span",{children:A.label})]},A.value)}),_>0?l.jsx("button",{className:"app-pill more-pill",type:"button",onClick:()=>d(A=>A+5),children:l.jsxs("span",{children:["+",T," more"]})}):c>u&&j.length>u?l.jsx("button",{className:"app-pill more-pill",type:"button",onClick:()=>d(u),children:l.jsx("span",{children:"Show less"})}):m&&k.length===0?l.jsx("span",{className:"filter-empty",children:"No matches"}):null]})]})}function zT({filters:e,rangePreset:t,sources:n,sourceApps:r,repos:a,models:o,onClearValue:u,onResetDate:c,onResetAll:d}){var y;const h=[];e.source.forEach(x=>{var S;return h.push({key:"source",label:"AI provider",value:x,displayValue:((S=n.find(j=>j.value===x))==null?void 0:S.label)??x})}),e.sourceApp.forEach(x=>{var S;return h.push({key:"sourceApp",label:"App / surface",value:x,displayValue:((S=r.find(j=>j.value===x))==null?void 0:S.label)??x})}),e.repo.forEach(x=>{var S;return h.push({key:"repo",label:"Repo / folder",value:x,displayValue:((S=a.find(j=>j.value===x))==null?void 0:S.label)??x})}),e.model.forEach(x=>{var S;return h.push({key:"model",label:"Model",value:x,displayValue:((S=o.find(j=>j.value===x))==null?void 0:S.label)??x})});const v=t!=="last7",m=h.length>0||v;return l.jsxs("div",{className:"active-filters",children:[l.jsx("span",{className:"active-filter-label",children:"Active filters"}),l.jsxs("button",{className:`active-filter-chip ${m?"":"muted"}`,type:"button",onClick:v?c:void 0,children:["Date: ",((y=rd.find(x=>x.value===t))==null?void 0:y.label)??"Custom",v?l.jsx("span",{"aria-hidden":!0,children:"×"}):null]}),h.map(x=>l.jsxs("button",{className:"active-filter-chip",type:"button",onClick:()=>u(x.key,x.value),children:[x.label,": ",x.displayValue,l.jsx("span",{"aria-hidden":!0,children:"×"})]},`${x.key}-${x.value}`)),h.length===0&&!v?l.jsx("span",{className:"active-filter-empty",children:"No AI provider, app/surface, repo/folder, or model filters applied."}):null,m?l.jsx("button",{className:"text-button active-filter-reset",type:"button",onClick:d,children:"Reset filters"}):null]})}function P2({icon:e,label:t,value:n,onChange:r,options:a}){return l.jsxs("label",{className:"field",children:[l.jsxs("span",{children:[E.cloneElement(e,{className:"h-4 w-4"}),t]}),l.jsxs("select",{value:n,onChange:o=>r(o.target.value),children:[n===""&&!a.some(o=>o.value==="")?l.jsx("option",{value:"",children:"All"}):null,a.map(o=>l.jsx("option",{value:o.value,children:o.label},o.value))]})]})}function WT({value:e,onChange:t}){const n=[{value:"last24",label:"24h"},{value:"last7",label:"7d"},{value:"last30",label:"30d"},{value:"all",label:"All"}];return l.jsxs("div",{className:"field date-range-picker",children:[l.jsxs("span",{children:[l.jsx(uP,{className:"h-4 w-4","aria-hidden":!0}),"Date range"]}),l.jsx("div",{className:"date-range-select-row",children:l.jsx("select",{value:e,onChange:r=>t(r.target.value),"aria-label":"Date range",children:rd.map(r=>l.jsx("option",{value:r.value,children:r.label},r.value))})}),l.jsx("div",{className:"date-range-shortcuts","aria-label":"Quick date ranges",children:n.map(r=>l.jsx("button",{className:e===r.value?"active":"",type:"button",onClick:()=>t(r.value),children:r.label},r.value))})]})}function Sl({label:e,value:t,options:n,onChange:r}){return l.jsxs("label",{className:"limit-select",children:[l.jsx("span",{children:e}),l.jsx("select",{value:t,onChange:a=>r(Number(a.target.value)),children:n.map(a=>l.jsx("option",{value:a,children:a},a))})]})}function ci({page:e,pageCount:t,total:n,pageSize:r,onPageChange:a,pageSizeOptions:o,onPageSizeChange:u}){if(n<=r&&!u)return null;const c=(e-1)*r+1,d=Math.min(n,e*r);return l.jsxs("div",{className:"pagination-controls",children:[l.jsxs("span",{children:["Showing ",c,"-",d," of ",n]}),l.jsxs("div",{className:"pagination-buttons",children:[l.jsx("button",{className:"button",type:"button",disabled:e<=1,onClick:()=>a(1),children:"First"}),l.jsx("button",{className:"button",type:"button",disabled:e<=1,onClick:()=>a(e-1),children:"Prev"}),l.jsxs("span",{children:["Page ",e," / ",t]}),l.jsx("button",{className:"button",type:"button",disabled:e>=t,onClick:()=>a(e+1),children:"Next"}),l.jsx("button",{className:"button",type:"button",disabled:e>=t,onClick:()=>a(t),children:"Last"}),u&&o?l.jsxs("label",{className:"pagination-size",children:[l.jsx("span",{children:"Rows"}),l.jsx("select",{value:r,onChange:h=>u(Number(h.target.value)),children:o.map(h=>l.jsx("option",{value:h,children:h},h))})]}):null]})]})}function B0({app:e,surface:t}){const n=e||Mr(t),r=Mr(t),a=e&&r!=="Unknown"&&e!==r?`App: ${e}. Surface: ${r}.`:`App: ${n}.`;return l.jsxs("span",{className:"app-label",title:a,children:[l.jsx(A2,{app:n,surface:t}),l.jsx("span",{children:n})]})}function z0({source:e,label:t}){const n=t??pi(e);return l.jsxs("span",{className:`source-badge source-badge-${e}`,title:`AI provider: ${n}`,children:[l.jsx(N2,{provider:e,label:n}),l.jsx("span",{children:n})]})}function Ao({model:e}){const t=e??"Unknown";return l.jsxs("span",{className:"inline-flex items-center gap-1",children:[l.jsx(E2,{model:e}),l.jsx("span",{children:t})]})}function od(e){return!e.warnings.includes("repo_unverified_no_git_root")}function mi({name:e,verified:t}){return l.jsxs("span",{className:"inline-flex items-center gap-1",children:[t?l.jsx(fP,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}):l.jsx(cP,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),e]})}function HT({kind:e,label:t,verified:n}){return t==="All"?l.jsx(IH,{kind:e}):e==="source"?l.jsx(N2,{label:t}):e==="app"?l.jsx(A2,{app:t}):e==="repo"?n?l.jsx(fP,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(cP,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(E2,{model:t})}function IH({kind:e}){return e==="source"?l.jsx(xc,{className:"h-4 w-4","aria-hidden":!0}):e==="app"?l.jsx(sg,{className:"h-4 w-4","aria-hidden":!0}):e==="repo"?l.jsx(Or,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(Wa,{className:"h-4 w-4","aria-hidden":!0})}function N2({provider:e,label:t}){const n=(t||e||"").toLowerCase();return e==="codex"||n.includes("codex")||n.includes("openai")?l.jsx($l,{}):e==="claude"||n.includes("claude")||n.includes("anthropic")?l.jsx(Dl,{}):e==="cursor"||n.includes("cursor")?l.jsx(Ls,{className:"h-4 w-4","aria-hidden":!0}):e==="gemini-cli"||n.includes("gemini")?l.jsx(hP,{className:"h-4 w-4","aria-hidden":!0}):e==="opencode"||n.includes("opencode")?l.jsx(Ls,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(xc,{className:"h-4 w-4","aria-hidden":!0})}function A2({app:e,surface:t}){const n=(e||t||"").toLowerCase();return n.includes("codex on vs code")||n.includes("codex on vscode")?l.jsx(hc,{source:"codex",surface:"vscode"}):n.includes("codex on terminal")||n.includes("codex on cli")?l.jsx(hc,{source:"codex",surface:"terminal"}):n.includes("claude code on vs code")||n.includes("claude code on vscode")?l.jsx(hc,{source:"claude",surface:"vscode"}):n.includes("claude code on terminal")||n.includes("claude code on cli")?l.jsx(hc,{source:"claude",surface:"terminal"}):n.includes("cursor")?l.jsx(Ls,{className:"h-4 w-4","aria-hidden":!0}):n.includes("desktop local agent")||n.includes("desktop app")||t==="local_agent"?l.jsx(iI,{className:"h-4 w-4","aria-hidden":!0}):n.includes("claude")?l.jsx(Dl,{}):n.includes("vs code")||n.includes("vscode")||t==="vscode_extension"?l.jsx(M2,{}):n.includes("codex app")||n.includes("subagent")||t==="codex_app_cloud"?l.jsx(RH,{}):n.includes("codex")||n.includes("agent")?l.jsx($l,{}):n.includes("exec")||t==="codex_exec"?l.jsx(Ls,{className:"h-4 w-4","aria-hidden":!0}):n.includes("terminal")||n.includes("cli")||t==="terminal_cli"?l.jsx(pP,{className:"h-4 w-4","aria-hidden":!0}):e?l.jsx(cI,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(oI,{className:"h-4 w-4","aria-hidden":!0})}function E2({model:e}){const t=(e??"").toLowerCase();return t.includes("claude")||t.includes("opus")||t.includes("sonnet")||t.includes("haiku")?l.jsx(Dl,{}):t.includes("gpt")||t.includes("o1")||t.includes("o3")||t.includes("o4")||t.includes("openai")?l.jsx($l,{}):t.includes("gemini")?l.jsx(hP,{className:"h-4 w-4","aria-hidden":!0}):t.includes("unknown")||!t?l.jsx(lI,{className:"h-4 w-4","aria-hidden":!0}):l.jsx(Wa,{className:"h-4 w-4","aria-hidden":!0})}function hc({source:e,surface:t}){return l.jsxs("span",{className:`combo-icon combo-icon-${e}-${t}`,"aria-hidden":!0,children:[l.jsx("span",{className:"combo-icon-main",children:t==="vscode"?l.jsx(M2,{}):l.jsx(pP,{className:"brand-icon terminal-combo-icon","aria-hidden":!0})}),l.jsx("span",{className:"combo-icon-corner",children:e==="codex"?l.jsx($l,{}):l.jsx(Dl,{})})]})}function M2(){return l.jsxs("svg",{className:"brand-icon vscode-icon",viewBox:"0 0 24 24","aria-hidden":!0,children:[l.jsx("path",{d:"M17.85 2.7 8.6 11.1 3.35 7.1 2 8.05v7.9l1.35.95 5.25-4 9.25 8.4L22 19.55V4.45L17.85 2.7Z",fill:"#007ACC"}),l.jsx("path",{d:"M17.85 7.05 11.2 12l6.65 4.95V7.05Z",fill:"#1F9CF0"}),l.jsx("path",{d:"M3.35 7.1 8.6 12l-5.25 4.9L2 15.95v-7.9l1.35-.95Z",fill:"#40B6FF"})]})}function $l(){return l.jsxs("svg",{className:"brand-icon codex-icon",viewBox:"0 0 24 24","aria-hidden":!0,children:[l.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5",fill:"currentColor",opacity:"0.16"}),l.jsx("path",{d:"M8.4 7.7 4.9 11.2a1.1 1.1 0 0 0 0 1.6l3.5 3.5 1.25-1.25L6.9 12l2.75-3.05L8.4 7.7Z",fill:"currentColor"}),l.jsx("path",{d:"M15.6 7.7 14.35 8.95 17.1 12l-2.75 3.05 1.25 1.25 3.5-3.5a1.1 1.1 0 0 0 0-1.6l-3.5-3.5Z",fill:"currentColor"}),l.jsx("path",{d:"M11.15 17.2 13.2 6.8h1.65L12.8 17.2h-1.65Z",fill:"currentColor"})]})}function RH(){return l.jsxs("svg",{className:"brand-icon codex-app-icon",viewBox:"0 0 24 24","aria-hidden":!0,children:[l.jsx("rect",{x:"2.8",y:"2.8",width:"18.4",height:"18.4",rx:"5.2",fill:"#f8fafc"}),l.jsx("rect",{x:"5.7",y:"6.1",width:"12.6",height:"11.8",rx:"4.2",fill:"url(#codexAppGradient)"}),l.jsx("path",{d:"M9.4 9.1 7.3 11.2a1.1 1.1 0 0 0 0 1.6l2.1 2.1 1.08-1.08L8.9 12l1.58-1.82L9.4 9.1Z",fill:"white",opacity:"0.92"}),l.jsx("path",{d:"M14.6 9.1 13.52 10.18 15.1 12l-1.58 1.82 1.08 1.08 2.1-2.1a1.1 1.1 0 0 0 0-1.6l-2.1-2.1Z",fill:"white",opacity:"0.92"}),l.jsx("path",{d:"M11.4 15.1 12.6 8.9h1.25l-1.2 6.2H11.4Z",fill:"white",opacity:"0.92"}),l.jsx("defs",{children:l.jsxs("linearGradient",{id:"codexAppGradient",x1:"5.7",y1:"6.1",x2:"18.3",y2:"17.9",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{stopColor:"#8b5cf6"}),l.jsx("stop",{offset:"0.55",stopColor:"#6366f1"}),l.jsx("stop",{offset:"1",stopColor:"#60a5fa"})]})})]})}function Dl(){return l.jsxs("svg",{className:"brand-icon claude-icon",viewBox:"0 0 24 24","aria-hidden":!0,children:[l.jsx("rect",{x:"2.5",y:"2.5",width:"19",height:"19",rx:"5.2",fill:"currentColor"}),l.jsx("path",{d:"M12 5.3v13.4M12 5.3v13.4M5.3 12h13.4M7.3 7.3l9.4 9.4M16.7 7.3l-9.4 9.4M8.1 5.9l7.8 12.2M15.9 5.9 8.1 18.1M5.9 8.1l12.2 7.8M18.1 8.1 5.9 15.9",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"white"})]})}function pc({label:e,value:t,onChange:n}){return l.jsxs("label",{className:"field",children:[l.jsx("span",{children:e}),l.jsx("input",{type:"date",value:t,onChange:r=>n(r.target.value)})]})}function mc({href:e,label:t,icon:n,tone:r}){return l.jsxs("a",{className:`quick-link quick-link-${r}`,href:e,target:"_blank",rel:"noreferrer",title:t,children:[l.jsx("span",{className:"quick-link-icon","aria-hidden":!0,children:n}),l.jsx("span",{className:"quick-link-label",children:t}),l.jsx(lP,{className:"quick-link-external h-3.5 w-3.5","aria-hidden":!0})]})}function vi({title:e,mainValue:t,body:n,note:r,breakdown:a,footer:o,trigger:u}){const[c,d]=E.useState(!1),[h,v]=E.useState(!1),[m,y]=E.useState({top:0,left:0}),x=E.useRef(null),S=E.useRef(null),j=E.useRef(void 0),b=E.useCallback(()=>{const C=x.current;if(!C)return;const O=C.getBoundingClientRect(),N=Math.min(420,window.innerWidth-24),M=window.innerWidth-O.right>N+18,R=O.left>N+18,K=M?O.right+10:R?O.left-N-10:Math.min(Math.max(12,O.left+O.width/2-N/2),window.innerWidth-N-12),L=Math.min(Math.max(12,O.top-12),window.innerHeight-240);y({top:Math.max(12,L),left:K})},[]),k=E.useCallback((C=!1)=>{window.clearTimeout(j.current),b(),d(!0),C&&v(!0)},[b]),_=E.useCallback(()=>{window.clearTimeout(j.current),d(!1),v(!1)},[]),T=E.useCallback(()=>{h||(window.clearTimeout(j.current),j.current=window.setTimeout(()=>d(!1),120))},[h]);E.useEffect(()=>{if(!c)return;const C=M=>{M.key==="Escape"&&_()},O=M=>{var K,L;const R=M.target;(K=x.current)!=null&&K.contains(R)||(L=S.current)!=null&&L.contains(R)||_()},N=()=>b();return document.addEventListener("keydown",C),document.addEventListener("pointerdown",O),window.addEventListener("resize",N),window.addEventListener("scroll",N,!0),()=>{document.removeEventListener("keydown",C),document.removeEventListener("pointerdown",O),window.removeEventListener("resize",N),window.removeEventListener("scroll",N,!0)}},[_,c,b]),E.useLayoutEffect(()=>{if(!c||!S.current)return;const C=S.current.getBoundingClientRect(),O=Math.min(Math.max(12,m.top),Math.max(12,window.innerHeight-C.height-12)),N=Math.min(Math.max(12,m.left),Math.max(12,window.innerWidth-C.width-12));(Math.abs(O-m.top)>1||Math.abs(N-m.left)>1)&&y(M=>({...M,top:O,left:N}))},[c,m.left,m.top]),E.useEffect(()=>()=>window.clearTimeout(j.current),[]);const A=c?l.jsxs("div",{className:"metric-popover",ref:S,style:{top:m.top,left:m.left},role:"dialog","aria-label":e,onMouseEnter:()=>window.clearTimeout(j.current),onMouseLeave:T,children:[l.jsxs("div",{className:"metric-popover-header",children:[l.jsxs("div",{children:[l.jsx("div",{className:"metric-popover-title",children:e}),t!==void 0?l.jsx("div",{className:"metric-popover-value",children:t}):null]}),h?l.jsx("button",{className:"metric-popover-close",type:"button",onClick:_,"aria-label":"Close popover",children:l.jsx(hI,{className:"h-3.5 w-3.5","aria-hidden":!0})}):null]}),l.jsx("p",{className:"metric-popover-body",children:n}),r?l.jsx("p",{className:"metric-popover-note",children:r}):null,a!=null&&a.length?l.jsx("div",{className:"metric-popover-section",children:a.map(C=>l.jsxs("div",{className:"metric-popover-row",children:[l.jsx("span",{children:C.label}),l.jsx("strong",{title:C.detail,children:C.value})]},C.label))}):null,o?l.jsx("div",{className:"metric-popover-footer",children:o}):null]}):null;return u?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"metric-popover-trigger-wrap",ref:x,onMouseEnter:()=>k(!1),onMouseLeave:T,onClick:C=>{C.preventDefault(),C.stopPropagation(),h&&c?_():k(!0)},children:u}),A]}):l.jsxs(l.Fragment,{children:[l.jsx("button",{className:"metric-help-button",type:"button",ref:x,onMouseEnter:()=>k(!1),onMouseLeave:T,onClick:C=>{C.preventDefault(),C.stopPropagation(),h&&c?_():k(!0)},"aria-label":`About ${e}`,"aria-expanded":c,children:l.jsx(yi,{className:"h-3.5 w-3.5","aria-hidden":!0})}),A]})}function I2({value:e,session:t,breakdown:n,trigger:r}){const a=t??n,o=a?[{label:"Total input",value:ct(a.inputTokens),detail:zi(a.inputTokens)},{label:"Cached input",value:ct(a.cachedInputTokens),detail:zi(a.cachedInputTokens)},{label:"Output",value:ct(a.outputTokens),detail:zi(a.outputTokens)},{label:"Reasoning",value:ct(a.reasoningTokens),detail:zi(a.reasoningTokens)}]:void 0;return l.jsx(vi,{title:"API-equivalent cost",mainValue:e===void 0?"Unavailable":rn(e),body:"Estimated from local token counts using RepoSpend's local pricing table.",note:"This is not your actual subscription bill. Subscription users may not pay this amount directly.",breakdown:o,footer:l.jsx("a",{className:"text-button",href:"/settings",children:"View pricing assumptions"}),trigger:r})}function Nt({value:e,label:t,session:n,breakdown:r}){return l.jsx(I2,{value:e,session:n,breakdown:r,trigger:l.jsx("span",{className:"value-with-detail cost-value",children:t??rn(e)})})}function Oe({value:e,showUnit:t=!0}){return l.jsx("span",{className:"value-with-detail",title:zi(e),children:t?ct(e):Er(e)})}function oe({value:e,noun:t,showUnit:n=!0}){return l.jsx("span",{className:"value-with-detail",title:_x(e,t),children:n?Ee(e,t):Er(e)})}function mn({value:e}){return l.jsx("span",{className:"value-with-detail",title:dW(e),children:hi(e)})}function W0({label:e,title:t}){return l.jsx(vi,{title:"Tokens per edit",mainValue:e,body:"Tokens per edit estimates how many tokens were used for each detected file edit.",note:t,trigger:l.jsx("span",{className:"value-with-detail",children:e})})}function vt({label:e,title:t}){const n=e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return l.jsx("span",{className:`status-badge status-${n}`,title:t,children:e.replaceAll("_"," ")})}function go({outcome:e}){return l.jsx(vt,{label:Rl(e),title:yW(e)})}function sd({labels:e}){if(!e.length)return l.jsx("span",{className:"text-xs text-slate-500",children:"No warnings"});const t=DH(e),n=t.length>3?2:3,r=t.slice(0,n),a=t.slice(r.length),o=a.length===1?a[0]:void 0;return l.jsxs("div",{className:"badge-row",children:[r.map(u=>l.jsx(vt,{label:u},u)),o?l.jsx(vt,{label:o}):null,a.length>1?l.jsxs("span",{className:"status-badge",title:a.join(`
305
+ `),children:["+",a.length," more"]}):null]})}function $H({warnings:e,commandIssueCount:t}){const n=e.map(ql).filter(r=>r!=="Command issues detected");return t>0&&n.unshift(`${Ee(t,"command issue")} detected`),n.length?l.jsx(sd,{labels:n}):l.jsx("span",{className:"text-xs text-slate-500",children:"None"})}function DH(e){const t=["Command issue","Command issues detected","High token","No edits","Unknown repo/folder","Repo/folder unverified","Unknown surface","Files edited","Partial","Completed"];return[...new Set(e)].sort((n,r)=>{const a=t.indexOf(n),o=t.indexOf(r);return(a===-1?999:a)-(o===-1?999:o)||n.localeCompare(r)})}function LH({compaction:e}){if(!e||e.count===0)return l.jsx("span",{className:"text-slate-500",children:"None"});const t=[];return e.autoCount>0&&t.push(`${e.autoCount} auto`),e.manualCount>0&&t.push(`${e.manualCount} manual`),l.jsxs("span",{children:[e.count,t.length?l.jsxs("span",{className:"ml-1 text-xs font-normal text-slate-500",children:["(",t.join(", "),")"]}):null]})}function UH(e){if(!e||e.count===0)return l.jsx("span",{className:"ml-1 text-xs text-slate-400",title:"No context compactions were observed in this session.",children:"ℹ"});const t=`${e.count} compaction event${e.count===1?"":"s"} — ${e.autoCount} auto, ${e.manualCount} manual. Auto compactions are triggered when the context window fills up; manual compactions are user-initiated via /compact.`;return l.jsx("span",{className:"ml-1 text-xs text-slate-400",title:t,children:"ℹ"})}function qH({compaction:e}){return e.events.length?l.jsx("ol",{className:"space-y-2 text-sm",children:e.events.map((t,n)=>l.jsxs("li",{className:"flex items-center justify-between gap-3 border border-line bg-white px-3 py-2",children:[l.jsx("span",{className:"font-mono text-xs text-slate-600",children:t.timestamp?Kn(t.timestamp):`Event ${n+1}`}),l.jsx(vt,{label:t.trigger==="manual"?"Manual (/compact)":"Auto"})]},`${t.timestamp??"no-ts"}-${n}`))}):l.jsxs("p",{className:"detail-muted",children:[e.count," compaction",e.count===1?"":"s"," (",e.autoCount," auto, ",e.manualCount," manual). No timestamps were recorded for individual events."]})}function W({label:e,value:t,help:n}){return l.jsxs("div",{className:"mini-stat",children:[l.jsxs("div",{className:"mini-stat-label",children:[e,n]}),l.jsx("div",{className:"mini-stat-value",children:t})]})}function FH(e,t){const n=new Set(e.warnings),r=t.filter(u=>u.estimatedCostUsd!==void 0),a=r.reduce((u,c)=>u+(c.estimatedCostUsd??0),0),o=Math.max(0,...r.map(u=>u.estimatedCostUsd??0));return a>0&&o/a>.5&&n.add("expensive_session_concentration"),e.inputTokens>0&&e.cachedInputTokens/e.inputTokens<.1&&n.add("low_cache_rate"),e.totalTokens>0&&e.outputTokens/e.totalTokens>.5&&n.add("output_heavy_sessions"),t.some(u=>u.estimatedCostUsd===void 0)&&n.add("unknown_pricing"),[...n].sort()}function Xe(e){return e.importantCommandFailures??e.failedToolCallCount??0}function Pt(e){var r,a,o;const t=(r=e.title)==null?void 0:r.trim();if(t)return t;const n=(o=(a=e.promptTimeline)==null?void 0:a.find(u=>u.role==="user"&&u.text.trim()))==null?void 0:o.text.trim();return n?BH(n.replace(/\s+/g," "),120):`Session ${e.id.slice(0,8)}`}function Ds(e){return e.replace(/\bSpend is concentrated\b/g,"Estimated API-equivalent cost is concentrated").replace(/\bspend is concentrated\b/g,"estimated API-equivalent cost is concentrated").replace(/\bSpend\b/g,"Estimated API-equivalent cost").replace(/\bspend\b/g,"estimated API-equivalent cost").replace(/\bspent\b/g,"estimated")}function BH(e,t){return e.length>t?`${e.slice(0,t-3)}...`:e}function zH(e){if(!e)return"Unknown";const n=new Date(e).getTime();if(Number.isNaN(n))return e.slice(0,10);const r=Date.now()-n,a=Math.abs(r),u=[{label:"day",ms:864e5},{label:"hour",ms:36e5},{label:"minute",ms:6e4}].find(d=>a>=d.ms)??{label:"minute",ms:6e4},c=Math.round(r/u.ms);return new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}).format(-c,u.label)}function Ll(e){const t=Xe(e),n=e.nonZeroCommandEvents??t,r=e.shellCommandCount??0,a=r>0?n/r:0;return t>0||(e.repeatedFailureClusters??0)>0||r>=4&&a>=.5||e.totalTokens>=1e6&&n>0||(e.sessionOutcome==="partial"||e.sessionOutcome==="failed")&&n>0}function KT(e){return e==="high"?"High":e==="medium"?"Medium":e==="low"?"Low":"None"}function WH(e){return e==="active"?"Active":e==="not_detected"?"Not detected":"Unknown"}function VT(e){return e?e.replaceAll("_"," ").replace(/\b\w/g,t=>t.toUpperCase()):"None"}function HH(e,t){const n={none:0,low:1,medium:2,high:3},r=n[e??"none"];return n[t??"none"]>r?t??"none":e??"none"}function KH(e,t){return e||t}async function GT(e){const t=await fetch(e);if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()}async function VH(e){const t=await fetch("/api/settings/pricing",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({models:e})});if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()}async function GH(){const e=await fetch("/api/settings/local-data",{method:"DELETE"});if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()}function Ul(e){return e.repos.map(t=>({...t,sessions:t.sessions??e.sessions.filter(n=>n.repoRoot===t.id),fileEditCount:t.fileEditCount??0,failedCommandCount:t.failedCommandCount??0,tokenRoiLabel:t.tokenRoiLabel??"No edits",tokenRoiTitle:t.tokenRoiTitle??"Tokens per edit cannot be computed because no file edits were detected for this repo or folder."}))}function XH(e,t){const n=t.reduce((u,c)=>u+(c.fileEditCount??0),0),r=t.reduce((u,c)=>u+Xe(c),0),a=n>0?Math.round(e.totalTokens/n):void 0,o=[...new Set([...e.warnings,...t.flatMap(u=>u.warnings),...lK(e,t)])];return{...e,warnings:o,fileEditCount:n,failedCommandCount:r,tokenRoiLabel:a===void 0?"No edits":`${ct(a)} / edit`,tokenRoiTitle:a===void 0?"Tokens per edit cannot be computed because no file edits were detected for this repo or folder.":"Tokens per edit estimates how much token volume was used for each detected file edit. Lower is usually more efficient."}}function YH(e){const t=Ul(e);return e.models.filter(n=>n.totalTokens>0||n.estimatedCostUsd!==void 0).map(n=>{var u;const r=e.sessions.filter(c=>(c.model??"unknown-model")===n.id),a=(u=t.map(c=>({repo:c,cost:r.filter(d=>d.repoRoot===c.id).reduce((d,h)=>d+(h.estimatedCostUsd??0),0),tokens:r.filter(d=>d.repoRoot===c.id).reduce((d,h)=>d+h.totalTokens,0)})).filter(c=>c.tokens>0||c.cost>0).sort((c,d)=>d.cost-c.cost||d.tokens-c.tokens)[0])==null?void 0:u.repo,o=W2(r)[0];return{...n,providerLabel:QH(n.id),cacheRate:n.inputTokens>0?n.cachedInputTokens/n.inputTokens:0,averageCostUsd:n.estimatedCostUsd!==void 0&&n.sessionCount>0?n.estimatedCostUsd/n.sessionCount:void 0,topRepo:a,latestSession:o}}).sort((n,r)=>Wt(r.estimatedCostUsd)-Wt(n.estimatedCostUsd)||r.totalTokens-n.totalTokens||n.label.localeCompare(r.label))}function QH(e){const t=$2(e);return t==="openai"?"OpenAI":t==="claude"?"Claude":"Custom"}function ZH(e){const t=[],n=[...e.sessions].sort((o,u)=>Xe(u)-Xe(o)||u.totalTokens-o.totalTokens)[0],r=Ul(e)[0],a=e.sessions.filter(o=>o.estimatedCostUsd===void 0&&o.totalTokens>0).length;return n&&Xe(n)>0&&t.push({label:"Review command friction",detail:`${Ee(Xe(n),"issue")} in ${n.repoName}`,icon:l.jsx(ur,{}),tone:"attention",view:"commands",sessionId:n.id}),r&&t.push({label:"Inspect top repo / folder",detail:`${r.label} has ${ct(r.totalTokens)} and ${rn(r.estimatedCostUsd)} API-equivalent cost`,icon:l.jsx(Or,{}),tone:"neutral",view:"repoDetail",repoId:r.id}),a>0&&t.push({label:"Check pricing coverage",detail:`${Ee(a,"token-bearing session")} cannot show API-equivalent cost`,icon:l.jsx(sP,{}),tone:"attention",view:"settings"}),t.length<3&&e.health.attentionCount>0&&t.push({label:"Open usage health",detail:`${Ee(e.health.attentionCount,"attention item")} in the current filter`,icon:l.jsx(yi,{}),tone:"attention",view:"insights"}),t.length<3&&t.push({label:"Scan recent sessions",detail:`${Ee(e.sessions.length,"session")} loaded for this filter`,icon:l.jsx(Ha,{}),tone:"good",view:"sessions"}),t.slice(0,3)}function JH(e,t){var h;const n=jf(t.filter(v=>v.estimatedCostUsd!==void 0),!0),r=e.estimatedCostUsd??n.reduce((v,m)=>v+(m.estimatedCostUsd??0),0),a=(h=n[0])==null?void 0:h.estimatedCostUsd,o=n.slice(0,3),u=o.reduce((v,m)=>v+(m.estimatedCostUsd??0),0),c=r>0&&a!==void 0?a/r:0,d=r>0?u/r:0;return{topSessionCost:a,topSessionShare:c,topThreeCost:o.length?Number(u.toFixed(6)):void 0,topThreeShare:d,topSessions:n.length?o:jf(t,!1).slice(0,3),extreme:c>=.5}}function eK(e,t){const n=new Map,r=(u,c)=>{if(!u)return;const d=n.get(u.id);n.set(u.id,{session:u,reason:d?`${d.reason}; ${c.toLowerCase()}`:c})},a=jf(e,e.some(u=>u.estimatedCostUsd!==void 0));r(a[0],"Highest estimated cost"),r([...e].sort((u,c)=>(c.durationMs??0)-(u.durationMs??0))[0],"Longest duration"),r(e.find(u=>u.sessionOutcome==="partial"||u.sessionOutcome==="failed"),"Partial or failed outcome"),r([...e].sort((u,c)=>Xe(c)-Xe(u))[0],"Command issues");const o=[...e].sort((u,c)=>c.totalTokens-u.totalTokens)[0];return o&&tK(o,e)&&r(o,"Unusual token volume"),[...n.values()].filter(({session:u})=>u.totalTokens>0||u.estimatedCostUsd!==void 0||u.durationMs!==void 0||Ll(u)).sort((u,c)=>XT(u.reason)-XT(c.reason)||Wt(c.session.estimatedCostUsd)-Wt(u.session.estimatedCostUsd)).slice(0,Math.min(6,Math.max(t.sessionCount,0)))}function XT(e){return e.includes("Highest")?0:e.includes("Command")?1:e.includes("Partial")?2:e.includes("Unusual")?3:4}function tK(e,t){if(e.totalTokens>=1e6)return!0;const n=t.length?t.reduce((r,a)=>r+a.totalTokens,0)/t.length:0;return n>0&&e.totalTokens>=n*2.5}function R2(e,t){const n=new Map,r=t.estimatedCostUsd??e.reduce((a,o)=>a+(o.estimatedCostUsd??0),0);for(const a of e){const o=a.model??"unknown-model",u=n.get(o)??{id:o,label:a.model??"Model not recorded",sessionCount:0,totalTokens:0,estimatedCostUsd:void 0,costShare:0};u.sessionCount+=1,u.totalTokens+=a.totalTokens,a.estimatedCostUsd!==void 0&&(u.estimatedCostUsd=Number(((u.estimatedCostUsd??0)+a.estimatedCostUsd).toFixed(6))),n.set(o,u)}return[...n.values()].map(a=>({...a,costShare:r>0&&a.estimatedCostUsd!==void 0?a.estimatedCostUsd/r:0})).sort((a,o)=>Wt(o.estimatedCostUsd)-Wt(a.estimatedCostUsd)||o.totalTokens-a.totalTokens)}function nK(e){const t=new Map;for(const n of e){const r=(n.startedAt??n.endedAt??"Unknown").slice(0,10),a=t.get(r)??{id:r,label:r,estimatedCostUsd:0,totalTokens:0};a.estimatedCostUsd+=n.estimatedCostUsd??0,a.totalTokens+=n.totalTokens,t.set(r,a)}return[...t.values()].sort((n,r)=>n.id.localeCompare(r.id)).map(n=>({...n,estimatedCostUsd:Number(n.estimatedCostUsd.toFixed(6))}))}function rK(e){return{important:e.reduce((t,n)=>t+Xe(n),0),harmless:e.reduce((t,n)=>t+(n.harmlessNonZeroEvents??0)+(n.exploratoryMisses??0),0),repeated:e.reduce((t,n)=>t+(n.repeatedFailureClusters??0),0)}}function iK(e,t,n,r){const a=[];n.extreme?a.push("Most estimated API-equivalent cost came from one expensive session"):r?a.push(`Most estimated API-equivalent cost is driven by ${r.label}`):a.push("Estimated API-equivalent cost is spread across the loaded sessions"),r&&n.extreme&&a.push(`running ${r.label}`);const o=e.failedCommandCount>0?`${Ee(e.failedCommandCount,"important command issue")} were detected`:"No important command issues were detected",u=e.fileEditCount>0?"File path analysis is limited because this log format may not include stable file paths":"No file edits were detected in this filtered view";return t.length?`${a.join(" ")}. ${o}. ${u}.`:"No sessions matched this repo or folder in the current filters."}function aK(e){if(e.fileEditCount<=0)return"No file edits detected";const t=e.totalTokens/e.fileEditCount;return t>=1e6?"High token use per file edit":t<=1e5?"Low token use per file edit":"Moderate token use per file edit"}function oK(e,t){if(e.estimatedCostUsd===void 0)return"API-equivalent cost is unavailable because this repo or folder is missing pricing coverage or token splits.";if(t&&t.costShare>=.5)return`${t.label} is the main cost driver at ${rn(t.estimatedCostUsd)} across ${Ee(t.sessionCount,"session")}, representing ${hi(t.costShare)} of known repo cost.`;const n=[{label:"input",value:e.inputTokens},{label:"cached input",value:e.cachedInputTokens},{label:"output",value:e.outputTokens},{label:"reasoning",value:e.reasoningTokens}].sort((r,a)=>a.value-r.value)[0]??{label:"tokens",value:e.totalTokens};return`No single model dominates known cost. The largest token bucket is ${n.label} at ${ct(n.value)}.`}function sK(e){const t=new Map;for(const n of e){const r=Xe(n),a=(n.harmlessNonZeroEvents??0)+(n.exploratoryMisses??0),o=n.repeatedFailureClusters??0;if(r===0&&a===0&&o===0)continue;const u=t.get(n.repoRoot)??{repoRoot:n.repoRoot,repoName:n.repoName,importantFailures:0,harmlessNonZeroEvents:0,repeatedFailureClusters:0,sessionsNeedingReview:0,topFailureType:void 0,impact:"none",totalTokens:0,estimatedCostUsd:void 0};u.importantFailures+=r,u.harmlessNonZeroEvents+=a,u.repeatedFailureClusters+=o,u.sessionsNeedingReview+=Ll(n)?1:0,u.totalTokens+=n.totalTokens,u.topFailureType=KH(u.topFailureType,n.topFailureType),u.impact=HH(u.impact,n.commandIssueImpact),n.estimatedCostUsd!==void 0&&(u.estimatedCostUsd=Number(((u.estimatedCostUsd??0)+n.estimatedCostUsd).toFixed(6))),t.set(n.repoRoot,u)}return[...t.values()].sort((n,r)=>r.importantFailures-n.importantFailures||r.repeatedFailureClusters-n.repeatedFailureClusters||r.totalTokens-n.totalTokens)}function lK(e,t){const n=[];return t.some(r=>(r.fileEditCount??0)===0&&r.totalTokens>=1e6)&&n.push("high-token no-edit"),t.some(r=>Xe(r)>0)&&n.push("command issues"),e.estimatedCostUsd===void 0&&e.totalTokens>0&&n.push("unknown pricing"),e.inputTokens>0&&e.cachedInputTokens/e.inputTokens<.1&&n.push("low cache rate"),n}function H0(e){const t=[],n=Rl(e.sessionOutcome);return Xe(e)>0&&t.push("Command issue"),e.totalTokens>=1e6&&t.push("High token"),(e.fileEditCount??0)===0&&n!=="No edits"&&t.push("No edits"),e.warnings.includes("repo_unverified_no_git_root")&&t.push("Unknown repo/folder"),(e.detectedSurface??"unknown")==="unknown"&&t.push("Unknown surface"),(e.fileEditCount??0)>0&&t.push("Files edited"),t.push(n),e.estimatedCostUsd===void 0&&e.totalTokens>0&&t.push("Unknown pricing"),e.warnings.includes("missing_token_breakdown")&&t.push("Unknown tokens"),[...new Set(t)].filter(r=>r&&r!=="Unknown")}function ql(e){const t=e.toLowerCase();return t==="expensive_session_concentration"?"Cost concentration is very high. One session accounts for most of this repo or folder’s estimated cost.":t==="failed commands"||t==="command issues"?"Important command issues were detected in this repo or folder.":t==="repo_unverified_no_git_root"?"Repo/folder grouping is unverified because no Git root was detected.":t==="unknown_pricing"?"Some sessions cannot be priced because token splits or pricing coverage are missing.":t==="missing_token_breakdown"?"Some sessions are missing detailed token breakdowns.":t==="low_cache_rate"?"Cache reuse is low, so input tokens may be driving more estimated cost.":t==="output_heavy_sessions"?"Output tokens are unusually high compared with total token volume.":t==="high-token no-edit"?"A high-token session had no detected file edits.":e.replaceAll("_"," ")}function uK(e,t){const n=t.map(a=>a.id).filter(a=>a!=="unknown-model");return[...new Set([...n,...Object.keys(e).sort()])].map(a=>({model:a,...D2(a,e)}))}function $2(e){const t=e.toLowerCase();return t.includes("claude")?"claude":t.startsWith("gpt-")||t.startsWith("o1")||t.startsWith("o3")||t.startsWith("o4")||t.startsWith("codex")||t.includes("openai")?"openai":"custom"}function YT(e){const t=e.pricing;return!bf(t.inputPerMillion)||!bf(t.outputPerMillion)}function bf(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function D2(e,t){const n=e.toLowerCase(),r=t[e]?e:t[n]?n:void 0,a=r?t[r]:void 0;if(U2(a))return{pricing:a,sourceModel:r,inherited:!1};const o=cK(n,t);return o?{pricing:t[o],sourceModel:o,inherited:o!==e&&o!==n}:{pricing:a??{inputPerMillion:0,cacheCreationInputPerMillion:0,cachedInputPerMillion:0,outputPerMillion:0,reasoningOutputPerMillion:0},sourceModel:r,inherited:!1}}function cK(e,t){return["claude-opus-4-7","claude-opus-4-6","claude-opus-4-5","claude-opus-4-1","claude-opus-4","claude-sonnet-4-6","claude-sonnet-4-5","claude-sonnet-4","claude-haiku-4-5","claude-3-5-haiku"].find(r=>(e===r||e.startsWith(`${r}-`))&&U2(t[r]))}function L2(e){const t=e.toLowerCase(),n=["claude-opus-4-7","claude-opus-4-6","claude-opus-4-5","claude-opus-4-1","claude-opus-4","claude-sonnet-4-6","claude-sonnet-4-5","claude-sonnet-4","claude-haiku-4-5","claude-3-5-haiku"].find(r=>t===r||t.startsWith(`${r}-`));return n?n.replace("claude-","").replace(/-/g," "):e.length>24?`${e.slice(0,21)}...`:e}function U2(e){return bf(e==null?void 0:e.inputPerMillion)&&bf(e==null?void 0:e.outputPerMillion)}function za(e,t){return e.sourceStats.filter(n=>n.sourceId===t).reduce((n,r)=>n+(r.sessionsImported??0),0)}function wf(e){return e.homePath??e.codexHome??e.claudeHome??e.cursorHome??"Unknown"}function K0(e){return!!(e.stateExists||e.sessionsExists||e.projectsExists||e.historyExists||(e.databaseFileCount??0)>0)}function fK(e){return K0(e)?(e.sessionsImported??0)===0?e.sourceId==="cursor"?"Open Cursor chat or agent sessions locally, then rescan.":e.sourceId==="claude"?"Run Claude Code in a repo with local history enabled, then rescan.":"Run Codex in a repo so local session files can be imported.":(e.parseFailureCount??0)>0?"Some files were skipped; check Settings for parse warnings.":"Ready.":"Install or run the local source once, then refresh."}function dK(e,t){var a;const n=((a=t.sources.find(o=>o.id===e.sourceId))==null?void 0:a.paths)??[],r=[e.homePath,e.codexHome,e.claudeHome,e.cursorHome,e.statePath,e.sessionsPath,e.projectsPath,e.historyPath,e.globalStoragePath,e.workspaceStoragePath,...n].filter(o=>!!o);return[...new Set(r)]}function V0(e){var c,d;const t={},n={};let r=0,a=0;for(const h of e.sessions){const v=h.tokenAggregationMethod??"unknown",m=h.tokenConfidence??"low";t[v]=(t[v]??0)+1,n[m]=(n[m]??0)+1,r+=h.tokenSnapshotCount??0,h.totalTokens>0&&(a+=1)}const o=((c=QT(t))==null?void 0:c[0])??"unknown",u=((d=QT(n))==null?void 0:d[0])??"low";return{methodLabel:kl(o),confidenceLabel:G0(u),tokenSnapshots:r,sessionsWithTokenData:a,sessionsMissingTokenData:Math.max(e.scan.rawSessionCount-a,0),methodCounts:t,confidenceCounts:n}}function hK(e,t){return t==="apps"?mK(e):pK(e)}function pK(e){const t=new Map(e.sources.map(r=>[r.id,r.label])),n=new Map;for(const r of e.sources)n.set(r.id,{id:r.id,label:r.label,source:r.id,sessionCount:0,totalTokens:0,estimatedCostUsd:void 0,knownCostSessions:0,unknownCostSessions:0,missingTokenSessions:0});for(const r of e.sessions){const a=n.get(r.sourceClient)??{id:r.sourceClient,label:t.get(r.sourceClient)??pi(r.sourceClient),source:r.sourceClient,sessionCount:0,totalTokens:0,estimatedCostUsd:void 0,knownCostSessions:0,unknownCostSessions:0,missingTokenSessions:0};a.sessionCount+=1,a.totalTokens+=r.totalTokens,a.missingTokenSessions+=r.totalTokens>0?0:1,r.estimatedCostUsd!==void 0?(a.estimatedCostUsd=Number(((a.estimatedCostUsd??0)+r.estimatedCostUsd).toFixed(6)),a.knownCostSessions+=1):a.unknownCostSessions+=1,n.set(r.sourceClient,a)}return[...n.values()]}function mK(e){return vK(e.sessions,t=>t.sourceApp||Mr(t.detectedSurface),t=>t.sourceApp||Mr(t.detectedSurface))}function vK(e,t,n,r=n){const a=new Map;for(const o of e){const u=t(o),c=a.get(u)??{id:u,label:n(o),iconLabel:r(o),sessionCount:0,totalTokens:0,estimatedCostUsd:void 0,knownCostSessions:0,unknownCostSessions:0,missingTokenSessions:0};c.sessionCount+=1,c.totalTokens+=o.totalTokens,c.missingTokenSessions+=o.totalTokens>0?0:1,o.estimatedCostUsd!==void 0?(c.estimatedCostUsd=Number(((c.estimatedCostUsd??0)+o.estimatedCostUsd).toFixed(6)),c.knownCostSessions+=1):c.unknownCostSessions+=1,a.set(u,c)}return[...a.values()].sort((o,u)=>u.totalTokens-o.totalTokens||o.label.localeCompare(u.label))}function yK(e){if(e.knownCostSessions===0)return"Not priced";const t=rn(e.estimatedCostUsd);return e.unknownCostSessions>0?`Known ${t}`:t}function QT(e){return Object.entries(e).sort((t,n)=>n[1]-t[1])[0]}function kl(e){return e==="final_snapshot"?"Final checkpoint":e==="delta_sum"?"Delta sum":e==="direct_usage"?"Direct usage":e==="estimated"?"Estimated":"Unknown"}function G0(e){return e==="high"?"High":e==="medium"?"Medium":"Low"}function ZT(e){return e.inputTokens>0?e.cachedInputTokens/e.inputTokens:0}function gK(e,t){return[...e].sort((n,r)=>X0(wK(n,r,t.key),t.direction))}function xK(e,t){return[...e].sort((n,r)=>X0(bK(n,r,t.key),t.direction))}function bK(e,t,n){var r,a;return n==="model"?e.label.localeCompare(t.label):n==="cost"?Wt(e.estimatedCostUsd)-Wt(t.estimatedCostUsd):n==="tokens"?e.totalTokens-t.totalTokens:n==="input"?e.inputTokens-t.inputTokens:n==="cached"?e.cachedInputTokens-t.cachedInputTokens:n==="output"?e.outputTokens-t.outputTokens:n==="reasoning"?e.reasoningTokens-t.reasoningTokens:n==="sessions"?e.sessionCount-t.sessionCount:n==="cache"?e.cacheRate-t.cacheRate:n==="repo"?(((r=e.topRepo)==null?void 0:r.label)??"").localeCompare(((a=t.topRepo)==null?void 0:a.label)??""):JT(e)-JT(t)}function JT(e){var r,a;const t=((r=e.latestSession)==null?void 0:r.startedAt)??((a=e.latestSession)==null?void 0:a.endedAt);if(!t)return Number.NEGATIVE_INFINITY;const n=Date.parse(t);return Number.isNaN(n)?Number.NEGATIVE_INFINITY:n}function wK(e,t,n){return n==="repo"?e.label.localeCompare(t.label):n==="cost"?Wt(e.estimatedCostUsd)-Wt(t.estimatedCostUsd):n==="tokens"?e.totalTokens-t.totalTokens:n==="input"?e.inputTokens-t.inputTokens:n==="cached"?e.cachedInputTokens-t.cachedInputTokens:n==="output"?e.outputTokens-t.outputTokens:n==="reasoning"?e.reasoningTokens-t.reasoningTokens:n==="sessions"?e.sessionCount-t.sessionCount:n==="files"?e.fileEditCount-t.fileEditCount:n==="failed"?e.failedCommandCount-t.failedCommandCount:n==="roi"?eP(e)-eP(t):n==="warnings"?e.warnings.length-t.warnings.length:ZT(e)-ZT(t)}function eP(e){return e.fileEditCount===0?Number.POSITIVE_INFINITY:e.totalTokens/e.fileEditCount}function q2(e,t){return[...e].sort((n,r)=>X0(jK(n,r,t.key),t.direction))}function jK(e,t,n){return n==="repo"?e.repoName.localeCompare(t.repoName):n==="app"?`${pi(e.sourceClient)} ${e.sourceApp}`.localeCompare(`${pi(t.sourceClient)} ${t.sourceApp}`):n==="session"?(e.title??e.id).localeCompare(t.title??t.id):n==="model"?(e.model??"Unknown").localeCompare(t.model??"Unknown"):n==="started"?(e.startedAt??"").localeCompare(t.startedAt??""):n==="cost"?Wt(e.estimatedCostUsd)-Wt(t.estimatedCostUsd):n==="tokens"?e.totalTokens-t.totalTokens:n==="input"?e.inputTokens-t.inputTokens:n==="cached"?e.cachedInputTokens-t.cachedInputTokens:n==="output"?e.outputTokens-t.outputTokens:n==="reasoning"?e.reasoningTokens-t.reasoningTokens:n==="duration"?(e.durationMs??0)-(t.durationMs??0):n==="prompts"?(e.userPromptCount??0)-(t.userPromptCount??0):n==="commands"?(e.shellCommandCount??0)-(t.shellCommandCount??0):n==="files"?(e.fileEditCount??0)-(t.fileEditCount??0):n==="failed"?Xe(e)-Xe(t):n==="warnings"?e.warnings.length-t.warnings.length:e.messageCount-t.messageCount}function F2(e,t){const n=t.trim().toLowerCase();return n?[e.title,e.id,e.repoName,e.sourceApp,Mr(e.detectedSurface),e.model,Rl(e.sessionOutcome),...e.warnings.map(ql)].filter(Boolean).join(" ").toLowerCase().includes(n):!0}function tP(e,t){return t?t==="highToken"?e.totalTokens>=1e6:t==="failedCommands"?Xe(e)>0:t==="noEdits"?(e.fileEditCount??0)===0:t==="completed"?e.sessionOutcome==="completed":t==="partial"?e.sessionOutcome==="partial":t==="vscode"?e.detectedSurface==="vscode_extension"||e.sourceApp.toLowerCase().includes("vs code"):t==="terminal"?e.detectedSurface==="terminal_cli"||e.sourceApp.toLowerCase().includes("terminal"):(e.detectedSurface??"unknown")==="unknown":!0}function nP(e,t,n){return t?t==="expensive"?z2(e,B2(n)):t==="partial"?e.sessionOutcome==="partial"||e.sessionOutcome==="failed":t==="longRunning"?SK(e,n):t==="commandIssues"?Xe(e)>0||(e.repeatedFailureClusters??0)>0:(e.model??"").toLowerCase().includes("opus"):!0}function B2(e){const t=e.map(r=>r.estimatedCostUsd).filter(r=>r!==void 0).sort((r,a)=>r-a);if(t.length<3)return t.at(-1);const n=t.reduce((r,a)=>r+a,0)/t.length;return Math.max(n*2,t[Math.floor(t.length*.75)]??n)}function z2(e,t){return t!==void 0&&e.estimatedCostUsd!==void 0&&e.estimatedCostUsd>=t&&e.estimatedCostUsd>0}function SK(e,t){const n=t.map(a=>a.durationMs??0).filter(a=>a>0);if(!e.durationMs||!n.length)return!1;const r=n.reduce((a,o)=>a+o,0)/n.length;return e.durationMs>=Math.max(60*6e4,r*1.75)}function rP(e){return e.critical?"Critical":e.tone==="attention"?"Warning":"Info"}function X0(e,t){return t==="asc"?e:-e}function Wt(e){return e??Number.NEGATIVE_INFINITY}function fi(e,t){const n=Math.max(1,t),[r,a]=E.useState(1),o=Math.max(1,Math.ceil(e.length/n));E.useEffect(()=>{a(1)},[e.length,n]);const u=E.useCallback(d=>{a(Math.min(Math.max(1,d),o))},[o]),c=Math.min(r,o);return{page:c,pageCount:o,items:e.slice((c-1)*n,c*n),setPage:u}}function jf(e,t){return[...e].sort((n,r)=>t?Wt(r.estimatedCostUsd)-Wt(n.estimatedCostUsd):r.totalTokens-n.totalTokens)}function W2(e){return[...e].sort((t,n)=>(n.startedAt??n.endedAt??"").localeCompare(t.startedAt??t.endedAt??""))}function kK(e,t){if(t)return e.sessions.find(n=>n.id===t)}function CK(e){const t=e.map(n=>({repo:n.repoName,repoRoot:n.repoRoot,source:pi(n.sourceClient),app:n.sourceApp??Mr(n.detectedSurface),session:Pt(n),sessionId:n.id,model:n.model??"Unknown",startedAt:n.startedAt??"",durationMs:n.durationMs??"",estimatedCostUsd:n.estimatedCostUsd??"",totalTokens:n.totalTokens,inputTokens:n.inputTokens,cachedInputTokens:n.cachedInputTokens,outputTokens:n.outputTokens,reasoningTokens:n.reasoningTokens,messages:n.messageCount,prompts:n.userPromptCount??0,commands:n.shellCommandCount??0,commandIssues:Xe(n),fileEdits:n.fileEditCount??0,outcome:n.sessionOutcome??"unknown",tokenConfidence:n.tokenConfidence??"unknown"}));q0(`repospend-sessions-${new Date().toISOString().slice(0,10)}.csv`,H2(t))}function _K(e){const t=e.map(n=>({repo:n.label,repoRoot:n.id,estimatedCostUsd:n.estimatedCostUsd??"",totalTokens:n.totalTokens,inputTokens:n.inputTokens,cachedInputTokens:n.cachedInputTokens,outputTokens:n.outputTokens,reasoningTokens:n.reasoningTokens,sessions:n.sessionCount,fileEdits:n.fileEditCount,commandIssues:n.failedCommandCount,tokenRoi:n.tokenRoiLabel,warnings:n.warnings.join("; ")}));q0(`repospend-repos-${new Date().toISOString().slice(0,10)}.csv`,H2(t))}function H2(e){if(!e.length)return"";const t=Object.keys(e[0]);return[t.join(","),...e.map(n=>t.map(r=>OK(n[r]??"")).join(","))].join(`
306
+ `)}function OK(e){const t=String(e);return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function si(e){var o;if(!e)return;const t=e.replaceAll(",","").match(/([\d.]+)\s*([kmb])?/i);if(!(t!=null&&t[1]))return;const n=Number(t[1]);if(!Number.isFinite(n))return;const r=(o=t[2])==null?void 0:o.toLowerCase();return Math.round(n*(r==="b"?1e9:r==="m"?1e6:r==="k"?1e3:1))}function iP(e){if(!e)return 0;const t=e.trim().toLowerCase(),n=t.match(/([\d.]+)m(?:(\d+(?:\.\d+)?)s)?/);if(n!=null&&n[1])return Number(n[1])*6e4+Number(n[2]??0)*1e3;const r=t.match(/([\d.]+)\s*(ms|s|m|h)?/);if(!(r!=null&&r[1]))return 0;const a=Number(r[1]),o=r[2]??"ms";return o==="h"?a*36e5:o==="m"?a*6e4:o==="s"?a*1e3:a}function K2(e){var t,n,r;return((t=e.models["gpt-5.5"])==null?void 0:t.inputPerMillion)??((n=e.models["gpt-5"])==null?void 0:n.inputPerMillion)??((r=Object.values(e.models)[0])==null?void 0:r.inputPerMillion)??5}function TK(e,t){if(e!==void 0)return Number((e/1e6*K2(t)).toFixed(6))}function xo(e){return e.replace(/\s+/g," ").trim()}function V2(e){const t=xo(e);return t.length>96?`${t.slice(0,96)}...`:t}function Tx(e){return e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function G2(e,t){return[...e].sort((n,r)=>{let a=0;return t.key==="command"&&(a=n.command.localeCompare(r.command)),t.key==="count"&&(a=(n.count??0)-(r.count??0)),t.key==="saved"&&(a=(si(n.saved)??0)-(si(r.saved)??0)),t.key==="reduction"&&(a=(n.averageSavedPercent??-1)-(r.averageSavedPercent??-1)),t.key==="runtime"&&(a=iP(n.time)-iP(r.time)),t.direction==="asc"?a:-a})}function PK(e){return e.length<=1?e[0]??"":e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e.at(-1)}`}function NK(e){var o;const[t,n=e]=e.split("•").map(u=>u.trim()),r=(o=n.match(/(-?\d+(?:\.\d+)?%\s*\([^)]+\))$/))==null?void 0:o[1],a=r?n.slice(0,-r.length).trim():n;return{...t&&t!==n?{time:t}:{},command:xo(a),...r?{savings:r}:{}}}function AK({gain:e,topCommand:t,commandsProcessed:n,savingsRate:r,coverageGaps:a}){const o=[],u=[...a].sort((c,d)=>(si(d.estimatedSavings)??0)-(si(c.estimatedSavings)??0))[0];return u?o.push(`${u.command} is the biggest discovered coverage gap; use ${u.rtkEquivalent??"the matching RTK wrapper"} when possible.`):e.rtkDiscoverAvailable===!1&&o.push("Coverage discovery could not run locally, so RepoSpend can only show RTK gain data for now."),(e.rtkCodexHookStatus==="unknown"||e.rtkCodexHookStatus===void 0)&&o.push("Codex hook status is unknown; check RTK hook setup if Codex commands are not being compressed."),t!=null&&t.count&&t.count>=25&&o.push(`${xo(t.command)} appears often; review whether agents are repeating that command more than needed.`),n&&r!==void 0&&r>=50&&o.push("RTK savings are high, so your local command proxy setup appears to be working well."),o}function EK(e){const t=[];return(e.fileEditCount??0)>0&&t.push(`${Ee(e.fileEditCount??0,"file edit")} detected.`),Xe(e)===0&&t.push("No important command issues detected."),e.parseStatus==="ok"&&t.push("Local session log parsed cleanly."),e.tokenConfidence==="high"&&t.push("Token counting confidence is high."),e.inputTokens>0&&e.cachedInputTokens/e.inputTokens>=.5&&t.push("Cached input reuse was strong."),e.repoRoot&&!e.repoRoot.includes("unverified")&&t.push("Session resolved to a repo or folder."),t}function MK(e){const t=[],n=Xe(e);return n>0&&t.push(`${Ee(n,"important command issue")} to inspect.`),(e.sessionOutcome==="partial"||e.sessionOutcome==="failed")&&t.push(`Outcome is ${Rl(e.sessionOutcome).toLowerCase()}; check whether the work completed.`),(e.fileEditCount??0)===0&&e.totalTokens>1e6&&t.push("High-token session with no detected file edits."),e.estimatedCostUsd===void 0&&e.totalTokens>0&&t.push("API-equivalent cost unavailable because pricing or token split is missing."),e.parseStatus&&e.parseStatus!=="ok"&&t.push("Parser reported issues for this session."),e.detectedSurface==="unknown"&&t.push("Surface could not be detected from local logs."),(e.repoName.toLowerCase().includes("unknown")||e.warnings.includes("repo_unverified_no_git_root"))&&t.push("Repo/folder grouping is unverified because no Git root was detected."),(e.tokenSnapshotCount??0)===0&&e.totalTokens===0&&t.push("No token checkpoints were available."),t}async function IK(e,t){try{await navigator.clipboard.writeText(e),t("Copied"),window.setTimeout(()=>t(null),1800)}catch{t("Copy failed"),window.setTimeout(()=>t(null),1800)}}eI.createRoot(document.getElementById("root")).render(l.jsx(E.StrictMode,{children:l.jsx(OW,{})}));