jira-ai-fixer/frontend_build/assets/index-8UkLrHEv.js

473 lines
756 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Cb=e=>{throw TypeError(e)};var ap=(e,t,r)=>t.has(e)||Cb("Cannot "+r);var k=(e,t,r)=>(ap(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?Cb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>(ap(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),de=(e,t,r)=>(ap(e,t,"access private method"),r);var nc=(e,t,r,n)=>({set _(i){Q(e,t,i,r)},get _(){return k(e,t,n)}});function fT(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K_={exports:{}},zd={},G_={exports:{}},pe={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zu=Symbol.for("react.element"),dT=Symbol.for("react.portal"),hT=Symbol.for("react.fragment"),pT=Symbol.for("react.strict_mode"),mT=Symbol.for("react.profiler"),yT=Symbol.for("react.provider"),vT=Symbol.for("react.context"),gT=Symbol.for("react.forward_ref"),bT=Symbol.for("react.suspense"),xT=Symbol.for("react.memo"),wT=Symbol.for("react.lazy"),$b=Symbol.iterator;function ST(e){return e===null||typeof e!="object"?null:(e=$b&&e[$b]||e["@@iterator"],typeof e=="function"?e:null)}var X_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q_=Object.assign,Y_={};function xs(e,t,r){this.props=e,this.context=t,this.refs=Y_,this.updater=r||X_}xs.prototype.isReactComponent={};xs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};xs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function J_(){}J_.prototype=xs.prototype;function cg(e,t,r){this.props=e,this.context=t,this.refs=Y_,this.updater=r||X_}var fg=cg.prototype=new J_;fg.constructor=cg;Q_(fg,xs.prototype);fg.isPureReactComponent=!0;var Mb=Array.isArray,Z_=Object.prototype.hasOwnProperty,dg={current:null},ej={key:!0,ref:!0,__self:!0,__source:!0};function tj(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Z_.call(t,n)&&!ej.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:zu,type:e,key:a,ref:o,props:i,_owner:dg.current}}function OT(e,t){return{$$typeof:zu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hg(e){return typeof e=="object"&&e!==null&&e.$$typeof===zu}function _T(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Ib=/\/+/g;function op(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_T(""+e.key):t.toString(36)}function Fc(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case zu:case dT:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+op(o,0):n,Mb(i)?(r="",e!=null&&(r=e.replace(Ib,"$&/")+"/"),Fc(i,t,r,"",function(u){return u})):i!=null&&(hg(i)&&(i=OT(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ib,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Mb(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+op(a,s);o+=Fc(a,t,r,l,i)}else if(l=ST(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+op(a,s++),o+=Fc(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ac(e,t,r){if(e==null)return e;var n=[],i=0;return Fc(e,n,"","",function(a){return t.call(r,a,i++)}),n}function jT(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lt={current:null},Uc={transition:null},PT={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:Uc,ReactCurrentOwner:dg};function rj(){throw Error("act(...) is not supported in production builds of React.")}pe.Children={map:ac,forEach:function(e,t,r){ac(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ac(e,function(){t++}),t},toArray:function(e){return ac(e,function(t){return t})||[]},only:function(e){if(!hg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pe.Component=xs;pe.Fragment=hT;pe.Profiler=mT;pe.PureComponent=cg;pe.StrictMode=pT;pe.Suspense=bT;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=PT;pe.act=rj;pe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Q_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=dg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Z_.call(t,l)&&!ej.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:zu,type:e.type,key:i,ref:a,props:n,_owner:o}};pe.createContext=function(e){return e={$$typeof:vT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:yT,_context:e},e.Consumer=e};pe.createElement=tj;pe.createFactory=function(e){var t=tj.bind(null,e);return t.type=e,t};pe.createRef=function(){return{current:null}};pe.forwardRef=function(e){return{$$typeof:gT,render:e}};pe.isValidElement=hg;pe.lazy=function(e){return{$$typeof:wT,_payload:{_status:-1,_result:e},_init:jT}};pe.memo=function(e,t){return{$$typeof:xT,type:e,compare:t===void 0?null:t}};pe.startTransition=function(e){var t=Uc.transition;Uc.transition={};try{e()}finally{Uc.transition=t}};pe.unstable_act=rj;pe.useCallback=function(e,t){return Lt.current.useCallback(e,t)};pe.useContext=function(e){return Lt.current.useContext(e)};pe.useDebugValue=function(){};pe.useDeferredValue=function(e){return Lt.current.useDeferredValue(e)};pe.useEffect=function(e,t){return Lt.current.useEffect(e,t)};pe.useId=function(){return Lt.current.useId()};pe.useImperativeHandle=function(e,t,r){return Lt.current.useImperativeHandle(e,t,r)};pe.useInsertionEffect=function(e,t){return Lt.current.useInsertionEffect(e,t)};pe.useLayoutEffect=function(e,t){return Lt.current.useLayoutEffect(e,t)};pe.useMemo=function(e,t){return Lt.current.useMemo(e,t)};pe.useReducer=function(e,t,r){return Lt.current.useReducer(e,t,r)};pe.useRef=function(e){return Lt.current.useRef(e)};pe.useState=function(e){return Lt.current.useState(e)};pe.useSyncExternalStore=function(e,t,r){return Lt.current.useSyncExternalStore(e,t,r)};pe.useTransition=function(){return Lt.current.useTransition()};pe.version="18.3.1";G_.exports=pe;var E=G_.exports;const A=je(E),AT=fT({__proto__:null,default:A},[E]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kT=E,ET=Symbol.for("react.element"),NT=Symbol.for("react.fragment"),TT=Object.prototype.hasOwnProperty,CT=kT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$T={key:!0,ref:!0,__self:!0,__source:!0};function nj(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)TT.call(t,n)&&!$T.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:ET,type:e,key:a,ref:o,props:i,_owner:CT.current}}zd.Fragment=NT;zd.jsx=nj;zd.jsxs=nj;K_.exports=zd;var h=K_.exports,ym={},ij={exports:{}},lr={},aj={exports:{}},oj={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(T,B){var U=T.length;T.push(B);e:for(;0<U;){var K=U-1>>>1,H=T[K];if(0<i(H,B))T[K]=B,T[U]=H,U=K;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var B=T[0],U=T.pop();if(U!==B){T[0]=U;e:for(var K=0,H=T.length,X=H>>>1;K<X;){var ie=2*(K+1)-1,be=T[ie],ze=ie+1,we=T[ze];if(0>i(be,U))ze<H&&0>i(we,be)?(T[K]=we,T[ze]=U,K=ze):(T[K]=be,T[ie]=U,K=ie);else if(ze<H&&0>i(we,U))T[K]=we,T[ze]=U,K=ze;else break e}}return B}function i(T,B){var U=T.sortIndex-B.sortIndex;return U!==0?U:T.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(T){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=T)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function S(T){if(y=!1,x(T),!m)if(r(l)!==null)m=!0,D(w);else{var B=r(u);B!==null&&F(S,B.startTime-T)}}function w(T,B){m=!1,y&&(y=!1,g(j),j=-1),p=!0;var U=d;try{for(x(B),c=r(l);c!==null&&(!(c.expirationTime>B)||T&&!$());){var K=c.callback;if(typeof K=="function"){c.callback=null,d=c.priorityLevel;var H=K(c.expirationTime<=B);B=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(l)&&n(l),x(B)}else n(l);c=r(l)}if(c!==null)var X=!0;else{var ie=r(u);ie!==null&&F(S,ie.startTime-B),X=!1}return X}finally{c=null,d=U,p=!1}}var O=!1,_=null,j=-1,P=5,N=-1;function $(){return!(e.unstable_now()-N<P)}function C(){if(_!==null){var T=e.unstable_now();N=T;var B=!0;try{B=_(!0,T)}finally{B?L():(O=!1,_=null)}}else O=!1}var L;if(typeof b=="function")L=function(){b(C)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,I=R.port2;R.port1.onmessage=C,L=function(){I.postMessage(null)}}else L=function(){v(C,0)};function D(T){_=T,O||(O=!0,L())}function F(T,B){j=v(function(){T(e.unstable_now())},B)}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(T){T.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,D(w))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var B=3;break;default:B=d}var U=d;d=B;try{return T()}finally{d=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,B){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var U=d;d=T;try{return B()}finally{d=U}},e.unstable_scheduleCallback=function(T,B,U){var K=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?K+U:K):U=K,T){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=U+H,T={id:f++,callback:B,priorityLevel:T,startTime:U,expirationTime:H,sortIndex:-1},U>K?(T.sortIndex=U,t(u,T),r(l)===null&&T===r(u)&&(y?(g(j),j=-1):y=!0,F(S,U-K))):(T.sortIndex=H,t(l,T),m||p||(m=!0,D(w))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var B=d;return function(){var U=d;d=B;try{return T.apply(this,arguments)}finally{d=U}}}})(oj);aj.exports=oj;var MT=aj.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var IT=E,sr=MT;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sj=new Set,Tl={};function za(e,t){Bo(e,t),Bo(e+"Capture",t)}function Bo(e,t){for(Tl[e]=t,e=0;e<t.length;e++)sj.add(t[e])}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vm=Object.prototype.hasOwnProperty,RT=/^[: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]*$/,Rb={},Db={};function DT(e){return vm.call(Db,e)?!0:vm.call(Rb,e)?!1:RT.test(e)?Db[e]=!0:(Rb[e]=!0,!1)}function LT(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zT(e,t,r,n){if(t===null||typeof t>"u"||LT(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new zt(e,2,!1,e,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(e){St[e]=new zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var pg=/[\-:]([a-z])/g;function mg(e){return e[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(e){var t=e.replace(pg,mg);St[t]=new zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pg,mg);St[t]=new zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pg,mg);St[t]=new zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function yg(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zT(t,r,i,n)&&(r=null),n||i===null?DT(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Dn=IT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oc=Symbol.for("react.element"),Za=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),vg=Symbol.for("react.strict_mode"),gm=Symbol.for("react.profiler"),lj=Symbol.for("react.provider"),uj=Symbol.for("react.context"),gg=Symbol.for("react.forward_ref"),bm=Symbol.for("react.suspense"),xm=Symbol.for("react.suspense_list"),bg=Symbol.for("react.memo"),Kn=Symbol.for("react.lazy"),cj=Symbol.for("react.offscreen"),Lb=Symbol.iterator;function Us(e){return e===null||typeof e!="object"?null:(e=Lb&&e[Lb]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,sp;function ll(e){if(sp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);sp=t&&t[1]||""}return`
`+sp+e}var lp=!1;function up(e,t){if(!e||lp)return"";lp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),a=n.stack.split(`
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{lp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ll(e):""}function BT(e){switch(e.tag){case 5:return ll(e.type);case 16:return ll("Lazy");case 13:return ll("Suspense");case 19:return ll("SuspenseList");case 0:case 2:case 15:return e=up(e.type,!1),e;case 11:return e=up(e.type.render,!1),e;case 1:return e=up(e.type,!0),e;default:return""}}function wm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case eo:return"Fragment";case Za:return"Portal";case gm:return"Profiler";case vg:return"StrictMode";case bm:return"Suspense";case xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uj:return(e.displayName||"Context")+".Consumer";case lj:return(e._context.displayName||"Context")+".Provider";case gg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bg:return t=e.displayName||null,t!==null?t:wm(e.type)||"Memo";case Kn:t=e._payload,e=e._init;try{return wm(e(t))}catch{}}return null}function FT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wm(t);case 8:return t===vg?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _i(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UT(e){var t=fj(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sc(e){e._valueTracker||(e._valueTracker=UT(e))}function dj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fj(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function of(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sm(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function zb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_i(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hj(e,t){t=t.checked,t!=null&&yg(e,"checked",t,!1)}function Om(e,t){hj(e,t);var r=_i(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_m(e,t.type,r):t.hasOwnProperty("defaultValue")&&_m(e,t.type,_i(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function _m(e,t,r){(t!=="number"||of(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ul=Array.isArray;function vo(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+_i(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fb(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(q(92));if(ul(r)){if(1<r.length)throw Error(q(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:_i(r)}}function pj(e,t){var r=_i(t.value),n=_i(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Ub(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mj(e){switch(e){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 Pm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mj(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lc,yj=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(lc=lc||document.createElement("div"),lc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var pl={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},WT=["Webkit","ms","Moz","O"];Object.keys(pl).forEach(function(e){WT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pl[t]=pl[e]})});function vj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||pl.hasOwnProperty(e)&&pl[e]?(""+t).trim():t+"px"}function gj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=vj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var HT=He({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 Am(e,t){if(t){if(HT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function km(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Em=null;function xg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nm=null,go=null,bo=null;function Wb(e){if(e=Uu(e)){if(typeof Nm!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Hd(t),Nm(e.stateNode,e.type,t))}}function bj(e){go?bo?bo.push(e):bo=[e]:go=e}function xj(){if(go){var e=go,t=bo;if(bo=go=null,Wb(e),t)for(e=0;e<t.length;e++)Wb(t[e])}}function wj(e,t){return e(t)}function Sj(){}var cp=!1;function Oj(e,t,r){if(cp)return e(t,r);cp=!0;try{return wj(e,t,r)}finally{cp=!1,(go!==null||bo!==null)&&(Sj(),xj())}}function $l(e,t){var r=e.stateNode;if(r===null)return null;var n=Hd(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(q(231,t,typeof r));return r}var Tm=!1;if(Nn)try{var Ws={};Object.defineProperty(Ws,"passive",{get:function(){Tm=!0}}),window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{Tm=!1}function VT(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var ml=!1,sf=null,lf=!1,Cm=null,qT={onError:function(e){ml=!0,sf=e}};function KT(e,t,r,n,i,a,o,s,l){ml=!1,sf=null,VT.apply(qT,arguments)}function GT(e,t,r,n,i,a,o,s,l){if(KT.apply(this,arguments),ml){if(ml){var u=sf;ml=!1,sf=null}else throw Error(q(198));lf||(lf=!0,Cm=u)}}function Ba(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function _j(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Hb(e){if(Ba(e)!==e)throw Error(q(188))}function XT(e){var t=e.alternate;if(!t){if(t=Ba(e),t===null)throw Error(q(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Hb(i),e;if(a===n)return Hb(i),t;a=a.sibling}throw Error(q(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(q(189))}}if(r.alternate!==n)throw Error(q(190))}if(r.tag!==3)throw Error(q(188));return r.stateNode.current===r?e:t}function jj(e){return e=XT(e),e!==null?Pj(e):null}function Pj(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Pj(e);if(t!==null)return t;e=e.sibling}return null}var Aj=sr.unstable_scheduleCallback,Vb=sr.unstable_cancelCallback,QT=sr.unstable_shouldYield,YT=sr.unstable_requestPaint,Xe=sr.unstable_now,JT=sr.unstable_getCurrentPriorityLevel,wg=sr.unstable_ImmediatePriority,kj=sr.unstable_UserBlockingPriority,uf=sr.unstable_NormalPriority,ZT=sr.unstable_LowPriority,Ej=sr.unstable_IdlePriority,Bd=null,Zr=null;function eC(e){if(Zr&&typeof Zr.onCommitFiberRoot=="function")try{Zr.onCommitFiberRoot(Bd,e,void 0,(e.current.flags&128)===128)}catch{}}var Lr=Math.clz32?Math.clz32:nC,tC=Math.log,rC=Math.LN2;function nC(e){return e>>>=0,e===0?32:31-(tC(e)/rC|0)|0}var uc=64,cc=4194304;function cl(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cf(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=cl(s):(a&=o,a!==0&&(n=cl(a)))}else o=r&~i,o!==0?n=cl(o):a!==0&&(n=cl(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Lr(t),i=1<<r,n|=e[r],t&=~i;return n}function iC(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 aC(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Lr(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=iC(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function $m(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Nj(){var e=uc;return uc<<=1,!(uc&4194240)&&(uc=64),e}function fp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Bu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lr(t),e[t]=r}function oC(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Lr(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function Sg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Lr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var _e=0;function Tj(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Cj,Og,$j,Mj,Ij,Mm=!1,fc=[],hi=null,pi=null,mi=null,Ml=new Map,Il=new Map,Qn=[],sC="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 qb(e,t){switch(e){case"focusin":case"focusout":hi=null;break;case"dragenter":case"dragleave":pi=null;break;case"mouseover":case"mouseout":mi=null;break;case"pointerover":case"pointerout":Ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Il.delete(t.pointerId)}}function Hs(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Uu(t),t!==null&&Og(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lC(e,t,r,n,i){switch(t){case"focusin":return hi=Hs(hi,e,t,r,n,i),!0;case"dragenter":return pi=Hs(pi,e,t,r,n,i),!0;case"mouseover":return mi=Hs(mi,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Ml.set(a,Hs(Ml.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Il.set(a,Hs(Il.get(a)||null,e,t,r,n,i)),!0}return!1}function Rj(e){var t=Zi(e.target);if(t!==null){var r=Ba(t);if(r!==null){if(t=r.tag,t===13){if(t=_j(r),t!==null){e.blockedOn=t,Ij(e.priority,function(){$j(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Im(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Em=n,r.target.dispatchEvent(n),Em=null}else return t=Uu(r),t!==null&&Og(t),e.blockedOn=r,!1;t.shift()}return!0}function Kb(e,t,r){Wc(e)&&r.delete(t)}function uC(){Mm=!1,hi!==null&&Wc(hi)&&(hi=null),pi!==null&&Wc(pi)&&(pi=null),mi!==null&&Wc(mi)&&(mi=null),Ml.forEach(Kb),Il.forEach(Kb)}function Vs(e,t){e.blockedOn===t&&(e.blockedOn=null,Mm||(Mm=!0,sr.unstable_scheduleCallback(sr.unstable_NormalPriority,uC)))}function Rl(e){function t(i){return Vs(i,e)}if(0<fc.length){Vs(fc[0],e);for(var r=1;r<fc.length;r++){var n=fc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(hi!==null&&Vs(hi,e),pi!==null&&Vs(pi,e),mi!==null&&Vs(mi,e),Ml.forEach(t),Il.forEach(t),r=0;r<Qn.length;r++)n=Qn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Qn.length&&(r=Qn[0],r.blockedOn===null);)Rj(r),r.blockedOn===null&&Qn.shift()}var xo=Dn.ReactCurrentBatchConfig,ff=!0;function cC(e,t,r,n){var i=_e,a=xo.transition;xo.transition=null;try{_e=1,_g(e,t,r,n)}finally{_e=i,xo.transition=a}}function fC(e,t,r,n){var i=_e,a=xo.transition;xo.transition=null;try{_e=4,_g(e,t,r,n)}finally{_e=i,xo.transition=a}}function _g(e,t,r,n){if(ff){var i=Im(e,t,r,n);if(i===null)wp(e,t,n,df,r),qb(e,n);else if(lC(i,e,t,r,n))n.stopPropagation();else if(qb(e,n),t&4&&-1<sC.indexOf(e)){for(;i!==null;){var a=Uu(i);if(a!==null&&Cj(a),a=Im(e,t,r,n),a===null&&wp(e,t,n,df,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else wp(e,t,n,null,r)}}var df=null;function Im(e,t,r,n){if(df=null,e=xg(n),e=Zi(e),e!==null)if(t=Ba(e),t===null)e=null;else if(r=t.tag,r===13){if(e=_j(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return df=e,null}function Dj(e){switch(e){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(JT()){case wg:return 1;case kj:return 4;case uf:case ZT:return 16;case Ej:return 536870912;default:return 16}default:return 16}}var li=null,jg=null,Hc=null;function Lj(){if(Hc)return Hc;var e,t=jg,r=t.length,n,i="value"in li?li.value:li.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Hc=i.slice(e,1<n?1-n:void 0)}function Vc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dc(){return!0}function Gb(){return!1}function ur(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?dc:Gb,this.isPropagationStopped=Gb,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=dc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),t}var ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pg=ur(ws),Fu=He({},ws,{view:0,detail:0}),dC=ur(Fu),dp,hp,qs,Fd=He({},Fu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ag,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qs&&(qs&&e.type==="mousemove"?(dp=e.screenX-qs.screenX,hp=e.screenY-qs.screenY):hp=dp=0,qs=e),dp)},movementY:function(e){return"movementY"in e?e.movementY:hp}}),Xb=ur(Fd),hC=He({},Fd,{dataTransfer:0}),pC=ur(hC),mC=He({},Fu,{relatedTarget:0}),pp=ur(mC),yC=He({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),vC=ur(yC),gC=He({},ws,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bC=ur(gC),xC=He({},ws,{data:0}),Qb=ur(xC),wC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SC={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"},OC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _C(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=OC[e])?!!t[e]:!1}function Ag(){return _C}var jC=He({},Fu,{key:function(e){if(e.key){var t=wC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ag,charCode:function(e){return e.type==="keypress"?Vc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),PC=ur(jC),AC=He({},Fd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yb=ur(AC),kC=He({},Fu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ag}),EC=ur(kC),NC=He({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),TC=ur(NC),CC=He({},Fd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$C=ur(CC),MC=[9,13,27,32],kg=Nn&&"CompositionEvent"in window,yl=null;Nn&&"documentMode"in document&&(yl=document.documentMode);var IC=Nn&&"TextEvent"in window&&!yl,zj=Nn&&(!kg||yl&&8<yl&&11>=yl),Jb=" ",Zb=!1;function Bj(e,t){switch(e){case"keyup":return MC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var to=!1;function RC(e,t){switch(e){case"compositionend":return Fj(t);case"keypress":return t.which!==32?null:(Zb=!0,Jb);case"textInput":return e=t.data,e===Jb&&Zb?null:e;default:return null}}function DC(e,t){if(to)return e==="compositionend"||!kg&&Bj(e,t)?(e=Lj(),Hc=jg=li=null,to=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zj&&t.locale!=="ko"?null:t.data;default:return null}}var LC={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 ex(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!LC[e.type]:t==="textarea"}function Uj(e,t,r,n){bj(n),t=hf(t,"onChange"),0<t.length&&(r=new Pg("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var vl=null,Dl=null;function zC(e){Zj(e,0)}function Ud(e){var t=io(e);if(dj(t))return e}function BC(e,t){if(e==="change")return t}var Wj=!1;if(Nn){var mp;if(Nn){var yp="oninput"in document;if(!yp){var tx=document.createElement("div");tx.setAttribute("oninput","return;"),yp=typeof tx.oninput=="function"}mp=yp}else mp=!1;Wj=mp&&(!document.documentMode||9<document.documentMode)}function rx(){vl&&(vl.detachEvent("onpropertychange",Hj),Dl=vl=null)}function Hj(e){if(e.propertyName==="value"&&Ud(Dl)){var t=[];Uj(t,Dl,e,xg(e)),Oj(zC,t)}}function FC(e,t,r){e==="focusin"?(rx(),vl=t,Dl=r,vl.attachEvent("onpropertychange",Hj)):e==="focusout"&&rx()}function UC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ud(Dl)}function WC(e,t){if(e==="click")return Ud(t)}function HC(e,t){if(e==="input"||e==="change")return Ud(t)}function VC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fr=typeof Object.is=="function"?Object.is:VC;function Ll(e,t){if(Fr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!vm.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function nx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ix(e,t){var r=nx(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nx(r)}}function Vj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qj(){for(var e=window,t=of();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=of(e.document)}return t}function Eg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qC(e){var t=qj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Vj(r.ownerDocument.documentElement,r)){if(n!==null&&Eg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=ix(r,a);var o=ix(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var KC=Nn&&"documentMode"in document&&11>=document.documentMode,ro=null,Rm=null,gl=null,Dm=!1;function ax(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Dm||ro==null||ro!==of(n)||(n=ro,"selectionStart"in n&&Eg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),gl&&Ll(gl,n)||(gl=n,n=hf(Rm,"onSelect"),0<n.length&&(t=new Pg("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ro)))}function hc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var no={animationend:hc("Animation","AnimationEnd"),animationiteration:hc("Animation","AnimationIteration"),animationstart:hc("Animation","AnimationStart"),transitionend:hc("Transition","TransitionEnd")},vp={},Kj={};Nn&&(Kj=document.createElement("div").style,"AnimationEvent"in window||(delete no.animationend.animation,delete no.animationiteration.animation,delete no.animationstart.animation),"TransitionEvent"in window||delete no.transitionend.transition);function Wd(e){if(vp[e])return vp[e];if(!no[e])return e;var t=no[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Kj)return vp[e]=t[r];return e}var Gj=Wd("animationend"),Xj=Wd("animationiteration"),Qj=Wd("animationstart"),Yj=Wd("transitionend"),Jj=new Map,ox="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 Ti(e,t){Jj.set(e,t),za(t,[e])}for(var gp=0;gp<ox.length;gp++){var bp=ox[gp],GC=bp.toLowerCase(),XC=bp[0].toUpperCase()+bp.slice(1);Ti(GC,"on"+XC)}Ti(Gj,"onAnimationEnd");Ti(Xj,"onAnimationIteration");Ti(Qj,"onAnimationStart");Ti("dblclick","onDoubleClick");Ti("focusin","onFocus");Ti("focusout","onBlur");Ti(Yj,"onTransitionEnd");Bo("onMouseEnter",["mouseout","mouseover"]);Bo("onMouseLeave",["mouseout","mouseover"]);Bo("onPointerEnter",["pointerout","pointerover"]);Bo("onPointerLeave",["pointerout","pointerover"]);za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));za("onBeforeInput",["compositionend","keypress","textInput","paste"]);za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="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(" "),QC=new Set("cancel close invalid load scroll toggle".split(" ").concat(fl));function sx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,GT(n,t,void 0,e),e.currentTarget=null}function Zj(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;sx(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;sx(i,s,u),a=l}}}if(lf)throw e=Cm,lf=!1,Cm=null,e}function Ie(e,t){var r=t[Um];r===void 0&&(r=t[Um]=new Set);var n=e+"__bubble";r.has(n)||(eP(t,e,2,!1),r.add(n))}function xp(e,t,r){var n=0;t&&(n|=4),eP(r,e,n,t)}var pc="_reactListening"+Math.random().toString(36).slice(2);function zl(e){if(!e[pc]){e[pc]=!0,sj.forEach(function(r){r!=="selectionchange"&&(QC.has(r)||xp(r,!1,e),xp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pc]||(t[pc]=!0,xp("selectionchange",!1,t))}}function eP(e,t,r,n){switch(Dj(t)){case 1:var i=cC;break;case 4:i=fC;break;default:i=_g}r=i.bind(null,t,r,e),i=void 0,!Tm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function wp(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Zi(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}Oj(function(){var u=a,f=xg(r),c=[];e:{var d=Jj.get(e);if(d!==void 0){var p=Pg,m=e;switch(e){case"keypress":if(Vc(r)===0)break e;case"keydown":case"keyup":p=PC;break;case"focusin":m="focus",p=pp;break;case"focusout":m="blur",p=pp;break;case"beforeblur":case"afterblur":p=pp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Xb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=pC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=EC;break;case Gj:case Xj:case Qj:p=vC;break;case Yj:p=TC;break;case"scroll":p=dC;break;case"wheel":p=$C;break;case"copy":case"cut":case"paste":p=bC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Yb}var y=(t&4)!==0,v=!y&&e==="scroll",g=y?d!==null?d+"Capture":null:d;y=[];for(var b=u,x;b!==null;){x=b;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=$l(b,g),S!=null&&y.push(Bl(b,S,x)))),v)break;b=b.return}0<y.length&&(d=new p(d,m,null,r,f),c.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&r!==Em&&(m=r.relatedTarget||r.fromElement)&&(Zi(m)||m[Tn]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=u,m=m?Zi(m):null,m!==null&&(v=Ba(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=Xb,S="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(y=Yb,S="onPointerLeave",g="onPointerEnter",b="pointer"),v=p==null?d:io(p),x=m==null?d:io(m),d=new y(S,b+"leave",p,r,f),d.target=v,d.relatedTarget=x,S=null,Zi(f)===u&&(y=new y(g,b+"enter",m,r,f),y.target=x,y.relatedTarget=v,S=y),v=S,p&&m)t:{for(y=p,g=m,b=0,x=y;x;x=Ga(x))b++;for(x=0,S=g;S;S=Ga(S))x++;for(;0<b-x;)y=Ga(y),b--;for(;0<x-b;)g=Ga(g),x--;for(;b--;){if(y===g||g!==null&&y===g.alternate)break t;y=Ga(y),g=Ga(g)}y=null}else y=null;p!==null&&lx(c,d,p,y,!1),m!==null&&v!==null&&lx(c,v,m,y,!0)}}e:{if(d=u?io(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var w=BC;else if(ex(d))if(Wj)w=HC;else{w=UC;var O=FC}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=WC);if(w&&(w=w(e,u))){Uj(c,w,r,f);break e}O&&O(e,d,u),e==="focusout"&&(O=d._wrapperState)&&O.controlled&&d.type==="number"&&_m(d,"number",d.value)}switch(O=u?io(u):window,e){case"focusin":(ex(O)||O.contentEditable==="true")&&(ro=O,Rm=u,gl=null);break;case"focusout":gl=Rm=ro=null;break;case"mousedown":Dm=!0;break;case"contextmenu":case"mouseup":case"dragend":Dm=!1,ax(c,r,f);break;case"selectionchange":if(KC)break;case"keydown":case"keyup":ax(c,r,f)}var _;if(kg)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else to?Bj(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(zj&&r.locale!=="ko"&&(to||j!=="onCompositionStart"?j==="onCompositionEnd"&&to&&(_=Lj()):(li=f,jg="value"in li?li.value:li.textContent,to=!0)),O=hf(u,j),0<O.length&&(j=new Qb(j,e,null,r,f),c.push({event:j,listeners:O}),_?j.data=_:(_=Fj(r),_!==null&&(j.data=_)))),(_=IC?RC(e,r):DC(e,r))&&(u=hf(u,"onBeforeInput"),0<u.length&&(f=new Qb("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:u}),f.data=_))}Zj(c,t)})}function Bl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function hf(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=$l(e,r),a!=null&&n.unshift(Bl(e,a,i)),a=$l(e,t),a!=null&&n.push(Bl(e,a,i))),e=e.return}return n}function Ga(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lx(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=$l(r,a),l!=null&&o.unshift(Bl(r,l,s))):i||(l=$l(r,a),l!=null&&o.push(Bl(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var YC=/\r\n?/g,JC=/\u0000|\uFFFD/g;function ux(e){return(typeof e=="string"?e:""+e).replace(YC,`
`).replace(JC,"")}function mc(e,t,r){if(t=ux(t),ux(e)!==t&&r)throw Error(q(425))}function pf(){}var Lm=null,zm=null;function Bm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fm=typeof setTimeout=="function"?setTimeout:void 0,ZC=typeof clearTimeout=="function"?clearTimeout:void 0,cx=typeof Promise=="function"?Promise:void 0,e$=typeof queueMicrotask=="function"?queueMicrotask:typeof cx<"u"?function(e){return cx.resolve(null).then(e).catch(t$)}:Fm;function t$(e){setTimeout(function(){throw e})}function Sp(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Rl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Rl(t)}function yi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ss=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Ss,Fl="__reactProps$"+Ss,Tn="__reactContainer$"+Ss,Um="__reactEvents$"+Ss,r$="__reactListeners$"+Ss,n$="__reactHandles$"+Ss;function Zi(e){var t=e[Qr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Tn]||r[Qr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=fx(e);e!==null;){if(r=e[Qr])return r;e=fx(e)}return t}e=r,r=e.parentNode}return null}function Uu(e){return e=e[Qr]||e[Tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function io(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function Hd(e){return e[Fl]||null}var Wm=[],ao=-1;function Ci(e){return{current:e}}function Le(e){0>ao||(e.current=Wm[ao],Wm[ao]=null,ao--)}function $e(e,t){ao++,Wm[ao]=e.current,e.current=t}var ji={},Nt=Ci(ji),Gt=Ci(!1),Oa=ji;function Fo(e,t){var r=e.type.contextTypes;if(!r)return ji;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xt(e){return e=e.childContextTypes,e!=null}function mf(){Le(Gt),Le(Nt)}function dx(e,t,r){if(Nt.current!==ji)throw Error(q(168));$e(Nt,t),$e(Gt,r)}function tP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,FT(e)||"Unknown",i));return He({},r,n)}function yf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ji,Oa=Nt.current,$e(Nt,e),$e(Gt,Gt.current),!0}function hx(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=tP(e,t,Oa),n.__reactInternalMemoizedMergedChildContext=e,Le(Gt),Le(Nt),$e(Nt,e)):Le(Gt),$e(Gt,r)}var mn=null,Vd=!1,Op=!1;function rP(e){mn===null?mn=[e]:mn.push(e)}function i$(e){Vd=!0,rP(e)}function $i(){if(!Op&&mn!==null){Op=!0;var e=0,t=_e;try{var r=mn;for(_e=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}mn=null,Vd=!1}catch(i){throw mn!==null&&(mn=mn.slice(e+1)),Aj(wg,$i),i}finally{_e=t,Op=!1}}return null}var oo=[],so=0,vf=null,gf=0,yr=[],vr=0,_a=null,xn=1,wn="";function Ki(e,t){oo[so++]=gf,oo[so++]=vf,vf=e,gf=t}function nP(e,t,r){yr[vr++]=xn,yr[vr++]=wn,yr[vr++]=_a,_a=e;var n=xn;e=wn;var i=32-Lr(n)-1;n&=~(1<<i),r+=1;var a=32-Lr(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,xn=1<<32-Lr(t)+i|r<<i|n,wn=a+e}else xn=1<<a|r<<i|n,wn=e}function Ng(e){e.return!==null&&(Ki(e,1),nP(e,1,0))}function Tg(e){for(;e===vf;)vf=oo[--so],oo[so]=null,gf=oo[--so],oo[so]=null;for(;e===_a;)_a=yr[--vr],yr[vr]=null,wn=yr[--vr],yr[vr]=null,xn=yr[--vr],yr[vr]=null}var ar=null,ir=null,Be=!1,Rr=null;function iP(e,t){var r=br(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function px(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ar=e,ir=yi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ar=e,ir=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=_a!==null?{id:xn,overflow:wn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=br(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ar=e,ir=null,!0):!1;default:return!1}}function Hm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vm(e){if(Be){var t=ir;if(t){var r=t;if(!px(e,t)){if(Hm(e))throw Error(q(418));t=yi(r.nextSibling);var n=ar;t&&px(e,t)?iP(n,r):(e.flags=e.flags&-4097|2,Be=!1,ar=e)}}else{if(Hm(e))throw Error(q(418));e.flags=e.flags&-4097|2,Be=!1,ar=e}}}function mx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ar=e}function yc(e){if(e!==ar)return!1;if(!Be)return mx(e),Be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bm(e.type,e.memoizedProps)),t&&(t=ir)){if(Hm(e))throw aP(),Error(q(418));for(;t;)iP(e,t),t=yi(t.nextSibling)}if(mx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ir=yi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ir=null}}else ir=ar?yi(e.stateNode.nextSibling):null;return!0}function aP(){for(var e=ir;e;)e=yi(e.nextSibling)}function Uo(){ir=ar=null,Be=!1}function Cg(e){Rr===null?Rr=[e]:Rr.push(e)}var a$=Dn.ReactCurrentBatchConfig;function Ks(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(q(309));var n=r.stateNode}if(!n)throw Error(q(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(q(284));if(!r._owner)throw Error(q(290,e))}return e}function vc(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yx(e){var t=e._init;return t(e._payload)}function oP(e){function t(g,b){if(e){var x=g.deletions;x===null?(g.deletions=[b],g.flags|=16):x.push(b)}}function r(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function n(g,b){for(g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function i(g,b){return g=xi(g,b),g.index=0,g.sibling=null,g}function a(g,b,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<b?(g.flags|=2,b):x):(g.flags|=2,b)):(g.flags|=1048576,b)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,b,x,S){return b===null||b.tag!==6?(b=Np(x,g.mode,S),b.return=g,b):(b=i(b,x),b.return=g,b)}function l(g,b,x,S){var w=x.type;return w===eo?f(g,b,x.props.children,S,x.key):b!==null&&(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Kn&&yx(w)===b.type)?(S=i(b,x.props),S.ref=Ks(g,b,x),S.return=g,S):(S=Jc(x.type,x.key,x.props,null,g.mode,S),S.ref=Ks(g,b,x),S.return=g,S)}function u(g,b,x,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=Tp(x,g.mode,S),b.return=g,b):(b=i(b,x.children||[]),b.return=g,b)}function f(g,b,x,S,w){return b===null||b.tag!==7?(b=ba(x,g.mode,S,w),b.return=g,b):(b=i(b,x),b.return=g,b)}function c(g,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Np(""+b,g.mode,x),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case oc:return x=Jc(b.type,b.key,b.props,null,g.mode,x),x.ref=Ks(g,null,b),x.return=g,x;case Za:return b=Tp(b,g.mode,x),b.return=g,b;case Kn:var S=b._init;return c(g,S(b._payload),x)}if(ul(b)||Us(b))return b=ba(b,g.mode,x,null),b.return=g,b;vc(g,b)}return null}function d(g,b,x,S){var w=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:s(g,b,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case oc:return x.key===w?l(g,b,x,S):null;case Za:return x.key===w?u(g,b,x,S):null;case Kn:return w=x._init,d(g,b,w(x._payload),S)}if(ul(x)||Us(x))return w!==null?null:f(g,b,x,S,null);vc(g,x)}return null}function p(g,b,x,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,s(b,g,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case oc:return g=g.get(S.key===null?x:S.key)||null,l(b,g,S,w);case Za:return g=g.get(S.key===null?x:S.key)||null,u(b,g,S,w);case Kn:var O=S._init;return p(g,b,x,O(S._payload),w)}if(ul(S)||Us(S))return g=g.get(x)||null,f(b,g,S,w,null);vc(b,S)}return null}function m(g,b,x,S){for(var w=null,O=null,_=b,j=b=0,P=null;_!==null&&j<x.length;j++){_.index>j?(P=_,_=null):P=_.sibling;var N=d(g,_,x[j],S);if(N===null){_===null&&(_=P);break}e&&_&&N.alternate===null&&t(g,_),b=a(N,b,j),O===null?w=N:O.sibling=N,O=N,_=P}if(j===x.length)return r(g,_),Be&&Ki(g,j),w;if(_===null){for(;j<x.length;j++)_=c(g,x[j],S),_!==null&&(b=a(_,b,j),O===null?w=_:O.sibling=_,O=_);return Be&&Ki(g,j),w}for(_=n(g,_);j<x.length;j++)P=p(_,g,j,x[j],S),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?j:P.key),b=a(P,b,j),O===null?w=P:O.sibling=P,O=P);return e&&_.forEach(function($){return t(g,$)}),Be&&Ki(g,j),w}function y(g,b,x,S){var w=Us(x);if(typeof w!="function")throw Error(q(150));if(x=w.call(x),x==null)throw Error(q(151));for(var O=w=null,_=b,j=b=0,P=null,N=x.next();_!==null&&!N.done;j++,N=x.next()){_.index>j?(P=_,_=null):P=_.sibling;var $=d(g,_,N.value,S);if($===null){_===null&&(_=P);break}e&&_&&$.alternate===null&&t(g,_),b=a($,b,j),O===null?w=$:O.sibling=$,O=$,_=P}if(N.done)return r(g,_),Be&&Ki(g,j),w;if(_===null){for(;!N.done;j++,N=x.next())N=c(g,N.value,S),N!==null&&(b=a(N,b,j),O===null?w=N:O.sibling=N,O=N);return Be&&Ki(g,j),w}for(_=n(g,_);!N.done;j++,N=x.next())N=p(_,g,j,N.value,S),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?j:N.key),b=a(N,b,j),O===null?w=N:O.sibling=N,O=N);return e&&_.forEach(function(C){return t(g,C)}),Be&&Ki(g,j),w}function v(g,b,x,S){if(typeof x=="object"&&x!==null&&x.type===eo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case oc:e:{for(var w=x.key,O=b;O!==null;){if(O.key===w){if(w=x.type,w===eo){if(O.tag===7){r(g,O.sibling),b=i(O,x.props.children),b.return=g,g=b;break e}}else if(O.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Kn&&yx(w)===O.type){r(g,O.sibling),b=i(O,x.props),b.ref=Ks(g,O,x),b.return=g,g=b;break e}r(g,O);break}else t(g,O);O=O.sibling}x.type===eo?(b=ba(x.props.children,g.mode,S,x.key),b.return=g,g=b):(S=Jc(x.type,x.key,x.props,null,g.mode,S),S.ref=Ks(g,b,x),S.return=g,g=S)}return o(g);case Za:e:{for(O=x.key;b!==null;){if(b.key===O)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){r(g,b.sibling),b=i(b,x.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=Tp(x,g.mode,S),b.return=g,g=b}return o(g);case Kn:return O=x._init,v(g,b,O(x._payload),S)}if(ul(x))return m(g,b,x,S);if(Us(x))return y(g,b,x,S);vc(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(r(g,b.sibling),b=i(b,x),b.return=g,g=b):(r(g,b),b=Np(x,g.mode,S),b.return=g,g=b),o(g)):r(g,b)}return v}var Wo=oP(!0),sP=oP(!1),bf=Ci(null),xf=null,lo=null,$g=null;function Mg(){$g=lo=xf=null}function Ig(e){var t=bf.current;Le(bf),e._currentValue=t}function qm(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function wo(e,t){xf=e,$g=lo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function Or(e){var t=e._currentValue;if($g!==e)if(e={context:e,memoizedValue:t,next:null},lo===null){if(xf===null)throw Error(q(308));lo=e,xf.dependencies={lanes:0,firstContext:e}}else lo=lo.next=e;return t}var ea=null;function Rg(e){ea===null?ea=[e]:ea.push(e)}function lP(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Rg(t)):(r.next=i.next,i.next=r),t.interleaved=r,Cn(e,n)}function Cn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Gn=!1;function Dg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ge&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Cn(e,r)}return i=n.interleaved,i===null?(t.next=t,Rg(n)):(t.next=i.next,i.next=t),n.interleaved=t,Cn(e,r)}function qc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sg(e,r)}}function vx(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function wf(e,t,r,n){var i=e.updateQueue;Gn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(a!==null){var c=i.baseState;o=0,f=u=l=null,s=a;do{var d=s.lane,p=s.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(d=t,p=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=He({},c,d);break e;case 2:Gn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Pa|=o,e.lanes=o,e.memoizedState=c}}function gx(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(q(191,i));i.call(n)}}}var Wu={},en=Ci(Wu),Ul=Ci(Wu),Wl=Ci(Wu);function ta(e){if(e===Wu)throw Error(q(174));return e}function Lg(e,t){switch($e(Wl,t),$e(Ul,e),$e(en,Wu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pm(t,e)}Le(en),$e(en,t)}function Ho(){Le(en),Le(Ul),Le(Wl)}function cP(e){ta(Wl.current);var t=ta(en.current),r=Pm(t,e.type);t!==r&&($e(Ul,e),$e(en,r))}function zg(e){Ul.current===e&&(Le(en),Le(Ul))}var Ue=Ci(0);function Sf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _p=[];function Bg(){for(var e=0;e<_p.length;e++)_p[e]._workInProgressVersionPrimary=null;_p.length=0}var Kc=Dn.ReactCurrentDispatcher,jp=Dn.ReactCurrentBatchConfig,ja=0,We=null,ot=null,pt=null,Of=!1,bl=!1,Hl=0,o$=0;function Ot(){throw Error(q(321))}function Fg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Fr(e[r],t[r]))return!1;return!0}function Ug(e,t,r,n,i,a){if(ja=a,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kc.current=e===null||e.memoizedState===null?c$:f$,e=r(n,i),bl){a=0;do{if(bl=!1,Hl=0,25<=a)throw Error(q(301));a+=1,pt=ot=null,t.updateQueue=null,Kc.current=d$,e=r(n,i)}while(bl)}if(Kc.current=_f,t=ot!==null&&ot.next!==null,ja=0,pt=ot=We=null,Of=!1,t)throw Error(q(300));return e}function Wg(){var e=Hl!==0;return Hl=0,e}function qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?We.memoizedState=pt=e:pt=pt.next=e,pt}function _r(){if(ot===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=pt===null?We.memoizedState:pt.next;if(t!==null)pt=t,ot=e;else{if(e===null)throw Error(q(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},pt===null?We.memoizedState=pt=e:pt=pt.next=e}return pt}function Vl(e,t){return typeof t=="function"?t(e):t}function Pp(e){var t=_r(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=ot,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var f=u.lane;if((ja&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,o=n):l=l.next=c,We.lanes|=f,Pa|=f}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Fr(n,t.memoizedState)||(qt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,We.lanes|=a,Pa|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ap(e){var t=_r(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Fr(a,t.memoizedState)||(qt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function fP(){}function dP(e,t){var r=We,n=_r(),i=t(),a=!Fr(n.memoizedState,i);if(a&&(n.memoizedState=i,qt=!0),n=n.queue,Hg(mP.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,ql(9,pP.bind(null,r,n,i,t),void 0,null),yt===null)throw Error(q(349));ja&30||hP(r,t,i)}return i}function hP(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function pP(e,t,r,n){t.value=r,t.getSnapshot=n,yP(t)&&vP(e)}function mP(e,t,r){return r(function(){yP(t)&&vP(e)})}function yP(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Fr(e,r)}catch{return!0}}function vP(e){var t=Cn(e,1);t!==null&&zr(t,e,1,-1)}function bx(e){var t=qr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vl,lastRenderedState:e},t.queue=e,e=e.dispatch=u$.bind(null,We,e),[t.memoizedState,e]}function ql(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function gP(){return _r().memoizedState}function Gc(e,t,r,n){var i=qr();We.flags|=e,i.memoizedState=ql(1|t,r,void 0,n===void 0?null:n)}function qd(e,t,r,n){var i=_r();n=n===void 0?null:n;var a=void 0;if(ot!==null){var o=ot.memoizedState;if(a=o.destroy,n!==null&&Fg(n,o.deps)){i.memoizedState=ql(t,r,a,n);return}}We.flags|=e,i.memoizedState=ql(1|t,r,a,n)}function xx(e,t){return Gc(8390656,8,e,t)}function Hg(e,t){return qd(2048,8,e,t)}function bP(e,t){return qd(4,2,e,t)}function xP(e,t){return qd(4,4,e,t)}function wP(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function SP(e,t,r){return r=r!=null?r.concat([e]):null,qd(4,4,wP.bind(null,t,e),r)}function Vg(){}function OP(e,t){var r=_r();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Fg(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function _P(e,t){var r=_r();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Fg(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function jP(e,t,r){return ja&21?(Fr(r,t)||(r=Nj(),We.lanes|=r,Pa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qt=!0),e.memoizedState=r)}function s$(e,t){var r=_e;_e=r!==0&&4>r?r:4,e(!0);var n=jp.transition;jp.transition={};try{e(!1),t()}finally{_e=r,jp.transition=n}}function PP(){return _r().memoizedState}function l$(e,t,r){var n=bi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},AP(e))kP(t,r);else if(r=lP(e,t,r,n),r!==null){var i=Dt();zr(r,e,n,i),EP(r,t,n)}}function u$(e,t,r){var n=bi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(AP(e))kP(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o)){var l=t.interleaved;l===null?(i.next=i,Rg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=lP(e,t,i,n),r!==null&&(i=Dt(),zr(r,e,n,i),EP(r,t,n))}}function AP(e){var t=e.alternate;return e===We||t!==null&&t===We}function kP(e,t){bl=Of=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function EP(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sg(e,r)}}var _f={readContext:Or,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},c$={readContext:Or,useCallback:function(e,t){return qr().memoizedState=[e,t===void 0?null:t],e},useContext:Or,useEffect:xx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gc(4194308,4,wP.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gc(4,2,e,t)},useMemo:function(e,t){var r=qr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=qr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=l$.bind(null,We,e),[n.memoizedState,e]},useRef:function(e){var t=qr();return e={current:e},t.memoizedState=e},useState:bx,useDebugValue:Vg,useDeferredValue:function(e){return qr().memoizedState=e},useTransition:function(){var e=bx(!1),t=e[0];return e=s$.bind(null,e[1]),qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=We,i=qr();if(Be){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),yt===null)throw Error(q(349));ja&30||hP(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,xx(mP.bind(null,n,a,e),[e]),n.flags|=2048,ql(9,pP.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=qr(),t=yt.identifierPrefix;if(Be){var r=wn,n=xn;r=(n&~(1<<32-Lr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Hl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=o$++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},f$={readContext:Or,useCallback:OP,useContext:Or,useEffect:Hg,useImperativeHandle:SP,useInsertionEffect:bP,useLayoutEffect:xP,useMemo:_P,useReducer:Pp,useRef:gP,useState:function(){return Pp(Vl)},useDebugValue:Vg,useDeferredValue:function(e){var t=_r();return jP(t,ot.memoizedState,e)},useTransition:function(){var e=Pp(Vl)[0],t=_r().memoizedState;return[e,t]},useMutableSource:fP,useSyncExternalStore:dP,useId:PP,unstable_isNewReconciler:!1},d$={readContext:Or,useCallback:OP,useContext:Or,useEffect:Hg,useImperativeHandle:SP,useInsertionEffect:bP,useLayoutEffect:xP,useMemo:_P,useReducer:Ap,useRef:gP,useState:function(){return Ap(Vl)},useDebugValue:Vg,useDeferredValue:function(e){var t=_r();return ot===null?t.memoizedState=e:jP(t,ot.memoizedState,e)},useTransition:function(){var e=Ap(Vl)[0],t=_r().memoizedState;return[e,t]},useMutableSource:fP,useSyncExternalStore:dP,useId:PP,unstable_isNewReconciler:!1};function Tr(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Km(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Kd={isMounted:function(e){return(e=e._reactInternals)?Ba(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=bi(e),a=jn(n,i);a.payload=t,r!=null&&(a.callback=r),t=vi(e,a,i),t!==null&&(zr(t,e,i,n),qc(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=bi(e),a=jn(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=vi(e,a,i),t!==null&&(zr(t,e,i,n),qc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dt(),n=bi(e),i=jn(r,n);i.tag=2,t!=null&&(i.callback=t),t=vi(e,i,n),t!==null&&(zr(t,e,n,r),qc(t,e,n))}};function wx(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ll(r,n)||!Ll(i,a):!0}function NP(e,t,r){var n=!1,i=ji,a=t.contextType;return typeof a=="object"&&a!==null?a=Or(a):(i=Xt(t)?Oa:Nt.current,n=t.contextTypes,a=(n=n!=null)?Fo(e,i):ji),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Sx(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Kd.enqueueReplaceState(t,t.state,null)}function Gm(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Dg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Or(a):(a=Xt(t)?Oa:Nt.current,i.context=Fo(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Km(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kd.enqueueReplaceState(i,i.state,null),wf(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vo(e,t){try{var r="",n=t;do r+=BT(n),n=n.return;while(n);var i=r}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function kp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Xm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var h$=typeof WeakMap=="function"?WeakMap:Map;function TP(e,t,r){r=jn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Pf||(Pf=!0,ay=n),Xm(e,t)},r}function CP(e,t,r){r=jn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Xm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Xm(e,t),typeof n!="function"&&(gi===null?gi=new Set([this]):gi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Ox(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new h$;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=A$.bind(null,e,t,r),t.then(e,e))}function _x(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function jx(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=jn(-1,1),t.tag=2,vi(r,t,1))),r.lanes|=1),e)}var p$=Dn.ReactCurrentOwner,qt=!1;function Ct(e,t,r,n){t.child=e===null?sP(t,null,r,n):Wo(t,e.child,r,n)}function Px(e,t,r,n,i){r=r.render;var a=t.ref;return wo(t,i),n=Ug(e,t,r,n,a,i),r=Wg(),e!==null&&!qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$n(e,t,i)):(Be&&r&&Ng(t),t.flags|=1,Ct(e,t,n,i),t.child)}function Ax(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!Zg(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,$P(e,t,a,n,i)):(e=Jc(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Ll,r(o,n)&&e.ref===t.ref)return $n(e,t,i)}return t.flags|=1,e=xi(a,n),e.ref=t.ref,e.return=t,t.child=e}function $P(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Ll(a,n)&&e.ref===t.ref)if(qt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(qt=!0);else return t.lanes=e.lanes,$n(e,t,i)}return Qm(e,t,r,n,i)}function MP(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(co,tr),tr|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(co,tr),tr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,$e(co,tr),tr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,$e(co,tr),tr|=n;return Ct(e,t,i,r),t.child}function IP(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Qm(e,t,r,n,i){var a=Xt(r)?Oa:Nt.current;return a=Fo(t,a),wo(t,i),r=Ug(e,t,r,n,a,i),n=Wg(),e!==null&&!qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$n(e,t,i)):(Be&&n&&Ng(t),t.flags|=1,Ct(e,t,r,i),t.child)}function kx(e,t,r,n,i){if(Xt(r)){var a=!0;yf(t)}else a=!1;if(wo(t,i),t.stateNode===null)Xc(e,t),NP(t,r,n),Gm(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Or(u):(u=Xt(r)?Oa:Nt.current,u=Fo(t,u));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Sx(t,o,n,u),Gn=!1;var d=t.memoizedState;o.state=d,wf(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Gt.current||Gn?(typeof f=="function"&&(Km(t,r,f,n),l=t.memoizedState),(s=Gn||wx(t,r,s,n,d,l,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,uP(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Tr(t.type,s),o.props=u,c=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Or(l):(l=Xt(r)?Oa:Nt.current,l=Fo(t,l));var p=r.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==l)&&Sx(t,o,n,l),Gn=!1,d=t.memoizedState,o.state=d,wf(t,n,o,i);var m=t.memoizedState;s!==c||d!==m||Gt.current||Gn?(typeof p=="function"&&(Km(t,r,p,n),m=t.memoizedState),(u=Gn||wx(t,r,u,n,d,m,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Ym(e,t,r,n,a,i)}function Ym(e,t,r,n,i,a){IP(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&hx(t,r,!1),$n(e,t,a);n=t.stateNode,p$.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Wo(t,e.child,null,a),t.child=Wo(t,null,s,a)):Ct(e,t,s,a),t.memoizedState=n.state,i&&hx(t,r,!0),t.child}function RP(e){var t=e.stateNode;t.pendingContext?dx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dx(e,t.context,!1),Lg(e,t.containerInfo)}function Ex(e,t,r,n,i){return Uo(),Cg(i),t.flags|=256,Ct(e,t,r,n),t.child}var Jm={dehydrated:null,treeContext:null,retryLane:0};function Zm(e){return{baseLanes:e,cachePool:null,transitions:null}}function DP(e,t,r){var n=t.pendingProps,i=Ue.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$e(Ue,i&1),e===null)return Vm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Qd(o,n,0,null),e=ba(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Zm(r),t.memoizedState=Jm,e):qg(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return m$(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=xi(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=xi(s,a):(a=ba(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?Zm(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=Jm,n}return a=e.child,e=a.sibling,n=xi(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function qg(e,t){return t=Qd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gc(e,t,r,n){return n!==null&&Cg(n),Wo(t,e.child,null,r),e=qg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function m$(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=kp(Error(q(422))),gc(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Qd({mode:"visible",children:n.children},i,0,null),a=ba(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Wo(t,e.child,null,o),t.child.memoizedState=Zm(o),t.memoizedState=Jm,a);if(!(t.mode&1))return gc(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(q(419)),n=kp(a,n,void 0),gc(e,t,o,n)}if(s=(o&e.childLanes)!==0,qt||s){if(n=yt,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Cn(e,i),zr(n,e,i,-1))}return Jg(),n=kp(Error(q(421))),gc(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=k$.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ir=yi(i.nextSibling),ar=t,Be=!0,Rr=null,e!==null&&(yr[vr++]=xn,yr[vr++]=wn,yr[vr++]=_a,xn=e.id,wn=e.overflow,_a=t),t=qg(t,n.children),t.flags|=4096,t)}function Nx(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),qm(e.return,t,r)}function Ep(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function LP(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Ct(e,t,n.children,r),n=Ue.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nx(e,r,t);else if(e.tag===19)Nx(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if($e(Ue,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Sf(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Ep(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Sf(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Ep(t,!0,r,null,a);break;case"together":Ep(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $n(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,r=xi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=xi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function y$(e,t,r){switch(t.tag){case 3:RP(t),Uo();break;case 5:cP(t);break;case 1:Xt(t.type)&&yf(t);break;case 4:Lg(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;$e(bf,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?($e(Ue,Ue.current&1),t.flags|=128,null):r&t.child.childLanes?DP(e,t,r):($e(Ue,Ue.current&1),e=$n(e,t,r),e!==null?e.sibling:null);$e(Ue,Ue.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return LP(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$e(Ue,Ue.current),n)break;return null;case 22:case 23:return t.lanes=0,MP(e,t,r)}return $n(e,t,r)}var zP,ey,BP,FP;zP=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ey=function(){};BP=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ta(en.current);var a=null;switch(r){case"input":i=Sm(e,i),n=Sm(e,n),a=[];break;case"select":i=He({},i,{value:void 0}),n=He({},n,{value:void 0}),a=[];break;case"textarea":i=jm(e,i),n=jm(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=pf)}Am(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Tl.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Tl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ie("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};FP=function(e,t,r,n){r!==n&&(t.flags|=4)};function Gs(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function v$(e,t,r){var n=t.pendingProps;switch(Tg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return Xt(t.type)&&mf(),_t(t),null;case 3:return n=t.stateNode,Ho(),Le(Gt),Le(Nt),Bg(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(yc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rr!==null&&(ly(Rr),Rr=null))),ey(e,t),_t(t),null;case 5:zg(t);var i=ta(Wl.current);if(r=t.type,e!==null&&t.stateNode!=null)BP(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(q(166));return _t(t),null}if(e=ta(en.current),yc(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Qr]=t,n[Fl]=a,e=(t.mode&1)!==0,r){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(i=0;i<fl.length;i++)Ie(fl[i],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":zb(n,a),Ie("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ie("invalid",n);break;case"textarea":Fb(n,a),Ie("invalid",n)}Am(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&mc(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&mc(n.textContent,s,e),i=["children",""+s]):Tl.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ie("scroll",n)}switch(r){case"input":sc(n),Bb(n,a,!0);break;case"textarea":sc(n),Ub(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=pf)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mj(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Qr]=t,e[Fl]=n,zP(e,t,!1,!1),t.stateNode=e;e:{switch(o=km(r,n),r){case"dialog":Ie("cancel",e),Ie("close",e),i=n;break;case"iframe":case"object":case"embed":Ie("load",e),i=n;break;case"video":case"audio":for(i=0;i<fl.length;i++)Ie(fl[i],e);i=n;break;case"source":Ie("error",e),i=n;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),i=n;break;case"details":Ie("toggle",e),i=n;break;case"input":zb(e,n),i=Sm(e,n),Ie("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=He({},n,{value:void 0}),Ie("invalid",e);break;case"textarea":Fb(e,n),i=jm(e,n),Ie("invalid",e);break;default:i=n}Am(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?gj(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yj(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Cl(e,l):typeof l=="number"&&Cl(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Tl.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Ie("scroll",e):l!=null&&yg(e,a,l,o))}switch(r){case"input":sc(e),Bb(e,n,!1);break;case"textarea":sc(e),Ub(e);break;case"option":n.value!=null&&e.setAttribute("value",""+_i(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?vo(e,!!n.multiple,a,!1):n.defaultValue!=null&&vo(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=pf)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _t(t),null;case 6:if(e&&t.stateNode!=null)FP(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(q(166));if(r=ta(Wl.current),ta(en.current),yc(t)){if(n=t.stateNode,r=t.memoizedProps,n[Qr]=t,(a=n.nodeValue!==r)&&(e=ar,e!==null))switch(e.tag){case 3:mc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mc(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Qr]=t,t.stateNode=n}return _t(t),null;case 13:if(Le(Ue),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Be&&ir!==null&&t.mode&1&&!(t.flags&128))aP(),Uo(),t.flags|=98560,a=!1;else if(a=yc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[Qr]=t}else Uo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_t(t),a=!1}else Rr!==null&&(ly(Rr),Rr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ue.current&1?ut===0&&(ut=3):Jg())),t.updateQueue!==null&&(t.flags|=4),_t(t),null);case 4:return Ho(),ey(e,t),e===null&&zl(t.stateNode.containerInfo),_t(t),null;case 10:return Ig(t.type._context),_t(t),null;case 17:return Xt(t.type)&&mf(),_t(t),null;case 19:if(Le(Ue),a=t.memoizedState,a===null)return _t(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Gs(a,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Sf(e),o!==null){for(t.flags|=128,Gs(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $e(Ue,Ue.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xe()>qo&&(t.flags|=128,n=!0,Gs(a,!1),t.lanes=4194304)}else{if(!n)if(e=Sf(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Gs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Be)return _t(t),null}else 2*Xe()-a.renderingStartTime>qo&&r!==1073741824&&(t.flags|=128,n=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=Ue.current,$e(Ue,n?r&1|2:r&1),t):(_t(t),null);case 22:case 23:return Yg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?tr&1073741824&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function g$(e,t){switch(Tg(t),t.tag){case 1:return Xt(t.type)&&mf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ho(),Le(Gt),Le(Nt),Bg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zg(t),null;case 13:if(Le(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Uo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(Ue),null;case 4:return Ho(),null;case 10:return Ig(t.type._context),null;case 22:case 23:return Yg(),null;case 24:return null;default:return null}}var bc=!1,At=!1,b$=typeof WeakSet=="function"?WeakSet:Set,Y=null;function uo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ke(e,t,n)}else r.current=null}function ty(e,t,r){try{r()}catch(n){Ke(e,t,n)}}var Tx=!1;function x$(e,t){if(Lm=ff,e=qj(),Eg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(s=o+i),c!==a||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++f===n&&(l=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(zm={focusedElem:e,selectionRange:r},ff=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Tr(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(S){Ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return m=Tx,Tx=!1,m}function xl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ty(t,r,a)}i=i.next}while(i!==n)}}function Gd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ry(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function UP(e){var t=e.alternate;t!==null&&(e.alternate=null,UP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qr],delete t[Fl],delete t[Um],delete t[r$],delete t[n$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function WP(e){return e.tag===5||e.tag===3||e.tag===4}function Cx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ny(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=pf));else if(n!==4&&(e=e.child,e!==null))for(ny(e,t,r),e=e.sibling;e!==null;)ny(e,t,r),e=e.sibling}function iy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(iy(e,t,r),e=e.sibling;e!==null;)iy(e,t,r),e=e.sibling}var xt=null,Mr=!1;function Wn(e,t,r){for(r=r.child;r!==null;)HP(e,t,r),r=r.sibling}function HP(e,t,r){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(Bd,r)}catch{}switch(r.tag){case 5:At||uo(r,t);case 6:var n=xt,i=Mr;xt=null,Wn(e,t,r),xt=n,Mr=i,xt!==null&&(Mr?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Mr?(e=xt,r=r.stateNode,e.nodeType===8?Sp(e.parentNode,r):e.nodeType===1&&Sp(e,r),Rl(e)):Sp(xt,r.stateNode));break;case 4:n=xt,i=Mr,xt=r.stateNode.containerInfo,Mr=!0,Wn(e,t,r),xt=n,Mr=i;break;case 0:case 11:case 14:case 15:if(!At&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ty(r,t,o),i=i.next}while(i!==n)}Wn(e,t,r);break;case 1:if(!At&&(uo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ke(r,t,s)}Wn(e,t,r);break;case 21:Wn(e,t,r);break;case 22:r.mode&1?(At=(n=At)||r.memoizedState!==null,Wn(e,t,r),At=n):Wn(e,t,r);break;default:Wn(e,t,r)}}function $x(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new b$),t.forEach(function(n){var i=E$.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function kr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:xt=s.stateNode,Mr=!1;break e;case 3:xt=s.stateNode.containerInfo,Mr=!0;break e;case 4:xt=s.stateNode.containerInfo,Mr=!0;break e}s=s.return}if(xt===null)throw Error(q(160));HP(a,o,i),xt=null,Mr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ke(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)VP(t,e),t=t.sibling}function VP(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kr(t,e),Vr(e),n&4){try{xl(3,e,e.return),Gd(3,e)}catch(y){Ke(e,e.return,y)}try{xl(5,e,e.return)}catch(y){Ke(e,e.return,y)}}break;case 1:kr(t,e),Vr(e),n&512&&r!==null&&uo(r,r.return);break;case 5:if(kr(t,e),Vr(e),n&512&&r!==null&&uo(r,r.return),e.flags&32){var i=e.stateNode;try{Cl(i,"")}catch(y){Ke(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&hj(i,a),km(s,o);var u=km(s,a);for(o=0;o<l.length;o+=2){var f=l[o],c=l[o+1];f==="style"?gj(i,c):f==="dangerouslySetInnerHTML"?yj(i,c):f==="children"?Cl(i,c):yg(i,f,c,u)}switch(s){case"input":Om(i,a);break;case"textarea":pj(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?vo(i,!!a.multiple,p,!1):d!==!!a.multiple&&(a.defaultValue!=null?vo(i,!!a.multiple,a.defaultValue,!0):vo(i,!!a.multiple,a.multiple?[]:"",!1))}i[Fl]=a}catch(y){Ke(e,e.return,y)}}break;case 6:if(kr(t,e),Vr(e),n&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(y){Ke(e,e.return,y)}}break;case 3:if(kr(t,e),Vr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Rl(t.containerInfo)}catch(y){Ke(e,e.return,y)}break;case 4:kr(t,e),Vr(e);break;case 13:kr(t,e),Vr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Xg=Xe())),n&4&&$x(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(At=(u=At)||f,kr(t,e),At=u):kr(t,e),Vr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Y=e,f=e.child;f!==null;){for(c=Y=f;Y!==null;){switch(d=Y,p=d.child,d.tag){case 0:case 11:case 14:case 15:xl(4,d,d.return);break;case 1:uo(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Ke(n,r,y)}}break;case 5:uo(d,d.return);break;case 22:if(d.memoizedState!==null){Ix(c);continue}}p!==null?(p.return=d,Y=p):Ix(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=vj("display",o))}catch(y){Ke(e,e.return,y)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Ke(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:kr(t,e),Vr(e),n&4&&$x(e);break;case 21:break;default:kr(t,e),Vr(e)}}function Vr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(WP(r)){var n=r;break e}r=r.return}throw Error(q(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Cl(i,""),n.flags&=-33);var a=Cx(e);iy(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=Cx(e);ny(e,s,o);break;default:throw Error(q(161))}}catch(l){Ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function w$(e,t,r){Y=e,qP(e)}function qP(e,t,r){for(var n=(e.mode&1)!==0;Y!==null;){var i=Y,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||bc;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||At;s=bc;var u=At;if(bc=o,(At=l)&&!u)for(Y=i;Y!==null;)o=Y,l=o.child,o.tag===22&&o.memoizedState!==null?Rx(i):l!==null?(l.return=o,Y=l):Rx(i);for(;a!==null;)Y=a,qP(a),a=a.sibling;Y=i,bc=s,At=u}Mx(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Y=a):Mx(e)}}function Mx(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:At||Gd(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!At)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Tr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&gx(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}gx(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Rl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}At||t.flags&512&&ry(t)}catch(d){Ke(t,t.return,d)}}if(t===e){Y=null;break}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Ix(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Rx(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Gd(4,t)}catch(l){Ke(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ke(t,i,l)}}var a=t.return;try{ry(t)}catch(l){Ke(t,a,l)}break;case 5:var o=t.return;try{ry(t)}catch(l){Ke(t,o,l)}}}catch(l){Ke(t,t.return,l)}if(t===e){Y=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Y=s;break}Y=t.return}}var S$=Math.ceil,jf=Dn.ReactCurrentDispatcher,Kg=Dn.ReactCurrentOwner,wr=Dn.ReactCurrentBatchConfig,ge=0,yt=null,Ze=null,wt=0,tr=0,co=Ci(0),ut=0,Kl=null,Pa=0,Xd=0,Gg=0,wl=null,Ht=null,Xg=0,qo=1/0,hn=null,Pf=!1,ay=null,gi=null,xc=!1,ui=null,Af=0,Sl=0,oy=null,Qc=-1,Yc=0;function Dt(){return ge&6?Xe():Qc!==-1?Qc:Qc=Xe()}function bi(e){return e.mode&1?ge&2&&wt!==0?wt&-wt:a$.transition!==null?(Yc===0&&(Yc=Nj()),Yc):(e=_e,e!==0||(e=window.event,e=e===void 0?16:Dj(e.type)),e):1}function zr(e,t,r,n){if(50<Sl)throw Sl=0,oy=null,Error(q(185));Bu(e,r,n),(!(ge&2)||e!==yt)&&(e===yt&&(!(ge&2)&&(Xd|=r),ut===4&&Yn(e,wt)),Qt(e,n),r===1&&ge===0&&!(t.mode&1)&&(qo=Xe()+500,Vd&&$i()))}function Qt(e,t){var r=e.callbackNode;aC(e,t);var n=cf(e,e===yt?wt:0);if(n===0)r!==null&&Vb(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Vb(r),t===1)e.tag===0?i$(Dx.bind(null,e)):rP(Dx.bind(null,e)),e$(function(){!(ge&6)&&$i()}),r=null;else{switch(Tj(n)){case 1:r=wg;break;case 4:r=kj;break;case 16:r=uf;break;case 536870912:r=Ej;break;default:r=uf}r=eA(r,KP.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function KP(e,t){if(Qc=-1,Yc=0,ge&6)throw Error(q(327));var r=e.callbackNode;if(So()&&e.callbackNode!==r)return null;var n=cf(e,e===yt?wt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=kf(e,n);else{t=n;var i=ge;ge|=2;var a=XP();(yt!==e||wt!==t)&&(hn=null,qo=Xe()+500,ga(e,t));do try{j$();break}catch(s){GP(e,s)}while(!0);Mg(),jf.current=a,ge=i,Ze!==null?t=0:(yt=null,wt=0,t=ut)}if(t!==0){if(t===2&&(i=$m(e),i!==0&&(n=i,t=sy(e,i))),t===1)throw r=Kl,ga(e,0),Yn(e,n),Qt(e,Xe()),r;if(t===6)Yn(e,n);else{if(i=e.current.alternate,!(n&30)&&!O$(i)&&(t=kf(e,n),t===2&&(a=$m(e),a!==0&&(n=a,t=sy(e,a))),t===1))throw r=Kl,ga(e,0),Yn(e,n),Qt(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(q(345));case 2:Gi(e,Ht,hn);break;case 3:if(Yn(e,n),(n&130023424)===n&&(t=Xg+500-Xe(),10<t)){if(cf(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Dt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Fm(Gi.bind(null,e,Ht,hn),t);break}Gi(e,Ht,hn);break;case 4:if(Yn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Lr(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*S$(n/1960))-n,10<n){e.timeoutHandle=Fm(Gi.bind(null,e,Ht,hn),n);break}Gi(e,Ht,hn);break;case 5:Gi(e,Ht,hn);break;default:throw Error(q(329))}}}return Qt(e,Xe()),e.callbackNode===r?KP.bind(null,e):null}function sy(e,t){var r=wl;return e.current.memoizedState.isDehydrated&&(ga(e,t).flags|=256),e=kf(e,t),e!==2&&(t=Ht,Ht=r,t!==null&&ly(t)),e}function ly(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function O$(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yn(e,t){for(t&=~Gg,t&=~Xd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Lr(t),n=1<<r;e[r]=-1,t&=~n}}function Dx(e){if(ge&6)throw Error(q(327));So();var t=cf(e,0);if(!(t&1))return Qt(e,Xe()),null;var r=kf(e,t);if(e.tag!==0&&r===2){var n=$m(e);n!==0&&(t=n,r=sy(e,n))}if(r===1)throw r=Kl,ga(e,0),Yn(e,t),Qt(e,Xe()),r;if(r===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gi(e,Ht,hn),Qt(e,Xe()),null}function Qg(e,t){var r=ge;ge|=1;try{return e(t)}finally{ge=r,ge===0&&(qo=Xe()+500,Vd&&$i())}}function Aa(e){ui!==null&&ui.tag===0&&!(ge&6)&&So();var t=ge;ge|=1;var r=wr.transition,n=_e;try{if(wr.transition=null,_e=1,e)return e()}finally{_e=n,wr.transition=r,ge=t,!(ge&6)&&$i()}}function Yg(){tr=co.current,Le(co)}function ga(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,ZC(r)),Ze!==null)for(r=Ze.return;r!==null;){var n=r;switch(Tg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&mf();break;case 3:Ho(),Le(Gt),Le(Nt),Bg();break;case 5:zg(n);break;case 4:Ho();break;case 13:Le(Ue);break;case 19:Le(Ue);break;case 10:Ig(n.type._context);break;case 22:case 23:Yg()}r=r.return}if(yt=e,Ze=e=xi(e.current,null),wt=tr=t,ut=0,Kl=null,Gg=Xd=Pa=0,Ht=wl=null,ea!==null){for(t=0;t<ea.length;t++)if(r=ea[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}ea=null}return e}function GP(e,t){do{var r=Ze;try{if(Mg(),Kc.current=_f,Of){for(var n=We.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Of=!1}if(ja=0,pt=ot=We=null,bl=!1,Hl=0,Kg.current=null,r===null||r.return===null){ut=1,Kl=t,Ze=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=wt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=_x(o);if(p!==null){p.flags&=-257,jx(p,o,s,a,t),p.mode&1&&Ox(a,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){Ox(a,u,t),Jg();break e}l=Error(q(426))}}else if(Be&&s.mode&1){var v=_x(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),jx(v,o,s,a,t),Cg(Vo(l,s));break e}}a=l=Vo(l,s),ut!==4&&(ut=2),wl===null?wl=[a]:wl.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=TP(a,l,t);vx(a,g);break e;case 1:s=l;var b=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(gi===null||!gi.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=CP(a,s,t);vx(a,S);break e}}a=a.return}while(a!==null)}YP(r)}catch(w){t=w,Ze===r&&r!==null&&(Ze=r=r.return);continue}break}while(!0)}function XP(){var e=jf.current;return jf.current=_f,e===null?_f:e}function Jg(){(ut===0||ut===3||ut===2)&&(ut=4),yt===null||!(Pa&268435455)&&!(Xd&268435455)||Yn(yt,wt)}function kf(e,t){var r=ge;ge|=2;var n=XP();(yt!==e||wt!==t)&&(hn=null,ga(e,t));do try{_$();break}catch(i){GP(e,i)}while(!0);if(Mg(),ge=r,jf.current=n,Ze!==null)throw Error(q(261));return yt=null,wt=0,ut}function _$(){for(;Ze!==null;)QP(Ze)}function j$(){for(;Ze!==null&&!QT();)QP(Ze)}function QP(e){var t=ZP(e.alternate,e,tr);e.memoizedProps=e.pendingProps,t===null?YP(e):Ze=t,Kg.current=null}function YP(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=g$(r,t),r!==null){r.flags&=32767,Ze=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,Ze=null;return}}else if(r=v$(r,t,tr),r!==null){Ze=r;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);ut===0&&(ut=5)}function Gi(e,t,r){var n=_e,i=wr.transition;try{wr.transition=null,_e=1,P$(e,t,r,n)}finally{wr.transition=i,_e=n}return null}function P$(e,t,r,n){do So();while(ui!==null);if(ge&6)throw Error(q(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(oC(e,a),e===yt&&(Ze=yt=null,wt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||xc||(xc=!0,eA(uf,function(){return So(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=wr.transition,wr.transition=null;var o=_e;_e=1;var s=ge;ge|=4,Kg.current=null,x$(e,r),VP(r,e),qC(zm),ff=!!Lm,zm=Lm=null,e.current=r,w$(r),YT(),ge=s,_e=o,wr.transition=a}else e.current=r;if(xc&&(xc=!1,ui=e,Af=i),a=e.pendingLanes,a===0&&(gi=null),eC(r.stateNode),Qt(e,Xe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Pf)throw Pf=!1,e=ay,ay=null,e;return Af&1&&e.tag!==0&&So(),a=e.pendingLanes,a&1?e===oy?Sl++:(Sl=0,oy=e):Sl=0,$i(),null}function So(){if(ui!==null){var e=Tj(Af),t=wr.transition,r=_e;try{if(wr.transition=null,_e=16>e?16:e,ui===null)var n=!1;else{if(e=ui,ui=null,Af=0,ge&6)throw Error(q(331));var i=ge;for(ge|=4,Y=e.current;Y!==null;){var a=Y,o=a.child;if(Y.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Y=u;Y!==null;){var f=Y;switch(f.tag){case 0:case 11:case 15:xl(8,f,a)}var c=f.child;if(c!==null)c.return=f,Y=c;else for(;Y!==null;){f=Y;var d=f.sibling,p=f.return;if(UP(f),f===u){Y=null;break}if(d!==null){d.return=p,Y=d;break}Y=p}}}var m=a.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}Y=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,Y=o;else e:for(;Y!==null;){if(a=Y,a.flags&2048)switch(a.tag){case 0:case 11:case 15:xl(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,Y=g;break e}Y=a.return}}var b=e.current;for(Y=b;Y!==null;){o=Y;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Y=x;else e:for(o=b;Y!==null;){if(s=Y,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Gd(9,s)}}catch(w){Ke(s,s.return,w)}if(s===o){Y=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Y=S;break e}Y=s.return}}if(ge=i,$i(),Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(Bd,e)}catch{}n=!0}return n}finally{_e=r,wr.transition=t}}return!1}function Lx(e,t,r){t=Vo(r,t),t=TP(e,t,1),e=vi(e,t,1),t=Dt(),e!==null&&(Bu(e,1,t),Qt(e,t))}function Ke(e,t,r){if(e.tag===3)Lx(e,e,r);else for(;t!==null;){if(t.tag===3){Lx(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(gi===null||!gi.has(n))){e=Vo(r,e),e=CP(t,e,1),t=vi(t,e,1),e=Dt(),t!==null&&(Bu(t,1,e),Qt(t,e));break}}t=t.return}}function A$(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Dt(),e.pingedLanes|=e.suspendedLanes&r,yt===e&&(wt&r)===r&&(ut===4||ut===3&&(wt&130023424)===wt&&500>Xe()-Xg?ga(e,0):Gg|=r),Qt(e,t)}function JP(e,t){t===0&&(e.mode&1?(t=cc,cc<<=1,!(cc&130023424)&&(cc=4194304)):t=1);var r=Dt();e=Cn(e,t),e!==null&&(Bu(e,t,r),Qt(e,r))}function k$(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),JP(e,r)}function E$(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),JP(e,r)}var ZP;ZP=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)qt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return qt=!1,y$(e,t,r);qt=!!(e.flags&131072)}else qt=!1,Be&&t.flags&1048576&&nP(t,gf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Xc(e,t),e=t.pendingProps;var i=Fo(t,Nt.current);wo(t,r),i=Ug(null,t,n,e,i,r);var a=Wg();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xt(n)?(a=!0,yf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Dg(t),i.updater=Kd,t.stateNode=i,i._reactInternals=t,Gm(t,n,e,r),t=Ym(null,t,n,!0,a,r)):(t.tag=0,Be&&a&&Ng(t),Ct(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Xc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=T$(n),e=Tr(n,e),i){case 0:t=Qm(null,t,n,e,r);break e;case 1:t=kx(null,t,n,e,r);break e;case 11:t=Px(null,t,n,e,r);break e;case 14:t=Ax(null,t,n,Tr(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tr(n,i),Qm(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tr(n,i),kx(e,t,n,i,r);case 3:e:{if(RP(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,uP(e,t),wf(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Vo(Error(q(423)),t),t=Ex(e,t,n,r,i);break e}else if(n!==i){i=Vo(Error(q(424)),t),t=Ex(e,t,n,r,i);break e}else for(ir=yi(t.stateNode.containerInfo.firstChild),ar=t,Be=!0,Rr=null,r=sP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Uo(),n===i){t=$n(e,t,r);break e}Ct(e,t,n,r)}t=t.child}return t;case 5:return cP(t),e===null&&Vm(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Bm(n,i)?o=null:a!==null&&Bm(n,a)&&(t.flags|=32),IP(e,t),Ct(e,t,o,r),t.child;case 6:return e===null&&Vm(t),null;case 13:return DP(e,t,r);case 4:return Lg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wo(t,null,n,r):Ct(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tr(n,i),Px(e,t,n,i,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$e(bf,n._currentValue),n._currentValue=o,a!==null)if(Fr(a.value,o)){if(a.children===i.children&&!Gt.current){t=$n(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=jn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),qm(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),qm(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ct(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,wo(t,r),i=Or(i),n=n(i),t.flags|=1,Ct(e,t,n,r),t.child;case 14:return n=t.type,i=Tr(n,t.pendingProps),i=Tr(n.type,i),Ax(e,t,n,i,r);case 15:return $P(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tr(n,i),Xc(e,t),t.tag=1,Xt(n)?(e=!0,yf(t)):e=!1,wo(t,r),NP(t,n,i),Gm(t,n,i,r),Ym(null,t,n,!0,e,r);case 19:return LP(e,t,r);case 22:return MP(e,t,r)}throw Error(q(156,t.tag))};function eA(e,t){return Aj(e,t)}function N$(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(e,t,r,n){return new N$(e,t,r,n)}function Zg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function T$(e){if(typeof e=="function")return Zg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gg)return 11;if(e===bg)return 14}return 2}function xi(e,t){var r=e.alternate;return r===null?(r=br(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Jc(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Zg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case eo:return ba(r.children,i,a,t);case vg:o=8,i|=8;break;case gm:return e=br(12,r,t,i|2),e.elementType=gm,e.lanes=a,e;case bm:return e=br(13,r,t,i),e.elementType=bm,e.lanes=a,e;case xm:return e=br(19,r,t,i),e.elementType=xm,e.lanes=a,e;case cj:return Qd(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lj:o=10;break e;case uj:o=9;break e;case gg:o=11;break e;case bg:o=14;break e;case Kn:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=br(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ba(e,t,r,n){return e=br(7,e,n,t),e.lanes=r,e}function Qd(e,t,r,n){return e=br(22,e,n,t),e.elementType=cj,e.lanes=r,e.stateNode={isHidden:!1},e}function Np(e,t,r){return e=br(6,e,null,t),e.lanes=r,e}function Tp(e,t,r){return t=br(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function C$(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fp(0),this.expirationTimes=fp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e0(e,t,r,n,i,a,o,s,l){return e=new C$(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=br(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dg(a),e}function $$(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Za,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function tA(e){if(!e)return ji;e=e._reactInternals;e:{if(Ba(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var r=e.type;if(Xt(r))return tP(e,r,t)}return t}function rA(e,t,r,n,i,a,o,s,l){return e=e0(r,n,!0,e,i,a,o,s,l),e.context=tA(null),r=e.current,n=Dt(),i=bi(r),a=jn(n,i),a.callback=t??null,vi(r,a,i),e.current.lanes=i,Bu(e,i,n),Qt(e,n),e}function Yd(e,t,r,n){var i=t.current,a=Dt(),o=bi(i);return r=tA(r),t.context===null?t.context=r:t.pendingContext=r,t=jn(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=vi(i,t,o),e!==null&&(zr(e,i,o,a),qc(e,i,o)),o}function Ef(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function zx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function t0(e,t){zx(e,t),(e=e.alternate)&&zx(e,t)}function M$(){return null}var nA=typeof reportError=="function"?reportError:function(e){console.error(e)};function r0(e){this._internalRoot=e}Jd.prototype.render=r0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));Yd(e,t,null,null)};Jd.prototype.unmount=r0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Aa(function(){Yd(null,e,null,null)}),t[Tn]=null}};function Jd(e){this._internalRoot=e}Jd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mj();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Qn.length&&t!==0&&t<Qn[r].priority;r++);Qn.splice(r,0,e),r===0&&Rj(e)}};function n0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bx(){}function I$(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=Ef(o);a.call(u)}}var o=rA(t,n,e,0,null,!1,!1,"",Bx);return e._reactRootContainer=o,e[Tn]=o.current,zl(e.nodeType===8?e.parentNode:e),Aa(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Ef(l);s.call(u)}}var l=e0(e,0,!1,null,null,!1,!1,"",Bx);return e._reactRootContainer=l,e[Tn]=l.current,zl(e.nodeType===8?e.parentNode:e),Aa(function(){Yd(t,l,r,n)}),l}function eh(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=Ef(o);s.call(l)}}Yd(t,o,e,i)}else o=I$(r,t,e,i,n);return Ef(o)}Cj=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=cl(t.pendingLanes);r!==0&&(Sg(t,r|1),Qt(t,Xe()),!(ge&6)&&(qo=Xe()+500,$i()))}break;case 13:Aa(function(){var n=Cn(e,1);if(n!==null){var i=Dt();zr(n,e,1,i)}}),t0(e,1)}};Og=function(e){if(e.tag===13){var t=Cn(e,134217728);if(t!==null){var r=Dt();zr(t,e,134217728,r)}t0(e,134217728)}};$j=function(e){if(e.tag===13){var t=bi(e),r=Cn(e,t);if(r!==null){var n=Dt();zr(r,e,t,n)}t0(e,t)}};Mj=function(){return _e};Ij=function(e,t){var r=_e;try{return _e=e,t()}finally{_e=r}};Nm=function(e,t,r){switch(t){case"input":if(Om(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Hd(n);if(!i)throw Error(q(90));dj(n),Om(n,i)}}}break;case"textarea":pj(e,r);break;case"select":t=r.value,t!=null&&vo(e,!!r.multiple,t,!1)}};wj=Qg;Sj=Aa;var R$={usingClientEntryPoint:!1,Events:[Uu,io,Hd,bj,xj,Qg]},Xs={findFiberByHostInstance:Zi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},D$={bundleType:Xs.bundleType,version:Xs.version,rendererPackageName:Xs.rendererPackageName,rendererConfig:Xs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jj(e),e===null?null:e.stateNode},findFiberByHostInstance:Xs.findFiberByHostInstance||M$,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 wc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wc.isDisabled&&wc.supportsFiber)try{Bd=wc.inject(D$),Zr=wc}catch{}}lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R$;lr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n0(t))throw Error(q(200));return $$(e,t,null,r)};lr.createRoot=function(e,t){if(!n0(e))throw Error(q(299));var r=!1,n="",i=nA;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=e0(e,1,!1,null,null,r,!1,n,i),e[Tn]=t.current,zl(e.nodeType===8?e.parentNode:e),new r0(t)};lr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=jj(t),e=e===null?null:e.stateNode,e};lr.flushSync=function(e){return Aa(e)};lr.hydrate=function(e,t,r){if(!Zd(t))throw Error(q(200));return eh(null,e,t,!0,r)};lr.hydrateRoot=function(e,t,r){if(!n0(e))throw Error(q(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=nA;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=rA(t,null,e,1,r??null,i,!1,a,o),e[Tn]=t.current,zl(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Jd(t)};lr.render=function(e,t,r){if(!Zd(t))throw Error(q(200));return eh(null,e,t,!1,r)};lr.unmountComponentAtNode=function(e){if(!Zd(e))throw Error(q(40));return e._reactRootContainer?(Aa(function(){eh(null,null,e,!1,function(){e._reactRootContainer=null,e[Tn]=null})}),!0):!1};lr.unstable_batchedUpdates=Qg;lr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zd(r))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return eh(e,t,r,!1,n)};lr.version="18.3.1-next-f1338f8080-20240426";function iA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iA)}catch(e){console.error(e)}}iA(),ij.exports=lr;var L$=ij.exports,Fx=L$;ym.createRoot=Fx.createRoot,ym.hydrateRoot=Fx.hydrateRoot;/**
* @remix-run/router v1.23.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gl.apply(this,arguments)}var ci;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ci||(ci={}));const Ux="popstate";function z$(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return uy("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Nf(i)}return F$(t,r,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B$(){return Math.random().toString(36).substr(2,8)}function Wx(e,t){return{usr:e.state,key:e.key,idx:t}}function uy(e,t,r,n){return r===void 0&&(r=null),Gl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Os(t):t,{state:r,key:t&&t.key||n||B$()})}function Nf(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Os(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function F$(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=ci.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(Gl({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=ci.Pop;let v=f(),g=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:g})}function d(v,g){s=ci.Push;let b=uy(y.location,v,g);u=f()+1;let x=Wx(b,u),S=y.createHref(b);try{o.pushState(x,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}a&&l&&l({action:s,location:y.location,delta:1})}function p(v,g){s=ci.Replace;let b=uy(y.location,v,g);u=f();let x=Wx(b,u),S=y.createHref(b);o.replaceState(x,"",S),a&&l&&l({action:s,location:y.location,delta:0})}function m(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:Nf(v);return b=b.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let y={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Ux,c),l=v,()=>{i.removeEventListener(Ux,c),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let g=m(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:p,go(v){return o.go(v)}};return y}var Hx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hx||(Hx={}));function U$(e,t,r){return r===void 0&&(r="/"),W$(e,t,r)}function W$(e,t,r,n){let i=typeof t=="string"?Os(t):t,a=a0(i.pathname||"/",r);if(a==null)return null;let o=aA(e);H$(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=rM(a);s=Z$(o[l],u)}return s}function aA(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=wi([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(Qe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),aA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:Y$(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of oA(a.path))i(a,o,l)}),t}function oA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=oA(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function H$(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:J$(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const V$=/^:[\w-]+$/,q$=3,K$=2,G$=1,X$=10,Q$=-2,Vx=e=>e==="*";function Y$(e,t){let r=e.split("/"),n=r.length;return r.some(Vx)&&(n+=Q$),t&&(n+=K$),r.filter(i=>!Vx(i)).reduce((i,a)=>i+(V$.test(a)?q$:a===""?G$:X$),n)}function J$(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Z$(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,f=a==="/"?t:t.slice(a.length)||"/",c=eM({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),d=l.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:wi([a,c.pathname]),pathnameBase:sM(wi([a,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(a=wi([a,c.pathnameBase]))}return o}function eM(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=tM(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,f,c)=>{let{paramName:d,isOptional:p}=f;if(d==="*"){let y=s[c]||"";o=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[c];return p&&!m?u[d]=void 0:u[d]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function tM(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),i0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function rM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return i0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function a0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const nM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,iM=e=>nM.test(e);function aM(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Os(e):e,a;if(r)if(iM(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),i0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=qx(r.substring(1),"/"):a=qx(r,t)}else a=t;return{pathname:a,search:lM(n),hash:uM(i)}}function qx(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Cp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function oM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function o0(e,t){let r=oM(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function s0(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Os(e):(i=Gl({},e),Qe(!i.pathname||!i.pathname.includes("?"),Cp("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),Cp("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),Cp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=aM(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const wi=e=>e.join("/").replace(/\/\/+/g,"/"),sM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function cM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sA=["post","put","patch","delete"];new Set(sA);const fM=["get",...sA];new Set(fM);/**
* React Router v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xl.apply(this,arguments)}const l0=E.createContext(null),dM=E.createContext(null),Mi=E.createContext(null),th=E.createContext(null),sn=E.createContext({outlet:null,matches:[],isDataRoute:!1}),lA=E.createContext(null);function hM(e,t){let{relative:r}=t===void 0?{}:t;_s()||Qe(!1);let{basename:n,navigator:i}=E.useContext(Mi),{hash:a,pathname:o,search:s}=cA(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:wi([n,o])),i.createHref({pathname:l,search:s,hash:a})}function _s(){return E.useContext(th)!=null}function js(){return _s()||Qe(!1),E.useContext(th).location}function uA(e){E.useContext(Mi).static||E.useLayoutEffect(e)}function Hu(){let{isDataRoute:e}=E.useContext(sn);return e?EM():pM()}function pM(){_s()||Qe(!1);let e=E.useContext(l0),{basename:t,future:r,navigator:n}=E.useContext(Mi),{matches:i}=E.useContext(sn),{pathname:a}=js(),o=JSON.stringify(o0(i,r.v7_relativeSplatPath)),s=E.useRef(!1);return uA(()=>{s.current=!0}),E.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=s0(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:wi([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}const mM=E.createContext(null);function yM(e){let t=E.useContext(sn).outlet;return t&&E.createElement(mM.Provider,{value:e},t)}function vM(){let{matches:e}=E.useContext(sn),t=e[e.length-1];return t?t.params:{}}function cA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=E.useContext(Mi),{matches:i}=E.useContext(sn),{pathname:a}=js(),o=JSON.stringify(o0(i,n.v7_relativeSplatPath));return E.useMemo(()=>s0(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function gM(e,t){return bM(e,t)}function bM(e,t,r,n){_s()||Qe(!1);let{navigator:i}=E.useContext(Mi),{matches:a}=E.useContext(sn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=js(),f;if(t){var c;let v=typeof t=="string"?Os(t):t;l==="/"||(c=v.pathname)!=null&&c.startsWith(l)||Qe(!1),f=v}else f=u;let d=f.pathname||"/",p=d;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=U$(e,{pathname:p}),y=_M(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:wi([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:wi([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&y?E.createElement(th.Provider,{value:{location:Xl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ci.Pop}},y):y}function xM(){let e=kM(),t=cM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),r?E.createElement("pre",{style:i},r):null,null)}const wM=E.createElement(xM,null);class SM extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?E.createElement(sn.Provider,{value:this.props.routeContext},E.createElement(lA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OM(e){let{routeContext:t,match:r,children:n}=e,i=E.useContext(l0);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(sn.Provider,{value:t},n)}function _M(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Qe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f<o.length;f++){let c=o[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:d,errors:p}=r,m=c.route.loader&&d[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||m){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let p,m=!1,y=null,v=null;r&&(p=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||wM,l&&(u<0&&d===0?(NM("route-fallback"),m=!0,v=null):u===d&&(m=!0,v=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,d+1)),b=()=>{let x;return p?x=y:m?x=v:c.route.Component?x=E.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,E.createElement(OM,{match:c,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?E.createElement(SM,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var fA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fA||{}),dA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(dA||{});function jM(e){let t=E.useContext(l0);return t||Qe(!1),t}function PM(e){let t=E.useContext(dM);return t||Qe(!1),t}function AM(e){let t=E.useContext(sn);return t||Qe(!1),t}function hA(e){let t=AM(),r=t.matches[t.matches.length-1];return r.route.id||Qe(!1),r.route.id}function kM(){var e;let t=E.useContext(lA),r=PM(),n=hA();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function EM(){let{router:e}=jM(fA.UseNavigateStable),t=hA(dA.UseNavigateStable),r=E.useRef(!1);return uA(()=>{r.current=!0}),E.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Xl({fromRouteId:t},a)))},[e,t])}const Kx={};function NM(e,t,r){Kx[e]||(Kx[e]=!0)}function TM(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function CM(e){let{to:t,replace:r,state:n,relative:i}=e;_s()||Qe(!1);let{future:a,static:o}=E.useContext(Mi),{matches:s}=E.useContext(sn),{pathname:l}=js(),u=Hu(),f=s0(t,o0(s,a.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(f);return E.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:i}),[u,c,i,r,n]),null}function $M(e){return yM(e.context)}function Nr(e){Qe(!1)}function MM(e){let{basename:t="/",children:r=null,location:n,navigationType:i=ci.Pop,navigator:a,static:o=!1,future:s}=e;_s()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:a,static:o,future:Xl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Os(n));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:m="default"}=n,y=E.useMemo(()=>{let v=a0(f,l);return v==null?null:{location:{pathname:v,search:c,hash:d,state:p,key:m},navigationType:i}},[l,f,c,d,p,m,i]);return y==null?null:E.createElement(Mi.Provider,{value:u},E.createElement(th.Provider,{children:r,value:y}))}function IM(e){let{children:t,location:r}=e;return gM(cy(t),r)}new Promise(()=>{});function cy(e,t){t===void 0&&(t=[]);let r=[];return E.Children.forEach(e,(n,i)=>{if(!E.isValidElement(n))return;let a=[...t,i];if(n.type===E.Fragment){r.push.apply(r,cy(n.props.children,a));return}n.type!==Nr&&Qe(!1),!n.props.index||!n.props.children||Qe(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=cy(n.props.children,a)),r.push(o)}),r}/**
* React Router DOM v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fy.apply(this,arguments)}function RM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function DM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function LM(e,t){return e.button===0&&(!t||t==="_self")&&!DM(e)}const zM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],BM="6";try{window.__reactRouterVersion=BM}catch{}const FM="startTransition",Gx=AT[FM];function UM(e){let{basename:t,children:r,future:n,window:i}=e,a=E.useRef();a.current==null&&(a.current=z$({window:i,v5Compat:!0}));let o=a.current,[s,l]=E.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=E.useCallback(c=>{u&&Gx?Gx(()=>l(c)):l(c)},[l,u]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.useEffect(()=>TM(n),[n]),E.createElement(MM,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const WM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ka=E.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,d=RM(t,zM),{basename:p}=E.useContext(Mi),m,y=!1;if(typeof u=="string"&&HM.test(u)&&(m=u,WM))try{let x=new URL(window.location.href),S=u.startsWith("//")?new URL(x.protocol+u):new URL(u),w=a0(S.pathname,p);S.origin===x.origin&&w!=null?u=w+S.search+S.hash:y=!0}catch{}let v=hM(u,{relative:i}),g=VM(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function b(x){n&&n(x),x.defaultPrevented||g(x)}return E.createElement("a",fy({},d,{href:m||v,onClick:y||a?n:b,ref:r,target:l}))});var Xx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xx||(Xx={}));var Qx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qx||(Qx={}));function VM(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Hu(),u=js(),f=cA(e,{relative:o});return E.useCallback(c=>{if(LM(c,r)){c.preventDefault();let d=n!==void 0?n:Nf(u)===Nf(f);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}var Ps=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Zn,ug,R_,KM=(R_=class{constructor(){re(this,Zn,qM);re(this,ug,!1)}setTimeoutProvider(e){Q(this,Zn,e)}setTimeout(e,t){return k(this,Zn).setTimeout(e,t)}clearTimeout(e){k(this,Zn).clearTimeout(e)}setInterval(e,t){return k(this,Zn).setInterval(e,t)}clearInterval(e){k(this,Zn).clearInterval(e)}},Zn=new WeakMap,ug=new WeakMap,R_),ra=new KM;function GM(e){setTimeout(e,0)}var Ea=typeof window>"u"||"Deno"in globalThis;function $t(){}function XM(e,t){return typeof e=="function"?e(t):e}function dy(e){return typeof e=="number"&&e>=0&&e!==1/0}function pA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Si(e,t){return typeof e=="function"?e(t):e}function mr(e,t){return typeof e=="function"?e(t):e}function Yx(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==u0(o,t.options))return!1}else if(!Ql(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Jx(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Na(t.options.mutationKey)!==Na(a))return!1}else if(!Ql(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function u0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Na)(e)}function Na(e){return JSON.stringify(e,(t,r)=>hy(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ql(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ql(e[r],t[r])):!1}var QM=Object.prototype.hasOwnProperty;function mA(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Zx(e)&&Zx(t);if(!n&&!(hy(e)&&hy(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=n?f:o[f],d=e[c],p=t[c];if(d===p){l[c]=d,(n?f<a:QM.call(e,c))&&u++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){l[c]=p;continue}const m=mA(d,p,r+1);l[c]=m,m===d&&u++}return a===s&&u===a?e:l}function Tf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Zx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hy(e){if(!e1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!e1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function e1(e){return Object.prototype.toString.call(e)==="[object Object]"}function YM(e){return new Promise(t=>{ra.setTimeout(t,e)})}function py(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?mA(e,t):t}function JM(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function ZM(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var c0=Symbol();function yA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===c0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function f0(e,t){return typeof e=="function"?e(...t):!!e}function eI(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var ua,ei,ko,D_,tI=(D_=class extends Ps{constructor(){super();re(this,ua);re(this,ei);re(this,ko);Q(this,ko,t=>{if(!Ea&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,ei)||this.setEventListener(k(this,ko))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ei))==null||t.call(this),Q(this,ei,void 0))}setEventListener(t){var r;Q(this,ko,t),(r=k(this,ei))==null||r.call(this),Q(this,ei,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){k(this,ua)!==t&&(Q(this,ua,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof k(this,ua)=="boolean"?k(this,ua):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ua=new WeakMap,ei=new WeakMap,ko=new WeakMap,D_),d0=new tI;function my(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var rI=GM;function nI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=rI;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var st=nI(),Eo,ti,No,L_,iI=(L_=class extends Ps{constructor(){super();re(this,Eo,!0);re(this,ti);re(this,No);Q(this,No,t=>{if(!Ea&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){k(this,ti)||this.setEventListener(k(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ti))==null||t.call(this),Q(this,ti,void 0))}setEventListener(t){var r;Q(this,No,t),(r=k(this,ti))==null||r.call(this),Q(this,ti,t(this.setOnline.bind(this)))}setOnline(t){k(this,Eo)!==t&&(Q(this,Eo,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return k(this,Eo)}},Eo=new WeakMap,ti=new WeakMap,No=new WeakMap,L_),Cf=new iI;function aI(e){return Math.min(1e3*2**e,3e4)}function vA(e){return(e??"online")==="online"?Cf.isOnline():!0}var yy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gA(e){let t=!1,r=0,n;const i=my(),a=()=>i.status!=="pending",o=y=>{var v;if(!a()){const g=new yy(y);d(g),(v=e.onCancel)==null||v.call(e,g)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>d0.isFocused()&&(e.networkMode==="always"||Cf.isOnline())&&e.canRun(),f=()=>vA(e.networkMode)&&e.canRun(),c=y=>{a()||(n==null||n(),i.resolve(y))},d=y=>{a()||(n==null||n(),i.reject(y))},p=()=>new Promise(y=>{var v;n=g=>{(a()||u())&&y(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;n=void 0,a()||(y=e.onContinue)==null||y.call(e)}),m=()=>{if(a())return;let y;const v=r===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var O;if(a())return;const b=e.retry??(Ea?0:3),x=e.retryDelay??aI,S=typeof x=="function"?x(r,g):x,w=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,g);if(t||!w){d(g);return}r++,(O=e.onFail)==null||O.call(e,r,g),YM(S).then(()=>u()?void 0:p()).then(()=>{t?d(g):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?m():p().then(m),i)}}var ca,z_,bA=(z_=class{constructor(){re(this,ca)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dy(this.gcTime)&&Q(this,ca,ra.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ea?1/0:5*60*1e3))}clearGcTimeout(){k(this,ca)&&(ra.clearTimeout(k(this,ca)),Q(this,ca,void 0))}},ca=new WeakMap,z_),fa,To,pr,da,dt,Mu,ha,Cr,dn,B_,oI=(B_=class extends bA{constructor(t){super();re(this,Cr);re(this,fa);re(this,To);re(this,pr);re(this,da);re(this,dt);re(this,Mu);re(this,ha);Q(this,ha,!1),Q(this,Mu,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,da,t.client),Q(this,pr,k(this,da).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,fa,r1(this.options)),this.state=t.state??k(this,fa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,dt))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,Mu),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=r1(this.options);r.data!==void 0&&(this.setState(t1(r.data,r.dataUpdatedAt)),Q(this,fa,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,pr).remove(this)}setData(t,r){const n=py(this.state.data,t,this.options);return de(this,Cr,dn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){de(this,Cr,dn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=k(this,dt))==null?void 0:n.promise;return(i=k(this,dt))==null||i.cancel(t),r?r.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,fa))}isActive(){return this.observers.some(t=>mr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===c0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Si(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!pA(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,pr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(k(this,dt)&&(k(this,ha)?k(this,dt).cancel({revert:!0}):k(this,dt).cancelRetry()),this.scheduleGc()),k(this,pr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Cr,dn).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,f,c,d,p,m,y,v,g,b,x;if(this.state.fetchStatus!=="idle"&&((l=k(this,dt))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,dt))return k(this,dt).continueRetry(),k(this,dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(w=>w.options.queryFn);S&&this.setOptions(S.options)}const n=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Q(this,ha,!0),n.signal)})},a=()=>{const S=yA(this.options,r),O=(()=>{const _={client:k(this,da),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return Q(this,ha,!1),this.options.persister?this.options.persister(S,O,this):S(O)},s=(()=>{const S={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,da),state:this.state,fetchFn:a};return i(S),S})();(u=this.options.behavior)==null||u.onFetch(s,this),Q(this,To,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&de(this,Cr,dn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),Q(this,dt,gA({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof yy&&S.revert&&this.setState({...k(this,To),fetchStatus:"idle"}),n.abort()},onFail:(S,w)=>{de(this,Cr,dn).call(this,{type:"failed",failureCount:S,error:w})},onPause:()=>{de(this,Cr,dn).call(this,{type:"pause"})},onContinue:()=>{de(this,Cr,dn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const S=await k(this,dt).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(d=k(this,pr).config).onSuccess)==null||p.call(d,S,this),(y=(m=k(this,pr).config).onSettled)==null||y.call(m,S,this.state.error,this),S}catch(S){if(S instanceof yy){if(S.silent)return k(this,dt).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw de(this,Cr,dn).call(this,{type:"error",error:S}),(g=(v=k(this,pr).config).onError)==null||g.call(v,S,this),(x=(b=k(this,pr).config).onSettled)==null||x.call(b,this.state.data,S,this),S}finally{this.scheduleGc()}}},fa=new WeakMap,To=new WeakMap,pr=new WeakMap,da=new WeakMap,dt=new WeakMap,Mu=new WeakMap,ha=new WeakMap,Cr=new WeakSet,dn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...xA(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...t1(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Q(this,To,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),k(this,pr).notify({query:this,type:"updated",action:t})})},B_);function xA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function t1(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function r1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ft,me,Iu,Tt,pa,Co,yn,ri,Ru,$o,Mo,ma,ya,ni,Io,Oe,dl,vy,gy,by,xy,wy,Sy,Oy,wA,F_,sI=(F_=class extends Ps{constructor(t,r){super();re(this,Oe);re(this,Ft);re(this,me);re(this,Iu);re(this,Tt);re(this,pa);re(this,Co);re(this,yn);re(this,ri);re(this,Ru);re(this,$o);re(this,Mo);re(this,ma);re(this,ya);re(this,ni);re(this,Io,new Set);this.options=r,Q(this,Ft,t),Q(this,ri,null),Q(this,yn,my()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,me).addObserver(this),n1(k(this,me),this.options)?de(this,Oe,dl).call(this):this.updateResult(),de(this,Oe,xy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _y(k(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _y(k(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,Oe,wy).call(this),de(this,Oe,Sy).call(this),k(this,me).removeObserver(this)}setOptions(t){const r=this.options,n=k(this,me);if(this.options=k(this,Ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mr(this.options.enabled,k(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,Oe,Oy).call(this),k(this,me).setOptions(this.options),r._defaulted&&!Tf(this.options,r)&&k(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,me),observer:this});const i=this.hasListeners();i&&i1(k(this,me),n,this.options,r)&&de(this,Oe,dl).call(this),this.updateResult(),i&&(k(this,me)!==n||mr(this.options.enabled,k(this,me))!==mr(r.enabled,k(this,me))||Si(this.options.staleTime,k(this,me))!==Si(r.staleTime,k(this,me)))&&de(this,Oe,vy).call(this);const a=de(this,Oe,gy).call(this);i&&(k(this,me)!==n||mr(this.options.enabled,k(this,me))!==mr(r.enabled,k(this,me))||a!==k(this,ni))&&de(this,Oe,by).call(this,a)}getOptimisticResult(t){const r=k(this,Ft).getQueryCache().build(k(this,Ft),t),n=this.createResult(r,t);return uI(this,n)&&(Q(this,Tt,n),Q(this,Co,this.options),Q(this,pa,k(this,me).state)),n}getCurrentResult(){return k(this,Tt)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,yn).status==="pending"&&k(this,yn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){k(this,Io).add(t)}getCurrentQuery(){return k(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=k(this,Ft).defaultQueryOptions(t),n=k(this,Ft).getQueryCache().build(k(this,Ft),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return de(this,Oe,dl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Tt)))}createResult(t,r){var P;const n=k(this,me),i=this.options,a=k(this,Tt),o=k(this,pa),s=k(this,Co),u=t!==n?t.state:k(this,Iu),{state:f}=t;let c={...f},d=!1,p;if(r._optimisticResults){const N=this.hasListeners(),$=!N&&n1(t,r),C=N&&i1(t,n,r,i);($||C)&&(c={...c,...xA(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:v}=c;p=c.data;let g=!1;if(r.placeholderData!==void 0&&p===void 0&&v==="pending"){let N;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(N=a.data,g=!0):N=typeof r.placeholderData=="function"?r.placeholderData((P=k(this,Mo))==null?void 0:P.state.data,k(this,Mo)):r.placeholderData,N!==void 0&&(v="success",p=py(a==null?void 0:a.data,N,r),d=!0)}if(r.select&&p!==void 0&&!g)if(a&&p===(o==null?void 0:o.data)&&r.select===k(this,Ru))p=k(this,$o);else try{Q(this,Ru,r.select),p=r.select(p),p=py(a==null?void 0:a.data,p,r),Q(this,$o,p),Q(this,ri,null)}catch(N){Q(this,ri,N)}k(this,ri)&&(m=k(this,ri),p=k(this,$o),y=Date.now(),v="error");const b=c.fetchStatus==="fetching",x=v==="pending",S=v==="error",w=x&&b,O=p!==void 0,j={status:v,fetchStatus:c.fetchStatus,isPending:x,isSuccess:v==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:S&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:S&&O,isStale:h0(t,r),refetch:this.refetch,promise:k(this,yn),isEnabled:mr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=j.data!==void 0,$=j.status==="error"&&!N,C=I=>{$?I.reject(j.error):N&&I.resolve(j.data)},L=()=>{const I=Q(this,yn,j.promise=my());C(I)},R=k(this,yn);switch(R.status){case"pending":t.queryHash===n.queryHash&&C(R);break;case"fulfilled":($||j.data!==R.value)&&L();break;case"rejected":(!$||j.error!==R.reason)&&L();break}}return j}updateResult(){const t=k(this,Tt),r=this.createResult(k(this,me),this.options);if(Q(this,pa,k(this,me).state),Q(this,Co,this.options),k(this,pa).data!==void 0&&Q(this,Mo,k(this,me)),Tf(r,t))return;Q(this,Tt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!k(this,Io).size)return!0;const o=new Set(a??k(this,Io));return this.options.throwOnError&&o.add("error"),Object.keys(k(this,Tt)).some(s=>{const l=s;return k(this,Tt)[l]!==t[l]&&o.has(l)})};de(this,Oe,wA).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,Oe,xy).call(this)}},Ft=new WeakMap,me=new WeakMap,Iu=new WeakMap,Tt=new WeakMap,pa=new WeakMap,Co=new WeakMap,yn=new WeakMap,ri=new WeakMap,Ru=new WeakMap,$o=new WeakMap,Mo=new WeakMap,ma=new WeakMap,ya=new WeakMap,ni=new WeakMap,Io=new WeakMap,Oe=new WeakSet,dl=function(t){de(this,Oe,Oy).call(this);let r=k(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch($t)),r},vy=function(){de(this,Oe,wy).call(this);const t=Si(this.options.staleTime,k(this,me));if(Ea||k(this,Tt).isStale||!dy(t))return;const n=pA(k(this,Tt).dataUpdatedAt,t)+1;Q(this,ma,ra.setTimeout(()=>{k(this,Tt).isStale||this.updateResult()},n))},gy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,me)):this.options.refetchInterval)??!1},by=function(t){de(this,Oe,Sy).call(this),Q(this,ni,t),!(Ea||mr(this.options.enabled,k(this,me))===!1||!dy(k(this,ni))||k(this,ni)===0)&&Q(this,ya,ra.setInterval(()=>{(this.options.refetchIntervalInBackground||d0.isFocused())&&de(this,Oe,dl).call(this)},k(this,ni)))},xy=function(){de(this,Oe,vy).call(this),de(this,Oe,by).call(this,de(this,Oe,gy).call(this))},wy=function(){k(this,ma)&&(ra.clearTimeout(k(this,ma)),Q(this,ma,void 0))},Sy=function(){k(this,ya)&&(ra.clearInterval(k(this,ya)),Q(this,ya,void 0))},Oy=function(){const t=k(this,Ft).getQueryCache().build(k(this,Ft),this.options);if(t===k(this,me))return;const r=k(this,me);Q(this,me,t),Q(this,Iu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},wA=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(k(this,Tt))}),k(this,Ft).getQueryCache().notify({query:k(this,me),type:"observerResultsUpdated"})})},F_);function lI(e,t){return mr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function n1(e,t){return lI(e,t)||e.state.data!==void 0&&_y(e,t,t.refetchOnMount)}function _y(e,t,r){if(mr(t.enabled,e)!==!1&&Si(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&h0(e,t)}return!1}function i1(e,t,r,n){return(e!==t||mr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&h0(e,r)}function h0(e,t){return mr(t.enabled,e)!==!1&&e.isStaleByTime(Si(t.staleTime,e))}function uI(e,t){return!Tf(e.getCurrentResult(),t)}function a1(e){return{onFetch:(t,r)=>{var f,c,d,p,m;const n=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const v=x=>{eI(x,()=>t.signal,()=>y=!0)},g=yA(t.options,t.fetchOptions),b=async(x,S,w)=>{if(y)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const _=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};return v($),$})(),j=await g(_),{maxPages:P}=t.options,N=w?ZM:JM;return{pages:N(x.pages,j,P),pageParams:N(x.pageParams,S,P)}};if(i&&a.length){const x=i==="backward",S=x?cI:o1,w={pages:a,pageParams:o},O=S(n,w);s=await b(w,O,x)}else{const x=e??a.length;do{const S=l===0?o[0]??n.initialPageParam:o1(n,s);if(l>0&&S==null)break;s=await b(s,S),l++}while(l<x)}return s};t.options.persister?t.fetchFn=()=>{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function o1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function cI(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Du,Kr,jt,va,Gr,Vn,U_,fI=(U_=class extends bA{constructor(t){super();re(this,Gr);re(this,Du);re(this,Kr);re(this,jt);re(this,va);Q(this,Du,t.client),this.mutationId=t.mutationId,Q(this,jt,t.mutationCache),Q(this,Kr,[]),this.state=t.state||SA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Kr).includes(t)||(k(this,Kr).push(t),this.clearGcTimeout(),k(this,jt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Kr,k(this,Kr).filter(r=>r!==t)),this.scheduleGc(),k(this,jt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Kr).length||(this.state.status==="pending"?this.scheduleGc():k(this,jt).remove(this))}continue(){var t;return((t=k(this,va))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,u,f,c,d,p,m,y,v,g,b,x,S,w,O,_;const r=()=>{de(this,Gr,Vn).call(this,{type:"continue"})},n={client:k(this,Du),meta:this.options.meta,mutationKey:this.options.mutationKey};Q(this,va,gA({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(j,P)=>{de(this,Gr,Vn).call(this,{type:"failed",failureCount:j,error:P})},onPause:()=>{de(this,Gr,Vn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,jt).canRun(this)}));const i=this.state.status==="pending",a=!k(this,va).canStart();try{if(i)r();else{de(this,Gr,Vn).call(this,{type:"pending",variables:t,isPaused:a}),k(this,jt).config.onMutate&&await k(this,jt).config.onMutate(t,this,n);const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,n));P!==this.state.context&&de(this,Gr,Vn).call(this,{type:"pending",context:P,variables:t,isPaused:a})}const j=await k(this,va).start();return await((u=(l=k(this,jt).config).onSuccess)==null?void 0:u.call(l,j,t,this.state.context,this,n)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,j,t,this.state.context,n)),await((p=(d=k(this,jt).config).onSettled)==null?void 0:p.call(d,j,null,this.state.variables,this.state.context,this,n)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,j,null,t,this.state.context,n)),de(this,Gr,Vn).call(this,{type:"success",data:j}),j}catch(j){try{await((g=(v=k(this,jt).config).onError)==null?void 0:g.call(v,j,t,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((x=(b=this.options).onError)==null?void 0:x.call(b,j,t,this.state.context,n))}catch(P){Promise.reject(P)}try{await((w=(S=k(this,jt).config).onSettled)==null?void 0:w.call(S,void 0,j,this.state.variables,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((_=(O=this.options).onSettled)==null?void 0:_.call(O,void 0,j,t,this.state.context,n))}catch(P){Promise.reject(P)}throw de(this,Gr,Vn).call(this,{type:"error",error:j}),j}finally{k(this,jt).runNext(this)}}},Du=new WeakMap,Kr=new WeakMap,jt=new WeakMap,va=new WeakMap,Gr=new WeakSet,Vn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{k(this,Kr).forEach(n=>{n.onMutationUpdate(t)}),k(this,jt).notify({mutation:this,type:"updated",action:t})})},U_);function SA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,$r,Lu,W_,dI=(W_=class extends Ps{constructor(t={}){super();re(this,vn);re(this,$r);re(this,Lu);this.config=t,Q(this,vn,new Set),Q(this,$r,new Map),Q(this,Lu,0)}build(t,r,n){const i=new fI({client:t,mutationCache:this,mutationId:++nc(this,Lu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){k(this,vn).add(t);const r=Sc(t);if(typeof r=="string"){const n=k(this,$r).get(r);n?n.push(t):k(this,$r).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,vn).delete(t)){const r=Sc(t);if(typeof r=="string"){const n=k(this,$r).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&k(this,$r).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Sc(t);if(typeof r=="string"){const n=k(this,$r).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Sc(t);if(typeof r=="string"){const i=(n=k(this,$r).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{k(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,vn).clear(),k(this,$r).clear()})}getAll(){return Array.from(k(this,vn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Jx(r,n))}findAll(t={}){return this.getAll().filter(r=>Jx(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(t.map(r=>r.continue().catch($t))))}},vn=new WeakMap,$r=new WeakMap,Lu=new WeakMap,W_);function Sc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var gn,ii,Ut,bn,En,Zc,jy,H_,hI=(H_=class extends Ps{constructor(r,n){super();re(this,En);re(this,gn);re(this,ii);re(this,Ut);re(this,bn);Q(this,gn,r),this.setOptions(n),this.bindMethods(),de(this,En,Zc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=k(this,gn).defaultMutationOptions(r),Tf(this.options,n)||k(this,gn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Na(n.mutationKey)!==Na(this.options.mutationKey)?this.reset():((i=k(this,Ut))==null?void 0:i.state.status)==="pending"&&k(this,Ut).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Ut))==null||r.removeObserver(this)}onMutationUpdate(r){de(this,En,Zc).call(this),de(this,En,jy).call(this,r)}getCurrentResult(){return k(this,ii)}reset(){var r;(r=k(this,Ut))==null||r.removeObserver(this),Q(this,Ut,void 0),de(this,En,Zc).call(this),de(this,En,jy).call(this)}mutate(r,n){var i;return Q(this,bn,n),(i=k(this,Ut))==null||i.removeObserver(this),Q(this,Ut,k(this,gn).getMutationCache().build(k(this,gn),this.options)),k(this,Ut).addObserver(this),k(this,Ut).execute(r)}},gn=new WeakMap,ii=new WeakMap,Ut=new WeakMap,bn=new WeakMap,En=new WeakSet,Zc=function(){var n;const r=((n=k(this,Ut))==null?void 0:n.state)??SA();Q(this,ii,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},jy=function(r){st.batch(()=>{var n,i,a,o,s,l,u,f;if(k(this,bn)&&this.hasListeners()){const c=k(this,ii).variables,d=k(this,ii).context,p={client:k(this,gn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=k(this,bn)).onSuccess)==null||i.call(n,r.data,c,d,p)}catch(m){Promise.reject(m)}try{(o=(a=k(this,bn)).onSettled)==null||o.call(a,r.data,null,c,d,p)}catch(m){Promise.reject(m)}}else if((r==null?void 0:r.type)==="error"){try{(l=(s=k(this,bn)).onError)==null||l.call(s,r.error,c,d,p)}catch(m){Promise.reject(m)}try{(f=(u=k(this,bn)).onSettled)==null||f.call(u,void 0,r.error,c,d,p)}catch(m){Promise.reject(m)}}}this.listeners.forEach(c=>{c(k(this,ii))})})},H_),Xr,V_,pI=(V_=class extends Ps{constructor(t={}){super();re(this,Xr);this.config=t,Q(this,Xr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??u0(i,r);let o=this.get(a);return o||(o=new oI({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,Xr).has(t.queryHash)||(k(this,Xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=k(this,Xr).get(t.queryHash);r&&(t.destroy(),r===t&&k(this,Xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Xr).get(t)}getAll(){return[...k(this,Xr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Yx(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Yx(t,n)):r}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xr=new WeakMap,V_),qe,ai,oi,Ro,Do,si,Lo,zo,q_,mI=(q_=class{constructor(e={}){re(this,qe);re(this,ai);re(this,oi);re(this,Ro);re(this,Do);re(this,si);re(this,Lo);re(this,zo);Q(this,qe,e.queryCache||new pI),Q(this,ai,e.mutationCache||new dI),Q(this,oi,e.defaultOptions||{}),Q(this,Ro,new Map),Q(this,Do,new Map),Q(this,si,0)}mount(){nc(this,si)._++,k(this,si)===1&&(Q(this,Lo,d0.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,qe).onFocus())})),Q(this,zo,Cf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,qe).onOnline())})))}unmount(){var e,t;nc(this,si)._--,k(this,si)===0&&((e=k(this,Lo))==null||e.call(this),Q(this,Lo,void 0),(t=k(this,zo))==null||t.call(this),Q(this,zo,void 0))}isFetching(e){return k(this,qe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,ai).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,qe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=k(this,qe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Si(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return k(this,qe).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=k(this,qe).get(n.queryHash),a=i==null?void 0:i.state.data,o=XM(t,a);if(o!==void 0)return k(this,qe).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return st.batch(()=>k(this,qe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,qe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=k(this,qe);st.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=k(this,qe);return st.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=st.batch(()=>k(this,qe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then($t).catch($t)}invalidateQueries(e,t={}){return st.batch(()=>(k(this,qe).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=st.batch(()=>k(this,qe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch($t)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=k(this,qe).build(this,t);return r.isStaleByTime(Si(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}fetchInfiniteQuery(e){return e.behavior=a1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=a1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cf.isOnline()?k(this,ai).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,qe)}getMutationCache(){return k(this,ai)}getDefaultOptions(){return k(this,oi)}setDefaultOptions(e){Q(this,oi,e)}setQueryDefaults(e,t){k(this,Ro).set(Na(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Ro).values()],r={};return t.forEach(n=>{Ql(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){k(this,Do).set(Na(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Do).values()],r={};return t.forEach(n=>{Ql(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,oi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=u0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===c0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,oi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,qe).clear(),k(this,ai).clear()}},qe=new WeakMap,ai=new WeakMap,oi=new WeakMap,Ro=new WeakMap,Do=new WeakMap,si=new WeakMap,Lo=new WeakMap,zo=new WeakMap,q_),OA=E.createContext(void 0),rh=e=>{const t=E.useContext(OA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yI=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(OA.Provider,{value:e,children:t})),_A=E.createContext(!1),vI=()=>E.useContext(_A);_A.Provider;function gI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bI=E.createContext(gI()),xI=()=>E.useContext(bI),wI=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?f0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},SI=e=>{E.useEffect(()=>{e.clearReset()},[e])},OI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||f0(r,[e.error,n])),_I=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jI=(e,t)=>e.isLoading&&e.isFetching&&!t,PI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,s1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function AI(e,t,r){var d,p,m,y;const n=vI(),i=xI(),a=rh(),o=a.defaultQueryOptions(e);(p=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",_I(o),wI(o,i,s),SI(i);const l=!a.getQueryCache().get(o.queryHash),[u]=E.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),c=!n&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(v=>{const g=c?u.subscribe(st.batchCalls(v)):$t;return u.updateResult(),g},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),E.useEffect(()=>{u.setOptions(o)},[o,u]),PI(o,f))throw s1(o,u,i);if(OI({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,f),o.experimental_prefetchInRender&&!Ea&&jI(f,n)){const v=l?s1(o,u,i):s==null?void 0:s.promise;v==null||v.catch($t).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function Pi(e,t){return AI(e,sI)}function $f(e,t){const r=rh(),[n]=E.useState(()=>new hI(r,e));E.useEffect(()=>{n.setOptions(e)},[n,e]);const i=E.useSyncExternalStore(E.useCallback(o=>n.subscribe(st.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=E.useCallback((o,s)=>{n.mutate(o,s).catch($t)},[n]);if(i.error&&f0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function jA(e,t){return function(){return e.apply(t,arguments)}}const{toString:kI}=Object.prototype,{getPrototypeOf:p0}=Object,{iterator:nh,toStringTag:PA}=Symbol,ih=(e=>t=>{const r=kI.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ur=e=>(e=e.toLowerCase(),t=>ih(t)===e),ah=e=>t=>typeof t===e,{isArray:As}=Array,Ko=ah("undefined");function Vu(e){return e!==null&&!Ko(e)&&e.constructor!==null&&!Ko(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const AA=Ur("ArrayBuffer");function EI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&AA(e.buffer),t}const NI=ah("string"),Yt=ah("function"),kA=ah("number"),qu=e=>e!==null&&typeof e=="object",TI=e=>e===!0||e===!1,ef=e=>{if(ih(e)!=="object")return!1;const t=p0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(PA in e)&&!(nh in e)},CI=e=>{if(!qu(e)||Vu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$I=Ur("Date"),MI=Ur("File"),II=Ur("Blob"),RI=Ur("FileList"),DI=e=>qu(e)&&Yt(e.pipe),LI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=ih(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},zI=Ur("URLSearchParams"),[BI,FI,UI,WI]=["ReadableStream","Request","Response","Headers"].map(Ur),HI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ku(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),As(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Vu(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function EA(e,t){if(Vu(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,NA=e=>!Ko(e)&&e!==na;function Py(){const{caseless:e,skipUndefined:t}=NA(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=e&&EA(r,a)||a;ef(r[o])&&ef(i)?r[o]=Py(r[o],i):ef(i)?r[o]=Py({},i):As(i)?r[o]=i.slice():(!t||!Ko(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Ku(arguments[i],n);return r}const VI=(e,t,r,{allOwnKeys:n}={})=>(Ku(t,(i,a)=>{r&&Yt(i)?Object.defineProperty(e,a,{value:jA(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),qI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KI=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},GI=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&p0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},XI=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},QI=e=>{if(!e)return null;if(As(e))return e;let t=e.length;if(!kA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},YI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&p0(Uint8Array)),JI=(e,t)=>{const n=(e&&e[nh]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},ZI=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},eR=Ur("HTMLFormElement"),tR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),l1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),rR=Ur("RegExp"),TA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ku(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},nR=e=>{TA(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Yt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},iR=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return As(e)?n(e):n(String(e).split(t)),r},aR=()=>{},oR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function sR(e){return!!(e&&Yt(e.append)&&e[PA]==="FormData"&&e[nh])}const lR=e=>{const t=new Array(10),r=(n,i)=>{if(qu(n)){if(t.indexOf(n)>=0)return;if(Vu(n))return n;if(!("toJSON"in n)){t[i]=n;const a=As(n)?[]:{};return Ku(n,(o,s)=>{const l=r(o,i+1);!Ko(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},uR=Ur("AsyncFunction"),cR=e=>e&&(qu(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),CA=((e,t)=>e?setImmediate:t?((r,n)=>(na.addEventListener("message",({source:i,data:a})=>{i===na&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),na.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(na.postMessage)),fR=typeof queueMicrotask<"u"?queueMicrotask.bind(na):typeof process<"u"&&process.nextTick||CA,dR=e=>e!=null&&Yt(e[nh]),M={isArray:As,isArrayBuffer:AA,isBuffer:Vu,isFormData:LI,isArrayBufferView:EI,isString:NI,isNumber:kA,isBoolean:TI,isObject:qu,isPlainObject:ef,isEmptyObject:CI,isReadableStream:BI,isRequest:FI,isResponse:UI,isHeaders:WI,isUndefined:Ko,isDate:$I,isFile:MI,isBlob:II,isRegExp:rR,isFunction:Yt,isStream:DI,isURLSearchParams:zI,isTypedArray:YI,isFileList:RI,forEach:Ku,merge:Py,extend:VI,trim:HI,stripBOM:qI,inherits:KI,toFlatObject:GI,kindOf:ih,kindOfTest:Ur,endsWith:XI,toArray:QI,forEachEntry:JI,matchAll:ZI,isHTMLForm:eR,hasOwnProperty:l1,hasOwnProp:l1,reduceDescriptors:TA,freezeMethods:nR,toObjectSet:iR,toCamelCase:tR,noop:aR,toFiniteNumber:oR,findKey:EA,global:na,isContextDefined:NA,isSpecCompliantForm:sR,toJSONObject:lR,isAsyncFn:uR,isThenable:cR,setImmediate:CA,asap:fR,isIterable:dR};let se=class $A extends Error{static from(t,r,n,i,a,o){const s=new $A(t.message,r||t.code,n,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(t,r,n,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const hR=null;function Ay(e){return M.isPlainObject(e)||M.isArray(e)}function MA(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function u1(e,t,r){return e?e.concat(t).map(function(i,a){return i=MA(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function pR(e){return M.isArray(e)&&!e.some(Ay)}const mR=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function oh(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!M.isUndefined(v[y])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,v){let g=m;if(m&&!v&&typeof m=="object"){if(M.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&pR(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=MA(y),g.forEach(function(x,S){!(M.isUndefined(x)||x===null)&&t.append(o===!0?u1([y],S,a):o===null?y:y+"[]",u(x))}),!1}return Ay(m)?!0:(t.append(u1(v,y,a),u(m)),!1)}const c=[],d=Object.assign(mR,{defaultVisitor:f,convertValue:u,isVisitable:Ay});function p(m,y){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(m),M.forEach(m,function(g,b){(!(M.isUndefined(g)||g===null)&&i.call(t,g,M.isString(b)?b.trim():b,y,d))===!0&&p(g,y?y.concat(b):[b])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function c1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function m0(e,t){this._pairs=[],e&&oh(e,this,t)}const IA=m0.prototype;IA.append=function(t,r){this._pairs.push([t,r])};IA.toString=function(t){const r=t?function(n){return t.call(this,n,c1)}:c1;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function yR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function RA(e,t,r){if(!t)return e;const n=r&&r.encode||yR,i=M.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(t,i):o=M.isURLSearchParams(t)?t.toString():new m0(t,i).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class f1{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const y0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},vR=typeof URLSearchParams<"u"?URLSearchParams:m0,gR=typeof FormData<"u"?FormData:null,bR=typeof Blob<"u"?Blob:null,xR={isBrowser:!0,classes:{URLSearchParams:vR,FormData:gR,Blob:bR},protocols:["http","https","file","blob","url","data"]},v0=typeof window<"u"&&typeof document<"u",ky=typeof navigator=="object"&&navigator||void 0,wR=v0&&(!ky||["ReactNative","NativeScript","NS"].indexOf(ky.product)<0),SR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",OR=v0&&window.location.href||"http://localhost",_R=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:v0,hasStandardBrowserEnv:wR,hasStandardBrowserWebWorkerEnv:SR,navigator:ky,origin:OR},Symbol.toStringTag,{value:"Module"})),Et={..._R,...xR};function jR(e,t){return oh(e,new Et.classes.URLSearchParams,{visitor:function(r,n,i,a){return Et.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function PR(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function AR(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function DA(e){function t(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&M.isArray(i[o])&&(i[o]=AR(i[o])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,i)=>{t(PR(n),i,r,0)}),r}return null}function kR(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Gu={transitional:y0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(DA(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return jR(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),kR(t)):t}],transformResponse:[function(t){const r=this.transitional||Gu.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Gu.headers[e]={}});const ER=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NR=e=>{const t={};let r,n,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&ER[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},d1=Symbol("internals");function Qs(e){return e&&String(e).trim().toLowerCase()}function tf(e){return e===!1||e==null?e:M.isArray(e)?e.map(tf):String(e)}function TR(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const CR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $p(e,t,r,n,i){if(M.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function $R(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function MR(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=Qs(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=tf(s))}const o=(s,l)=>M.forEach(s,(u,f)=>a(u,f,l));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(M.isString(t)&&(t=t.trim())&&!CR(t))o(NR(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},l,u;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?M.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Qs(t),t){const n=M.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return TR(i);if(M.isFunction(r))return r.call(this,i,n);if(M.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Qs(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||$p(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=Qs(o),o){const s=M.findKey(n,o);s&&(!r||$p(n,n[s],s,r))&&(delete n[s],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||$p(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return M.forEach(this,(i,a)=>{const o=M.findKey(n,a);if(o){r[o]=tf(i),delete r[a];return}const s=t?$R(a):String(a).trim();s!==a&&delete r[a],r[s]=tf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[d1]=this[d1]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Qs(o);n[s]||(MR(i,o),n[s]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Jt);function Mp(e,t){const r=this||Gu,n=t||r,i=Jt.from(n.headers);let a=n.data;return M.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function LA(e){return!!(e&&e.__CANCEL__)}let Xu=class extends se{constructor(t,r,n){super(t??"canceled",se.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function zA(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function IR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function RR(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,d=0;for(;c!==i;)d+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const p=f&&u-f;return p?Math.round(d*1e3/p):void 0}}function DR(e,t){let r=0,n=1e3/t,i,a;const o=(u,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const Mf=(e,t,r=3)=>{let n=0;const i=RR(50,250);return DR(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},h1=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},p1=e=>(...t)=>M.asap(()=>e(...t)),LR=Et.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Et.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Et.origin),Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent)):()=>!0,zR=Et.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function BR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function FR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function BA(e,t,r){let n=!BR(t);return e&&(n||r==!1)?FR(e,t):t}const m1=e=>e instanceof Jt?{...e}:e;function Ta(e,t){t=t||{};const r={};function n(u,f,c,d){return M.isPlainObject(u)&&M.isPlainObject(f)?M.merge.call({caseless:d},u,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(u,f,c,d){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u,c,d)}else return n(u,f,c,d)}function a(u,f){if(!M.isUndefined(f))return n(void 0,f)}function o(u,f){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(m1(u),m1(f),c,!0)};return M.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=M.hasOwnProp(l,f)?l[f]:i,d=c(e[f],t[f],f);M.isUndefined(d)&&c!==s||(r[f]=d)}),r}const FA=e=>{const t=Ta({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Jt.from(o),t.url=RA(BA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Et.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&LR(t.url))){const l=i&&a&&zR.read(a);l&&o.set(i,l)}return t},UR=typeof XMLHttpRequest<"u",WR=UR&&function(e){return new Promise(function(r,n){const i=FA(e);let a=i.data;const o=Jt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,d,p,m;function y(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const x=Jt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};zA(function(_){r(_),y()},function(_){n(_),y()},w),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(n(new se("Request aborted",se.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const w=S&&S.message?S.message:"Network Error",O=new se(w,se.ERR_NETWORK,e,v);O.event=S||null,n(O),v=null},v.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||y0;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),n(new se(S,w.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&M.forEach(o.toJSON(),function(S,w){v.setRequestHeader(w,S)}),M.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([d,m]=Mf(u,!0),v.addEventListener("progress",d)),l&&v.upload&&([c,p]=Mf(l),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(f=x=>{v&&(n(!x||x.type?new Xu(null,e,v):x),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=IR(i.url);if(b&&Et.protocols.indexOf(b)===-1){n(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e));return}v.send(a||null)})},HR=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof se?f:new Xu(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>M.asap(s),l}},VR=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},qR=async function*(e,t){for await(const r of KR(e))yield*VR(r,t)},KR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},y1=(e,t,r,n)=>{const i=qR(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let d=a+=c;r(d)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},v1=64*1024,{isFunction:Oc}=M,GR=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:g1,TextEncoder:b1}=M.global,x1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},XR=e=>{e=M.merge.call({skipUndefined:!0},GR,e);const{fetch:t,Request:r,Response:n}=e,i=t?Oc(t):typeof fetch=="function",a=Oc(r),o=Oc(n);if(!i)return!1;const s=i&&Oc(g1),l=i&&(typeof b1=="function"?(m=>y=>m.encode(y))(new b1):async m=>new Uint8Array(await new r(m).arrayBuffer())),u=a&&s&&x1(()=>{let m=!1;const y=new r(Et.origin,{body:new g1,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),f=o&&s&&x1(()=>M.isReadableStream(new n("").body)),c={stream:f&&(m=>m.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!c[m]&&(c[m]=(y,v)=>{let g=y&&y[m];if(g)return g.call(y);throw new se(`Response type '${m}' is not supported`,se.ERR_NOT_SUPPORT,v)})});const d=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new r(Et.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await l(m)).byteLength},p=async(m,y)=>{const v=M.toFiniteNumber(m.getContentLength());return v??d(y)};return async m=>{let{url:y,method:v,data:g,signal:b,cancelToken:x,timeout:S,onDownloadProgress:w,onUploadProgress:O,responseType:_,headers:j,withCredentials:P="same-origin",fetchOptions:N}=FA(m),$=t||fetch;_=_?(_+"").toLowerCase():"text";let C=HR([b,x&&x.toAbortSignal()],S),L=null;const R=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let I;try{if(O&&u&&v!=="get"&&v!=="head"&&(I=await p(j,g))!==0){let K=new r(y,{method:"POST",body:g,duplex:"half"}),H;if(M.isFormData(g)&&(H=K.headers.get("content-type"))&&j.setContentType(H),K.body){const[X,ie]=h1(I,Mf(p1(O)));g=y1(K.body,v1,X,ie)}}M.isString(P)||(P=P?"include":"omit");const D=a&&"credentials"in r.prototype,F={...N,signal:C,method:v.toUpperCase(),headers:j.normalize().toJSON(),body:g,duplex:"half",credentials:D?P:void 0};L=a&&new r(y,F);let T=await(a?$(L,N):$(y,F));const B=f&&(_==="stream"||_==="response");if(f&&(w||B&&R)){const K={};["status","statusText","headers"].forEach(be=>{K[be]=T[be]});const H=M.toFiniteNumber(T.headers.get("content-length")),[X,ie]=w&&h1(H,Mf(p1(w),!0))||[];T=new n(y1(T.body,v1,X,()=>{ie&&ie(),R&&R()}),K)}_=_||"text";let U=await c[M.findKey(c,_)||"text"](T,m);return!B&&R&&R(),await new Promise((K,H)=>{zA(K,H,{data:U,headers:Jt.from(T.headers),status:T.status,statusText:T.statusText,config:m,request:L})})}catch(D){throw R&&R(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,m,L,D&&D.response),{cause:D.cause||D}):se.from(D,D&&D.code,m,L,D&&D.response)}}},QR=new Map,UA=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,s=o,l,u,f=QR;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:XR(t)),f=u;return u};UA();const g0={http:hR,xhr:WR,fetch:{get:UA}};M.forEach(g0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const w1=e=>`- ${e}`,YR=e=>M.isFunction(e)||e===null||e===!1;function JR(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o<r;o++){n=e[o];let s;if(i=n,!YR(n)&&(i=g0[(s=String(n)).toLowerCase()],i===void 0))throw new se(`Unknown adapter '${s}'`);if(i&&(M.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
`+o.map(w1).join(`
`):" "+w1(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const WA={getAdapter:JR,adapters:g0};function Ip(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xu(null,e)}function S1(e){return Ip(e),e.headers=Jt.from(e.headers),e.data=Mp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WA.getAdapter(e.adapter||Gu.adapter,e)(e).then(function(n){return Ip(e),n.data=Mp.call(e,e.transformResponse,n),n.headers=Jt.from(n.headers),n},function(n){return LA(n)||(Ip(e),n&&n.response&&(n.response.data=Mp.call(e,e.transformResponse,n.response),n.response.headers=Jt.from(n.response.headers))),Promise.reject(n)})}const HA="1.13.5",sh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const O1={};sh.transitional=function(t,r,n){function i(a,o){return"[Axios v"+HA+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new se(i(o," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!O1[o]&&(O1[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};sh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ZR(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new se("option "+a+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+a,se.ERR_BAD_OPTION)}}const rf={assertOptions:ZR,validators:sh},cr=rf.validators;let xa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new f1,response:new f1}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ta(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&rf.assertOptions(n,{silentJSONParsing:cr.transitional(cr.boolean),forcedJSONParsing:cr.transitional(cr.boolean),clarifyTimeoutError:cr.transitional(cr.boolean),legacyInterceptorReqResOrdering:cr.transitional(cr.boolean)},!1),i!=null&&(M.isFunction(i)?r.paramsSerializer={serialize:i}:rf.assertOptions(i,{encode:cr.function,serialize:cr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),rf.assertOptions(r,{baseUrl:cr.spelling("baseURL"),withXsrfToken:cr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),r.headers=Jt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;l=l&&y.synchronous;const v=r.transitional||y0;v&&v.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,c=0,d;if(!l){const m=[S1.bind(this),void 0];for(m.unshift(...s),m.push(...u),d=m.length,f=Promise.resolve(r);c<d;)f=f.then(m[c++],m[c++]);return f}d=s.length;let p=r;for(;c<d;){const m=s[c++],y=s[c++];try{p=m(p)}catch(v){y.call(this,v);break}}try{f=S1.call(this,p)}catch(m){return Promise.reject(m)}for(c=0,d=u.length;c<d;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Ta(this.defaults,t);const r=BA(t.baseURL,t.url,t.allowAbsoluteUrls);return RA(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){xa.prototype[t]=function(r,n){return this.request(Ta(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(Ta(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}xa.prototype[t]=r(),xa.prototype[t+"Form"]=r(!0)});let eD=class VA{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Xu(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new VA(function(i){t=i}),cancel:t}}};function tD(e){return function(r){return e.apply(null,r)}}function rD(e){return M.isObject(e)&&e.isAxiosError===!0}const Ey={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ey).forEach(([e,t])=>{Ey[t]=e});function qA(e){const t=new xa(e),r=jA(xa.prototype.request,t);return M.extend(r,xa.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return qA(Ta(e,i))},r}const Ye=qA(Gu);Ye.Axios=xa;Ye.CanceledError=Xu;Ye.CancelToken=eD;Ye.isCancel=LA;Ye.VERSION=HA;Ye.toFormData=oh;Ye.AxiosError=se;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=tD;Ye.isAxiosError=rD;Ye.mergeConfig=Ta;Ye.AxiosHeaders=Jt;Ye.formToJSON=e=>DA(M.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=WA.getAdapter;Ye.HttpStatusCode=Ey;Ye.default=Ye;const{Axios:Mse,AxiosError:Ise,CanceledError:Rse,isCancel:Dse,CancelToken:Lse,VERSION:zse,all:Bse,Cancel:Fse,isAxiosError:Use,spread:Wse,toFormData:Hse,AxiosHeaders:Vse,HttpStatusCode:qse,formToJSON:Kse,getAdapter:Gse,mergeConfig:Xse}=Ye,Ee=Ye.create({baseURL:"/api",headers:{"Content-Type":"application/json"}});Ee.interceptors.request.use(e=>{const t=localStorage.getItem("access_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});Ee.interceptors.response.use(e=>e,async e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),window.location.href="/login"),Promise.reject(e)});const nD={login:(e,t)=>Ee.post("/auth/login",{email:e,password:t}),register:e=>Ee.post("/auth/register",e),refresh:e=>Ee.post("/auth/refresh",{refresh_token:e})},iD={me:()=>Ee.get("/users/me"),updateMe:e=>Ee.patch("/users/me",e)},KA={list:()=>Ee.get("/organizations"),create:e=>Ee.post("/organizations",e),get:e=>Ee.get(`/organizations/${e}`),update:(e,t)=>Ee.patch(`/organizations/${e}`,t),members:e=>Ee.get(`/organizations/${e}/members`),invite:(e,t)=>Ee.post(`/organizations/${e}/members`,t)},Rp={list:e=>Ee.get("/integrations",{params:{org_id:e}}),create:(e,t)=>Ee.post("/integrations",t,{params:{org_id:e}}),get:(e,t)=>Ee.get(`/integrations/${t}`,{params:{org_id:e}}),update:(e,t,r)=>Ee.patch(`/integrations/${t}`,r,{params:{org_id:e}}),delete:(e,t)=>Ee.delete(`/integrations/${t}`,{params:{org_id:e}}),test:(e,t)=>Ee.post(`/integrations/${t}/test`,null,{params:{org_id:e}})},Ol={list:(e,t={})=>Ee.get("/issues",{params:{org_id:e,...t}}),stats:e=>Ee.get("/issues/stats",{params:{org_id:e}}),get:(e,t)=>Ee.get(`/issues/${t}`,{params:{org_id:e}}),create:(e,t)=>Ee.post("/issues",t,{params:{org_id:e}}),reanalyze:(e,t)=>Ee.post(`/issues/${t}/reanalyze`,null,{params:{org_id:e}}),addComment:(e,t,r)=>Ee.post(`/issues/${t}/comments`,r,{params:{org_id:e}})},Ny={summary:(e,t=30)=>Ee.get("/reports/summary",{params:{org_id:e,days:t}}),exportCsv:(e,t=30)=>Ee.get("/reports/export/csv",{params:{org_id:e,days:t},responseType:"blob"})},GA=E.createContext(null);function aD({children:e}){const[t,r]=E.useState(null),[n,i]=E.useState(!0),[a,o]=E.useState(null);E.useEffect(()=>{localStorage.getItem("access_token")?s():i(!1)},[]);const s=async()=>{try{const c=await iD.me();r(c.data);const d=localStorage.getItem("current_org");d&&o(JSON.parse(d))}catch{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}finally{i(!1)}},l=async(c,d)=>{const p=await nD.login(c,d);localStorage.setItem("access_token",p.data.access_token),localStorage.setItem("refresh_token",p.data.refresh_token),await s()},u=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("current_org"),r(null),o(null)},f=c=>{o(c),localStorage.setItem("current_org",JSON.stringify(c))};return h.jsx(GA.Provider,{value:{user:t,loading:n,login:l,logout:u,currentOrg:a,selectOrg:f},children:e})}const Wr=()=>E.useContext(GA);function XA(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=XA(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=XA(e))&&(n&&(n+=" "),n+=t);return n}const oD=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},sD=(e,t)=>({classGroupId:e,validator:t}),QA=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),If="-",_1=[],lD="arbitrary..",uD=e=>{const t=fD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return cD(o);const s=o.split(If),l=s[0]===""&&s.length>1?1:0;return YA(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?oD(u,l):l:u||_1}return r[o]||_1}}},YA=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=YA(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(If):e.slice(t).join(If),l=o.length;for(let u=0;u<l;u++){const f=o[u];if(f.validator(s))return f.classGroupId}},cD=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?lD+n:void 0})(),fD=e=>{const{theme:t,classGroups:r}=e;return dD(r,t)},dD=(e,t)=>{const r=QA();for(const n in e){const i=e[n];b0(i,r,n,t)}return r},b0=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];hD(o,t,r,n)}},hD=(e,t,r,n)=>{if(typeof e=="string"){pD(e,t,r);return}if(typeof e=="function"){mD(e,t,r,n);return}yD(e,t,r,n)},pD=(e,t,r)=>{const n=e===""?t:JA(t,e);n.classGroupId=r},mD=(e,t,r,n)=>{if(vD(e)){b0(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(sD(r,e))},yD=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];b0(l,JA(t,s),r,n)}},JA=(e,t)=>{let r=e;const n=t.split(If),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=QA(),r.nextPart.set(o,s)),r=s}return r},vD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,gD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},Ty="!",j1=":",bD=[],P1=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),xD=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,l=0,u;const f=i.length;for(let y=0;y<f;y++){const v=i[y];if(o===0&&s===0){if(v===j1){a.push(i.slice(l,y)),l=y+1;continue}if(v==="/"){u=y;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const c=a.length===0?i:i.slice(l);let d=c,p=!1;c.endsWith(Ty)?(d=c.slice(0,-1),p=!0):c.startsWith(Ty)&&(d=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return P1(a,p,d,m)};if(t){const i=t+j1,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):P1(bD,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},wD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},SD=e=>({cache:gD(e.cacheSize),parseClassName:xD(e),sortModifiers:wD(e),...uD(e)}),OD=/\s+/,_D=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(OD);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!y,g=n(v?m.substring(0,y):m);if(!g){if(!v){l=f+(l.length>0?" "+l:l);continue}if(g=n(m),!g){l=f+(l.length>0?" "+l:l);continue}v=!1}const b=d.length===0?"":d.length===1?d[0]:a(d).join(":"),x=p?b+Ty:b,S=x+g;if(o.indexOf(S)>-1)continue;o.push(S);const w=i(g,v);for(let O=0;O<w.length;++O){const _=w[O];o.push(x+_)}l=f+(l.length>0?" "+l:l)}return l},jD=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=ZA(r))&&(i&&(i+=" "),i+=n);return i},ZA=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ZA(e[n]))&&(r&&(r+=" "),r+=t);return r},PD=(e,...t)=>{let r,n,i,a;const o=l=>{const u=t.reduce((f,c)=>c(f),e());return r=SD(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const f=_D(l,r);return i(l,f),f};return a=o,(...l)=>a(jD(...l))},AD=[],nt=e=>{const t=r=>r[e]||AD;return t.isThemeGetter=!0,t},ek=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kD=/^\d+\/\d+$/,ED=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ND=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,CD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$D=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xa=e=>kD.test(e),he=e=>!!e&&!Number.isNaN(Number(e)),Hn=e=>!!e&&Number.isInteger(Number(e)),Dp=e=>e.endsWith("%")&&he(e.slice(0,-1)),cn=e=>ED.test(e),rk=()=>!0,MD=e=>ND.test(e)&&!TD.test(e),x0=()=>!1,ID=e=>CD.test(e),RD=e=>$D.test(e),DD=e=>!Z(e)&&!ee(e),LD=e=>Ii(e,ak,x0),Z=e=>ek.test(e),Wi=e=>Ii(e,ok,MD),A1=e=>Ii(e,qD,he),zD=e=>Ii(e,lk,rk),BD=e=>Ii(e,sk,x0),k1=e=>Ii(e,nk,x0),FD=e=>Ii(e,ik,RD),_c=e=>Ii(e,uk,ID),ee=e=>tk.test(e),Ys=e=>Fa(e,ok),UD=e=>Fa(e,sk),E1=e=>Fa(e,nk),WD=e=>Fa(e,ak),HD=e=>Fa(e,ik),jc=e=>Fa(e,uk,!0),VD=e=>Fa(e,lk,!0),Ii=(e,t,r)=>{const n=ek.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Fa=(e,t,r=!1)=>{const n=tk.exec(e);return n?n[1]?t(n[1]):r:!1},nk=e=>e==="position"||e==="percentage",ik=e=>e==="image"||e==="url",ak=e=>e==="length"||e==="size"||e==="bg-size",ok=e=>e==="length",qD=e=>e==="number",sk=e=>e==="family-name",lk=e=>e==="number"||e==="weight",uk=e=>e==="shadow",KD=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),i=nt("tracking"),a=nt("leading"),o=nt("breakpoint"),s=nt("container"),l=nt("spacing"),u=nt("radius"),f=nt("shadow"),c=nt("inset-shadow"),d=nt("text-shadow"),p=nt("drop-shadow"),m=nt("blur"),y=nt("perspective"),v=nt("aspect"),g=nt("ease"),b=nt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...S(),ee,Z],O=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],j=()=>[ee,Z,l],P=()=>[Xa,"full","auto",...j()],N=()=>[Hn,"none","subgrid",ee,Z],$=()=>["auto",{span:["full",Hn,ee,Z]},Hn,ee,Z],C=()=>[Hn,"auto",ee,Z],L=()=>["auto","min","max","fr",ee,Z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...j()],F=()=>[Xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],T=()=>[e,ee,Z],B=()=>[...S(),E1,k1,{position:[ee,Z]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",WD,LD,{size:[ee,Z]}],H=()=>[Dp,Ys,Wi],X=()=>["","none","full",u,ee,Z],ie=()=>["",he,Ys,Wi],be=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[he,Dp,E1,k1],gt=()=>["","none",m,ee,Z],G=()=>["none",he,ee,Z],le=()=>["none",he,ee,Z],ue=()=>[he,ee,Z],W=()=>[Xa,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[cn],breakpoint:[cn],color:[rk],container:[cn],"drop-shadow":[cn],ease:["in","out","in-out"],font:[DD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[cn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[cn],shadow:[cn],spacing:["px",he],text:[cn],"text-shadow":[cn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xa,Z,ee,v]}],container:["container"],columns:[{columns:[he,Z,ee,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Hn,"auto",ee,Z]}],basis:[{basis:[Xa,"full","auto",s,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[he,Xa,"auto","initial","none",Z]}],grow:[{grow:["",he,ee,Z]}],shrink:[{shrink:["",he,ee,Z]}],order:[{order:[Hn,"first","last","none",ee,Z]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[s,"screen",...F()]}],"min-w":[{"min-w":[s,"screen","none",...F()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,Ys,Wi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,VD,zD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dp,Z]}],"font-family":[{font:[UD,BD,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,Z]}],"line-clamp":[{"line-clamp":[he,"none",ee,A1]}],leading:[{leading:[a,...j()]}],"list-image":[{"list-image":["none",ee,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[he,"from-font","auto",ee,Wi]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[he,"auto",ee,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hn,ee,Z],radial:["",ee,Z],conic:[Hn,ee,Z]},HD,FD]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[he,ee,Z]}],"outline-w":[{outline:["",he,Ys,Wi]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,jc,_c]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",c,jc,_c]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[he,Wi]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",d,jc,_c]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[he,ee,Z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[he]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ee,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[he]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,Z]}],filter:[{filter:["","none",ee,Z]}],blur:[{blur:gt()}],brightness:[{brightness:[he,ee,Z]}],contrast:[{contrast:[he,ee,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,jc,_c]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",he,ee,Z]}],"hue-rotate":[{"hue-rotate":[he,ee,Z]}],invert:[{invert:["",he,ee,Z]}],saturate:[{saturate:[he,ee,Z]}],sepia:[{sepia:["",he,ee,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,Z]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[he,ee,Z]}],"backdrop-contrast":[{"backdrop-contrast":[he,ee,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",he,ee,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[he,ee,Z]}],"backdrop-invert":[{"backdrop-invert":["",he,ee,Z]}],"backdrop-opacity":[{"backdrop-opacity":[he,ee,Z]}],"backdrop-saturate":[{"backdrop-saturate":[he,ee,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",he,ee,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[he,"initial",ee,Z]}],ease:[{ease:["linear","initial",g,ee,Z]}],delay:[{delay:[he,ee,Z]}],animate:[{animate:["none",b,ee,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ee,Z]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ee,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,Z]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[he,Ys,Wi,A1]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},GD=PD(KD);function ke(...e){return GD(fe(e))}/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ck=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N1=e=>{const t=QD(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var YD={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"};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZD=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>E.createElement("svg",{ref:l,...YD,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ck("lucide",i),...!a&&!JD(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>E.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const te=(e,t)=>{const r=E.forwardRef(({className:n,...i},a)=>E.createElement(ZD,{ref:a,iconNode:t,className:ck(`lucide-${XD(N1(e))}`,`lucide-${e}`,n),...i}));return r.displayName=N1(e),r};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e3=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],t3=te("arrow-left",e3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],fk=te("arrow-right",r3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n3=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],dk=te("bell",n3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i3=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],T1=te("brain",i3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a3=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Rf=te("building-2",a3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],s3=te("calendar",o3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],hk=te("chart-column",l3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],c3=te("check",u3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Cy=te("chevron-right",f3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d3=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],h3=te("chevrons-up-down",d3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const p3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],$y=te("circle-alert",p3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ai=te("circle-check",m3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],w0=te("circle-x",y3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],lh=te("clock",v3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g3=[["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"}]],My=te("code-xml",g3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b3=[["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"}]],Iy=te("copy",b3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x3=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],w3=te("crown",x3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S3=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],O3=te("download",S3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _3=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],j3=te("ellipsis-vertical",_3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const P3=[["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"}]],C1=te("external-link",P3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const A3=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pk=te("eye",A3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k3=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],E3=te("eye-off",k3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N3=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],T3=te("file-code",N3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C3=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],$3=te("folder-tree",C3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M3=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],uh=te("git-pull-request",M3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const I3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],mk=te("globe",I3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R3=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],yk=te("key",R3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D3=[["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"}]],L3=te("layout-dashboard",D3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z3=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],B3=te("lightbulb",z3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const F3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ki=te("loader-circle",F3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const U3=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],vk=te("lock",U3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W3=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],H3=te("log-out",W3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V3=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],ch=te("mail",V3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q3=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],K3=te("message-square",q3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G3=[["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"}]],X3=te("panel-left-close",G3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q3=[["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"}]],Y3=te("panel-left-open",Q3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J3=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Z3=te("plug",J3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ca=te("plus",e4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t4=[["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"}]],r4=te("refresh-cw",t4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n4=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],$1=te("save",n4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i4=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nf=te("search",i4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a4=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],o4=te("send",a4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s4=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gk=te("settings",s4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l4=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],bk=te("shield",l4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u4=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],c4=te("sliders-horizontal",u4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f4=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],d4=te("tag",f4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],p4=te("target",h4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m4=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],y4=te("test-tube",m4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v4=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],S0=te("ticket-check",v4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g4=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],xk=te("trash-2",g4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b4=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],x4=te("trending-down",b4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w4=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],S4=te("trending-up",w4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const O4=[["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"}]],_4=te("triangle-alert",O4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j4=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],P4=te("user-cog",j4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const A4=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],k4=te("user",A4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E4=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],wk=te("users",E4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N4=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Yl=te("zap",N4),T4=[{label:"Main",items:[{path:"/",label:"Dashboard",icon:L3},{path:"/issues",label:"Issues",icon:S0}]},{label:"Management",items:[{path:"/integrations",label:"Integrations",icon:Z3},{path:"/team",label:"Team",icon:wk},{path:"/reports",label:"Reports",icon:hk}]},{label:"System",items:[{path:"/settings",label:"Settings",icon:gk}]}],C4={"/":"Dashboard","/issues":"Issues","/integrations":"Integrations","/team":"Team","/reports":"Reports","/settings":"Settings"};function $4(){var x,S,w,O;const{user:e,logout:t,currentOrg:r,selectOrg:n}=Wr(),i=js(),a=Hu(),[o,s]=E.useState(!1),[l,u]=E.useState(!1),[f,c]=E.useState(!1),[d,p]=E.useState(!1),[m,y]=E.useState(""),{data:v}=Pi({queryKey:["organizations"],queryFn:()=>KA.list()});E.useEffect(()=>{const _=j=>{(j.metaKey||j.ctrlKey)&&j.key==="k"&&(j.preventDefault(),c(P=>!P)),j.key==="Escape"&&(c(!1),u(!1))};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[]);const g=()=>{const _=i.pathname.split("/").filter(Boolean);if(_.length===0)return[{label:"Dashboard",path:"/"}];const j=[];let P="";for(const N of _)P+=`/${N}`,j.push({label:C4[P]||N.charAt(0).toUpperCase()+N.slice(1),path:P});return j},b=_=>_==="/"?i.pathname==="/":i.pathname.startsWith(_);return h.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[f&&h.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>c(!1),children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:_=>_.stopPropagation(),children:h.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[h.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[h.jsx(nf,{size:18,className:"text-gray-500"}),h.jsx("input",{autoFocus:!0,value:m,onChange:_=>y(_.target.value),placeholder:"Search issues, projects, settings...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),h.jsx("kbd",{className:"kbd",children:"ESC"})]}),h.jsxs("div",{className:"p-2 max-h-80 overflow-auto",children:[["Dashboard","Issues","Integrations","Team","Reports","Settings"].filter(_=>_.toLowerCase().includes(m.toLowerCase())).map(_=>h.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800 transition-colors",onClick:()=>{a(`/${_.toLowerCase()==="dashboard"?"":_.toLowerCase()}`),c(!1),y("")},children:[h.jsx(Cy,{size:14,className:"text-gray-600"}),_]},_)),m&&h.jsxs("div",{className:"px-3 py-6 text-center text-sm text-gray-500",children:['Press Enter to search for "',m,'"']})]})]})})]}),h.jsxs("aside",{className:ke("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",o?"w-[68px]":"w-[260px]"),children:[h.jsx("div",{className:ke("h-14 flex items-center border-b border-gray-800/50 px-4",o&&"justify-center px-0"),children:o?h.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center",children:h.jsx(Yl,{size:16,className:"text-white"})}):h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:h.jsx(Yl,{size:16,className:"text-white"})}),h.jsxs("div",{children:[h.jsx("h1",{className:"text-sm font-semibold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!o&&h.jsxs("div",{className:"px-3 py-3 border-b border-gray-800/50 relative",children:[h.jsxs("button",{onClick:()=>u(!l),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg bg-gray-900/60 hover:bg-gray-800/80 border border-gray-800/50 transition-all",children:[h.jsx("div",{className:"w-6 h-6 rounded bg-indigo-600/20 flex items-center justify-center flex-shrink-0",children:h.jsx(Rf,{size:12,className:"text-indigo-400"})}),h.jsx("span",{className:"flex-1 text-left text-sm truncate",children:(r==null?void 0:r.name)||"Select org"}),h.jsx(h3,{size:14,className:"text-gray-500"})]}),l&&(v==null?void 0:v.data)&&h.jsxs("div",{className:"absolute left-3 right-3 top-full mt-1 bg-gray-900 border border-gray-700 rounded-lg shadow-xl z-50 animate-slide-up",children:[v.data.map(_=>h.jsxs("button",{onClick:()=>{n(_),u(!1)},className:ke("w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-gray-800 first:rounded-t-lg last:rounded-b-lg transition-colors",(r==null?void 0:r.id)===_.id&&"bg-indigo-600/10 text-indigo-400"),children:[h.jsx(Rf,{size:14}),_.name]},_.id)),h.jsxs("button",{onClick:()=>{a("/settings"),u(!1)},className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm text-indigo-400 hover:bg-gray-800 border-t border-gray-800 rounded-b-lg",children:[h.jsx(Ca,{size:14}),"New organization"]})]})]}),!o&&h.jsx("div",{className:"px-3 pt-3",children:h.jsxs("button",{onClick:()=>c(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[h.jsx(nf,{size:14}),h.jsx("span",{className:"flex-1 text-left",children:"Search..."}),h.jsxs("div",{className:"flex items-center gap-0.5",children:[h.jsx("kbd",{className:"kbd",children:"⌘"}),h.jsx("kbd",{className:"kbd",children:"K"})]})]})}),h.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:T4.map(_=>h.jsxs("div",{children:[!o&&h.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:_.label}),h.jsx("div",{className:"space-y-0.5",children:_.items.map(j=>{const P=j.icon,N=b(j.path);return h.jsxs(ka,{to:j.path,title:o?j.label:void 0,className:ke("sidebar-item",N?"sidebar-item-active":"sidebar-item-inactive",o&&"justify-center px-0"),children:[h.jsx(P,{size:18,strokeWidth:N?2:1.5}),!o&&h.jsx("span",{children:j.label})]},j.path)})})]},_.label))}),h.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:h.jsxs("button",{onClick:()=>s(!o),className:ke("sidebar-item sidebar-item-inactive w-full",o&&"justify-center px-0"),children:[o?h.jsx(Y3,{size:18}):h.jsx(X3,{size:18}),!o&&h.jsx("span",{children:"Collapse"})]})}),h.jsx("div",{className:ke("px-3 py-3 border-t border-gray-800/50",o&&"px-2"),children:h.jsxs("div",{className:ke("flex items-center gap-2.5",o&&"justify-center"),children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((S=(x=e==null?void 0:e.full_name)==null?void 0:x[0])==null?void 0:S.toUpperCase())||((O=(w=e==null?void 0:e.email)==null?void 0:w[0])==null?void 0:O.toUpperCase())||"?"}),!o&&h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium truncate",children:(e==null?void 0:e.full_name)||(e==null?void 0:e.email)}),h.jsxs("button",{onClick:t,className:"text-xs text-gray-500 hover:text-red-400 transition-colors flex items-center gap-1",children:[h.jsx(H3,{size:10}),"Sign out"]})]})]})})]}),h.jsxs("div",{className:ke("flex-1 flex flex-col transition-all duration-300",o?"ml-[68px]":"ml-[260px]"),children:[h.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[h.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:g().map((_,j)=>h.jsxs("div",{className:"flex items-center gap-1.5",children:[j>0&&h.jsx(Cy,{size:12,className:"text-gray-600"}),h.jsx(ka,{to:_.path,className:ke("hover:text-white transition-colors",j===g().length-1?"text-white font-medium":"text-gray-400"),children:_.label})]},_.path))}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("button",{onClick:()=>c(!0),className:"btn-ghost btn-icon rounded-lg",children:h.jsx(nf,{size:16})}),h.jsxs("button",{onClick:()=>p(!d),className:"btn-ghost btn-icon rounded-lg relative",children:[h.jsx(dk,{size:16}),h.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-indigo-500"})]})]})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx($M,{})})]})]})}function M4(){const[e,t]=E.useState(""),[r,n]=E.useState(""),[i,a]=E.useState(""),[o,s]=E.useState(!1),{login:l}=Wr(),u=Hu(),f=async c=>{var d,p;c.preventDefault(),a(""),s(!0);try{await l(e,r),u("/")}catch(m){a(((p=(d=m.response)==null?void 0:d.data)==null?void 0:p.detail)||"Invalid email or password")}finally{s(!1)}};return h.jsxs("div",{className:"min-h-screen flex bg-gray-950",children:[h.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[h.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-600 via-indigo-700 to-purple-800"}),h.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}}),h.jsxs("div",{className:"relative z-10 flex flex-col justify-center px-16",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[h.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/10 backdrop-blur flex items-center justify-center",children:h.jsx(Yl,{size:24,className:"text-white"})}),h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-sm text-indigo-200",children:"Enterprise v2.0"})]})]}),h.jsxs("h2",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["AI-Powered Issue",h.jsx("br",{}),"Analysis & Resolution"]}),h.jsx("p",{className:"text-lg text-indigo-200 max-w-md",children:"Automatically analyze issues from JIRA, ServiceNow, GitHub and more. Get root cause analysis and automated Pull Requests."}),h.jsx("div",{className:"mt-12 grid grid-cols-3 gap-6",children:[{value:"95%",label:"Accuracy"},{value:"10x",label:"Faster Resolution"},{value:"24/7",label:"Automated"}].map(c=>h.jsxs("div",{children:[h.jsx("p",{className:"text-3xl font-bold text-white",children:c.value}),h.jsx("p",{className:"text-sm text-indigo-300 mt-1",children:c.label})]},c.label))})]})]}),h.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:h.jsxs("div",{className:"w-full max-w-sm",children:[h.jsx("div",{className:"lg:hidden text-center mb-8",children:h.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:h.jsx(Yl,{size:20,className:"text-white"})}),h.jsxs("div",{className:"text-left",children:[h.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-2xl font-bold text-white",children:"Welcome back"}),h.jsx("p",{className:"text-gray-400 mt-1",children:"Sign in to your account to continue"})]}),h.jsxs("form",{onSubmit:f,className:"space-y-4",children:[i&&h.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:i}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),h.jsxs("div",{className:"relative",children:[h.jsx(ch,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"email",value:e,onChange:c=>t(c.target.value),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(vk,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"password",value:r,onChange:c=>n(c.target.value),className:"input pl-10",placeholder:"••••••••",required:!0})]})]}),h.jsx("button",{type:"submit",disabled:o,className:"btn btn-primary w-full h-11 justify-center mt-2",children:o?h.jsx(ki,{size:16,className:"animate-spin"}):h.jsxs(h.Fragment,{children:["Sign in",h.jsx(fk,{size:16})]})})]}),h.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Don't have an account?"," ",h.jsx(ka,{to:"/register",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Create account"})]})]})})]})}function I4(){const[e,t]=E.useState({email:"",password:"",full_name:""}),[r,n]=E.useState(""),[i,a]=E.useState(!1),{register:o}=Wr(),s=Hu(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{await o(e),s("/")}catch(d){n(((c=(f=d.response)==null?void 0:f.data)==null?void 0:c.detail)||"Registration failed")}finally{a(!1)}};return h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:h.jsxs("div",{className:"w-full max-w-sm",children:[h.jsx("div",{className:"text-center mb-8",children:h.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:h.jsx(Yl,{size:20,className:"text-white"})}),h.jsxs("div",{className:"text-left",children:[h.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-2xl font-bold text-white",children:"Create account"}),h.jsx("p",{className:"text-gray-400 mt-1",children:"Get started with AI-powered issue analysis"})]}),h.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r&&h.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Full Name"}),h.jsxs("div",{className:"relative",children:[h.jsx(k4,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"text",value:e.full_name,onChange:u=>t({...e,full_name:u.target.value}),className:"input pl-10",placeholder:"John Doe",required:!0})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),h.jsxs("div",{className:"relative",children:[h.jsx(ch,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"email",value:e.email,onChange:u=>t({...e,email:u.target.value}),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(vk,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"password",value:e.password,onChange:u=>t({...e,password:u.target.value}),className:"input pl-10",placeholder:"••••••••",minLength:8,required:!0})]})]}),h.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center mt-2",children:i?h.jsx(ki,{size:16,className:"animate-spin"}):h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"Create account"}),h.jsx(fk,{size:16})]})})]}),h.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Already have an account?"," ",h.jsx(ka,{to:"/login",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Sign in"})]})]})})}var R4=Array.isArray,Zt=R4,D4=typeof ic=="object"&&ic&&ic.Object===Object&&ic,Sk=D4,L4=Sk,z4=typeof self=="object"&&self&&self.Object===Object&&self,B4=L4||z4||Function("return this")(),ln=B4,F4=ln,U4=F4.Symbol,Qu=U4,M1=Qu,Ok=Object.prototype,W4=Ok.hasOwnProperty,H4=Ok.toString,Js=M1?M1.toStringTag:void 0;function V4(e){var t=W4.call(e,Js),r=e[Js];try{e[Js]=void 0;var n=!0}catch{}var i=H4.call(e);return n&&(t?e[Js]=r:delete e[Js]),i}var q4=V4,K4=Object.prototype,G4=K4.toString;function X4(e){return G4.call(e)}var Q4=X4,I1=Qu,Y4=q4,J4=Q4,Z4="[object Null]",eL="[object Undefined]",R1=I1?I1.toStringTag:void 0;function tL(e){return e==null?e===void 0?eL:Z4:R1&&R1 in Object(e)?Y4(e):J4(e)}var Ln=tL;function rL(e){return e!=null&&typeof e=="object"}var zn=rL,nL=Ln,iL=zn,aL="[object Symbol]";function oL(e){return typeof e=="symbol"||iL(e)&&nL(e)==aL}var ks=oL,sL=Zt,lL=ks,uL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cL=/^\w*$/;function fL(e,t){if(sL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lL(e)?!0:cL.test(e)||!uL.test(e)||t!=null&&e in Object(t)}var O0=fL;function dL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ri=dL;const Es=je(Ri);var hL=Ln,pL=Ri,mL="[object AsyncFunction]",yL="[object Function]",vL="[object GeneratorFunction]",gL="[object Proxy]";function bL(e){if(!pL(e))return!1;var t=hL(e);return t==yL||t==vL||t==mL||t==gL}var _0=bL;const oe=je(_0);var xL=ln,wL=xL["__core-js_shared__"],SL=wL,Lp=SL,D1=function(){var e=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function OL(e){return!!D1&&D1 in e}var _L=OL,jL=Function.prototype,PL=jL.toString;function AL(e){if(e!=null){try{return PL.call(e)}catch{}try{return e+""}catch{}}return""}var _k=AL,kL=_0,EL=_L,NL=Ri,TL=_k,CL=/[\\^$.*+?()[\]{}|]/g,$L=/^\[object .+?Constructor\]$/,ML=Function.prototype,IL=Object.prototype,RL=ML.toString,DL=IL.hasOwnProperty,LL=RegExp("^"+RL.call(DL).replace(CL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zL(e){if(!NL(e)||EL(e))return!1;var t=kL(e)?LL:$L;return t.test(TL(e))}var BL=zL;function FL(e,t){return e==null?void 0:e[t]}var UL=FL,WL=BL,HL=UL;function VL(e,t){var r=HL(e,t);return WL(r)?r:void 0}var Ua=VL,qL=Ua,KL=qL(Object,"create"),fh=KL,L1=fh;function GL(){this.__data__=L1?L1(null):{},this.size=0}var XL=GL;function QL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YL=QL,JL=fh,ZL="__lodash_hash_undefined__",e5=Object.prototype,t5=e5.hasOwnProperty;function r5(e){var t=this.__data__;if(JL){var r=t[e];return r===ZL?void 0:r}return t5.call(t,e)?t[e]:void 0}var n5=r5,i5=fh,a5=Object.prototype,o5=a5.hasOwnProperty;function s5(e){var t=this.__data__;return i5?t[e]!==void 0:o5.call(t,e)}var l5=s5,u5=fh,c5="__lodash_hash_undefined__";function f5(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=u5&&t===void 0?c5:t,this}var d5=f5,h5=XL,p5=YL,m5=n5,y5=l5,v5=d5;function Ns(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ns.prototype.clear=h5;Ns.prototype.delete=p5;Ns.prototype.get=m5;Ns.prototype.has=y5;Ns.prototype.set=v5;var g5=Ns;function b5(){this.__data__=[],this.size=0}var x5=b5;function w5(e,t){return e===t||e!==e&&t!==t}var j0=w5,S5=j0;function O5(e,t){for(var r=e.length;r--;)if(S5(e[r][0],t))return r;return-1}var dh=O5,_5=dh,j5=Array.prototype,P5=j5.splice;function A5(e){var t=this.__data__,r=_5(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():P5.call(t,r,1),--this.size,!0}var k5=A5,E5=dh;function N5(e){var t=this.__data__,r=E5(t,e);return r<0?void 0:t[r][1]}var T5=N5,C5=dh;function $5(e){return C5(this.__data__,e)>-1}var M5=$5,I5=dh;function R5(e,t){var r=this.__data__,n=I5(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var D5=R5,L5=x5,z5=k5,B5=T5,F5=M5,U5=D5;function Ts(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ts.prototype.clear=L5;Ts.prototype.delete=z5;Ts.prototype.get=B5;Ts.prototype.has=F5;Ts.prototype.set=U5;var hh=Ts,W5=Ua,H5=ln,V5=W5(H5,"Map"),P0=V5,z1=g5,q5=hh,K5=P0;function G5(){this.size=0,this.__data__={hash:new z1,map:new(K5||q5),string:new z1}}var X5=G5;function Q5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Y5=Q5,J5=Y5;function Z5(e,t){var r=e.__data__;return J5(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ph=Z5,ez=ph;function tz(e){var t=ez(this,e).delete(e);return this.size-=t?1:0,t}var rz=tz,nz=ph;function iz(e){return nz(this,e).get(e)}var az=iz,oz=ph;function sz(e){return oz(this,e).has(e)}var lz=sz,uz=ph;function cz(e,t){var r=uz(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var fz=cz,dz=X5,hz=rz,pz=az,mz=lz,yz=fz;function Cs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Cs.prototype.clear=dz;Cs.prototype.delete=hz;Cs.prototype.get=pz;Cs.prototype.has=mz;Cs.prototype.set=yz;var A0=Cs,jk=A0,vz="Expected a function";function k0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(k0.Cache||jk),r}k0.Cache=jk;var Pk=k0;const gz=je(Pk);var bz=Pk,xz=500;function wz(e){var t=bz(e,function(n){return r.size===xz&&r.clear(),n}),r=t.cache;return t}var Sz=wz,Oz=Sz,_z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jz=/\\(\\)?/g,Pz=Oz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_z,function(r,n,i,a){t.push(i?a.replace(jz,"$1"):n||r)}),t}),Az=Pz;function kz(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var E0=kz,B1=Qu,Ez=E0,Nz=Zt,Tz=ks,F1=B1?B1.prototype:void 0,U1=F1?F1.toString:void 0;function Ak(e){if(typeof e=="string")return e;if(Nz(e))return Ez(e,Ak)+"";if(Tz(e))return U1?U1.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Cz=Ak,$z=Cz;function Mz(e){return e==null?"":$z(e)}var kk=Mz,Iz=Zt,Rz=O0,Dz=Az,Lz=kk;function zz(e,t){return Iz(e)?e:Rz(e,t)?[e]:Dz(Lz(e))}var Ek=zz,Bz=ks;function Fz(e){if(typeof e=="string"||Bz(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mh=Fz,Uz=Ek,Wz=mh;function Hz(e,t){t=Uz(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Wz(t[r++])];return r&&r==n?e:void 0}var N0=Hz,Vz=N0;function qz(e,t,r){var n=e==null?void 0:Vz(e,t);return n===void 0?r:n}var Nk=qz;const or=je(Nk);function Kz(e){return e==null}var Gz=Kz;const ce=je(Gz);var Xz=Ln,Qz=Zt,Yz=zn,Jz="[object String]";function Zz(e){return typeof e=="string"||!Qz(e)&&Yz(e)&&Xz(e)==Jz}var e6=Zz;const $a=je(e6);var Tk={exports:{}},Pe={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var T0=Symbol.for("react.element"),C0=Symbol.for("react.portal"),yh=Symbol.for("react.fragment"),vh=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),bh=Symbol.for("react.provider"),xh=Symbol.for("react.context"),t6=Symbol.for("react.server_context"),wh=Symbol.for("react.forward_ref"),Sh=Symbol.for("react.suspense"),Oh=Symbol.for("react.suspense_list"),_h=Symbol.for("react.memo"),jh=Symbol.for("react.lazy"),r6=Symbol.for("react.offscreen"),Ck;Ck=Symbol.for("react.module.reference");function Pr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T0:switch(e=e.type,e){case yh:case gh:case vh:case Sh:case Oh:return e;default:switch(e=e&&e.$$typeof,e){case t6:case xh:case wh:case jh:case _h:case bh:return e;default:return t}}case C0:return t}}}Pe.ContextConsumer=xh;Pe.ContextProvider=bh;Pe.Element=T0;Pe.ForwardRef=wh;Pe.Fragment=yh;Pe.Lazy=jh;Pe.Memo=_h;Pe.Portal=C0;Pe.Profiler=gh;Pe.StrictMode=vh;Pe.Suspense=Sh;Pe.SuspenseList=Oh;Pe.isAsyncMode=function(){return!1};Pe.isConcurrentMode=function(){return!1};Pe.isContextConsumer=function(e){return Pr(e)===xh};Pe.isContextProvider=function(e){return Pr(e)===bh};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T0};Pe.isForwardRef=function(e){return Pr(e)===wh};Pe.isFragment=function(e){return Pr(e)===yh};Pe.isLazy=function(e){return Pr(e)===jh};Pe.isMemo=function(e){return Pr(e)===_h};Pe.isPortal=function(e){return Pr(e)===C0};Pe.isProfiler=function(e){return Pr(e)===gh};Pe.isStrictMode=function(e){return Pr(e)===vh};Pe.isSuspense=function(e){return Pr(e)===Sh};Pe.isSuspenseList=function(e){return Pr(e)===Oh};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yh||e===gh||e===vh||e===Sh||e===Oh||e===r6||typeof e=="object"&&e!==null&&(e.$$typeof===jh||e.$$typeof===_h||e.$$typeof===bh||e.$$typeof===xh||e.$$typeof===wh||e.$$typeof===Ck||e.getModuleId!==void 0)};Pe.typeOf=Pr;Tk.exports=Pe;var n6=Tk.exports,i6=Ln,a6=zn,o6="[object Number]";function s6(e){return typeof e=="number"||a6(e)&&i6(e)==o6}var $k=s6;const l6=je($k);var u6=$k;function c6(e){return u6(e)&&e!=+e}var f6=c6;const $s=je(f6);var Mt=function(t){return t===0?0:t>0?1:-1},ia=function(t){return $a(t)&&t.indexOf("%")===t.length-1},V=function(t){return l6(t)&&!$s(t)},d6=function(t){return ce(t)},ct=function(t){return V(t)||$a(t)},h6=0,Ms=function(t){var r=++h6;return"".concat(t||"").concat(r)},It=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(t)&&!$a(t))return n;var a;if(ia(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return $s(a)&&(a=n),i&&a>r&&(a=r),a},Jn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},p6=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Vt=function(t,r){return V(t)&&V(r)?function(n){return t+n*(r-t)}:function(){return r}};function Df(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):or(n,t))===r})}var m6=function(t,r){return V(t)&&V(r)?t-r:$a(t)&&$a(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Oo(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Ry(e){"@babel/helpers - typeof";return Ry=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},Ry(e)}var y6=["viewBox","children"],v6=["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"],W1=["points","pathLength"],zp={svg:y6,polygon:W1,polyline:W1},$0=["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"],Lf=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(E.isValidElement(t)&&(n=t.props),!Es(n))return null;var i={};return Object.keys(n).forEach(function(a){$0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},g6=function(t,r,n){return function(i){return t(r,n,i),null}},Ma=function(t,r,n){if(!Es(t)||Ry(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];$0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=g6(o,r,n))}),i},b6=["children"],x6=["children"];function H1(e,t){if(e==null)return{};var r=w6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function w6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Dy(e){"@babel/helpers - typeof";return Dy=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},Dy(e)}var V1={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"},Pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},q1=null,Bp=null,M0=function e(t){if(t===q1&&Array.isArray(Bp))return Bp;var r=[];return E.Children.forEach(t,function(n){ce(n)||(n6.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Bp=r,q1=t,r};function Sr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Pn(i)}):n=[Pn(t)],M0(e).forEach(function(i){var a=or(i,"type.displayName")||or(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function rr(e,t){var r=Sr(e,t);return r&&r[0]}var K1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!V(n)||n<=0||!V(i)||i<=0)},S6=["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"],O6=function(t){return t&&t.type&&$a(t.type)&&S6.indexOf(t.type)>=0},_6=function(t){return t&&Dy(t)==="object"&&"clipDot"in t},j6=function(t,r,n,i){var a,o=(a=zp==null?void 0:zp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||v6.includes(r))||n&&$0.includes(r)},ne=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(E.isValidElement(t)&&(i=t.props),!Es(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;j6((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Ly=function e(t,r){if(t===r)return!0;var n=E.Children.count(t);if(n!==E.Children.count(r))return!1;if(n===0)return!0;if(n===1)return G1(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!G1(a,o))return!1}return!0},G1=function(t,r){if(ce(t)&&ce(r))return!0;if(!ce(t)&&!ce(r)){var n=t.props||{},i=n.children,a=H1(n,b6),o=r.props||{},s=o.children,l=H1(o,x6);return i&&s?Oo(a,l)&&Ly(i,s):!i&&!s?Oo(a,l):!1}return!1},X1=function(t,r){var n=[],i={};return M0(t).forEach(function(a,o){if(O6(a))n.push(a);else if(a){var s=Pn(a.type),l=r[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var c=u(a,s,o);n.push(c),i[s]=!0}}}),n},P6=function(t){var r=t&&t.type;return r&&V1[r]?V1[r]:null},A6=function(t,r){return M0(r).indexOf(t)},k6=["children","width","height","viewBox","className","style","title","desc"];function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zy.apply(this,arguments)}function E6(e,t){if(e==null)return{};var r=N6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function By(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=E6(e,k6),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",a);return A.createElement("svg",zy({},ne(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,s),A.createElement("desc",null,l),t)}var T6=["children","className"];function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fy.apply(this,arguments)}function C6(e,t){if(e==null)return{};var r=$6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ye=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=C6(e,T6),a=fe("recharts-layer",n);return A.createElement("g",Fy({className:a},ne(i,!0),{ref:t}),r)}),Br=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function M6(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var I6=M6,R6=I6;function D6(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:R6(e,t,r)}var L6=D6,z6="\\ud800-\\udfff",B6="\\u0300-\\u036f",F6="\\ufe20-\\ufe2f",U6="\\u20d0-\\u20ff",W6=B6+F6+U6,H6="\\ufe0e\\ufe0f",V6="\\u200d",q6=RegExp("["+V6+z6+W6+H6+"]");function K6(e){return q6.test(e)}var Mk=K6;function G6(e){return e.split("")}var X6=G6,Ik="\\ud800-\\udfff",Q6="\\u0300-\\u036f",Y6="\\ufe20-\\ufe2f",J6="\\u20d0-\\u20ff",Z6=Q6+Y6+J6,eB="\\ufe0e\\ufe0f",tB="["+Ik+"]",Uy="["+Z6+"]",Wy="\\ud83c[\\udffb-\\udfff]",rB="(?:"+Uy+"|"+Wy+")",Rk="[^"+Ik+"]",Dk="(?:\\ud83c[\\udde6-\\uddff]){2}",Lk="[\\ud800-\\udbff][\\udc00-\\udfff]",nB="\\u200d",zk=rB+"?",Bk="["+eB+"]?",iB="(?:"+nB+"(?:"+[Rk,Dk,Lk].join("|")+")"+Bk+zk+")*",aB=Bk+zk+iB,oB="(?:"+[Rk+Uy+"?",Uy,Dk,Lk,tB].join("|")+")",sB=RegExp(Wy+"(?="+Wy+")|"+oB+aB,"g");function lB(e){return e.match(sB)||[]}var uB=lB,cB=X6,fB=Mk,dB=uB;function hB(e){return fB(e)?dB(e):cB(e)}var pB=hB,mB=L6,yB=Mk,vB=pB,gB=kk;function bB(e){return function(t){t=gB(t);var r=yB(t)?vB(t):void 0,n=r?r[0]:t.charAt(0),i=r?mB(r,1).join(""):t.slice(1);return n[e]()+i}}var xB=bB,wB=xB,SB=wB("toUpperCase"),OB=SB;const Ph=je(OB);function Ce(e){return function(){return e}}const Fk=Math.cos,zf=Math.sin,Hr=Math.sqrt,Bf=Math.PI,Ah=2*Bf,Hy=Math.PI,Vy=2*Hy,Xi=1e-6,_B=Vy-Xi;function Uk(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function jB(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Uk;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class PB{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Uk:jB(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,f=o-t,c=s-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Xi)if(!(Math.abs(c*l-u*f)>Xi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-s,y=l*l+u*u,v=p*p+m*m,g=Math.sqrt(y),b=Math.sqrt(d),x=a*Math.tan((Hy-Math.acos((y+d-v)/(2*g*b)))/2),S=x/b,w=x/g;Math.abs(S-1)>Xi&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+w*l},${this._y1=r+w*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Xi||Math.abs(this._y1-f)>Xi)&&this._append`L${u},${f}`,n&&(d<0&&(d=d%Vy+Vy),d>_B?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:d>Xi&&this._append`A${n},${n},0,${+(d>=Hy)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function I0(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new PB(t)}function R0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Wk(e){this._context=e}Wk.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 kh(e){return new Wk(e)}function Hk(e){return e[0]}function Vk(e){return e[1]}function qk(e,t){var r=Ce(!0),n=null,i=kh,a=null,o=I0(s);e=typeof e=="function"?e:e===void 0?Hk:Ce(e),t=typeof t=="function"?t:t===void 0?Vk:Ce(t);function s(l){var u,f=(l=R0(l)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=f;++u)!(u<f&&r(c=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,u,l),+t(c,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ce(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ce(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ce(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Pc(e,t,r){var n=null,i=Ce(!0),a=null,o=kh,s=null,l=I0(u);e=typeof e=="function"?e:e===void 0?Hk:Ce(+e),t=typeof t=="function"?t:Ce(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Vk:Ce(+r);function u(c){var d,p,m,y=(c=R0(c)).length,v,g=!1,b,x=new Array(y),S=new Array(y);for(a==null&&(s=o(b=l())),d=0;d<=y;++d){if(!(d<y&&i(v=c[d],d,c))===g)if(g=!g)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=p;--m)s.point(x[m],S[m]);s.lineEnd(),s.areaEnd()}g&&(x[d]=+e(v,d,c),S[d]=+t(v,d,c),s.point(n?+n(v,d,c):x[d],r?+r(v,d,c):S[d]))}if(b)return s=null,b+""||null}function f(){return qk().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ce(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ce(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ce(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ce(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ce(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ce(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Ce(!!c),u):i},u.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),u):o},u.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),u):a},u}class Kk{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function AB(e){return new Kk(e,!0)}function kB(e){return new Kk(e,!1)}const D0={draw(e,t){const r=Hr(t/Bf);e.moveTo(r,0),e.arc(0,0,r,0,Ah)}},EB={draw(e,t){const r=Hr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Gk=Hr(1/3),NB=Gk*2,TB={draw(e,t){const r=Hr(t/NB),n=r*Gk;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},CB={draw(e,t){const r=Hr(t),n=-r/2;e.rect(n,n,r,r)}},$B=.8908130915292852,Xk=zf(Bf/10)/zf(7*Bf/10),MB=zf(Ah/10)*Xk,IB=-Fk(Ah/10)*Xk,RB={draw(e,t){const r=Hr(t*$B),n=MB*r,i=IB*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ah*a/5,s=Fk(o),l=zf(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Fp=Hr(3),DB={draw(e,t){const r=-Hr(t/(Fp*3));e.moveTo(0,r*2),e.lineTo(-Fp*r,-r),e.lineTo(Fp*r,-r),e.closePath()}},fr=-.5,dr=Hr(3)/2,qy=1/Hr(12),LB=(qy/2+1)*3,zB={draw(e,t){const r=Hr(t/LB),n=r/2,i=r*qy,a=n,o=r*qy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(fr*n-dr*i,dr*n+fr*i),e.lineTo(fr*a-dr*o,dr*a+fr*o),e.lineTo(fr*s-dr*l,dr*s+fr*l),e.lineTo(fr*n+dr*i,fr*i-dr*n),e.lineTo(fr*a+dr*o,fr*o-dr*a),e.lineTo(fr*s+dr*l,fr*l-dr*s),e.closePath()}};function BB(e,t){let r=null,n=I0(i);e=typeof e=="function"?e:Ce(e||D0),t=typeof t=="function"?t:Ce(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ce(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ce(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ff(){}function Uf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Qk(e){this._context=e}Qk.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:Uf(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:Uf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FB(e){return new Qk(e)}function Yk(e){this._context=e}Yk.prototype={areaStart:Ff,areaEnd:Ff,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:Uf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UB(e){return new Yk(e)}function Jk(e){this._context=e}Jk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Uf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WB(e){return new Jk(e)}function Zk(e){this._context=e}Zk.prototype={areaStart:Ff,areaEnd:Ff,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 HB(e){return new Zk(e)}function Q1(e){return e<0?-1:1}function Y1(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Q1(a)+Q1(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function J1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Up(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Wf(e){this._context=e}Wf.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:Up(this,this._t0,J1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Up(this,J1(this,r=Y1(this,e,t)),r);break;default:Up(this,this._t0,r=Y1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function eE(e){this._context=new tE(e)}(eE.prototype=Object.create(Wf.prototype)).point=function(e,t){Wf.prototype.point.call(this,t,e)};function tE(e){this._context=e}tE.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function VB(e){return new Wf(e)}function qB(e){return new eE(e)}function rE(e){this._context=e}rE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Z1(e),i=Z1(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 Z1(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function KB(e){return new rE(e)}function Eh(e,t){this._context=e,this._t=t}Eh.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function GB(e){return new Eh(e,.5)}function XB(e){return new Eh(e,0)}function QB(e){return new Eh(e,1)}function Go(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Ky(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function YB(e,t){return e[t]}function JB(e){const t=[];return t.key=e,t}function ZB(){var e=Ce([]),t=Ky,r=Go,n=YB;function i(a){var o=Array.from(e.apply(this,arguments),JB),s,l=o.length,u=-1,f;for(const c of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(c,o[s].key,u,a)]).data=c;for(s=0,f=R0(t(o));s<l;++s)o[f[s]].index=s;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ce(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ce(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ky:typeof a=="function"?a:Ce(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Go,i):r},i}function e8(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Go(e,t)}}function t8(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Go(e,t)}}function r8(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var f=e[t[s]],c=f[n][1]||0,d=f[n-1][1]||0,p=(c-d)/2,m=0;m<s;++m){var y=e[t[m]],v=y[n][1]||0,g=y[n-1][1]||0;p+=v-g}l+=c,u+=p*c}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Go(e,t)}}function Jl(e){"@babel/helpers - typeof";return Jl=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},Jl(e)}var n8=["type","size","sizeType"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){i8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i8(e,t,r){return t=a8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a8(e){var t=o8(e,"string");return Jl(t)=="symbol"?t:t+""}function o8(e,t){if(Jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s8(e,t){if(e==null)return{};var r=l8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var nE={symbolCircle:D0,symbolCross:EB,symbolDiamond:TB,symbolSquare:CB,symbolStar:RB,symbolTriangle:DB,symbolWye:zB},u8=Math.PI/180,c8=function(t){var r="symbol".concat(Ph(t));return nE[r]||D0},f8=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*u8;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},d8=function(t,r){nE["symbol".concat(Ph(t))]=r},L0=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=s8(t,n8),u=tw(tw({},l),{},{type:n,size:a,sizeType:s}),f=function(){var v=c8(n),g=BB().type(v).size(f8(a,s,n));return g()},c=u.className,d=u.cx,p=u.cy,m=ne(u,!0);return d===+d&&p===+p&&a===+a?A.createElement("path",Gy({},m,{className:fe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};L0.registerSymbol=d8;function Xo(e){"@babel/helpers - typeof";return Xo=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},Xo(e)}function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){Zl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m8(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aE(n.key),n)}}function y8(e,t,r){return t&&m8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v8(e,t,r){return t=Hf(t),g8(e,iE()?Reflect.construct(t,r||[],Hf(e).constructor):t.apply(e,r))}function g8(e,t){if(t&&(Xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b8(e)}function b8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iE=function(){return!!e})()}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hf(e)}function x8(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&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function Zl(e,t,r){return t=aE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aE(e){var t=w8(e,"string");return Xo(t)=="symbol"?t:t+""}function w8(e,t){if(Xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hr=32,z0=function(e){function t(){return p8(this,t),v8(this,t,arguments)}return x8(t,e),y8(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=hr/2,o=hr/6,s=hr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:hr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
H`).concat(hr,"M").concat(2*s,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(hr/8,"h").concat(hr,"v").concat(hr*3/4,"h").concat(-hr,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=h8({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(L0,{fill:l,cx:a,cy:a,size:hr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:hr,height:hr},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var y=p.formatter||l,v=fe(Zl(Zl({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=oe(p.value)?null:p.value;Br(!oe(p.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 b=p.inactive?u:p.color;return A.createElement("li",Xy({className:v,style:c,key:"legend-item-".concat(m)},Ma(n.props,p,m)),A.createElement(By,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(g,p,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(E.PureComponent);Zl(z0,"displayName","Legend");Zl(z0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var S8=hh;function O8(){this.__data__=new S8,this.size=0}var _8=O8;function j8(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var P8=j8;function A8(e){return this.__data__.get(e)}var k8=A8;function E8(e){return this.__data__.has(e)}var N8=E8,T8=hh,C8=P0,$8=A0,M8=200;function I8(e,t){var r=this.__data__;if(r instanceof T8){var n=r.__data__;if(!C8||n.length<M8-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $8(n)}return r.set(e,t),this.size=r.size,this}var R8=I8,D8=hh,L8=_8,z8=P8,B8=k8,F8=N8,U8=R8;function Is(e){var t=this.__data__=new D8(e);this.size=t.size}Is.prototype.clear=L8;Is.prototype.delete=z8;Is.prototype.get=B8;Is.prototype.has=F8;Is.prototype.set=U8;var oE=Is,W8="__lodash_hash_undefined__";function H8(e){return this.__data__.set(e,W8),this}var V8=H8;function q8(e){return this.__data__.has(e)}var K8=q8,G8=A0,X8=V8,Q8=K8;function Vf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new G8;++t<r;)this.add(e[t])}Vf.prototype.add=Vf.prototype.push=X8;Vf.prototype.has=Q8;var sE=Vf;function Y8(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var lE=Y8;function J8(e,t){return e.has(t)}var uE=J8,Z8=sE,eF=lE,tF=uE,rF=1,nF=2;function iF(e,t,r,n,i,a){var o=r&rF,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,p=r&nF?new Z8:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var m=e[c],y=t[c];if(n)var v=o?n(y,m,c,t,e,a):n(m,y,c,e,t,a);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!eF(t,function(g,b){if(!tF(p,b)&&(m===g||i(m,g,r,n,a)))return p.push(b)})){d=!1;break}}else if(!(m===y||i(m,y,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var cE=iF,aF=ln,oF=aF.Uint8Array,sF=oF;function lF(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var uF=lF;function cF(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var B0=cF,nw=Qu,iw=sF,fF=j0,dF=cE,hF=uF,pF=B0,mF=1,yF=2,vF="[object Boolean]",gF="[object Date]",bF="[object Error]",xF="[object Map]",wF="[object Number]",SF="[object RegExp]",OF="[object Set]",_F="[object String]",jF="[object Symbol]",PF="[object ArrayBuffer]",AF="[object DataView]",aw=nw?nw.prototype:void 0,Wp=aw?aw.valueOf:void 0;function kF(e,t,r,n,i,a,o){switch(r){case AF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case PF:return!(e.byteLength!=t.byteLength||!a(new iw(e),new iw(t)));case vF:case gF:case wF:return fF(+e,+t);case bF:return e.name==t.name&&e.message==t.message;case SF:case _F:return e==t+"";case xF:var s=hF;case OF:var l=n&mF;if(s||(s=pF),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=yF,o.set(e,t);var f=dF(s(e),s(t),n,i,a,o);return o.delete(e),f;case jF:if(Wp)return Wp.call(e)==Wp.call(t)}return!1}var EF=kF;function NF(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var fE=NF,TF=fE,CF=Zt;function $F(e,t,r){var n=t(e);return CF(e)?n:TF(n,r(e))}var MF=$F;function IF(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var RF=IF;function DF(){return[]}var LF=DF,zF=RF,BF=LF,FF=Object.prototype,UF=FF.propertyIsEnumerable,ow=Object.getOwnPropertySymbols,WF=ow?function(e){return e==null?[]:(e=Object(e),zF(ow(e),function(t){return UF.call(e,t)}))}:BF,HF=WF;function VF(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var qF=VF,KF=Ln,GF=zn,XF="[object Arguments]";function QF(e){return GF(e)&&KF(e)==XF}var YF=QF,sw=YF,JF=zn,dE=Object.prototype,ZF=dE.hasOwnProperty,eU=dE.propertyIsEnumerable,tU=sw(function(){return arguments}())?sw:function(e){return JF(e)&&ZF.call(e,"callee")&&!eU.call(e,"callee")},F0=tU,qf={exports:{}};function rU(){return!1}var nU=rU;qf.exports;(function(e,t){var r=ln,n=nU,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(qf,qf.exports);var hE=qf.exports,iU=9007199254740991,aU=/^(?:0|[1-9]\d*)$/;function oU(e,t){var r=typeof e;return t=t??iU,!!t&&(r=="number"||r!="symbol"&&aU.test(e))&&e>-1&&e%1==0&&e<t}var U0=oU,sU=9007199254740991;function lU(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sU}var W0=lU,uU=Ln,cU=W0,fU=zn,dU="[object Arguments]",hU="[object Array]",pU="[object Boolean]",mU="[object Date]",yU="[object Error]",vU="[object Function]",gU="[object Map]",bU="[object Number]",xU="[object Object]",wU="[object RegExp]",SU="[object Set]",OU="[object String]",_U="[object WeakMap]",jU="[object ArrayBuffer]",PU="[object DataView]",AU="[object Float32Array]",kU="[object Float64Array]",EU="[object Int8Array]",NU="[object Int16Array]",TU="[object Int32Array]",CU="[object Uint8Array]",$U="[object Uint8ClampedArray]",MU="[object Uint16Array]",IU="[object Uint32Array]",Re={};Re[AU]=Re[kU]=Re[EU]=Re[NU]=Re[TU]=Re[CU]=Re[$U]=Re[MU]=Re[IU]=!0;Re[dU]=Re[hU]=Re[jU]=Re[pU]=Re[PU]=Re[mU]=Re[yU]=Re[vU]=Re[gU]=Re[bU]=Re[xU]=Re[wU]=Re[SU]=Re[OU]=Re[_U]=!1;function RU(e){return fU(e)&&cU(e.length)&&!!Re[uU(e)]}var DU=RU;function LU(e){return function(t){return e(t)}}var pE=LU,Kf={exports:{}};Kf.exports;(function(e,t){var r=Sk,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Kf,Kf.exports);var zU=Kf.exports,BU=DU,FU=pE,lw=zU,uw=lw&&lw.isTypedArray,UU=uw?FU(uw):BU,mE=UU,WU=qF,HU=F0,VU=Zt,qU=hE,KU=U0,GU=mE,XU=Object.prototype,QU=XU.hasOwnProperty;function YU(e,t){var r=VU(e),n=!r&&HU(e),i=!r&&!n&&qU(e),a=!r&&!n&&!i&&GU(e),o=r||n||i||a,s=o?WU(e.length,String):[],l=s.length;for(var u in e)(t||QU.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||KU(u,l)))&&s.push(u);return s}var JU=YU,ZU=Object.prototype;function e7(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ZU;return e===r}var t7=e7;function r7(e,t){return function(r){return e(t(r))}}var yE=r7,n7=yE,i7=n7(Object.keys,Object),a7=i7,o7=t7,s7=a7,l7=Object.prototype,u7=l7.hasOwnProperty;function c7(e){if(!o7(e))return s7(e);var t=[];for(var r in Object(e))u7.call(e,r)&&r!="constructor"&&t.push(r);return t}var f7=c7,d7=_0,h7=W0;function p7(e){return e!=null&&h7(e.length)&&!d7(e)}var Yu=p7,m7=JU,y7=f7,v7=Yu;function g7(e){return v7(e)?m7(e):y7(e)}var Nh=g7,b7=MF,x7=HF,w7=Nh;function S7(e){return b7(e,w7,x7)}var O7=S7,cw=O7,_7=1,j7=Object.prototype,P7=j7.hasOwnProperty;function A7(e,t,r,n,i,a){var o=r&_7,s=cw(e),l=s.length,u=cw(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:P7.call(t,d)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var y=!0;a.set(e,t),a.set(t,e);for(var v=o;++c<l;){d=s[c];var g=e[d],b=t[d];if(n)var x=o?n(b,g,d,t,e,a):n(g,b,d,e,t,a);if(!(x===void 0?g===b||i(g,b,r,n,a):x)){y=!1;break}v||(v=d=="constructor")}if(y&&!v){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(y=!1)}return a.delete(e),a.delete(t),y}var k7=A7,E7=Ua,N7=ln,T7=E7(N7,"DataView"),C7=T7,$7=Ua,M7=ln,I7=$7(M7,"Promise"),R7=I7,D7=Ua,L7=ln,z7=D7(L7,"Set"),vE=z7,B7=Ua,F7=ln,U7=B7(F7,"WeakMap"),W7=U7,Yy=C7,Jy=P0,Zy=R7,ev=vE,tv=W7,gE=Ln,Rs=_k,fw="[object Map]",H7="[object Object]",dw="[object Promise]",hw="[object Set]",pw="[object WeakMap]",mw="[object DataView]",V7=Rs(Yy),q7=Rs(Jy),K7=Rs(Zy),G7=Rs(ev),X7=Rs(tv),Qi=gE;(Yy&&Qi(new Yy(new ArrayBuffer(1)))!=mw||Jy&&Qi(new Jy)!=fw||Zy&&Qi(Zy.resolve())!=dw||ev&&Qi(new ev)!=hw||tv&&Qi(new tv)!=pw)&&(Qi=function(e){var t=gE(e),r=t==H7?e.constructor:void 0,n=r?Rs(r):"";if(n)switch(n){case V7:return mw;case q7:return fw;case K7:return dw;case G7:return hw;case X7:return pw}return t});var Q7=Qi,Hp=oE,Y7=cE,J7=EF,Z7=k7,yw=Q7,vw=Zt,gw=hE,e9=mE,t9=1,bw="[object Arguments]",xw="[object Array]",Ac="[object Object]",r9=Object.prototype,ww=r9.hasOwnProperty;function n9(e,t,r,n,i,a){var o=vw(e),s=vw(t),l=o?xw:yw(e),u=s?xw:yw(t);l=l==bw?Ac:l,u=u==bw?Ac:u;var f=l==Ac,c=u==Ac,d=l==u;if(d&&gw(e)){if(!gw(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new Hp),o||e9(e)?Y7(e,t,r,n,i,a):J7(e,t,l,r,n,i,a);if(!(r&t9)){var p=f&&ww.call(e,"__wrapped__"),m=c&&ww.call(t,"__wrapped__");if(p||m){var y=p?e.value():e,v=m?t.value():t;return a||(a=new Hp),i(y,v,r,n,a)}}return d?(a||(a=new Hp),Z7(e,t,r,n,i,a)):!1}var i9=n9,a9=i9,Sw=zn;function bE(e,t,r,n,i){return e===t?!0:e==null||t==null||!Sw(e)&&!Sw(t)?e!==e&&t!==t:a9(e,t,r,n,bE,i)}var H0=bE,o9=oE,s9=H0,l9=1,u9=2;function c9(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new o9;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?s9(f,u,l9|u9,n,c):d))return!1}}return!0}var f9=c9,d9=Ri;function h9(e){return e===e&&!d9(e)}var xE=h9,p9=xE,m9=Nh;function y9(e){for(var t=m9(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,p9(i)]}return t}var v9=y9;function g9(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var wE=g9,b9=f9,x9=v9,w9=wE;function S9(e){var t=x9(e);return t.length==1&&t[0][2]?w9(t[0][0],t[0][1]):function(r){return r===e||b9(r,e,t)}}var O9=S9;function _9(e,t){return e!=null&&t in Object(e)}var j9=_9,P9=Ek,A9=F0,k9=Zt,E9=U0,N9=W0,T9=mh;function C9(e,t,r){t=P9(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=T9(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&N9(i)&&E9(o,i)&&(k9(e)||A9(e)))}var $9=C9,M9=j9,I9=$9;function R9(e,t){return e!=null&&I9(e,t,M9)}var D9=R9,L9=H0,z9=Nk,B9=D9,F9=O0,U9=xE,W9=wE,H9=mh,V9=1,q9=2;function K9(e,t){return F9(e)&&U9(t)?W9(H9(e),t):function(r){var n=z9(r,e);return n===void 0&&n===t?B9(r,e):L9(t,n,V9|q9)}}var G9=K9;function X9(e){return e}var Ds=X9;function Q9(e){return function(t){return t==null?void 0:t[e]}}var Y9=Q9,J9=N0;function Z9(e){return function(t){return J9(t,e)}}var eW=Z9,tW=Y9,rW=eW,nW=O0,iW=mh;function aW(e){return nW(e)?tW(iW(e)):rW(e)}var oW=aW,sW=O9,lW=G9,uW=Ds,cW=Zt,fW=oW;function dW(e){return typeof e=="function"?e:e==null?uW:typeof e=="object"?cW(e)?lW(e[0],e[1]):sW(e):fW(e)}var un=dW;function hW(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var SE=hW;function pW(e){return e!==e}var mW=pW;function yW(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var vW=yW,gW=SE,bW=mW,xW=vW;function wW(e,t,r){return t===t?xW(e,t,r):gW(e,bW,r)}var SW=wW,OW=SW;function _W(e,t){var r=e==null?0:e.length;return!!r&&OW(e,t,0)>-1}var jW=_W;function PW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var AW=PW;function kW(){}var EW=kW,Vp=vE,NW=EW,TW=B0,CW=1/0,$W=Vp&&1/TW(new Vp([,-0]))[1]==CW?function(e){return new Vp(e)}:NW,MW=$W,IW=sE,RW=jW,DW=AW,LW=uE,zW=MW,BW=B0,FW=200;function UW(e,t,r){var n=-1,i=RW,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=DW;else if(a>=FW){var u=t?null:zW(e);if(u)return BW(u);o=!1,i=LW,l=new IW}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var WW=UW,HW=un,VW=WW;function qW(e,t){return e&&e.length?VW(e,HW(t)):[]}var KW=qW;const Ow=je(KW);function OE(e,t,r){return t===!0?Ow(e,r):oe(t)?Ow(e,t):e}function Qo(e){"@babel/helpers - typeof";return Qo=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},Qo(e)}var GW=["ref"];function _w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_w(Object(r),!0).forEach(function(n){Th(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jE(n.key),n)}}function QW(e,t,r){return t&&jw(e.prototype,t),r&&jw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function YW(e,t,r){return t=Gf(t),JW(e,_E()?Reflect.construct(t,r||[],Gf(e).constructor):t.apply(e,r))}function JW(e,t){if(t&&(Qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZW(e)}function ZW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_E=function(){return!!e})()}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gf(e)}function eH(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&&rv(e,t)}function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rv(e,t)}function Th(e,t,r){return t=jE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jE(e){var t=tH(e,"string");return Qo(t)=="symbol"?t:t+""}function tH(e,t){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rH(e,t){if(e==null)return{};var r=nH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iH(e){return e.value}function aH(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=rH(t,GW);return A.createElement(z0,r)}var Pw=1,_o=function(e){function t(){var r;XW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=YW(this,t,[].concat(i)),Th(r,"lastBoundingBox",{width:-1,height:-1}),r}return eH(t,e),QW(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Pw||Math.abs(i.height-this.lastBoundingBox.height)>Pw)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?fn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return fn(fn({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=fn(fn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},aH(a,fn(fn({},this.props),{},{payload:OE(f,u,iH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=fn(fn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&V(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(E.PureComponent);Th(_o,"displayName","Legend");Th(_o,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Aw=Qu,oH=F0,sH=Zt,kw=Aw?Aw.isConcatSpreadable:void 0;function lH(e){return sH(e)||oH(e)||!!(kw&&e&&e[kw])}var uH=lH,cH=fE,fH=uH;function PE(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=fH),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?PE(s,t-1,r,n,i):cH(i,s):n||(i[i.length]=s)}return i}var AE=PE;function dH(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var hH=dH,pH=hH,mH=pH(),yH=mH,vH=yH,gH=Nh;function bH(e,t){return e&&vH(e,t,gH)}var kE=bH,xH=Yu;function wH(e,t){return function(r,n){if(r==null)return r;if(!xH(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var SH=wH,OH=kE,_H=SH,jH=_H(OH),V0=jH,PH=V0,AH=Yu;function kH(e,t){var r=-1,n=AH(e)?Array(e.length):[];return PH(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var EE=kH;function EH(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var NH=EH,Ew=ks;function TH(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Ew(e),o=t!==void 0,s=t===null,l=t===t,u=Ew(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var CH=TH,$H=CH;function MH(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=$H(i[n],a[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var IH=MH,qp=E0,RH=N0,DH=un,LH=EE,zH=NH,BH=pE,FH=IH,UH=Ds,WH=Zt;function HH(e,t,r){t.length?t=qp(t,function(a){return WH(a)?function(o){return RH(o,a.length===1?a[0]:a)}:a}):t=[UH];var n=-1;t=qp(t,BH(DH));var i=LH(e,function(a,o,s){var l=qp(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return zH(i,function(a,o){return FH(a,o,r)})}var VH=HH;function qH(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var KH=qH,GH=KH,Nw=Math.max;function XH(e,t,r){return t=Nw(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Nw(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),GH(e,this,s)}}var QH=XH;function YH(e){return function(){return e}}var JH=YH,ZH=Ua,eV=function(){try{var e=ZH(Object,"defineProperty");return e({},"",{}),e}catch{}}(),NE=eV,tV=JH,Tw=NE,rV=Ds,nV=Tw?function(e,t){return Tw(e,"toString",{configurable:!0,enumerable:!1,value:tV(t),writable:!0})}:rV,iV=nV,aV=800,oV=16,sV=Date.now;function lV(e){var t=0,r=0;return function(){var n=sV(),i=oV-(n-r);if(r=n,i>0){if(++t>=aV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var uV=lV,cV=iV,fV=uV,dV=fV(cV),hV=dV,pV=Ds,mV=QH,yV=hV;function vV(e,t){return yV(mV(e,t,pV),e+"")}var gV=vV,bV=j0,xV=Yu,wV=U0,SV=Ri;function OV(e,t,r){if(!SV(r))return!1;var n=typeof t;return(n=="number"?xV(r)&&wV(t,r.length):n=="string"&&t in r)?bV(r[t],e):!1}var Ch=OV,_V=AE,jV=VH,PV=gV,Cw=Ch,AV=PV(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Cw(e,t[0],t[1])?t=[]:r>2&&Cw(t[0],t[1],t[2])&&(t=[t[0]]),jV(e,_V(t,1),[])}),kV=AV;const q0=je(kV);function eu(e){"@babel/helpers - typeof";return eu=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},eu(e)}function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nv.apply(this,arguments)}function EV(e,t){return $V(e)||CV(e,t)||TV(e,t)||NV()}function NV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TV(e,t){if(e){if(typeof e=="string")return $w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $w(e,t)}}function $w(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function $V(e){if(Array.isArray(e))return e}function Mw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(r),!0).forEach(function(n){MV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MV(e,t,r){return t=IV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IV(e){var t=RV(e,"string");return eu(t)=="symbol"?t:t+""}function RV(e,t){if(eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DV(e){return Array.isArray(e)&&ct(e[0])&&ct(e[1])?e.join(" ~ "):e}var LV=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,y=t.label,v=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(f&&f.length){var C={padding:0,margin:0},L=(d?q0(f,d):f).map(function(R,I){if(R.type==="none")return null;var D=Kp({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},s),F=R.formatter||c||DV,T=R.value,B=R.name,U=T,K=B;if(F&&U!=null&&K!=null){var H=F(T,B,R,I,f);if(Array.isArray(H)){var X=EV(H,2);U=X[0],K=X[1]}else U=H}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:D},ct(K)?A.createElement("span",{className:"recharts-tooltip-item-name"},K):null,ct(K)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},U),A.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:C},L)}return null},S=Kp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=Kp({margin:0},u),O=!ce(y),_=O?y:"",j=fe("recharts-default-tooltip",p),P=fe("recharts-tooltip-label",m);O&&v&&f!==void 0&&f!==null&&(_=v(y,f));var N=b?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",nv({className:j,style:S},N),A.createElement("p",{className:P,style:w},A.isValidElement(_)?_:"".concat(_)),x())};function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function kc(e,t,r){return t=zV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zV(e){var t=BV(e,"string");return tu(t)=="symbol"?t:t+""}function BV(e,t){if(tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zs="recharts-tooltip-wrapper",FV={visibility:"hidden"};function UV(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return fe(Zs,kc(kc(kc(kc({},"".concat(Zs,"-right"),V(r)&&t&&V(t.x)&&r>=t.x),"".concat(Zs,"-left"),V(r)&&t&&V(t.x)&&r<t.x),"".concat(Zs,"-bottom"),V(n)&&t&&V(t.y)&&n>=t.y),"".concat(Zs,"-top"),V(n)&&t&&V(t.y)&&n<t.y))}function Iw(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&V(a[n]))return a[n];var f=r[n]-s-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var d=f,p=l[n];return d<p?Math.max(c,l[n]):Math.max(f,l[n])}var m=c+s,y=l[n]+u;return m>y?Math.max(f,l[n]):Math.max(c,l[n])}function WV(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function HV(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return o.height>0&&o.width>0&&r?(f=Iw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=Iw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=WV({translateX:f,translateY:c,useTranslate3d:s})):u=FV,{cssProperties:u,cssClasses:UV({translateX:f,translateY:c,coordinate:r})}}function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function Rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(r),!0).forEach(function(n){av(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CE(n.key),n)}}function KV(e,t,r){return t&&qV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GV(e,t,r){return t=Xf(t),XV(e,TE()?Reflect.construct(t,r||[],Xf(e).constructor):t.apply(e,r))}function XV(e,t){if(t&&(Yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QV(e)}function QV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TE=function(){return!!e})()}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xf(e)}function YV(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&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iv(e,t)}function av(e,t,r){return t=CE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CE(e){var t=JV(e,"string");return Yo(t)=="symbol"?t:t+""}function JV(e,t){if(Yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lw=1,ZV=function(e){function t(){var r;VV(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=GV(this,t,[].concat(i)),av(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),av(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),r}return YV(t,e),KV(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Lw||Math.abs(n.height-this.state.lastBoundingBox.height)>Lw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,y=i.reverseDirection,v=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=HV({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),S=x.cssClasses,w=x.cssProperties,O=Dw(Dw({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},b);return A.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(j){n.wrapperNode=j}},u)}}])}(E.PureComponent),eq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Wa={isSsr:eq()};function Jo(e){"@babel/helpers - typeof";return Jo=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},Jo(e)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){K0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ME(n.key),n)}}function nq(e,t,r){return t&&rq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iq(e,t,r){return t=Qf(t),aq(e,$E()?Reflect.construct(t,r||[],Qf(e).constructor):t.apply(e,r))}function aq(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oq(e)}function oq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($E=function(){return!!e})()}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qf(e)}function sq(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&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ov(e,t)}function K0(e,t,r){return t=ME(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ME(e){var t=lq(e,"string");return Jo(t)=="symbol"?t:t+""}function lq(e,t){if(Jo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uq(e){return e.dataKey}function cq(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(LV,t)}var Wt=function(e){function t(){return tq(this,t),iq(this,t,arguments)}return sq(t,e),nq(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,m=i.payload,y=i.payloadUniqBy,v=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,S=i.wrapperStyle,w=m??[];c&&w.length&&(w=OE(m.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),y,uq));var O=w.length>0;return A.createElement(ZV,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:f,hasPayload:O,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:S},cq(u,Bw(Bw({},this.props),{},{payload:w})))}}])}(E.PureComponent);K0(Wt,"displayName","Tooltip");K0(Wt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Wa.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 fq=ln,dq=function(){return fq.Date.now()},hq=dq,pq=/\s/;function mq(e){for(var t=e.length;t--&&pq.test(e.charAt(t)););return t}var yq=mq,vq=yq,gq=/^\s+/;function bq(e){return e&&e.slice(0,vq(e)+1).replace(gq,"")}var xq=bq,wq=xq,Fw=Ri,Sq=ks,Uw=NaN,Oq=/^[-+]0x[0-9a-f]+$/i,_q=/^0b[01]+$/i,jq=/^0o[0-7]+$/i,Pq=parseInt;function Aq(e){if(typeof e=="number")return e;if(Sq(e))return Uw;if(Fw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wq(e);var r=_q.test(e);return r||jq.test(e)?Pq(e.slice(2),r?2:8):Oq.test(e)?Uw:+e}var IE=Aq,kq=Ri,Gp=hq,Ww=IE,Eq="Expected a function",Nq=Math.max,Tq=Math.min;function Cq(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Eq);t=Ww(t)||0,kq(r)&&(f=!!r.leading,c="maxWait"in r,a=c?Nq(Ww(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(O){var _=n,j=i;return n=i=void 0,u=O,o=e.apply(j,_),o}function m(O){return u=O,s=setTimeout(g,t),f?p(O):o}function y(O){var _=O-l,j=O-u,P=t-_;return c?Tq(P,a-j):P}function v(O){var _=O-l,j=O-u;return l===void 0||_>=t||_<0||c&&j>=a}function g(){var O=Gp();if(v(O))return b(O);s=setTimeout(g,y(O))}function b(O){return s=void 0,d&&n?p(O):(n=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function S(){return s===void 0?o:b(Gp())}function w(){var O=Gp(),_=v(O);if(n=arguments,i=this,l=O,_){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),o}return w.cancel=x,w.flush=S,w}var $q=Cq,Mq=$q,Iq=Ri,Rq="Expected a function";function Dq(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Rq);return Iq(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Mq(e,t,{leading:n,maxWait:t,trailing:i})}var Lq=Dq;const RE=je(Lq);function ru(e){"@babel/helpers - typeof";return ru=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},ru(e)}function Hw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ec(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hw(Object(r),!0).forEach(function(n){zq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zq(e,t,r){return t=Bq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bq(e){var t=Fq(e,"string");return ru(t)=="symbol"?t:t+""}function Fq(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uq(e,t){return qq(e)||Vq(e,t)||Hq(e,t)||Wq()}function Wq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hq(e,t){if(e){if(typeof e=="string")return Vw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vw(e,t)}}function Vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function qq(e){if(Array.isArray(e))return e}var _l=E.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,d=e.maxHeight,p=e.children,m=e.debounce,y=m===void 0?0:m,v=e.id,g=e.className,b=e.onResize,x=e.style,S=x===void 0?{}:x,w=E.useRef(null),O=E.useRef();O.current=b,E.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var _=E.useState({containerWidth:i.width,containerHeight:i.height}),j=Uq(_,2),P=j[0],N=j[1],$=E.useCallback(function(L,R){N(function(I){var D=Math.round(L),F=Math.round(R);return I.containerWidth===D&&I.containerHeight===F?I:{containerWidth:D,containerHeight:F}})},[]);E.useEffect(function(){var L=function(B){var U,K=B[0].contentRect,H=K.width,X=K.height;$(H,X),(U=O.current)===null||U===void 0||U.call(O,H,X)};y>0&&(L=RE(L,y,{trailing:!0,leading:!1}));var R=new ResizeObserver(L),I=w.current.getBoundingClientRect(),D=I.width,F=I.height;return $(D,F),R.observe(w.current),function(){R.disconnect()}},[$,y]);var C=E.useMemo(function(){var L=P.containerWidth,R=P.containerHeight;if(L<0||R<0)return null;Br(ia(o)||ia(l),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,o,l),Br(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=ia(o)?L:o,D=ia(l)?R:l;r&&r>0&&(I?D=I/r:D&&(I=D*r),d&&D>d&&(D=d)),Br(I>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,I,D,o,l,f,c,r);var F=!Array.isArray(p)&&Pn(p.type).endsWith("Chart");return A.Children.map(p,function(T){return A.isValidElement(T)?E.cloneElement(T,Ec({width:I,height:D},F?{style:Ec({height:"100%",width:"100%",maxHeight:D,maxWidth:I},T.props.style)}:{})):T})},[r,p,l,d,c,f,P,o]);return A.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",g),style:Ec(Ec({},S),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:w},C)}),$h=function(t){return null};$h.displayName="Cell";function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){Kq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kq(e,t,r){return t=Gq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gq(e){var t=Xq(e,"string");return nu(t)=="symbol"?t:t+""}function Xq(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qa={widthCache:{},cacheCount:0},Qq=2e3,Yq={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Kw="recharts_measurement_span";function Jq(e){var t=sv({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var jl=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wa.isSsr)return{width:0,height:0};var n=Jq(r),i=JSON.stringify({text:t,copyStyle:n});if(Qa.widthCache[i])return Qa.widthCache[i];try{var a=document.getElementById(Kw);a||(a=document.createElement("span"),a.setAttribute("id",Kw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=sv(sv({},Yq),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Qa.widthCache[i]=l,++Qa.cacheCount>Qq&&(Qa.cacheCount=0,Qa.widthCache={}),l}catch{return{width:0,height:0}}},Zq=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}function Yf(e,t){return nK(e)||rK(e,t)||tK(e,t)||eK()}function eK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tK(e,t){if(e){if(typeof e=="string")return Gw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gw(e,t)}}function Gw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function nK(e){if(Array.isArray(e))return e}function iK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oK(n.key),n)}}function aK(e,t,r){return t&&Xw(e.prototype,t),r&&Xw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oK(e){var t=sK(e,"string");return iu(t)=="symbol"?t:t+""}function sK(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Yw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lK=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,uK=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,DE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},cK=Object.keys(DE),fo="NaN";function fK(e,t){return e*DE[t]}var Nc=function(){function e(t,r){iK(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!lK.test(r)&&(this.num=NaN,this.unit=""),cK.includes(r)&&(this.num=fK(t,r),this.unit="px")}return aK(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,i=(n=uK.exec(r))!==null&&n!==void 0?n:[],a=Yf(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function LE(e){if(e.includes(fo))return fo;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Qw.exec(t))!==null&&r!==void 0?r:[],i=Yf(n,4),a=i[1],o=i[2],s=i[3],l=Nc.parse(a??""),u=Nc.parse(s??""),f=o==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return fo;t=t.replace(Qw,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=Yw.exec(t))!==null&&c!==void 0?c:[],p=Yf(d,4),m=p[1],y=p[2],v=p[3],g=Nc.parse(m??""),b=Nc.parse(v??""),x=y==="+"?g.add(b):g.subtract(b);if(x.isNaN())return fo;t=t.replace(Yw,x.toString())}return t}var Jw=/\(([^()]*)\)/;function dK(e){for(var t=e;t.includes("(");){var r=Jw.exec(t),n=Yf(r,2),i=n[1];t=t.replace(Jw,LE(i))}return t}function hK(e){var t=e.replace(/\s+/g,"");return t=dK(t),t=LE(t),t}function pK(e){try{return hK(e)}catch{return fo}}function Xp(e){var t=pK(e.slice(5,-1));return t===fo?"":t}var mK=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],yK=["dx","dy","angle","className","breakAll"];function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lv.apply(this,arguments)}function Zw(e,t){if(e==null)return{};var r=vK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function eS(e,t){return wK(e)||xK(e,t)||bK(e,t)||gK()}function gK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bK(e,t){if(e){if(typeof e=="string")return tS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tS(e,t)}}function tS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function wK(e){if(Array.isArray(e))return e}var zE=/[ \f\n\r\t\v\u2028\u2029]+/,BE=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ce(r)||(n?a=r.toString().split(""):a=r.toString().split(zE));var o=a.map(function(l){return{word:l,width:jl(l,i).width}}),s=n?0:jl(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},SK=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=V(o),c=s,d=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(D,F){var T=F.word,B=F.width,U=D[D.length-1];if(U&&(i==null||a||U.width+B+n<Number(i)))U.words.push(T),U.width+=B+n;else{var K={words:[T],width:B};D.push(K)}return D},[])},p=d(r),m=function(I){return I.reduce(function(D,F){return D.width>F.width?D:F})};if(!f)return p;for(var y="…",v=function(I){var D=c.slice(0,I),F=BE({breakAll:u,style:l,children:D+y}).wordsWithComputedWidth,T=d(F),B=T.length>o||m(T).width>Number(i);return[B,T]},g=0,b=c.length-1,x=0,S;g<=b&&x<=c.length-1;){var w=Math.floor((g+b)/2),O=w-1,_=v(O),j=eS(_,2),P=j[0],N=j[1],$=v(w),C=eS($,1),L=C[0];if(!P&&!L&&(g=w+1),P&&L&&(b=w-1),!P&&L){S=N;break}x++}return S||p},rS=function(t){var r=ce(t)?[]:t.toString().split(zE);return[{words:r}]},OK=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Wa.isSsr){var l,u,f=BE({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return rS(i);return SK({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return rS(i)},nS="#808080",Ia=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,y=m===void 0?"end":m,v=t.fill,g=v===void 0?nS:v,b=Zw(t,mK),x=E.useMemo(function(){return OK({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:c,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,c,b.style,b.width]),S=b.dx,w=b.dy,O=b.angle,_=b.className,j=b.breakAll,P=Zw(b,yK);if(!ct(n)||!ct(a))return null;var N=n+(V(S)?S:0),$=a+(V(w)?w:0),C;switch(y){case"start":C=Xp("calc(".concat(u,")"));break;case"middle":C=Xp("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:C=Xp("calc(".concat(x.length-1," * -").concat(s,")"));break}var L=[];if(c){var R=x[0].width,I=b.width;L.push("scale(".concat((V(I)?I/R:1)/R,")"))}return O&&L.push("rotate(".concat(O,", ").concat(N,", ").concat($,")")),L.length&&(P.transform=L.join(" ")),A.createElement("text",lv({},ne(P,!0),{x:N,y:$,className:fe("recharts-text",_),textAnchor:p,fill:g.includes("url")?nS:g}),x.map(function(D,F){var T=D.words.join(j?"":" ");return A.createElement("tspan",{x:N,dy:F===0?C:s,key:"".concat(T,"-").concat(F)},T)}))};function Oi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _K(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function G0(e){let t,r,n;e.length!==2?(t=Oi,r=(s,l)=>Oi(e(s),l),n=(s,l)=>e(s)-l):(t=e===Oi||e===_K?e:jK,r=e,n=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:o,right:a}}function jK(){return 0}function FE(e){return e===null?NaN:+e}function*PK(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const AK=G0(Oi),Ju=AK.right;G0(FE).center;class iS extends Map{constructor(t,r=NK){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(aS(this,t))}has(t){return super.has(aS(this,t))}set(t,r){return super.set(kK(this,t),r)}delete(t){return super.delete(EK(this,t))}}function aS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function kK({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function EK({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function NK(e){return e!==null&&typeof e=="object"?e.valueOf():e}function TK(e=Oi){if(e===Oi)return UE;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function UE(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const CK=Math.sqrt(50),$K=Math.sqrt(10),MK=Math.sqrt(2);function Jf(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=CK?10:a>=$K?5:a>=MK?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?Jf(e,t,r*2):[s,l,u]}function uv(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Jf(t,e,r):Jf(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function cv(e,t,r){return t=+t,e=+e,r=+r,Jf(e,t,r)[2]}function fv(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?cv(t,e,r):cv(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function oS(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function sS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function WE(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?UE:TK(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*c/l+d)),m=Math.min(n,Math.floor(t+(l-u)*c/l+d));WE(e,t,p,m,i)}const a=e[t];let o=r,s=n;for(el(e,r,t),i(e[n],a)>0&&el(e,r,n);o<s;){for(el(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?el(e,r,s):(++s,el(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function el(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function IK(e,t,r){if(e=Float64Array.from(PK(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return sS(e);if(t>=1)return oS(e);var n,i=(n-1)*t,a=Math.floor(i),o=oS(WE(e,a).subarray(0,a+1)),s=sS(e.subarray(a+1));return o+(s-o)*(i-a)}}function RK(e,t,r=FE){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function DK(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ar(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Bn(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 dv=Symbol("implicit");function X0(){var e=new iS,t=[],r=[],n=dv;function i(a){let o=e.get(a);if(o===void 0){if(n!==dv)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new iS;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return X0(t,r).unknown(n)},Ar.apply(i,arguments),i}function au(){var e=X0().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<n,m=p?i:n,y=p?n:i;a=(y-m)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),m+=(y-m-a*(d-l))*f,o=a*(1-l),s&&(m=Math.round(m),o=Math.round(o));var v=DK(d).map(function(g){return m+a*g});return r(p?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,c()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),c()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),c()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,c()):u},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return au(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},Ar.apply(c(),arguments)}function HE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return HE(t())},e}function Pl(){return HE(au.apply(null,arguments).paddingInner(1))}function Q0(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function VE(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zu(){}var ou=.7,Zf=1/ou,jo="\\s*([+-]?\\d+)\\s*",su="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",LK=/^#([0-9a-f]{3,8})$/,zK=new RegExp(`^rgb\\(${jo},${jo},${jo}\\)$`),BK=new RegExp(`^rgb\\(${tn},${tn},${tn}\\)$`),FK=new RegExp(`^rgba\\(${jo},${jo},${jo},${su}\\)$`),UK=new RegExp(`^rgba\\(${tn},${tn},${tn},${su}\\)$`),WK=new RegExp(`^hsl\\(${su},${tn},${tn}\\)$`),HK=new RegExp(`^hsla\\(${su},${tn},${tn},${su}\\)$`),lS={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};Q0(Zu,lu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uS,formatHex:uS,formatHex8:VK,formatHsl:qK,formatRgb:cS,toString:cS});function uS(){return this.rgb().formatHex()}function VK(){return this.rgb().formatHex8()}function qK(){return qE(this).formatHsl()}function cS(){return this.rgb().formatRgb()}function lu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=LK.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?fS(t):r===3?new Kt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Tc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===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=zK.exec(e))?new Kt(t[1],t[2],t[3],1):(t=BK.exec(e))?new Kt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FK.exec(e))?Tc(t[1],t[2],t[3],t[4]):(t=UK.exec(e))?Tc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WK.exec(e))?pS(t[1],t[2]/100,t[3]/100,1):(t=HK.exec(e))?pS(t[1],t[2]/100,t[3]/100,t[4]):lS.hasOwnProperty(e)?fS(lS[e]):e==="transparent"?new Kt(NaN,NaN,NaN,0):null}function fS(e){return new Kt(e>>16&255,e>>8&255,e&255,1)}function Tc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Kt(e,t,r,n)}function KK(e){return e instanceof Zu||(e=lu(e)),e?(e=e.rgb(),new Kt(e.r,e.g,e.b,e.opacity)):new Kt}function hv(e,t,r,n){return arguments.length===1?KK(e):new Kt(e,t,r,n??1)}function Kt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Q0(Kt,hv,VE(Zu,{brighter(e){return e=e==null?Zf:Math.pow(Zf,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ou:Math.pow(ou,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kt(wa(this.r),wa(this.g),wa(this.b),ed(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:dS,formatHex:dS,formatHex8:GK,formatRgb:hS,toString:hS}));function dS(){return`#${aa(this.r)}${aa(this.g)}${aa(this.b)}`}function GK(){return`#${aa(this.r)}${aa(this.g)}${aa(this.b)}${aa((isNaN(this.opacity)?1:this.opacity)*255)}`}function hS(){const e=ed(this.opacity);return`${e===1?"rgb(":"rgba("}${wa(this.r)}, ${wa(this.g)}, ${wa(this.b)}${e===1?")":`, ${e})`}`}function ed(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aa(e){return e=wa(e),(e<16?"0":"")+e.toString(16)}function pS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Dr(e,t,r,n)}function qE(e){if(e instanceof Dr)return new Dr(e.h,e.s,e.l,e.opacity);if(e instanceof Zu||(e=lu(e)),!e)return new Dr;if(e instanceof Dr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Dr(o,s,l,e.opacity)}function XK(e,t,r,n){return arguments.length===1?qE(e):new Dr(e,t,r,n??1)}function Dr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Q0(Dr,XK,VE(Zu,{brighter(e){return e=e==null?Zf:Math.pow(Zf,e),new Dr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ou:Math.pow(ou,e),new Dr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Kt(Qp(e>=240?e-240:e+120,i,n),Qp(e,i,n),Qp(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Dr(mS(this.h),Cc(this.s),Cc(this.l),ed(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=ed(this.opacity);return`${e===1?"hsl(":"hsla("}${mS(this.h)}, ${Cc(this.s)*100}%, ${Cc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function mS(e){return e=(e||0)%360,e<0?e+360:e}function Cc(e){return Math.max(0,Math.min(1,e||0))}function Qp(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Y0=e=>()=>e;function QK(e,t){return function(r){return e+r*t}}function YK(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function JK(e){return(e=+e)==1?KE:function(t,r){return r-t?YK(t,r,e):Y0(isNaN(t)?r:t)}}function KE(e,t){var r=t-e;return r?QK(e,r):Y0(isNaN(e)?t:e)}const yS=function e(t){var r=JK(t);function n(i,a){var o=r((i=hv(i)).r,(a=hv(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=KE(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function ZK(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function eG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tG(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ls(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function rG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function td(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function nG(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ls(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var pv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yp=new RegExp(pv.source,"g");function iG(e){return function(){return e}}function aG(e){return function(t){return e(t)+""}}function oG(e,t){var r=pv.lastIndex=Yp.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=pv.exec(e))&&(i=Yp.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:td(n,i)})),r=Yp.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?aG(l[0].x):iG(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function Ls(e,t){var r=typeof t,n;return t==null||r==="boolean"?Y0(t):(r==="number"?td:r==="string"?(n=lu(t))?(t=n,yS):oG:t instanceof lu?yS:t instanceof Date?rG:eG(t)?ZK:Array.isArray(t)?tG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?nG:td)(e,t)}function J0(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function sG(e,t){t===void 0&&(t=e,e=Ls);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function lG(e){return function(){return e}}function rd(e){return+e}var vS=[0,1];function Rt(e){return e}function mv(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:lG(isNaN(t)?NaN:.5)}function uG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function cG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=mv(i,n),a=r(o,a)):(n=mv(n,i),a=r(a,o)),function(s){return a(n(s))}}function fG(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=mv(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Ju(e,s,1,n)-1;return a[l](i[l](s))}}function ec(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mh(){var e=vS,t=vS,r=Ls,n,i,a,o=Rt,s,l,u;function f(){var d=Math.min(e.length,t.length);return o!==Rt&&(o=uG(e[0],e[d-1])),s=d>2?fG:cG,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((u||(u=s(t,e.map(n),td)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,rd),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=J0,f()},c.clamp=function(d){return arguments.length?(o=d?!0:Rt,f()):o!==Rt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function Z0(){return Mh()(Rt,Rt)}function dG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nd(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Zo(e){return e=nd(Math.abs(e)),e?e[1]:NaN}function hG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function pG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var mG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uu(e){if(!(t=mG.exec(e)))throw new Error("invalid format: "+e);var t;return new eb({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]})}uu.prototype=eb.prototype;function eb(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+""}eb.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 yG(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var id;function vG(e,t){var r=nd(e,t);if(!r)return id=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(id=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+nd(e,Math.max(0,t+a-1))[0]}function gS(e,t){var r=nd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const bS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:dG,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)=>gS(e*100,t),r:gS,s:vG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xS(e){return e}var wS=Array.prototype.map,SS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gG(e){var t=e.grouping===void 0||e.thousands===void 0?xS:hG(wS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?xS:pG(wS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,d){c=uu(c);var p=c.fill,m=c.align,y=c.sign,v=c.symbol,g=c.zero,b=c.width,x=c.comma,S=c.precision,w=c.trim,O=c.type;O==="n"?(x=!0,O="g"):bS[O]||(S===void 0&&(S=12),w=!0,O="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),j=(v==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),P=bS[O],N=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function $(C){var L=_,R=j,I,D,F;if(O==="c")R=P(C)+R,C="";else{C=+C;var T=C<0||1/C<0;if(C=isNaN(C)?l:P(Math.abs(C),S),w&&(C=yG(C)),T&&+C==0&&y!=="+"&&(T=!1),L=(T?y==="("?y:s:y==="-"||y==="("?"":y)+L,R=(O==="s"&&!isNaN(C)&&id!==void 0?SS[8+id/3]:"")+R+(T&&y==="("?")":""),N){for(I=-1,D=C.length;++I<D;)if(F=C.charCodeAt(I),48>F||F>57){R=(F===46?i+C.slice(I+1):C.slice(I))+R,C=C.slice(0,I);break}}}x&&!g&&(C=t(C,1/0));var B=L.length+C.length+R.length,U=B<b?new Array(b-B+1).join(p):"";switch(x&&g&&(C=t(U+C,U.length?b-R.length:1/0),U=""),m){case"<":C=L+C+R+U;break;case"=":C=L+U+C+R;break;case"^":C=U.slice(0,B=U.length>>1)+L+C+R+U.slice(B);break;default:C=U+L+C+R;break}return a(C)}return $.toString=function(){return c+""},$}function f(c,d){var p=Math.max(-8,Math.min(8,Math.floor(Zo(d)/3)))*3,m=Math.pow(10,-p),y=u((c=uu(c),c.type="f",c),{suffix:SS[8+p/3]});return function(v){return y(m*v)}}return{format:u,formatPrefix:f}}var $c,tb,GE;bG({thousands:",",grouping:[3],currency:["$",""]});function bG(e){return $c=gG(e),tb=$c.format,GE=$c.formatPrefix,$c}function xG(e){return Math.max(0,-Zo(Math.abs(e)))}function wG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Zo(t)/3)))*3-Zo(Math.abs(e)))}function SG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Zo(t)-Zo(e))+1}function XE(e,t,r,n){var i=fv(e,t,r),a;switch(n=uu(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=wG(i,o))&&(n.precision=a),GE(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=SG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=xG(i))&&(n.precision=a-(n.type==="%")*2);break}}return tb(n)}function Di(e){var t=e.domain;return e.ticks=function(r){var n=t();return uv(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return XE(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,f=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);f-- >0;){if(u=cv(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function ad(){var e=Z0();return e.copy=function(){return ec(e,ad())},Ar.apply(e,arguments),Di(e)}function QE(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,rd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return QE(e).unknown(t)},e=arguments.length?Array.from(e,rd):[0,1],Di(r)}function YE(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function OS(e){return Math.log(e)}function _S(e){return Math.exp(e)}function OG(e){return-Math.log(-e)}function _G(e){return-Math.exp(-e)}function jG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function PG(e){return e===10?jG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function AG(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 jS(e){return(t,r)=>-e(-t,r)}function rb(e){const t=e(OS,_S),r=t.domain;let n=10,i,a;function o(){return i=AG(n),a=PG(n),r()[0]<0?(i=jS(i),a=jS(a),e(OG,_G)):e(OS,_S),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let d=i(u),p=i(f),m,y;const v=s==null?10:+s;let g=[];if(!(n%1)&&p-d<v){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<n;++m)if(y=d<0?m/a(-d):m*a(d),!(y<u)){if(y>f)break;g.push(y)}}else for(;d<=p;++d)for(m=n-1;m>=1;--m)if(y=d>0?m/a(-d):m*a(d),!(y<u)){if(y>f)break;g.push(y)}g.length*2<v&&(g=uv(u,f,v))}else g=uv(d,p,Math.min(p-d,v)).map(a);return c?g.reverse():g},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=uu(l)).precision==null&&(l.trim=!0),l=tb(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=u?l(f):""}},t.nice=()=>r(YE(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function JE(){const e=rb(Mh()).domain([1,10]);return e.copy=()=>ec(e,JE()).base(e.base()),Ar.apply(e,arguments),e}function PS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function AS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nb(e){var t=1,r=e(PS(t),AS(t));return r.constant=function(n){return arguments.length?e(PS(t=+n),AS(t)):t},Di(r)}function ZE(){var e=nb(Mh());return e.copy=function(){return ec(e,ZE()).constant(e.constant())},Ar.apply(e,arguments)}function kS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function EG(e){return e<0?-e*e:e*e}function ib(e){var t=e(Rt,Rt),r=1;function n(){return r===1?e(Rt,Rt):r===.5?e(kG,EG):e(kS(r),kS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Di(t)}function ab(){var e=ib(Mh());return e.copy=function(){return ec(e,ab()).exponent(e.exponent())},Ar.apply(e,arguments),e}function NG(){return ab.apply(null,arguments).exponent(.5)}function ES(e){return Math.sign(e)*e*e}function TG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function e2(){var e=Z0(),t=[0,1],r=!1,n;function i(a){var o=TG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(ES(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,rd)).map(ES)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return e2(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ar.apply(i,arguments),Di(i)}function t2(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=RK(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ju(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Oi),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return t2().domain(e).range(t).unknown(n)},Ar.apply(a,arguments)}function r2(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Ju(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return r2().domain([e,t]).range(i).unknown(a)},Ar.apply(Di(o),arguments)}function n2(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ju(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n2().domain(e).range(t).unknown(r)},Ar.apply(i,arguments)}const Jp=new Date,Zp=new Date;function ft(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>ft(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Jp.setTime(+a),Zp.setTime(+o),e(Jp),e(Zp),Math.floor(r(Jp,Zp))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const od=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);od.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):od);od.range;const Sn=1e3,xr=Sn*60,On=xr*60,Mn=On*24,ob=Mn*7,NS=Mn*30,em=Mn*365,oa=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Sn)},(e,t)=>(t-e)/Sn,e=>e.getUTCSeconds());oa.range;const sb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sn)},(e,t)=>{e.setTime(+e+t*xr)},(e,t)=>(t-e)/xr,e=>e.getMinutes());sb.range;const lb=ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xr)},(e,t)=>(t-e)/xr,e=>e.getUTCMinutes());lb.range;const ub=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sn-e.getMinutes()*xr)},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getHours());ub.range;const cb=ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getUTCHours());cb.range;const tc=ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xr)/Mn,e=>e.getDate()-1);tc.range;const Ih=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mn,e=>e.getUTCDate()-1);Ih.range;const i2=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mn,e=>Math.floor(e/Mn));i2.range;function Ha(e){return ft(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*xr)/ob)}const Rh=Ha(0),sd=Ha(1),CG=Ha(2),$G=Ha(3),es=Ha(4),MG=Ha(5),IG=Ha(6);Rh.range;sd.range;CG.range;$G.range;es.range;MG.range;IG.range;function Va(e){return ft(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ob)}const Dh=Va(0),ld=Va(1),RG=Va(2),DG=Va(3),ts=Va(4),LG=Va(5),zG=Va(6);Dh.range;ld.range;RG.range;DG.range;ts.range;LG.range;zG.range;const fb=ft(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());fb.range;const db=ft(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());db.range;const In=ft(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());In.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});In.range;const Rn=ft(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());Rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Rn.range;function a2(e,t,r,n,i,a){const o=[[oa,1,Sn],[oa,5,5*Sn],[oa,15,15*Sn],[oa,30,30*Sn],[a,1,xr],[a,5,5*xr],[a,15,15*xr],[a,30,30*xr],[i,1,On],[i,3,3*On],[i,6,6*On],[i,12,12*On],[n,1,Mn],[n,2,2*Mn],[r,1,ob],[t,1,NS],[t,3,3*NS],[e,1,em]];function s(u,f,c){const d=f<u;d&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:l(u,f,c),m=p?p.range(u,+f+1):[];return d?m.reverse():m}function l(u,f,c){const d=Math.abs(f-u)/c,p=G0(([,,v])=>v).right(o,d);if(p===o.length)return e.every(fv(u/em,f/em,c));if(p===0)return od.every(Math.max(fv(u,f,c),1));const[m,y]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return m.every(y)}return[s,l]}const[BG,FG]=a2(Rn,db,Dh,i2,cb,lb),[UG,WG]=a2(In,fb,Rh,tc,ub,sb);function tm(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 rm(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 tl(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function HG(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=rl(i),f=nl(i),c=rl(a),d=nl(a),p=rl(o),m=nl(o),y=rl(s),v=nl(s),g=rl(l),b=nl(l),x={a:F,A:T,b:B,B:U,c:null,d:RS,e:RS,f:hX,g:OX,G:jX,H:cX,I:fX,j:dX,L:o2,m:pX,M:mX,p:K,q:H,Q:zS,s:BS,S:yX,u:vX,U:gX,V:bX,w:xX,W:wX,x:null,X:null,y:SX,Y:_X,Z:PX,"%":LS},S={a:X,A:ie,b:be,B:ze,c:null,d:DS,e:DS,f:NX,g:BX,G:UX,H:AX,I:kX,j:EX,L:l2,m:TX,M:CX,p:we,q:gt,Q:zS,s:BS,S:$X,u:MX,U:IX,V:RX,w:DX,W:LX,x:null,X:null,y:zX,Y:FX,Z:WX,"%":LS},w={a:N,A:$,b:C,B:L,c:R,d:MS,e:MS,f:oX,g:$S,G:CS,H:IS,I:IS,j:rX,L:aX,m:tX,M:nX,p:P,q:eX,Q:lX,s:uX,S:iX,u:XG,U:QG,V:YG,w:GG,W:JG,x:I,X:D,y:$S,Y:CS,Z:ZG,"%":sX};x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),S.x=O(r,S),S.X=O(n,S),S.c=O(t,S);function O(G,le){return function(ue){var W=[],Ve=-1,ve=0,tt=G.length,rt,Bt,Un;for(ue instanceof Date||(ue=new Date(+ue));++Ve<tt;)G.charCodeAt(Ve)===37&&(W.push(G.slice(ve,Ve)),(Bt=TS[rt=G.charAt(++Ve)])!=null?rt=G.charAt(++Ve):Bt=rt==="e"?" ":"0",(Un=le[rt])&&(rt=Un(ue,Bt)),W.push(rt),ve=Ve+1);return W.push(G.slice(ve,Ve)),W.join("")}}function _(G,le){return function(ue){var W=tl(1900,void 0,1),Ve=j(W,G,ue+="",0),ve,tt;if(Ve!=ue.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(le&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(ve=rm(tl(W.y,0,1)),tt=ve.getUTCDay(),ve=tt>4||tt===0?ld.ceil(ve):ld(ve),ve=Ih.offset(ve,(W.V-1)*7),W.y=ve.getUTCFullYear(),W.m=ve.getUTCMonth(),W.d=ve.getUTCDate()+(W.w+6)%7):(ve=tm(tl(W.y,0,1)),tt=ve.getDay(),ve=tt>4||tt===0?sd.ceil(ve):sd(ve),ve=tc.offset(ve,(W.V-1)*7),W.y=ve.getFullYear(),W.m=ve.getMonth(),W.d=ve.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),tt="Z"in W?rm(tl(W.y,0,1)).getUTCDay():tm(tl(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(tt+5)%7:W.w+W.U*7-(tt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,rm(W)):tm(W)}}function j(G,le,ue,W){for(var Ve=0,ve=le.length,tt=ue.length,rt,Bt;Ve<ve;){if(W>=tt)return-1;if(rt=le.charCodeAt(Ve++),rt===37){if(rt=le.charAt(Ve++),Bt=w[rt in TS?le.charAt(Ve++):rt],!Bt||(W=Bt(G,ue,W))<0)return-1}else if(rt!=ue.charCodeAt(W++))return-1}return W}function P(G,le,ue){var W=u.exec(le.slice(ue));return W?(G.p=f.get(W[0].toLowerCase()),ue+W[0].length):-1}function N(G,le,ue){var W=p.exec(le.slice(ue));return W?(G.w=m.get(W[0].toLowerCase()),ue+W[0].length):-1}function $(G,le,ue){var W=c.exec(le.slice(ue));return W?(G.w=d.get(W[0].toLowerCase()),ue+W[0].length):-1}function C(G,le,ue){var W=g.exec(le.slice(ue));return W?(G.m=b.get(W[0].toLowerCase()),ue+W[0].length):-1}function L(G,le,ue){var W=y.exec(le.slice(ue));return W?(G.m=v.get(W[0].toLowerCase()),ue+W[0].length):-1}function R(G,le,ue){return j(G,t,le,ue)}function I(G,le,ue){return j(G,r,le,ue)}function D(G,le,ue){return j(G,n,le,ue)}function F(G){return o[G.getDay()]}function T(G){return a[G.getDay()]}function B(G){return l[G.getMonth()]}function U(G){return s[G.getMonth()]}function K(G){return i[+(G.getHours()>=12)]}function H(G){return 1+~~(G.getMonth()/3)}function X(G){return o[G.getUTCDay()]}function ie(G){return a[G.getUTCDay()]}function be(G){return l[G.getUTCMonth()]}function ze(G){return s[G.getUTCMonth()]}function we(G){return i[+(G.getUTCHours()>=12)]}function gt(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var le=O(G+="",x);return le.toString=function(){return G},le},parse:function(G){var le=_(G+="",!1);return le.toString=function(){return G},le},utcFormat:function(G){var le=O(G+="",S);return le.toString=function(){return G},le},utcParse:function(G){var le=_(G+="",!0);return le.toString=function(){return G},le}}}var TS={"-":"",_:" ",0:"0"},vt=/^\s*\d+/,VG=/^%/,qG=/[\\^$*+?|[\]().{}]/g;function xe(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function KG(e){return e.replace(qG,"\\$&")}function rl(e){return new RegExp("^(?:"+e.map(KG).join("|")+")","i")}function nl(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function GG(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function XG(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function QG(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function YG(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function JG(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function CS(e,t,r){var n=vt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function $S(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ZG(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function tX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function MS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function rX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function IS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function nX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function iX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function aX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function oX(e,t,r){var n=vt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function sX(e,t,r){var n=VG.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function lX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function uX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function RS(e,t){return xe(e.getDate(),t,2)}function cX(e,t){return xe(e.getHours(),t,2)}function fX(e,t){return xe(e.getHours()%12||12,t,2)}function dX(e,t){return xe(1+tc.count(In(e),e),t,3)}function o2(e,t){return xe(e.getMilliseconds(),t,3)}function hX(e,t){return o2(e,t)+"000"}function pX(e,t){return xe(e.getMonth()+1,t,2)}function mX(e,t){return xe(e.getMinutes(),t,2)}function yX(e,t){return xe(e.getSeconds(),t,2)}function vX(e){var t=e.getDay();return t===0?7:t}function gX(e,t){return xe(Rh.count(In(e)-1,e),t,2)}function s2(e){var t=e.getDay();return t>=4||t===0?es(e):es.ceil(e)}function bX(e,t){return e=s2(e),xe(es.count(In(e),e)+(In(e).getDay()===4),t,2)}function xX(e){return e.getDay()}function wX(e,t){return xe(sd.count(In(e)-1,e),t,2)}function SX(e,t){return xe(e.getFullYear()%100,t,2)}function OX(e,t){return e=s2(e),xe(e.getFullYear()%100,t,2)}function _X(e,t){return xe(e.getFullYear()%1e4,t,4)}function jX(e,t){var r=e.getDay();return e=r>=4||r===0?es(e):es.ceil(e),xe(e.getFullYear()%1e4,t,4)}function PX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xe(t/60|0,"0",2)+xe(t%60,"0",2)}function DS(e,t){return xe(e.getUTCDate(),t,2)}function AX(e,t){return xe(e.getUTCHours(),t,2)}function kX(e,t){return xe(e.getUTCHours()%12||12,t,2)}function EX(e,t){return xe(1+Ih.count(Rn(e),e),t,3)}function l2(e,t){return xe(e.getUTCMilliseconds(),t,3)}function NX(e,t){return l2(e,t)+"000"}function TX(e,t){return xe(e.getUTCMonth()+1,t,2)}function CX(e,t){return xe(e.getUTCMinutes(),t,2)}function $X(e,t){return xe(e.getUTCSeconds(),t,2)}function MX(e){var t=e.getUTCDay();return t===0?7:t}function IX(e,t){return xe(Dh.count(Rn(e)-1,e),t,2)}function u2(e){var t=e.getUTCDay();return t>=4||t===0?ts(e):ts.ceil(e)}function RX(e,t){return e=u2(e),xe(ts.count(Rn(e),e)+(Rn(e).getUTCDay()===4),t,2)}function DX(e){return e.getUTCDay()}function LX(e,t){return xe(ld.count(Rn(e)-1,e),t,2)}function zX(e,t){return xe(e.getUTCFullYear()%100,t,2)}function BX(e,t){return e=u2(e),xe(e.getUTCFullYear()%100,t,2)}function FX(e,t){return xe(e.getUTCFullYear()%1e4,t,4)}function UX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ts(e):ts.ceil(e),xe(e.getUTCFullYear()%1e4,t,4)}function WX(){return"+0000"}function LS(){return"%"}function zS(e){return+e}function BS(e){return Math.floor(+e/1e3)}var Ya,c2,f2;HX({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 HX(e){return Ya=HG(e),c2=Ya.format,Ya.parse,f2=Ya.utcFormat,Ya.utcParse,Ya}function VX(e){return new Date(e)}function qX(e){return e instanceof Date?+e:+new Date(+e)}function hb(e,t,r,n,i,a,o,s,l,u){var f=Z0(),c=f.invert,d=f.domain,p=u(".%L"),m=u(":%S"),y=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),b=u("%b %d"),x=u("%B"),S=u("%Y");function w(O){return(l(O)<O?p:s(O)<O?m:o(O)<O?y:a(O)<O?v:n(O)<O?i(O)<O?g:b:r(O)<O?x:S)(O)}return f.invert=function(O){return new Date(c(O))},f.domain=function(O){return arguments.length?d(Array.from(O,qX)):d().map(VX)},f.ticks=function(O){var _=d();return e(_[0],_[_.length-1],O??10)},f.tickFormat=function(O,_){return _==null?w:u(_)},f.nice=function(O){var _=d();return(!O||typeof O.range!="function")&&(O=t(_[0],_[_.length-1],O??10)),O?d(YE(_,O)):f},f.copy=function(){return ec(f,hb(e,t,r,n,i,a,o,s,l,u))},f}function KX(){return Ar.apply(hb(UG,WG,In,fb,Rh,tc,ub,sb,oa,c2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function GX(){return Ar.apply(hb(BG,FG,Rn,db,Dh,Ih,cb,lb,oa,f2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lh(){var e=0,t=1,r,n,i,a,o=Rt,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:o(i===0?.5:(c=(a(c)-r)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(d){var p,m;return arguments.length?([p,m]=d,o=c(p,m),u):[o(0),o(1)]}}return u.range=f(Ls),u.rangeRound=f(J0),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),u}}function Li(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function d2(){var e=Di(Lh()(Rt));return e.copy=function(){return Li(e,d2())},Bn.apply(e,arguments)}function h2(){var e=rb(Lh()).domain([1,10]);return e.copy=function(){return Li(e,h2()).base(e.base())},Bn.apply(e,arguments)}function p2(){var e=nb(Lh());return e.copy=function(){return Li(e,p2()).constant(e.constant())},Bn.apply(e,arguments)}function pb(){var e=ib(Lh());return e.copy=function(){return Li(e,pb()).exponent(e.exponent())},Bn.apply(e,arguments)}function XX(){return pb.apply(null,arguments).exponent(.5)}function m2(){var e=[],t=Rt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ju(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Oi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>IK(e,a/n))},r.copy=function(){return m2(t).domain(e)},Bn.apply(r,arguments)}function zh(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Rt,f,c=!1,d;function p(y){return isNaN(y=+y)?d:(y=.5+((y=+f(y))-a)*(n*y<n*a?s:l),u(c?Math.max(0,Math.min(1,y)):y))}p.domain=function(y){return arguments.length?([e,t,r]=y,i=f(e=+e),a=f(t=+t),o=f(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(y){return arguments.length?(c=!!y,p):c},p.interpolator=function(y){return arguments.length?(u=y,p):u};function m(y){return function(v){var g,b,x;return arguments.length?([g,b,x]=v,u=sG(y,[g,b,x]),p):[u(0),u(.5),u(1)]}}return p.range=m(Ls),p.rangeRound=m(J0),p.unknown=function(y){return arguments.length?(d=y,p):d},function(y){return f=y,i=y(e),a=y(t),o=y(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function y2(){var e=Di(zh()(Rt));return e.copy=function(){return Li(e,y2())},Bn.apply(e,arguments)}function v2(){var e=rb(zh()).domain([.1,1,10]);return e.copy=function(){return Li(e,v2()).base(e.base())},Bn.apply(e,arguments)}function g2(){var e=nb(zh());return e.copy=function(){return Li(e,g2()).constant(e.constant())},Bn.apply(e,arguments)}function mb(){var e=ib(zh());return e.copy=function(){return Li(e,mb()).exponent(e.exponent())},Bn.apply(e,arguments)}function QX(){return mb.apply(null,arguments).exponent(.5)}const FS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:au,scaleDiverging:y2,scaleDivergingLog:v2,scaleDivergingPow:mb,scaleDivergingSqrt:QX,scaleDivergingSymlog:g2,scaleIdentity:QE,scaleImplicit:dv,scaleLinear:ad,scaleLog:JE,scaleOrdinal:X0,scalePoint:Pl,scalePow:ab,scaleQuantile:t2,scaleQuantize:r2,scaleRadial:e2,scaleSequential:d2,scaleSequentialLog:h2,scaleSequentialPow:pb,scaleSequentialQuantile:m2,scaleSequentialSqrt:XX,scaleSequentialSymlog:p2,scaleSqrt:NG,scaleSymlog:ZE,scaleThreshold:n2,scaleTime:KX,scaleUtc:GX,tickFormat:XE},Symbol.toStringTag,{value:"Module"}));var YX=ks;function JX(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!YX(o):r(o,s)))var s=o,l=a}return l}var Bh=JX;function ZX(e,t){return e>t}var b2=ZX,eQ=Bh,tQ=b2,rQ=Ds;function nQ(e){return e&&e.length?eQ(e,rQ,tQ):void 0}var iQ=nQ;const fi=je(iQ);function aQ(e,t){return e<t}var x2=aQ,oQ=Bh,sQ=x2,lQ=Ds;function uQ(e){return e&&e.length?oQ(e,lQ,sQ):void 0}var cQ=uQ;const Fh=je(cQ);var fQ=E0,dQ=un,hQ=EE,pQ=Zt;function mQ(e,t){var r=pQ(e)?fQ:hQ;return r(e,dQ(t))}var yQ=mQ,vQ=AE,gQ=yQ;function bQ(e,t){return vQ(gQ(e,t),1)}var xQ=bQ;const wQ=je(xQ);var SQ=H0;function OQ(e,t){return SQ(e,t)}var _Q=OQ;const rs=je(_Q);var zs=1e9,jQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},vb,Fe=!0,jr="[DecimalError] ",Sa=jr+"Invalid argument: ",yb=jr+"Exponent out of range: ",Bs=Math.floor,Yi=Math.pow,PQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nr,ht=1e7,De=7,w2=9007199254740991,ud=Bs(w2/De),J={};J.absoluteValue=J.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};J.comparedTo=J.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*De;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};J.dividedBy=J.div=function(e){return An(this,new this.constructor(e))};J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Ne(An(t,new r(e),0,1),r.precision)};J.equals=J.eq=function(e){return!this.cmp(e)};J.exponent=function(){return et(this)};J.greaterThan=J.gt=function(e){return this.cmp(e)>0};J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0};J.isInteger=J.isint=function(){return this.e>this.d.length-2};J.isNegative=J.isneg=function(){return this.s<0};J.isPositive=J.ispos=function(){return this.s>0};J.isZero=function(){return this.s===0};J.lessThan=J.lt=function(e){return this.cmp(e)<0};J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1};J.logarithm=J.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(nr))throw Error(jr+"NaN");if(r.s<1)throw Error(jr+(r.s?"NaN":"-Infinity"));return r.eq(nr)?new n(0):(Fe=!1,t=An(cu(r,a),cu(e,a),a),Fe=!0,Ne(t,i))};J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_2(t,e):S2(t,(e.s=-e.s,e))};J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(jr+"NaN");return r.s?(Fe=!1,t=An(r,e,0,1).times(e),Fe=!0,r.minus(t)):Ne(new n(r),i)};J.naturalExponential=J.exp=function(){return O2(this)};J.naturalLogarithm=J.ln=function(){return cu(this)};J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S2(t,e):_2(t,(e.s=-e.s,e))};J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Sa+e);if(t=et(i)+1,n=i.d.length-1,r=n*De+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(jr+"NaN")}for(e=et(s),Fe=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Yr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Bs((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(An(s,a,o+2)).times(.5),Yr(a.d).slice(0,o)===(t=Yr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ne(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fe=!0,Ne(n,r)};J.times=J.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=d.length,u=p.length,l<u&&(a=d,d=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*d[i-n-1]+t,a[i--]=s%ht|0,t=s/ht|0;a[i]=(a[i]+t)%ht|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Fe?Ne(e,c.precision):e};J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(nn(e,0,zs),t===void 0?t=n.rounding:nn(t,0,8),Ne(r,e+et(r)+1,t))};J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ra(n,!0):(nn(e,0,zs),t===void 0?t=i.rounding:nn(t,0,8),n=Ne(new i(n),e+1,t),r=Ra(n,!0,e+1)),r};J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ra(i):(nn(e,0,zs),t===void 0?t=a.rounding:nn(t,0,8),n=Ne(new a(i),e+et(i)+1,t),r=Ra(n.abs(),!1,e+et(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Ne(new t(e),et(e)+1,t.rounding)};J.toNumber=function(){return+this};J.toPower=J.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(nr);if(s=new l(s),!s.s){if(e.s<1)throw Error(jr+"Infinity");return s}if(s.eq(nr))return s;if(n=l.precision,e.eq(nr))return Ne(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=w2){for(i=new l(nr),t=Math.ceil(n/De+4),Fe=!1;r%2&&(i=i.times(s),WS(i.d,t)),r=Bs(r/2),r!==0;)s=s.times(s),WS(s.d,t);return Fe=!0,e.s<0?new l(nr).div(i):Ne(i,n)}}else if(a<0)throw Error(jr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fe=!1,i=e.times(cu(s,n+u)),Fe=!0,i=O2(i),i.s=a,i};J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=et(i),n=Ra(i,r<=a.toExpNeg||r>=a.toExpPos)):(nn(e,1,zs),t===void 0?t=a.rounding:nn(t,0,8),i=Ne(new a(i),e,t),r=et(i),n=Ra(i,e<=r||r<=a.toExpNeg,e)),n};J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(nn(e,1,zs),t===void 0?t=n.rounding:nn(t,0,8)),Ne(new n(r),e,t)};J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=et(e),r=e.constructor;return Ra(e,t<=r.toExpNeg||t>=r.toExpPos)};function S2(e,t){var r,n,i,a,o,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Fe?Ne(t,c):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(c/De),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ht|0,l[a]%=ht;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Fe?Ne(t,c):t}function nn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Sa+e)}function Yr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=De-n.length,r&&(a+=Xn(r)),a+=n;o=e[t],n=o+"",r=De-n.length,r&&(a+=Xn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var An=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ht|0,o=a/ht|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ht+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,f,c,d,p,m,y,v,g,b,x,S,w,O,_,j,P=n.constructor,N=n.s==i.s?1:-1,$=n.d,C=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(jr+"Division by zero");for(l=n.e-i.e,_=C.length,w=$.length,p=new P(N),m=p.d=[],u=0;C[u]==($[u]||0);)++u;if(C[u]>($[u]||0)&&--l,a==null?b=a=P.precision:o?b=a+(et(n)-et(i))+1:b=a,b<0)return new P(0);if(b=b/De+2|0,u=0,_==1)for(f=0,C=C[0],b++;(u<w||f)&&b--;u++)x=f*ht+($[u]||0),m[u]=x/C|0,f=x%C|0;else{for(f=ht/(C[0]+1)|0,f>1&&(C=e(C,f),$=e($,f),_=C.length,w=$.length),S=_,y=$.slice(0,_),v=y.length;v<_;)y[v++]=0;j=C.slice(),j.unshift(0),O=C[0],C[1]>=ht/2&&++O;do f=0,s=t(C,y,_,v),s<0?(g=y[0],_!=v&&(g=g*ht+(y[1]||0)),f=g/O|0,f>1?(f>=ht&&(f=ht-1),c=e(C,f),d=c.length,v=y.length,s=t(c,y,d,v),s==1&&(f--,r(c,_<d?j:C,d))):(f==0&&(s=f=1),c=C.slice()),d=c.length,d<v&&c.unshift(0),r(y,c,v),s==-1&&(v=y.length,s=t(C,y,_,v),s<1&&(f++,r(y,_<v?j:C,v))),v=y.length):s===0&&(f++,y=[0]),m[u++]=f,s&&y[0]?y[v++]=$[S]||0:(y=[$[S]],v=1);while((S++<w||y[0]!==void 0)&&b--)}return m[0]||m.shift(),p.e=l,Ne(p,o?a+et(p)+1:a)}}();function O2(e,t){var r,n,i,a,o,s,l=0,u=0,f=e.constructor,c=f.precision;if(et(e)>16)throw Error(yb+et(e));if(!e.s)return new f(nr);for(Fe=!1,s=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Yi(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(nr),f.precision=s;;){if(i=Ne(i.times(e),s),r=r.times(++l),o=a.plus(An(i,r,s)),Yr(o.d).slice(0,s)===Yr(a.d).slice(0,s)){for(;u--;)a=Ne(a.times(a),s);return f.precision=c,t==null?(Fe=!0,Ne(a,c)):a}a=o}}function et(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function nm(e,t,r){if(t>e.LN10.sd())throw Fe=!0,r&&(e.precision=r),Error(jr+"LN10 precision limit exceeded");return Ne(new e(e.LN10),t)}function Xn(e){for(var t="";e--;)t+="0";return t}function cu(e,t){var r,n,i,a,o,s,l,u,f,c=1,d=10,p=e,m=p.d,y=p.constructor,v=y.precision;if(p.s<1)throw Error(jr+(p.s?"NaN":"-Infinity"));if(p.eq(nr))return new y(0);if(t==null?(Fe=!1,u=v):u=t,p.eq(10))return t==null&&(Fe=!0),nm(y,u);if(u+=d,y.precision=u,r=Yr(m),n=r.charAt(0),a=et(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Yr(p.d),n=r.charAt(0),c++;a=et(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return l=nm(y,u+2,v).times(a+""),p=cu(new y(n+"."+r.slice(1)),u-d).plus(l),y.precision=v,t==null?(Fe=!0,Ne(p,v)):p;for(s=o=p=An(p.minus(nr),p.plus(nr),u),f=Ne(p.times(p),u),i=3;;){if(o=Ne(o.times(f),u),l=s.plus(An(o,new y(i),u)),Yr(l.d).slice(0,u)===Yr(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(nm(y,u+2,v).times(a+""))),s=An(s,new y(c),u),y.precision=v,t==null?(Fe=!0,Ne(s,v)):s;s=l,i+=2}}function US(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Bs(r/De),e.d=[],n=(r+1)%De,r<0&&(n+=De),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=De;n<i;)e.d.push(+t.slice(n,n+=De));t=t.slice(n),n=De-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Fe&&(e.e>ud||e.e<-ud))throw Error(yb+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ne(e,t,r){var n,i,a,o,s,l,u,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=De,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/De),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=De,i=n-De+o}if(r!==void 0&&(a=Yi(10,o-i-1),s=u/a%10|0,l=t<0||c[f+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Yi(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=et(e),c.length=1,t=t-a-1,c[0]=Yi(10,(De-t%De)%De),e.e=Bs(-t/De)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Yi(10,De-n),c[f]=i>0?(u/Yi(10,o-i)%Yi(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==ht&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ht)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Fe&&(e.e>ud||e.e<-ud))throw Error(yb+et(e));return e}function _2(e,t){var r,n,i,a,o,s,l,u,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fe?Ne(t,p):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(f=o<0,f?(r=l,o=-o,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(p/De),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}o=0}for(f&&(r=l,l=c,c=r,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>o;){if(l[--i]<c[i]){for(a=i;a&&l[--a]===0;)l[a]=ht-1;--l[a],l[i]+=ht}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Fe?Ne(t,p):t):new d(0)}function Ra(e,t,r){var n,i=et(e),a=Yr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Xn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Xn(-i-1)+a,r&&(n=r-o)>0&&(a+=Xn(n))):i>=o?(a+=Xn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Xn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Xn(n))),e.s<0?"-"+a:a}function WS(e,t){if(e.length>t)return e.length=t,!0}function j2(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Sa+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return US(o,a.toString())}else if(typeof a!="string")throw Error(Sa+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,PQ.test(a))US(o,a);else throw Error(Sa+a)}if(i.prototype=J,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j2,i.config=i.set=AQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function AQ(e){if(!e||typeof e!="object")throw Error(jr+"Object expected");var t,r,n,i=["precision",1,zs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Bs(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Sa+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sa+r+": "+n);return this}var vb=j2(jQ);nr=new vb(1);const Ae=vb;function kQ(e){return CQ(e)||TQ(e)||NQ(e)||EQ()}function EQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NQ(e,t){if(e){if(typeof e=="string")return yv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yv(e,t)}}function TQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function CQ(e){if(Array.isArray(e))return yv(e)}function yv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $Q=function(t){return t},P2={},A2=function(t){return t===P2},HS=function(t){return function r(){return arguments.length===0||arguments.length===1&&A2(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},MQ=function e(t,r){return t===1?r:HS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==P2}).length;return o>=t?r.apply(void 0,i):e(t-o,HS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(c){return A2(c)?l.shift():c});return r.apply(void 0,kQ(f).concat(l))}))})},Uh=function(t){return MQ(t.length,t)},vv=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},IQ=Uh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),RQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return $Q;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},gv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},k2=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function DQ(e){var t;return e===0?t=1:t=Math.floor(new Ae(e).abs().log(10).toNumber())+1,t}function LQ(e,t,r){for(var n=new Ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var zQ=Uh(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),BQ=Uh(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),FQ=Uh(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Wh={rangeStep:LQ,getDigitCount:DQ,interpolateNumber:zQ,uninterpolateNumber:BQ,uninterpolateTruncation:FQ};function bv(e){return HQ(e)||WQ(e)||E2(e)||UQ()}function UQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HQ(e){if(Array.isArray(e))return xv(e)}function fu(e,t){return KQ(e)||qQ(e,t)||E2(e,t)||VQ()}function VQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E2(e,t){if(e){if(typeof e=="string")return xv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xv(e,t)}}function xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function KQ(e){if(Array.isArray(e))return e}function N2(e){var t=fu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function T2(e,t,r){if(e.lte(0))return new Ae(0);var n=Wh.getDigitCount(e.toNumber()),i=new Ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ae(Math.ceil(l))}function GQ(e,t,r){var n=1,i=new Ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ae(10).pow(Wh.getDigitCount(e)-1),i=new Ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ae(Math.floor(e)))}else e===0?i=new Ae(Math.floor((t-1)/2)):r||(i=new Ae(Math.floor(e)));var o=Math.floor((t-1)/2),s=RQ(IQ(function(l){return i.add(new Ae(l-o).mul(n)).toNumber()}),vv);return s(0,t)}function C2(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ae(0),tickMin:new Ae(0),tickMax:new Ae(0)};var a=T2(new Ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ae(0):(o=new Ae(e).add(t).div(2),o=o.sub(new Ae(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ae(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?C2(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ae(s).mul(a)),tickMax:o.add(new Ae(l).mul(a))})}function XQ(e){var t=fu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=N2([r,n]),l=fu(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(bv(vv(0,i-1).map(function(){return 1/0}))):[].concat(bv(vv(0,i-1).map(function(){return-1/0})),[f]);return r>n?gv(c):c}if(u===f)return GQ(u,i,a);var d=C2(u,f,o,a),p=d.step,m=d.tickMin,y=d.tickMax,v=Wh.rangeStep(m,y.add(new Ae(.1).mul(p)),p);return r>n?gv(v):v}function QQ(e,t){var r=fu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=N2([n,i]),s=fu(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=T2(new Ae(u).sub(l).div(f-1),a,0),d=[].concat(bv(Wh.rangeStep(new Ae(l),new Ae(u).sub(new Ae(.99).mul(c)),c)),[u]);return n>i?gv(d):d}var YQ=k2(XQ),JQ=k2(QQ),ZQ="Invariant failed";function Da(e,t){throw new Error(ZQ)}var eY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cd.apply(this,arguments)}function tY(e,t){return aY(e)||iY(e,t)||nY(e,t)||rY()}function rY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nY(e,t){if(e){if(typeof e=="string")return VS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VS(e,t)}}function VS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function aY(e){if(Array.isArray(e))return e}function oY(e,t){if(e==null)return{};var r=sY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function lY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I2(n.key),n)}}function cY(e,t,r){return t&&uY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fY(e,t,r){return t=fd(t),dY(e,$2()?Reflect.construct(t,r||[],fd(e).constructor):t.apply(e,r))}function dY(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hY(e)}function hY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($2=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fd(e)}function pY(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&&wv(e,t)}function wv(e,t){return wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wv(e,t)}function M2(e,t,r){return t=I2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I2(e){var t=mY(e,"string");return ns(t)=="symbol"?t:t+""}function mY(e,t){if(ns(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ns(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hh=function(e){function t(){return lY(this,t),fY(this,t,arguments)}return pY(t,e),cY(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=oY(n,eY),p=ne(d,!1);this.props.direction==="x"&&f.type!=="number"&&Da();var m=l.map(function(y){var v=u(y,s),g=v.x,b=v.y,x=v.value,S=v.errorVal;if(!S)return null;var w=[],O,_;if(Array.isArray(S)){var j=tY(S,2);O=j[0],_=j[1]}else O=_=S;if(a==="vertical"){var P=f.scale,N=b+i,$=N+o,C=N-o,L=P(x-O),R=P(x+_);w.push({x1:R,y1:$,x2:R,y2:C}),w.push({x1:L,y1:N,x2:R,y2:N}),w.push({x1:L,y1:$,x2:L,y2:C})}else if(a==="horizontal"){var I=c.scale,D=g+i,F=D-o,T=D+o,B=I(x-O),U=I(x+_);w.push({x1:F,y1:U,x2:T,y2:U}),w.push({x1:D,y1:B,x2:D,y2:U}),w.push({x1:F,y1:B,x2:T,y2:B})}return A.createElement(ye,cd({className:"recharts-errorBar",key:"bar-".concat(w.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},p),w.map(function(K){return A.createElement("line",cd({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return A.createElement(ye,{className:"recharts-errorBars"},m)}}])}(A.Component);M2(Hh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});M2(Hh,"displayName","ErrorBar");function du(e){"@babel/helpers - typeof";return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}function qS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(r),!0).forEach(function(n){yY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yY(e,t,r){return t=vY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vY(e){var t=gY(e,"string");return du(t)=="symbol"?t:t+""}function gY(e,t){if(du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R2=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=rr(r,_o);if(!o)return null;var s=_o.defaultProps,l=s!==void 0?Hi(Hi({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(f,c){var d=c.item,p=c.props,m=p.sectors||p.data||[];return f.concat(m.map(function(y){return{type:o.props.iconType||d.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?Hi(Hi({},d),c.props):{},m=p.dataKey,y=p.name,v=p.legendType,g=p.hide;return{inactive:g,dataKey:m,type:l.iconType||v||"square",color:gb(c),value:y||m,payload:p}}),Hi(Hi(Hi({},l),_o.getWithHeight(o,i)),{},{payload:u,item:o})};function hu(e){"@babel/helpers - typeof";return hu=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},hu(e)}function KS(e){return SY(e)||wY(e)||xY(e)||bY()}function bY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xY(e,t){if(e){if(typeof e=="string")return Sv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sv(e,t)}}function wY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SY(e){if(Array.isArray(e))return Sv(e)}function Sv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(r),!0).forEach(function(n){Po(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Po(e,t,r){return t=OY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OY(e){var t=_Y(e,"string");return hu(t)=="symbol"?t:t+""}function _Y(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e,t,r){return ce(e)||ce(t)?r:ct(t)?or(e,t,r):oe(t)?t(e):r}function Al(e,t,r,n){var i=wQ(e,function(s){return lt(s,t)});if(r==="number"){var a=i.filter(function(s){return V(s)||parseFloat(s)});return a.length?[Fh(a),fi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!ce(s)}):i;return o.map(function(s){return ct(s)||s instanceof Date?s:""})}var jY=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Mt(c-f)!==Mt(d-c)){var m=[];if(Mt(d-c)===Mt(l[1]-l[0])){p=d;var y=c+l[1]-l[0];m[0]=Math.min(y,(y+f)/2),m[1]=Math.max(y,(y+f)/2)}else{p=f;var v=d+l[1]-l[0];m[0]=Math.min(c,(v+c)/2),m[1]=Math.max(c,(v+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(f,d),x=Math.max(f,d);if(t>(b+c)/2&&t<=(x+c)/2){o=i[u].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},gb=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},PY=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var f=a[s[l]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var m=f[c[d]],y=m.items,v=m.cateAxisId,g=y.filter(function(_){return Pn(_.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?Ge(Ge({},b),g[0].props):g[0].props,S=x.barSize,w=x[v];o[w]||(o[w]=[]);var O=ce(S)?r:S;o[w].push({item:g[0],stackList:g.slice(1),barSize:ce(O)?void 0:It(O,n,0)})}}return o},AY=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=It(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/l,m=o.reduce(function(S,w){return S+w.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(d=!0,p*=.9,m=l*p);var y=(i-m)/2>>0,v={offset:y-u,size:0};f=o.reduce(function(S,w){var O={item:w.item,position:{offset:v.offset+v.size+u,size:d?p:w.barSize}},_=[].concat(KS(S),[O]);return v=_[_.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(j){_.push({item:j,position:v})}),_},c)}else{var g=It(n,i,0,!0);i-2*g-(l-1)*u<=0&&(u=0);var b=(i-2*g-(l-1)*u)/l;b>1&&(b>>=0);var x=s===+s?Math.min(b,s):b;f=o.reduce(function(S,w,O){var _=[].concat(KS(S),[{item:w.item,position:{offset:g+(b+u)*O+(b-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(j){_.push({item:j,position:_[_.length-1].position})}),_},c)}return f},kY=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=R2({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,p=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&p!=="center"&&V(t[p]))return Ge(Ge({},t),{},Po({},p,t[p]+(c||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&m!=="middle"&&V(t[m]))return Ge(Ge({},t),{},Po({},m,t[m]+(d||0)))}return t},EY=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},D2=function(t,r,n,i,a){var o=r.props.children,s=Sr(o,Hh).filter(function(u){return EY(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=lt(f,n);if(ce(c))return u;var d=Array.isArray(c)?[Fh(c),fi(c)]:[c,c],p=l.reduce(function(m,y){var v=lt(f,y,0),g=d[0]-Math.abs(Array.isArray(v)?v[0]:v),b=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},NY=function(t,r,n,i,a){var o=r.map(function(s){return D2(t,s,n,a,i)}).filter(function(s){return!ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},L2=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&D2(t,l,u,i)||Al(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,c=u.length;f<c;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},z2=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},B2=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},_n=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Mt(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+u,value:c,offset:u}});return f.filter(function(c){return!$s(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+u,value:c,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,d){return{coordinate:i(c)+u,value:a?a[c]:c,index:d,offset:u}})},im=new WeakMap,Mc=function(t,r){if(typeof r!="function")return t;im.has(t)||im.set(t,new WeakMap);var n=im.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},F2=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:au(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:ad(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Pl(),realScaleType:"point"}:a==="category"?{scale:au(),realScaleType:"band"}:{scale:ad(),realScaleType:"linear"};if($a(i)){var l="scale".concat(Ph(i));return{scale:(FS[l]||Pl)(),realScaleType:FS[l]?l:"point"}}return oe(i)?{scale:i}:{scale:Pl(),realScaleType:"point"}},XS=1e-4,U2=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-XS,o=Math.max(i[0],i[1])+XS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},TY=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},CY=function(t,r){if(!r||r.length!==2||!V(r[0])||!V(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!V(t[0])||t[0]<n)&&(a[0]=n),(!V(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},$Y=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=$s(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},MY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=$s(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},IY={sign:$Y,expand:e8,none:Go,silhouette:t8,wiggle:r8,positive:MY},RY=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=IY[n],o=ZB().keys(i).value(function(s,l){return+lt(s,l,0)}).order(Ky).offset(a);return o(t)},DY=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(c,d){var p,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ge(Ge({},d.type.defaultProps),d.props):d.props,y=m.stackId,v=m.hide;if(v)return c;var g=m[n],b=c[g]||{hasStack:!1,stackGroups:{}};if(ct(y)){var x=b.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),b.hasStack=!0,b.stackGroups[y]=x}else b.stackGroups[Ms("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ge(Ge({},c),{},Po({},g,b))},l),f={};return Object.keys(u).reduce(function(c,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,v){var g=p.stackGroups[v];return Ge(Ge({},y),{},Po({},v,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:RY(t,g.items,a)}))},m)}return Ge(Ge({},c),{},Po({},d,p))},f)},W2=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=YQ(u,a,s);return t.domain([Fh(f),fi(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=JQ(c,a,s);return{niceTicks:d}}return null};function QS(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ce(i[t.dataKey])){var s=Df(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=lt(i,ce(o)?t.dataKey:o);return ce(l)?null:t.scale(l)}var YS=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=lt(o,r.dataKey,r.domain[s]);return ce(l)?null:r.scale(l)-a/2+i},LY=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},zY=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ct(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},BY=function(t){return t.reduce(function(r,n){return[Fh(n.concat([r[0]]).filter(V)),fi(n.concat([r[1]]).filter(V))]},[1/0,-1/0])},H2=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var c=BY(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},JS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ov=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(V(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(JS.test(t[0])){var a=+JS.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(V(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(ZS.test(t[1])){var o=+ZS.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},dd=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=q0(r,function(c){return c.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],f=a[s-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},eO=function(t,r,n){return!t||!t.length||rs(t,or(n,"type.defaultProps.domain"))?r:t},V2=function(t,r){var n=t.type.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,f=n.hide;return Ge(Ge({},ne(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:gb(t),value:lt(r,i),type:l,payload:r,chartType:u,hide:f})};function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(n){q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q2(e,t,r){return t=FY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FY(e){var t=UY(e,"string");return pu(t)=="symbol"?t:t+""}function UY(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WY(e,t){return KY(e)||qY(e,t)||VY(e,t)||HY()}function HY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VY(e,t){if(e){if(typeof e=="string")return rO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rO(e,t)}}function rO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function KY(e){if(Array.isArray(e))return e}var hd=Math.PI/180,GY=function(t){return t*180/Math.PI},Me=function(t,r,n,i){return{x:t+Math.cos(-hd*i)*n,y:r+Math.sin(-hd*i)*n}},K2=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},XY=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=It(t.cx,o,o/2),c=It(t.cy,s,s/2),d=K2(o,s,n),p=It(t.innerRadius,d,0),m=It(t.outerRadius,d,d*.8),y=Object.keys(r);return y.reduce(function(v,g){var b=r[g],x=b.domain,S=b.reversed,w;if(ce(b.range))i==="angleAxis"?w=[l,u]:i==="radiusAxis"&&(w=[p,m]),S&&(w=[w[1],w[0]]);else{w=b.range;var O=w,_=WY(O,2);l=_[0],u=_[1]}var j=F2(b,a),P=j.realScaleType,N=j.scale;N.domain(x).range(w),U2(N);var $=W2(N,pn(pn({},b),{},{realScaleType:P})),C=pn(pn(pn({},b),$),{},{range:w,radius:m,realScaleType:P,scale:N,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return pn(pn({},v),{},q2({},g,C))},{})},QY=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},YY=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=QY({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:GY(u),angleInRadian:u}},JY=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},ZY=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},nO=function(t,r){var n=t.x,i=t.y,a=YY({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var f=JY(r),c=f.startAngle,d=f.endAngle,p=s,m;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;m=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=c}return m?pn(pn({},r),{},{radius:o,angle:ZY(p,r)}):null},G2=function(t){return!E.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function mu(e){"@babel/helpers - typeof";return mu=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},mu(e)}var eJ=["offset"];function tJ(e){return aJ(e)||iJ(e)||nJ(e)||rJ()}function rJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nJ(e,t){if(e){if(typeof e=="string")return _v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _v(e,t)}}function iJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aJ(e){if(Array.isArray(e))return _v(e)}function _v(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oJ(e,t){if(e==null)return{};var r=sJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(r),!0).forEach(function(n){lJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lJ(e,t,r){return t=uJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uJ(e){var t=cJ(e,"string");return mu(t)=="symbol"?t:t+""}function cJ(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yu.apply(this,arguments)}var fJ=function(t){var r=t.value,n=t.formatter,i=ce(t.children)?r:t.children;return oe(n)?n(i):i},dJ=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},hJ=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,f=l.cy,c=l.innerRadius,d=l.outerRadius,p=l.startAngle,m=l.endAngle,y=l.clockWise,v=(c+d)/2,g=dJ(p,m),b=g>=0?1:-1,x,S;i==="insideStart"?(x=p+b*o,S=y):i==="insideEnd"?(x=m-b*o,S=!y):i==="end"&&(x=m+b*o,S=y),S=g<=0?S:!S;var w=Me(u,f,v,x),O=Me(u,f,v,x+(S?1:-1)*359),_="M".concat(w.x,",").concat(w.y,`
A`).concat(v,",").concat(v,",0,1,").concat(S?0:1,`,
`).concat(O.x,",").concat(O.y),j=ce(t.id)?Ms("recharts-radial-line-"):t.id;return A.createElement("text",yu({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:j,d:_})),A.createElement("textPath",{xlinkHref:"#".concat(j)},r))},pJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=Me(o,s,u+n,d),m=p.x,y=p.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,g=Me(o,s,v,d),b=g.x,x=g.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},mJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",m=c>0?"start":"end",y=u>=0?1:-1,v=y*i,g=y>0?"end":"start",b=y>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return at(at({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var S={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:m};return at(at({},S),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var w={x:s-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return at(at({},w),n?{width:Math.max(w.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:s+u+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return at(at({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var _=n?{width:u,height:f}:{};return a==="insideLeft"?at({x:s+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideRight"?at({x:s+u-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?at({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},_):a==="insideBottom"?at({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?at({x:s+v,y:l+d,textAnchor:b,verticalAnchor:m},_):a==="insideTopRight"?at({x:s+u-v,y:l+d,textAnchor:g,verticalAnchor:m},_):a==="insideBottomLeft"?at({x:s+v,y:l+f-d,textAnchor:b,verticalAnchor:p},_):a==="insideBottomRight"?at({x:s+u-v,y:l+f-d,textAnchor:g,verticalAnchor:p},_):Es(a)&&(V(a.x)||ia(a.x))&&(V(a.y)||ia(a.y))?at({x:s+It(a.x,u),y:l+It(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):at({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},yJ=function(t){return"cx"in t&&V(t.cx)};function mt(e){var t=e.offset,r=t===void 0?5:t,n=oJ(e,eJ),i=at({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||ce(s)&&ce(l)&&!E.isValidElement(u)&&!oe(u))return null;if(E.isValidElement(u))return E.cloneElement(u,i);var p;if(oe(u)){if(p=E.createElement(u,i),E.isValidElement(p))return p}else p=fJ(i);var m=yJ(a),y=ne(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return hJ(i,p,y);var v=m?pJ(i):mJ(i);return A.createElement(Ia,yu({className:fe("recharts-label",c)},y,v,{breakAll:d}),p)}mt.displayName="Label";var X2=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,m=t.left,y=t.width,v=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(V(y)&&V(v)){if(V(c)&&V(d))return{x:c,y:d,width:y,height:v};if(V(p)&&V(m))return{x:p,y:m,width:y,height:v}}return V(c)&&V(d)?{x:c,y:d,width:0,height:0}:V(r)&&V(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},vJ=function(t,r){return t?t===!0?A.createElement(mt,{key:"label-implicit",viewBox:r}):ct(t)?A.createElement(mt,{key:"label-implicit",viewBox:r,value:t}):E.isValidElement(t)?t.type===mt?E.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):oe(t)?A.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):Es(t)?A.createElement(mt,yu({viewBox:r},t,{key:"label-implicit"})):null:null},gJ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=X2(t),o=Sr(i,mt).map(function(l,u){return E.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=vJ(t.label,r||a);return[s].concat(tJ(o))};mt.parseViewBox=X2;mt.renderCallByParent=gJ;function bJ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var xJ=bJ;const wJ=je(xJ);function vu(e){"@babel/helpers - typeof";return vu=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},vu(e)}var SJ=["valueAccessor"],OJ=["data","dataKey","clockWise","id","textBreakAll"];function _J(e){return kJ(e)||AJ(e)||PJ(e)||jJ()}function jJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PJ(e,t){if(e){if(typeof e=="string")return jv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jv(e,t)}}function AJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kJ(e){if(Array.isArray(e))return jv(e)}function jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pd.apply(this,arguments)}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(r),!0).forEach(function(n){EJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EJ(e,t,r){return t=NJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NJ(e){var t=TJ(e,"string");return vu(t)=="symbol"?t:t+""}function TJ(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sO(e,t){if(e==null)return{};var r=CJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var $J=function(t){return Array.isArray(t.value)?wJ(t.value):t.value};function kn(e){var t=e.valueAccessor,r=t===void 0?$J:t,n=sO(e,SJ),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=sO(n,OJ);return!i||!i.length?null:A.createElement(ye,{className:"recharts-label-list"},i.map(function(f,c){var d=ce(a)?r(f,c):lt(f&&f.payload,a),p=ce(s)?{}:{id:"".concat(s,"-").concat(c)};return A.createElement(mt,pd({},ne(f,!0),u,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:mt.parseViewBox(ce(o)?f:oO(oO({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}kn.displayName="LabelList";function MJ(e,t){return e?e===!0?A.createElement(kn,{key:"labelList-implicit",data:t}):A.isValidElement(e)||oe(e)?A.createElement(kn,{key:"labelList-implicit",data:t,content:e}):Es(e)?A.createElement(kn,pd({data:t},e,{key:"labelList-implicit"})):null:null}function IJ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Sr(n,kn).map(function(o,s){return E.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=MJ(e.label,t);return[a].concat(_J(i))}kn.renderCallByParent=IJ;function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pv.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){RJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RJ(e,t,r){return t=DJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DJ(e){var t=LJ(e,"string");return gu(t)=="symbol"?t:t+""}function LJ(e,t){if(gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zJ=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ic=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,c=Math.asin(l/f)/hd,d=u?a:a+o*c,p=Me(r,n,f,d),m=Me(r,n,i,d),y=u?a-o*c:a,v=Me(r,n,f*Math.cos(c*hd),y);return{center:p,circleTangency:m,lineTangency:v,theta:c}},Q2=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=zJ(o,s),u=o+l,f=Me(r,n,a,o),c=Me(r,n,a,u),d="M ".concat(f.x,",").concat(f.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
`).concat(c.x,",").concat(c.y,`
`);if(i>0){var p=Me(r,n,i,o),m=Me(r,n,i,u);d+="L ".concat(m.x,",").concat(m.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},BJ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Mt(f-u),d=Ic({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),p=d.circleTangency,m=d.lineTangency,y=d.theta,v=Ic({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),g=v.circleTangency,b=v.lineTangency,x=v.theta,S=l?Math.abs(u-f):Math.abs(u-f)-y-x;if(S<0)return s?"M ".concat(m.x,",").concat(m.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):Q2({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var w="M ".concat(m.x,",").concat(m.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(g.x,",").concat(g.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(b.x,",").concat(b.y,`
`);if(i>0){var O=Ic({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),_=O.circleTangency,j=O.lineTangency,P=O.theta,N=Ic({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),$=N.circleTangency,C=N.lineTangency,L=N.theta,R=l?Math.abs(u-f):Math.abs(u-f)-P-L;if(R<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(C.x,",").concat(C.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,`
A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(j.x,",").concat(j.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},FJ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Y2=function(t){var r=uO(uO({},FJ),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o<a||f===c)return null;var p=fe("recharts-sector",d),m=o-a,y=It(s,m,0,!0),v;return y>0&&Math.abs(f-c)<360?v=BJ({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):v=Q2({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),A.createElement("path",Pv({},ne(r,!0),{className:p,d:v,role:"img"}))};function bu(e){"@babel/helpers - typeof";return bu=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},bu(e)}function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Av.apply(this,arguments)}function cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(n){UJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UJ(e,t,r){return t=WJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WJ(e){var t=HJ(e,"string");return bu(t)=="symbol"?t:t+""}function HJ(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dO={curveBasisClosed:UB,curveBasisOpen:WB,curveBasis:FB,curveBumpX:AB,curveBumpY:kB,curveLinearClosed:HB,curveLinear:kh,curveMonotoneX:VB,curveMonotoneY:qB,curveNatural:KB,curveStep:GB,curveStepAfter:QB,curveStepBefore:XB},Rc=function(t){return t.x===+t.x&&t.y===+t.y},il=function(t){return t.x},al=function(t){return t.y},VJ=function(t,r){if(oe(t))return t;var n="curve".concat(Ph(t));return(n==="curveMonotone"||n==="curveBump")&&r?dO["".concat(n).concat(r==="vertical"?"Y":"X")]:dO[n]||kh},qJ=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=VJ(n,s),c=u?a.filter(function(y){return Rc(y)}):a,d;if(Array.isArray(o)){var p=u?o.filter(function(y){return Rc(y)}):o,m=c.map(function(y,v){return fO(fO({},y),{},{base:p[v]})});return s==="vertical"?d=Pc().y(al).x1(il).x0(function(y){return y.base.x}):d=Pc().x(il).y1(al).y0(function(y){return y.base.y}),d.defined(Rc).curve(f),d(m)}return s==="vertical"&&V(o)?d=Pc().y(al).x1(il).x0(o):V(o)?d=Pc().x(il).y1(al).y0(o):d=qk().x(il).y(al),d.defined(Rc).curve(f),d(c)},Ao=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?qJ(t):i;return E.createElement("path",Av({},ne(t,!1),Lf(t),{className:fe("recharts-curve",r),d:o,ref:a}))},J2={exports:{}},KJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",GJ=KJ,XJ=GJ;function Z2(){}function eN(){}eN.resetWarningCache=Z2;var QJ=function(){function e(n,i,a,o,s,l){if(l!==XJ){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:eN,resetWarningCache:Z2};return r.PropTypes=r,r};J2.exports=QJ();var YJ=J2.exports;const Se=je(YJ),{getOwnPropertyNames:JJ,getOwnPropertySymbols:ZJ}=Object,{hasOwnProperty:eZ}=Object.prototype;function am(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Dc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function tZ(e){return e!=null?e[Symbol.toStringTag]:void 0}function hO(e){return JJ(e).concat(ZJ(e))}const rZ=Object.hasOwn||((e,t)=>eZ.call(e,t));function qa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const nZ="__v",iZ="__o",aZ="_owner",{getOwnPropertyDescriptor:pO,keys:mO}=Object;function oZ(e,t){return e.byteLength===t.byteLength&&md(new Uint8Array(e),new Uint8Array(t))}function sZ(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function lZ(e,t){return e.byteLength===t.byteLength&&md(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function uZ(e,t){return qa(e.getTime(),t.getTime())}function cZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function fZ(e,t){return e===t}function yO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const d=o.value,p=s.value;if(r.equals(d[0],p[0],l,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const dZ=qa;function hZ(e,t,r){const n=mO(e);let i=n.length;if(mO(t).length!==i)return!1;for(;i-- >0;)if(!tN(e,t,r,n[i]))return!1;return!0}function ol(e,t,r){const n=hO(e);let i=n.length;if(hO(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!tN(e,t,r,a)||(o=pO(e,a),s=pO(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function pZ(e,t){return qa(e.valueOf(),t.valueOf())}function mZ(e,t){return e.source===t.source&&e.flags===t.flags}function vO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function md(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function yZ(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 tN(e,t,r,n){return(n===aZ||n===iZ||n===nZ)&&(e.$$typeof||t.$$typeof)?!0:rZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const vZ="[object ArrayBuffer]",gZ="[object Arguments]",bZ="[object Boolean]",xZ="[object DataView]",wZ="[object Date]",SZ="[object Error]",OZ="[object Map]",_Z="[object Number]",jZ="[object Object]",PZ="[object RegExp]",AZ="[object Set]",kZ="[object String]",EZ={"[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},NZ="[object URL]",TZ=Object.prototype.toString;function CZ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:m}){return function(v,g,b){if(v===g)return!0;if(v==null||g==null)return!1;const x=typeof v;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?s(v,g,b):x==="function"?a(v,g,b):!1;const S=v.constructor;if(S!==g.constructor)return!1;if(S===Object)return l(v,g,b);if(Array.isArray(v))return t(v,g,b);if(S===Date)return n(v,g,b);if(S===RegExp)return f(v,g,b);if(S===Map)return o(v,g,b);if(S===Set)return c(v,g,b);const w=TZ.call(v);if(w===wZ)return n(v,g,b);if(w===PZ)return f(v,g,b);if(w===OZ)return o(v,g,b);if(w===AZ)return c(v,g,b);if(w===jZ)return typeof v.then!="function"&&typeof g.then!="function"&&l(v,g,b);if(w===NZ)return p(v,g,b);if(w===SZ)return i(v,g,b);if(w===gZ)return l(v,g,b);if(EZ[w])return d(v,g,b);if(w===vZ)return e(v,g,b);if(w===xZ)return r(v,g,b);if(w===bZ||w===_Z||w===kZ)return u(v,g,b);if(m){let O=m[w];if(!O){const _=tZ(v);_&&(O=m[_])}if(O)return O(v,g,b)}return!1}}function $Z({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:oZ,areArraysEqual:r?ol:sZ,areDataViewsEqual:lZ,areDatesEqual:uZ,areErrorsEqual:cZ,areFunctionsEqual:fZ,areMapsEqual:r?am(yO,ol):yO,areNumbersEqual:dZ,areObjectsEqual:r?ol:hZ,arePrimitiveWrappersEqual:pZ,areRegExpsEqual:mZ,areSetsEqual:r?am(vO,ol):vO,areTypedArraysEqual:r?am(md,ol):md,areUrlsEqual:yZ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Dc(n.areArraysEqual),a=Dc(n.areMapsEqual),o=Dc(n.areObjectsEqual),s=Dc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function MZ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function IZ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const RZ=zi();zi({strict:!0});zi({circular:!0});zi({circular:!0,strict:!0});zi({createInternalComparator:()=>qa});zi({strict:!0,createInternalComparator:()=>qa});zi({circular:!0,createInternalComparator:()=>qa});zi({circular:!0,createInternalComparator:()=>qa,strict:!0});function zi(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=$Z(e),o=CZ(a),s=r?r(o):MZ(o);return IZ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function DZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function gO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):DZ(i)};requestAnimationFrame(n)}function kv(e){"@babel/helpers - typeof";return kv=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},kv(e)}function LZ(e){return UZ(e)||FZ(e)||BZ(e)||zZ()}function zZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BZ(e,t){if(e){if(typeof e=="string")return bO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bO(e,t)}}function bO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UZ(e){if(Array.isArray(e))return e}function WZ(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=LZ(o),l=s[0],u=s.slice(1);if(typeof l=="number"){gO(i.bind(null,u),l);return}i(l),gO(i.bind(null,u));return}kv(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function xu(e){"@babel/helpers - typeof";return xu=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},xu(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t,r){return t=HZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HZ(e){var t=VZ(e,"string");return xu(t)==="symbol"?t:String(t)}function VZ(e,t){if(xu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},KZ=function(t){return t},GZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},kl=function(t,r){return Object.keys(r).reduce(function(n,i){return wO(wO({},n),{},rN({},i,t(i,r[i])))},{})},SO=function(t,r,n){return t.map(function(i){return"".concat(GZ(i)," ").concat(r,"ms ").concat(n)}).join(",")};function XZ(e,t){return JZ(e)||YZ(e,t)||nN(e,t)||QZ()}function QZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function JZ(e){if(Array.isArray(e))return e}function ZZ(e){return ree(e)||tee(e)||nN(e)||eee()}function eee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nN(e,t){if(e){if(typeof e=="string")return Ev(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ev(e,t)}}function tee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ree(e){if(Array.isArray(e))return Ev(e)}function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yd=1e-4,iN=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},aN=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},OO=function(t,r){return function(n){var i=iN(t,r);return aN(i,n)}},nee=function(t,r){return function(n){var i=iN(t,r),a=[].concat(ZZ(i.map(function(o,s){return o*s}).slice(1)),[0]);return aN(a,n)}},_O=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=XZ(u,4);i=f[0],a=f[1],o=f[2],s=f[3]}}}var c=OO(i,o),d=OO(a,s),p=nee(i,o),m=function(g){return g>1?1:g<0?0:g},y=function(g){for(var b=g>1?1:g,x=b,S=0;S<8;++S){var w=c(x)-b,O=p(x);if(Math.abs(w-b)<yd||O<yd)return d(x);x=m(x-w/O)}return d(x)};return y.isStepper=!1,y},iee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,c,d){var p=-(f-c)*n,m=d*a,y=d+(p-m)*s/1e3,v=d*s/1e3+f;return Math.abs(v-c)<yd&&Math.abs(y)<yd?[c,0]:[v,y]};return l.isStepper=!0,l.dt=s,l},aee=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return _O(i);case"spring":return iee();default:if(i.split("(")[0]==="cubic-bezier")return _O(i)}return typeof i=="function"?i:null};function wu(e){"@babel/helpers - typeof";return wu=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},wu(e)}function jO(e){return lee(e)||see(e)||oN(e)||oee()}function oee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function see(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lee(e){if(Array.isArray(e))return Tv(e)}function PO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){Nv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nv(e,t,r){return t=uee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uee(e){var t=cee(e,"string");return wu(t)==="symbol"?t:String(t)}function cee(e,t){if(wu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fee(e,t){return pee(e)||hee(e,t)||oN(e,t)||dee()}function dee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oN(e,t){if(e){if(typeof e=="string")return Tv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tv(e,t)}}function Tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function pee(e){if(Array.isArray(e))return e}var vd=function(t,r,n){return t+(r-t)*n},Cv=function(t){var r=t.from,n=t.to;return r!==n},mee=function e(t,r,n){var i=kl(function(a,o){if(Cv(o)){var s=t(o.from,o.to,o.velocity),l=fee(s,2),u=l[0],f=l[1];return bt(bt({},o),{},{from:u,velocity:f})}return o},r);return n<1?kl(function(a,o){return Cv(o)?bt(bt({},o),{},{velocity:vd(o.velocity,i[a].velocity,n),from:vd(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const yee=function(e,t,r,n,i){var a=qZ(e,t),o=a.reduce(function(v,g){return bt(bt({},v),{},Nv({},g,[e[g],t[g]]))},{}),s=a.reduce(function(v,g){return bt(bt({},v),{},Nv({},g,{from:e[g],velocity:0,to:t[g]}))},{}),l=-1,u,f,c=function(){return null},d=function(){return kl(function(g,b){return b.from},s)},p=function(){return!Object.values(s).filter(Cv).length},m=function(g){u||(u=g);var b=g-u,x=b/r.dt;s=mee(r,s,x),i(bt(bt(bt({},e),t),d())),u=g,p()||(l=requestAnimationFrame(c))},y=function(g){f||(f=g);var b=(g-f)/n,x=kl(function(w,O){return vd.apply(void 0,jO(O).concat([r(b)]))},o);if(i(bt(bt(bt({},e),t),x)),b<1)l=requestAnimationFrame(c);else{var S=kl(function(w,O){return vd.apply(void 0,jO(O).concat([r(1)]))},o);i(bt(bt(bt({},e),t),S))}};return c=r.isStepper?m:y,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function is(e){"@babel/helpers - typeof";return is=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},is(e)}var vee=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function gee(e,t){if(e==null)return{};var r=bee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function om(e){return Oee(e)||See(e)||wee(e)||xee()}function xee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wee(e,t){if(e){if(typeof e=="string")return $v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $v(e,t)}}function See(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oee(e){if(Array.isArray(e))return $v(e)}function $v(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){hl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hl(e,t,r){return t=sN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sN(n.key),n)}}function Pee(e,t,r){return t&&jee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sN(e){var t=Aee(e,"string");return is(t)==="symbol"?t:String(t)}function Aee(e,t){if(is(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(is(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kee(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&&Mv(e,t)}function Mv(e,t){return Mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mv(e,t)}function Eee(e){var t=Nee();return function(){var n=gd(e),i;if(t){var a=gd(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Iv(this,i)}}function Iv(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rv(e)}function Rv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nee(){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 gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gd(e)}var an=function(e){kee(r,e);var t=Eee(r);function r(n,i){var a;_ee(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Rv(a)),a.changeStyle=a.changeStyle.bind(Rv(a)),!s||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Iv(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Iv(a);a.state={style:l?hl({},l,u):u}}else a.state={style:{}};return a}return Pee(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(s){if(!o){var p={style:l?hl({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(p);return}if(!(RZ(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||u?c:i.to;if(this.state&&d){var v={style:l?hl({},l,y):y};(l&&d[l]!==y||!l&&d!==y)&&this.setState(v)}this.runAnimation(Er(Er({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=yee(o,s,aee(u),l,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([d,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,c=u.duration,d=c===void 0?0:c,p=function(y,v,g){if(g===0)return y;var b=v.duration,x=v.easing,S=x===void 0?"ease":x,w=v.style,O=v.properties,_=v.onAnimationEnd,j=g>0?o[g-1]:v,P=O||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(om(y),[a.runJSAnimation.bind(a,{from:j.style,to:w,duration:b,easing:S}),b]);var N=SO(P,b,S),$=Er(Er(Er({},j.style),w),{},{transition:N});return[].concat(om(y),[$,b,_]).filter(KZ)};return this.manager.start([l].concat(om(o.reduce(p,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=WZ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var y=s?hl({},s,l):l,v=SO(Object.keys(y),o,u);m.start([f,a,Er(Er({},y),{},{transition:v}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=gee(i,vee),u=E.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var c=function(p){var m=p.props,y=m.style,v=y===void 0?{}:y,g=m.className,b=E.cloneElement(p,Er(Er({},l),{},{style:Er(Er({},v),f),className:g}));return b};return u===1?c(E.Children.only(a)):A.createElement("div",null,E.Children.map(a,function(d){return c(d)}))}}]),r}(E.PureComponent);an.displayName="Animate";an.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};an.propTypes={from:Se.oneOfType([Se.object,Se.string]),to:Se.oneOfType([Se.object,Se.string]),attributeName:Se.string,duration:Se.number,begin:Se.number,easing:Se.oneOfType([Se.string,Se.func]),steps:Se.arrayOf(Se.shape({duration:Se.number.isRequired,style:Se.object.isRequired,easing:Se.oneOfType([Se.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Se.func]),properties:Se.arrayOf("string"),onAnimationEnd:Se.func})),children:Se.oneOfType([Se.node,Se.func]),isActive:Se.bool,canBegin:Se.bool,onAnimationEnd:Se.func,shouldReAnimate:Se.bool,onAnimationStart:Se.func,onAnimationReStart:Se.func};function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bd.apply(this,arguments)}function Tee(e,t){return Iee(e)||Mee(e,t)||$ee(e,t)||Cee()}function Cee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ee(e,t){if(e){if(typeof e=="string")return kO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kO(e,t)}}function kO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Iee(e){if(Array.isArray(e))return e}function EO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function NO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(r),!0).forEach(function(n){Ree(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ree(e,t,r){return t=Dee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dee(e){var t=Lee(e,"string");return Su(t)=="symbol"?t:t+""}function Lee(e,t){if(Su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TO=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
`).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
`).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
`).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+s*m,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,`
L `).concat(t+n-l*m,",").concat(r,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
L `).concat(t+n,",").concat(r+i-s*m,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,`
L `).concat(t+l*m,",").concat(r+i,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},zee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=d}return!1},Bee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},bb=function(t){var r=NO(NO({},Bee),t),n=E.useRef(),i=E.useState(-1),a=Tee(i,2),o=a[0],s=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var x=fe("recharts-rectangle",p);return b?A.createElement(an,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:y,animationEasing:m,isActive:b},function(S){var w=S.width,O=S.height,_=S.x,j=S.y;return A.createElement(an,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:g,easing:m},A.createElement("path",bd({},ne(r,!0),{className:x,d:TO(_,j,w,O,d),ref:n})))}):A.createElement("path",bd({},ne(r,!0),{className:x,d:TO(l,u,f,c,d)}))},Fee=["points","className","baseLinePoints","connectNulls"];function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ho.apply(this,arguments)}function Uee(e,t){if(e==null)return{};var r=Wee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CO(e){return Kee(e)||qee(e)||Vee(e)||Hee()}function Hee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vee(e,t){if(e){if(typeof e=="string")return Dv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dv(e,t)}}function qee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kee(e){if(Array.isArray(e))return Dv(e)}function Dv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $O=function(t){return t&&t.x===+t.x&&t.y===+t.y},Gee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){$O(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),$O(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},El=function(t,r){var n=Gee(t);r&&(n=[n.reduce(function(a,o){return[].concat(CO(a),CO(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},Xee=function(t,r,n){var i=El(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(El(r.reverse(),n).slice(1))},Qee=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=Uee(t,Fee);if(!r||!r.length)return null;var s=fe("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=Xee(r,i,a);return A.createElement("g",{className:s},A.createElement("path",ho({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?A.createElement("path",ho({},ne(o,!0),{fill:"none",d:El(r,a)})):null,l?A.createElement("path",ho({},ne(o,!0),{fill:"none",d:El(i,a)})):null)}var f=El(r,a);return A.createElement("path",ho({},ne(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lv.apply(this,arguments)}var Vh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=fe("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",Lv({},ne(t,!1),Lf(t),{className:o,cx:r,cy:n,r:i})):null};function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}var Yee=["x","y","top","left","width","height","className"];function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zv.apply(this,arguments)}function MO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){Zee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zee(e,t,r){return t=ete(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ete(e){var t=tte(e,"string");return Ou(t)=="symbol"?t:t+""}function tte(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rte(e,t){if(e==null)return{};var r=nte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ite=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},ate=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,y=rte(t,Yee),v=Jee({x:n,y:a,top:s,left:u,width:c,height:p},y);return!V(n)||!V(a)||!V(c)||!V(p)||!V(s)||!V(u)?null:A.createElement("path",zv({},ne(v,!0),{className:fe("recharts-cross",m),d:ite(n,a,c,p,s,u)}))},ote=Bh,ste=b2,lte=un;function ute(e,t){return e&&e.length?ote(e,lte(t),ste):void 0}var cte=ute;const fte=je(cte);var dte=Bh,hte=un,pte=x2;function mte(e,t){return e&&e.length?dte(e,hte(t),pte):void 0}var yte=mte;const vte=je(yte);var gte=["cx","cy","angle","ticks","axisLine"],bte=["ticks","tick","angle","tickFormatter","stroke"];function as(e){"@babel/helpers - typeof";return as=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},as(e)}function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}function IO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IO(Object(r),!0).forEach(function(n){qh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RO(e,t){if(e==null)return{};var r=xte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uN(n.key),n)}}function Ste(e,t,r){return t&&DO(e.prototype,t),r&&DO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ote(e,t,r){return t=xd(t),_te(e,lN()?Reflect.construct(t,r||[],xd(e).constructor):t.apply(e,r))}function _te(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jte(e)}function jte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lN=function(){return!!e})()}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xd(e)}function Pte(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&&Bv(e,t)}function Bv(e,t){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bv(e,t)}function qh(e,t,r){return t=uN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uN(e){var t=Ate(e,"string");return as(t)=="symbol"?t:t+""}function Ate(e,t){if(as(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(as(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kh=function(e){function t(){return wte(this,t),Ote(this,t,arguments)}return Pte(t,e),Ste(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return Me(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=fte(s,function(f){return f.coordinate||0}),u=vte(s,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=RO(n,gte),f=s.reduce(function(m,y){return[Math.min(m[0],y.coordinate),Math.max(m[1],y.coordinate)]},[1/0,-1/0]),c=Me(i,a,f[0],o),d=Me(i,a,f[1],o),p=Vi(Vi(Vi({},ne(u,!1)),{},{fill:"none"},ne(l,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return A.createElement("line",Nl({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=RO(i,bte),c=this.getTickTextAnchor(),d=ne(f,!1),p=ne(o,!1),m=a.map(function(y,v){var g=n.getTickValueCoord(y),b=Vi(Vi(Vi(Vi({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:v},g),{},{payload:y});return A.createElement(ye,Nl({className:fe("recharts-polar-radius-axis-tick",G2(o)),key:"tick-".concat(y.coordinate)},Ma(n.props,y,v)),t.renderTickItem(o,b,l?l(y.value,v):y.value))});return A.createElement(ye,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:A.createElement(ye,{className:fe("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),mt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):oe(n)?o=n(i):o=A.createElement(Ia,Nl({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(E.PureComponent);qh(Kh,"displayName","PolarRadiusAxis");qh(Kh,"axisType","radiusAxis");qh(Kh,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function os(e){"@babel/helpers - typeof";return os=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},os(e)}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){Gh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fN(n.key),n)}}function Ete(e,t,r){return t&&zO(e.prototype,t),r&&zO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nte(e,t,r){return t=wd(t),Tte(e,cN()?Reflect.construct(t,r||[],wd(e).constructor):t.apply(e,r))}function Tte(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cte(e)}function Cte(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 wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wd(e)}function $te(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&&Fv(e,t)}function Fv(e,t){return Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fv(e,t)}function Gh(e,t,r){return t=fN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fN(e){var t=Mte(e,"string");return os(t)=="symbol"?t:t+""}function Mte(e,t){if(os(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ite=Math.PI/180,BO=1e-5,Xh=function(e){function t(){return kte(this,t),Nte(this,t,arguments)}return $te(t,e),Ete(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,c=Me(a,o,s,n.coordinate),d=Me(a,o,s+(l==="inner"?-1:1)*f,n.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Ite),o;return a>BO?o=i==="outer"?"start":"end":a<-BO?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=qi(qi({},ne(this.props,!1)),{},{fill:"none"},ne(s,!1));if(l==="circle")return A.createElement(Vh,Ji({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return Me(i,a,o,d.coordinate)});return A.createElement(Qee,Ji({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=ne(this.props,!1),c=ne(o,!1),d=qi(qi({},f),{},{fill:"none"},ne(s,!1)),p=a.map(function(m,y){var v=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=qi(qi(qi({textAnchor:g},f),{},{stroke:"none",fill:u},c),{},{index:y,payload:m,x:v.x2,y:v.y2});return A.createElement(ye,Ji({className:fe("recharts-polar-angle-axis-tick",G2(o)),key:"tick-".concat(m.coordinate)},Ma(n.props,m,y)),s&&A.createElement("line",Ji({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,b,l?l(m.value,y):m.value))});return A.createElement(ye,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(ye,{className:fe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):oe(n)?o=n(i):o=A.createElement(Ia,Ji({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(E.PureComponent);Gh(Xh,"displayName","PolarAngleAxis");Gh(Xh,"axisType","angleAxis");Gh(Xh,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Rte=yE,Dte=Rte(Object.getPrototypeOf,Object),Lte=Dte,zte=Ln,Bte=Lte,Fte=zn,Ute="[object Object]",Wte=Function.prototype,Hte=Object.prototype,dN=Wte.toString,Vte=Hte.hasOwnProperty,qte=dN.call(Object);function Kte(e){if(!Fte(e)||zte(e)!=Ute)return!1;var t=Bte(e);if(t===null)return!0;var r=Vte.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dN.call(r)==qte}var Gte=Kte;const Xte=je(Gte);var Qte=Ln,Yte=zn,Jte="[object Boolean]";function Zte(e){return e===!0||e===!1||Yte(e)&&Qte(e)==Jte}var ere=Zte;const tre=je(ere);function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sd.apply(this,arguments)}function rre(e,t){return ore(e)||are(e,t)||ire(e,t)||nre()}function nre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ire(e,t){if(e){if(typeof e=="string")return FO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FO(e,t)}}function FO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function are(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ore(e){if(Array.isArray(e))return e}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){sre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sre(e,t,r){return t=lre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lre(e){var t=ure(e,"string");return _u(t)=="symbol"?t:t+""}function ure(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HO=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},cre={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fre=function(t){var r=WO(WO({},cre),t),n=E.useRef(),i=E.useState(-1),a=rre(i,2),o=a[0],s=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var b=fe("recharts-trapezoid",p);return g?A.createElement(an,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:y,animationEasing:m,isActive:g},function(x){var S=x.upperWidth,w=x.lowerWidth,O=x.height,_=x.x,j=x.y;return A.createElement(an,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:m},A.createElement("path",Sd({},ne(r,!0),{className:b,d:HO(_,j,S,w,O),ref:n})))}):A.createElement("g",null,A.createElement("path",Sd({},ne(r,!0),{className:b,d:HO(l,u,f,c,d)})))},dre=["option","shapeType","propTransformer","activeClassName","isActive"];function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function hre(e,t){if(e==null)return{};var r=pre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Od(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(n){mre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mre(e,t,r){return t=yre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yre(e){var t=vre(e,"string");return ju(t)=="symbol"?t:t+""}function vre(e,t){if(ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gre(e,t){return Od(Od({},t),e)}function bre(e,t){return e==="symbols"}function qO(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(bb,r);case"trapezoid":return A.createElement(fre,r);case"sector":return A.createElement(Y2,r);case"symbols":if(bre(t))return A.createElement(L0,r);break;default:return null}}function xre(e){return E.isValidElement(e)?e.props:e}function hN(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?gre:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=hre(e,dre),u;if(E.isValidElement(t))u=E.cloneElement(t,Od(Od({},l),xre(t)));else if(oe(t))u=t(l);else if(Xte(t)&&!tre(t)){var f=i(t,l);u=A.createElement(qO,{shapeType:r,elementProps:f})}else{var c=l;u=A.createElement(qO,{shapeType:r,elementProps:c})}return s?A.createElement(ye,{className:o},u):u}function Qh(e,t){return t!=null&&"trapezoids"in e.props}function Yh(e,t){return t!=null&&"sectors"in e.props}function Pu(e,t){return t!=null&&"points"in e.props}function wre(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function Sre(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Ore(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function _re(e,t){var r;return Qh(e,t)?r=wre:Yh(e,t)?r=Sre:Pu(e,t)&&(r=Ore),r}function jre(e,t){var r;return Qh(e,t)?r="trapezoids":Yh(e,t)?r="sectors":Pu(e,t)&&(r="points"),r}function Pre(e,t){if(Qh(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}if(Yh(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}return Pu(e,t)?t.payload:{}}function Are(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=jre(r,t),a=Pre(r,t),o=n.filter(function(l,u){var f=rs(a,l),c=r.props[i].filter(function(m){var y=_re(r,t);return y(m,t)}),d=r.props[i].indexOf(c[c.length-1]),p=u===d;return f&&p}),s=n.indexOf(o[o.length-1]);return s}var af;function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},po.apply(this,arguments)}function KO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(r),!0).forEach(function(n){gr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mN(n.key),n)}}function Ere(e,t,r){return t&&GO(e.prototype,t),r&&GO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nre(e,t,r){return t=_d(t),Tre(e,pN()?Reflect.construct(t,r||[],_d(e).constructor):t.apply(e,r))}function Tre(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cre(e)}function Cre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pN=function(){return!!e})()}function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_d(e)}function $re(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&&Uv(e,t)}function Uv(e,t){return Uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uv(e,t)}function gr(e,t,r){return t=mN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mN(e){var t=Mre(e,"string");return ss(t)=="symbol"?t:t+""}function Mre(e,t){if(ss(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fn=function(e){function t(r){var n;return kre(this,t),n=Nre(this,t,[r]),gr(n,"pieRef",null),gr(n,"sectorRefs",[]),gr(n,"id",Ms("recharts-pie-")),gr(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oe(i)&&i()}),gr(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return $re(t,e),Ere(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,u=a.valueKey,f=ne(this.props,!1),c=ne(o,!1),d=ne(s,!1),p=o&&o.offsetRadius||20,m=n.map(function(y,v){var g=(y.startAngle+y.endAngle)/2,b=Me(y.cx,y.cy,y.outerRadius+p,g),x=Te(Te(Te(Te({},f),y),{},{stroke:"none"},c),{},{index:v,textAnchor:t.getTextAnchor(b.x,y.cx)},b),S=Te(Te(Te(Te({},f),y),{},{fill:"none",stroke:y.fill},d),{},{index:v,points:[Me(y.cx,y.cy,y.outerRadius,g),b]}),w=l;return ce(l)&&ce(u)?w="value":ce(l)&&(w=u),A.createElement(ye,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(o,x,lt(y,w)))});return A.createElement(ye,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var c=i.isActiveIndex(f),d=l&&i.hasActiveIndex()?l:null,p=c?o:d,m=Te(Te({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return A.createElement(ye,po({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Ma(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),A.createElement(hN,po({option:p,isActive:c,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,c=this.state,d=c.prevSectors,p=c.prevIsAnimationActive;return A.createElement(an,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var y=m.t,v=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(x,S){var w=d&&d[S],O=S>0?or(x,"paddingAngle",0):0;if(w){var _=Vt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),j=Te(Te({},x),{},{startAngle:b+O,endAngle:b+_(y)+O});v.push(j),b=j.endAngle}else{var P=x.endAngle,N=x.startAngle,$=Vt(0,P-N),C=$(y),L=Te(Te({},x),{},{startAngle:b+O,endAngle:b+C+O});v.push(L),b=L.endAngle}}),A.createElement(ye,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!rs(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!V(u)||!V(f)||!V(c)||!V(d))return null;var y=fe("recharts-pie",s);return A.createElement(ye,{tabIndex:this.props.rootTabIndex,className:y,ref:function(g){n.pieRef=g}},this.renderSectors(),l&&this.renderLabels(o),mt.renderCallByParent(this.props,null,!1),(!p||m)&&kn.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);if(oe(n))return n(i);var o=fe("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(Ao,po({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);var o=a;if(oe(n)&&(o=n(i),A.isValidElement(o)))return o;var s=fe("recharts-pie-label-text",typeof n!="boolean"&&!oe(n)?n.className:"");return A.createElement(Ia,po({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(E.PureComponent);af=Fn;gr(Fn,"displayName","Pie");gr(Fn,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Wa.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});gr(Fn,"parseDeltaAngle",function(e,t){var r=Mt(t-e),n=Math.min(Math.abs(t-e),360);return r*n});gr(Fn,"getRealPieData",function(e){var t=e.data,r=e.children,n=ne(e,!1),i=Sr(r,$h);return t&&t.length?t.map(function(a,o){return Te(Te(Te({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Te(Te({},n),a.props)}):[]});gr(Fn,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=K2(i,a),s=n+It(e.cx,i,i/2),l=r+It(e.cy,a,a/2),u=It(e.innerRadius,o,0),f=It(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:c}});gr(Fn,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Te(Te({},t.type.defaultProps),t.props):t.props,i=af.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,u=n.dataKey,f=n.nameKey,c=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),m=af.parseCoordinateOfPie(n,r),y=af.parseDeltaAngle(o,s),v=Math.abs(y),g=u;ce(u)&&ce(c)?(Br(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),g="value"):ce(u)&&(Br(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),g=c);var b=i.filter(function(j){return lt(j,g,0)!==0}).length,x=(v>=360?b:b-1)*l,S=v-b*p-x,w=i.reduce(function(j,P){var N=lt(P,g,0);return j+(V(N)?N:0)},0),O;if(w>0){var _;O=i.map(function(j,P){var N=lt(j,g,0),$=lt(j,f,P),C=(V(N)?N:0)/w,L;P?L=_.endAngle+Mt(y)*l*(N!==0?1:0):L=o;var R=L+Mt(y)*((N!==0?p:0)+C*S),I=(L+R)/2,D=(m.innerRadius+m.outerRadius)/2,F=[{name:$,value:N,payload:j,dataKey:g,type:d}],T=Me(m.cx,m.cy,D,I);return _=Te(Te(Te({percent:C,cornerRadius:a,name:$,tooltipPayload:F,midAngle:I,middleRadius:D,tooltipPosition:T},j),m),{},{value:lt(j,g),startAngle:L,endAngle:R,payload:j,paddingAngle:Mt(y)*l}),_})}return Te(Te({},m),{},{sectors:O,data:i})});var Ire=Math.ceil,Rre=Math.max;function Dre(e,t,r,n){for(var i=-1,a=Rre(Ire((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Lre=Dre,zre=IE,XO=1/0,Bre=17976931348623157e292;function Fre(e){if(!e)return e===0?e:0;if(e=zre(e),e===XO||e===-XO){var t=e<0?-1:1;return t*Bre}return e===e?e:0}var yN=Fre,Ure=Lre,Wre=Ch,sm=yN;function Hre(e){return function(t,r,n){return n&&typeof n!="number"&&Wre(t,r,n)&&(r=n=void 0),t=sm(t),r===void 0?(r=t,t=0):r=sm(r),n=n===void 0?t<r?1:-1:sm(n),Ure(t,r,n,e)}}var Vre=Hre,qre=Vre,Kre=qre(),Gre=Kre;const jd=je(Gre);function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function QO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(r),!0).forEach(function(n){vN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vN(e,t,r){return t=Xre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xre(e){var t=Qre(e,"string");return Au(t)=="symbol"?t:t+""}function Qre(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yre=["Webkit","Moz","O","ms"],Jre=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Yre.reduce(function(a,o){return YO(YO({},a),{},vN({},o+n,r))},{});return i[t]=r,i};function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd.apply(this,arguments)}function JO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bN(n.key),n)}}function ene(e,t,r){return t&&ZO(e.prototype,t),r&&ZO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tne(e,t,r){return t=Ad(t),rne(e,gN()?Reflect.construct(t,r||[],Ad(e).constructor):t.apply(e,r))}function rne(e,t){if(t&&(ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nne(e)}function nne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gN=function(){return!!e})()}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ad(e)}function ine(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&&Wv(e,t)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wv(e,t)}function er(e,t,r){return t=bN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e){var t=ane(e,"string");return ls(t)=="symbol"?t:t+""}function ane(e,t){if(ls(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var one=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=Pl().domain(jd(0,l)).range([a,a+o-s]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:f}},e_=function(t){return t.changedTouches&&!!t.changedTouches.length},us=function(e){function t(r){var n;return Zre(this,t),n=tne(this,t,[r]),er(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),er(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),er(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),er(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),er(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),er(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),er(n,"handleSlideDragStart",function(i){var a=e_(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return ine(t,e),ene(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,d);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=lt(a[n],s,n);return oe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,y=n.pageX-a;y>0?y=Math.min(y,u+f-c-s,u+f-c-o):y<0&&(y=Math.max(y,u-o,u-s));var v=this.getIndex({startX:o+y,endX:s+y});(v.startIndex!==d||v.endIndex!==p)&&m&&m(v),this.setState({startX:o+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=e_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,y=f.gap,v=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,c+d-p-u):b<0&&(b=Math.max(b,c-u)),g[o]=u+b;var x=this.getIndex(g),S=x.startIndex,w=x.endIndex,O=function(){var j=v.length-1;return o==="startX"&&(s>l?S%y===0:w%y===0)||s<l&&w===j||o==="endX"&&(s>l?w%y===0:S%y===0)||s>l&&w===j};this.setState(er(er({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&O()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=s.length)){var p=s[d];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(er({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return A.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=E.Children.only(u);return c?A.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,p=l.ariaLabel,m=l.data,y=l.startIndex,v=l.endIndex,g=Math.max(n,this.props.x),b=lm(lm({},ne(this.props,!1)),{},{x:g,y:u,width:f,height:c}),x=p||"Min value: ".concat((a=m[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return A.createElement(ye,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),s.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:u};return A.createElement(ye,{className:"recharts-brush-texts"},A.createElement(Ia,Pd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+s/2},m),this.getTextOfTick(i)),A.createElement(Ia,Pd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,y=d.isTextActive,v=d.isSlideMoving,g=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!V(s)||!V(l)||!V(u)||!V(f)||u<=0||f<=0)return null;var x=fe("recharts-brush",a),S=A.Children.count(o)===1,w=Jre("userSelect","none");return A.createElement(ye,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(y||v||g||b||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),A.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return lm({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?one({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(E.PureComponent);er(us,"displayName","Brush");er(us,"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 sne=V0;function lne(e,t){var r;return sne(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var une=lne,cne=lE,fne=un,dne=une,hne=Zt,pne=Ch;function mne(e,t,r){var n=hne(e)?cne:dne;return r&&pne(e,t,r)&&(t=void 0),n(e,fne(t))}var yne=mne;const vne=je(yne);var rn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},t_=NE;function gne(e,t,r){t=="__proto__"&&t_?t_(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var bne=gne,xne=bne,wne=kE,Sne=un;function One(e,t){var r={};return t=Sne(t),wne(e,function(n,i,a){xne(r,i,t(n,i,a))}),r}var _ne=One;const jne=je(_ne);function Pne(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Ane=Pne,kne=V0;function Ene(e,t){var r=!0;return kne(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var Nne=Ene,Tne=Ane,Cne=Nne,$ne=un,Mne=Zt,Ine=Ch;function Rne(e,t,r){var n=Mne(e)?Tne:Cne;return r&&Ine(e,t,r)&&(t=void 0),n(e,$ne(t))}var Dne=Rne;const xN=je(Dne);var Lne=["x","y"];function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hv.apply(this,arguments)}function r_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(r),!0).forEach(function(n){zne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zne(e,t,r){return t=Bne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bne(e){var t=Fne(e,"string");return ku(t)=="symbol"?t:t+""}function Fne(e,t){if(ku(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ku(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Une(e,t){if(e==null)return{};var r=Wne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hne(e,t){var r=e.x,n=e.y,i=Une(e,Lne),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),d=parseInt(c,10);return sl(sl(sl(sl(sl({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function n_(e){return A.createElement(hN,Hv({shapeType:"rectangle",propTransformer:Hne,activeClassName:"recharts-active-bar"},e))}var Vne=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=V(n)||d6(n);return a?t(n,i):(a||Da(),r)}},qne=["value","background"],wN;function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}function Kne(e,t){if(e==null)return{};var r=Gne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(this,arguments)}function i_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i_(Object(r),!0).forEach(function(n){di(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ON(n.key),n)}}function Qne(e,t,r){return t&&a_(e.prototype,t),r&&a_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yne(e,t,r){return t=Ed(t),Jne(e,SN()?Reflect.construct(t,r||[],Ed(e).constructor):t.apply(e,r))}function Jne(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zne(e)}function Zne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SN=function(){return!!e})()}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ed(e)}function eie(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&&Vv(e,t)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vv(e,t)}function di(e,t,r){return t=ON(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ON(e){var t=tie(e,"string");return cs(t)=="symbol"?t:t+""}function tie(e,t){if(cs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bi=function(e){function t(){var r;Xne(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Yne(this,t,[].concat(i)),di(r,"state",{isAnimationFinished:!1}),di(r,"id",Ms("recharts-bar-")),di(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),di(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return eie(t,e),Qne(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,f=ne(this.props,!1);return n&&n.map(function(c,d){var p=d===l,m=p?u:o,y=Je(Je(Je({},f),c),{},{isActive:p,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(ye,kd({className:"recharts-bar-rectangle"},Ma(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),A.createElement(n_,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return A.createElement(an,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,y=a.map(function(v,g){var b=d&&d[g];if(b){var x=Vt(b.x,v.x),S=Vt(b.y,v.y),w=Vt(b.width,v.width),O=Vt(b.height,v.height);return Je(Je({},v),{},{x:x(m),y:S(m),width:w(m),height:O(m)})}if(o==="horizontal"){var _=Vt(0,v.height),j=_(m);return Je(Je({},v),{},{y:v.y+v.height-j,height:j})}var P=Vt(0,v.width),N=P(m);return Je(Je({},v),{},{width:N})});return A.createElement(ye,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!rs(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=ne(this.props.background,!1);return a.map(function(u,f){u.value;var c=u.background,d=Kne(u,qne);if(!c)return null;var p=Je(Je(Je(Je(Je({},d),{},{fill:"#eee"},c),l),Ma(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return A.createElement(n_,kd({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,f=a.children,c=Sr(f,Hh);if(!c)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,p=function(v,g){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:lt(v,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(ye,m,c.map(function(y){return A.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,f=n.top,c=n.width,d=n.height,p=n.isAnimationActive,m=n.background,y=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,g=fe("recharts-bar",o),b=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,S=b||x,w=ce(y)?this.id:y;return A.createElement(ye,{className:g},b||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(w)},A.createElement("rect",{x:b?u:u-c/2,y:x?f:f-d/2,width:b?c:c*2,height:x?d:d*2}))):null,A.createElement(ye,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||v)&&kn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(E.PureComponent);wN=Bi;di(Bi,"displayName","Bar");di(Bi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wa.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});di(Bi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=TY(n,r);if(!p)return null;var m=t.layout,y=r.type.defaultProps,v=y!==void 0?Je(Je({},y),r.props):r.props,g=v.dataKey,b=v.children,x=v.minPointSize,S=m==="horizontal"?o:a,w=u?S.scale.domain():null,O=LY({numericAxis:S}),_=Sr(b,$h),j=c.map(function(P,N){var $,C,L,R,I,D;u?$=CY(u[f+N],w):($=lt(P,g),Array.isArray($)||($=[O,$]));var F=Vne(x,wN.defaultProps.minPointSize)($[1],N);if(m==="horizontal"){var T,B=[o.scale($[0]),o.scale($[1])],U=B[0],K=B[1];C=YS({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:P,index:N}),L=(T=K??U)!==null&&T!==void 0?T:void 0,R=p.size;var H=U-K;if(I=Number.isNaN(H)?0:H,D={x:C,y:o.y,width:R,height:o.height},Math.abs(F)>0&&Math.abs(I)<Math.abs(F)){var X=Mt(I||F)*(Math.abs(F)-Math.abs(I));L-=X,I+=X}}else{var ie=[a.scale($[0]),a.scale($[1])],be=ie[0],ze=ie[1];if(C=be,L=YS({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:P,index:N}),R=ze-be,I=p.size,D={x:a.x,y:L,width:a.width,height:I},Math.abs(F)>0&&Math.abs(R)<Math.abs(F)){var we=Mt(R||F)*(Math.abs(F)-Math.abs(R));R+=we}}return Je(Je(Je({},P),{},{x:C,y:L,width:R,height:I,value:u?$:$[1],payload:P,background:D},_&&_[N]&&_[N].props),{},{tooltipPayload:[V2(r,P)],tooltipPosition:{x:C+R/2,y:L+I/2}})});return Je({data:j,layout:m},d)});function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_N(n.key),n)}}function nie(e,t,r){return t&&o_(e.prototype,t),r&&o_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(r),!0).forEach(function(n){Jh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jh(e,t,r){return t=_N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _N(e){var t=iie(e,"string");return Eu(t)=="symbol"?t:t+""}function iie(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jN=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!rr(u,Bi);return f.reduce(function(p,m){var y=r[m],v=y.orientation,g=y.domain,b=y.padding,x=b===void 0?{}:b,S=y.mirror,w=y.reversed,O="".concat(v).concat(S?"Mirror":""),_,j,P,N,$;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var C=g[1]-g[0],L=1/0,R=y.categoricalDomain.sort(m6);if(R.forEach(function(ie,be){be>0&&(L=Math.min((ie||0)-(R[be-1]||0),L))}),Number.isFinite(L)){var I=L/C,D=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(_=I*D/2),y.padding==="no-gap"){var F=It(t.barCategoryGap,I*D),T=I*D/2;_=T-F-(T-F)/D*F}}}i==="xAxis"?j=[n.left+(x.left||0)+(_||0),n.left+n.width-(x.right||0)-(_||0)]:i==="yAxis"?j=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(_||0),n.top+n.height-(x.bottom||0)-(_||0)]:j=y.range,w&&(j=[j[1],j[0]]);var B=F2(y,a,d),U=B.scale,K=B.realScaleType;U.domain(g).range(j),U2(U);var H=W2(U,Ir(Ir({},y),{},{realScaleType:K}));i==="xAxis"?($=v==="top"&&!S||v==="bottom"&&S,P=n.left,N=c[O]-$*y.height):i==="yAxis"&&($=v==="left"&&!S||v==="right"&&S,P=c[O]-$*y.width,N=n.top);var X=Ir(Ir(Ir({},y),H),{},{realScaleType:K,x:P,y:N,scale:U,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return X.bandSize=dd(X,H),!y.hide&&i==="xAxis"?c[O]+=($?-1:1)*X.height:y.hide||(c[O]+=($?-1:1)*X.width),Ir(Ir({},p),{},Jh({},m,X))},{})},PN=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},aie=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return PN({x:r,y:n},{x:i,y:a})},AN=function(){function e(t){rie(this,e),this.scale=t}return nie(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Jh(AN,"EPS",1e-4);var xb=function(t){var r=Object.keys(t).reduce(function(n,i){return Ir(Ir({},n),{},Jh({},i,AN.create(t[i])))},{});return Ir(Ir({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return jne(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return xN(i,function(a,o){return r[o].isInRange(a)})}})};function oie(e){return(e%180+180)%180}var sie=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=oie(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},lie=un,uie=Yu,cie=Nh;function fie(e){return function(t,r,n){var i=Object(t);if(!uie(t)){var a=lie(r);t=cie(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var die=fie,hie=yN;function pie(e){var t=hie(e),r=t%1;return t===t?r?t-r:t:0}var mie=pie,yie=SE,vie=un,gie=mie,bie=Math.max;function xie(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:gie(r);return i<0&&(i=bie(n+i,0)),yie(e,vie(t),i)}var wie=xie,Sie=die,Oie=wie,_ie=Sie(Oie),jie=_ie;const Pie=je(jie);var Aie=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("")}),wb=E.createContext(void 0),Sb=E.createContext(void 0),kN=E.createContext(void 0),EN=E.createContext({}),NN=E.createContext(void 0),TN=E.createContext(0),CN=E.createContext(0),l_=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=Aie(a);return A.createElement(wb.Provider,{value:n},A.createElement(Sb.Provider,{value:i},A.createElement(EN.Provider,{value:a},A.createElement(kN.Provider,{value:f},A.createElement(NN.Provider,{value:o},A.createElement(TN.Provider,{value:u},A.createElement(CN.Provider,{value:l},s)))))))},kie=function(){return E.useContext(NN)},$N=function(t){var r=E.useContext(wb);r==null&&Da();var n=r[t];return n==null&&Da(),n},Eie=function(){var t=E.useContext(wb);return Jn(t)},Nie=function(){var t=E.useContext(Sb),r=Pie(t,function(n){return xN(n.domain,Number.isFinite)});return r||Jn(t)},MN=function(t){var r=E.useContext(Sb);r==null&&Da();var n=r[t];return n==null&&Da(),n},Tie=function(){var t=E.useContext(kN);return t},Cie=function(){return E.useContext(EN)},Ob=function(){return E.useContext(CN)},_b=function(){return E.useContext(TN)};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 $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RN(n.key),n)}}function Iie(e,t,r){return t&&Mie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rie(e,t,r){return t=Nd(t),Die(e,IN()?Reflect.construct(t,r||[],Nd(e).constructor):t.apply(e,r))}function Die(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lie(e)}function Lie(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 Nd(e){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nd(e)}function zie(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&&qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qv(e,t)}function u_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u_(Object(r),!0).forEach(function(n){jb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jb(e,t,r){return t=RN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RN(e){var t=Bie(e,"string");return fs(t)=="symbol"?t:t+""}function Bie(e,t){if(fs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Fie(e,t){return Vie(e)||Hie(e,t)||Wie(e,t)||Uie()}function Uie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wie(e,t){if(e){if(typeof e=="string")return f_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f_(e,t)}}function f_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Vie(e){if(Array.isArray(e))return e}function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kv.apply(this,arguments)}var qie=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):oe(t)?n=t(r):n=A.createElement("line",Kv({},r,{className:"recharts-reference-line-line"})),n},Kie=function(t,r,n,i,a,o,s,l,u){var f=a.x,c=a.y,d=a.width,p=a.height;if(n){var m=u.y,y=t.y.apply(m,{position:o});if(rn(u,"discard")&&!t.y.isInRange(y))return null;var v=[{x:f+d,y},{x:f,y}];return l==="left"?v.reverse():v}if(r){var g=u.x,b=t.x.apply(g,{position:o});if(rn(u,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:c+p},{x:b,y:c}];return s==="top"?x.reverse():x}if(i){var S=u.segment,w=S.map(function(O){return t.apply(O,{position:o})});return rn(u,"discard")&&vne(w,function(O){return!t.isInRange(O)})?null:w}return null};function Gie(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=kie(),f=$N(i),c=MN(a),d=Tie();if(!u||!d)return null;Br(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=xb({x:f.scale,y:c.scale}),m=ct(t),y=ct(r),v=n&&n.length===2,g=Kie(p,m,y,v,d,e.position,f.orientation,c.orientation,e);if(!g)return null;var b=Fie(g,2),x=b[0],S=x.x,w=x.y,O=b[1],_=O.x,j=O.y,P=rn(e,"hidden")?"url(#".concat(u,")"):void 0,N=c_(c_({clipPath:P},ne(e,!0)),{},{x1:S,y1:w,x2:_,y2:j});return A.createElement(ye,{className:fe("recharts-reference-line",s)},qie(o,N),mt.renderCallByParent(e,aie({x1:S,y1:w,x2:_,y2:j})))}var Pb=function(e){function t(){return $ie(this,t),Rie(this,t,arguments)}return zie(t,e),Iie(t,[{key:"render",value:function(){return A.createElement(Gie,this.props)}}])}(A.Component);jb(Pb,"displayName","ReferenceLine");jb(Pb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gv.apply(this,arguments)}function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function d_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(r),!0).forEach(function(n){Zh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LN(n.key),n)}}function Yie(e,t,r){return t&&Qie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jie(e,t,r){return t=Td(t),Zie(e,DN()?Reflect.construct(t,r||[],Td(e).constructor):t.apply(e,r))}function Zie(e,t){if(t&&(ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eae(e)}function eae(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 Td(e){return Td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Td(e)}function tae(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&&Xv(e,t)}function Xv(e,t){return Xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xv(e,t)}function Zh(e,t,r){return t=LN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LN(e){var t=rae(e,"string");return ds(t)=="symbol"?t:t+""}function rae(e,t){if(ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nae=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=xb({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return rn(t,"discard")&&!o.isInRange(s)?null:s},ep=function(e){function t(){return Xie(this,t),Jie(this,t,arguments)}return tae(t,e),Yie(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=ct(i),f=ct(a);if(Br(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=nae(this.props);if(!c)return null;var d=c.x,p=c.y,m=this.props,y=m.shape,v=m.className,g=rn(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=h_(h_({clipPath:g},ne(this.props,!0)),{},{cx:d,cy:p});return A.createElement(ye,{className:fe("recharts-reference-dot",v)},t.renderDot(y,b),mt.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(A.Component);Zh(ep,"displayName","ReferenceDot");Zh(ep,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Zh(ep,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):oe(e)?r=e(t):r=A.createElement(Vh,Gv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qv.apply(this,arguments)}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 p_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p_(Object(r),!0).forEach(function(n){tp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BN(n.key),n)}}function oae(e,t,r){return t&&aae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sae(e,t,r){return t=Cd(t),lae(e,zN()?Reflect.construct(t,r||[],Cd(e).constructor):t.apply(e,r))}function lae(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uae(e)}function uae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zN=function(){return!!e})()}function Cd(e){return Cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cd(e)}function cae(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&&Yv(e,t)}function Yv(e,t){return Yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yv(e,t)}function tp(e,t,r){return t=BN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BN(e){var t=fae(e,"string");return hs(t)=="symbol"?t:t+""}function fae(e,t){if(hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dae=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var d=xb({x:f.scale,y:c.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return rn(a,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:PN(p,m)},rp=function(e){function t(){return iae(this,t),sae(this,t,arguments)}return cae(t,e),oae(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,f=n.clipPathId;Br(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ct(i),d=ct(a),p=ct(o),m=ct(s),y=this.props.shape;if(!c&&!d&&!p&&!m&&!y)return null;var v=dae(c,d,p,m,this.props);if(!v&&!y)return null;var g=rn(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(ye,{className:fe("recharts-reference-area",l)},t.renderRect(y,m_(m_({clipPath:g},ne(this.props,!0)),v)),mt.renderCallByParent(this.props,v))}}])}(A.Component);tp(rp,"displayName","ReferenceArea");tp(rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});tp(rp,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):oe(e)?r=e(t):r=A.createElement(bb,Qv({},t,{className:"recharts-reference-area-rect"})),r});function FN(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function hae(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return sie(n,r)}function pae(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function $d(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function mae(e,t){return FN(e,t+1)}function yae(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:FN(n,u)};var y=l,v,g=function(){return v===void 0&&(v=r(m,y)),v},b=m.coordinate,x=l===0||$d(e,b,g,f,s);x||(l=0,f=o,u+=1),x&&(f=b+e*(g()/2+i),l+=u)},d;u<=a.length;)if(d=c(),d)return d.v;return[]}function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function y_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(r),!0).forEach(function(n){vae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vae(e,t,r){return t=gae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gae(e){var t=bae(e,"string");return Nu(t)=="symbol"?t:t+""}function bae(e,t){if(Nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xae(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var p=a[d],m,y=function(){return m===void 0&&(m=r(p,d)),m};if(d===o-1){var v=e*(p.coordinate+e*y()/2-l);a[d]=p=Pt(Pt({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else a[d]=p=Pt(Pt({},p),{},{tickCoord:p.coordinate});var g=$d(e,p.tickCoord,y,s,l);g&&(l=p.tickCoord-e*(y()/2+i),a[d]=Pt(Pt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function wae(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),d=e*(f.coordinate+e*c/2-u);o[s-1]=f=Pt(Pt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=$d(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),o[s-1]=Pt(Pt({},f),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(b){var x=o[b],S,w=function(){return S===void 0&&(S=r(x,b)),S};if(b===0){var O=e*(x.coordinate-e*w()/2-l);o[b]=x=Pt(Pt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[b]=x=Pt(Pt({},x),{},{tickCoord:x.coordinate});var _=$d(e,x.tickCoord,w,l,u);_&&(l=x.tickCoord+e*(w()/2+i),o[b]=Pt(Pt({},x),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function Ab(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(V(l)||Wa.isSsr)return mae(i,typeof l=="number"&&V(l)?l:0);var d=[],p=s==="top"||s==="bottom"?"width":"height",m=f&&p==="width"?jl(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(x,S){var w=oe(u)?u(x.value,S):x.value;return p==="width"?hae(jl(w,{fontSize:t,letterSpacing:r}),m,c):jl(w,{fontSize:t,letterSpacing:r})[p]},v=i.length>=2?Mt(i[1].coordinate-i[0].coordinate):1,g=pae(a,v,p);return l==="equidistantPreserveStart"?yae(v,g,y,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=wae(v,g,y,i,o,l==="preserveStartEnd"):d=xae(v,g,y,i,o),d.filter(function(b){return b.isShow}))}var Sae=["viewBox"],Oae=["viewBox"],_ae=["ticks"];function ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mo.apply(this,arguments)}function v_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v_(Object(r),!0).forEach(function(n){kb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function um(e,t){if(e==null)return{};var r=jae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Pae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WN(n.key),n)}}function Aae(e,t,r){return t&&g_(e.prototype,t),r&&g_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kae(e,t,r){return t=Md(t),Eae(e,UN()?Reflect.construct(t,r||[],Md(e).constructor):t.apply(e,r))}function Eae(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nae(e)}function Nae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UN=function(){return!!e})()}function Md(e){return Md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Md(e)}function Tae(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&&Jv(e,t)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jv(e,t)}function kb(e,t,r){return t=WN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WN(e){var t=Cae(e,"string");return ps(t)=="symbol"?t:t+""}function Cae(e,t){if(ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fs=function(e){function t(r){var n;return Pae(this,t),n=kae(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Tae(t,e),Aae(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=um(n,Sae),s=this.props,l=s.viewBox,u=um(s,Oae);return!Oo(a,l)||!Oo(o,u)||!Oo(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,m,y,v,g,b,x=c?-1:1,S=n.tickSize||f,w=V(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=m=n.coordinate,v=o+ +!c*l,y=v-x*S,b=y-x*d,g=w;break;case"left":y=v=n.coordinate,m=a+ +!c*s,p=m-x*S,g=p-x*d,b=w;break;case"right":y=v=n.coordinate,m=a+ +c*s,p=m+x*S,g=p+x*d,b=w;break;default:p=m=n.coordinate,v=o+ +c*l,y=v+x*S,b=y+x*d,g=w;break}return{line:{x1:p,y1:y,x2:m,y2:v},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,f=n.axisLine,c=it(it(it({},ne(this.props,!1)),ne(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);c=it(it({},c),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);c=it(it({},c),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return A.createElement("line",mo({},c,{className:fe("recharts-cartesian-axis-line",or(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,c=s.tickFormatter,d=s.unit,p=Ab(it(it({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=ne(this.props,!1),g=ne(f,!1),b=it(it({},v),{},{fill:"none"},ne(l,!1)),x=p.map(function(S,w){var O=o.getTickLineCoord(S),_=O.line,j=O.tick,P=it(it(it(it({textAnchor:m,verticalAnchor:y},v),{},{stroke:"none",fill:u},g),j),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:c});return A.createElement(ye,mo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Ma(o.props,S,w)),l&&A.createElement("line",mo({},b,_,{className:fe("recharts-cartesian-axis-tick-line",or(l,"className"))})),f&&t.renderTickItem(f,P,"".concat(oe(c)?c(S.value,w):S.value).concat(d||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=um(c,_ae),m=d;return oe(l)&&(m=d&&d.length>0?l(this.props):l(p)),o<=0||s<=0||!m||!m.length?null:A.createElement(ye,{className:fe("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=fe(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,it(it({},i),{},{className:s})):oe(n)?o=n(it(it({},i),{},{className:s})):o=A.createElement(Ia,mo({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(E.Component);kb(Fs,"displayName","CartesianAxis");kb(Fs,"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 $ae=["x1","y1","x2","y2","key"],Mae=["offset"];function La(e){"@babel/helpers - typeof";return La=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},La(e)}function b_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(r),!0).forEach(function(n){Iae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iae(e,t,r){return t=Rae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rae(e){var t=Dae(e,"string");return La(t)=="symbol"?t:t+""}function Dae(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sa.apply(this,arguments)}function x_(e,t){if(e==null)return{};var r=Lae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var zae=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return A.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function HN(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=x_(t,$ae),u=ne(l,!1);u.offset;var f=x_(u,Mae);r=A.createElement("line",sa({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Bae(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return HN(i,u)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Fae(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return HN(i,u)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Uae(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],y=m?i+o-d:f[p+1]-d;if(y<=0)return null;var v=p%t.length;return A.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:y,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Wae(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],y=m?a+s-d:f[p+1]-d;if(y<=0)return null;var v=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:y,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Hae=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return B2(Ab(kt(kt(kt({},Fs.defaultProps),n),{},{ticks:_n(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Vae=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return B2(Ab(kt(kt(kt({},Fs.defaultProps),n),{},{ticks:_n(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ja={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Tu(e){var t,r,n,i,a,o,s=Ob(),l=_b(),u=Cie(),f=kt(kt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ja.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ja.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ja.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ja.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ja.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ja.verticalFill,x:V(e.x)?e.x:u.left,y:V(e.y)?e.y:u.top,width:V(e.width)?e.width:u.width,height:V(e.height)?e.height:u.height}),c=f.x,d=f.y,p=f.width,m=f.height,y=f.syncWithTicks,v=f.horizontalValues,g=f.verticalValues,b=Eie(),x=Nie();if(!V(p)||p<=0||!V(m)||m<=0||!V(c)||c!==+c||!V(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||Hae,w=f.horizontalCoordinatesGenerator||Vae,O=f.horizontalPoints,_=f.verticalPoints;if((!O||!O.length)&&oe(w)){var j=v&&v.length,P=w({yAxis:x?kt(kt({},x),{},{ticks:j?v:x.ticks}):void 0,width:s,height:l,offset:u},j?!0:y);Br(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(La(P),"]")),Array.isArray(P)&&(O=P)}if((!_||!_.length)&&oe(S)){var N=g&&g.length,$=S({xAxis:b?kt(kt({},b),{},{ticks:N?g:b.ticks}):void 0,width:s,height:l,offset:u},N?!0:y);Br(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(La($),"]")),Array.isArray($)&&(_=$)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(zae,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),A.createElement(Bae,sa({},f,{offset:u,horizontalPoints:O,xAxis:b,yAxis:x})),A.createElement(Fae,sa({},f,{offset:u,verticalPoints:_,xAxis:b,yAxis:x})),A.createElement(Uae,sa({},f,{horizontalPoints:O})),A.createElement(Wae,sa({},f,{verticalPoints:_})))}Tu.displayName="CartesianGrid";var qae=["layout","type","stroke","connectNulls","isRange","ref"],Kae=["key"],VN;function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function qN(e,t){if(e==null)return{};var r=Gae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},la.apply(this,arguments)}function w_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(r),!0).forEach(function(n){Jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GN(n.key),n)}}function Qae(e,t,r){return t&&S_(e.prototype,t),r&&S_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yae(e,t,r){return t=Id(t),Jae(e,KN()?Reflect.construct(t,r||[],Id(e).constructor):t.apply(e,r))}function Jae(e,t){if(t&&(ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zae(e)}function Zae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KN=function(){return!!e})()}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Id(e)}function eoe(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&&Zv(e,t)}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zv(e,t)}function Jr(e,t,r){return t=GN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GN(e){var t=toe(e,"string");return ms(t)=="symbol"?t:t+""}function toe(e,t){if(ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var on=function(e){function t(){var r;Xae(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Yae(this,t,[].concat(i)),Jr(r,"state",{isAnimationFinished:!0}),Jr(r,"id",Ms("recharts-area-")),Jr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),Jr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),r}return eoe(t,e),Qae(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,f=l.points,c=l.dataKey,d=ne(this.props,!1),p=ne(u,!0),m=f.map(function(v,g){var b=qn(qn(qn({key:"dot-".concat(g),r:3},d),p),{},{index:g,cx:v.x,cy:v.y,dataKey:c,value:v.value,payload:v.payload,points:f});return t.renderDotItem(u,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(ye,la({className:"recharts-area-dots"},y),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,f=n*Math.abs(l-u),c=fi(o.map(function(d){return d.y||0}));return V(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(fi(a.map(function(d){return d.y||0})),c)),V(c)?A.createElement("rect",{x:l<u?l:l-f,y:0,width:f,height:Math.floor(c+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,f=n*Math.abs(l-u),c=fi(o.map(function(d){return d.x||0}));return V(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(fi(a.map(function(d){return d.x||0})),c)),V(c)?A.createElement("rect",{x:0,y:l<u?l:l-f,width:c+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,f=s.stroke,c=s.connectNulls,d=s.isRange;s.ref;var p=qN(s,qae);return A.createElement(ye,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Ao,la({},ne(p,!0),{points:n,connectNulls:c,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&A.createElement(Ao,la({},ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:c,fill:"none",points:n})),f!=="none"&&d&&A.createElement(Ao,la({},ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:c,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,m=this.state,y=m.prevPoints,v=m.prevBaseLine;return A.createElement(an,{begin:f,duration:c,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(y){var x=y.length/s.length,S=s.map(function(j,P){var N=Math.floor(P*x);if(y[N]){var $=y[N],C=Vt($.x,j.x),L=Vt($.y,j.y);return qn(qn({},j),{},{x:C(b),y:L(b)})}return j}),w;if(V(l)&&typeof l=="number"){var O=Vt(v,l);w=O(b)}else if(ce(l)||$s(l)){var _=Vt(v,0);w=_(b)}else w=l.map(function(j,P){var N=Math.floor(P*x);if(v[N]){var $=v[N],C=Vt($.x,j.x),L=Vt($.y,j.y);return qn(qn({},j),{},{x:C(b),y:L(b)})}return j});return a.renderAreaStatically(S,w,n,i)}return A.createElement(ye,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),A.createElement(ye,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,f=u.prevPoints,c=u.prevBaseLine,d=u.totalLength;return l&&o&&o.length&&(!f&&d>0||!rs(f,o)||!rs(c,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,c=i.xAxis,d=i.yAxis,p=i.width,m=i.height,y=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=fe("recharts-area",l),S=c&&c.allowDataOverflow,w=d&&d.allowDataOverflow,O=S||w,_=ce(v)?this.id:v,j=(n=ne(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=j.r,N=P===void 0?3:P,$=j.strokeWidth,C=$===void 0?2:$,L=_6(o)?o:{},R=L.clipDot,I=R===void 0?!0:R,D=N*2+C;return A.createElement(ye,{className:x},S||w?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(_)},A.createElement("rect",{x:S?f:f-p/2,y:w?u:u-m/2,width:S?p:p*2,height:w?m:m*2})),!I&&A.createElement("clipPath",{id:"clipPath-dots-".concat(_)},A.createElement("rect",{x:f-D/2,y:u-D/2,width:p+D,height:m+D}))):null,b?null:this.renderArea(O,_),(o||b)&&this.renderDots(O,I,_),(!y||g)&&kn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(E.PureComponent);VN=on;Jr(on,"displayName","Area");Jr(on,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Wa.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Jr(on,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(V(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return s==="dataMin"?c:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Jr(on,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=t.layout,m=u&&u.length,y=VN.getBaseValue(t,r,n,i),v=p==="horizontal",g=!1,b=c.map(function(S,w){var O;m?O=u[f+w]:(O=lt(S,l),Array.isArray(O)?g=!0:O=[y,O]);var _=O[1]==null||m&&lt(S,l)==null;return v?{x:QS({axis:n,ticks:a,bandSize:s,entry:S,index:w}),y:_?null:i.scale(O[1]),value:O,payload:S}:{x:_?null:n.scale(O[1]),y:QS({axis:i,ticks:o,bandSize:s,entry:S,index:w}),value:O,payload:S}}),x;return m||g?x=b.map(function(S){var w=Array.isArray(S.value)?S.value[0]:null;return v?{x:S.x,y:w!=null&&S.y!=null?i.scale(w):null}:{x:w!=null?n.scale(w):null,y:S.y}}):x=v?i.scale(y):n.scale(y),qn({points:b,baseLine:x,layout:p,isRange:g},d)});Jr(on,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=qN(t,Kae);r=A.createElement(Vh,la({},a,{key:i,className:n}))}return r});function ys(e){"@babel/helpers - typeof";return ys=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},ys(e)}function roe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function noe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YN(n.key),n)}}function ioe(e,t,r){return t&&noe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aoe(e,t,r){return t=Rd(t),ooe(e,XN()?Reflect.construct(t,r||[],Rd(e).constructor):t.apply(e,r))}function ooe(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return soe(e)}function soe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XN=function(){return!!e})()}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rd(e)}function loe(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&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function QN(e,t,r){return t=YN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YN(e){var t=uoe(e,"string");return ys(t)=="symbol"?t:t+""}function uoe(e,t){if(ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tg(){return tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tg.apply(this,arguments)}function coe(e){var t=e.xAxisId,r=Ob(),n=_b(),i=$N(t);return i==null?null:E.createElement(Fs,tg({},i,{className:fe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return _n(o,!0)}}))}var Ei=function(e){function t(){return roe(this,t),aoe(this,t,arguments)}return loe(t,e),ioe(t,[{key:"render",value:function(){return E.createElement(coe,this.props)}}])}(E.Component);QN(Ei,"displayName","XAxis");QN(Ei,"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 vs(e){"@babel/helpers - typeof";return vs=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},vs(e)}function foe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function doe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eT(n.key),n)}}function hoe(e,t,r){return t&&doe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function poe(e,t,r){return t=Dd(t),moe(e,JN()?Reflect.construct(t,r||[],Dd(e).constructor):t.apply(e,r))}function moe(e,t){if(t&&(vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yoe(e)}function yoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JN=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}function voe(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&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rg(e,t)}function ZN(e,t,r){return t=eT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eT(e){var t=goe(e,"string");return vs(t)=="symbol"?t:t+""}function goe(e,t){if(vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}var boe=function(t){var r=t.yAxisId,n=Ob(),i=_b(),a=MN(r);return a==null?null:E.createElement(Fs,ng({},a,{className:fe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return _n(s,!0)}}))},Ni=function(e){function t(){return foe(this,t),poe(this,t,arguments)}return voe(t,e),hoe(t,[{key:"render",value:function(){return E.createElement(boe,this.props)}}])}(E.Component);ZN(Ni,"displayName","YAxis");ZN(Ni,"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 O_(e){return Ooe(e)||Soe(e)||woe(e)||xoe()}function xoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function woe(e,t){if(e){if(typeof e=="string")return ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ig(e,t)}}function Soe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ooe(e){if(Array.isArray(e))return ig(e)}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ag=function(t,r,n,i,a){var o=Sr(t,Pb),s=Sr(t,ep),l=[].concat(O_(o),O_(s)),u=Sr(t,rp),f="".concat(i,"Id"),c=i[0],d=r;if(l.length&&(d=l.reduce(function(y,v){if(v.props[f]===n&&rn(v.props,"extendDomain")&&V(v.props[c])){var g=v.props[c];return[Math.min(y[0],g),Math.max(y[1],g)]}return y},d)),u.length){var p="".concat(c,"1"),m="".concat(c,"2");d=u.reduce(function(y,v){if(v.props[f]===n&&rn(v.props,"extendDomain")&&V(v.props[p])&&V(v.props[m])){var g=v.props[p],b=v.props[m];return[Math.min(y[0],g,b),Math.max(y[1],g,b)]}return y},d)}return a&&a.length&&(d=a.reduce(function(y,v){return V(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},d)),d},tT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function a(l,u,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||l,d),m=r?r+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=r?r+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,m=new Array(p);d<p;d++)m[d]=c[d].fn;return m},s.prototype.listenerCount=function(u){var f=r?r+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,d,p,m){var y=r?r+u:u;if(!this._events[y])return!1;var v=this._events[y],g=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,c),!0;case 4:return v.fn.call(v.context,f,c,d),!0;case 5:return v.fn.call(v.context,f,c,d,p),!0;case 6:return v.fn.call(v.context,f,c,d,p,m),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var S=v.length,w;for(x=0;x<S;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),g){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,f);break;case 3:v[x].fn.call(v[x].context,f,c);break;case 4:v[x].fn.call(v[x].context,f,c,d);break;default:if(!b)for(w=1,b=new Array(g-1);w<g;w++)b[w-1]=arguments[w];v[x].fn.apply(v[x].context,b)}}return!0},s.prototype.on=function(u,f,c){return a(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return a(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,d){var p=r?r+u:u;if(!this._events[p])return this;if(!f)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!d||m.once)&&(!c||m.context===c)&&o(this,p);else{for(var y=0,v=[],g=m.length;y<g;y++)(m[y].fn!==f||d&&!m[y].once||c&&m[y].context!==c)&&v.push(m[y]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(tT);var _oe=tT.exports;const joe=je(_oe);var cm=new joe,fm="recharts.syncMouseEvents";function Cu(e){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cu(e)}function Poe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aoe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rT(n.key),n)}}function koe(e,t,r){return t&&Aoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dm(e,t,r){return t=rT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rT(e){var t=Eoe(e,"string");return Cu(t)=="symbol"?t:t+""}function Eoe(e,t){if(Cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Noe=function(){function e(){Poe(this,e),dm(this,"activeIndex",0),dm(this,"coordinateList",[]),dm(this,"layout","horizontal")}return koe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??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(r){if(this.coordinateList.length!==0)switch(r.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(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+l+u,d=o+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function Toe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&V(n)&&V(i))return!0}return!1}function Coe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function nT(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Me(t,r,n,i),s=Me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function $oe(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,d=Me(s,l,u,c),p=Me(s,l,f,c);n=d.x,i=d.y,a=p.x,o=p.y}else return nT(t);return[{x:n,y:i},{x:a,y:o}]}function $u(e){"@babel/helpers - typeof";return $u=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},$u(e)}function __(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?__(Object(r),!0).forEach(function(n){Moe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):__(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Moe(e,t,r){return t=Ioe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ioe(e){var t=Roe(e,"string");return $u(t)=="symbol"?t:t+""}function Roe(e,t){if($u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Doe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,y=Ao;if(d==="ScatterChart")m=o,y=ate;else if(d==="BarChart")m=Coe(c,o,l,f),y=bb;else if(c==="radial"){var v=nT(o),g=v.cx,b=v.cy,x=v.radius,S=v.startAngle,w=v.endAngle;m={cx:g,cy:b,startAngle:S,endAngle:w,innerRadius:x,outerRadius:x},y=Y2}else m={points:$oe(c,o,l)},y=Ao;var O=Lc(Lc(Lc(Lc({stroke:"#ccc",pointerEvents:"none"},l),m),ne(p,!1)),{},{payload:s,payloadIndex:u,className:fe("recharts-tooltip-cursor",p.className)});return E.isValidElement(p)?E.cloneElement(p,O):E.createElement(y,O)}var Loe=["item"],zoe=["children","className","width","height","style","compact","title","desc"];function gs(e){"@babel/helpers - typeof";return gs=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},gs(e)}function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yo.apply(this,arguments)}function j_(e,t){return Uoe(e)||Foe(e,t)||aT(e,t)||Boe()}function Boe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Foe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Uoe(e){if(Array.isArray(e))return e}function P_(e,t){if(e==null)return{};var r=Woe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Woe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Voe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oT(n.key),n)}}function qoe(e,t,r){return t&&Voe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Koe(e,t,r){return t=Ld(t),Goe(e,iT()?Reflect.construct(t,r||[],Ld(e).constructor):t.apply(e,r))}function Goe(e,t){if(t&&(gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xoe(e)}function Xoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iT=function(){return!!e})()}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ld(e)}function Qoe(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&&og(e,t)}function og(e,t){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},og(e,t)}function bs(e){return Zoe(e)||Joe(e)||aT(e)||Yoe()}function Yoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aT(e,t){if(e){if(typeof e=="string")return sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sg(e,t)}}function Joe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zoe(e){if(Array.isArray(e))return sg(e)}function sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ae(e,t,r){return t=oT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oT(e){var t=ese(e,"string");return gs(t)=="symbol"?t:t+""}function ese(e,t){if(gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tse={xAxis:["bottom","top"],yAxis:["left","right"]},rse={width:"100%",height:"100%"},sT={x:0,y:0};function zc(e){return e}var nse=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},ise=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return z(z(z({},i),Me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return z(z(z({},i),Me(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return sT},np=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(bs(s),bs(u)):s},[]);return o.length>0?o:t&&t.length&&V(i)&&V(a)?t.slice(i,a+1):[]};function lT(e){return e==="number"?[0,"auto"]:void 0}var lg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=np(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?s:c;d=Df(p,o.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(bs(l),[V2(u,d)]):l},[])},k_=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=nse(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=jY(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=lg(t,r,f,c),p=ise(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},ase=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=z2(f,a);return n.reduce(function(m,y){var v,g=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,b=g.type,x=g.dataKey,S=g.allowDataOverflow,w=g.allowDuplicatedCategory,O=g.scale,_=g.ticks,j=g.includeHidden,P=g[o];if(m[P])return m;var N=np(t.data,{graphicalItems:i.filter(function(H){var X,ie=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:l,dataEndIndex:u}),$=N.length,C,L,R;Toe(g.domain,S,b)&&(C=Ov(g.domain,null,S),p&&(b==="number"||O!=="auto")&&(R=Al(N,x,"category")));var I=lT(b);if(!C||C.length===0){var D,F=(D=g.domain)!==null&&D!==void 0?D:I;if(x){if(C=Al(N,x,b),b==="category"&&p){var T=p6(C);w&&T?(L=C,C=jd(0,$)):w||(C=eO(F,C,y).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(bs(H),[X])},[]))}else if(b==="category")w?C=C.filter(function(H){return H!==""&&!ce(H)}):C=eO(F,C,y).reduce(function(H,X){return H.indexOf(X)>=0||X===""||ce(X)?H:[].concat(bs(H),[X])},[]);else if(b==="number"){var B=NY(N,i.filter(function(H){var X,ie,be=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ze="hide"in H.props?H.props.hide:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return be===P&&(j||!ze)}),x,a,f);B&&(C=B)}p&&(b==="number"||O!=="auto")&&(R=Al(N,x,"category"))}else p?C=jd(0,$):s&&s[P]&&s[P].hasStack&&b==="number"?C=d==="expand"?[0,1]:H2(s[P].stackGroups,l,u):C=L2(N,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],ie="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===P&&(j||!ie)}),b,f,!0);if(b==="number")C=ag(c,C,P,a,_),F&&(C=Ov(F,C,S));else if(b==="category"&&F){var U=F,K=C.every(function(H){return U.indexOf(H)>=0});K&&(C=U)}}return z(z({},m),{},ae({},P,z(z({},g),{},{axisType:a,domain:C,categoricalDomain:R,duplicateDomain:L,originalDomain:(v=g.domain)!==null&&v!==void 0?v:I,isCategorical:p,layout:f})))},{})},ose=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=np(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=d.length,m=z2(f,a),y=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,x=b[o],S=lT("number");if(!v[x]){y++;var w;return m?w=jd(0,p):s&&s[x]&&s[x].hasStack?(w=H2(s[x].stackGroups,l,u),w=ag(c,w,x,a)):(w=Ov(S,L2(d,n.filter(function(O){var _,j,P=o in O.props?O.props[o]:(_=O.type.defaultProps)===null||_===void 0?void 0:_[o],N="hide"in O.props?O.props.hide:(j=O.type.defaultProps)===null||j===void 0?void 0:j.hide;return P===x&&!N}),"number",f),i.defaultProps.allowDataOverflow),w=ag(c,w,x,a)),z(z({},v),{},ae({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:or(tse,"".concat(a,".").concat(y%2),null),domain:w,originalDomain:S,isCategorical:m,layout:f})))}return v},{})},sse=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Sr(f,a),p={};return d&&d.length?p=ase(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=ose(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},lse=function(t){var r=Jn(t),n=_n(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:q0(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:dd(r,n)}},E_=function(t){var r=t.children,n=t.defaultShowTooltip,i=rr(r,us),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},use=function(t){return!t||!t.length?!1:t.some(function(r){var n=Pn(r&&r.type);return n&&n.indexOf("Bar")>=0})},N_=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"}},cse=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,d=n.margin||{},p=rr(c,us),m=rr(c,_o),y=Object.keys(l).reduce(function(w,O){var _=l[O],j=_.orientation;return!_.mirror&&!_.hide?z(z({},w),{},ae({},j,w[j]+_.width)):w},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(w,O){var _=o[O],j=_.orientation;return!_.mirror&&!_.hide?z(z({},w),{},ae({},j,or(w,"".concat(j))+_.height)):w},{top:d.top||0,bottom:d.bottom||0}),g=z(z({},v),y),b=g.bottom;p&&(g.bottom+=p.props.height||us.defaultProps.height),m&&r&&(g=kY(g,i,n,r));var x=u-g.left-g.right,S=f-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(S,0)})},fse=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Eb=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(g,b){var x=b.graphicalItems,S=b.stackGroups,w=b.offset,O=b.updateId,_=b.dataStartIndex,j=b.dataEndIndex,P=g.barSize,N=g.layout,$=g.barGap,C=g.barCategoryGap,L=g.maxBarSize,R=N_(N),I=R.numericAxisName,D=R.cateAxisName,F=use(x),T=[];return x.forEach(function(B,U){var K=np(g.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:j}),H=B.type.defaultProps!==void 0?z(z({},B.type.defaultProps),B.props):B.props,X=H.dataKey,ie=H.maxBarSize,be=H["".concat(I,"Id")],ze=H["".concat(D,"Id")],we={},gt=l.reduce(function(Fi,Ui){var ip=b["".concat(Ui.axisType,"Map")],Nb=H["".concat(Ui.axisType,"Id")];ip&&ip[Nb]||Ui.axisType==="zAxis"||Da();var Tb=ip[Nb];return z(z({},Fi),{},ae(ae({},Ui.axisType,Tb),"".concat(Ui.axisType,"Ticks"),_n(Tb)))},we),G=gt[D],le=gt["".concat(D,"Ticks")],ue=S&&S[be]&&S[be].hasStack&&zY(B,S[be].stackGroups),W=Pn(B.type).indexOf("Bar")>=0,Ve=dd(G,le),ve=[],tt=F&&PY({barSize:P,stackGroups:S,totalSize:fse(gt,D)});if(W){var rt,Bt,Un=ce(ie)?L:ie,Ka=(rt=(Bt=dd(G,le,!0))!==null&&Bt!==void 0?Bt:Un)!==null&&rt!==void 0?rt:0;ve=AY({barGap:$,barCategoryGap:C,bandSize:Ka!==Ve?Ka:Ve,sizeList:tt[ze],maxBarSize:Un}),Ka!==Ve&&(ve=ve.map(function(Fi){return z(z({},Fi),{},{position:z(z({},Fi.position),{},{offset:Fi.position.offset-Ka/2})})}))}var rc=B&&B.type&&B.type.getComposedData;rc&&T.push({props:z(z({},rc(z(z({},gt),{},{displayedData:K,props:g,dataKey:X,item:B,bandSize:Ve,barPosition:ve,offset:w,stackedData:ue,layout:N,dataStartIndex:_,dataEndIndex:j}))),{},ae(ae(ae({key:B.key||"item-".concat(U)},I,gt[I]),D,gt[D]),"animationId",O)),childIndex:A6(B,g.children),item:B})}),T},p=function(g,b){var x=g.props,S=g.dataStartIndex,w=g.dataEndIndex,O=g.updateId;if(!K1({props:x}))return null;var _=x.children,j=x.layout,P=x.stackOffset,N=x.data,$=x.reverseStackOrder,C=N_(j),L=C.numericAxisName,R=C.cateAxisName,I=Sr(_,n),D=DY(N,I,"".concat(L,"Id"),"".concat(R,"Id"),P,$),F=l.reduce(function(H,X){var ie="".concat(X.axisType,"Map");return z(z({},H),{},ae({},ie,sse(x,z(z({},X),{},{graphicalItems:I,stackGroups:X.axisType===L&&D,dataStartIndex:S,dataEndIndex:w}))))},{}),T=cse(z(z({},F),{},{props:x,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(F).forEach(function(H){F[H]=f(x,F[H],T,H.replace("Map",""),r)});var B=F["".concat(R,"Map")],U=lse(B),K=d(x,z(z({},F),{},{dataStartIndex:S,dataEndIndex:w,updateId:O,graphicalItems:I,stackGroups:D,offset:T}));return z(z({formattedGraphicalItems:K,graphicalItems:I,offset:T,stackGroups:D},U),F)},m=function(v){function g(b){var x,S,w;return Hoe(this,g),w=Koe(this,g,[b]),ae(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(w,"accessibilityManager",new Noe),ae(w,"handleLegendBBoxUpdate",function(O){if(O){var _=w.state,j=_.dataStartIndex,P=_.dataEndIndex,N=_.updateId;w.setState(z({legendBBox:O},p({props:w.props,dataStartIndex:j,dataEndIndex:P,updateId:N},z(z({},w.state),{},{legendBBox:O}))))}}),ae(w,"handleReceiveSyncEvent",function(O,_,j){if(w.props.syncId===O){if(j===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(_)}}),ae(w,"handleBrushChange",function(O){var _=O.startIndex,j=O.endIndex;if(_!==w.state.dataStartIndex||j!==w.state.dataEndIndex){var P=w.state.updateId;w.setState(function(){return z({dataStartIndex:_,dataEndIndex:j},p({props:w.props,dataStartIndex:_,dataEndIndex:j,updateId:P},w.state))}),w.triggerSyncEvent({dataStartIndex:_,dataEndIndex:j})}}),ae(w,"handleMouseEnter",function(O){var _=w.getMouseInfo(O);if(_){var j=z(z({},_),{},{isTooltipActive:!0});w.setState(j),w.triggerSyncEvent(j);var P=w.props.onMouseEnter;oe(P)&&P(j,O)}}),ae(w,"triggeredAfterMouseMove",function(O){var _=w.getMouseInfo(O),j=_?z(z({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(j),w.triggerSyncEvent(j);var P=w.props.onMouseMove;oe(P)&&P(j,O)}),ae(w,"handleItemMouseEnter",function(O){w.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ae(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(w,"handleMouseMove",function(O){O.persist(),w.throttleTriggeredAfterMouseMove(O)}),ae(w,"handleMouseLeave",function(O){w.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var j=w.props.onMouseLeave;oe(j)&&j(_,O)}),ae(w,"handleOuterEvent",function(O){var _=P6(O),j=or(w.props,"".concat(_));if(_&&oe(j)){var P,N;/.*touch.*/i.test(_)?N=w.getMouseInfo(O.changedTouches[0]):N=w.getMouseInfo(O),j((P=N)!==null&&P!==void 0?P:{},O)}}),ae(w,"handleClick",function(O){var _=w.getMouseInfo(O);if(_){var j=z(z({},_),{},{isTooltipActive:!0});w.setState(j),w.triggerSyncEvent(j);var P=w.props.onClick;oe(P)&&P(j,O)}}),ae(w,"handleMouseDown",function(O){var _=w.props.onMouseDown;if(oe(_)){var j=w.getMouseInfo(O);_(j,O)}}),ae(w,"handleMouseUp",function(O){var _=w.props.onMouseUp;if(oe(_)){var j=w.getMouseInfo(O);_(j,O)}}),ae(w,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ae(w,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseDown(O.changedTouches[0])}),ae(w,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseUp(O.changedTouches[0])}),ae(w,"handleDoubleClick",function(O){var _=w.props.onDoubleClick;if(oe(_)){var j=w.getMouseInfo(O);_(j,O)}}),ae(w,"handleContextMenu",function(O){var _=w.props.onContextMenu;if(oe(_)){var j=w.getMouseInfo(O);_(j,O)}}),ae(w,"triggerSyncEvent",function(O){w.props.syncId!==void 0&&cm.emit(fm,w.props.syncId,O,w.eventEmitterSymbol)}),ae(w,"applySyncEvent",function(O){var _=w.props,j=_.layout,P=_.syncMethod,N=w.state.updateId,$=O.dataStartIndex,C=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)w.setState(z({dataStartIndex:$,dataEndIndex:C},p({props:w.props,dataStartIndex:$,dataEndIndex:C,updateId:N},w.state)));else if(O.activeTooltipIndex!==void 0){var L=O.chartX,R=O.chartY,I=O.activeTooltipIndex,D=w.state,F=D.offset,T=D.tooltipTicks;if(!F)return;if(typeof P=="function")I=P(T,O);else if(P==="value"){I=-1;for(var B=0;B<T.length;B++)if(T[B].value===O.activeLabel){I=B;break}}var U=z(z({},F),{},{x:F.left,y:F.top}),K=Math.min(L,U.x+U.width),H=Math.min(R,U.y+U.height),X=T[I]&&T[I].value,ie=lg(w.state,w.props.data,I),be=T[I]?{x:j==="horizontal"?T[I].coordinate:K,y:j==="horizontal"?H:T[I].coordinate}:sT;w.setState(z(z({},O),{},{activeLabel:X,activeCoordinate:be,activePayload:ie,activeTooltipIndex:I}))}else w.setState(O)}),ae(w,"renderCursor",function(O){var _,j=w.state,P=j.isTooltipActive,N=j.activeCoordinate,$=j.activePayload,C=j.offset,L=j.activeTooltipIndex,R=j.tooltipAxisBandSize,I=w.getTooltipEventType(),D=(_=O.props.active)!==null&&_!==void 0?_:P,F=w.props.layout,T=O.key||"_recharts-cursor";return A.createElement(Doe,{key:T,activeCoordinate:N,activePayload:$,activeTooltipIndex:L,chartName:r,element:O,isActive:D,layout:F,offset:C,tooltipAxisBandSize:R,tooltipEventType:I})}),ae(w,"renderPolarAxis",function(O,_,j){var P=or(O,"type.axisType"),N=or(w.state,"".concat(P,"Map")),$=O.type.defaultProps,C=$!==void 0?z(z({},$),O.props):O.props,L=N&&N[C["".concat(P,"Id")]];return E.cloneElement(O,z(z({},L),{},{className:fe(P,L.className),key:O.key||"".concat(_,"-").concat(j),ticks:_n(L,!0)}))}),ae(w,"renderPolarGrid",function(O){var _=O.props,j=_.radialLines,P=_.polarAngles,N=_.polarRadius,$=w.state,C=$.radiusAxisMap,L=$.angleAxisMap,R=Jn(C),I=Jn(L),D=I.cx,F=I.cy,T=I.innerRadius,B=I.outerRadius;return E.cloneElement(O,{polarAngles:Array.isArray(P)?P:_n(I,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(N)?N:_n(R,!0).map(function(U){return U.coordinate}),cx:D,cy:F,innerRadius:T,outerRadius:B,key:O.key||"polar-grid",radialLines:j})}),ae(w,"renderLegend",function(){var O=w.state.formattedGraphicalItems,_=w.props,j=_.children,P=_.width,N=_.height,$=w.props.margin||{},C=P-($.left||0)-($.right||0),L=R2({children:j,formattedGraphicalItems:O,legendWidth:C,legendContent:u});if(!L)return null;var R=L.item,I=P_(L,Loe);return E.cloneElement(R,z(z({},I),{},{chartWidth:P,chartHeight:N,margin:$,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),ae(w,"renderTooltip",function(){var O,_=w.props,j=_.children,P=_.accessibilityLayer,N=rr(j,Wt);if(!N)return null;var $=w.state,C=$.isTooltipActive,L=$.activeCoordinate,R=$.activePayload,I=$.activeLabel,D=$.offset,F=(O=N.props.active)!==null&&O!==void 0?O:C;return E.cloneElement(N,{viewBox:z(z({},D),{},{x:D.left,y:D.top}),active:F,label:I,payload:F?R:[],coordinate:L,accessibilityLayer:P})}),ae(w,"renderBrush",function(O){var _=w.props,j=_.margin,P=_.data,N=w.state,$=N.offset,C=N.dataStartIndex,L=N.dataEndIndex,R=N.updateId;return E.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Mc(w.handleBrushChange,O.props.onChange),data:P,x:V(O.props.x)?O.props.x:$.left,y:V(O.props.y)?O.props.y:$.top+$.height+$.brushBottom-(j.bottom||0),width:V(O.props.width)?O.props.width:$.width,startIndex:C,endIndex:L,updateId:"brush-".concat(R)})}),ae(w,"renderReferenceElement",function(O,_,j){if(!O)return null;var P=w,N=P.clipPathId,$=w.state,C=$.xAxisMap,L=$.yAxisMap,R=$.offset,I=O.type.defaultProps||{},D=O.props,F=D.xAxisId,T=F===void 0?I.xAxisId:F,B=D.yAxisId,U=B===void 0?I.yAxisId:B;return E.cloneElement(O,{key:O.key||"".concat(_,"-").concat(j),xAxis:C[T],yAxis:L[U],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:N})}),ae(w,"renderActivePoints",function(O){var _=O.item,j=O.activePoint,P=O.basePoint,N=O.childIndex,$=O.isRange,C=[],L=_.props.key,R=_.item.type.defaultProps!==void 0?z(z({},_.item.type.defaultProps),_.item.props):_.item.props,I=R.activeDot,D=R.dataKey,F=z(z({index:N,dataKey:D,cx:j.x,cy:j.y,r:4,fill:gb(_.item),strokeWidth:2,stroke:"#fff",payload:j.payload,value:j.value},ne(I,!1)),Lf(I));return C.push(g.renderActiveDot(I,F,"".concat(L,"-activePoint-").concat(N))),P?C.push(g.renderActiveDot(I,z(z({},F),{},{cx:P.x,cy:P.y}),"".concat(L,"-basePoint-").concat(N))):$&&C.push(null),C}),ae(w,"renderGraphicChild",function(O,_,j){var P=w.filterFormatItem(O,_,j);if(!P)return null;var N=w.getTooltipEventType(),$=w.state,C=$.isTooltipActive,L=$.tooltipAxis,R=$.activeTooltipIndex,I=$.activeLabel,D=w.props.children,F=rr(D,Wt),T=P.props,B=T.points,U=T.isRange,K=T.baseLine,H=P.item.type.defaultProps!==void 0?z(z({},P.item.type.defaultProps),P.item.props):P.item.props,X=H.activeDot,ie=H.hide,be=H.activeBar,ze=H.activeShape,we=!!(!ie&&C&&F&&(X||be||ze)),gt={};N!=="axis"&&F&&F.props.trigger==="click"?gt={onClick:Mc(w.handleItemMouseEnter,O.props.onClick)}:N!=="axis"&&(gt={onMouseLeave:Mc(w.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Mc(w.handleItemMouseEnter,O.props.onMouseEnter)});var G=E.cloneElement(O,z(z({},P.props),gt));function le(Ui){return typeof L.dataKey=="function"?L.dataKey(Ui.payload):null}if(we)if(R>=0){var ue,W;if(L.dataKey&&!L.allowDuplicatedCategory){var Ve=typeof L.dataKey=="function"?le:"payload.".concat(L.dataKey.toString());ue=Df(B,Ve,I),W=U&&K&&Df(K,Ve,I)}else ue=B==null?void 0:B[R],W=U&&K&&K[R];if(ze||be){var ve=O.props.activeIndex!==void 0?O.props.activeIndex:R;return[E.cloneElement(O,z(z(z({},P.props),gt),{},{activeIndex:ve})),null,null]}if(!ce(ue))return[G].concat(bs(w.renderActivePoints({item:P,activePoint:ue,basePoint:W,childIndex:R,isRange:U})))}else{var tt,rt=(tt=w.getItemByXY(w.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:G},Bt=rt.graphicalItem,Un=Bt.item,Ka=Un===void 0?O:Un,rc=Bt.childIndex,Fi=z(z(z({},P.props),gt),{},{activeIndex:rc});return[E.cloneElement(Ka,Fi),null,null]}return U?[G,null,null]:[G,null]}),ae(w,"renderCustomized",function(O,_,j){return E.cloneElement(O,z(z({key:"recharts-customized-".concat(j)},w.props),w.state))}),ae(w,"renderMap",{CartesianGrid:{handler:zc,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:zc},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:zc},YAxis:{handler:zc},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:Ms("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=RE(w.triggeredAfterMouseMove,(S=b.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return Qoe(g,v),qoe(g,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,w=x.data,O=x.height,_=x.layout,j=rr(S,Wt);if(j){var P=j.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=lg(this.state,w,P,N),C=this.state.tooltipTicks[P].coordinate,L=(this.state.offset.top+O)/2,R=_==="horizontal",I=R?{x:C,y:L}:{y:C,x:L},D=this.state.formattedGraphicalItems.find(function(T){var B=T.item;return B.type.name==="Scatter"});D&&(I=z(z({},I),D.props.points[P].tooltipPosition),$=D.props.points[P].tooltipPayload);var F={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:N,activePayload:$,activeCoordinate:I};this.setState(F),this.renderCursor(j),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,O;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){Ly([rr(x.children,Wt)],[rr(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=rr(this.props.children,Wt);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),O=Zq(w),_={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},j=w.width/S.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,j);if(!P)return null;var N=this.state,$=N.xAxisMap,C=N.yAxisMap,L=this.getTooltipEventType(),R=k_(this.state,this.props.data,this.props.layout,P);if(L!=="axis"&&$&&C){var I=Jn($).scale,D=Jn(C).scale,F=I&&I.invert?I.invert(_.chartX):null,T=D&&D.invert?D.invert(_.chartY):null;return z(z({},_),{},{xValue:F,yValue:T},R)}return R?z(z({},_),R):null}},{key:"inRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,_=x/w,j=S/w;if(O==="horizontal"||O==="vertical"){var P=this.state.offset,N=_>=P.left&&_<=P.left+P.width&&j>=P.top&&j<=P.top+P.height;return N?{x:_,y:j}:null}var $=this.state,C=$.angleAxisMap,L=$.radiusAxisMap;if(C&&L){var R=Jn(C);return nO({x:_,y:j},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),w=rr(x,Wt),O={};w&&S==="axis"&&(w.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 _=Lf(this.props,this.handleOuterEvent);return z(z({},_),O)}},{key:"addListener",value:function(){cm.on(fm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){cm.removeListener(fm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,w){for(var O=this.state.formattedGraphicalItems,_=0,j=O.length;_<j;_++){var P=O[_];if(P.item===x||P.props.key===x.key||S===Pn(P.item.type)&&w===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,w=S.left,O=S.top,_=S.height,j=S.width;return A.createElement("defs",null,A.createElement("clipPath",{id:x},A.createElement("rect",{x:w,y:O,height:_,width:j})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,w){var O=j_(w,2),_=O[0],j=O[1];return z(z({},S),{},ae({},_,j.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,w){var O=j_(w,2),_=O[0],j=O[1];return z(z({},S),{},ae({},_,j.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,w=S.formattedGraphicalItems,O=S.activeItem;if(w&&w.length)for(var _=0,j=w.length;_<j;_++){var P=w[_],N=P.props,$=P.item,C=$.type.defaultProps!==void 0?z(z({},$.type.defaultProps),$.props):$.props,L=Pn($.type);if(L==="Bar"){var R=(N.data||[]).find(function(T){return zee(x,T)});if(R)return{graphicalItem:P,payload:R}}else if(L==="RadialBar"){var I=(N.data||[]).find(function(T){return nO(x,T)});if(I)return{graphicalItem:P,payload:I}}else if(Qh(P,O)||Yh(P,O)||Pu(P,O)){var D=Are({graphicalItem:P,activeTooltipItem:O,itemData:C.data}),F=C.activeIndex===void 0?D:C.activeIndex;return{graphicalItem:z(z({},P),{},{childIndex:F}),payload:Pu(P,O)?C.data[D]:P.props.data[D]}}}return null}},{key:"render",value:function(){var x=this;if(!K1(this))return null;var S=this.props,w=S.children,O=S.className,_=S.width,j=S.height,P=S.style,N=S.compact,$=S.title,C=S.desc,L=P_(S,zoe),R=ne(L,!1);if(N)return A.createElement(l_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(By,yo({},R,{width:_,height:j,title:$,desc:C}),this.renderClipPath(),X1(w,this.renderMap)));if(this.props.accessibilityLayer){var I,D;R.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,R.role=(D=this.props.role)!==null&&D!==void 0?D:"application",R.onKeyDown=function(T){x.accessibilityManager.keyboardEvent(T)},R.onFocus=function(){x.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return A.createElement(l_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",yo({className:fe("recharts-wrapper",O),style:z({position:"relative",cursor:"default",width:_,height:j},P)},F,{ref:function(B){x.container=B}}),A.createElement(By,yo({},R,{width:_,height:j,title:$,desc:C,style:rse}),this.renderClipPath(),X1(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(E.Component);ae(m,"displayName",r),ae(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(m,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,S=v.children,w=v.width,O=v.height,_=v.layout,j=v.stackOffset,P=v.margin,N=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var C=E_(v);return z(z(z({},C),{},{updateId:0},p(z(z({props:v},C),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:O,prevLayout:_,prevStackOffset:j,prevMargin:P,prevChildren:S})}if(b!==g.prevDataKey||x!==g.prevData||w!==g.prevWidth||O!==g.prevHeight||_!==g.prevLayout||j!==g.prevStackOffset||!Oo(P,g.prevMargin)){var L=E_(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=z(z({},k_(g,x,_)),{},{updateId:g.updateId+1}),D=z(z(z({},L),R),I);return z(z(z({},D),p(z({props:v},D),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:O,prevLayout:_,prevStackOffset:j,prevMargin:P,prevChildren:S})}if(!Ly(S,g.prevChildren)){var F,T,B,U,K=rr(S,us),H=K&&(F=(T=K.props)===null||T===void 0?void 0:T.startIndex)!==null&&F!==void 0?F:N,X=K&&(B=(U=K.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:$,ie=H!==N||X!==$,be=!ce(x),ze=be&&!ie?g.updateId:g.updateId+1;return z(z({updateId:ze},p(z(z({props:v},g),{},{updateId:ze,dataStartIndex:H,dataEndIndex:X}),g)),{},{prevChildren:S,dataStartIndex:H,dataEndIndex:X})}return null}),ae(m,"renderActiveDot",function(v,g,b){var x;return E.isValidElement(v)?x=E.cloneElement(v,g):oe(v)?x=v(g):x=A.createElement(Vh,g),A.createElement(ye,{className:"recharts-active-dot",key:b},x)});var y=E.forwardRef(function(g,b){return A.createElement(m,yo({},g,{ref:b}))});return y.displayName=m.displayName,y},uT=Eb({chartName:"BarChart",GraphicalChild:Bi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ei},{axisType:"yAxis",AxisComp:Ni}],formatAxisMap:jN}),dse=Eb({chartName:"PieChart",GraphicalChild:Fn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Xh},{axisType:"radiusAxis",AxisComp:Kh}],formatAxisMap:XY,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),cT=Eb({chartName:"AreaChart",GraphicalChild:on,axisComponents:[{axisType:"xAxis",AxisComp:Ei},{axisType:"yAxis",AxisComp:Ni}],formatAxisMap:jN});const T_=["#6366f1","#22c55e","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],hse=()=>h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{className:"skeleton h-3 w-20"}),h.jsx("div",{className:"skeleton h-8 w-16"})]}),h.jsx("div",{className:"skeleton h-10 w-10 rounded-lg"})]})}),hm=()=>h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("div",{className:"skeleton h-4 w-32"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"skeleton h-56 w-full rounded-lg"})})]}),pm=({active:e,payload:t,label:r})=>!e||!t?null:h.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[h.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>h.jsxs("p",{className:"text-white font-medium",children:[h.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function pse(){const{currentOrg:e}=Wr(),{data:t,isLoading:r}=Pi({queryKey:["issues-stats",e==null?void 0:e.id],queryFn:()=>Ol.stats(e.id),enabled:!!e}),{data:n,isLoading:i}=Pi({queryKey:["report-summary",e==null?void 0:e.id],queryFn:()=>Ny.summary(e.id,14),enabled:!!e});if(!e)return h.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:h.jsxs("div",{className:"text-center max-w-md",children:[h.jsx("div",{className:"w-16 h-16 rounded-2xl bg-indigo-600/10 flex items-center justify-center mx-auto mb-4",children:h.jsx(Rf,{size:28,className:"text-indigo-400"})}),h.jsx("h2",{className:"text-xl font-semibold text-white mb-2",children:"Select an organization"}),h.jsx("p",{className:"text-gray-400 text-sm",children:"Choose an organization from the sidebar to view your dashboard and manage issues."})]})});const a=(t==null?void 0:t.data)||{},o=(n==null?void 0:n.data)||{},s=r||i,l=[{label:"Total Issues",value:a.total||0,icon:S0,color:"text-blue-400",bg:"bg-blue-500/10",trend:"+12%",up:!0},{label:"Analyzed",value:a.analyzed||0,icon:Ai,color:"text-emerald-400",bg:"bg-emerald-500/10",trend:"+8%",up:!0},{label:"PRs Created",value:a.pr_created||0,icon:uh,color:"text-purple-400",bg:"bg-purple-500/10",trend:"+15%",up:!0},{label:"Avg Confidence",value:a.avg_confidence?`${(a.avg_confidence*100).toFixed(0)}%`:"N/A",icon:p4,color:"text-amber-400",bg:"bg-amber-500/10",trend:"+3%",up:!0}],u=[{name:"Pending",value:a.pending||0},{name:"Analyzing",value:a.analyzing||0},{name:"Analyzed",value:a.analyzed||0},{name:"PR Created",value:a.pr_created||0},{name:"Error",value:a.error||0}].filter(c=>c.value>0),f=Object.entries(a.by_source||{}).map(([c,d])=>({name:c.replace("_"," ").replace(/\b\w/g,p=>p.toUpperCase()),value:d}));return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Dashboard"}),h.jsx("p",{className:"page-subtitle",children:"Overview of your issue analysis pipeline"})]}),h.jsx("div",{className:"flex items-center gap-2",children:h.jsxs("span",{className:"badge badge-green",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"System operational"]})})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s?Array(4).fill(0).map((c,d)=>h.jsx(hse,{},d)):l.map(c=>{const d=c.icon;return h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:c.label}),h.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:c.value}),h.jsxs("div",{className:ke("flex items-center gap-1 mt-1.5 text-xs font-medium",c.up?"text-emerald-400":"text-red-400"),children:[c.up?h.jsx(S4,{size:12}):h.jsx(x4,{size:12}),c.trend,h.jsx("span",{className:"text-gray-500 font-normal ml-0.5",children:"vs last week"})]})]}),h.jsx("div",{className:ke("w-11 h-11 rounded-xl flex items-center justify-center",c.bg),children:h.jsx(d,{size:20,className:c.color})})]})},c.label)})}),h.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:s?h.jsxs(h.Fragment,{children:[h.jsx(hm,{}),h.jsx(hm,{})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"card",children:[h.jsxs("div",{className:"card-header",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Issues Trend"}),h.jsx("span",{className:"badge badge-gray text-[10px]",children:"Last 14 days"})]}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-56",children:h.jsx(_l,{width:"100%",height:"100%",children:h.jsxs(cT,{data:o.daily_breakdown||[],children:[h.jsxs("defs",{children:[h.jsxs("linearGradient",{id:"colorTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),h.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),h.jsxs("linearGradient",{id:"colorAnalyzed",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"5%",stopColor:"#22c55e",stopOpacity:.3}),h.jsx("stop",{offset:"95%",stopColor:"#22c55e",stopOpacity:0})]})]}),h.jsx(Tu,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),h.jsx(Ei,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ni,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(pm,{})}),h.jsx(on,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#colorTotal)",strokeWidth:2,name:"Total"}),h.jsx(on,{type:"monotone",dataKey:"analyzed",stroke:"#22c55e",fill:"url(#colorAnalyzed)",strokeWidth:2,name:"Analyzed"})]})})})})]}),h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Status Distribution"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-56 flex items-center",children:u.length>0?h.jsx(_l,{width:"100%",height:"100%",children:h.jsxs(dse,{children:[h.jsx(Fn,{data:u,cx:"50%",cy:"50%",innerRadius:55,outerRadius:80,paddingAngle:4,dataKey:"value",label:({name:c,percent:d})=>`${c} ${(d*100).toFixed(0)}%`,children:u.map((c,d)=>h.jsx($h,{fill:T_[d%T_.length]},c.name))}),h.jsx(Wt,{content:h.jsx(pm,{})})]})}):h.jsxs("div",{className:"w-full text-center",children:[h.jsx($y,{size:24,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"})]})})})]})]})}),s?h.jsx(hm,{}):h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Issues by Source"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-56",children:f.length>0?h.jsx(_l,{width:"100%",height:"100%",children:h.jsxs(uT,{data:f,layout:"vertical",children:[h.jsx(Tu,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),h.jsx(Ei,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ni,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(pm,{})}),h.jsx(Bi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:24,name:"Issues"})]})}):h.jsx("div",{className:"h-full flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx($y,{size:24,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"}),h.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Connect an integration to start tracking"})]})})})})]})]})}const Bc={pending:{badge:"badge-yellow",icon:lh,label:"Pending"},analyzing:{badge:"badge-blue",icon:ki,label:"Analyzing"},analyzed:{badge:"badge-green",icon:Ai,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:uh,label:"PR Created"},completed:{badge:"badge-gray",icon:Ai,label:"Completed"},error:{badge:"badge-red",icon:w0,label:"Error"}},C_={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-yellow",label:"High"},medium:{badge:"badge-blue",label:"Medium"},low:{badge:"badge-green",label:"Low"}},mse={jira_cloud:"🔵",servicenow:"⚙️",zendesk:"💚",github:"🐙",gitlab:"🦊",tickethub:"🎫",generic:"📝"},yse=()=>h.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[h.jsx("div",{className:"skeleton h-4 w-20"}),h.jsxs("div",{className:"flex-1 space-y-1.5",children:[h.jsx("div",{className:"skeleton h-4 w-3/4"}),h.jsx("div",{className:"skeleton h-3 w-1/4"})]}),h.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function vse(){var c,d;const{currentOrg:e}=Wr(),[t,r]=E.useState({status:"",source:""}),[n,i]=E.useState(""),[a,o]=E.useState(!1),{data:s,isLoading:l}=Pi({queryKey:["issues",e==null?void 0:e.id,t],queryFn:()=>Ol.list(e.id,t),enabled:!!e});if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const u=((s==null?void 0:s.data)||[]).filter(p=>{var m,y;return!n||((m=p.title)==null?void 0:m.toLowerCase().includes(n.toLowerCase()))||((y=p.external_key)==null?void 0:y.toLowerCase().includes(n.toLowerCase()))}),f={};return((s==null?void 0:s.data)||[]).forEach(p=>{f[p.status]=(f[p.status]||0)+1}),h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Issues"}),h.jsxs("p",{className:"page-subtitle",children:[((c=s==null?void 0:s.data)==null?void 0:c.length)||0," total issues"]})]}),h.jsxs("button",{className:"btn btn-primary",children:[h.jsx(Ca,{size:16}),"New Issue"]})]}),h.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[h.jsxs("button",{onClick:()=>r({...t,status:""}),className:ke("badge cursor-pointer transition-all",t.status?"badge-gray hover:bg-gray-700/50":"badge-indigo"),children:["All ",((d=s==null?void 0:s.data)==null?void 0:d.length)||0]}),Object.entries(Bc).map(([p,m])=>{const y=f[p]||0;return!y&&p!=="pending"?null:h.jsxs("button",{onClick:()=>r({...t,status:t.status===p?"":p}),className:ke("badge cursor-pointer transition-all",t.status===p?m.badge:"badge-gray hover:bg-gray-700/50"),children:[m.label," ",y]},p)})]}),h.jsxs("div",{className:"card mb-4",children:[h.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[h.jsx(nf,{size:16,className:"text-gray-500"}),h.jsx("input",{value:n,onChange:p=>i(p.target.value),placeholder:"Search issues by title or key...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),h.jsxs("button",{onClick:()=>o(!a),className:ke("btn btn-sm btn-ghost",a&&"text-indigo-400"),children:[h.jsx(c4,{size:14}),"Filters"]})]}),a&&h.jsxs("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:[h.jsxs("select",{value:t.status,onChange:p=>r({...t,status:p.target.value}),className:"input-sm input w-36",children:[h.jsx("option",{value:"",children:"All Status"}),Object.entries(Bc).map(([p,m])=>h.jsx("option",{value:p,children:m.label},p))]}),h.jsxs("select",{value:t.source,onChange:p=>r({...t,source:p.target.value}),className:"input-sm input w-36",children:[h.jsx("option",{value:"",children:"All Sources"}),h.jsx("option",{value:"jira_cloud",children:"JIRA"}),h.jsx("option",{value:"servicenow",children:"ServiceNow"}),h.jsx("option",{value:"zendesk",children:"Zendesk"}),h.jsx("option",{value:"github",children:"GitHub"}),h.jsx("option",{value:"gitlab",children:"GitLab"}),h.jsx("option",{value:"tickethub",children:"TicketHub"})]}),(t.status||t.source)&&h.jsx("button",{onClick:()=>r({status:"",source:""}),className:"btn btn-sm btn-ghost text-red-400",children:"Clear"})]})]}),h.jsxs("div",{className:"card overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[h.jsx("div",{className:"w-24",children:"Key"}),h.jsx("div",{className:"flex-1",children:"Title"}),h.jsx("div",{className:"w-24",children:"Status"}),h.jsx("div",{className:"w-20",children:"Priority"}),h.jsx("div",{className:"w-20",children:"Confidence"}),h.jsx("div",{className:"w-8"})]}),l?Array(5).fill(0).map((p,m)=>h.jsx(yse,{},m)):u.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:h.jsx(S0,{size:24,className:"text-gray-600"})}),h.jsx("p",{className:"text-gray-400 font-medium",children:"No issues found"}),h.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Issues from your integrations will appear here"})]}):u.map(p=>{var g;const m=Bc[p.status]||Bc.pending,y=C_[p.priority]||C_.medium,v=m.icon;return h.jsxs(ka,{to:`/issues/${p.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[h.jsx("div",{className:"w-24",children:h.jsx("span",{className:"font-mono text-xs text-indigo-400",children:p.external_key||`#${p.id}`})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:p.title}),h.jsx("p",{className:"text-xs text-gray-500 mt-0.5 flex items-center gap-2",children:h.jsxs("span",{children:[mse[p.source]||"📝"," ",(g=p.source)==null?void 0:g.replace("_"," ")]})})]}),h.jsx("div",{className:"w-24",children:h.jsxs("span",{className:ke("badge text-[10px]",m.badge),children:[h.jsx(v,{size:10,className:p.status==="analyzing"?"animate-spin":""}),m.label]})}),h.jsx("div",{className:"w-20",children:h.jsx("span",{className:ke("badge text-[10px]",y.badge),children:y.label})}),h.jsx("div",{className:"w-20",children:p.confidence?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-1.5",children:h.jsx("div",{className:"bg-indigo-500 h-1.5 rounded-full transition-all",style:{width:`${p.confidence*100}%`}})}),h.jsxs("span",{className:"text-[10px] text-gray-400 font-mono w-7 text-right",children:[(p.confidence*100).toFixed(0),"%"]})]}):h.jsx("span",{className:"text-xs text-gray-600",children:"—"})}),h.jsx("div",{className:"w-8",children:h.jsx(Cy,{size:14,className:"text-gray-600 group-hover:text-gray-400 transition-colors"})})]},p.id)})]})]})}const $_={pending:{badge:"badge-yellow",icon:lh,label:"Pending"},analyzing:{badge:"badge-blue",icon:ki,label:"Analyzing"},analyzed:{badge:"badge-green",icon:Ai,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:uh,label:"PR Created"},completed:{badge:"badge-gray",icon:Ai,label:"Completed"},error:{badge:"badge-red",icon:w0,label:"Error"}},gse=()=>h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsx("div",{className:"skeleton h-4 w-24 mb-6"}),h.jsxs("div",{className:"flex items-start justify-between mb-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"skeleton h-6 w-20"}),h.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]}),h.jsx("div",{className:"skeleton h-7 w-96"}),h.jsx("div",{className:"skeleton h-4 w-48"})]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"}),h.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"})]})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[h.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})}),h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-48 w-full rounded-lg"})})]}),h.jsxs("div",{className:"space-y-5",children:[h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-24 w-full rounded-lg"})}),h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})})]})]})]});function bse(){var S,w,O,_;const{id:e}=vM(),{currentOrg:t}=Wr(),r=rh(),[n,i]=E.useState("analysis"),[a,o]=E.useState(""),[s,l]=E.useState(!1),{data:u,isLoading:f}=Pi({queryKey:["issue",t==null?void 0:t.id,e],queryFn:()=>Ol.get(t.id,e),enabled:!!t}),c=$f({mutationFn:()=>Ol.reanalyze(t.id,e),onSuccess:()=>r.invalidateQueries(["issue",t==null?void 0:t.id,e])}),d=$f({mutationFn:j=>Ol.addComment(t.id,e,{content:j}),onSuccess:()=>{r.invalidateQueries(["issue",t==null?void 0:t.id,e]),o("")}}),p=j=>{navigator.clipboard.writeText(j),l(!0),setTimeout(()=>l(!1),2e3)};if(!t)return null;if(f)return h.jsx(gse,{});const m=u==null?void 0:u.data;if(!m)return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[h.jsx($y,{size:40,className:"text-gray-600 mb-3"}),h.jsx("p",{className:"text-gray-400 font-medium",children:"Issue not found"}),h.jsx(ka,{to:"/issues",className:"text-indigo-400 text-sm mt-2 hover:underline",children:"← Back to Issues"})]});const y=$_[m.status]||$_.pending,v=y.icon,g=m.confidence?(m.confidence*100).toFixed(0):null,b=m.confidence>.8?"text-emerald-400":m.confidence>.5?"text-amber-400":"text-red-400",x=[{id:"analysis",label:"Analysis",icon:T1},{id:"code",label:"Suggested Fix",icon:My},{id:"comments",label:"Comments",icon:K3}];return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs(ka,{to:"/issues",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[h.jsx(t3,{size:14}),"Back to Issues"]}),h.jsxs("div",{className:"flex items-start justify-between mb-6",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[h.jsx("span",{className:"font-mono text-lg text-indigo-400 font-semibold",children:m.external_key||`#${m.id}`}),h.jsxs("span",{className:ke("badge",y.badge),children:[h.jsx(v,{size:12,className:m.status==="analyzing"?"animate-spin":""}),y.label]}),m.priority&&h.jsx("span",{className:ke("badge",m.priority==="critical"?"badge-red":m.priority==="high"?"badge-yellow":m.priority==="medium"?"badge-blue":"badge-green"),children:m.priority})]}),h.jsx("h1",{className:"text-xl font-semibold text-white",children:m.title}),h.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[h.jsxs("span",{className:"flex items-center gap-1",children:[h.jsx(s3,{size:12})," ",new Date(m.created_at).toLocaleDateString()]}),h.jsxs("span",{children:["Source: ",(S=m.source)==null?void 0:S.replace("_"," ")]})]})]}),h.jsxs("div",{className:"flex gap-2",children:[m.external_url&&h.jsxs("a",{href:m.external_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-secondary btn-sm",children:[h.jsx(C1,{size:14}),"Original"]}),h.jsxs("button",{onClick:()=>c.mutate(),disabled:c.isPending,className:"btn btn-primary btn-sm",children:[c.isPending?h.jsx(ki,{size:14,className:"animate-spin"}):h.jsx(r4,{size:14}),"Re-analyze"]})]})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[h.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(T3,{size:14,className:"text-gray-500"}),"Description"]})}),h.jsx("div",{className:"card-body",children:h.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.description||"No description provided."})})]}),h.jsxs("div",{className:"card overflow-hidden",children:[h.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:x.map(j=>{const P=j.icon;return h.jsxs("button",{onClick:()=>i(j.id),className:ke("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",n===j.id?"border-indigo-500 text-indigo-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[h.jsx(P,{size:14}),j.label]},j.id)})}),h.jsxs("div",{className:"card-body",children:[n==="analysis"&&h.jsx("div",{className:"space-y-4 animate-fade-in",children:m.root_cause?h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/5 border border-emerald-500/10",children:[h.jsxs("h4",{className:"text-sm font-semibold text-emerald-400 mb-2 flex items-center gap-2",children:[h.jsx(B3,{size:14}),"Root Cause Analysis"]}),h.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.root_cause})]}),((w=m.affected_files)==null?void 0:w.length)>0&&h.jsxs("div",{children:[h.jsxs("h4",{className:"text-sm font-semibold text-gray-300 mb-2 flex items-center gap-2",children:[h.jsx($3,{size:14,className:"text-gray-500"}),"Affected Files"]}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.affected_files.map(j=>h.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:j},j))})]})]}):h.jsxs("div",{className:"text-center py-8",children:[h.jsx(T1,{size:28,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No analysis available yet"}),h.jsx("p",{className:"text-gray-600 text-xs mt-1",children:'Click "Re-analyze" to start AI analysis'})]})}),n==="code"&&h.jsx("div",{className:"animate-fade-in",children:m.suggested_fix?h.jsxs("div",{className:"relative",children:[h.jsx("button",{onClick:()=>p(m.suggested_fix),className:"absolute top-2 right-2 btn btn-ghost btn-sm text-gray-500",children:s?h.jsx(c3,{size:14,className:"text-emerald-400"}):h.jsx(Iy,{size:14})}),h.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-mono bg-gray-950 p-4 rounded-lg border border-gray-800 overflow-x-auto leading-relaxed",children:m.suggested_fix})]}):h.jsxs("div",{className:"text-center py-8",children:[h.jsx(My,{size:28,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No suggested fix available"})]})}),n==="comments"&&h.jsxs("div",{className:"space-y-4 animate-fade-in",children:[((O=m.comments)==null?void 0:O.length)>0?m.comments.map((j,P)=>{var N,$;return h.jsxs("div",{className:"flex gap-3",children:[h.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(($=(N=j.author)==null?void 0:N[0])==null?void 0:$.toUpperCase())||"?"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[h.jsx("span",{className:"text-sm font-medium text-gray-300",children:j.author||"System"}),h.jsx("span",{className:"text-xs text-gray-600",children:new Date(j.created_at).toLocaleString()})]}),h.jsx("p",{className:"text-sm text-gray-400",children:j.content})]})]},P)}):h.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),h.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[h.jsx("input",{value:a,onChange:j=>o(j.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:j=>j.key==="Enter"&&a.trim()&&d.mutate(a)}),h.jsx("button",{onClick:()=>a.trim()&&d.mutate(a),disabled:!a.trim()||d.isPending,className:"btn btn-primary btn-sm",children:d.isPending?h.jsx(ki,{size:14,className:"animate-spin"}):h.jsx(o4,{size:14})})]})]})]})]})]}),h.jsxs("div",{className:"space-y-5",children:[g&&h.jsxs("div",{className:"card card-body text-center",children:[h.jsxs("div",{className:"relative w-24 h-24 mx-auto mb-3",children:[h.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 36 36",children:[h.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"#1e1e2a",strokeWidth:"2.5"}),h.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"currentColor",className:b,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:`${m.confidence*100}, 100`})]}),h.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:h.jsxs("span",{className:ke("text-xl font-bold",b),children:[g,"%"]})})]}),h.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:"AI Confidence"})]}),m.pr_url&&h.jsxs("div",{className:"card overflow-hidden",children:[h.jsx("div",{className:"card-header bg-purple-500/5",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-purple-400",children:[h.jsx(uh,{size:14}),"Pull Request"]})}),h.jsxs("div",{className:"card-body space-y-3",children:[m.pr_branch&&h.jsxs("div",{children:[h.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Branch"}),h.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:m.pr_branch})]}),h.jsxs("a",{href:m.pr_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-primary w-full btn-sm",children:[h.jsx(C1,{size:14}),"View Pull Request"]})]})]}),((_=m.labels)==null?void 0:_.length)>0&&h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(d4,{size:14,className:"text-gray-500"}),"Labels"]})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.labels.map(j=>h.jsx("span",{className:"badge badge-indigo",children:j},j))})})]}),h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(lh,{size:14,className:"text-gray-500"}),"Timeline"]})}),h.jsxs("div",{className:"card-body space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-indigo-500"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),h.jsx("p",{className:"text-sm",children:new Date(m.created_at).toLocaleString()})]})]}),m.analysis_completed_at&&h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-xs text-gray-400",children:"Analyzed"}),h.jsx("p",{className:"text-sm",children:new Date(m.analysis_completed_at).toLocaleString()})]})]}),m.pr_url&&h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-xs text-gray-400",children:"PR Created"}),h.jsx("p",{className:"text-sm",children:"Pull request generated"})]})]})]})]})]})]})]})}const M_={jira_cloud:{name:"JIRA Cloud",color:"from-blue-600 to-blue-700",icon:"🔵",desc:"Atlassian JIRA Cloud integration"},servicenow:{name:"ServiceNow",color:"from-emerald-600 to-emerald-700",icon:"⚙️",desc:"ServiceNow ITSM platform"},github:{name:"GitHub",color:"from-gray-700 to-gray-800",icon:"🐙",desc:"GitHub issues and repositories"},gitlab:{name:"GitLab",color:"from-orange-600 to-orange-700",icon:"🦊",desc:"GitLab issues and merge requests"},zendesk:{name:"Zendesk",color:"from-green-600 to-green-700",icon:"💚",desc:"Zendesk support tickets"},slack:{name:"Slack",color:"from-purple-600 to-purple-700",icon:"💬",desc:"Slack notifications and alerts"}};function xse(){const{currentOrg:e}=Wr(),t=rh(),[r,n]=E.useState(!1),{data:i,isLoading:a}=Pi({queryKey:["integrations",e==null?void 0:e.id],queryFn:()=>Rp.list(e.id),enabled:!!e}),o=$f({mutationFn:u=>Rp.test(e.id,u)}),s=$f({mutationFn:u=>Rp.delete(e.id,u),onSuccess:()=>t.invalidateQueries(["integrations"])});if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const l=(i==null?void 0:i.data)||[];return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Integrations"}),h.jsx("p",{className:"page-subtitle",children:"Connect your tools to start analyzing issues"})]}),h.jsxs("button",{onClick:()=>n(!r),className:"btn btn-primary",children:[h.jsx(Ca,{size:16})," Add Integration"]})]}),l.length>0&&h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Active Connections"}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.map(u=>{const f=M_[u.platform]||{name:u.platform,color:"from-gray-600 to-gray-700",icon:"🔌"};return h.jsxs("div",{className:"card overflow-hidden",children:[h.jsx("div",{className:ke("h-1.5 bg-gradient-to-r",f.color)}),h.jsxs("div",{className:"p-5",children:[h.jsxs("div",{className:"flex items-start justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("span",{className:"text-2xl",children:f.icon}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold text-white",children:u.name||f.name}),h.jsx("p",{className:"text-xs text-gray-500",children:f.name})]})]}),h.jsx("span",{className:ke("badge",u.is_active?"badge-green":"badge-red"),children:u.is_active?h.jsxs(h.Fragment,{children:[h.jsx(Ai,{size:10})," Active"]}):h.jsxs(h.Fragment,{children:[h.jsx(w0,{size:10})," Inactive"]})})]}),u.base_url&&h.jsx("p",{className:"text-xs text-gray-500 font-mono mb-3 truncate",children:u.base_url}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("button",{onClick:()=>o.mutate(u.id),disabled:o.isPending,className:"btn btn-secondary btn-sm flex-1",children:[o.isPending?h.jsx(ki,{size:12,className:"animate-spin"}):h.jsx(y4,{size:12}),"Test"]}),h.jsxs("button",{className:"btn btn-secondary btn-sm flex-1",children:[h.jsx(gk,{size:12})," Configure"]}),h.jsx("button",{onClick:()=>s.mutate(u.id),className:"btn btn-danger btn-sm btn-icon",children:h.jsx(xk,{size:12})})]})]})]},u.id)})})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Available Platforms"}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(M_).map(([u,f])=>{const c=l.some(d=>d.platform===u);return h.jsxs("div",{className:"card-hover p-5",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[h.jsx("div",{className:ke("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-lg",f.color),children:f.icon}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold text-white",children:f.name}),h.jsx("p",{className:"text-xs text-gray-500",children:f.desc})]})]}),h.jsx("button",{className:ke("btn w-full btn-sm",c?"btn-secondary":"btn-primary"),children:c?h.jsxs(h.Fragment,{children:[h.jsx(Ai,{size:14})," Connected"]}):h.jsxs(h.Fragment,{children:[h.jsx(Ca,{size:14})," Connect"]})})]},u)})})]})]})}const mm={owner:{label:"Owner",badge:"badge-yellow",icon:w3},admin:{label:"Admin",badge:"badge-red",icon:bk},member:{label:"Member",badge:"badge-blue",icon:P4},viewer:{label:"Viewer",badge:"badge-gray",icon:pk}},wse=()=>h.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[h.jsx("div",{className:"skeleton w-9 h-9 rounded-lg"}),h.jsxs("div",{className:"flex-1 space-y-1.5",children:[h.jsx("div",{className:"skeleton h-4 w-32"}),h.jsx("div",{className:"skeleton h-3 w-48"})]}),h.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function Sse(){const{currentOrg:e}=Wr(),{data:t,isLoading:r}=Pi({queryKey:["org-members",e==null?void 0:e.id],queryFn:()=>KA.members(e.id),enabled:!!e});if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const n=(t==null?void 0:t.data)||[],i={};return n.forEach(a=>{const o=a.role||"member";i[o]||(i[o]=[]),i[o].push(a)}),h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Team"}),h.jsxs("p",{className:"page-subtitle",children:[n.length," member",n.length!==1?"s":""," in ",e.name]})]}),h.jsxs("button",{className:"btn btn-primary",children:[h.jsx(Ca,{size:16})," Invite Member"]})]}),h.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(mm).map(([a,o])=>{var u;const s=o.icon,l=((u=i[a])==null?void 0:u.length)||0;return h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[h.jsxs("div",{children:[h.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[o.label,"s"]}),h.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:l})]}),h.jsx(s,{size:18,className:"text-gray-600"})]})},a)})}),h.jsxs("div",{className:"card overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[h.jsx("div",{className:"w-9"}),h.jsx("div",{className:"flex-1",children:"Member"}),h.jsx("div",{className:"w-24",children:"Role"}),h.jsx("div",{className:"w-32",children:"Joined"}),h.jsx("div",{className:"w-8"})]}),r?Array(3).fill(0).map((a,o)=>h.jsx(wse,{},o)):n.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:h.jsx(wk,{size:24,className:"text-gray-600"})}),h.jsx("p",{className:"text-gray-400 font-medium",children:"No team members"}),h.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Invite your team to collaborate"})]}):n.map(a=>{var l,u,f,c;const o=mm[a.role]||mm.member,s=o.icon;return h.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((u=(l=a.full_name)==null?void 0:l[0])==null?void 0:u.toUpperCase())||((c=(f=a.email)==null?void 0:f[0])==null?void 0:c.toUpperCase())||"?"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium text-gray-200 truncate",children:a.full_name||"Unnamed"}),h.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[h.jsx(ch,{size:10})," ",a.email]})]}),h.jsx("div",{className:"w-24",children:h.jsxs("span",{className:ke("badge text-[10px]",o.badge),children:[h.jsx(s,{size:10}),o.label]})}),h.jsx("div",{className:"w-32 text-xs text-gray-500",children:a.joined_at?new Date(a.joined_at).toLocaleDateString():"—"}),h.jsx("div",{className:"w-8",children:h.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:h.jsx(j3,{size:14})})})]},a.id||a.user_id)})]})]})}const I_=({active:e,payload:t,label:r})=>!e||!t?null:h.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[h.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>h.jsxs("p",{className:"text-white font-medium",children:[h.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function Ose(){const{currentOrg:e}=Wr(),[t,r]=E.useState(30),{data:n,isLoading:i}=Pi({queryKey:["report-summary",e==null?void 0:e.id,t],queryFn:()=>Ny.summary(e.id,t),enabled:!!e}),a=async()=>{try{const l=await Ny.exportCsv(e.id,t),u=URL.createObjectURL(new Blob([l.data])),f=document.createElement("a");f.href=u,f.download=`report-${e.name}-${t}days.csv`,f.click(),URL.revokeObjectURL(u)}catch(l){console.error(l)}};if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const o=(n==null?void 0:n.data)||{},s=[{label:"Total Processed",value:o.total_issues||0,icon:hk,color:"text-indigo-400",bg:"bg-indigo-500/10"},{label:"Success Rate",value:o.success_rate?`${(o.success_rate*100).toFixed(0)}%`:"N/A",icon:Ai,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Avg Resolution",value:o.avg_resolution_hours?`${o.avg_resolution_hours.toFixed(1)}h`:"N/A",icon:lh,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Error Rate",value:o.error_rate?`${(o.error_rate*100).toFixed(1)}%`:"0%",icon:_4,color:"text-red-400",bg:"bg-red-500/10"}];return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),h.jsx("p",{className:"page-subtitle",children:"Performance metrics and insights"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex items-center gap-1 bg-gray-900 border border-gray-800 rounded-lg p-0.5",children:[7,14,30,90].map(l=>h.jsxs("button",{onClick:()=>r(l),className:ke("px-3 py-1.5 rounded-md text-xs font-medium transition-all",t===l?"bg-indigo-600 text-white":"text-gray-400 hover:text-white"),children:[l,"d"]},l))}),h.jsxs("button",{onClick:a,className:"btn btn-secondary btn-sm",children:[h.jsx(O3,{size:14})," Export CSV"]})]})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s.map(l=>{const u=l.icon;return h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:l.label}),h.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:i?"—":l.value})]}),h.jsx("div",{className:ke("w-11 h-11 rounded-xl flex items-center justify-center",l.bg),children:h.jsx(u,{size:20,className:l.color})})]})},l.label)})}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Daily Volume"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-64",children:i?h.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):h.jsx(_l,{width:"100%",height:"100%",children:h.jsxs(cT,{data:o.daily_breakdown||[],children:[h.jsx("defs",{children:h.jsxs("linearGradient",{id:"rptTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),h.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]})}),h.jsx(Tu,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),h.jsx(Ei,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ni,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(I_,{})}),h.jsx(on,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#rptTotal)",strokeWidth:2,name:"Issues"})]})})})})]}),h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Resolution by Source"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-64",children:i?h.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):h.jsx(_l,{width:"100%",height:"100%",children:h.jsxs(uT,{data:Object.entries(o.by_source||{}).map(([l,u])=>({name:l.replace("_"," ").replace(/\b\w/g,f=>f.toUpperCase()),value:u})),layout:"vertical",children:[h.jsx(Tu,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),h.jsx(Ei,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ni,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(I_,{})}),h.jsx(Bi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:20,name:"Issues"})]})})})})]})]})]})}const _se=[{id:"general",label:"General",icon:Rf},{id:"notifications",label:"Notifications",icon:dk},{id:"security",label:"Security",icon:bk},{id:"api",label:"API Keys",icon:yk},{id:"webhooks",label:"Webhooks",icon:mk}];function jse(){const{currentOrg:e}=Wr(),[t,r]=E.useState("general"),[n,i]=E.useState(!1),[a,o]=E.useState(!1);if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const s=async()=>{i(!0),await new Promise(l=>setTimeout(l,1e3)),i(!1)};return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsx("div",{className:"page-header",children:h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Settings"}),h.jsx("p",{className:"page-subtitle",children:"Manage your organization settings"})]})}),h.jsxs("div",{className:"flex gap-6",children:[h.jsx("div",{className:"w-52 flex-shrink-0",children:h.jsx("div",{className:"space-y-0.5",children:_se.map(l=>{const u=l.icon;return h.jsxs("button",{onClick:()=>r(l.id),className:ke("w-full sidebar-item",t===l.id?"sidebar-item-active":"sidebar-item-inactive"),children:[h.jsx(u,{size:16}),h.jsx("span",{children:l.label})]},l.id)})})}),h.jsxs("div",{className:"flex-1 max-w-2xl",children:[t==="general"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Organization Details"})}),h.jsxs("div",{className:"card-body space-y-5",children:[h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Organization Name"}),h.jsx("input",{defaultValue:e.name,className:"input",placeholder:"My Organization"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Slug"}),h.jsx("input",{defaultValue:e.slug||"",className:"input font-mono",placeholder:"my-org"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Default AI Model"}),h.jsxs("select",{className:"input",children:[h.jsx("option",{children:"Claude 3.5 Sonnet (recommended)"}),h.jsx("option",{children:"GPT-4o"}),h.jsx("option",{children:"Llama 3.3 70B"}),h.jsx("option",{children:"Gemini Pro"})]})]}),h.jsx("div",{className:"pt-3 border-t border-gray-800",children:h.jsxs("button",{onClick:s,disabled:n,className:"btn btn-primary",children:[n?h.jsx(ki,{size:14,className:"animate-spin"}):h.jsx($1,{size:14}),"Save Changes"]})})]})]}),t==="notifications"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),h.jsxs("div",{className:"card-body space-y-4",children:[[{label:"New issue received",desc:"When a new issue arrives from an integration"},{label:"Analysis completed",desc:"When AI finishes analyzing an issue"},{label:"PR created",desc:"When a Pull Request is automatically generated"},{label:"Analysis error",desc:"When AI fails to analyze an issue"},{label:"Daily digest",desc:"Summary of daily activity"}].map(l=>h.jsxs("div",{className:"flex items-center justify-between py-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-200",children:l.label}),h.jsx("p",{className:"text-xs text-gray-500",children:l.desc})]}),h.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[h.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),h.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},l.label)),h.jsxs("div",{className:"pt-3 border-t border-gray-800",children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Notification Email"}),h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("div",{className:"relative flex-1",children:[h.jsx(ch,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{className:"input pl-10",placeholder:"team@company.com"})]}),h.jsx("button",{className:"btn btn-primary btn-sm",children:h.jsx($1,{size:14})})]})]})]})]}),t==="security"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Security Settings"})}),h.jsxs("div",{className:"card-body space-y-5",children:[h.jsxs("div",{className:"flex items-center justify-between py-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all organization members"})]}),h.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[h.jsx("input",{type:"checkbox",className:"sr-only peer"}),h.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),h.jsxs("div",{className:"flex items-center justify-between py-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Enable Single Sign-On with your identity provider"})]}),h.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"IP Allowlist"}),h.jsx("textarea",{className:"input h-20 resize-none font-mono text-xs",placeholder:`192.168.1.0/24
10.0.0.0/8`}),h.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"One CIDR per line. Leave empty to allow all."})]})]})]}),t==="api"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsxs("div",{className:"card-header",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),h.jsxs("button",{className:"btn btn-primary btn-sm",children:[h.jsx(Ca,{size:14})," Create Key"]})]}),h.jsxs("div",{className:"card-body",children:[h.jsx("div",{className:"space-y-3",children:h.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[h.jsx(yk,{size:16,className:"text-gray-500"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium",children:"Production API Key"}),h.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[h.jsx("code",{className:"text-xs text-gray-500 font-mono",children:a?"jaf_live_sk_a1b2c3d4e5f6...":"jaf_live_sk_••••••••••••..."}),h.jsx("button",{onClick:()=>o(!a),className:"text-gray-500 hover:text-gray-300",children:a?h.jsx(E3,{size:12}):h.jsx(pk,{size:12})}),h.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:h.jsx(Iy,{size:12})})]})]}),h.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),h.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:h.jsx(xk,{size:12})})]})}),h.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[h.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[h.jsx(My,{size:12})," Quick Start"]}),h.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://jira-fixer.startdata.com.br/api/issues \\
-H "Authorization: Bearer YOUR_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{"title": "Bug fix needed", "source": "api"}'`})]})]})]}),t==="webhooks"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsxs("div",{className:"card-header",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Webhook Endpoints"}),h.jsxs("button",{className:"btn btn-primary btn-sm",children:[h.jsx(Ca,{size:14})," Add Endpoint"]})]}),h.jsxs("div",{className:"card-body",children:[h.jsxs("div",{className:"p-4 bg-gray-900/50 rounded-lg border border-gray-800/50 mb-4",children:[h.jsx("h4",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Incoming Webhook URLs"}),h.jsx("div",{className:"space-y-2",children:["jira","servicenow","github","gitlab"].map(l=>h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("span",{className:"text-xs text-gray-500 w-20 capitalize",children:[l,":"]}),h.jsxs("code",{className:"text-xs text-indigo-400 font-mono flex-1 truncate",children:["https://jira-fixer.startdata.com.br/api/webhooks/",l]}),h.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:h.jsx(Iy,{size:12})})]},l))})]}),h.jsxs("div",{className:"text-center py-6 text-gray-500",children:[h.jsx(mk,{size:24,className:"mx-auto mb-2 text-gray-600"}),h.jsx("p",{className:"text-sm",children:"No outgoing webhook endpoints configured"}),h.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Add endpoints to receive event notifications"})]})]})]})]})]})]})}function Pse({children:e}){const{user:t,loading:r}=Wr();return r?h.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?e:h.jsx(CM,{to:"/login"})}function Ase(){return h.jsxs(IM,{children:[h.jsx(Nr,{path:"/login",element:h.jsx(M4,{})}),h.jsx(Nr,{path:"/register",element:h.jsx(I4,{})}),h.jsxs(Nr,{path:"/",element:h.jsx(Pse,{children:h.jsx($4,{})}),children:[h.jsx(Nr,{index:!0,element:h.jsx(pse,{})}),h.jsx(Nr,{path:"issues",element:h.jsx(vse,{})}),h.jsx(Nr,{path:"issues/:id",element:h.jsx(bse,{})}),h.jsx(Nr,{path:"integrations",element:h.jsx(xse,{})}),h.jsx(Nr,{path:"team",element:h.jsx(Sse,{})}),h.jsx(Nr,{path:"reports",element:h.jsx(Ose,{})}),h.jsx(Nr,{path:"settings",element:h.jsx(jse,{})})]})]})}const kse=new mI({defaultOptions:{queries:{staleTime:3e4,retry:1}}});ym.createRoot(document.getElementById("root")).render(h.jsx(A.StrictMode,{children:h.jsx(yI,{client:kse,children:h.jsx(UM,{children:h.jsx(aD,{children:h.jsx(Ase,{})})})})}));