326 lines
734 KiB
JavaScript
326 lines
734 KiB
JavaScript
var M$=Object.defineProperty;var I$=(e,t,r)=>t in e?M$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ku=(e,t,r)=>(I$(e,typeof t!="symbol"?t+"":t,r),r),np=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var U=(e,t,r)=>(np(e,t,"read from private field"),r?r.call(e):t.get(e)),ge=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},fe=(e,t,r,n)=>(np(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Gu=(e,t,r,n)=>({set _(i){fe(e,t,i,r)},get _(){return U(e,t,n)}}),_t=(e,t,r)=>(np(e,t,"access private method"),r);function D$(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 Xu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C_={exports:{}},Td={},N_={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 ju=Symbol.for("react.element"),R$=Symbol.for("react.portal"),L$=Symbol.for("react.fragment"),F$=Symbol.for("react.strict_mode"),B$=Symbol.for("react.profiler"),z$=Symbol.for("react.provider"),U$=Symbol.for("react.context"),V$=Symbol.for("react.forward_ref"),W$=Symbol.for("react.suspense"),H$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),mx=Symbol.iterator;function K$(e){return e===null||typeof e!="object"?null:(e=mx&&e[mx]||e["@@iterator"],typeof e=="function"?e:null)}var M_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I_=Object.assign,D_={};function cs(e,t,r){this.props=e,this.context=t,this.refs=D_,this.updater=r||M_}cs.prototype.isReactComponent={};cs.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")};cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function R_(){}R_.prototype=cs.prototype;function Kv(e,t,r){this.props=e,this.context=t,this.refs=D_,this.updater=r||M_}var Gv=Kv.prototype=new R_;Gv.constructor=Kv;I_(Gv,cs.prototype);Gv.isPureReactComponent=!0;var vx=Array.isArray,L_=Object.prototype.hasOwnProperty,Xv={current:null},F_={key:!0,ref:!0,__self:!0,__source:!0};function B_(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)L_.call(t,n)&&!F_.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:ju,type:e,key:a,ref:o,props:i,_owner:Xv.current}}function G$(e,t){return{$$typeof:ju,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Yv(e){return typeof e=="object"&&e!==null&&e.$$typeof===ju}function X$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var gx=/\/+/g;function ip(e,t){return typeof e=="object"&&e!==null&&e.key!=null?X$(""+e.key):t.toString(36)}function Tc(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 ju:case R$:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+ip(o,0):n,vx(i)?(r="",e!=null&&(r=e.replace(gx,"$&/")+"/"),Tc(i,t,r,"",function(u){return u})):i!=null&&(Yv(i)&&(i=G$(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(gx,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",vx(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+ip(a,s);o+=Tc(a,t,r,l,i)}else if(l=K$(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+ip(a,s++),o+=Tc(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 Yu(e,t,r){if(e==null)return e;var n=[],i=0;return Tc(e,n,"","",function(a){return t.call(r,a,i++)}),n}function Y$(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 Vt={current:null},Cc={transition:null},Q$={ReactCurrentDispatcher:Vt,ReactCurrentBatchConfig:Cc,ReactCurrentOwner:Xv};function z_(){throw Error("act(...) is not supported in production builds of React.")}pe.Children={map:Yu,forEach:function(e,t,r){Yu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Yu(e,function(){t++}),t},toArray:function(e){return Yu(e,function(t){return t})||[]},only:function(e){if(!Yv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pe.Component=cs;pe.Fragment=L$;pe.Profiler=B$;pe.PureComponent=Kv;pe.StrictMode=F$;pe.Suspense=W$;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q$;pe.act=z_;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=I_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Xv.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)L_.call(t,l)&&!F_.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:ju,type:e.type,key:i,ref:a,props:n,_owner:o}};pe.createContext=function(e){return e={$$typeof:U$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:z$,_context:e},e.Consumer=e};pe.createElement=B_;pe.createFactory=function(e){var t=B_.bind(null,e);return t.type=e,t};pe.createRef=function(){return{current:null}};pe.forwardRef=function(e){return{$$typeof:V$,render:e}};pe.isValidElement=Yv;pe.lazy=function(e){return{$$typeof:q$,_payload:{_status:-1,_result:e},_init:Y$}};pe.memo=function(e,t){return{$$typeof:H$,type:e,compare:t===void 0?null:t}};pe.startTransition=function(e){var t=Cc.transition;Cc.transition={};try{e()}finally{Cc.transition=t}};pe.unstable_act=z_;pe.useCallback=function(e,t){return Vt.current.useCallback(e,t)};pe.useContext=function(e){return Vt.current.useContext(e)};pe.useDebugValue=function(){};pe.useDeferredValue=function(e){return Vt.current.useDeferredValue(e)};pe.useEffect=function(e,t){return Vt.current.useEffect(e,t)};pe.useId=function(){return Vt.current.useId()};pe.useImperativeHandle=function(e,t,r){return Vt.current.useImperativeHandle(e,t,r)};pe.useInsertionEffect=function(e,t){return Vt.current.useInsertionEffect(e,t)};pe.useLayoutEffect=function(e,t){return Vt.current.useLayoutEffect(e,t)};pe.useMemo=function(e,t){return Vt.current.useMemo(e,t)};pe.useReducer=function(e,t,r){return Vt.current.useReducer(e,t,r)};pe.useRef=function(e){return Vt.current.useRef(e)};pe.useState=function(e){return Vt.current.useState(e)};pe.useSyncExternalStore=function(e,t,r){return Vt.current.useSyncExternalStore(e,t,r)};pe.useTransition=function(){return Vt.current.useTransition()};pe.version="18.3.1";N_.exports=pe;var j=N_.exports;const k=Se(j),Z$=D$({__proto__:null,default:k},[j]);/**
|
||
* @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 J$=j,eT=Symbol.for("react.element"),tT=Symbol.for("react.fragment"),rT=Object.prototype.hasOwnProperty,nT=J$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iT={key:!0,ref:!0,__self:!0,__source:!0};function U_(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)rT.call(t,n)&&!iT.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:nT.current}}Td.Fragment=tT;Td.jsx=U_;Td.jsxs=U_;C_.exports=Td;var g=C_.exports,hy={},V_={exports:{}},dr={},W_={exports:{}},H_={};/**
|
||
* @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(I,F){var H=I.length;I.push(F);e:for(;0<H;){var Q=H-1>>>1,K=I[Q];if(0<i(K,F))I[Q]=F,I[H]=K,H=Q;else break e}}function r(I){return I.length===0?null:I[0]}function n(I){if(I.length===0)return null;var F=I[0],H=I.pop();if(H!==F){I[0]=H;e:for(var Q=0,K=I.length,ne=K>>>1;Q<ne;){var me=2*(Q+1)-1,Ee=I[me],Ve=me+1,St=I[Ve];if(0>i(Ee,H))Ve<K&&0>i(St,Ee)?(I[Q]=St,I[Ve]=H,Q=Ve):(I[Q]=Ee,I[me]=H,Q=me);else if(Ve<K&&0>i(St,H))I[Q]=St,I[Ve]=H,Q=Ve;else break e}}return F}function i(I,F){var H=I.sortIndex-F.sortIndex;return H!==0?H:I.id-F.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,h=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=I)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function O(I){if(p=!1,v(I),!y)if(r(l)!==null)y=!0,L(w);else{var F=r(u);F!==null&&V(O,F.startTime-I)}}function w(I,F){y=!1,p&&(p=!1,x(P),P=-1),h=!0;var H=d;try{for(v(F),c=r(l);c!==null&&(!(c.expirationTime>F)||I&&!E());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,d=c.priorityLevel;var K=Q(c.expirationTime<=F);F=e.unstable_now(),typeof K=="function"?c.callback=K:c===r(l)&&n(l),v(F)}else n(l);c=r(l)}if(c!==null)var ne=!0;else{var me=r(u);me!==null&&V(O,me.startTime-F),ne=!1}return ne}finally{c=null,d=H,h=!1}}var S=!1,_=null,P=-1,A=5,C=-1;function E(){return!(e.unstable_now()-C<A)}function T(){if(_!==null){var I=e.unstable_now();C=I;var F=!0;try{F=_(!0,I)}finally{F?N():(S=!1,_=null)}}else S=!1}var N;if(typeof m=="function")N=function(){m(T)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,R=D.port2;D.port1.onmessage=T,N=function(){R.postMessage(null)}}else N=function(){b(T,0)};function L(I){_=I,S||(S=!0,N())}function V(I,F){P=b(function(){I(e.unstable_now())},F)}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(I){I.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,L(w))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(I){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var H=d;d=F;try{return I()}finally{d=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,F){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var H=d;d=I;try{return F()}finally{d=H}},e.unstable_scheduleCallback=function(I,F,H){var Q=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?Q+H:Q):H=Q,I){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=H+K,I={id:f++,callback:F,priorityLevel:I,startTime:H,expirationTime:K,sortIndex:-1},H>Q?(I.sortIndex=H,t(u,I),r(l)===null&&I===r(u)&&(p?(x(P),P=-1):p=!0,V(O,H-Q))):(I.sortIndex=K,t(l,I),y||h||(y=!0,L(w))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var F=d;return function(){var H=d;d=F;try{return I.apply(this,arguments)}finally{d=H}}}})(H_);W_.exports=H_;var aT=W_.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 oT=j,fr=aT;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 q_=new Set,Ol={};function Ea(e,t){To(e,t),To(e+"Capture",t)}function To(e,t){for(Ol[e]=t,e=0;e<t.length;e++)q_.add(t[e])}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),py=Object.prototype.hasOwnProperty,sT=/^[: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]*$/,xx={},bx={};function lT(e){return py.call(bx,e)?!0:py.call(xx,e)?!1:sT.test(e)?bx[e]=!0:(xx[e]=!0,!1)}function uT(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 cT(e,t,r,n){if(t===null||typeof t>"u"||uT(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 Wt(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 wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wt[e]=new Wt(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){wt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qv=/[\-:]([a-z])/g;function Zv(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(Qv,Zv);wt[t]=new Wt(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(Qv,Zv);wt[t]=new Wt(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(Qv,Zv);wt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});wt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jv(e,t,r,n){var i=wt.hasOwnProperty(t)?wt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(cT(t,r,i,n)&&(r=null),n||i===null?lT(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 Hn=oT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qu=Symbol.for("react.element"),qa=Symbol.for("react.portal"),Ka=Symbol.for("react.fragment"),eg=Symbol.for("react.strict_mode"),yy=Symbol.for("react.profiler"),K_=Symbol.for("react.provider"),G_=Symbol.for("react.context"),tg=Symbol.for("react.forward_ref"),my=Symbol.for("react.suspense"),vy=Symbol.for("react.suspense_list"),rg=Symbol.for("react.memo"),ni=Symbol.for("react.lazy"),X_=Symbol.for("react.offscreen"),wx=Symbol.iterator;function Ts(e){return e===null||typeof e!="object"?null:(e=wx&&e[wx]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Object.assign,ap;function Zs(e){if(ap===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ap=t&&t[1]||""}return`
|
||
`+ap+e}var op=!1;function sp(e,t){if(!e||op)return"";op=!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{op=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zs(e):""}function fT(e){switch(e.tag){case 5:return Zs(e.type);case 16:return Zs("Lazy");case 13:return Zs("Suspense");case 19:return Zs("SuspenseList");case 0:case 2:case 15:return e=sp(e.type,!1),e;case 11:return e=sp(e.type.render,!1),e;case 1:return e=sp(e.type,!0),e;default:return""}}function gy(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 Ka:return"Fragment";case qa:return"Portal";case yy:return"Profiler";case eg:return"StrictMode";case my:return"Suspense";case vy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case K_:return(e._context.displayName||"Context")+".Provider";case tg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rg:return t=e.displayName||null,t!==null?t:gy(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return gy(e(t))}catch{}}return null}function dT(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 gy(t);case 8:return t===eg?"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 Ti(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Y_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hT(e){var t=Y_(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 Zu(e){e._valueTracker||(e._valueTracker=hT(e))}function Q_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Y_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Gc(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 xy(e,t){var r=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Sx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ti(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 Z_(e,t){t=t.checked,t!=null&&Jv(e,"checked",t,!1)}function by(e,t){Z_(e,t);var r=Ti(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")?wy(e,t.type,r):t.hasOwnProperty("defaultValue")&&wy(e,t.type,Ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ox(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 wy(e,t,r){(t!=="number"||Gc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Js=Array.isArray;function fo(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=""+Ti(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 Sy(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return Ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _x(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(Js(r)){if(1<r.length)throw Error(q(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ti(r)}}function J_(e,t){var r=Ti(t.value),n=Ti(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 Px(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function eP(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 Oy(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?eP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ju,tP=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(Ju=Ju||document.createElement("div"),Ju.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ju.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _l(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var nl={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},pT=["Webkit","ms","Moz","O"];Object.keys(nl).forEach(function(e){pT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nl[t]=nl[e]})});function rP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||nl.hasOwnProperty(e)&&nl[e]?(""+t).trim():t+"px"}function nP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=rP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var yT=Ke({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 _y(e,t){if(t){if(yT[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 Py(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 Ay=null;function ng(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ky=null,ho=null,po=null;function Ax(e){if(e=Tu(e)){if(typeof ky!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Dd(t),ky(e.stateNode,e.type,t))}}function iP(e){ho?po?po.push(e):po=[e]:ho=e}function aP(){if(ho){var e=ho,t=po;if(po=ho=null,Ax(e),t)for(e=0;e<t.length;e++)Ax(t[e])}}function oP(e,t){return e(t)}function sP(){}var lp=!1;function lP(e,t,r){if(lp)return e(t,r);lp=!0;try{return oP(e,t,r)}finally{lp=!1,(ho!==null||po!==null)&&(sP(),aP())}}function Pl(e,t){var r=e.stateNode;if(r===null)return null;var n=Dd(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 jy=!1;if(Rn)try{var Cs={};Object.defineProperty(Cs,"passive",{get:function(){jy=!0}}),window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{jy=!1}function mT(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 il=!1,Xc=null,Yc=!1,Ey=null,vT={onError:function(e){il=!0,Xc=e}};function gT(e,t,r,n,i,a,o,s,l){il=!1,Xc=null,mT.apply(vT,arguments)}function xT(e,t,r,n,i,a,o,s,l){if(gT.apply(this,arguments),il){if(il){var u=Xc;il=!1,Xc=null}else throw Error(q(198));Yc||(Yc=!0,Ey=u)}}function $a(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 uP(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 kx(e){if($a(e)!==e)throw Error(q(188))}function bT(e){var t=e.alternate;if(!t){if(t=$a(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 kx(i),e;if(a===n)return kx(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 cP(e){return e=bT(e),e!==null?fP(e):null}function fP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fP(e);if(t!==null)return t;e=e.sibling}return null}var dP=fr.unstable_scheduleCallback,jx=fr.unstable_cancelCallback,wT=fr.unstable_shouldYield,ST=fr.unstable_requestPaint,Je=fr.unstable_now,OT=fr.unstable_getCurrentPriorityLevel,ig=fr.unstable_ImmediatePriority,hP=fr.unstable_UserBlockingPriority,Qc=fr.unstable_NormalPriority,_T=fr.unstable_LowPriority,pP=fr.unstable_IdlePriority,Cd=null,sn=null;function PT(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(Cd,e,void 0,(e.current.flags&128)===128)}catch{}}var Hr=Math.clz32?Math.clz32:jT,AT=Math.log,kT=Math.LN2;function jT(e){return e>>>=0,e===0?32:31-(AT(e)/kT|0)|0}var ec=64,tc=4194304;function el(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 Zc(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=el(s):(a&=o,a!==0&&(n=el(a)))}else o=r&~i,o!==0?n=el(o):a!==0&&(n=el(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-Hr(t),i=1<<r,n|=e[r],t&=~i;return n}function ET(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 $T(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Hr(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=ET(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function $y(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yP(){var e=ec;return ec<<=1,!(ec&4194240)&&(ec=64),e}function up(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Eu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Hr(t),e[t]=r}function TT(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-Hr(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function ag(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Hr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var _e=0;function mP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vP,og,gP,xP,bP,Ty=!1,rc=[],bi=null,wi=null,Si=null,Al=new Map,kl=new Map,oi=[],CT="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 Ex(e,t){switch(e){case"focusin":case"focusout":bi=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":Al.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(t.pointerId)}}function Ns(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=Tu(t),t!==null&&og(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function NT(e,t,r,n,i){switch(t){case"focusin":return bi=Ns(bi,e,t,r,n,i),!0;case"dragenter":return wi=Ns(wi,e,t,r,n,i),!0;case"mouseover":return Si=Ns(Si,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Al.set(a,Ns(Al.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,kl.set(a,Ns(kl.get(a)||null,e,t,r,n,i)),!0}return!1}function wP(e){var t=Qi(e.target);if(t!==null){var r=$a(t);if(r!==null){if(t=r.tag,t===13){if(t=uP(r),t!==null){e.blockedOn=t,bP(e.priority,function(){gP(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 Nc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Cy(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Ay=n,r.target.dispatchEvent(n),Ay=null}else return t=Tu(r),t!==null&&og(t),e.blockedOn=r,!1;t.shift()}return!0}function $x(e,t,r){Nc(e)&&r.delete(t)}function MT(){Ty=!1,bi!==null&&Nc(bi)&&(bi=null),wi!==null&&Nc(wi)&&(wi=null),Si!==null&&Nc(Si)&&(Si=null),Al.forEach($x),kl.forEach($x)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,Ty||(Ty=!0,fr.unstable_scheduleCallback(fr.unstable_NormalPriority,MT)))}function jl(e){function t(i){return Ms(i,e)}if(0<rc.length){Ms(rc[0],e);for(var r=1;r<rc.length;r++){var n=rc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(bi!==null&&Ms(bi,e),wi!==null&&Ms(wi,e),Si!==null&&Ms(Si,e),Al.forEach(t),kl.forEach(t),r=0;r<oi.length;r++)n=oi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<oi.length&&(r=oi[0],r.blockedOn===null);)wP(r),r.blockedOn===null&&oi.shift()}var yo=Hn.ReactCurrentBatchConfig,Jc=!0;function IT(e,t,r,n){var i=_e,a=yo.transition;yo.transition=null;try{_e=1,sg(e,t,r,n)}finally{_e=i,yo.transition=a}}function DT(e,t,r,n){var i=_e,a=yo.transition;yo.transition=null;try{_e=4,sg(e,t,r,n)}finally{_e=i,yo.transition=a}}function sg(e,t,r,n){if(Jc){var i=Cy(e,t,r,n);if(i===null)xp(e,t,n,ef,r),Ex(e,n);else if(NT(i,e,t,r,n))n.stopPropagation();else if(Ex(e,n),t&4&&-1<CT.indexOf(e)){for(;i!==null;){var a=Tu(i);if(a!==null&&vP(a),a=Cy(e,t,r,n),a===null&&xp(e,t,n,ef,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else xp(e,t,n,null,r)}}var ef=null;function Cy(e,t,r,n){if(ef=null,e=ng(n),e=Qi(e),e!==null)if(t=$a(e),t===null)e=null;else if(r=t.tag,r===13){if(e=uP(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 ef=e,null}function SP(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(OT()){case ig:return 1;case hP:return 4;case Qc:case _T:return 16;case pP:return 536870912;default:return 16}default:return 16}}var mi=null,lg=null,Mc=null;function OP(){if(Mc)return Mc;var e,t=lg,r=t.length,n,i="value"in mi?mi.value:mi.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 Mc=i.slice(e,1<n?1-n:void 0)}function Ic(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 nc(){return!0}function Tx(){return!1}function hr(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)?nc:Tx,this.isPropagationStopped=Tx,this}return Ke(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=nc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=nc)},persist:function(){},isPersistent:nc}),t}var fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ug=hr(fs),$u=Ke({},fs,{view:0,detail:0}),RT=hr($u),cp,fp,Is,Nd=Ke({},$u,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cg,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!==Is&&(Is&&e.type==="mousemove"?(cp=e.screenX-Is.screenX,fp=e.screenY-Is.screenY):fp=cp=0,Is=e),cp)},movementY:function(e){return"movementY"in e?e.movementY:fp}}),Cx=hr(Nd),LT=Ke({},Nd,{dataTransfer:0}),FT=hr(LT),BT=Ke({},$u,{relatedTarget:0}),dp=hr(BT),zT=Ke({},fs,{animationName:0,elapsedTime:0,pseudoElement:0}),UT=hr(zT),VT=Ke({},fs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WT=hr(VT),HT=Ke({},fs,{data:0}),Nx=hr(HT),qT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KT={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"},GT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=GT[e])?!!t[e]:!1}function cg(){return XT}var YT=Ke({},$u,{key:function(e){if(e.key){var t=qT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ic(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?KT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cg,charCode:function(e){return e.type==="keypress"?Ic(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ic(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QT=hr(YT),ZT=Ke({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mx=hr(ZT),JT=Ke({},$u,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cg}),eC=hr(JT),tC=Ke({},fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),rC=hr(tC),nC=Ke({},Nd,{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}),iC=hr(nC),aC=[9,13,27,32],fg=Rn&&"CompositionEvent"in window,al=null;Rn&&"documentMode"in document&&(al=document.documentMode);var oC=Rn&&"TextEvent"in window&&!al,_P=Rn&&(!fg||al&&8<al&&11>=al),Ix=String.fromCharCode(32),Dx=!1;function PP(e,t){switch(e){case"keyup":return aC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ga=!1;function sC(e,t){switch(e){case"compositionend":return AP(t);case"keypress":return t.which!==32?null:(Dx=!0,Ix);case"textInput":return e=t.data,e===Ix&&Dx?null:e;default:return null}}function lC(e,t){if(Ga)return e==="compositionend"||!fg&&PP(e,t)?(e=OP(),Mc=lg=mi=null,Ga=!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 _P&&t.locale!=="ko"?null:t.data;default:return null}}var uC={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 Rx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uC[e.type]:t==="textarea"}function kP(e,t,r,n){iP(n),t=tf(t,"onChange"),0<t.length&&(r=new ug("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ol=null,El=null;function cC(e){LP(e,0)}function Md(e){var t=Qa(e);if(Q_(t))return e}function fC(e,t){if(e==="change")return t}var jP=!1;if(Rn){var hp;if(Rn){var pp="oninput"in document;if(!pp){var Lx=document.createElement("div");Lx.setAttribute("oninput","return;"),pp=typeof Lx.oninput=="function"}hp=pp}else hp=!1;jP=hp&&(!document.documentMode||9<document.documentMode)}function Fx(){ol&&(ol.detachEvent("onpropertychange",EP),El=ol=null)}function EP(e){if(e.propertyName==="value"&&Md(El)){var t=[];kP(t,El,e,ng(e)),lP(cC,t)}}function dC(e,t,r){e==="focusin"?(Fx(),ol=t,El=r,ol.attachEvent("onpropertychange",EP)):e==="focusout"&&Fx()}function hC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Md(El)}function pC(e,t){if(e==="click")return Md(t)}function yC(e,t){if(e==="input"||e==="change")return Md(t)}function mC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gr=typeof Object.is=="function"?Object.is:mC;function $l(e,t){if(Gr(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(!py.call(t,i)||!Gr(e[i],t[i]))return!1}return!0}function Bx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zx(e,t){var r=Bx(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=Bx(r)}}function $P(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$P(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function TP(){for(var e=window,t=Gc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Gc(e.document)}return t}function dg(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 vC(e){var t=TP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&$P(r.ownerDocument.documentElement,r)){if(n!==null&&dg(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=zx(r,a);var o=zx(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 gC=Rn&&"documentMode"in document&&11>=document.documentMode,Xa=null,Ny=null,sl=null,My=!1;function Ux(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;My||Xa==null||Xa!==Gc(n)||(n=Xa,"selectionStart"in n&&dg(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}),sl&&$l(sl,n)||(sl=n,n=tf(Ny,"onSelect"),0<n.length&&(t=new ug("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Xa)))}function ic(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ya={animationend:ic("Animation","AnimationEnd"),animationiteration:ic("Animation","AnimationIteration"),animationstart:ic("Animation","AnimationStart"),transitionend:ic("Transition","TransitionEnd")},yp={},CP={};Rn&&(CP=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function Id(e){if(yp[e])return yp[e];if(!Ya[e])return e;var t=Ya[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in CP)return yp[e]=t[r];return e}var NP=Id("animationend"),MP=Id("animationiteration"),IP=Id("animationstart"),DP=Id("transitionend"),RP=new Map,Vx="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 Mi(e,t){RP.set(e,t),Ea(t,[e])}for(var mp=0;mp<Vx.length;mp++){var vp=Vx[mp],xC=vp.toLowerCase(),bC=vp[0].toUpperCase()+vp.slice(1);Mi(xC,"on"+bC)}Mi(NP,"onAnimationEnd");Mi(MP,"onAnimationIteration");Mi(IP,"onAnimationStart");Mi("dblclick","onDoubleClick");Mi("focusin","onFocus");Mi("focusout","onBlur");Mi(DP,"onTransitionEnd");To("onMouseEnter",["mouseout","mouseover"]);To("onMouseLeave",["mouseout","mouseover"]);To("onPointerEnter",["pointerout","pointerover"]);To("onPointerLeave",["pointerout","pointerover"]);Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tl="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(" "),wC=new Set("cancel close invalid load scroll toggle".split(" ").concat(tl));function Wx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,xT(n,t,void 0,e),e.currentTarget=null}function LP(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;Wx(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;Wx(i,s,u),a=l}}}if(Yc)throw e=Ey,Yc=!1,Ey=null,e}function De(e,t){var r=t[Fy];r===void 0&&(r=t[Fy]=new Set);var n=e+"__bubble";r.has(n)||(FP(t,e,2,!1),r.add(n))}function gp(e,t,r){var n=0;t&&(n|=4),FP(r,e,n,t)}var ac="_reactListening"+Math.random().toString(36).slice(2);function Tl(e){if(!e[ac]){e[ac]=!0,q_.forEach(function(r){r!=="selectionchange"&&(wC.has(r)||gp(r,!1,e),gp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ac]||(t[ac]=!0,gp("selectionchange",!1,t))}}function FP(e,t,r,n){switch(SP(t)){case 1:var i=IT;break;case 4:i=DT;break;default:i=sg}r=i.bind(null,t,r,e),i=void 0,!jy||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 xp(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=Qi(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}lP(function(){var u=a,f=ng(r),c=[];e:{var d=RP.get(e);if(d!==void 0){var h=ug,y=e;switch(e){case"keypress":if(Ic(r)===0)break e;case"keydown":case"keyup":h=QT;break;case"focusin":y="focus",h=dp;break;case"focusout":y="blur",h=dp;break;case"beforeblur":case"afterblur":h=dp;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":h=Cx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=FT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=eC;break;case NP:case MP:case IP:h=UT;break;case DP:h=rC;break;case"scroll":h=RT;break;case"wheel":h=iC;break;case"copy":case"cut":case"paste":h=WT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Mx}var p=(t&4)!==0,b=!p&&e==="scroll",x=p?d!==null?d+"Capture":null:d;p=[];for(var m=u,v;m!==null;){v=m;var O=v.stateNode;if(v.tag===5&&O!==null&&(v=O,x!==null&&(O=Pl(m,x),O!=null&&p.push(Cl(m,O,v)))),b)break;m=m.return}0<p.length&&(d=new h(d,y,null,r,f),c.push({event:d,listeners:p}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==Ay&&(y=r.relatedTarget||r.fromElement)&&(Qi(y)||y[Ln]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(y=r.relatedTarget||r.toElement,h=u,y=y?Qi(y):null,y!==null&&(b=$a(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(p=Cx,O="onMouseLeave",x="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=Mx,O="onPointerLeave",x="onPointerEnter",m="pointer"),b=h==null?d:Qa(h),v=y==null?d:Qa(y),d=new p(O,m+"leave",h,r,f),d.target=b,d.relatedTarget=v,O=null,Qi(f)===u&&(p=new p(x,m+"enter",y,r,f),p.target=v,p.relatedTarget=b,O=p),b=O,h&&y)t:{for(p=h,x=y,m=0,v=p;v;v=Fa(v))m++;for(v=0,O=x;O;O=Fa(O))v++;for(;0<m-v;)p=Fa(p),m--;for(;0<v-m;)x=Fa(x),v--;for(;m--;){if(p===x||x!==null&&p===x.alternate)break t;p=Fa(p),x=Fa(x)}p=null}else p=null;h!==null&&Hx(c,d,h,p,!1),y!==null&&b!==null&&Hx(c,b,y,p,!0)}}e:{if(d=u?Qa(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var w=fC;else if(Rx(d))if(jP)w=yC;else{w=hC;var S=dC}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=pC);if(w&&(w=w(e,u))){kP(c,w,r,f);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&wy(d,"number",d.value)}switch(S=u?Qa(u):window,e){case"focusin":(Rx(S)||S.contentEditable==="true")&&(Xa=S,Ny=u,sl=null);break;case"focusout":sl=Ny=Xa=null;break;case"mousedown":My=!0;break;case"contextmenu":case"mouseup":case"dragend":My=!1,Ux(c,r,f);break;case"selectionchange":if(gC)break;case"keydown":case"keyup":Ux(c,r,f)}var _;if(fg)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Ga?PP(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(_P&&r.locale!=="ko"&&(Ga||P!=="onCompositionStart"?P==="onCompositionEnd"&&Ga&&(_=OP()):(mi=f,lg="value"in mi?mi.value:mi.textContent,Ga=!0)),S=tf(u,P),0<S.length&&(P=new Nx(P,e,null,r,f),c.push({event:P,listeners:S}),_?P.data=_:(_=AP(r),_!==null&&(P.data=_)))),(_=oC?sC(e,r):lC(e,r))&&(u=tf(u,"onBeforeInput"),0<u.length&&(f=new Nx("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:u}),f.data=_))}LP(c,t)})}function Cl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function tf(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Pl(e,r),a!=null&&n.unshift(Cl(e,a,i)),a=Pl(e,t),a!=null&&n.push(Cl(e,a,i))),e=e.return}return n}function Fa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hx(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=Pl(r,a),l!=null&&o.unshift(Cl(r,l,s))):i||(l=Pl(r,a),l!=null&&o.push(Cl(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var SC=/\r\n?/g,OC=/\u0000|\uFFFD/g;function qx(e){return(typeof e=="string"?e:""+e).replace(SC,`
|
||
`).replace(OC,"")}function oc(e,t,r){if(t=qx(t),qx(e)!==t&&r)throw Error(q(425))}function rf(){}var Iy=null,Dy=null;function Ry(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 Ly=typeof setTimeout=="function"?setTimeout:void 0,_C=typeof clearTimeout=="function"?clearTimeout:void 0,Kx=typeof Promise=="function"?Promise:void 0,PC=typeof queueMicrotask=="function"?queueMicrotask:typeof Kx<"u"?function(e){return Kx.resolve(null).then(e).catch(AC)}:Ly;function AC(e){setTimeout(function(){throw e})}function bp(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),jl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);jl(t)}function Oi(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 Gx(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 ds=Math.random().toString(36).slice(2),nn="__reactFiber$"+ds,Nl="__reactProps$"+ds,Ln="__reactContainer$"+ds,Fy="__reactEvents$"+ds,kC="__reactListeners$"+ds,jC="__reactHandles$"+ds;function Qi(e){var t=e[nn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ln]||r[nn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Gx(e);e!==null;){if(r=e[nn])return r;e=Gx(e)}return t}e=r,r=e.parentNode}return null}function Tu(e){return e=e[nn]||e[Ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function Dd(e){return e[Nl]||null}var By=[],Za=-1;function Ii(e){return{current:e}}function Fe(e){0>Za||(e.current=By[Za],By[Za]=null,Za--)}function Me(e,t){Za++,By[Za]=e.current,e.current=t}var Ci={},Ct=Ii(Ci),Qt=Ii(!1),va=Ci;function Co(e,t){var r=e.type.contextTypes;if(!r)return Ci;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 Zt(e){return e=e.childContextTypes,e!=null}function nf(){Fe(Qt),Fe(Ct)}function Xx(e,t,r){if(Ct.current!==Ci)throw Error(q(168));Me(Ct,t),Me(Qt,r)}function BP(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,dT(e)||"Unknown",i));return Ke({},r,n)}function af(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,va=Ct.current,Me(Ct,e),Me(Qt,Qt.current),!0}function Yx(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=BP(e,t,va),n.__reactInternalMemoizedMergedChildContext=e,Fe(Qt),Fe(Ct),Me(Ct,e)):Fe(Qt),Me(Qt,r)}var An=null,Rd=!1,wp=!1;function zP(e){An===null?An=[e]:An.push(e)}function EC(e){Rd=!0,zP(e)}function Di(){if(!wp&&An!==null){wp=!0;var e=0,t=_e;try{var r=An;for(_e=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}An=null,Rd=!1}catch(i){throw An!==null&&(An=An.slice(e+1)),dP(ig,Di),i}finally{_e=t,wp=!1}}return null}var Ja=[],eo=0,of=null,sf=0,br=[],wr=0,ga=null,jn=1,En="";function Hi(e,t){Ja[eo++]=sf,Ja[eo++]=of,of=e,sf=t}function UP(e,t,r){br[wr++]=jn,br[wr++]=En,br[wr++]=ga,ga=e;var n=jn;e=En;var i=32-Hr(n)-1;n&=~(1<<i),r+=1;var a=32-Hr(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,jn=1<<32-Hr(t)+i|r<<i|n,En=a+e}else jn=1<<a|r<<i|n,En=e}function hg(e){e.return!==null&&(Hi(e,1),UP(e,1,0))}function pg(e){for(;e===of;)of=Ja[--eo],Ja[eo]=null,sf=Ja[--eo],Ja[eo]=null;for(;e===ga;)ga=br[--wr],br[wr]=null,En=br[--wr],br[wr]=null,jn=br[--wr],br[wr]=null}var lr=null,sr=null,ze=!1,zr=null;function VP(e,t){var r=_r(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 Qx(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,lr=e,sr=Oi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lr=e,sr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=ga!==null?{id:jn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=_r(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,lr=e,sr=null,!0):!1;default:return!1}}function zy(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Uy(e){if(ze){var t=sr;if(t){var r=t;if(!Qx(e,t)){if(zy(e))throw Error(q(418));t=Oi(r.nextSibling);var n=lr;t&&Qx(e,t)?VP(n,r):(e.flags=e.flags&-4097|2,ze=!1,lr=e)}}else{if(zy(e))throw Error(q(418));e.flags=e.flags&-4097|2,ze=!1,lr=e}}}function Zx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lr=e}function sc(e){if(e!==lr)return!1;if(!ze)return Zx(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ry(e.type,e.memoizedProps)),t&&(t=sr)){if(zy(e))throw WP(),Error(q(418));for(;t;)VP(e,t),t=Oi(t.nextSibling)}if(Zx(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){sr=Oi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}sr=null}}else sr=lr?Oi(e.stateNode.nextSibling):null;return!0}function WP(){for(var e=sr;e;)e=Oi(e.nextSibling)}function No(){sr=lr=null,ze=!1}function yg(e){zr===null?zr=[e]:zr.push(e)}var $C=Hn.ReactCurrentBatchConfig;function Ds(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 lc(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jx(e){var t=e._init;return t(e._payload)}function HP(e){function t(x,m){if(e){var v=x.deletions;v===null?(x.deletions=[m],x.flags|=16):v.push(m)}}function r(x,m){if(!e)return null;for(;m!==null;)t(x,m),m=m.sibling;return null}function n(x,m){for(x=new Map;m!==null;)m.key!==null?x.set(m.key,m):x.set(m.index,m),m=m.sibling;return x}function i(x,m){return x=ki(x,m),x.index=0,x.sibling=null,x}function a(x,m,v){return x.index=v,e?(v=x.alternate,v!==null?(v=v.index,v<m?(x.flags|=2,m):v):(x.flags|=2,m)):(x.flags|=1048576,m)}function o(x){return e&&x.alternate===null&&(x.flags|=2),x}function s(x,m,v,O){return m===null||m.tag!==6?(m=jp(v,x.mode,O),m.return=x,m):(m=i(m,v),m.return=x,m)}function l(x,m,v,O){var w=v.type;return w===Ka?f(x,m,v.props.children,O,v.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ni&&Jx(w)===m.type)?(O=i(m,v.props),O.ref=Ds(x,m,v),O.return=x,O):(O=Uc(v.type,v.key,v.props,null,x.mode,O),O.ref=Ds(x,m,v),O.return=x,O)}function u(x,m,v,O){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Ep(v,x.mode,O),m.return=x,m):(m=i(m,v.children||[]),m.return=x,m)}function f(x,m,v,O,w){return m===null||m.tag!==7?(m=ha(v,x.mode,O,w),m.return=x,m):(m=i(m,v),m.return=x,m)}function c(x,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=jp(""+m,x.mode,v),m.return=x,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qu:return v=Uc(m.type,m.key,m.props,null,x.mode,v),v.ref=Ds(x,null,m),v.return=x,v;case qa:return m=Ep(m,x.mode,v),m.return=x,m;case ni:var O=m._init;return c(x,O(m._payload),v)}if(Js(m)||Ts(m))return m=ha(m,x.mode,v,null),m.return=x,m;lc(x,m)}return null}function d(x,m,v,O){var w=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:s(x,m,""+v,O);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Qu:return v.key===w?l(x,m,v,O):null;case qa:return v.key===w?u(x,m,v,O):null;case ni:return w=v._init,d(x,m,w(v._payload),O)}if(Js(v)||Ts(v))return w!==null?null:f(x,m,v,O,null);lc(x,v)}return null}function h(x,m,v,O,w){if(typeof O=="string"&&O!==""||typeof O=="number")return x=x.get(v)||null,s(m,x,""+O,w);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Qu:return x=x.get(O.key===null?v:O.key)||null,l(m,x,O,w);case qa:return x=x.get(O.key===null?v:O.key)||null,u(m,x,O,w);case ni:var S=O._init;return h(x,m,v,S(O._payload),w)}if(Js(O)||Ts(O))return x=x.get(v)||null,f(m,x,O,w,null);lc(m,O)}return null}function y(x,m,v,O){for(var w=null,S=null,_=m,P=m=0,A=null;_!==null&&P<v.length;P++){_.index>P?(A=_,_=null):A=_.sibling;var C=d(x,_,v[P],O);if(C===null){_===null&&(_=A);break}e&&_&&C.alternate===null&&t(x,_),m=a(C,m,P),S===null?w=C:S.sibling=C,S=C,_=A}if(P===v.length)return r(x,_),ze&&Hi(x,P),w;if(_===null){for(;P<v.length;P++)_=c(x,v[P],O),_!==null&&(m=a(_,m,P),S===null?w=_:S.sibling=_,S=_);return ze&&Hi(x,P),w}for(_=n(x,_);P<v.length;P++)A=h(_,x,P,v[P],O),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?P:A.key),m=a(A,m,P),S===null?w=A:S.sibling=A,S=A);return e&&_.forEach(function(E){return t(x,E)}),ze&&Hi(x,P),w}function p(x,m,v,O){var w=Ts(v);if(typeof w!="function")throw Error(q(150));if(v=w.call(v),v==null)throw Error(q(151));for(var S=w=null,_=m,P=m=0,A=null,C=v.next();_!==null&&!C.done;P++,C=v.next()){_.index>P?(A=_,_=null):A=_.sibling;var E=d(x,_,C.value,O);if(E===null){_===null&&(_=A);break}e&&_&&E.alternate===null&&t(x,_),m=a(E,m,P),S===null?w=E:S.sibling=E,S=E,_=A}if(C.done)return r(x,_),ze&&Hi(x,P),w;if(_===null){for(;!C.done;P++,C=v.next())C=c(x,C.value,O),C!==null&&(m=a(C,m,P),S===null?w=C:S.sibling=C,S=C);return ze&&Hi(x,P),w}for(_=n(x,_);!C.done;P++,C=v.next())C=h(_,x,P,C.value,O),C!==null&&(e&&C.alternate!==null&&_.delete(C.key===null?P:C.key),m=a(C,m,P),S===null?w=C:S.sibling=C,S=C);return e&&_.forEach(function(T){return t(x,T)}),ze&&Hi(x,P),w}function b(x,m,v,O){if(typeof v=="object"&&v!==null&&v.type===Ka&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Qu:e:{for(var w=v.key,S=m;S!==null;){if(S.key===w){if(w=v.type,w===Ka){if(S.tag===7){r(x,S.sibling),m=i(S,v.props.children),m.return=x,x=m;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ni&&Jx(w)===S.type){r(x,S.sibling),m=i(S,v.props),m.ref=Ds(x,S,v),m.return=x,x=m;break e}r(x,S);break}else t(x,S);S=S.sibling}v.type===Ka?(m=ha(v.props.children,x.mode,O,v.key),m.return=x,x=m):(O=Uc(v.type,v.key,v.props,null,x.mode,O),O.ref=Ds(x,m,v),O.return=x,x=O)}return o(x);case qa:e:{for(S=v.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){r(x,m.sibling),m=i(m,v.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Ep(v,x.mode,O),m.return=x,x=m}return o(x);case ni:return S=v._init,b(x,m,S(v._payload),O)}if(Js(v))return y(x,m,v,O);if(Ts(v))return p(x,m,v,O);lc(x,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(r(x,m.sibling),m=i(m,v),m.return=x,x=m):(r(x,m),m=jp(v,x.mode,O),m.return=x,x=m),o(x)):r(x,m)}return b}var Mo=HP(!0),qP=HP(!1),lf=Ii(null),uf=null,to=null,mg=null;function vg(){mg=to=uf=null}function gg(e){var t=lf.current;Fe(lf),e._currentValue=t}function Vy(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 mo(e,t){uf=e,mg=to=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xt=!0),e.firstContext=null)}function kr(e){var t=e._currentValue;if(mg!==e)if(e={context:e,memoizedValue:t,next:null},to===null){if(uf===null)throw Error(q(308));to=e,uf.dependencies={lanes:0,firstContext:e}}else to=to.next=e;return t}var Zi=null;function xg(e){Zi===null?Zi=[e]:Zi.push(e)}function KP(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,xg(t)):(r.next=i.next,i.next=r),t.interleaved=r,Fn(e,n)}function Fn(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 ii=!1;function bg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function GP(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 Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ve&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Fn(e,r)}return i=n.interleaved,i===null?(t.next=t,xg(n)):(t.next=i.next,i.next=t),n.interleaved=t,Fn(e,r)}function Dc(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,ag(e,r)}}function eb(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 cf(e,t,r,n){var i=e.updateQueue;ii=!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,h=s.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,p=s;switch(d=t,h=r,p.tag){case 1:if(y=p.payload,typeof y=="function"){c=y.call(h,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,d=typeof y=="function"?y.call(h,c,d):y,d==null)break e;c=Ke({},c,d);break e;case 2:ii=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,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(1);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);ba|=o,e.lanes=o,e.memoizedState=c}}function tb(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 Cu={},ln=Ii(Cu),Ml=Ii(Cu),Il=Ii(Cu);function Ji(e){if(e===Cu)throw Error(q(174));return e}function wg(e,t){switch(Me(Il,t),Me(Ml,e),Me(ln,Cu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oy(t,e)}Fe(ln),Me(ln,t)}function Io(){Fe(ln),Fe(Ml),Fe(Il)}function XP(e){Ji(Il.current);var t=Ji(ln.current),r=Oy(t,e.type);t!==r&&(Me(Ml,e),Me(ln,r))}function Sg(e){Ml.current===e&&(Fe(ln),Fe(Ml))}var We=Ii(0);function ff(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 Sp=[];function Og(){for(var e=0;e<Sp.length;e++)Sp[e]._workInProgressVersionPrimary=null;Sp.length=0}var Rc=Hn.ReactCurrentDispatcher,Op=Hn.ReactCurrentBatchConfig,xa=0,He=null,st=null,ht=null,df=!1,ll=!1,Dl=0,TC=0;function Pt(){throw Error(q(321))}function _g(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Gr(e[r],t[r]))return!1;return!0}function Pg(e,t,r,n,i,a){if(xa=a,He=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rc.current=e===null||e.memoizedState===null?IC:DC,e=r(n,i),ll){a=0;do{if(ll=!1,Dl=0,25<=a)throw Error(q(301));a+=1,ht=st=null,t.updateQueue=null,Rc.current=RC,e=r(n,i)}while(ll)}if(Rc.current=hf,t=st!==null&&st.next!==null,xa=0,ht=st=He=null,df=!1,t)throw Error(q(300));return e}function Ag(){var e=Dl!==0;return Dl=0,e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?He.memoizedState=ht=e:ht=ht.next=e,ht}function jr(){if(st===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=st.next;var t=ht===null?He.memoizedState:ht.next;if(t!==null)ht=t,st=e;else{if(e===null)throw Error(q(310));st=e,e={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},ht===null?He.memoizedState=ht=e:ht=ht.next=e}return ht}function Rl(e,t){return typeof t=="function"?t(e):t}function _p(e){var t=jr(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=st,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((xa&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,He.lanes|=f,ba|=f}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Gr(n,t.memoizedState)||(Xt=!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,He.lanes|=a,ba|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Pp(e){var t=jr(),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);Gr(a,t.memoizedState)||(Xt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function YP(){}function QP(e,t){var r=He,n=jr(),i=t(),a=!Gr(n.memoizedState,i);if(a&&(n.memoizedState=i,Xt=!0),n=n.queue,kg(eA.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||ht!==null&&ht.memoizedState.tag&1){if(r.flags|=2048,Ll(9,JP.bind(null,r,n,i,t),void 0,null),yt===null)throw Error(q(349));xa&30||ZP(r,t,i)}return i}function ZP(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function JP(e,t,r,n){t.value=r,t.getSnapshot=n,tA(t)&&rA(e)}function eA(e,t,r){return r(function(){tA(t)&&rA(e)})}function tA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Gr(e,r)}catch{return!0}}function rA(e){var t=Fn(e,1);t!==null&&qr(t,e,1,-1)}function rb(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:Rl,lastRenderedState:e},t.queue=e,e=e.dispatch=MC.bind(null,He,e),[t.memoizedState,e]}function Ll(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=He.updateQueue,t===null?(t={lastEffect:null,stores:null},He.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 nA(){return jr().memoizedState}function Lc(e,t,r,n){var i=Qr();He.flags|=e,i.memoizedState=Ll(1|t,r,void 0,n===void 0?null:n)}function Ld(e,t,r,n){var i=jr();n=n===void 0?null:n;var a=void 0;if(st!==null){var o=st.memoizedState;if(a=o.destroy,n!==null&&_g(n,o.deps)){i.memoizedState=Ll(t,r,a,n);return}}He.flags|=e,i.memoizedState=Ll(1|t,r,a,n)}function nb(e,t){return Lc(8390656,8,e,t)}function kg(e,t){return Ld(2048,8,e,t)}function iA(e,t){return Ld(4,2,e,t)}function aA(e,t){return Ld(4,4,e,t)}function oA(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 sA(e,t,r){return r=r!=null?r.concat([e]):null,Ld(4,4,oA.bind(null,t,e),r)}function jg(){}function lA(e,t){var r=jr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_g(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function uA(e,t){var r=jr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_g(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function cA(e,t,r){return xa&21?(Gr(r,t)||(r=yP(),He.lanes|=r,ba|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xt=!0),e.memoizedState=r)}function CC(e,t){var r=_e;_e=r!==0&&4>r?r:4,e(!0);var n=Op.transition;Op.transition={};try{e(!1),t()}finally{_e=r,Op.transition=n}}function fA(){return jr().memoizedState}function NC(e,t,r){var n=Ai(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},dA(e))hA(t,r);else if(r=KP(e,t,r,n),r!==null){var i=Ut();qr(r,e,n,i),pA(r,t,n)}}function MC(e,t,r){var n=Ai(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(dA(e))hA(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,Gr(s,o)){var l=t.interleaved;l===null?(i.next=i,xg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=KP(e,t,i,n),r!==null&&(i=Ut(),qr(r,e,n,i),pA(r,t,n))}}function dA(e){var t=e.alternate;return e===He||t!==null&&t===He}function hA(e,t){ll=df=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pA(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ag(e,r)}}var hf={readContext:kr,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},IC={readContext:kr,useCallback:function(e,t){return Qr().memoizedState=[e,t===void 0?null:t],e},useContext:kr,useEffect:nb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Lc(4194308,4,oA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Lc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lc(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=NC.bind(null,He,e),[n.memoizedState,e]},useRef:function(e){var t=Qr();return e={current:e},t.memoizedState=e},useState:rb,useDebugValue:jg,useDeferredValue:function(e){return Qr().memoizedState=e},useTransition:function(){var e=rb(!1),t=e[0];return e=CC.bind(null,e[1]),Qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=He,i=Qr();if(ze){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),yt===null)throw Error(q(349));xa&30||ZP(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,nb(eA.bind(null,n,a,e),[e]),n.flags|=2048,Ll(9,JP.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Qr(),t=yt.identifierPrefix;if(ze){var r=En,n=jn;r=(n&~(1<<32-Hr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Dl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=TC++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DC={readContext:kr,useCallback:lA,useContext:kr,useEffect:kg,useImperativeHandle:sA,useInsertionEffect:iA,useLayoutEffect:aA,useMemo:uA,useReducer:_p,useRef:nA,useState:function(){return _p(Rl)},useDebugValue:jg,useDeferredValue:function(e){var t=jr();return cA(t,st.memoizedState,e)},useTransition:function(){var e=_p(Rl)[0],t=jr().memoizedState;return[e,t]},useMutableSource:YP,useSyncExternalStore:QP,useId:fA,unstable_isNewReconciler:!1},RC={readContext:kr,useCallback:lA,useContext:kr,useEffect:kg,useImperativeHandle:sA,useInsertionEffect:iA,useLayoutEffect:aA,useMemo:uA,useReducer:Pp,useRef:nA,useState:function(){return Pp(Rl)},useDebugValue:jg,useDeferredValue:function(e){var t=jr();return st===null?t.memoizedState=e:cA(t,st.memoizedState,e)},useTransition:function(){var e=Pp(Rl)[0],t=jr().memoizedState;return[e,t]},useMutableSource:YP,useSyncExternalStore:QP,useId:fA,unstable_isNewReconciler:!1};function Mr(e,t){if(e&&e.defaultProps){t=Ke({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Wy(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ke({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Fd={isMounted:function(e){return(e=e._reactInternals)?$a(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ut(),i=Ai(e),a=Nn(n,i);a.payload=t,r!=null&&(a.callback=r),t=_i(e,a,i),t!==null&&(qr(t,e,i,n),Dc(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ut(),i=Ai(e),a=Nn(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=_i(e,a,i),t!==null&&(qr(t,e,i,n),Dc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ut(),n=Ai(e),i=Nn(r,n);i.tag=2,t!=null&&(i.callback=t),t=_i(e,i,n),t!==null&&(qr(t,e,n,r),Dc(t,e,n))}};function ib(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?!$l(r,n)||!$l(i,a):!0}function yA(e,t,r){var n=!1,i=Ci,a=t.contextType;return typeof a=="object"&&a!==null?a=kr(a):(i=Zt(t)?va:Ct.current,n=t.contextTypes,a=(n=n!=null)?Co(e,i):Ci),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ab(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&&Fd.enqueueReplaceState(t,t.state,null)}function Hy(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},bg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=kr(a):(a=Zt(t)?va:Ct.current,i.context=Co(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Wy(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&&Fd.enqueueReplaceState(i,i.state,null),cf(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Do(e,t){try{var r="",n=t;do r+=fT(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 Ap(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function qy(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var LC=typeof WeakMap=="function"?WeakMap:Map;function mA(e,t,r){r=Nn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){yf||(yf=!0,rm=n),qy(e,t)},r}function vA(e,t,r){r=Nn(-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(){qy(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){qy(e,t),typeof n!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function ob(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new LC;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=ZC.bind(null,e,t,r),t.then(e,e))}function sb(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 lb(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=Nn(-1,1),t.tag=2,_i(r,t,1))),r.lanes|=1),e)}var FC=Hn.ReactCurrentOwner,Xt=!1;function It(e,t,r,n){t.child=e===null?qP(t,null,r,n):Mo(t,e.child,r,n)}function ub(e,t,r,n,i){r=r.render;var a=t.ref;return mo(t,i),n=Pg(e,t,r,n,a,i),r=Ag(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bn(e,t,i)):(ze&&r&&hg(t),t.flags|=1,It(e,t,n,i),t.child)}function cb(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!Dg(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,gA(e,t,a,n,i)):(e=Uc(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:$l,r(o,n)&&e.ref===t.ref)return Bn(e,t,i)}return t.flags|=1,e=ki(a,n),e.ref=t.ref,e.return=t,t.child=e}function gA(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if($l(a,n)&&e.ref===t.ref)if(Xt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Xt=!0);else return t.lanes=e.lanes,Bn(e,t,i)}return Ky(e,t,r,n,i)}function xA(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},Me(no,nr),nr|=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,Me(no,nr),nr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Me(no,nr),nr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Me(no,nr),nr|=n;return It(e,t,i,r),t.child}function bA(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ky(e,t,r,n,i){var a=Zt(r)?va:Ct.current;return a=Co(t,a),mo(t,i),r=Pg(e,t,r,n,a,i),n=Ag(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bn(e,t,i)):(ze&&n&&hg(t),t.flags|=1,It(e,t,r,i),t.child)}function fb(e,t,r,n,i){if(Zt(r)){var a=!0;af(t)}else a=!1;if(mo(t,i),t.stateNode===null)Fc(e,t),yA(t,r,n),Hy(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=kr(u):(u=Zt(r)?va:Ct.current,u=Co(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)&&ab(t,o,n,u),ii=!1;var d=t.memoizedState;o.state=d,cf(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Qt.current||ii?(typeof f=="function"&&(Wy(t,r,f,n),l=t.memoizedState),(s=ii||ib(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,GP(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Mr(t.type,s),o.props=u,c=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=kr(l):(l=Zt(r)?va:Ct.current,l=Co(t,l));var h=r.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==l)&&ab(t,o,n,l),ii=!1,d=t.memoizedState,o.state=d,cf(t,n,o,i);var y=t.memoizedState;s!==c||d!==y||Qt.current||ii?(typeof h=="function"&&(Wy(t,r,h,n),y=t.memoizedState),(u=ii||ib(t,r,u,n,d,y,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,y,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=y),o.props=n,o.state=y,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 Gy(e,t,r,n,a,i)}function Gy(e,t,r,n,i,a){bA(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&Yx(t,r,!1),Bn(e,t,a);n=t.stateNode,FC.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Mo(t,e.child,null,a),t.child=Mo(t,null,s,a)):It(e,t,s,a),t.memoizedState=n.state,i&&Yx(t,r,!0),t.child}function wA(e){var t=e.stateNode;t.pendingContext?Xx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xx(e,t.context,!1),wg(e,t.containerInfo)}function db(e,t,r,n,i){return No(),yg(i),t.flags|=256,It(e,t,r,n),t.child}var Xy={dehydrated:null,treeContext:null,retryLane:0};function Yy(e){return{baseLanes:e,cachePool:null,transitions:null}}function SA(e,t,r){var n=t.pendingProps,i=We.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),Me(We,i&1),e===null)return Uy(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=Ud(o,n,0,null),e=ha(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Yy(r),t.memoizedState=Xy,e):Eg(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return BC(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=ki(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=ki(s,a):(a=ha(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?Yy(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=Xy,n}return a=e.child,e=a.sibling,n=ki(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 Eg(e,t){return t=Ud({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uc(e,t,r,n){return n!==null&&yg(n),Mo(t,e.child,null,r),e=Eg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BC(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Ap(Error(q(422))),uc(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Ud({mode:"visible",children:n.children},i,0,null),a=ha(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Mo(t,e.child,null,o),t.child.memoizedState=Yy(o),t.memoizedState=Xy,a);if(!(t.mode&1))return uc(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=Ap(a,n,void 0),uc(e,t,o,n)}if(s=(o&e.childLanes)!==0,Xt||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,Fn(e,i),qr(n,e,i,-1))}return Ig(),n=Ap(Error(q(421))),uc(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=JC.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,sr=Oi(i.nextSibling),lr=t,ze=!0,zr=null,e!==null&&(br[wr++]=jn,br[wr++]=En,br[wr++]=ga,jn=e.id,En=e.overflow,ga=t),t=Eg(t,n.children),t.flags|=4096,t)}function hb(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Vy(e.return,t,r)}function kp(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 OA(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(It(e,t,n.children,r),n=We.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&&hb(e,r,t);else if(e.tag===19)hb(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(Me(We,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&&ff(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),kp(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&&ff(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}kp(t,!0,r,null,a);break;case"together":kp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ba|=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=ki(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ki(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function zC(e,t,r){switch(t.tag){case 3:wA(t),No();break;case 5:XP(t);break;case 1:Zt(t.type)&&af(t);break;case 4:wg(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Me(lf,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Me(We,We.current&1),t.flags|=128,null):r&t.child.childLanes?SA(e,t,r):(Me(We,We.current&1),e=Bn(e,t,r),e!==null?e.sibling:null);Me(We,We.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return OA(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Me(We,We.current),n)break;return null;case 22:case 23:return t.lanes=0,xA(e,t,r)}return Bn(e,t,r)}var _A,Qy,PA,AA;_A=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}};Qy=function(){};PA=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ji(ln.current);var a=null;switch(r){case"input":i=xy(e,i),n=xy(e,n),a=[];break;case"select":i=Ke({},i,{value:void 0}),n=Ke({},n,{value:void 0}),a=[];break;case"textarea":i=Sy(e,i),n=Sy(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=rf)}_y(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"&&(Ol.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"&&(Ol.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&De("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)}};AA=function(e,t,r,n){r!==n&&(t.flags|=4)};function Rs(e,t){if(!ze)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 At(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 UC(e,t,r){var n=t.pendingProps;switch(pg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return Zt(t.type)&&nf(),At(t),null;case 3:return n=t.stateNode,Io(),Fe(Qt),Fe(Ct),Og(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(sc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zr!==null&&(am(zr),zr=null))),Qy(e,t),At(t),null;case 5:Sg(t);var i=Ji(Il.current);if(r=t.type,e!==null&&t.stateNode!=null)PA(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 At(t),null}if(e=Ji(ln.current),sc(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[nn]=t,n[Nl]=a,e=(t.mode&1)!==0,r){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(i=0;i<tl.length;i++)De(tl[i],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":Sx(n,a),De("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},De("invalid",n);break;case"textarea":_x(n,a),De("invalid",n)}_y(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&&oc(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&oc(n.textContent,s,e),i=["children",""+s]):Ol.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&De("scroll",n)}switch(r){case"input":Zu(n),Ox(n,a,!0);break;case"textarea":Zu(n),Px(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=rf)}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=eP(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[nn]=t,e[Nl]=n,_A(e,t,!1,!1),t.stateNode=e;e:{switch(o=Py(r,n),r){case"dialog":De("cancel",e),De("close",e),i=n;break;case"iframe":case"object":case"embed":De("load",e),i=n;break;case"video":case"audio":for(i=0;i<tl.length;i++)De(tl[i],e);i=n;break;case"source":De("error",e),i=n;break;case"img":case"image":case"link":De("error",e),De("load",e),i=n;break;case"details":De("toggle",e),i=n;break;case"input":Sx(e,n),i=xy(e,n),De("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ke({},n,{value:void 0}),De("invalid",e);break;case"textarea":_x(e,n),i=Sy(e,n),De("invalid",e);break;default:i=n}_y(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?nP(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&tP(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&_l(e,l):typeof l=="number"&&_l(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ol.hasOwnProperty(a)?l!=null&&a==="onScroll"&&De("scroll",e):l!=null&&Jv(e,a,l,o))}switch(r){case"input":Zu(e),Ox(e,n,!1);break;case"textarea":Zu(e),Px(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ti(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?fo(e,!!n.multiple,a,!1):n.defaultValue!=null&&fo(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=rf)}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 At(t),null;case 6:if(e&&t.stateNode!=null)AA(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(q(166));if(r=Ji(Il.current),Ji(ln.current),sc(t)){if(n=t.stateNode,r=t.memoizedProps,n[nn]=t,(a=n.nodeValue!==r)&&(e=lr,e!==null))switch(e.tag){case 3:oc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&oc(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[nn]=t,t.stateNode=n}return At(t),null;case 13:if(Fe(We),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&sr!==null&&t.mode&1&&!(t.flags&128))WP(),No(),t.flags|=98560,a=!1;else if(a=sc(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[nn]=t}else No(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;At(t),a=!1}else zr!==null&&(am(zr),zr=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||We.current&1?ut===0&&(ut=3):Ig())),t.updateQueue!==null&&(t.flags|=4),At(t),null);case 4:return Io(),Qy(e,t),e===null&&Tl(t.stateNode.containerInfo),At(t),null;case 10:return gg(t.type._context),At(t),null;case 17:return Zt(t.type)&&nf(),At(t),null;case 19:if(Fe(We),a=t.memoizedState,a===null)return At(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Rs(a,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ff(e),o!==null){for(t.flags|=128,Rs(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 Me(We,We.current&1|2),t.child}e=e.sibling}a.tail!==null&&Je()>Ro&&(t.flags|=128,n=!0,Rs(a,!1),t.lanes=4194304)}else{if(!n)if(e=ff(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ze)return At(t),null}else 2*Je()-a.renderingStartTime>Ro&&r!==1073741824&&(t.flags|=128,n=!0,Rs(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=Je(),t.sibling=null,r=We.current,Me(We,n?r&1|2:r&1),t):(At(t),null);case 22:case 23:return Mg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nr&1073741824&&(At(t),t.subtreeFlags&6&&(t.flags|=8192)):At(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function VC(e,t){switch(pg(t),t.tag){case 1:return Zt(t.type)&&nf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Io(),Fe(Qt),Fe(Ct),Og(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sg(t),null;case 13:if(Fe(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(We),null;case 4:return Io(),null;case 10:return gg(t.type._context),null;case 22:case 23:return Mg(),null;case 24:return null;default:return null}}var cc=!1,$t=!1,WC=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ro(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ye(e,t,n)}else r.current=null}function Zy(e,t,r){try{r()}catch(n){Ye(e,t,n)}}var pb=!1;function HC(e,t){if(Iy=Jc,e=TP(),dg(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 h;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),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++f===n&&(l=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dy={focusedElem:e,selectionRange:r},Jc=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?p:Mr(t.type,p),b);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(O){Ye(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return y=pb,pb=!1,y}function ul(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&&Zy(t,r,a)}i=i.next}while(i!==n)}}function Bd(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 Jy(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 kA(e){var t=e.alternate;t!==null&&(e.alternate=null,kA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nn],delete t[Nl],delete t[Fy],delete t[kC],delete t[jC])),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 jA(e){return e.tag===5||e.tag===3||e.tag===4}function yb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jA(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 em(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=rf));else if(n!==4&&(e=e.child,e!==null))for(em(e,t,r),e=e.sibling;e!==null;)em(e,t,r),e=e.sibling}function tm(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(tm(e,t,r),e=e.sibling;e!==null;)tm(e,t,r),e=e.sibling}var xt=null,Lr=!1;function Jn(e,t,r){for(r=r.child;r!==null;)EA(e,t,r),r=r.sibling}function EA(e,t,r){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(Cd,r)}catch{}switch(r.tag){case 5:$t||ro(r,t);case 6:var n=xt,i=Lr;xt=null,Jn(e,t,r),xt=n,Lr=i,xt!==null&&(Lr?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Lr?(e=xt,r=r.stateNode,e.nodeType===8?bp(e.parentNode,r):e.nodeType===1&&bp(e,r),jl(e)):bp(xt,r.stateNode));break;case 4:n=xt,i=Lr,xt=r.stateNode.containerInfo,Lr=!0,Jn(e,t,r),xt=n,Lr=i;break;case 0:case 11:case 14:case 15:if(!$t&&(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)&&Zy(r,t,o),i=i.next}while(i!==n)}Jn(e,t,r);break;case 1:if(!$t&&(ro(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ye(r,t,s)}Jn(e,t,r);break;case 21:Jn(e,t,r);break;case 22:r.mode&1?($t=(n=$t)||r.memoizedState!==null,Jn(e,t,r),$t=n):Jn(e,t,r);break;default:Jn(e,t,r)}}function mb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new WC),t.forEach(function(n){var i=eN.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Cr(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,Lr=!1;break e;case 3:xt=s.stateNode.containerInfo,Lr=!0;break e;case 4:xt=s.stateNode.containerInfo,Lr=!0;break e}s=s.return}if(xt===null)throw Error(q(160));EA(a,o,i),xt=null,Lr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ye(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$A(t,e),t=t.sibling}function $A(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cr(t,e),Yr(e),n&4){try{ul(3,e,e.return),Bd(3,e)}catch(p){Ye(e,e.return,p)}try{ul(5,e,e.return)}catch(p){Ye(e,e.return,p)}}break;case 1:Cr(t,e),Yr(e),n&512&&r!==null&&ro(r,r.return);break;case 5:if(Cr(t,e),Yr(e),n&512&&r!==null&&ro(r,r.return),e.flags&32){var i=e.stateNode;try{_l(i,"")}catch(p){Ye(e,e.return,p)}}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&&Z_(i,a),Py(s,o);var u=Py(s,a);for(o=0;o<l.length;o+=2){var f=l[o],c=l[o+1];f==="style"?nP(i,c):f==="dangerouslySetInnerHTML"?tP(i,c):f==="children"?_l(i,c):Jv(i,f,c,u)}switch(s){case"input":by(i,a);break;case"textarea":J_(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?fo(i,!!a.multiple,h,!1):d!==!!a.multiple&&(a.defaultValue!=null?fo(i,!!a.multiple,a.defaultValue,!0):fo(i,!!a.multiple,a.multiple?[]:"",!1))}i[Nl]=a}catch(p){Ye(e,e.return,p)}}break;case 6:if(Cr(t,e),Yr(e),n&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(p){Ye(e,e.return,p)}}break;case 3:if(Cr(t,e),Yr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{jl(t.containerInfo)}catch(p){Ye(e,e.return,p)}break;case 4:Cr(t,e),Yr(e);break;case 13:Cr(t,e),Yr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Cg=Je())),n&4&&mb(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?($t=(u=$t)||f,Cr(t,e),$t=u):Cr(t,e),Yr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(ee=e,f=e.child;f!==null;){for(c=ee=f;ee!==null;){switch(d=ee,h=d.child,d.tag){case 0:case 11:case 14:case 15:ul(4,d,d.return);break;case 1:ro(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(p){Ye(n,r,p)}}break;case 5:ro(d,d.return);break;case 22:if(d.memoizedState!==null){gb(c);continue}}h!==null?(h.return=d,ee=h):gb(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=rP("display",o))}catch(p){Ye(e,e.return,p)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(p){Ye(e,e.return,p)}}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:Cr(t,e),Yr(e),n&4&&mb(e);break;case 21:break;default:Cr(t,e),Yr(e)}}function Yr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(jA(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&&(_l(i,""),n.flags&=-33);var a=yb(e);tm(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=yb(e);em(e,s,o);break;default:throw Error(q(161))}}catch(l){Ye(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qC(e,t,r){ee=e,TA(e)}function TA(e,t,r){for(var n=(e.mode&1)!==0;ee!==null;){var i=ee,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||cc;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||$t;s=cc;var u=$t;if(cc=o,($t=l)&&!u)for(ee=i;ee!==null;)o=ee,l=o.child,o.tag===22&&o.memoizedState!==null?xb(i):l!==null?(l.return=o,ee=l):xb(i);for(;a!==null;)ee=a,TA(a),a=a.sibling;ee=i,cc=s,$t=u}vb(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ee=a):vb(e)}}function vb(e){for(;ee!==null;){var t=ee;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$t||Bd(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!$t)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Mr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&tb(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}tb(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&&jl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}$t||t.flags&512&&Jy(t)}catch(d){Ye(t,t.return,d)}}if(t===e){ee=null;break}if(r=t.sibling,r!==null){r.return=t.return,ee=r;break}ee=t.return}}function gb(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ee=r;break}ee=t.return}}function xb(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Bd(4,t)}catch(l){Ye(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ye(t,i,l)}}var a=t.return;try{Jy(t)}catch(l){Ye(t,a,l)}break;case 5:var o=t.return;try{Jy(t)}catch(l){Ye(t,o,l)}}}catch(l){Ye(t,t.return,l)}if(t===e){ee=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ee=s;break}ee=t.return}}var KC=Math.ceil,pf=Hn.ReactCurrentDispatcher,$g=Hn.ReactCurrentOwner,Ar=Hn.ReactCurrentBatchConfig,ve=0,yt=null,nt=null,bt=0,nr=0,no=Ii(0),ut=0,Fl=null,ba=0,zd=0,Tg=0,cl=null,Kt=null,Cg=0,Ro=1/0,_n=null,yf=!1,rm=null,Pi=null,fc=!1,vi=null,mf=0,fl=0,nm=null,Bc=-1,zc=0;function Ut(){return ve&6?Je():Bc!==-1?Bc:Bc=Je()}function Ai(e){return e.mode&1?ve&2&&bt!==0?bt&-bt:$C.transition!==null?(zc===0&&(zc=yP()),zc):(e=_e,e!==0||(e=window.event,e=e===void 0?16:SP(e.type)),e):1}function qr(e,t,r,n){if(50<fl)throw fl=0,nm=null,Error(q(185));Eu(e,r,n),(!(ve&2)||e!==yt)&&(e===yt&&(!(ve&2)&&(zd|=r),ut===4&&si(e,bt)),Jt(e,n),r===1&&ve===0&&!(t.mode&1)&&(Ro=Je()+500,Rd&&Di()))}function Jt(e,t){var r=e.callbackNode;$T(e,t);var n=Zc(e,e===yt?bt:0);if(n===0)r!==null&&jx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&jx(r),t===1)e.tag===0?EC(bb.bind(null,e)):zP(bb.bind(null,e)),PC(function(){!(ve&6)&&Di()}),r=null;else{switch(mP(n)){case 1:r=ig;break;case 4:r=hP;break;case 16:r=Qc;break;case 536870912:r=pP;break;default:r=Qc}r=FA(r,CA.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function CA(e,t){if(Bc=-1,zc=0,ve&6)throw Error(q(327));var r=e.callbackNode;if(vo()&&e.callbackNode!==r)return null;var n=Zc(e,e===yt?bt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=vf(e,n);else{t=n;var i=ve;ve|=2;var a=MA();(yt!==e||bt!==t)&&(_n=null,Ro=Je()+500,da(e,t));do try{YC();break}catch(s){NA(e,s)}while(1);vg(),pf.current=a,ve=i,nt!==null?t=0:(yt=null,bt=0,t=ut)}if(t!==0){if(t===2&&(i=$y(e),i!==0&&(n=i,t=im(e,i))),t===1)throw r=Fl,da(e,0),si(e,n),Jt(e,Je()),r;if(t===6)si(e,n);else{if(i=e.current.alternate,!(n&30)&&!GC(i)&&(t=vf(e,n),t===2&&(a=$y(e),a!==0&&(n=a,t=im(e,a))),t===1))throw r=Fl,da(e,0),si(e,n),Jt(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(q(345));case 2:qi(e,Kt,_n);break;case 3:if(si(e,n),(n&130023424)===n&&(t=Cg+500-Je(),10<t)){if(Zc(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Ut(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ly(qi.bind(null,e,Kt,_n),t);break}qi(e,Kt,_n);break;case 4:if(si(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Hr(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*KC(n/1960))-n,10<n){e.timeoutHandle=Ly(qi.bind(null,e,Kt,_n),n);break}qi(e,Kt,_n);break;case 5:qi(e,Kt,_n);break;default:throw Error(q(329))}}}return Jt(e,Je()),e.callbackNode===r?CA.bind(null,e):null}function im(e,t){var r=cl;return e.current.memoizedState.isDehydrated&&(da(e,t).flags|=256),e=vf(e,t),e!==2&&(t=Kt,Kt=r,t!==null&&am(t)),e}function am(e){Kt===null?Kt=e:Kt.push.apply(Kt,e)}function GC(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(!Gr(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 si(e,t){for(t&=~Tg,t&=~zd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Hr(t),n=1<<r;e[r]=-1,t&=~n}}function bb(e){if(ve&6)throw Error(q(327));vo();var t=Zc(e,0);if(!(t&1))return Jt(e,Je()),null;var r=vf(e,t);if(e.tag!==0&&r===2){var n=$y(e);n!==0&&(t=n,r=im(e,n))}if(r===1)throw r=Fl,da(e,0),si(e,t),Jt(e,Je()),r;if(r===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qi(e,Kt,_n),Jt(e,Je()),null}function Ng(e,t){var r=ve;ve|=1;try{return e(t)}finally{ve=r,ve===0&&(Ro=Je()+500,Rd&&Di())}}function wa(e){vi!==null&&vi.tag===0&&!(ve&6)&&vo();var t=ve;ve|=1;var r=Ar.transition,n=_e;try{if(Ar.transition=null,_e=1,e)return e()}finally{_e=n,Ar.transition=r,ve=t,!(ve&6)&&Di()}}function Mg(){nr=no.current,Fe(no)}function da(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,_C(r)),nt!==null)for(r=nt.return;r!==null;){var n=r;switch(pg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&nf();break;case 3:Io(),Fe(Qt),Fe(Ct),Og();break;case 5:Sg(n);break;case 4:Io();break;case 13:Fe(We);break;case 19:Fe(We);break;case 10:gg(n.type._context);break;case 22:case 23:Mg()}r=r.return}if(yt=e,nt=e=ki(e.current,null),bt=nr=t,ut=0,Fl=null,Tg=zd=ba=0,Kt=cl=null,Zi!==null){for(t=0;t<Zi.length;t++)if(r=Zi[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}Zi=null}return e}function NA(e,t){do{var r=nt;try{if(vg(),Rc.current=hf,df){for(var n=He.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}df=!1}if(xa=0,ht=st=He=null,ll=!1,Dl=0,$g.current=null,r===null||r.return===null){ut=1,Fl=t,nt=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=bt,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 h=sb(o);if(h!==null){h.flags&=-257,lb(h,o,s,a,t),h.mode&1&&ob(a,u,t),t=h,l=u;var y=t.updateQueue;if(y===null){var p=new Set;p.add(l),t.updateQueue=p}else y.add(l);break e}else{if(!(t&1)){ob(a,u,t),Ig();break e}l=Error(q(426))}}else if(ze&&s.mode&1){var b=sb(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),lb(b,o,s,a,t),yg(Do(l,s));break e}}a=l=Do(l,s),ut!==4&&(ut=2),cl===null?cl=[a]:cl.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var x=mA(a,l,t);eb(a,x);break e;case 1:s=l;var m=a.type,v=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Pi===null||!Pi.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t;var O=vA(a,s,t);eb(a,O);break e}}a=a.return}while(a!==null)}DA(r)}catch(w){t=w,nt===r&&r!==null&&(nt=r=r.return);continue}break}while(1)}function MA(){var e=pf.current;return pf.current=hf,e===null?hf:e}function Ig(){(ut===0||ut===3||ut===2)&&(ut=4),yt===null||!(ba&268435455)&&!(zd&268435455)||si(yt,bt)}function vf(e,t){var r=ve;ve|=2;var n=MA();(yt!==e||bt!==t)&&(_n=null,da(e,t));do try{XC();break}catch(i){NA(e,i)}while(1);if(vg(),ve=r,pf.current=n,nt!==null)throw Error(q(261));return yt=null,bt=0,ut}function XC(){for(;nt!==null;)IA(nt)}function YC(){for(;nt!==null&&!wT();)IA(nt)}function IA(e){var t=LA(e.alternate,e,nr);e.memoizedProps=e.pendingProps,t===null?DA(e):nt=t,$g.current=null}function DA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=VC(r,t),r!==null){r.flags&=32767,nt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,nt=null;return}}else if(r=UC(r,t,nr),r!==null){nt=r;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);ut===0&&(ut=5)}function qi(e,t,r){var n=_e,i=Ar.transition;try{Ar.transition=null,_e=1,QC(e,t,r,n)}finally{Ar.transition=i,_e=n}return null}function QC(e,t,r,n){do vo();while(vi!==null);if(ve&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(TT(e,a),e===yt&&(nt=yt=null,bt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||fc||(fc=!0,FA(Qc,function(){return vo(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Ar.transition,Ar.transition=null;var o=_e;_e=1;var s=ve;ve|=4,$g.current=null,HC(e,r),$A(r,e),vC(Dy),Jc=!!Iy,Dy=Iy=null,e.current=r,qC(r),ST(),ve=s,_e=o,Ar.transition=a}else e.current=r;if(fc&&(fc=!1,vi=e,mf=i),a=e.pendingLanes,a===0&&(Pi=null),PT(r.stateNode),Jt(e,Je()),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(yf)throw yf=!1,e=rm,rm=null,e;return mf&1&&e.tag!==0&&vo(),a=e.pendingLanes,a&1?e===nm?fl++:(fl=0,nm=e):fl=0,Di(),null}function vo(){if(vi!==null){var e=mP(mf),t=Ar.transition,r=_e;try{if(Ar.transition=null,_e=16>e?16:e,vi===null)var n=!1;else{if(e=vi,vi=null,mf=0,ve&6)throw Error(q(331));var i=ve;for(ve|=4,ee=e.current;ee!==null;){var a=ee,o=a.child;if(ee.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(ee=u;ee!==null;){var f=ee;switch(f.tag){case 0:case 11:case 15:ul(8,f,a)}var c=f.child;if(c!==null)c.return=f,ee=c;else for(;ee!==null;){f=ee;var d=f.sibling,h=f.return;if(kA(f),f===u){ee=null;break}if(d!==null){d.return=h,ee=d;break}ee=h}}}var y=a.alternate;if(y!==null){var p=y.child;if(p!==null){y.child=null;do{var b=p.sibling;p.sibling=null,p=b}while(p!==null)}}ee=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ee=o;else e:for(;ee!==null;){if(a=ee,a.flags&2048)switch(a.tag){case 0:case 11:case 15:ul(9,a,a.return)}var x=a.sibling;if(x!==null){x.return=a.return,ee=x;break e}ee=a.return}}var m=e.current;for(ee=m;ee!==null;){o=ee;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,ee=v;else e:for(o=m;ee!==null;){if(s=ee,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Bd(9,s)}}catch(w){Ye(s,s.return,w)}if(s===o){ee=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,ee=O;break e}ee=s.return}}if(ve=i,Di(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(Cd,e)}catch{}n=!0}return n}finally{_e=r,Ar.transition=t}}return!1}function wb(e,t,r){t=Do(r,t),t=mA(e,t,1),e=_i(e,t,1),t=Ut(),e!==null&&(Eu(e,1,t),Jt(e,t))}function Ye(e,t,r){if(e.tag===3)wb(e,e,r);else for(;t!==null;){if(t.tag===3){wb(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Pi===null||!Pi.has(n))){e=Do(r,e),e=vA(t,e,1),t=_i(t,e,1),e=Ut(),t!==null&&(Eu(t,1,e),Jt(t,e));break}}t=t.return}}function ZC(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ut(),e.pingedLanes|=e.suspendedLanes&r,yt===e&&(bt&r)===r&&(ut===4||ut===3&&(bt&130023424)===bt&&500>Je()-Cg?da(e,0):Tg|=r),Jt(e,t)}function RA(e,t){t===0&&(e.mode&1?(t=tc,tc<<=1,!(tc&130023424)&&(tc=4194304)):t=1);var r=Ut();e=Fn(e,t),e!==null&&(Eu(e,t,r),Jt(e,r))}function JC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),RA(e,r)}function eN(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),RA(e,r)}var LA;LA=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Xt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Xt=!1,zC(e,t,r);Xt=!!(e.flags&131072)}else Xt=!1,ze&&t.flags&1048576&&UP(t,sf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Fc(e,t),e=t.pendingProps;var i=Co(t,Ct.current);mo(t,r),i=Pg(null,t,n,e,i,r);var a=Ag();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,Zt(n)?(a=!0,af(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,bg(t),i.updater=Fd,t.stateNode=i,i._reactInternals=t,Hy(t,n,e,r),t=Gy(null,t,n,!0,a,r)):(t.tag=0,ze&&a&&hg(t),It(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Fc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=rN(n),e=Mr(n,e),i){case 0:t=Ky(null,t,n,e,r);break e;case 1:t=fb(null,t,n,e,r);break e;case 11:t=ub(null,t,n,e,r);break e;case 14:t=cb(null,t,n,Mr(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:Mr(n,i),Ky(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mr(n,i),fb(e,t,n,i,r);case 3:e:{if(wA(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,GP(e,t),cf(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=Do(Error(q(423)),t),t=db(e,t,n,r,i);break e}else if(n!==i){i=Do(Error(q(424)),t),t=db(e,t,n,r,i);break e}else for(sr=Oi(t.stateNode.containerInfo.firstChild),lr=t,ze=!0,zr=null,r=qP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(No(),n===i){t=Bn(e,t,r);break e}It(e,t,n,r)}t=t.child}return t;case 5:return XP(t),e===null&&Uy(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Ry(n,i)?o=null:a!==null&&Ry(n,a)&&(t.flags|=32),bA(e,t),It(e,t,o,r),t.child;case 6:return e===null&&Uy(t),null;case 13:return SA(e,t,r);case 4:return wg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Mo(t,null,n,r):It(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mr(n,i),ub(e,t,n,i,r);case 7:return It(e,t,t.pendingProps,r),t.child;case 8:return It(e,t,t.pendingProps.children,r),t.child;case 12:return It(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,Me(lf,n._currentValue),n._currentValue=o,a!==null)if(Gr(a.value,o)){if(a.children===i.children&&!Qt.current){t=Bn(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=Nn(-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),Vy(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),Vy(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}It(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,mo(t,r),i=kr(i),n=n(i),t.flags|=1,It(e,t,n,r),t.child;case 14:return n=t.type,i=Mr(n,t.pendingProps),i=Mr(n.type,i),cb(e,t,n,i,r);case 15:return gA(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mr(n,i),Fc(e,t),t.tag=1,Zt(n)?(e=!0,af(t)):e=!1,mo(t,r),yA(t,n,i),Hy(t,n,i,r),Gy(null,t,n,!0,e,r);case 19:return OA(e,t,r);case 22:return xA(e,t,r)}throw Error(q(156,t.tag))};function FA(e,t){return dP(e,t)}function tN(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 _r(e,t,r,n){return new tN(e,t,r,n)}function Dg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rN(e){if(typeof e=="function")return Dg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tg)return 11;if(e===rg)return 14}return 2}function ki(e,t){var r=e.alternate;return r===null?(r=_r(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 Uc(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Dg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ka:return ha(r.children,i,a,t);case eg:o=8,i|=8;break;case yy:return e=_r(12,r,t,i|2),e.elementType=yy,e.lanes=a,e;case my:return e=_r(13,r,t,i),e.elementType=my,e.lanes=a,e;case vy:return e=_r(19,r,t,i),e.elementType=vy,e.lanes=a,e;case X_:return Ud(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K_:o=10;break e;case G_:o=9;break e;case tg:o=11;break e;case rg:o=14;break e;case ni:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=_r(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ha(e,t,r,n){return e=_r(7,e,n,t),e.lanes=r,e}function Ud(e,t,r,n){return e=_r(22,e,n,t),e.elementType=X_,e.lanes=r,e.stateNode={isHidden:!1},e}function jp(e,t,r){return e=_r(6,e,null,t),e.lanes=r,e}function Ep(e,t,r){return t=_r(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nN(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=up(0),this.expirationTimes=up(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=up(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rg(e,t,r,n,i,a,o,s,l){return e=new nN(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=_r(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bg(a),e}function iN(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qa,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function BA(e){if(!e)return Ci;e=e._reactInternals;e:{if($a(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(Zt(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(Zt(r))return BP(e,r,t)}return t}function zA(e,t,r,n,i,a,o,s,l){return e=Rg(r,n,!0,e,i,a,o,s,l),e.context=BA(null),r=e.current,n=Ut(),i=Ai(r),a=Nn(n,i),a.callback=t??null,_i(r,a,i),e.current.lanes=i,Eu(e,i,n),Jt(e,n),e}function Vd(e,t,r,n){var i=t.current,a=Ut(),o=Ai(i);return r=BA(r),t.context===null?t.context=r:t.pendingContext=r,t=Nn(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=_i(i,t,o),e!==null&&(qr(e,i,o,a),Dc(e,i,o)),o}function gf(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 Sb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Lg(e,t){Sb(e,t),(e=e.alternate)&&Sb(e,t)}function aN(){return null}var UA=typeof reportError=="function"?reportError:function(e){console.error(e)};function Fg(e){this._internalRoot=e}Wd.prototype.render=Fg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));Vd(e,t,null,null)};Wd.prototype.unmount=Fg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wa(function(){Vd(null,e,null,null)}),t[Ln]=null}};function Wd(e){this._internalRoot=e}Wd.prototype.unstable_scheduleHydration=function(e){if(e){var t=xP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<oi.length&&t!==0&&t<oi[r].priority;r++);oi.splice(r,0,e),r===0&&wP(e)}};function Bg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ob(){}function oN(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=gf(o);a.call(u)}}var o=zA(t,n,e,0,null,!1,!1,"",Ob);return e._reactRootContainer=o,e[Ln]=o.current,Tl(e.nodeType===8?e.parentNode:e),wa(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=gf(l);s.call(u)}}var l=Rg(e,0,!1,null,null,!1,!1,"",Ob);return e._reactRootContainer=l,e[Ln]=l.current,Tl(e.nodeType===8?e.parentNode:e),wa(function(){Vd(t,l,r,n)}),l}function qd(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=gf(o);s.call(l)}}Vd(t,o,e,i)}else o=oN(r,t,e,i,n);return gf(o)}vP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=el(t.pendingLanes);r!==0&&(ag(t,r|1),Jt(t,Je()),!(ve&6)&&(Ro=Je()+500,Di()))}break;case 13:wa(function(){var n=Fn(e,1);if(n!==null){var i=Ut();qr(n,e,1,i)}}),Lg(e,1)}};og=function(e){if(e.tag===13){var t=Fn(e,134217728);if(t!==null){var r=Ut();qr(t,e,134217728,r)}Lg(e,134217728)}};gP=function(e){if(e.tag===13){var t=Ai(e),r=Fn(e,t);if(r!==null){var n=Ut();qr(r,e,t,n)}Lg(e,t)}};xP=function(){return _e};bP=function(e,t){var r=_e;try{return _e=e,t()}finally{_e=r}};ky=function(e,t,r){switch(t){case"input":if(by(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=Dd(n);if(!i)throw Error(q(90));Q_(n),by(n,i)}}}break;case"textarea":J_(e,r);break;case"select":t=r.value,t!=null&&fo(e,!!r.multiple,t,!1)}};oP=Ng;sP=wa;var sN={usingClientEntryPoint:!1,Events:[Tu,Qa,Dd,iP,aP,Ng]},Ls={findFiberByHostInstance:Qi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lN={bundleType:Ls.bundleType,version:Ls.version,rendererPackageName:Ls.rendererPackageName,rendererConfig:Ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cP(e),e===null?null:e.stateNode},findFiberByHostInstance:Ls.findFiberByHostInstance||aN,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 dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{Cd=dc.inject(lN),sn=dc}catch{}}dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sN;dr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bg(t))throw Error(q(200));return iN(e,t,null,r)};dr.createRoot=function(e,t){if(!Bg(e))throw Error(q(299));var r=!1,n="",i=UA;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Rg(e,1,!1,null,null,r,!1,n,i),e[Ln]=t.current,Tl(e.nodeType===8?e.parentNode:e),new Fg(t)};dr.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=cP(t),e=e===null?null:e.stateNode,e};dr.flushSync=function(e){return wa(e)};dr.hydrate=function(e,t,r){if(!Hd(t))throw Error(q(200));return qd(null,e,t,!0,r)};dr.hydrateRoot=function(e,t,r){if(!Bg(e))throw Error(q(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=UA;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=zA(t,null,e,1,r??null,i,!1,a,o),e[Ln]=t.current,Tl(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 Wd(t)};dr.render=function(e,t,r){if(!Hd(t))throw Error(q(200));return qd(null,e,t,!1,r)};dr.unmountComponentAtNode=function(e){if(!Hd(e))throw Error(q(40));return e._reactRootContainer?(wa(function(){qd(null,null,e,!1,function(){e._reactRootContainer=null,e[Ln]=null})}),!0):!1};dr.unstable_batchedUpdates=Ng;dr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Hd(r))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return qd(e,t,r,!1,n)};dr.version="18.3.1-next-f1338f8080-20240426";function VA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(VA)}catch(e){console.error(e)}}VA(),V_.exports=dr;var uN=V_.exports,_b=uN;hy.createRoot=_b.createRoot,hy.hydrateRoot=_b.hydrateRoot;/**
|
||
* @remix-run/router v1.23.0
|
||
*
|
||
* 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 Bl(){return Bl=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},Bl.apply(this,arguments)}var gi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gi||(gi={}));const Pb="popstate";function cN(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return om("",{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:xf(i)}return dN(t,r,null,e)}function qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function WA(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fN(){return Math.random().toString(36).substr(2,8)}function Ab(e,t){return{usr:e.state,key:e.key,idx:t}}function om(e,t,r,n){return r===void 0&&(r=null),Bl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hs(t):t,{state:r,key:t&&t.key||n||fN()})}function xf(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 hs(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 dN(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=gi.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(Bl({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=gi.Pop;let b=f(),x=b==null?null:b-u;u=b,l&&l({action:s,location:p.location,delta:x})}function d(b,x){s=gi.Push;let m=om(p.location,b,x);r&&r(m,b),u=f()+1;let v=Ab(m,u),O=p.createHref(m);try{o.pushState(v,"",O)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(O)}a&&l&&l({action:s,location:p.location,delta:1})}function h(b,x){s=gi.Replace;let m=om(p.location,b,x);r&&r(m,b),u=f();let v=Ab(m,u),O=p.createHref(m);o.replaceState(v,"",O),a&&l&&l({action:s,location:p.location,delta:0})}function y(b){let x=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof b=="string"?b:xf(b);return m=m.replace(/ $/,"%20"),qe(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let p={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Pb,c),l=b,()=>{i.removeEventListener(Pb,c),l=null}},createHref(b){return t(i,b)},createURL:y,encodeLocation(b){let x=y(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:h,go(b){return o.go(b)}};return p}var kb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kb||(kb={}));function hN(e,t,r){return r===void 0&&(r="/"),pN(e,t,r,!1)}function pN(e,t,r,n){let i=typeof t=="string"?hs(t):t,a=Lo(i.pathname||"/",r);if(a==null)return null;let o=HA(e);yN(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=AN(a);s=_N(o[l],u,n)}return s}function HA(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=ji([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+'".')),HA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:SN(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 qA(a.path))i(a,o,l)}),t}function qA(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=qA(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 yN(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ON(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const mN=/^:[\w-]+$/,vN=3,gN=2,xN=1,bN=10,wN=-2,jb=e=>e==="*";function SN(e,t){let r=e.split("/"),n=r.length;return r.some(jb)&&(n+=wN),t&&(n+=gN),r.filter(i=>!jb(i)).reduce((i,a)=>i+(mN.test(a)?vN:a===""?xN:bN),n)}function ON(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 _N(e,t,r){r===void 0&&(r=!1);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=bf({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),d=l.route;if(!c&&u&&r&&!n[n.length-1].route.index&&(c=bf({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:ji([a,c.pathname]),pathnameBase:$N(ji([a,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(a=ji([a,c.pathnameBase]))}return o}function bf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=PN(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:h}=f;if(d==="*"){let p=s[c]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const y=s[c];return h&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function PN(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),WA(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 AN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return WA(!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 Lo(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)||"/"}function kN(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?hs(e):e;return{pathname:r?r.startsWith("/")?r:jN(r,t):t,search:TN(n),hash:CN(i)}}function jN(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 $p(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 EN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function zg(e,t){let r=EN(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ug(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=hs(e):(i=Bl({},e),qe(!i.pathname||!i.pathname.includes("?"),$p("?","pathname","search",i)),qe(!i.pathname||!i.pathname.includes("#"),$p("#","pathname","hash",i)),qe(!i.search||!i.search.includes("#"),$p("#","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=kN(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const ji=e=>e.join("/").replace(/\/\/+/g,"/"),$N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function NN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const KA=["post","put","patch","delete"];new Set(KA);const MN=["get",...KA];new Set(MN);/**
|
||
* React Router v6.30.1
|
||
*
|
||
* 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 zl(){return zl=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},zl.apply(this,arguments)}const Kd=j.createContext(null),GA=j.createContext(null),qn=j.createContext(null),Gd=j.createContext(null),Kn=j.createContext({outlet:null,matches:[],isDataRoute:!1}),XA=j.createContext(null);function IN(e,t){let{relative:r}=t===void 0?{}:t;ps()||qe(!1);let{basename:n,navigator:i}=j.useContext(qn),{hash:a,pathname:o,search:s}=Xd(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:ji([n,o])),i.createHref({pathname:l,search:s,hash:a})}function ps(){return j.useContext(Gd)!=null}function ys(){return ps()||qe(!1),j.useContext(Gd).location}function YA(e){j.useContext(qn).static||j.useLayoutEffect(e)}function QA(){let{isDataRoute:e}=j.useContext(Kn);return e?YN():DN()}function DN(){ps()||qe(!1);let e=j.useContext(Kd),{basename:t,future:r,navigator:n}=j.useContext(qn),{matches:i}=j.useContext(Kn),{pathname:a}=ys(),o=JSON.stringify(zg(i,r.v7_relativeSplatPath)),s=j.useRef(!1);return YA(()=>{s.current=!0}),j.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=Ug(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ji([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}const RN=j.createContext(null);function LN(e){let t=j.useContext(Kn).outlet;return t&&j.createElement(RN.Provider,{value:e},t)}function Xd(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=j.useContext(qn),{matches:i}=j.useContext(Kn),{pathname:a}=ys(),o=JSON.stringify(zg(i,n.v7_relativeSplatPath));return j.useMemo(()=>Ug(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function FN(e,t){return BN(e,t)}function BN(e,t,r,n){ps()||qe(!1);let{navigator:i}=j.useContext(qn),{matches:a}=j.useContext(Kn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=ys(),f;if(t){var c;let b=typeof t=="string"?hs(t):t;l==="/"||(c=b.pathname)!=null&&c.startsWith(l)||qe(!1),f=b}else f=u;let d=f.pathname||"/",h=d;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=hN(e,{pathname:h}),p=HN(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:ji([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:ji([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,r,n);return t&&p?j.createElement(Gd.Provider,{value:{location:zl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:gi.Pop}},p):p}function zN(){let e=XN(),t=NN(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)"},a=null;return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),r?j.createElement("pre",{style:i},r):null,a)}const UN=j.createElement(zN,null);class VN extends j.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?j.createElement(Kn.Provider,{value:this.props.routeContext},j.createElement(XA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WN(e){let{routeContext:t,match:r,children:n}=e,i=j.useContext(Kd);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),j.createElement(Kn.Provider,{value:t},n)}function HN(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:h}=r,y=c.route.loader&&d[c.route.id]===void 0&&(!h||h[c.route.id]===void 0);if(c.route.lazy||y){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let h,y=!1,p=null,b=null;r&&(h=s&&c.route.id?s[c.route.id]:void 0,p=c.route.errorElement||UN,l&&(u<0&&d===0?(QN("route-fallback",!1),y=!0,b=null):u===d&&(y=!0,b=c.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,d+1)),m=()=>{let v;return h?v=p:y?v=b:c.route.Component?v=j.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,j.createElement(WN,{match:c,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?j.createElement(VN,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var ZA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ZA||{}),wf=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}(wf||{});function qN(e){let t=j.useContext(Kd);return t||qe(!1),t}function KN(e){let t=j.useContext(GA);return t||qe(!1),t}function GN(e){let t=j.useContext(Kn);return t||qe(!1),t}function JA(e){let t=GN(),r=t.matches[t.matches.length-1];return r.route.id||qe(!1),r.route.id}function XN(){var e;let t=j.useContext(XA),r=KN(wf.UseRouteError),n=JA(wf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function YN(){let{router:e}=qN(ZA.UseNavigateStable),t=JA(wf.UseNavigateStable),r=j.useRef(!1);return YA(()=>{r.current=!0}),j.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,zl({fromRouteId:t},a)))},[e,t])}const Eb={};function QN(e,t,r){!t&&!Eb[e]&&(Eb[e]=!0)}function ZN(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function ek(e){let{to:t,replace:r,state:n,relative:i}=e;ps()||qe(!1);let{future:a,static:o}=j.useContext(qn),{matches:s}=j.useContext(Kn),{pathname:l}=ys(),u=QA(),f=Ug(t,zg(s,a.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(f);return j.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:i}),[u,c,i,r,n]),null}function JN(e){return LN(e.context)}function Sn(e){qe(!1)}function eM(e){let{basename:t="/",children:r=null,location:n,navigationType:i=gi.Pop,navigator:a,static:o=!1,future:s}=e;ps()&&qe(!1);let l=t.replace(/^\/*/,"/"),u=j.useMemo(()=>({basename:l,navigator:a,static:o,future:zl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=hs(n));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:y="default"}=n,p=j.useMemo(()=>{let b=Lo(f,l);return b==null?null:{location:{pathname:b,search:c,hash:d,state:h,key:y},navigationType:i}},[l,f,c,d,h,y,i]);return p==null?null:j.createElement(qn.Provider,{value:u},j.createElement(Gd.Provider,{children:r,value:p}))}function tM(e){let{children:t,location:r}=e;return FN(sm(t),r)}new Promise(()=>{});function sm(e,t){t===void 0&&(t=[]);let r=[];return j.Children.forEach(e,(n,i)=>{if(!j.isValidElement(n))return;let a=[...t,i];if(n.type===j.Fragment){r.push.apply(r,sm(n.props.children,a));return}n.type!==Sn&&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=sm(n.props.children,a)),r.push(o)}),r}/**
|
||
* React Router DOM v6.30.1
|
||
*
|
||
* 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 Sf(){return Sf=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},Sf.apply(this,arguments)}function tk(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 rM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nM(e,t){return e.button===0&&(!t||t==="_self")&&!rM(e)}const iM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aM=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],oM="6";try{window.__reactRouterVersion=oM}catch{}const sM=j.createContext({isTransitioning:!1}),lM="startTransition",$b=Z$[lM];function uM(e){let{basename:t,children:r,future:n,window:i}=e,a=j.useRef();a.current==null&&(a.current=cN({window:i,v5Compat:!0}));let o=a.current,[s,l]=j.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=j.useCallback(c=>{u&&$b?$b(()=>l(c)):l(c)},[l,u]);return j.useLayoutEffect(()=>o.listen(f),[o,f]),j.useEffect(()=>ZN(n),[n]),j.createElement(eM,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const cM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dM=j.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=tk(t,iM),{basename:h}=j.useContext(qn),y,p=!1;if(typeof u=="string"&&fM.test(u)&&(y=u,cM))try{let v=new URL(window.location.href),O=u.startsWith("//")?new URL(v.protocol+u):new URL(u),w=Lo(O.pathname,h);O.origin===v.origin&&w!=null?u=w+O.search+O.hash:p=!0}catch{}let b=IN(u,{relative:i}),x=pM(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function m(v){n&&n(v),v.defaultPrevented||x(v)}return j.createElement("a",Sf({},d,{href:y||b,onClick:p||a?n:m,ref:r,target:l}))}),Tp=j.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:u,children:f}=t,c=tk(t,aM),d=Xd(l,{relative:c.relative}),h=ys(),y=j.useContext(GA),{navigator:p,basename:b}=j.useContext(qn),x=y!=null&&yM(d)&&u===!0,m=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,v=h.pathname,O=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(v=v.toLowerCase(),O=O?O.toLowerCase():null,m=m.toLowerCase()),O&&b&&(O=Lo(O,b)||O);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=v===m||!o&&v.startsWith(m)&&v.charAt(w)==="/",_=O!=null&&(O===m||!o&&O.startsWith(m)&&O.charAt(m.length)==="/"),P={isActive:S,isPending:_,isTransitioning:x},A=S?n:void 0,C;typeof a=="function"?C=a(P):C=[a,S?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let E=typeof s=="function"?s(P):s;return j.createElement(dM,Sf({},c,{"aria-current":A,className:C,ref:r,style:E,to:l,viewTransition:u}),typeof f=="function"?f(P):f)});var lm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lm||(lm={}));var Tb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tb||(Tb={}));function hM(e){let t=j.useContext(Kd);return t||qe(!1),t}function pM(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=QA(),u=ys(),f=Xd(e,{relative:o});return j.useCallback(c=>{if(nM(c,r)){c.preventDefault();let d=n!==void 0?n:xf(u)===xf(f);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}function yM(e,t){t===void 0&&(t={});let r=j.useContext(sM);r==null&&qe(!1);let{basename:n}=hM(lm.useViewTransitionState),i=Xd(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=Lo(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Lo(r.nextLocation.pathname,n)||r.nextLocation.pathname;return bf(i.pathname,o)!=null||bf(i.pathname,a)!=null}var Yd=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(){}},Qd=typeof window>"u"||"Deno"in globalThis;function Ir(){}function mM(e,t){return typeof e=="function"?e(t):e}function vM(e){return typeof e=="number"&&e>=0&&e!==1/0}function gM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function um(e,t){return typeof e=="function"?e(t):e}function xM(e,t){return typeof e=="function"?e(t):e}function Cb(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==Vg(o,t.options))return!1}else if(!Vl(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 Nb(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ul(t.options.mutationKey)!==Ul(a))return!1}else if(!Vl(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Vg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ul)(e)}function Ul(e){return JSON.stringify(e,(t,r)=>cm(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Vl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Vl(e[r],t[r])):!1}function rk(e,t){if(e===t)return e;const r=Mb(e)&&Mb(t);if(r||cm(e)&&cm(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{},l=new Set(n);let u=0;for(let f=0;f<o;f++){const c=r?f:a[f];(!r&&l.has(c)||r)&&e[c]===void 0&&t[c]===void 0?(s[c]=void 0,u++):(s[c]=rk(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&u++)}return i===o&&u===i?e:s}return t}function Mb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cm(e){if(!Ib(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Ib(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ib(e){return Object.prototype.toString.call(e)==="[object Object]"}function bM(e){return new Promise(t=>{setTimeout(t,e)})}function wM(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?rk(e,t):t}function SM(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function OM(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Wg=Symbol();function nk(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var sa,fi,So,__,_M=(__=class extends Yd{constructor(){super();ge(this,sa,void 0);ge(this,fi,void 0);ge(this,So,void 0);fe(this,So,t=>{if(!Qd&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){U(this,fi)||this.setEventListener(U(this,So))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,fi))==null||t.call(this),fe(this,fi,void 0))}setEventListener(t){var r;fe(this,So,t),(r=U(this,fi))==null||r.call(this),fe(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){U(this,sa)!==t&&(fe(this,sa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof U(this,sa)=="boolean"?U(this,sa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},sa=new WeakMap,fi=new WeakMap,So=new WeakMap,__),ik=new _M,Oo,di,_o,P_,PM=(P_=class extends Yd{constructor(){super();ge(this,Oo,!0);ge(this,di,void 0);ge(this,_o,void 0);fe(this,_o,t=>{if(!Qd&&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(){U(this,di)||this.setEventListener(U(this,_o))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,di))==null||t.call(this),fe(this,di,void 0))}setEventListener(t){var r;fe(this,_o,t),(r=U(this,di))==null||r.call(this),fe(this,di,t(this.setOnline.bind(this)))}setOnline(t){U(this,Oo)!==t&&(fe(this,Oo,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return U(this,Oo)}},Oo=new WeakMap,di=new WeakMap,_o=new WeakMap,P_),Of=new PM;function AM(){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}function kM(e){return Math.min(1e3*2**e,3e4)}function ak(e){return(e??"online")==="online"?Of.isOnline():!0}var ok=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Cp(e){return e instanceof ok}function sk(e){let t=!1,r=0,n=!1,i;const a=AM(),o=p=>{var b;n||(d(new ok(p)),(b=e.abort)==null||b.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>ik.isFocused()&&(e.networkMode==="always"||Of.isOnline())&&e.canRun(),f=()=>ak(e.networkMode)&&e.canRun(),c=p=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,p),i==null||i(),a.resolve(p))},d=p=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,p),i==null||i(),a.reject(p))},h=()=>new Promise(p=>{var b;i=x=>{(n||u())&&p(x)},(b=e.onPause)==null||b.call(e)}).then(()=>{var p;i=void 0,n||(p=e.onContinue)==null||p.call(e)}),y=()=>{if(n)return;let p;const b=r===0?e.initialPromise:void 0;try{p=b??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(c).catch(x=>{var S;if(n)return;const m=e.retry??(Qd?0:3),v=e.retryDelay??kM,O=typeof v=="function"?v(r,x):v,w=m===!0||typeof m=="number"&&r<m||typeof m=="function"&&m(r,x);if(t||!w){d(x);return}r++,(S=e.onFail)==null||S.call(e,r,x),bM(O).then(()=>u()?void 0:h()).then(()=>{t?d(x):y()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?y():h().then(y),a)}}var jM=e=>setTimeout(e,0);function EM(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=jM;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 Rt=EM(),la,A_,lk=(A_=class{constructor(){ge(this,la,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vM(this.gcTime)&&fe(this,la,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qd?1/0:5*60*1e3))}clearGcTimeout(){U(this,la)&&(clearTimeout(U(this,la)),fe(this,la,void 0))}},la=new WeakMap,A_),Po,Ao,gr,ua,jt,Au,ca,Dr,On,k_,$M=(k_=class extends lk{constructor(t){super();ge(this,Dr);ge(this,Po,void 0);ge(this,Ao,void 0);ge(this,gr,void 0);ge(this,ua,void 0);ge(this,jt,void 0);ge(this,Au,void 0);ge(this,ca,void 0);fe(this,ca,!1),fe(this,Au,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,ua,t.client),fe(this,gr,U(this,ua).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,Po,CM(this.options)),this.state=t.state??U(this,Po),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=U(this,jt))==null?void 0:t.promise}setOptions(t){this.options={...U(this,Au),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,gr).remove(this)}setData(t,r){const n=wM(this.state.data,t,this.options);return _t(this,Dr,On).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){_t(this,Dr,On).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=U(this,jt))==null?void 0:n.promise;return(i=U(this,jt))==null||i.cancel(t),r?r.then(Ir).catch(Ir):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,Po))}isActive(){return this.observers.some(t=>xM(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>um(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:!gM(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=U(this,jt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=U(this,jt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),U(this,gr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(U(this,jt)&&(U(this,ca)?U(this,jt).cancel({revert:!0}):U(this,jt).cancelRetry()),this.scheduleGc()),U(this,gr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_t(this,Dr,On).call(this,{type:"invalidate"})}fetch(t,r){var u,f,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(U(this,jt))return U(this,jt).continueRetry(),U(this,jt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(fe(this,ca,!0),n.signal)})},a=()=>{const d=nk(this.options,r),y=(()=>{const p={client:U(this,ua),queryKey:this.queryKey,meta:this.meta};return i(p),p})();return fe(this,ca,!1),this.options.persister?this.options.persister(d,y,this):d(y)},s=(()=>{const d={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:U(this,ua),state:this.state,fetchFn:a};return i(d),d})();(u=this.options.behavior)==null||u.onFetch(s,this),fe(this,Ao,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&_t(this,Dr,On).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const l=d=>{var h,y,p,b;Cp(d)&&d.silent||_t(this,Dr,On).call(this,{type:"error",error:d}),Cp(d)||((y=(h=U(this,gr).config).onError)==null||y.call(h,d,this),(b=(p=U(this,gr).config).onSettled)==null||b.call(p,this.state.data,d,this)),this.scheduleGc()};return fe(this,jt,sk({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var h,y,p,b;if(d===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(x){l(x);return}(y=(h=U(this,gr).config).onSuccess)==null||y.call(h,d,this),(b=(p=U(this,gr).config).onSettled)==null||b.call(p,d,this.state.error,this),this.scheduleGc()},onError:l,onFail:(d,h)=>{_t(this,Dr,On).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{_t(this,Dr,On).call(this,{type:"pause"})},onContinue:()=>{_t(this,Dr,On).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),U(this,jt).start()}},Po=new WeakMap,Ao=new WeakMap,gr=new WeakMap,ua=new WeakMap,jt=new WeakMap,Au=new WeakMap,ca=new WeakMap,Dr=new WeakSet,On=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,...TM(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Cp(i)&&i.revert&&U(this,Ao)?{...U(this,Ao),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),U(this,gr).notify({query:this,type:"updated",action:t})})},k_);function TM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ak(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function CM(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 en,j_,NM=(j_=class extends Yd{constructor(t={}){super();ge(this,en,void 0);this.config=t,fe(this,en,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??Vg(i,r);let o=this.get(a);return o||(o=new $M({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){U(this,en).has(t.queryHash)||(U(this,en).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=U(this,en).get(t.queryHash);r&&(t.destroy(),r===t&&U(this,en).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return U(this,en).get(t)}getAll(){return[...U(this,en).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Cb(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Cb(t,n)):r}notify(t){Rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},en=new WeakMap,j_),tn,Mt,fa,rn,ti,E_,MM=(E_=class extends lk{constructor(t){super();ge(this,rn);ge(this,tn,void 0);ge(this,Mt,void 0);ge(this,fa,void 0);this.mutationId=t.mutationId,fe(this,Mt,t.mutationCache),fe(this,tn,[]),this.state=t.state||IM(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){U(this,tn).includes(t)||(U(this,tn).push(t),this.clearGcTimeout(),U(this,Mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,tn,U(this,tn).filter(r=>r!==t)),this.scheduleGc(),U(this,Mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){U(this,tn).length||(this.state.status==="pending"?this.scheduleGc():U(this,Mt).remove(this))}continue(){var t;return((t=U(this,fa))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,s,l,u,f,c,d,h,y,p,b,x,m,v,O,w,S,_,P;const r=()=>{_t(this,rn,ti).call(this,{type:"continue"})};fe(this,fa,sk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,C)=>{_t(this,rn,ti).call(this,{type:"failed",failureCount:A,error:C})},onPause:()=>{_t(this,rn,ti).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,Mt).canRun(this)}));const n=this.state.status==="pending",i=!U(this,fa).canStart();try{if(n)r();else{_t(this,rn,ti).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(a=U(this,Mt).config).onMutate)==null?void 0:o.call(a,t,this));const C=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));C!==this.state.context&&_t(this,rn,ti).call(this,{type:"pending",context:C,variables:t,isPaused:i})}const A=await U(this,fa).start();return await((f=(u=U(this,Mt).config).onSuccess)==null?void 0:f.call(u,A,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,A,t,this.state.context)),await((y=(h=U(this,Mt).config).onSettled)==null?void 0:y.call(h,A,null,this.state.variables,this.state.context,this)),await((b=(p=this.options).onSettled)==null?void 0:b.call(p,A,null,t,this.state.context)),_t(this,rn,ti).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(x=U(this,Mt).config).onError)==null?void 0:m.call(x,A,t,this.state.context,this)),await((O=(v=this.options).onError)==null?void 0:O.call(v,A,t,this.state.context)),await((S=(w=U(this,Mt).config).onSettled)==null?void 0:S.call(w,void 0,A,this.state.variables,this.state.context,this)),await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,A,t,this.state.context)),A}finally{_t(this,rn,ti).call(this,{type:"error",error:A})}}finally{U(this,Mt).runNext(this)}}},tn=new WeakMap,Mt=new WeakMap,fa=new WeakMap,rn=new WeakSet,ti=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),Rt.batch(()=>{U(this,tn).forEach(n=>{n.onMutationUpdate(t)}),U(this,Mt).notify({mutation:this,type:"updated",action:t})})},E_);function IM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kn,Rr,ku,$_,DM=($_=class extends Yd{constructor(t={}){super();ge(this,kn,void 0);ge(this,Rr,void 0);ge(this,ku,void 0);this.config=t,fe(this,kn,new Set),fe(this,Rr,new Map),fe(this,ku,0)}build(t,r,n){const i=new MM({mutationCache:this,mutationId:++Gu(this,ku)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){U(this,kn).add(t);const r=hc(t);if(typeof r=="string"){const n=U(this,Rr).get(r);n?n.push(t):U(this,Rr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(U(this,kn).delete(t)){const r=hc(t);if(typeof r=="string"){const n=U(this,Rr).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&U(this,Rr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=hc(t);if(typeof r=="string"){const n=U(this,Rr).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=hc(t);if(typeof r=="string"){const i=(n=U(this,Rr).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(){Rt.batch(()=>{U(this,kn).forEach(t=>{this.notify({type:"removed",mutation:t})}),U(this,kn).clear(),U(this,Rr).clear()})}getAll(){return Array.from(U(this,kn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Nb(r,n))}findAll(t={}){return this.getAll().filter(r=>Nb(t,r))}notify(t){Rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Rt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ir))))}},kn=new WeakMap,Rr=new WeakMap,ku=new WeakMap,$_);function hc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Db(e){return{onFetch:(t,r)=>{var f,c,d,h,y;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=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=nk(t.options,t.fetchOptions),m=async(v,O,w)=>{if(p)return Promise.reject();if(O==null&&v.pages.length)return Promise.resolve(v);const _=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:O,direction:w?"backward":"forward",meta:t.options.meta};return b(E),E})(),P=await x(_),{maxPages:A}=t.options,C=w?OM:SM;return{pages:C(v.pages,P,A),pageParams:C(v.pageParams,O,A)}};if(i&&a.length){const v=i==="backward",O=v?RM:Rb,w={pages:a,pageParams:o},S=O(n,w);s=await m(w,S,v)}else{const v=e??a.length;do{const O=l===0?o[0]??n.initialPageParam:Rb(n,s);if(l>0&&O==null)break;s=await m(s,O),l++}while(l<v)}return s};t.options.persister?t.fetchFn=()=>{var p,b;return(b=(p=t.options).persister)==null?void 0:b.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function Rb(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 RM(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 Xe,hi,pi,ko,jo,yi,Eo,$o,T_,LM=(T_=class{constructor(e={}){ge(this,Xe,void 0);ge(this,hi,void 0);ge(this,pi,void 0);ge(this,ko,void 0);ge(this,jo,void 0);ge(this,yi,void 0);ge(this,Eo,void 0);ge(this,$o,void 0);fe(this,Xe,e.queryCache||new NM),fe(this,hi,e.mutationCache||new DM),fe(this,pi,e.defaultOptions||{}),fe(this,ko,new Map),fe(this,jo,new Map),fe(this,yi,0)}mount(){Gu(this,yi)._++,U(this,yi)===1&&(fe(this,Eo,ik.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Xe).onFocus())})),fe(this,$o,Of.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Xe).onOnline())})))}unmount(){var e,t;Gu(this,yi)._--,U(this,yi)===0&&((e=U(this,Eo))==null||e.call(this),fe(this,Eo,void 0),(t=U(this,$o))==null||t.call(this),fe(this,$o,void 0))}isFetching(e){return U(this,Xe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=U(this,Xe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=U(this,Xe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(um(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return U(this,Xe).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=U(this,Xe).get(n.queryHash),a=i==null?void 0:i.state.data,o=mM(t,a);if(o!==void 0)return U(this,Xe).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Rt.batch(()=>U(this,Xe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=U(this,Xe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=U(this,Xe);Rt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=U(this,Xe);return Rt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Rt.batch(()=>U(this,Xe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Ir).catch(Ir)}invalidateQueries(e,t={}){return Rt.batch(()=>(U(this,Xe).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=Rt.batch(()=>U(this,Xe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Ir)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Ir)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=U(this,Xe).build(this,t);return r.isStaleByTime(um(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ir).catch(Ir)}fetchInfiniteQuery(e){return e.behavior=Db(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ir).catch(Ir)}ensureInfiniteQueryData(e){return e.behavior=Db(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Of.isOnline()?U(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Xe)}getMutationCache(){return U(this,hi)}getDefaultOptions(){return U(this,pi)}setDefaultOptions(e){fe(this,pi,e)}setQueryDefaults(e,t){U(this,ko).set(Ul(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(this,ko).values()],r={};return t.forEach(n=>{Vl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){U(this,jo).set(Ul(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(this,jo).values()],r={};return t.forEach(n=>{Vl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...U(this,pi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vg(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===Wg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,pi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,Xe).clear(),U(this,hi).clear()}},Xe=new WeakMap,hi=new WeakMap,pi=new WeakMap,ko=new WeakMap,jo=new WeakMap,yi=new WeakMap,Eo=new WeakMap,$o=new WeakMap,T_),FM=j.createContext(void 0),BM=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(FM.Provider,{value:e,children:t})),zM=function(){return null};const uk=j.createContext(void 0),UM=(e,t)=>{switch(t.type){case"LOGIN_SUCCESS":return{isAuthenticated:!0,user:t.payload.user,permissions:t.payload.user.permissions,token:t.payload.token};case"LOGOUT":return{isAuthenticated:!1,user:null,permissions:[],token:null};case"RESTORE_SESSION":return{isAuthenticated:!0,user:t.payload.user,permissions:t.payload.user.permissions,token:t.payload.token};default:return e}},VM={isAuthenticated:!1,user:null,permissions:[],token:null},WM=({children:e})=>{const[t,r]=j.useReducer(UM,VM);j.useEffect(()=>{const o=localStorage.getItem("admin_token"),s=localStorage.getItem("admin_user");if(o&&s)try{const l=JSON.parse(s);r({type:"RESTORE_SESSION",payload:{user:l,token:o}})}catch{localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user")}},[]);const n=async(o,s)=>{try{const l={id:"1",name:"مدیر کل",email:o,role:"admin",permissions:[1,2,3,4,5,10,15,20,22,25,30],status:"active",createdAt:new Date().toISOString(),lastLogin:new Date().toISOString()},u="mock-jwt-token-"+Date.now();return o==="admin@test.com"&&s==="admin123"?(localStorage.setItem("admin_token",u),localStorage.setItem("admin_user",JSON.stringify(l)),r({type:"LOGIN_SUCCESS",payload:{user:l,token:u}}),!0):!1}catch(l){return console.error("Login error:",l),!1}},i=()=>{localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user"),r({type:"LOGOUT"})},a=o=>t.permissions.includes(o);return g.jsx(uk.Provider,{value:{...t,login:n,logout:i,hasPermission:a},children:e})},Nu=()=>{const e=j.useContext(uk);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},ck=j.createContext(void 0),HM=({children:e})=>{const[t,r]=j.useState("light");j.useEffect(()=>{const i=localStorage.getItem("admin_theme"),a=window.matchMedia("(prefers-color-scheme: dark)").matches,o=i||(a?"dark":"light");r(o),o==="dark"&&document.documentElement.classList.add("dark")},[]);const n=()=>{const i=t==="light"?"dark":"light";r(i),localStorage.setItem("admin_theme",i),i==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};return g.jsx(ck.Provider,{value:{mode:t,toggleTheme:n},children:e})},qM=()=>{const e=j.useContext(ck);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};let KM={data:""},GM=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||KM,XM=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,YM=/\/\*[^]*?\*\/| +/g,Lb=/\n+/g,li=(e,t)=>{let r="",n="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":n+=a[1]=="f"?li(o,a):a+"{"+li(o,a[1]=="k"?"":t)+"}":typeof o=="object"?n+=li(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=li.p?li.p(a,o):a+":"+o+";")}return r+(t&&i?t+"{"+i+"}":i)+n},gn={},fk=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+fk(e[r]);return t}return e},QM=(e,t,r,n,i)=>{let a=fk(e),o=gn[a]||(gn[a]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(a));if(!gn[o]){let l=a!==e?e:(u=>{let f,c,d=[{}];for(;f=XM.exec(u.replace(YM,""));)f[4]?d.shift():f[3]?(c=f[3].replace(Lb," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][f[1]]=f[2].replace(Lb," ").trim();return d[0]})(e);gn[o]=li(i?{["@keyframes "+o]:l}:l,r?"":"."+o)}let s=r&&gn.g?gn.g:null;return r&&(gn.g=gn[o]),((l,u,f,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(gn[o],t,n,s),o},ZM=(e,t,r)=>e.reduce((n,i,a)=>{let o=t[a];if(o&&o.call){let s=o(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":li(s,""):s===!1?"":s}return n+i+(o??"")},"");function Zd(e){let t=this||{},r=e.call?e(t.p):e;return QM(r.unshift?r.raw?ZM(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,GM(t.target),t.g,t.o,t.k)}let dk,fm,dm;Zd.bind({g:1});let zn=Zd.bind({k:1});function JM(e,t,r,n){li.p=t,dk=e,fm=r,dm=n}function Ri(e,t){let r=this||{};return function(){let n=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;r.p=Object.assign({theme:fm&&fm()},s),r.o=/ *go\d+/.test(l),s.className=Zd.apply(r,n)+(l?" "+l:""),t&&(s.ref=o);let u=e;return e[0]&&(u=s.as||e,delete s.as),dm&&u[0]&&dm(s),dk(u,s)}return t?t(i):i}}var eI=e=>typeof e=="function",_f=(e,t)=>eI(e)?e(t):e,tI=(()=>{let e=0;return()=>(++e).toString()})(),hk=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),rI=20,pk=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,rI)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return pk(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:n}=t;return{...e,toasts:e.toasts.map(a=>a.id===n||n===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},Vc=[],ea={toasts:[],pausedAt:void 0},Ta=e=>{ea=pk(ea,e),Vc.forEach(t=>{t(ea)})},nI={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},iI=(e={})=>{let[t,r]=j.useState(ea),n=j.useRef(ea);j.useEffect(()=>(n.current!==ea&&r(ea),Vc.push(r),()=>{let a=Vc.indexOf(r);a>-1&&Vc.splice(a,1)}),[]);let i=t.toasts.map(a=>{var o,s,l;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((o=e[a.type])==null?void 0:o.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((s=e[a.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||nI[a.type],style:{...e.style,...(l=e[a.type])==null?void 0:l.style,...a.style}}});return{...t,toasts:i}},aI=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||tI()}),Mu=e=>(t,r)=>{let n=aI(t,e,r);return Ta({type:2,toast:n}),n.id},Lt=(e,t)=>Mu("blank")(e,t);Lt.error=Mu("error");Lt.success=Mu("success");Lt.loading=Mu("loading");Lt.custom=Mu("custom");Lt.dismiss=e=>{Ta({type:3,toastId:e})};Lt.remove=e=>Ta({type:4,toastId:e});Lt.promise=(e,t,r)=>{let n=Lt.loading(t.loading,{...r,...r==null?void 0:r.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let a=t.success?_f(t.success,i):void 0;return a?Lt.success(a,{id:n,...r,...r==null?void 0:r.success}):Lt.dismiss(n),i}).catch(i=>{let a=t.error?_f(t.error,i):void 0;a?Lt.error(a,{id:n,...r,...r==null?void 0:r.error}):Lt.dismiss(n)}),e};var oI=(e,t)=>{Ta({type:1,toast:{id:e,height:t}})},sI=()=>{Ta({type:5,time:Date.now()})},dl=new Map,lI=1e3,uI=(e,t=lI)=>{if(dl.has(e))return;let r=setTimeout(()=>{dl.delete(e),Ta({type:4,toastId:e})},t);dl.set(e,r)},cI=e=>{let{toasts:t,pausedAt:r}=iI(e);j.useEffect(()=>{if(r)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&Lt.dismiss(s.id);return}return setTimeout(()=>Lt.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,r]);let n=j.useCallback(()=>{r&&Ta({type:6,time:Date.now()})},[r]),i=j.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=o||{},f=t.filter(h=>(h.position||u)===(a.position||u)&&h.height),c=f.findIndex(h=>h.id===a.id),d=f.filter((h,y)=>y<c&&h.visible).length;return f.filter(h=>h.visible).slice(...s?[d+1]:[0,d]).reduce((h,y)=>h+(y.height||0)+l,0)},[t]);return j.useEffect(()=>{t.forEach(a=>{if(a.dismissed)uI(a.id,a.removeDelay);else{let o=dl.get(a.id);o&&(clearTimeout(o),dl.delete(a.id))}})},[t]),{toasts:t,handlers:{updateHeight:oI,startPause:sI,endPause:n,calculateOffset:i}}},fI=zn`
|
||
from {
|
||
transform: scale(0) rotate(45deg);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1) rotate(45deg);
|
||
opacity: 1;
|
||
}`,dI=zn`
|
||
from {
|
||
transform: scale(0);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
}`,hI=zn`
|
||
from {
|
||
transform: scale(0) rotate(90deg);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1) rotate(90deg);
|
||
opacity: 1;
|
||
}`,pI=Ri("div")`
|
||
width: 20px;
|
||
opacity: 0;
|
||
height: 20px;
|
||
border-radius: 10px;
|
||
background: ${e=>e.primary||"#ff4b4b"};
|
||
position: relative;
|
||
transform: rotate(45deg);
|
||
|
||
animation: ${fI} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||
forwards;
|
||
animation-delay: 100ms;
|
||
|
||
&:after,
|
||
&:before {
|
||
content: '';
|
||
animation: ${dI} 0.15s ease-out forwards;
|
||
animation-delay: 150ms;
|
||
position: absolute;
|
||
border-radius: 3px;
|
||
opacity: 0;
|
||
background: ${e=>e.secondary||"#fff"};
|
||
bottom: 9px;
|
||
left: 4px;
|
||
height: 2px;
|
||
width: 12px;
|
||
}
|
||
|
||
&:before {
|
||
animation: ${hI} 0.15s ease-out forwards;
|
||
animation-delay: 180ms;
|
||
transform: rotate(90deg);
|
||
}
|
||
`,yI=zn`
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`,mI=Ri("div")`
|
||
width: 12px;
|
||
height: 12px;
|
||
box-sizing: border-box;
|
||
border: 2px solid;
|
||
border-radius: 100%;
|
||
border-color: ${e=>e.secondary||"#e0e0e0"};
|
||
border-right-color: ${e=>e.primary||"#616161"};
|
||
animation: ${yI} 1s linear infinite;
|
||
`,vI=zn`
|
||
from {
|
||
transform: scale(0) rotate(45deg);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1) rotate(45deg);
|
||
opacity: 1;
|
||
}`,gI=zn`
|
||
0% {
|
||
height: 0;
|
||
width: 0;
|
||
opacity: 0;
|
||
}
|
||
40% {
|
||
height: 0;
|
||
width: 6px;
|
||
opacity: 1;
|
||
}
|
||
100% {
|
||
opacity: 1;
|
||
height: 10px;
|
||
}`,xI=Ri("div")`
|
||
width: 20px;
|
||
opacity: 0;
|
||
height: 20px;
|
||
border-radius: 10px;
|
||
background: ${e=>e.primary||"#61d345"};
|
||
position: relative;
|
||
transform: rotate(45deg);
|
||
|
||
animation: ${vI} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||
forwards;
|
||
animation-delay: 100ms;
|
||
&:after {
|
||
content: '';
|
||
box-sizing: border-box;
|
||
animation: ${gI} 0.2s ease-out forwards;
|
||
opacity: 0;
|
||
animation-delay: 200ms;
|
||
position: absolute;
|
||
border-right: 2px solid;
|
||
border-bottom: 2px solid;
|
||
border-color: ${e=>e.secondary||"#fff"};
|
||
bottom: 6px;
|
||
left: 6px;
|
||
height: 10px;
|
||
width: 6px;
|
||
}
|
||
`,bI=Ri("div")`
|
||
position: absolute;
|
||
`,wI=Ri("div")`
|
||
position: relative;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
min-width: 20px;
|
||
min-height: 20px;
|
||
`,SI=zn`
|
||
from {
|
||
transform: scale(0.6);
|
||
opacity: 0.4;
|
||
}
|
||
to {
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
}`,OI=Ri("div")`
|
||
position: relative;
|
||
transform: scale(0.6);
|
||
opacity: 0.4;
|
||
min-width: 20px;
|
||
animation: ${SI} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||
forwards;
|
||
`,_I=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?j.createElement(OI,null,t):t:r==="blank"?null:j.createElement(wI,null,j.createElement(mI,{...n}),r!=="loading"&&j.createElement(bI,null,r==="error"?j.createElement(pI,{...n}):j.createElement(xI,{...n})))},PI=e=>`
|
||
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
||
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
||
`,AI=e=>`
|
||
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
||
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
||
`,kI="0%{opacity:0;} 100%{opacity:1;}",jI="0%{opacity:1;} 100%{opacity:0;}",EI=Ri("div")`
|
||
display: flex;
|
||
align-items: center;
|
||
background: #fff;
|
||
color: #363636;
|
||
line-height: 1.3;
|
||
will-change: transform;
|
||
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
||
max-width: 350px;
|
||
pointer-events: auto;
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
`,$I=Ri("div")`
|
||
display: flex;
|
||
justify-content: center;
|
||
margin: 4px 10px;
|
||
color: inherit;
|
||
flex: 1 1 auto;
|
||
white-space: pre-line;
|
||
`,TI=(e,t)=>{let r=e.includes("top")?1:-1,[n,i]=hk()?[kI,jI]:[PI(r),AI(r)];return{animation:t?`${zn(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${zn(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},CI=j.memo(({toast:e,position:t,style:r,children:n})=>{let i=e.height?TI(e.position||t||"top-center",e.visible):{opacity:0},a=j.createElement(_I,{toast:e}),o=j.createElement($I,{...e.ariaProps},_f(e.message,e));return j.createElement(EI,{className:e.className,style:{...i,...r,...e.style}},typeof n=="function"?n({icon:a,message:o}):j.createElement(j.Fragment,null,a,o))});JM(j.createElement);var NI=({id:e,className:t,style:r,onHeightUpdate:n,children:i})=>{let a=j.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;n(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return j.createElement("div",{ref:a,className:t,style:r},i)},MI=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:hk()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...i}},II=Zd`
|
||
z-index: 9999;
|
||
> * {
|
||
pointer-events: auto;
|
||
}
|
||
`,pc=16,DI=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=cI(r);return j.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:pc,left:pc,right:pc,bottom:pc,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(u=>{let f=u.position||t,c=l.calculateOffset(u,{reverseOrder:e,gutter:n,defaultPosition:t}),d=MI(f,c);return j.createElement(NI,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?II:"",style:d},u.type==="custom"?_f(u.message,u):i?i(u):j.createElement(CI,{toast:u,position:f}))}))},ri=Lt;const RI=j.createContext(void 0),ei={duration:4e3,position:"top-center",style:{fontFamily:"inherit",direction:"rtl"}},LI=({children:e})=>{const t=(l,u)=>{ri.success(l,{...ei,...u})},r=(l,u)=>{ri.error(l,{...ei,...u})},n=(l,u)=>{ri(l,{...ei,icon:"⚠️",style:{...ei.style,backgroundColor:"#fef3c7",color:"#92400e"},...u})},i=(l,u)=>{ri(l,{...ei,icon:"ℹ️",style:{...ei.style,backgroundColor:"#dbeafe",color:"#1e40af"},...u})},a=(l,u)=>ri.loading(l,{...ei,...u}),o=l=>{ri.dismiss(l)},s=(l,u,f)=>ri.promise(l,u,{...ei,...f});return g.jsxs(RI.Provider,{value:{success:t,error:r,warning:n,info:i,loading:a,dismiss:o,promise:s},children:[e,g.jsx(DI,{position:"top-center",reverseOrder:!1,gutter:8,containerStyle:{direction:"rtl"},toastOptions:{duration:4e3,style:{background:"var(--toast-bg)",color:"var(--toast-color)",fontFamily:"inherit",direction:"rtl"},success:{iconTheme:{primary:"#10b981",secondary:"#ffffff"}},error:{iconTheme:{primary:"#ef4444",secondary:"#ffffff"}}}})]})};var FI={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"};const BI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zI=(e,t)=>{const r=j.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,children:s,...l},u)=>j.createElement("svg",{ref:u,...FI,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:`lucide lucide-${BI(e)}`,...l},[...t.map(([f,c])=>j.createElement(f,c)),...(Array.isArray(s)?s:[s])||[]]));return r.displayName=`${e}`,r};var he=zI;const Np=he("AlertCircle",[["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"}]]),UI=he("AlertTriangle",[["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-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),hl=he("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]),VI=he("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["polyline",{points:"22 4 12 14.01 9 11.01",key:"6xbx8j"}]]),Fb=he("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),yk=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),WI=he("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),HI=he("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),qI=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),mk=he("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),KI=he("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),GI=he("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),XI=he("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),hm=he("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),Hg=he("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]),YI=he("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]),QI=he("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),vk=he("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),Bb=he("Lock",[["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"}]]),ZI=he("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),gk=he("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),JI=he("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),eD=he("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Mp=he("Package",[["path",{d:"M16.5 9.4 7.55 4.24",key:"10qotr"}],["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),tD=he("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),qg=he("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),rD=he("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Jd=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Kg=he("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]),pm=he("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),nD=he("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),iD=he("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]),Wl=he("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),aD=he("UserCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]),xk=he("User",[["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"}]]),Gg=he("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),zb=he("XCircle",[["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"}]]),Xg=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function bk(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=bk(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ue(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=bk(e))&&(n&&(n+=" "),n+=t);return n}const je=({children:e,variant:t="primary",size:r="md",disabled:n=!1,loading:i=!1,onClick:a,type:o="button",className:s=""})=>{const l="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",u={primary:"bg-primary-600 hover:bg-primary-700 text-white focus:ring-primary-500",secondary:"bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-900 dark:text-gray-100 focus:ring-gray-500",danger:"bg-red-600 hover:bg-red-700 text-white focus:ring-red-500",success:"bg-green-600 hover:bg-green-700 text-white focus:ring-green-500"},f={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},c=n||i?"opacity-50 cursor-not-allowed pointer-events-none":"";return g.jsxs("button",{type:o,onClick:a,disabled:n||i,className:ue(l,u[t],f[r],c,s),children:[i&&g.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e]})};class oD extends j.Component{constructor(r){super(r);Ku(this,"logErrorToService",(r,n)=>{console.log("Error logged to service:",{error:r,errorInfo:n})});Ku(this,"handleRetry",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})});Ku(this,"handleGoHome",()=>{window.location.href="/"});this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,n){this.setState({error:r,errorInfo:n}),console.error("ErrorBoundary caught an error:",r,n),this.logErrorToService(r,n)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:g.jsx("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center p-4",children:g.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 text-center",children:[g.jsx("div",{className:"mb-4",children:g.jsx(UI,{className:"h-16 w-16 text-red-500 mx-auto"})}),g.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-gray-100 mb-2",children:"خطایی رخ داده است"}),g.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:"متأسفانه مشکلی در برنامه رخ داده است. لطفاً دوباره تلاش کنید یا با پشتیبانی تماس بگیرید."}),!1,g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[g.jsxs(je,{onClick:this.handleRetry,className:"flex-1",variant:"primary",children:[g.jsx(rD,{className:"h-4 w-4 ml-2"}),"تلاش دوباره"]}),g.jsxs(je,{onClick:this.handleGoHome,className:"flex-1",variant:"secondary",children:[g.jsx(YI,{className:"h-4 w-4 ml-2"}),"بازگشت به خانه"]})]})]})}):this.props.children}}const sD=new LM({defaultOptions:{queries:{retry:(e,t)=>{var r,n,i;return((r=t==null?void 0:t.response)==null?void 0:r.status)===404||((n=t==null?void 0:t.response)==null?void 0:n.status)===403||((i=t==null?void 0:t.response)==null?void 0:i.status)===401?!1:e<2},staleTime:5*60*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0},mutations:{onError:e=>{var r,n;const t=((n=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:n.message)||(e==null?void 0:e.message)||"خطایی رخ داده است";ri.error(t)}}}});var Iu=e=>e.type==="checkbox",ta=e=>e instanceof Date,Dt=e=>e==null;const wk=e=>typeof e=="object";var et=e=>!Dt(e)&&!Array.isArray(e)&&wk(e)&&!ta(e),lD=e=>et(e)&&e.target?Iu(e.target)?e.target.checked:e.target.value:e,uD=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,cD=(e,t)=>e.has(uD(t)),fD=e=>{const t=e.constructor&&e.constructor.prototype;return et(t)&&t.hasOwnProperty("isPrototypeOf")},Yg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function kt(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Yg&&(e instanceof Blob||n))&&(r||et(e)))if(t=r?[]:{},!r&&!fD(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=kt(e[i]));else return e;return t}var eh=e=>Array.isArray(e)?e.filter(Boolean):[],rt=e=>e===void 0,re=(e,t,r)=>{if(!t||!et(e))return r;const n=eh(t.split(/[,[\].]+?/)).reduce((i,a)=>Dt(i)?i:i[a],e);return rt(n)||n===e?rt(e[t])?r:e[t]:n},Zr=e=>typeof e=="boolean",Qg=e=>/^\w*$/.test(e),Sk=e=>eh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ae=(e,t,r)=>{let n=-1;const i=Qg(t)?[t]:Sk(t),a=i.length,o=a-1;for(;++n<a;){const s=i[n];let l=r;if(n!==o){const u=e[s];l=et(u)||Array.isArray(u)?u:isNaN(+i[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const Ub={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ur={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};k.createContext(null);var dD=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ur.all&&(t._proxyFormState[o]=!n||Ur.all),r&&(r[o]=!0),e[o]}});return i};const hD=typeof window<"u"?j.useLayoutEffect:j.useEffect;var an=e=>typeof e=="string",pD=(e,t,r,n,i)=>an(e)?(n&&t.watch.add(e),re(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),re(r,a))):(n&&(t.watchAll=!0),r),Ok=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},pl=e=>Array.isArray(e)?e:[e],Vb=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},ym=e=>Dt(e)||!wk(e);function ui(e,t){if(ym(e)||ym(t))return e===t;if(ta(e)&&ta(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const a=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const o=t[i];if(ta(a)&&ta(o)||et(a)&&et(o)||Array.isArray(a)&&Array.isArray(o)?!ui(a,o):a!==o)return!1}}return!0}var qt=e=>et(e)&&!Object.keys(e).length,Zg=e=>e.type==="file",Vr=e=>typeof e=="function",Pf=e=>{if(!Yg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},_k=e=>e.type==="select-multiple",Jg=e=>e.type==="radio",yD=e=>Jg(e)||Iu(e),Ip=e=>Pf(e)&&e.isConnected;function mD(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=rt(e)?n++:e[t[n++]];return e}function vD(e){for(const t in e)if(e.hasOwnProperty(t)&&!rt(e[t]))return!1;return!0}function ot(e,t){const r=Array.isArray(t)?t:Qg(t)?[t]:Sk(t),n=r.length===1?e:mD(e,r),i=r.length-1,a=r[i];return n&&delete n[a],i!==0&&(et(n)&&qt(n)||Array.isArray(n)&&vD(n))&&ot(e,r.slice(0,-1)),e}var Pk=e=>{for(const t in e)if(Vr(e[t]))return!0;return!1};function Af(e,t={}){const r=Array.isArray(e);if(et(e)||r)for(const n in e)Array.isArray(e[n])||et(e[n])&&!Pk(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Af(e[n],t[n])):Dt(e[n])||(t[n]=!0);return t}function Ak(e,t,r){const n=Array.isArray(e);if(et(e)||n)for(const i in e)Array.isArray(e[i])||et(e[i])&&!Pk(e[i])?rt(t)||ym(r[i])?r[i]=Array.isArray(e[i])?Af(e[i],[]):{...Af(e[i])}:Ak(e[i],Dt(t)?{}:t[i],r[i]):r[i]=!ui(e[i],t[i]);return r}var Fs=(e,t)=>Ak(e,t,Af(t));const Wb={value:!1,isValid:!1},Hb={value:!0,isValid:!0};var kk=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!rt(e[0].attributes.value)?rt(e[0].value)||e[0].value===""?Hb:{value:e[0].value,isValid:!0}:Hb:Wb}return Wb},jk=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>rt(e)?e:t?e===""?NaN:e&&+e:r&&an(e)?new Date(e):n?n(e):e;const qb={isValid:!1,value:null};var Ek=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,qb):qb;function Kb(e){const t=e.ref;return Zg(t)?t.files:Jg(t)?Ek(e.refs).value:_k(t)?[...t.selectedOptions].map(({value:r})=>r):Iu(t)?kk(e.refs).value:jk(rt(t.value)?e.ref.value:t.value,e)}var gD=(e,t,r,n)=>{const i={};for(const a of e){const o=re(t,a);o&&Ae(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},kf=e=>e instanceof RegExp,Bs=e=>rt(e)?e:kf(e)?e.source:et(e)?kf(e.value)?e.value.source:e.value:e,Gb=e=>({isOnSubmit:!e||e===Ur.onSubmit,isOnBlur:e===Ur.onBlur,isOnChange:e===Ur.onChange,isOnAll:e===Ur.all,isOnTouch:e===Ur.onTouched});const Xb="AsyncFunction";var xD=e=>!!e&&!!e.validate&&!!(Vr(e.validate)&&e.validate.constructor.name===Xb||et(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xb)),bD=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Yb=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const yl=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=re(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(yl(s,t))break}else if(et(s)&&yl(s,t))break}}};function Qb(e,t,r){const n=re(e,r);if(n||Qg(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=re(t,a),s=re(e,a);if(o&&!Array.isArray(o)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};i.pop()}return{name:r}}var wD=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return qt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||Ur.all))},SD=(e,t,r)=>!e||!t||e===t||pl(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),OD=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,_D=(e,t)=>!eh(re(e,t)).length&&ot(e,t),PD=(e,t,r)=>{const n=pl(re(e,r));return Ae(n,"root",t[r]),Ae(e,r,n),e},Wc=e=>an(e);function Zb(e,t,r="validate"){if(Wc(e)||Array.isArray(e)&&e.every(Wc)||Zr(e)&&!e)return{type:r,message:Wc(e)?e:"",ref:t}}var Ba=e=>et(e)&&!kf(e)?e:{value:e,message:""},Jb=async(e,t,r,n,i,a)=>{const{ref:o,refs:s,required:l,maxLength:u,minLength:f,min:c,max:d,pattern:h,validate:y,name:p,valueAsNumber:b,mount:x}=e._f,m=re(r,p);if(!x||t.has(p))return{};const v=s?s[0]:o,O=T=>{i&&v.reportValidity&&(v.setCustomValidity(Zr(T)?"":T||""),v.reportValidity())},w={},S=Jg(o),_=Iu(o),P=S||_,A=(b||Zg(o))&&rt(o.value)&&rt(m)||Pf(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,C=Ok.bind(null,p,n,w),E=(T,N,D,R=xn.maxLength,L=xn.minLength)=>{const V=T?N:D;w[p]={type:T?R:L,message:V,ref:o,...C(T?R:L,V)}};if(a?!Array.isArray(m)||!m.length:l&&(!P&&(A||Dt(m))||Zr(m)&&!m||_&&!kk(s).isValid||S&&!Ek(s).isValid)){const{value:T,message:N}=Wc(l)?{value:!!l,message:l}:Ba(l);if(T&&(w[p]={type:xn.required,message:N,ref:v,...C(xn.required,N)},!n))return O(N),w}if(!A&&(!Dt(c)||!Dt(d))){let T,N;const D=Ba(d),R=Ba(c);if(!Dt(m)&&!isNaN(m)){const L=o.valueAsNumber||m&&+m;Dt(D.value)||(T=L>D.value),Dt(R.value)||(N=L<R.value)}else{const L=o.valueAsDate||new Date(m),V=H=>new Date(new Date().toDateString()+" "+H),I=o.type=="time",F=o.type=="week";an(D.value)&&m&&(T=I?V(m)>V(D.value):F?m>D.value:L>new Date(D.value)),an(R.value)&&m&&(N=I?V(m)<V(R.value):F?m<R.value:L<new Date(R.value))}if((T||N)&&(E(!!T,D.message,R.message,xn.max,xn.min),!n))return O(w[p].message),w}if((u||f)&&!A&&(an(m)||a&&Array.isArray(m))){const T=Ba(u),N=Ba(f),D=!Dt(T.value)&&m.length>+T.value,R=!Dt(N.value)&&m.length<+N.value;if((D||R)&&(E(D,T.message,N.message),!n))return O(w[p].message),w}if(h&&!A&&an(m)){const{value:T,message:N}=Ba(h);if(kf(T)&&!m.match(T)&&(w[p]={type:xn.pattern,message:N,ref:o,...C(xn.pattern,N)},!n))return O(N),w}if(y){if(Vr(y)){const T=await y(m,r),N=Zb(T,v);if(N&&(w[p]={...N,...C(xn.validate,N.message)},!n))return O(N.message),w}else if(et(y)){let T={};for(const N in y){if(!qt(T)&&!n)break;const D=Zb(await y[N](m,r),v,N);D&&(T={...D,...C(N,D.message)},O(D.message),n&&(w[p]=T))}if(!qt(T)&&(w[p]={ref:v,...T},!n))return w}}return O(!0),w};const AD={mode:Ur.onSubmit,reValidateMode:Ur.onChange,shouldFocusError:!0};function kD(e={}){let t={...AD,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Vr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const n={};let i=et(t.defaultValues)||et(t.values)?kt(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:kt(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...f};const d={array:Vb(),state:Vb()},h=t.criteriaMode===Ur.all,y=$=>M=>{clearTimeout(u),u=setTimeout($,M)},p=async $=>{if(!t.disabled&&(f.isValid||c.isValid||$)){const M=t.resolver?qt((await _()).errors):await A(n,!0);M!==r.isValid&&d.state.next({isValid:M})}},b=($,M)=>{!t.disabled&&(f.isValidating||f.validatingFields||c.isValidating||c.validatingFields)&&(($||Array.from(s.mount)).forEach(B=>{B&&(M?Ae(r.validatingFields,B,M):ot(r.validatingFields,B))}),d.state.next({validatingFields:r.validatingFields,isValidating:!qt(r.validatingFields)}))},x=($,M=[],B,J,Y=!0,G=!0)=>{if(J&&B&&!t.disabled){if(o.action=!0,G&&Array.isArray(re(n,$))){const ie=B(re(n,$),J.argA,J.argB);Y&&Ae(n,$,ie)}if(G&&Array.isArray(re(r.errors,$))){const ie=B(re(r.errors,$),J.argA,J.argB);Y&&Ae(r.errors,$,ie),_D(r.errors,$)}if((f.touchedFields||c.touchedFields)&&G&&Array.isArray(re(r.touchedFields,$))){const ie=B(re(r.touchedFields,$),J.argA,J.argB);Y&&Ae(r.touchedFields,$,ie)}(f.dirtyFields||c.dirtyFields)&&(r.dirtyFields=Fs(i,a)),d.state.next({name:$,isDirty:E($,M),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ae(a,$,M)},m=($,M)=>{Ae(r.errors,$,M),d.state.next({errors:r.errors})},v=$=>{r.errors=$,d.state.next({errors:r.errors,isValid:!1})},O=($,M,B,J)=>{const Y=re(n,$);if(Y){const G=re(a,$,rt(B)?re(i,$):B);rt(G)||J&&J.defaultChecked||M?Ae(a,$,M?G:Kb(Y._f)):D($,G),o.mount&&p()}},w=($,M,B,J,Y)=>{let G=!1,ie=!1;const Oe={name:$};if(!t.disabled){if(!B||J){(f.isDirty||c.isDirty)&&(ie=r.isDirty,r.isDirty=Oe.isDirty=E(),G=ie!==Oe.isDirty);const Te=ui(re(i,$),M);ie=!!re(r.dirtyFields,$),Te?ot(r.dirtyFields,$):Ae(r.dirtyFields,$,!0),Oe.dirtyFields=r.dirtyFields,G=G||(f.dirtyFields||c.dirtyFields)&&ie!==!Te}if(B){const Te=re(r.touchedFields,$);Te||(Ae(r.touchedFields,$,B),Oe.touchedFields=r.touchedFields,G=G||(f.touchedFields||c.touchedFields)&&Te!==B)}G&&Y&&d.state.next(Oe)}return G?Oe:{}},S=($,M,B,J)=>{const Y=re(r.errors,$),G=(f.isValid||c.isValid)&&Zr(M)&&r.isValid!==M;if(t.delayError&&B?(l=y(()=>m($,B)),l(t.delayError)):(clearTimeout(u),l=null,B?Ae(r.errors,$,B):ot(r.errors,$)),(B?!ui(Y,B):Y)||!qt(J)||G){const ie={...J,...G&&Zr(M)?{isValid:M}:{},errors:r.errors,name:$};r={...r,...ie},d.state.next(ie)}},_=async $=>{b($,!0);const M=await t.resolver(a,t.context,gD($||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b($),M},P=async $=>{const{errors:M}=await _($);if($)for(const B of $){const J=re(M,B);J?Ae(r.errors,B,J):ot(r.errors,B)}else r.errors=M;return M},A=async($,M,B={valid:!0})=>{for(const J in $){const Y=$[J];if(Y){const{_f:G,...ie}=Y;if(G){const Oe=s.array.has(G.name),Te=Y._f&&xD(Y._f);Te&&f.validatingFields&&b([J],!0);const pr=await Jb(Y,s.disabled,a,h,t.shouldUseNativeValidation&&!M,Oe);if(Te&&f.validatingFields&&b([J]),pr[G.name]&&(B.valid=!1,M))break;!M&&(re(pr,G.name)?Oe?PD(r.errors,pr,G.name):Ae(r.errors,G.name,pr[G.name]):ot(r.errors,G.name))}!qt(ie)&&await A(ie,M,B)}}return B.valid},C=()=>{for(const $ of s.unMount){const M=re(n,$);M&&(M._f.refs?M._f.refs.every(B=>!Ip(B)):!Ip(M._f.ref))&&St($)}s.unMount=new Set},E=($,M)=>!t.disabled&&($&&M&&Ae(a,$,M),!ui(H(),i)),T=($,M,B)=>pD($,s,{...o.mount?a:rt(M)?i:an($)?{[$]:M}:M},B,M),N=$=>eh(re(o.mount?a:i,$,t.shouldUnregister?re(i,$,[]):[])),D=($,M,B={})=>{const J=re(n,$);let Y=M;if(J){const G=J._f;G&&(!G.disabled&&Ae(a,$,jk(M,G)),Y=Pf(G.ref)&&Dt(M)?"":M,_k(G.ref)?[...G.ref.options].forEach(ie=>ie.selected=Y.includes(ie.value)):G.refs?Iu(G.ref)?G.refs.forEach(ie=>{(!ie.defaultChecked||!ie.disabled)&&(Array.isArray(Y)?ie.checked=!!Y.find(Oe=>Oe===ie.value):ie.checked=Y===ie.value||!!Y)}):G.refs.forEach(ie=>ie.checked=ie.value===Y):Zg(G.ref)?G.ref.value="":(G.ref.value=Y,G.ref.type||d.state.next({name:$,values:kt(a)})))}(B.shouldDirty||B.shouldTouch)&&w($,Y,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&F($)},R=($,M,B)=>{for(const J in M){if(!M.hasOwnProperty(J))return;const Y=M[J],G=$+"."+J,ie=re(n,G);(s.array.has($)||et(Y)||ie&&!ie._f)&&!ta(Y)?R(G,Y,B):D(G,Y,B)}},L=($,M,B={})=>{const J=re(n,$),Y=s.array.has($),G=kt(M);Ae(a,$,G),Y?(d.array.next({name:$,values:kt(a)}),(f.isDirty||f.dirtyFields||c.isDirty||c.dirtyFields)&&B.shouldDirty&&d.state.next({name:$,dirtyFields:Fs(i,a),isDirty:E($,G)})):J&&!J._f&&!Dt(G)?R($,G,B):D($,G,B),Yb($,s)&&d.state.next({...r}),d.state.next({name:o.mount?$:void 0,values:kt(a)})},V=async $=>{o.mount=!0;const M=$.target;let B=M.name,J=!0;const Y=re(n,B),G=Te=>{J=Number.isNaN(Te)||ta(Te)&&isNaN(Te.getTime())||ui(Te,re(a,B,Te))},ie=Gb(t.mode),Oe=Gb(t.reValidateMode);if(Y){let Te,pr;const qu=M.type?Kb(Y._f):lD($),Zn=$.type===Ub.BLUR||$.type===Ub.FOCUS_OUT,T$=!bD(Y._f)&&!t.resolver&&!re(r.errors,B)&&!Y._f.deps||OD(Zn,re(r.touchedFields,B),r.isSubmitted,Oe,ie),tp=Yb(B,s,Zn);Ae(a,B,qu),Zn?(Y._f.onBlur&&Y._f.onBlur($),l&&l(0)):Y._f.onChange&&Y._f.onChange($);const rp=w(B,qu,Zn),C$=!qt(rp)||tp;if(!Zn&&d.state.next({name:B,type:$.type,values:kt(a)}),T$)return(f.isValid||c.isValid)&&(t.mode==="onBlur"?Zn&&p():Zn||p()),C$&&d.state.next({name:B,...tp?{}:rp});if(!Zn&&tp&&d.state.next({...r}),t.resolver){const{errors:px}=await _([B]);if(G(qu),J){const N$=Qb(r.errors,n,B),yx=Qb(px,n,N$.name||B);Te=yx.error,B=yx.name,pr=qt(px)}}else b([B],!0),Te=(await Jb(Y,s.disabled,a,h,t.shouldUseNativeValidation))[B],b([B]),G(qu),J&&(Te?pr=!1:(f.isValid||c.isValid)&&(pr=await A(n,!0)));J&&(Y._f.deps&&F(Y._f.deps),S(B,pr,Te,rp))}},I=($,M)=>{if(re(r.errors,M)&&$.focus)return $.focus(),1},F=async($,M={})=>{let B,J;const Y=pl($);if(t.resolver){const G=await P(rt($)?$:Y);B=qt(G),J=$?!Y.some(ie=>re(G,ie)):B}else $?(J=(await Promise.all(Y.map(async G=>{const ie=re(n,G);return await A(ie&&ie._f?{[G]:ie}:ie)}))).every(Boolean),!(!J&&!r.isValid)&&p()):J=B=await A(n);return d.state.next({...!an($)||(f.isValid||c.isValid)&&B!==r.isValid?{}:{name:$},...t.resolver||!$?{isValid:B}:{},errors:r.errors}),M.shouldFocus&&!J&&yl(n,I,$?Y:s.mount),J},H=$=>{const M={...o.mount?a:i};return rt($)?M:an($)?re(M,$):$.map(B=>re(M,B))},Q=($,M)=>({invalid:!!re((M||r).errors,$),isDirty:!!re((M||r).dirtyFields,$),error:re((M||r).errors,$),isValidating:!!re(r.validatingFields,$),isTouched:!!re((M||r).touchedFields,$)}),K=$=>{$&&pl($).forEach(M=>ot(r.errors,M)),d.state.next({errors:$?r.errors:{}})},ne=($,M,B)=>{const J=(re(n,$,{_f:{}})._f||{}).ref,Y=re(r.errors,$)||{},{ref:G,message:ie,type:Oe,...Te}=Y;Ae(r.errors,$,{...Te,...M,ref:J}),d.state.next({name:$,errors:r.errors,isValid:!1}),B&&B.shouldFocus&&J&&J.focus&&J.focus()},me=($,M)=>Vr($)?d.state.subscribe({next:B=>$(T(void 0,M),B)}):T($,M,!0),Ee=$=>d.state.subscribe({next:M=>{SD($.name,M.name,$.exact)&&wD(M,$.formState||f,Ot,$.reRenderRoot)&&$.callback({values:{...a},...r,...M})}}).unsubscribe,Ve=$=>(o.mount=!0,c={...c,...$.formState},Ee({...$,formState:c})),St=($,M={})=>{for(const B of $?pl($):s.mount)s.mount.delete(B),s.array.delete(B),M.keepValue||(ot(n,B),ot(a,B)),!M.keepError&&ot(r.errors,B),!M.keepDirty&&ot(r.dirtyFields,B),!M.keepTouched&&ot(r.touchedFields,B),!M.keepIsValidating&&ot(r.validatingFields,B),!t.shouldUnregister&&!M.keepDefaultValue&&ot(i,B);d.state.next({values:kt(a)}),d.state.next({...r,...M.keepDirty?{isDirty:E()}:{}}),!M.keepIsValid&&p()},vt=({disabled:$,name:M})=>{(Zr($)&&o.mount||$||s.disabled.has(M))&&($?s.disabled.add(M):s.disabled.delete(M))},Z=($,M={})=>{let B=re(n,$);const J=Zr(M.disabled)||Zr(t.disabled);return Ae(n,$,{...B||{},_f:{...B&&B._f?B._f:{ref:{name:$}},name:$,mount:!0,...M}}),s.mount.add($),B?vt({disabled:Zr(M.disabled)?M.disabled:t.disabled,name:$}):O($,!0,M.value),{...J?{disabled:M.disabled||t.disabled}:{},...t.progressive?{required:!!M.required,min:Bs(M.min),max:Bs(M.max),minLength:Bs(M.minLength),maxLength:Bs(M.maxLength),pattern:Bs(M.pattern)}:{},name:$,onChange:V,onBlur:V,ref:Y=>{if(Y){Z($,M),B=re(n,$);const G=rt(Y.value)&&Y.querySelectorAll&&Y.querySelectorAll("input,select,textarea")[0]||Y,ie=yD(G),Oe=B._f.refs||[];if(ie?Oe.find(Te=>Te===G):G===B._f.ref)return;Ae(n,$,{_f:{...B._f,...ie?{refs:[...Oe.filter(Ip),G,...Array.isArray(re(i,$))?[{}]:[]],ref:{type:G.type,name:$}}:{ref:G}}}),O($,!1,void 0,G)}else B=re(n,$,{}),B._f&&(B._f.mount=!1),(t.shouldUnregister||M.shouldUnregister)&&!(cD(s.array,$)&&o.action)&&s.unMount.add($)}}},le=()=>t.shouldFocusError&&yl(n,I,s.mount),de=$=>{Zr($)&&(d.state.next({disabled:$}),yl(n,(M,B)=>{const J=re(n,B);J&&(M.disabled=J._f.disabled||$,Array.isArray(J._f.refs)&&J._f.refs.forEach(Y=>{Y.disabled=J._f.disabled||$}))},0,!1))},W=($,M)=>async B=>{let J;B&&(B.preventDefault&&B.preventDefault(),B.persist&&B.persist());let Y=kt(a);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:G,values:ie}=await _();r.errors=G,Y=ie}else await A(n);if(s.disabled.size)for(const G of s.disabled)Ae(Y,G,void 0);if(ot(r.errors,"root"),qt(r.errors)){d.state.next({errors:{}});try{await $(Y,B)}catch(G){J=G}}else M&&await M({...r.errors},B),le(),setTimeout(le);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qt(r.errors)&&!J,submitCount:r.submitCount+1,errors:r.errors}),J)throw J},Be=($,M={})=>{re(n,$)&&(rt(M.defaultValue)?L($,kt(re(i,$))):(L($,M.defaultValue),Ae(i,$,kt(M.defaultValue))),M.keepTouched||ot(r.touchedFields,$),M.keepDirty||(ot(r.dirtyFields,$),r.isDirty=M.defaultValue?E($,kt(re(i,$))):E()),M.keepError||(ot(r.errors,$),f.isValid&&p()),d.state.next({...r}))},ye=($,M={})=>{const B=$?kt($):i,J=kt(B),Y=qt($),G=Y?i:J;if(M.keepDefaultValues||(i=B),!M.keepValues){if(M.keepDirtyValues){const ie=new Set([...s.mount,...Object.keys(Fs(i,a))]);for(const Oe of Array.from(ie))re(r.dirtyFields,Oe)?Ae(G,Oe,re(a,Oe)):L(Oe,re(G,Oe))}else{if(Yg&&rt($))for(const ie of s.mount){const Oe=re(n,ie);if(Oe&&Oe._f){const Te=Array.isArray(Oe._f.refs)?Oe._f.refs[0]:Oe._f.ref;if(Pf(Te)){const pr=Te.closest("form");if(pr){pr.reset();break}}}}for(const ie of s.mount)L(ie,re(G,ie))}a=kt(G),d.array.next({values:{...G}}),d.state.next({values:{...G}})}s={mount:M.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!f.isValid||!!M.keepIsValid||!!M.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:M.keepSubmitCount?r.submitCount:0,isDirty:Y?!1:M.keepDirty?r.isDirty:!!(M.keepDefaultValues&&!ui($,i)),isSubmitted:M.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Y?{}:M.keepDirtyValues?M.keepDefaultValues&&a?Fs(i,a):r.dirtyFields:M.keepDefaultValues&&$?Fs(i,$):M.keepDirty?r.dirtyFields:{},touchedFields:M.keepTouched?r.touchedFields:{},errors:M.keepErrors?r.errors:{},isSubmitSuccessful:M.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ge=($,M)=>ye(Vr($)?$(a):$,M),Ze=($,M={})=>{const B=re(n,$),J=B&&B._f;if(J){const Y=J.refs?J.refs[0]:J.ref;Y.focus&&(Y.focus(),M.shouldSelect&&Vr(Y.select)&&Y.select())}},Ot=$=>{r={...r,...$}},vn={control:{register:Z,unregister:St,getFieldState:Q,handleSubmit:W,setError:ne,_subscribe:Ee,_runSchema:_,_focusError:le,_getWatch:T,_getDirty:E,_setValid:p,_setFieldArray:x,_setDisabledField:vt,_setErrors:v,_getFieldArray:N,_reset:ye,_resetDefaultValues:()=>Vr(t.defaultValues)&&t.defaultValues().then($=>{Ge($,t.resetOptions),d.state.next({isLoading:!1})}),_removeUnmounted:C,_disableForm:de,_subjects:d,_proxyFormState:f,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state($){o=$},get _defaultValues(){return i},get _names(){return s},set _names($){s=$},get _formState(){return r},get _options(){return t},set _options($){t={...t,...$}}},subscribe:Ve,trigger:F,register:Z,handleSubmit:W,watch:me,setValue:L,getValues:H,reset:Ge,resetField:Be,clearErrors:K,unregister:St,setError:ne,setFocus:Ze,getFieldState:Q};return{...vn,formControl:vn}}function $k(e={}){const t=k.useRef(void 0),r=k.useRef(void 0),[n,i]=k.useState({isDirty:!1,isValidating:!1,isLoading:Vr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Vr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:kD(e),formState:n},e.formControl&&e.defaultValues&&!Vr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const a=t.current.control;return a._options=e,hD(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),a._formState.isReady=!0,o},[a]),k.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),k.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),k.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),k.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),k.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==n.isDirty&&a._subjects.state.next({isDirty:o})}},[a,n.isDirty]),k.useEffect(()=>{e.values&&!ui(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[a,e.values]),k.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=dD(n,a),t.current}const e1=(e,t,r)=>{if(e&&"reportValidity"in e){const n=re(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Tk=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?e1(n.ref,r,e):n&&n.refs&&n.refs.forEach(i=>e1(i,r,e))}},jD=(e,t)=>{t.shouldUseNativeValidation&&Tk(e,t);const r={};for(const n in e){const i=re(t.fields,n),a=Object.assign(e[n]||{},{ref:i&&i.ref});if(ED(t.names||Object.keys(e),n)){const o=Object.assign({},re(r,n));Ae(o,"root",a),Ae(r,n,o)}else Ae(r,n,a)}return r},ED=(e,t)=>{const r=t1(t);return e.some(n=>t1(n).match(`^${r}\\.\\d+`))};function t1(e){return e.replace(/\]|\[/g,"")}function Ck(e,t,r){return r===void 0&&(r={}),function(n,i,a){try{return Promise.resolve(function(o,s){try{var l=(t!=null&&t.context,Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:i}))).then(function(u){return a.shouldUseNativeValidation&&Tk({},a),{values:r.raw?Object.assign({},n):u,errors:{}}}))}catch(u){return s(u)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:jD((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(u,f){if(u[f.path]||(u[f.path]={message:f.message,type:f.type}),l){var c=u[f.path].types,d=c&&c[f.type];u[f.path]=Ok(f.path,l,u,f.type,d?[].concat(d,f.message):f.message)}return u},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}}const io=j.forwardRef(({label:e,error:t,type:r="text",placeholder:n,className:i,icon:a,disabled:o,...s},l)=>g.jsxs("div",{className:"space-y-1",children:[e&&g.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:e}),g.jsxs("div",{className:"relative",children:[a&&g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(a,{className:"h-5 w-5 text-gray-400"})}),g.jsx("input",{ref:l,type:r,placeholder:n,disabled:o,className:ue("input",a&&"pr-10",t&&"border-red-500 dark:border-red-500 focus:ring-red-500",o&&"opacity-50 cursor-not-allowed",i),...s})]}),t&&g.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t})]}));io.displayName="Input";function Ca(e){this._maxSize=e,this.clear()}Ca.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ca.prototype.get=function(e){return this._values[e]};Ca.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var $D=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Nk=/^\d+$/,TD=/^\d/,CD=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,ND=/^\s*(['"]?)(.*?)(\1)\s*$/,e0=512,r1=new Ca(e0),n1=new Ca(e0),i1=new Ca(e0),pa={Cache:Ca,split:mm,normalizePath:Dp,setter:function(e){var t=Dp(e);return n1.get(e)||n1.set(e,function(n,i){for(var a=0,o=t.length,s=n;a<o-1;){var l=t[a];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;s=s[t[a++]]}s[t[a]]=i})},getter:function(e,t){var r=Dp(e);return i1.get(e)||i1.set(e,function(i){for(var a=0,o=r.length;a<o;)if(i!=null||!t)i=i[r[a++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(t0(r)||Nk.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){MD(Array.isArray(e)?e:mm(e),t,r)}};function Dp(e){return r1.get(e)||r1.set(e,mm(e).map(function(t){return t.replace(ND,"$2")}))}function mm(e){return e.match($D)||[""]}function MD(e,t,r){var n=e.length,i,a,o,s;for(a=0;a<n;a++)i=e[a],i&&(RD(i)&&(i='"'+i+'"'),s=t0(i),o=!s&&/^\d+$/.test(i),t.call(r,i,s,o,a,e))}function t0(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function ID(e){return e.match(TD)&&!e.match(Nk)}function DD(e){return CD.test(e)}function RD(e){return!t0(e)&&(ID(e)||DD(e))}const LD=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,th=e=>e.match(LD)||[],rh=e=>e[0].toUpperCase()+e.slice(1),r0=(e,t)=>th(e).join(t).toLowerCase(),Mk=e=>th(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),FD=e=>rh(Mk(e)),BD=e=>r0(e,"_"),zD=e=>r0(e,"-"),UD=e=>rh(r0(e," ")),VD=e=>th(e).map(rh).join(" ");var Rp={words:th,upperFirst:rh,camelCase:Mk,pascalCase:FD,snakeCase:BD,kebabCase:zD,sentenceCase:UD,titleCase:VD},n0={exports:{}};n0.exports=function(e){return Ik(WD(e),e)};n0.exports.array=Ik;function Ik(e,t){var r=e.length,n=new Array(r),i={},a=r,o=HD(t),s=qD(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||l(e[a],a,new Set);return n;function l(u,f,c){if(c.has(u)){var d;try{d=", node was:"+JSON.stringify(u)}catch{d=""}throw new Error("Cyclic dependency"+d)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[f]){i[f]=!0;var h=o.get(u)||new Set;if(h=Array.from(h),f=h.length){c.add(u);do{var y=h[--f];l(y,s.get(y),c)}while(f);c.delete(u)}n[--r]=u}}}function WD(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}function HD(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function qD(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var KD=n0.exports;const GD=Se(KD),XD=Object.prototype.toString,YD=Error.prototype.toString,QD=RegExp.prototype.toString,ZD=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",JD=/^Symbol\((.*)\)(.*)$/;function eR(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function a1(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return eR(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return ZD.call(e).replace(JD,"Symbol($1)");const n=XD.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+YD.call(e)+"]":n==="RegExp"?QD.call(e):null}function Ei(e,t){let r=a1(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let a=a1(this[n],t);return a!==null?a:i},2)}function Dk(e){return e==null?[]:[].concat(e)}let Rk,Lk,Fk,tR=/\$\{\s*(\w+)\s*\}/g;Rk=Symbol.toStringTag;class o1{constructor(t,r,n,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Rk]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],Dk(t).forEach(a=>{if(Gt.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Lk=Symbol.hasInstance;Fk=Symbol.toStringTag;class Gt extends Error{static formatError(t,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof t=="string"?t.replace(tR,(i,a)=>Ei(r[a])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,a){const o=new o1(t,r,n,i);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Fk]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Gt)}static[Lk](t){return o1[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Jr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${Ei(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ei(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Ei(r,!0)}\``+i}},Ht={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},rR={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},vm={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},nR={isValue:"${path} field must be ${value}"},Hc={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},iR={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},aR={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${Ei(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${Ei(r,!0)}\``}return Gt.formatError(Jr.notType,e)}};Object.assign(Object.create(null),{mixed:Jr,string:Ht,number:rR,date:vm,object:Hc,array:iR,boolean:nR,tuple:aR});const i0=e=>e&&e.__isYupSchema__;class jf{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:a}=r,o=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new jf(t,(s,l)=>{var u;let f=o(...s)?i:a;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(a=>a.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!i0(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const yc={context:"$",value:"."};class Na{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===yc.context,this.isValue=this.key[0]===yc.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?yc.context:this.isValue?yc.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&pa.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Na.prototype.__isYupRef=!0;const ra=e=>e==null;function za(e){function t({value:r,path:n="",options:i,originalValue:a,schema:o},s,l){const{name:u,test:f,params:c,message:d,skipAbsent:h}=e;let{parent:y,context:p,abortEarly:b=o.spec.abortEarly,disableStackTrace:x=o.spec.disableStackTrace}=i;function m(E){return Na.isRef(E)?E.getValue(r,y,p):E}function v(E={}){const T=Object.assign({value:r,originalValue:a,label:o.spec.label,path:E.path||n,spec:o.spec,disableStackTrace:E.disableStackTrace||x},c,E.params);for(const D of Object.keys(T))T[D]=m(T[D]);const N=new Gt(Gt.formatError(E.message||d,T),r,T.path,E.type||u,T.disableStackTrace);return N.params=T,N}const O=b?s:l;let w={path:n,parent:y,type:u,from:i.from,createError:v,resolve:m,options:i,originalValue:a,schema:o};const S=E=>{Gt.isError(E)?O(E):E?l(null):O(v())},_=E=>{Gt.isError(E)?O(E):s(E)};if(h&&ra(r))return S(!0);let A;try{var C;if(A=f.call(w,r,w),typeof((C=A)==null?void 0:C.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(A).then(S,_)}}catch(E){_(E);return}S(A)}return t.OPTIONS=e,t}function oR(e,t,r,n=r){let i,a,o;return t?(pa.forEach(t,(s,l,u)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:i,value:r});let c=e.type==="tuple",d=u?parseInt(f,10):0;if(e.innerType||c){if(c&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&d>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[d],e=c?e.spec.types[d]:e.innerType}if(!u){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=r,r=r&&r[f],e=e.fields[f]}a=f,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class Ef extends Set{describe(){const t=[];for(const r of this.values())t.push(Na.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new Ef(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function ao(e,t=new Map){if(i0(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=ao(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,ao(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(ao(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=ao(i,t)}else throw Error(`Unable to clone ${e}`);return r}class dn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ef,this._blacklist=new Ef,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Jr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=ao(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,a)=>a.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,a;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",a=n._cast(t,r);if(r.assert!==!1&&!n.isType(a)){if(i&&ra(a))return a;let o=Ei(t),s=Ei(a);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
|
||
|
||
attempted value: ${o}
|
||
`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:a,originalValue:o=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:a,value:l,originalValue:o,options:r,tests:u},n,f=>{if(f.length)return i(f,l);this.runTests({path:a,value:l,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:u}=t,f=p=>{i||(i=!0,r(p,o))},c=p=>{i||(i=!0,n(p,o))},d=a.length,h=[];if(!d)return c([]);let y={value:o,originalValue:s,path:l,options:u,schema:this};for(let p=0;p<a.length;p++){const b=a[p];b(y,f,function(m){m&&(Array.isArray(m)?h.push(...m):h.push(m)),--d<=0&&c(h)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:a,options:o}){const s=t??r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=n[s];const f=Object.assign({},o,{strict:!0,parent:n,value:u,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(c,d,h)=>this.resolve(f)._validate(u,f,d,h)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,s)=>i._validate(t,r,(l,u)=>{Gt.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new Gt(l,u,void 0,void 0,a)):o(u)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw Gt.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Gt(s,t,void 0,void 0,o);a=l}),a}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Gt.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Gt.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):ao(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=za({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=za({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Jr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Jr.notNull){return this.nullability(!1,t)}required(t=Jr.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Jr.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=za(r),a=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=Dk(t).map(a=>new Na(a));return i.forEach(a=>{a.isSibling&&n.deps.push(a.key)}),n.conditions.push(typeof r=="function"?new jf(i,r):jf.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=za({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Jr.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=za({message:r,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),n}notOneOf(t,r=Jr.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=za({message:r,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:a,nullable:o}=r.spec;return{meta:i,label:n,optional:a,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(c=>c.name===l.name)===u)}}}dn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])dn.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:a,schema:o}=oR(this,t,r,n.context);return o[e](i&&i[a],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])dn.prototype[e]=dn.prototype.oneOf;for(const e of["not","nope"])dn.prototype[e]=dn.prototype.notOneOf;const sR=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function lR(e){const t=gm(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function gm(e){var t,r;const n=sR.exec(e);return n?{year:bn(n[1]),month:bn(n[2],1)-1,day:bn(n[3],1),hour:bn(n[4]),minute:bn(n[5]),second:bn(n[6]),millisecond:n[7]?bn(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:bn(n[10]),minuteOffset:bn(n[11])}:null}function bn(e,t=0){return Number(e)||t}let uR=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cR=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,fR=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,dR="^\\d{4}-\\d{2}-\\d{2}",hR="\\d{2}:\\d{2}:\\d{2}",pR="(([+-]\\d{2}(:?\\d{2})?)|Z)",yR=new RegExp(`${dR}T${hR}(\\.\\d+)?${pR}$`),mR=e=>ra(e)||e===e.trim(),vR={}.toString();function Sr(){return new Bk}class Bk extends dn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===vR?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Jr.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Ht.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Ht.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Ht.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,a;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:a}=r:i=r),this.test({name:a||"matches",message:i||Ht.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=Ht.email){return this.matches(uR,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ht.url){return this.matches(cR,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ht.uuid){return this.matches(fR,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,i;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:i=void 0}=t:r=t),this.matches(yR,{name:"datetime",message:r||Ht.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Ht.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:a=>{if(!a||n)return!0;const o=gm(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||Ht.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=gm(a);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ht.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:mR})}lowercase(t=Ht.lowercase){return this.transform(r=>ra(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ra(r)||r===r.toLowerCase()})}uppercase(t=Ht.uppercase){return this.transform(r=>ra(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ra(r)||r===r.toUpperCase()})}}Sr.prototype=Bk.prototype;let gR=new Date(""),xR=e=>Object.prototype.toString.call(e)==="[object Date]";class nh extends dn{constructor(){super({type:"date",check(t){return xR(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=lR(t),isNaN(t)?nh.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(Na.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=vm.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=vm.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}nh.INVALID_DATE=gR;nh.prototype;function bR(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=pa.split(o)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const o of Object.keys(e)){let s=e[o];n.add(o),Na.isRef(s)&&s.isSibling?a(s.path,o):i0(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return GD.array(Array.from(n),r).reverse()}function s1(e,t){let r=1/0;return e.some((n,i)=>{var a;if((a=t.path)!=null&&a.includes(n))return r=i,!0}),r}function zk(e){return(t,r)=>s1(e,t)-s1(e,r)}const wR=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function qc(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=qc(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=qc(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(qc)}):"optional"in e?e.optional():e}const SR=(e,t)=>{const r=[...pa.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=pa.getter(pa.join(r),!0)(e);return!!(i&&n in i)};let l1=e=>Object.prototype.toString.call(e)==="[object Object]";function u1(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const OR=zk([]);function ih(e){return new Uk(e)}class Uk extends dn{constructor(t){super({type:"object",check(r){return l1(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=OR,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let a=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(c=>!this._nodes.includes(c))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),f=!1;for(const c of s){let d=a[c],h=c in i;if(d){let y,p=i[c];u.path=(r.path?`${r.path}.`:"")+c,d=d.resolve({value:p,context:r.context,parent:l});let b=d instanceof dn?d.spec:void 0,x=b==null?void 0:b.strict;if(b!=null&&b.strip){f=f||c in i;continue}y=!r.__validating||!x?d.cast(i[c],u):i[c],y!==void 0&&(l[c]=y)}else h&&!o&&(l[c]=i[c]);(h!==c in l||l[c]!==i[c])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:a=[],originalValue:o=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:o},...a],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(l,u)=>{if(!s||!l1(u)){i(l,u);return}o=o||u;let f=[];for(let c of this._nodes){let d=this.fields[c];!d||Na.isRef(d)||f.push(d.asNestedTest({options:r,key:c,parent:u,parentPath:r.path,originalParent:o}))}this.runTests({tests:f,value:u,originalValue:o,options:r},n,c=>{i(c.sort(this._sortErrors).concat(l),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,a]of Object.entries(this.fields)){const o=n[i];n[i]=o===void 0?a:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const a=this.fields[n];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=a&&"getDefault"in a?a.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=bR(t,r),n._sortErrors=zk(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return qc(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=pa.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return SR(a,t)&&(o=Object.assign({},a),n||delete o[t],o[r]=i(a)),o})}json(){return this.transform(wR)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Hc.exact,test(r){if(r==null)return!0;const n=u1(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Hc.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const a=u1(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Hc.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(Rp.camelCase)}snakeCase(){return this.transformKeys(Rp.snakeCase)}constantCase(){return this.transformKeys(t=>Rp.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[a,o]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),n.fields[a]=o.describe(s)}return n}}ih.prototype=Uk.prototype;const _R=ih({email:Sr().required("ایمیل الزامی است").email("فرمت ایمیل صحیح نیست"),password:Sr().required("رمز عبور الزامی است").min(6,"رمز عبور باید حداقل ۶ کاراکتر باشد")}),PR=ih({name:Sr().required("نام الزامی است").min(2,"نام باید حداقل ۲ کاراکتر باشد"),email:Sr().required("ایمیل الزامی است").email("فرمت ایمیل صحیح نیست"),phone:Sr().required("شماره تلفن الزامی است").matches(/^09\d{9}$/,"شماره تلفن صحیح نیست"),role:Sr().required("نقش الزامی است"),password:Sr().optional().min(6,"رمز عبور باید حداقل ۶ کاراکتر باشد")});ih({siteName:Sr().required("نام سایت الزامی است"),siteDescription:Sr().required("توضیحات سایت الزامی است"),adminEmail:Sr().required("ایمیل مدیر الزامی است").email("فرمت ایمیل صحیح نیست"),language:Sr().required("زبان الزامی است")});const AR=()=>{var h;const{isAuthenticated:e,login:t}=Nu(),[r,n]=j.useState(!1),[i,a]=j.useState(!1),[o,s]=j.useState(""),{register:l,handleSubmit:u,formState:{errors:f,isValid:c}}=$k({resolver:Ck(_R),mode:"onChange"});if(e)return g.jsx(ek,{to:"/",replace:!0});const d=async y=>{a(!0),s("");try{await t(y.email,y.password)||s("ایمیل یا رمز عبور اشتباه است")}catch{s("خطایی رخ داده است. لطفا دوباره تلاش کنید")}finally{a(!1)}};return g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 py-12 px-4 sm:px-6 lg:px-8",children:g.jsxs("div",{className:"max-w-md w-full space-y-8",children:[g.jsxs("div",{children:[g.jsx("div",{className:"mx-auto h-12 w-12 bg-primary-600 rounded-lg flex items-center justify-center",children:g.jsx(Bb,{className:"h-6 w-6 text-white"})}),g.jsx("h2",{className:"mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:"ورود به پنل مدیریت"}),g.jsx("p",{className:"mt-2 text-center text-sm text-gray-600 dark:text-gray-400",children:"لطفا اطلاعات خود را وارد کنید"})]}),g.jsxs("form",{className:"mt-8 space-y-6",onSubmit:u(d),children:[g.jsxs("div",{className:"space-y-4",children:[g.jsx(io,{label:"ایمیل",type:"email",placeholder:"admin@test.com",icon:gk,error:(h=f.email)==null?void 0:h.message,...l("email")}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"رمز عبور"}),g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(Bb,{className:"h-5 w-5 text-gray-400"})}),g.jsx("input",{type:r?"text":"password",placeholder:"admin123",className:`input pr-10 pl-10 ${f.password?"border-red-500 dark:border-red-500 focus:ring-red-500":""}`,...l("password")}),g.jsx("button",{type:"button",className:"absolute inset-y-0 left-0 pl-3 flex items-center",onClick:()=>n(!r),children:r?g.jsx(GI,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"}):g.jsx(XI,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),f.password&&g.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:f.password.message})]})]}),o&&g.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 px-4 py-3 rounded-lg text-sm",children:o}),g.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 text-blue-600 dark:text-blue-400 px-4 py-3 rounded-lg text-sm",children:[g.jsx("p",{className:"font-medium",children:"اطلاعات تست:"}),g.jsx("p",{children:"ایمیل: admin@test.com"}),g.jsx("p",{children:"رمز عبور: admin123"})]}),g.jsx(je,{type:"submit",loading:i,disabled:!c,className:"w-full",children:"ورود"})]})]})})},kR=({title:e,value:t,change:r,icon:n,color:i="blue"})=>{const a={blue:"bg-blue-500",green:"bg-green-500",yellow:"bg-yellow-500",red:"bg-red-500",purple:"bg-purple-500"},o=r&&r>0,s=r&&r<0;return g.jsx("div",{className:"card p-6 animate-fade-in",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx("div",{className:`p-3 rounded-lg ${a[i]||a.blue}`,children:g.jsx(n,{className:"h-6 w-6 text-white"})})}),g.jsx("div",{className:"mr-5 w-0 flex-1",children:g.jsxs("dl",{children:[g.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 truncate",children:e}),g.jsxs("dd",{className:"flex items-baseline",children:[g.jsx("div",{className:"text-2xl font-semibold text-gray-900 dark:text-gray-100",children:typeof t=="number"?t.toLocaleString():t}),r!==void 0&&g.jsxs("div",{className:`mr-2 flex items-baseline text-sm font-semibold ${o?"text-green-600":s?"text-red-600":"text-gray-500"}`,children:[o&&g.jsx(Wl,{className:"h-4 w-4 flex-shrink-0 self-center ml-1"}),s&&g.jsx(iD,{className:"h-4 w-4 flex-shrink-0 self-center ml-1"}),g.jsx("span",{className:"sr-only",children:o?"افزایش":"کاهش"}),Math.abs(r),"%"]})]})]})})]})})};var jR=Array.isArray,er=jR,ER=typeof Xu=="object"&&Xu&&Xu.Object===Object&&Xu,Vk=ER,$R=Vk,TR=typeof self=="object"&&self&&self.Object===Object&&self,CR=$R||TR||Function("return this")(),pn=CR,NR=pn,MR=NR.Symbol,Du=MR,c1=Du,Wk=Object.prototype,IR=Wk.hasOwnProperty,DR=Wk.toString,zs=c1?c1.toStringTag:void 0;function RR(e){var t=IR.call(e,zs),r=e[zs];try{e[zs]=void 0;var n=!0}catch{}var i=DR.call(e);return n&&(t?e[zs]=r:delete e[zs]),i}var LR=RR,FR=Object.prototype,BR=FR.toString;function zR(e){return BR.call(e)}var UR=zR,f1=Du,VR=LR,WR=UR,HR="[object Null]",qR="[object Undefined]",d1=f1?f1.toStringTag:void 0;function KR(e){return e==null?e===void 0?qR:HR:d1&&d1 in Object(e)?VR(e):WR(e)}var Gn=KR;function GR(e){return e!=null&&typeof e=="object"}var Xn=GR,XR=Gn,YR=Xn,QR="[object Symbol]";function ZR(e){return typeof e=="symbol"||YR(e)&&XR(e)==QR}var ms=ZR,JR=er,e3=ms,t3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r3=/^\w*$/;function n3(e,t){if(JR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||e3(e)?!0:r3.test(e)||!t3.test(e)||t!=null&&e in Object(t)}var a0=n3;function i3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Li=i3;const vs=Se(Li);var a3=Gn,o3=Li,s3="[object AsyncFunction]",l3="[object Function]",u3="[object GeneratorFunction]",c3="[object Proxy]";function f3(e){if(!o3(e))return!1;var t=a3(e);return t==l3||t==u3||t==s3||t==c3}var o0=f3;const se=Se(o0);var d3=pn,h3=d3["__core-js_shared__"],p3=h3,Lp=p3,h1=function(){var e=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function y3(e){return!!h1&&h1 in e}var m3=y3,v3=Function.prototype,g3=v3.toString;function x3(e){if(e!=null){try{return g3.call(e)}catch{}try{return e+""}catch{}}return""}var Hk=x3,b3=o0,w3=m3,S3=Li,O3=Hk,_3=/[\\^$.*+?()[\]{}|]/g,P3=/^\[object .+?Constructor\]$/,A3=Function.prototype,k3=Object.prototype,j3=A3.toString,E3=k3.hasOwnProperty,$3=RegExp("^"+j3.call(E3).replace(_3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T3(e){if(!S3(e)||w3(e))return!1;var t=b3(e)?$3:P3;return t.test(O3(e))}var C3=T3;function N3(e,t){return e==null?void 0:e[t]}var M3=N3,I3=C3,D3=M3;function R3(e,t){var r=D3(e,t);return I3(r)?r:void 0}var Ma=R3,L3=Ma,F3=L3(Object,"create"),ah=F3,p1=ah;function B3(){this.__data__=p1?p1(null):{},this.size=0}var z3=B3;function U3(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var V3=U3,W3=ah,H3="__lodash_hash_undefined__",q3=Object.prototype,K3=q3.hasOwnProperty;function G3(e){var t=this.__data__;if(W3){var r=t[e];return r===H3?void 0:r}return K3.call(t,e)?t[e]:void 0}var X3=G3,Y3=ah,Q3=Object.prototype,Z3=Q3.hasOwnProperty;function J3(e){var t=this.__data__;return Y3?t[e]!==void 0:Z3.call(t,e)}var eL=J3,tL=ah,rL="__lodash_hash_undefined__";function nL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tL&&t===void 0?rL:t,this}var iL=nL,aL=z3,oL=V3,sL=X3,lL=eL,uL=iL;function gs(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])}}gs.prototype.clear=aL;gs.prototype.delete=oL;gs.prototype.get=sL;gs.prototype.has=lL;gs.prototype.set=uL;var cL=gs;function fL(){this.__data__=[],this.size=0}var dL=fL;function hL(e,t){return e===t||e!==e&&t!==t}var s0=hL,pL=s0;function yL(e,t){for(var r=e.length;r--;)if(pL(e[r][0],t))return r;return-1}var oh=yL,mL=oh,vL=Array.prototype,gL=vL.splice;function xL(e){var t=this.__data__,r=mL(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():gL.call(t,r,1),--this.size,!0}var bL=xL,wL=oh;function SL(e){var t=this.__data__,r=wL(t,e);return r<0?void 0:t[r][1]}var OL=SL,_L=oh;function PL(e){return _L(this.__data__,e)>-1}var AL=PL,kL=oh;function jL(e,t){var r=this.__data__,n=kL(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var EL=jL,$L=dL,TL=bL,CL=OL,NL=AL,ML=EL;function xs(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])}}xs.prototype.clear=$L;xs.prototype.delete=TL;xs.prototype.get=CL;xs.prototype.has=NL;xs.prototype.set=ML;var sh=xs,IL=Ma,DL=pn,RL=IL(DL,"Map"),l0=RL,y1=cL,LL=sh,FL=l0;function BL(){this.size=0,this.__data__={hash:new y1,map:new(FL||LL),string:new y1}}var zL=BL;function UL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var VL=UL,WL=VL;function HL(e,t){var r=e.__data__;return WL(t)?r[typeof t=="string"?"string":"hash"]:r.map}var lh=HL,qL=lh;function KL(e){var t=qL(this,e).delete(e);return this.size-=t?1:0,t}var GL=KL,XL=lh;function YL(e){return XL(this,e).get(e)}var QL=YL,ZL=lh;function JL(e){return ZL(this,e).has(e)}var e4=JL,t4=lh;function r4(e,t){var r=t4(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var n4=r4,i4=zL,a4=GL,o4=QL,s4=e4,l4=n4;function bs(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])}}bs.prototype.clear=i4;bs.prototype.delete=a4;bs.prototype.get=o4;bs.prototype.has=s4;bs.prototype.set=l4;var u0=bs,qk=u0,u4="Expected a function";function c0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u4);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(c0.Cache||qk),r}c0.Cache=qk;var Kk=c0;const c4=Se(Kk);var f4=Kk,d4=500;function h4(e){var t=f4(e,function(n){return r.size===d4&&r.clear(),n}),r=t.cache;return t}var p4=h4,y4=p4,m4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v4=/\\(\\)?/g,g4=y4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(m4,function(r,n,i,a){t.push(i?a.replace(v4,"$1"):n||r)}),t}),x4=g4;function b4(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 f0=b4,m1=Du,w4=f0,S4=er,O4=ms,_4=1/0,v1=m1?m1.prototype:void 0,g1=v1?v1.toString:void 0;function Gk(e){if(typeof e=="string")return e;if(S4(e))return w4(e,Gk)+"";if(O4(e))return g1?g1.call(e):"";var t=e+"";return t=="0"&&1/e==-_4?"-0":t}var P4=Gk,A4=P4;function k4(e){return e==null?"":A4(e)}var Xk=k4,j4=er,E4=a0,$4=x4,T4=Xk;function C4(e,t){return j4(e)?e:E4(e,t)?[e]:$4(T4(e))}var Yk=C4,N4=ms,M4=1/0;function I4(e){if(typeof e=="string"||N4(e))return e;var t=e+"";return t=="0"&&1/e==-M4?"-0":t}var uh=I4,D4=Yk,R4=uh;function L4(e,t){t=D4(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[R4(t[r++])];return r&&r==n?e:void 0}var d0=L4,F4=d0;function B4(e,t,r){var n=e==null?void 0:F4(e,t);return n===void 0?r:n}var Qk=B4;const ur=Se(Qk);function z4(e){return e==null}var U4=z4;const ce=Se(U4);var V4=Gn,W4=er,H4=Xn,q4="[object String]";function K4(e){return typeof e=="string"||!W4(e)&&H4(e)&&V4(e)==q4}var G4=K4;const Sa=Se(G4);var Zk={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 h0=Symbol.for("react.element"),p0=Symbol.for("react.portal"),ch=Symbol.for("react.fragment"),fh=Symbol.for("react.strict_mode"),dh=Symbol.for("react.profiler"),hh=Symbol.for("react.provider"),ph=Symbol.for("react.context"),X4=Symbol.for("react.server_context"),yh=Symbol.for("react.forward_ref"),mh=Symbol.for("react.suspense"),vh=Symbol.for("react.suspense_list"),gh=Symbol.for("react.memo"),xh=Symbol.for("react.lazy"),Y4=Symbol.for("react.offscreen"),Jk;Jk=Symbol.for("react.module.reference");function $r(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case h0:switch(e=e.type,e){case ch:case dh:case fh:case mh:case vh:return e;default:switch(e=e&&e.$$typeof,e){case X4:case ph:case yh:case xh:case gh:case hh:return e;default:return t}}case p0:return t}}}Pe.ContextConsumer=ph;Pe.ContextProvider=hh;Pe.Element=h0;Pe.ForwardRef=yh;Pe.Fragment=ch;Pe.Lazy=xh;Pe.Memo=gh;Pe.Portal=p0;Pe.Profiler=dh;Pe.StrictMode=fh;Pe.Suspense=mh;Pe.SuspenseList=vh;Pe.isAsyncMode=function(){return!1};Pe.isConcurrentMode=function(){return!1};Pe.isContextConsumer=function(e){return $r(e)===ph};Pe.isContextProvider=function(e){return $r(e)===hh};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===h0};Pe.isForwardRef=function(e){return $r(e)===yh};Pe.isFragment=function(e){return $r(e)===ch};Pe.isLazy=function(e){return $r(e)===xh};Pe.isMemo=function(e){return $r(e)===gh};Pe.isPortal=function(e){return $r(e)===p0};Pe.isProfiler=function(e){return $r(e)===dh};Pe.isStrictMode=function(e){return $r(e)===fh};Pe.isSuspense=function(e){return $r(e)===mh};Pe.isSuspenseList=function(e){return $r(e)===vh};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ch||e===dh||e===fh||e===mh||e===vh||e===Y4||typeof e=="object"&&e!==null&&(e.$$typeof===xh||e.$$typeof===gh||e.$$typeof===hh||e.$$typeof===ph||e.$$typeof===yh||e.$$typeof===Jk||e.getModuleId!==void 0)};Pe.typeOf=$r;Zk.exports=Pe;var Q4=Zk.exports,Z4=Gn,J4=Xn,eF="[object Number]";function tF(e){return typeof e=="number"||J4(e)&&Z4(e)==eF}var ej=tF;const rF=Se(ej);var nF=ej;function iF(e){return nF(e)&&e!=+e}var aF=iF;const Ru=Se(aF);var Ft=function(t){return t===0?0:t>0?1:-1},na=function(t){return Sa(t)&&t.indexOf("%")===t.length-1},X=function(t){return rF(t)&&!Ru(t)},ct=function(t){return X(t)||Sa(t)},oF=0,ws=function(t){var r=++oF;return"".concat(t||"").concat(r)},Bt=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(!X(t)&&!Sa(t))return n;var a;if(na(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ru(a)&&(a=n),i&&a>r&&(a=r),a},ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},sF=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},ar=function(t,r){return X(t)&&X(r)?function(n){return t+n*(r-t)}:function(){return r}};function $f(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ur(n,t))===r})}var lF=function(t,r){return X(t)&&X(r)?t-r:Sa(t)&&Sa(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function go(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 xm(e){"@babel/helpers - typeof";return xm=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},xm(e)}var uF=["viewBox","children"],cF=["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"],x1=["points","pathLength"],Fp={svg:uF,polygon:x1,polyline:x1},y0=["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"],Tf=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(j.isValidElement(t)&&(n=t.props),!vs(n))return null;var i={};return Object.keys(n).forEach(function(a){y0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},fF=function(t,r,n){return function(i){return t(r,n,i),null}},Oa=function(t,r,n){if(!vs(t)||xm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];y0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=fF(o,r,n))}),i},dF=["children"],hF=["children"];function b1(e,t){if(e==null)return{};var r=pF(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 pF(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 bm(e){"@babel/helpers - typeof";return bm=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},bm(e)}var w1={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"},Mn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},S1=null,Bp=null,m0=function e(t){if(t===S1&&Array.isArray(Bp))return Bp;var r=[];return j.Children.forEach(t,function(n){ce(n)||(Q4.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Bp=r,S1=t,r};function cr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Mn(i)}):n=[Mn(t)],m0(e).forEach(function(i){var a=ur(i,"type.displayName")||ur(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ir(e,t){var r=cr(e,t);return r&&r[0]}var O1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!X(n)||n<=0||!X(i)||i<=0)},yF=["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"],mF=function(t){return t&&t.type&&Sa(t.type)&&yF.indexOf(t.type)>=0},vF=function(t){return t&&bm(t)==="object"&&"clipDot"in t},gF=function(t,r,n,i){var a,o=(a=Fp==null?void 0:Fp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!se(t)&&(i&&o.includes(r)||cF.includes(r))||n&&y0.includes(r)},ae=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!vs(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;gF((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},wm=function e(t,r){if(t===r)return!0;var n=j.Children.count(t);if(n!==j.Children.count(r))return!1;if(n===0)return!0;if(n===1)return _1(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(!_1(a,o))return!1}return!0},_1=function(t,r){if(ce(t)&&ce(r))return!0;if(!ce(t)&&!ce(r)){var n=t.props||{},i=n.children,a=b1(n,dF),o=r.props||{},s=o.children,l=b1(o,hF);return i&&s?go(a,l)&&wm(i,s):!i&&!s?go(a,l):!1}return!1},P1=function(t,r){var n=[],i={};return m0(t).forEach(function(a,o){if(mF(a))n.push(a);else if(a){var s=Mn(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},xF=function(t){var r=t&&t.type;return r&&w1[r]?w1[r]:null},bF=function(t,r){return m0(r).indexOf(t)},wF=["children","width","height","viewBox","className","style","title","desc"];function Sm(){return Sm=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},Sm.apply(this,arguments)}function SF(e,t){if(e==null)return{};var r=OF(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 OF(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 Om(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=SF(e,wF),f=i||{width:r,height:n,x:0,y:0},c=ue("recharts-surface",a);return k.createElement("svg",Sm({},ae(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),k.createElement("title",null,s),k.createElement("desc",null,l),t)}var _F=["children","className"];function _m(){return _m=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},_m.apply(this,arguments)}function PF(e,t){if(e==null)return{};var r=AF(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 AF(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 xe=k.forwardRef(function(e,t){var r=e.children,n=e.className,i=PF(e,_F),a=ue("recharts-layer",n);return k.createElement("g",_m({className:a},ae(i,!0),{ref:t}),r)}),Kr=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 kF(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 jF=kF,EF=jF;function $F(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:EF(e,t,r)}var TF=$F,CF="\\ud800-\\udfff",NF="\\u0300-\\u036f",MF="\\ufe20-\\ufe2f",IF="\\u20d0-\\u20ff",DF=NF+MF+IF,RF="\\ufe0e\\ufe0f",LF="\\u200d",FF=RegExp("["+LF+CF+DF+RF+"]");function BF(e){return FF.test(e)}var tj=BF;function zF(e){return e.split("")}var UF=zF,rj="\\ud800-\\udfff",VF="\\u0300-\\u036f",WF="\\ufe20-\\ufe2f",HF="\\u20d0-\\u20ff",qF=VF+WF+HF,KF="\\ufe0e\\ufe0f",GF="["+rj+"]",Pm="["+qF+"]",Am="\\ud83c[\\udffb-\\udfff]",XF="(?:"+Pm+"|"+Am+")",nj="[^"+rj+"]",ij="(?:\\ud83c[\\udde6-\\uddff]){2}",aj="[\\ud800-\\udbff][\\udc00-\\udfff]",YF="\\u200d",oj=XF+"?",sj="["+KF+"]?",QF="(?:"+YF+"(?:"+[nj,ij,aj].join("|")+")"+sj+oj+")*",ZF=sj+oj+QF,JF="(?:"+[nj+Pm+"?",Pm,ij,aj,GF].join("|")+")",e6=RegExp(Am+"(?="+Am+")|"+JF+ZF,"g");function t6(e){return e.match(e6)||[]}var r6=t6,n6=UF,i6=tj,a6=r6;function o6(e){return i6(e)?a6(e):n6(e)}var s6=o6,l6=TF,u6=tj,c6=s6,f6=Xk;function d6(e){return function(t){t=f6(t);var r=u6(t)?c6(t):void 0,n=r?r[0]:t.charAt(0),i=r?l6(r,1).join(""):t.slice(1);return n[e]()+i}}var h6=d6,p6=h6,y6=p6("toUpperCase"),m6=y6;const bh=Se(m6);function Ne(e){return function(){return e}}const lj=Math.cos,Cf=Math.sin,Xr=Math.sqrt,Nf=Math.PI,wh=2*Nf,km=Math.PI,jm=2*km,Ki=1e-6,v6=jm-Ki;function uj(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function g6(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return uj;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 x6{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?uj:g6(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>Ki)if(!(Math.abs(c*l-u*f)>Ki)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-s,p=l*l+u*u,b=h*h+y*y,x=Math.sqrt(p),m=Math.sqrt(d),v=a*Math.tan((km-Math.acos((p+d-b)/(2*x*m)))/2),O=v/m,w=v/x;Math.abs(O-1)>Ki&&this._append`L${t+O*f},${r+O*c}`,this._append`A${a},${a},0,0,${+(c*h>f*y)},${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)>Ki||Math.abs(this._y1-f)>Ki)&&this._append`L${u},${f}`,n&&(d<0&&(d=d%jm+jm),d>v6?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>Ki&&this._append`A${n},${n},0,${+(d>=km)},${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 v0(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 x6(t)}function g0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cj(e){this._context=e}cj.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 Sh(e){return new cj(e)}function fj(e){return e[0]}function dj(e){return e[1]}function hj(e,t){var r=Ne(!0),n=null,i=Sh,a=null,o=v0(s);e=typeof e=="function"?e:e===void 0?fj:Ne(e),t=typeof t=="function"?t:t===void 0?dj:Ne(t);function s(l){var u,f=(l=g0(l)).length,c,d=!1,h;for(n==null&&(a=i(h=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(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ne(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ne(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ne(!!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 mc(e,t,r){var n=null,i=Ne(!0),a=null,o=Sh,s=null,l=v0(u);e=typeof e=="function"?e:e===void 0?fj:Ne(+e),t=typeof t=="function"?t:Ne(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?dj:Ne(+r);function u(c){var d,h,y,p=(c=g0(c)).length,b,x=!1,m,v=new Array(p),O=new Array(p);for(a==null&&(s=o(m=l())),d=0;d<=p;++d){if(!(d<p&&i(b=c[d],d,c))===x)if(x=!x)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=d-1;y>=h;--y)s.point(v[y],O[y]);s.lineEnd(),s.areaEnd()}x&&(v[d]=+e(b,d,c),O[d]=+t(b,d,c),s.point(n?+n(b,d,c):v[d],r?+r(b,d,c):O[d]))}if(m)return s=null,m+""||null}function f(){return hj().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ne(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ne(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ne(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ne(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ne(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ne(+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:Ne(!!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 pj{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 b6(e){return new pj(e,!0)}function w6(e){return new pj(e,!1)}const x0={draw(e,t){const r=Xr(t/Nf);e.moveTo(r,0),e.arc(0,0,r,0,wh)}},S6={draw(e,t){const r=Xr(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()}},yj=Xr(1/3),O6=yj*2,_6={draw(e,t){const r=Xr(t/O6),n=r*yj;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},P6={draw(e,t){const r=Xr(t),n=-r/2;e.rect(n,n,r,r)}},A6=.8908130915292852,mj=Cf(Nf/10)/Cf(7*Nf/10),k6=Cf(wh/10)*mj,j6=-lj(wh/10)*mj,E6={draw(e,t){const r=Xr(t*A6),n=k6*r,i=j6*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=wh*a/5,s=lj(o),l=Cf(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},zp=Xr(3),$6={draw(e,t){const r=-Xr(t/(zp*3));e.moveTo(0,r*2),e.lineTo(-zp*r,-r),e.lineTo(zp*r,-r),e.closePath()}},yr=-.5,mr=Xr(3)/2,Em=1/Xr(12),T6=(Em/2+1)*3,C6={draw(e,t){const r=Xr(t/T6),n=r/2,i=r*Em,a=n,o=r*Em+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(yr*n-mr*i,mr*n+yr*i),e.lineTo(yr*a-mr*o,mr*a+yr*o),e.lineTo(yr*s-mr*l,mr*s+yr*l),e.lineTo(yr*n+mr*i,yr*i-mr*n),e.lineTo(yr*a+mr*o,yr*o-mr*a),e.lineTo(yr*s+mr*l,yr*l-mr*s),e.closePath()}};function N6(e,t){let r=null,n=v0(i);e=typeof e=="function"?e:Ne(e||x0),t=typeof t=="function"?t:Ne(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:Ne(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ne(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Mf(){}function If(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 vj(e){this._context=e}vj.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:If(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:If(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function M6(e){return new vj(e)}function gj(e){this._context=e}gj.prototype={areaStart:Mf,areaEnd:Mf,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:If(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function I6(e){return new gj(e)}function xj(e){this._context=e}xj.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:If(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function D6(e){return new xj(e)}function bj(e){this._context=e}bj.prototype={areaStart:Mf,areaEnd:Mf,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 R6(e){return new bj(e)}function A1(e){return e<0?-1:1}function k1(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(A1(a)+A1(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 Df(e){this._context=e}Df.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=k1(this,e,t)),r);break;default:Up(this,this._t0,r=k1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function wj(e){this._context=new Sj(e)}(wj.prototype=Object.create(Df.prototype)).point=function(e,t){Df.prototype.point.call(this,t,e)};function Sj(e){this._context=e}Sj.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 L6(e){return new Df(e)}function F6(e){return new wj(e)}function Oj(e){this._context=e}Oj.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=E1(e),i=E1(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 E1(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 B6(e){return new Oj(e)}function Oh(e,t){this._context=e,this._t=t}Oh.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 z6(e){return new Oh(e,.5)}function U6(e){return new Oh(e,0)}function V6(e){return new Oh(e,1)}function Fo(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 $m(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function W6(e,t){return e[t]}function H6(e){const t=[];return t.key=e,t}function q6(){var e=Ne([]),t=$m,r=Fo,n=W6;function i(a){var o=Array.from(e.apply(this,arguments),H6),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=g0(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:Ne(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ne(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?$m:typeof a=="function"?a:Ne(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Fo,i):r},i}function K6(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}Fo(e,t)}}function G6(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}Fo(e,t)}}function X6(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,h=(c-d)/2,y=0;y<s;++y){var p=e[t[y]],b=p[n][1]||0,x=p[n-1][1]||0;h+=b-x}l+=c,u+=h*c}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Fo(e,t)}}function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}var Y6=["type","size","sizeType"];function Tm(){return Tm=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},Tm.apply(this,arguments)}function $1(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 T1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(r),!0).forEach(function(n){Q6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q6(e,t,r){return t=Z6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z6(e){var t=J6(e,"string");return Hl(t)=="symbol"?t:t+""}function J6(e,t){if(Hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e5(e,t){if(e==null)return{};var r=t5(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 t5(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={symbolCircle:x0,symbolCross:S6,symbolDiamond:_6,symbolSquare:P6,symbolStar:E6,symbolTriangle:$6,symbolWye:C6},r5=Math.PI/180,n5=function(t){var r="symbol".concat(bh(t));return _j[r]||x0},i5=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*r5;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}},a5=function(t,r){_j["symbol".concat(bh(t))]=r},b0=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=e5(t,Y6),u=T1(T1({},l),{},{type:n,size:a,sizeType:s}),f=function(){var b=n5(n),x=N6().type(b).size(i5(a,s,n));return x()},c=u.className,d=u.cx,h=u.cy,y=ae(u,!0);return d===+d&&h===+h&&a===+a?k.createElement("path",Tm({},y,{className:ue("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};b0.registerSymbol=a5;function Bo(e){"@babel/helpers - typeof";return Bo=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},Bo(e)}function Cm(){return Cm=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},Cm.apply(this,arguments)}function C1(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 o5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(r),!0).forEach(function(n){ql(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N1(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,Aj(n.key),n)}}function l5(e,t,r){return t&&N1(e.prototype,t),r&&N1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u5(e,t,r){return t=Rf(t),c5(e,Pj()?Reflect.construct(t,r||[],Rf(e).constructor):t.apply(e,r))}function c5(e,t){if(t&&(Bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f5(e)}function f5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pj=function(){return!!e})()}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rf(e)}function d5(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&&Nm(e,t)}function Nm(e,t){return Nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nm(e,t)}function ql(e,t,r){return t=Aj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aj(e){var t=h5(e,"string");return Bo(t)=="symbol"?t:t+""}function h5(e,t){if(Bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vr=32,w0=function(e){function t(){return s5(this,t),u5(this,t,arguments)}return d5(t,e),l5(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=vr/2,o=vr/6,s=vr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return k.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:vr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return k.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(vr,"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 k.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(vr/8,"h").concat(vr,"v").concat(vr*3/4,"h").concat(-vr,"z"),className:"recharts-legend-icon"});if(k.isValidElement(n.legendIcon)){var u=o5({},n);return delete u.legendIcon,k.cloneElement(n.legendIcon,u)}return k.createElement(b0,{fill:l,cx:a,cy:a,size:vr,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:vr,height:vr},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var p=h.formatter||l,b=ue(ql(ql({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var x=se(h.value)?null:h.value;Kr(!se(h.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 m=h.inactive?u:h.color;return k.createElement("li",Cm({className:b,style:c,key:"legend-item-".concat(y)},Oa(n.props,h,y)),k.createElement(Om,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),k.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},p?p(x,h,y):x))})}},{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 k.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(j.PureComponent);ql(w0,"displayName","Legend");ql(w0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var p5=sh;function y5(){this.__data__=new p5,this.size=0}var m5=y5;function v5(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var g5=v5;function x5(e){return this.__data__.get(e)}var b5=x5;function w5(e){return this.__data__.has(e)}var S5=w5,O5=sh,_5=l0,P5=u0,A5=200;function k5(e,t){var r=this.__data__;if(r instanceof O5){var n=r.__data__;if(!_5||n.length<A5-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new P5(n)}return r.set(e,t),this.size=r.size,this}var j5=k5,E5=sh,$5=m5,T5=g5,C5=b5,N5=S5,M5=j5;function Ss(e){var t=this.__data__=new E5(e);this.size=t.size}Ss.prototype.clear=$5;Ss.prototype.delete=T5;Ss.prototype.get=C5;Ss.prototype.has=N5;Ss.prototype.set=M5;var kj=Ss,I5="__lodash_hash_undefined__";function D5(e){return this.__data__.set(e,I5),this}var R5=D5;function L5(e){return this.__data__.has(e)}var F5=L5,B5=u0,z5=R5,U5=F5;function Lf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new B5;++t<r;)this.add(e[t])}Lf.prototype.add=Lf.prototype.push=z5;Lf.prototype.has=U5;var jj=Lf;function V5(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 Ej=V5;function W5(e,t){return e.has(t)}var $j=W5,H5=jj,q5=Ej,K5=$j,G5=1,X5=2;function Y5(e,t,r,n,i,a){var o=r&G5,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,h=r&X5?new H5:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var y=e[c],p=t[c];if(n)var b=o?n(p,y,c,t,e,a):n(y,p,c,e,t,a);if(b!==void 0){if(b)continue;d=!1;break}if(h){if(!q5(t,function(x,m){if(!K5(h,m)&&(y===x||i(y,x,r,n,a)))return h.push(m)})){d=!1;break}}else if(!(y===p||i(y,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var Tj=Y5,Q5=pn,Z5=Q5.Uint8Array,J5=Z5;function e8(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var t8=e8;function r8(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var S0=r8,M1=Du,I1=J5,n8=s0,i8=Tj,a8=t8,o8=S0,s8=1,l8=2,u8="[object Boolean]",c8="[object Date]",f8="[object Error]",d8="[object Map]",h8="[object Number]",p8="[object RegExp]",y8="[object Set]",m8="[object String]",v8="[object Symbol]",g8="[object ArrayBuffer]",x8="[object DataView]",D1=M1?M1.prototype:void 0,Vp=D1?D1.valueOf:void 0;function b8(e,t,r,n,i,a,o){switch(r){case x8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case g8:return!(e.byteLength!=t.byteLength||!a(new I1(e),new I1(t)));case u8:case c8:case h8:return n8(+e,+t);case f8:return e.name==t.name&&e.message==t.message;case p8:case m8:return e==t+"";case d8:var s=a8;case y8:var l=n&s8;if(s||(s=o8),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=l8,o.set(e,t);var f=i8(s(e),s(t),n,i,a,o);return o.delete(e),f;case v8:if(Vp)return Vp.call(e)==Vp.call(t)}return!1}var w8=b8;function S8(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Cj=S8,O8=Cj,_8=er;function P8(e,t,r){var n=t(e);return _8(e)?n:O8(n,r(e))}var A8=P8;function k8(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 j8=k8;function E8(){return[]}var $8=E8,T8=j8,C8=$8,N8=Object.prototype,M8=N8.propertyIsEnumerable,R1=Object.getOwnPropertySymbols,I8=R1?function(e){return e==null?[]:(e=Object(e),T8(R1(e),function(t){return M8.call(e,t)}))}:C8,D8=I8;function R8(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var L8=R8,F8=Gn,B8=Xn,z8="[object Arguments]";function U8(e){return B8(e)&&F8(e)==z8}var V8=U8,L1=V8,W8=Xn,Nj=Object.prototype,H8=Nj.hasOwnProperty,q8=Nj.propertyIsEnumerable,K8=L1(function(){return arguments}())?L1:function(e){return W8(e)&&H8.call(e,"callee")&&!q8.call(e,"callee")},O0=K8,Ff={exports:{}};function G8(){return!1}var X8=G8;Ff.exports;(function(e,t){var r=pn,n=X8,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})(Ff,Ff.exports);var Mj=Ff.exports,Y8=9007199254740991,Q8=/^(?:0|[1-9]\d*)$/;function Z8(e,t){var r=typeof e;return t=t??Y8,!!t&&(r=="number"||r!="symbol"&&Q8.test(e))&&e>-1&&e%1==0&&e<t}var _0=Z8,J8=9007199254740991;function eB(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=J8}var P0=eB,tB=Gn,rB=P0,nB=Xn,iB="[object Arguments]",aB="[object Array]",oB="[object Boolean]",sB="[object Date]",lB="[object Error]",uB="[object Function]",cB="[object Map]",fB="[object Number]",dB="[object Object]",hB="[object RegExp]",pB="[object Set]",yB="[object String]",mB="[object WeakMap]",vB="[object ArrayBuffer]",gB="[object DataView]",xB="[object Float32Array]",bB="[object Float64Array]",wB="[object Int8Array]",SB="[object Int16Array]",OB="[object Int32Array]",_B="[object Uint8Array]",PB="[object Uint8ClampedArray]",AB="[object Uint16Array]",kB="[object Uint32Array]",Re={};Re[xB]=Re[bB]=Re[wB]=Re[SB]=Re[OB]=Re[_B]=Re[PB]=Re[AB]=Re[kB]=!0;Re[iB]=Re[aB]=Re[vB]=Re[oB]=Re[gB]=Re[sB]=Re[lB]=Re[uB]=Re[cB]=Re[fB]=Re[dB]=Re[hB]=Re[pB]=Re[yB]=Re[mB]=!1;function jB(e){return nB(e)&&rB(e.length)&&!!Re[tB(e)]}var EB=jB;function $B(e){return function(t){return e(t)}}var Ij=$B,Bf={exports:{}};Bf.exports;(function(e,t){var r=Vk,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})(Bf,Bf.exports);var TB=Bf.exports,CB=EB,NB=Ij,F1=TB,B1=F1&&F1.isTypedArray,MB=B1?NB(B1):CB,Dj=MB,IB=L8,DB=O0,RB=er,LB=Mj,FB=_0,BB=Dj,zB=Object.prototype,UB=zB.hasOwnProperty;function VB(e,t){var r=RB(e),n=!r&&DB(e),i=!r&&!n&&LB(e),a=!r&&!n&&!i&&BB(e),o=r||n||i||a,s=o?IB(e.length,String):[],l=s.length;for(var u in e)(t||UB.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||FB(u,l)))&&s.push(u);return s}var WB=VB,HB=Object.prototype;function qB(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||HB;return e===r}var KB=qB;function GB(e,t){return function(r){return e(t(r))}}var Rj=GB,XB=Rj,YB=XB(Object.keys,Object),QB=YB,ZB=KB,JB=QB,ez=Object.prototype,tz=ez.hasOwnProperty;function rz(e){if(!ZB(e))return JB(e);var t=[];for(var r in Object(e))tz.call(e,r)&&r!="constructor"&&t.push(r);return t}var nz=rz,iz=o0,az=P0;function oz(e){return e!=null&&az(e.length)&&!iz(e)}var Lu=oz,sz=WB,lz=nz,uz=Lu;function cz(e){return uz(e)?sz(e):lz(e)}var _h=cz,fz=A8,dz=D8,hz=_h;function pz(e){return fz(e,hz,dz)}var yz=pz,z1=yz,mz=1,vz=Object.prototype,gz=vz.hasOwnProperty;function xz(e,t,r,n,i,a){var o=r&mz,s=z1(e),l=s.length,u=z1(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:gz.call(t,d)))return!1}var h=a.get(e),y=a.get(t);if(h&&y)return h==t&&y==e;var p=!0;a.set(e,t),a.set(t,e);for(var b=o;++c<l;){d=s[c];var x=e[d],m=t[d];if(n)var v=o?n(m,x,d,t,e,a):n(x,m,d,e,t,a);if(!(v===void 0?x===m||i(x,m,r,n,a):v)){p=!1;break}b||(b=d=="constructor")}if(p&&!b){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var bz=xz,wz=Ma,Sz=pn,Oz=wz(Sz,"DataView"),_z=Oz,Pz=Ma,Az=pn,kz=Pz(Az,"Promise"),jz=kz,Ez=Ma,$z=pn,Tz=Ez($z,"Set"),Lj=Tz,Cz=Ma,Nz=pn,Mz=Cz(Nz,"WeakMap"),Iz=Mz,Mm=_z,Im=l0,Dm=jz,Rm=Lj,Lm=Iz,Fj=Gn,Os=Hk,U1="[object Map]",Dz="[object Object]",V1="[object Promise]",W1="[object Set]",H1="[object WeakMap]",q1="[object DataView]",Rz=Os(Mm),Lz=Os(Im),Fz=Os(Dm),Bz=Os(Rm),zz=Os(Lm),Gi=Fj;(Mm&&Gi(new Mm(new ArrayBuffer(1)))!=q1||Im&&Gi(new Im)!=U1||Dm&&Gi(Dm.resolve())!=V1||Rm&&Gi(new Rm)!=W1||Lm&&Gi(new Lm)!=H1)&&(Gi=function(e){var t=Fj(e),r=t==Dz?e.constructor:void 0,n=r?Os(r):"";if(n)switch(n){case Rz:return q1;case Lz:return U1;case Fz:return V1;case Bz:return W1;case zz:return H1}return t});var Uz=Gi,Wp=kj,Vz=Tj,Wz=w8,Hz=bz,K1=Uz,G1=er,X1=Mj,qz=Dj,Kz=1,Y1="[object Arguments]",Q1="[object Array]",vc="[object Object]",Gz=Object.prototype,Z1=Gz.hasOwnProperty;function Xz(e,t,r,n,i,a){var o=G1(e),s=G1(t),l=o?Q1:K1(e),u=s?Q1:K1(t);l=l==Y1?vc:l,u=u==Y1?vc:u;var f=l==vc,c=u==vc,d=l==u;if(d&&X1(e)){if(!X1(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new Wp),o||qz(e)?Vz(e,t,r,n,i,a):Wz(e,t,l,r,n,i,a);if(!(r&Kz)){var h=f&&Z1.call(e,"__wrapped__"),y=c&&Z1.call(t,"__wrapped__");if(h||y){var p=h?e.value():e,b=y?t.value():t;return a||(a=new Wp),i(p,b,r,n,a)}}return d?(a||(a=new Wp),Hz(e,t,r,n,i,a)):!1}var Yz=Xz,Qz=Yz,J1=Xn;function Bj(e,t,r,n,i){return e===t?!0:e==null||t==null||!J1(e)&&!J1(t)?e!==e&&t!==t:Qz(e,t,r,n,Bj,i)}var A0=Bj,Zz=kj,Jz=A0,eU=1,tU=2;function rU(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 Zz;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?Jz(f,u,eU|tU,n,c):d))return!1}}return!0}var nU=rU,iU=Li;function aU(e){return e===e&&!iU(e)}var zj=aU,oU=zj,sU=_h;function lU(e){for(var t=sU(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,oU(i)]}return t}var uU=lU;function cU(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Uj=cU,fU=nU,dU=uU,hU=Uj;function pU(e){var t=dU(e);return t.length==1&&t[0][2]?hU(t[0][0],t[0][1]):function(r){return r===e||fU(r,e,t)}}var yU=pU;function mU(e,t){return e!=null&&t in Object(e)}var vU=mU,gU=Yk,xU=O0,bU=er,wU=_0,SU=P0,OU=uh;function _U(e,t,r){t=gU(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=OU(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&&SU(i)&&wU(o,i)&&(bU(e)||xU(e)))}var PU=_U,AU=vU,kU=PU;function jU(e,t){return e!=null&&kU(e,t,AU)}var EU=jU,$U=A0,TU=Qk,CU=EU,NU=a0,MU=zj,IU=Uj,DU=uh,RU=1,LU=2;function FU(e,t){return NU(e)&&MU(t)?IU(DU(e),t):function(r){var n=TU(r,e);return n===void 0&&n===t?CU(r,e):$U(t,n,RU|LU)}}var BU=FU;function zU(e){return e}var _s=zU;function UU(e){return function(t){return t==null?void 0:t[e]}}var VU=UU,WU=d0;function HU(e){return function(t){return WU(t,e)}}var qU=HU,KU=VU,GU=qU,XU=a0,YU=uh;function QU(e){return XU(e)?KU(YU(e)):GU(e)}var ZU=QU,JU=yU,e9=BU,t9=_s,r9=er,n9=ZU;function i9(e){return typeof e=="function"?e:e==null?t9:typeof e=="object"?r9(e)?e9(e[0],e[1]):JU(e):n9(e)}var yn=i9;function a9(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 Vj=a9;function o9(e){return e!==e}var s9=o9;function l9(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var u9=l9,c9=Vj,f9=s9,d9=u9;function h9(e,t,r){return t===t?d9(e,t,r):c9(e,f9,r)}var p9=h9,y9=p9;function m9(e,t){var r=e==null?0:e.length;return!!r&&y9(e,t,0)>-1}var v9=m9;function g9(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 x9=g9;function b9(){}var w9=b9,Hp=Lj,S9=w9,O9=S0,_9=1/0,P9=Hp&&1/O9(new Hp([,-0]))[1]==_9?function(e){return new Hp(e)}:S9,A9=P9,k9=jj,j9=v9,E9=x9,$9=$j,T9=A9,C9=S0,N9=200;function M9(e,t,r){var n=-1,i=j9,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=E9;else if(a>=N9){var u=t?null:T9(e);if(u)return C9(u);o=!1,i=$9,l=new k9}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 I9=M9,D9=yn,R9=I9;function L9(e,t){return e&&e.length?R9(e,D9(t)):[]}var F9=L9;const ew=Se(F9);function Wj(e,t,r){return t===!0?ew(e,r):se(t)?ew(e,t):e}function zo(e){"@babel/helpers - typeof";return zo=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},zo(e)}var B9=["ref"];function tw(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 wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tw(Object(r),!0).forEach(function(n){Ph(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rw(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,qj(n.key),n)}}function U9(e,t,r){return t&&rw(e.prototype,t),r&&rw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function V9(e,t,r){return t=zf(t),W9(e,Hj()?Reflect.construct(t,r||[],zf(e).constructor):t.apply(e,r))}function W9(e,t){if(t&&(zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H9(e)}function H9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hj=function(){return!!e})()}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zf(e)}function q9(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&&Fm(e,t)}function Fm(e,t){return Fm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fm(e,t)}function Ph(e,t,r){return t=qj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qj(e){var t=K9(e,"string");return zo(t)=="symbol"?t:t+""}function K9(e,t){if(zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G9(e,t){if(e==null)return{};var r=X9(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 X9(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 Y9(e){return e.value}function Q9(e,t){if(k.isValidElement(e))return k.cloneElement(e,t);if(typeof e=="function")return k.createElement(e,t);t.ref;var r=G9(t,B9);return k.createElement(w0,r)}var nw=1,xo=function(e){function t(){var r;z9(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=V9(this,t,[].concat(i)),Ph(r,"lastBoundingBox",{width:-1,height:-1}),r}return q9(t,e),U9(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)>nw||Math.abs(i.height-this.lastBoundingBox.height)>nw)&&(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?wn({},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 h=this.getBBoxSnapshot();c={left:((u||0)-h.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 y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return wn(wn({},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=wn(wn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return k.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){n.wrapperNode=h}},Q9(a,wn(wn({},this.props),{},{payload:Wj(f,u,Y9)})))}}],[{key:"getWithHeight",value:function(n,i){var a=wn(wn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&X(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(j.PureComponent);Ph(xo,"displayName","Legend");Ph(xo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var iw=Du,Z9=O0,J9=er,aw=iw?iw.isConcatSpreadable:void 0;function e7(e){return J9(e)||Z9(e)||!!(aw&&e&&e[aw])}var t7=e7,r7=Cj,n7=t7;function Kj(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=n7),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Kj(s,t-1,r,n,i):r7(i,s):n||(i[i.length]=s)}return i}var Gj=Kj;function i7(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 a7=i7,o7=a7,s7=o7(),l7=s7,u7=l7,c7=_h;function f7(e,t){return e&&u7(e,t,c7)}var Xj=f7,d7=Lu;function h7(e,t){return function(r,n){if(r==null)return r;if(!d7(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 p7=h7,y7=Xj,m7=p7,v7=m7(y7),k0=v7,g7=k0,x7=Lu;function b7(e,t){var r=-1,n=x7(e)?Array(e.length):[];return g7(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Yj=b7;function w7(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var S7=w7,ow=ms;function O7(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=ow(e),o=t!==void 0,s=t===null,l=t===t,u=ow(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 _7=O7,P7=_7;function A7(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=P7(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 k7=A7,qp=f0,j7=d0,E7=yn,$7=Yj,T7=S7,C7=Ij,N7=k7,M7=_s,I7=er;function D7(e,t,r){t.length?t=qp(t,function(a){return I7(a)?function(o){return j7(o,a.length===1?a[0]:a)}:a}):t=[M7];var n=-1;t=qp(t,C7(E7));var i=$7(e,function(a,o,s){var l=qp(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return T7(i,function(a,o){return N7(a,o,r)})}var R7=D7;function L7(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 F7=L7,B7=F7,sw=Math.max;function z7(e,t,r){return t=sw(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=sw(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),B7(e,this,s)}}var U7=z7;function V7(e){return function(){return e}}var W7=V7,H7=Ma,q7=function(){try{var e=H7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Qj=q7,K7=W7,lw=Qj,G7=_s,X7=lw?function(e,t){return lw(e,"toString",{configurable:!0,enumerable:!1,value:K7(t),writable:!0})}:G7,Y7=X7,Q7=800,Z7=16,J7=Date.now;function eV(e){var t=0,r=0;return function(){var n=J7(),i=Z7-(n-r);if(r=n,i>0){if(++t>=Q7)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var tV=eV,rV=Y7,nV=tV,iV=nV(rV),aV=iV,oV=_s,sV=U7,lV=aV;function uV(e,t){return lV(sV(e,t,oV),e+"")}var cV=uV,fV=s0,dV=Lu,hV=_0,pV=Li;function yV(e,t,r){if(!pV(r))return!1;var n=typeof t;return(n=="number"?dV(r)&&hV(t,r.length):n=="string"&&t in r)?fV(r[t],e):!1}var Ah=yV,mV=Gj,vV=R7,gV=cV,uw=Ah,xV=gV(function(e,t){if(e==null)return[];var r=t.length;return r>1&&uw(e,t[0],t[1])?t=[]:r>2&&uw(t[0],t[1],t[2])&&(t=[t[0]]),vV(e,mV(t,1),[])}),bV=xV;const j0=Se(bV);function Kl(e){"@babel/helpers - typeof";return Kl=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},Kl(e)}function Bm(){return Bm=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},Bm.apply(this,arguments)}function wV(e,t){return PV(e)||_V(e,t)||OV(e,t)||SV()}function SV(){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 OV(e,t){if(e){if(typeof e=="string")return cw(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 cw(e,t)}}function cw(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 _V(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 PV(e){if(Array.isArray(e))return e}function fw(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?fw(Object(r),!0).forEach(function(n){AV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AV(e,t,r){return t=kV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kV(e){var t=jV(e,"string");return Kl(t)=="symbol"?t:t+""}function jV(e,t){if(Kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EV(e){return Array.isArray(e)&&ct(e[0])&&ct(e[1])?e.join(" ~ "):e}var $V=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,h=t.wrapperClassName,y=t.labelClassName,p=t.label,b=t.labelFormatter,x=t.accessibilityLayer,m=x===void 0?!1:x,v=function(){if(f&&f.length){var T={padding:0,margin:0},N=(d?j0(f,d):f).map(function(D,R){if(D.type==="none")return null;var L=Kp({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},s),V=D.formatter||c||EV,I=D.value,F=D.name,H=I,Q=F;if(V&&H!=null&&Q!=null){var K=V(I,F,D,R,f);if(Array.isArray(K)){var ne=wV(K,2);H=ne[0],Q=ne[1]}else H=K}return k.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:L},ct(Q)?k.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,ct(Q)?k.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,k.createElement("span",{className:"recharts-tooltip-item-value"},H),k.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return k.createElement("ul",{className:"recharts-tooltip-item-list",style:T},N)}return null},O=Kp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=Kp({margin:0},u),S=!ce(p),_=S?p:"",P=ue("recharts-default-tooltip",h),A=ue("recharts-tooltip-label",y);S&&b&&f!==void 0&&f!==null&&(_=b(p,f));var C=m?{role:"status","aria-live":"assertive"}:{};return k.createElement("div",Bm({className:P,style:O},C),k.createElement("p",{className:A,style:w},k.isValidElement(_)?_:"".concat(_)),v())};function Gl(e){"@babel/helpers - typeof";return Gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gl(e)}function gc(e,t,r){return t=TV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TV(e){var t=CV(e,"string");return Gl(t)=="symbol"?t:t+""}function CV(e,t){if(Gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Us="recharts-tooltip-wrapper",NV={visibility:"hidden"};function MV(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ue(Us,gc(gc(gc(gc({},"".concat(Us,"-right"),X(r)&&t&&X(t.x)&&r>=t.x),"".concat(Us,"-left"),X(r)&&t&&X(t.x)&&r<t.x),"".concat(Us,"-bottom"),X(n)&&t&&X(t.y)&&n>=t.y),"".concat(Us,"-top"),X(n)&&t&&X(t.y)&&n<t.y))}function dw(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&&X(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,h=l[n];return d<h?Math.max(c,l[n]):Math.max(f,l[n])}var y=c+s,p=l[n]+u;return y>p?Math.max(f,l[n]):Math.max(c,l[n])}function IV(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 DV(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=dw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=dw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=IV({translateX:f,translateY:c,useTranslate3d:s})):u=NV,{cssProperties:u,cssClasses:MV({translateX:f,translateY:c,coordinate:r})}}function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function 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 pw(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){Um(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 RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yw(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,Jj(n.key),n)}}function LV(e,t,r){return t&&yw(e.prototype,t),r&&yw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FV(e,t,r){return t=Uf(t),BV(e,Zj()?Reflect.construct(t,r||[],Uf(e).constructor):t.apply(e,r))}function BV(e,t){if(t&&(Uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zV(e)}function zV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zj=function(){return!!e})()}function Uf(e){return Uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uf(e)}function UV(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&&zm(e,t)}function zm(e,t){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zm(e,t)}function Um(e,t,r){return t=Jj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jj(e){var t=VV(e,"string");return Uo(t)=="symbol"?t:t+""}function VV(e,t){if(Uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mw=1,WV=function(e){function t(){var r;RV(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FV(this,t,[].concat(i)),Um(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Um(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 UV(t,e),LV(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>mw||Math.abs(n.height-this.state.lastBoundingBox.height)>mw)&&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,h=i.offset,y=i.position,p=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,m=i.wrapperStyle,v=DV({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:x}),O=v.cssClasses,w=v.cssProperties,S=pw(pw({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},m);return k.createElement("div",{tabIndex:-1,className:O,style:S,ref:function(P){n.wrapperNode=P}},u)}}])}(j.PureComponent),HV=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},un={isSsr:HV(),get:function(t){return un[t]},set:function(t,r){if(typeof t=="string")un[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){un[i]=t[i]})}}};function Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}function vw(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 gw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(r),!0).forEach(function(n){E0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qV(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,tE(n.key),n)}}function KV(e,t,r){return t&&xw(e.prototype,t),r&&xw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GV(e,t,r){return t=Vf(t),XV(e,eE()?Reflect.construct(t,r||[],Vf(e).constructor):t.apply(e,r))}function XV(e,t){if(t&&(Vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YV(e)}function YV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eE=function(){return!!e})()}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vf(e)}function QV(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&&Vm(e,t)}function Vm(e,t){return Vm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vm(e,t)}function E0(e,t,r){return t=tE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tE(e){var t=ZV(e,"string");return Vo(t)=="symbol"?t:t+""}function ZV(e,t){if(Vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JV(e){return e.dataKey}function eW(e,t){return k.isValidElement(e)?k.cloneElement(e,t):typeof e=="function"?k.createElement(e,t):k.createElement($V,t)}var xr=function(e){function t(){return qV(this,t),GV(this,t,arguments)}return QV(t,e),KV(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,h=i.offset,y=i.payload,p=i.payloadUniqBy,b=i.position,x=i.reverseDirection,m=i.useTranslate3d,v=i.viewBox,O=i.wrapperStyle,w=y??[];c&&w.length&&(w=Wj(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),p,JV));var S=w.length>0;return k.createElement(WV,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:f,hasPayload:S,offset:h,position:b,reverseDirection:x,useTranslate3d:m,viewBox:v,wrapperStyle:O},eW(u,gw(gw({},this.props),{},{payload:w})))}}])}(j.PureComponent);E0(xr,"displayName","Tooltip");E0(xr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!un.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 tW=pn,rW=function(){return tW.Date.now()},nW=rW,iW=/\s/;function aW(e){for(var t=e.length;t--&&iW.test(e.charAt(t)););return t}var oW=aW,sW=oW,lW=/^\s+/;function uW(e){return e&&e.slice(0,sW(e)+1).replace(lW,"")}var cW=uW,fW=cW,bw=Li,dW=ms,ww=0/0,hW=/^[-+]0x[0-9a-f]+$/i,pW=/^0b[01]+$/i,yW=/^0o[0-7]+$/i,mW=parseInt;function vW(e){if(typeof e=="number")return e;if(dW(e))return ww;if(bw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=bw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fW(e);var r=pW.test(e);return r||yW.test(e)?mW(e.slice(2),r?2:8):hW.test(e)?ww:+e}var rE=vW,gW=Li,Gp=nW,Sw=rE,xW="Expected a function",bW=Math.max,wW=Math.min;function SW(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(xW);t=Sw(t)||0,gW(r)&&(f=!!r.leading,c="maxWait"in r,a=c?bW(Sw(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(S){var _=n,P=i;return n=i=void 0,u=S,o=e.apply(P,_),o}function y(S){return u=S,s=setTimeout(x,t),f?h(S):o}function p(S){var _=S-l,P=S-u,A=t-_;return c?wW(A,a-P):A}function b(S){var _=S-l,P=S-u;return l===void 0||_>=t||_<0||c&&P>=a}function x(){var S=Gp();if(b(S))return m(S);s=setTimeout(x,p(S))}function m(S){return s=void 0,d&&n?h(S):(n=i=void 0,o)}function v(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function O(){return s===void 0?o:m(Gp())}function w(){var S=Gp(),_=b(S);if(n=arguments,i=this,l=S,_){if(s===void 0)return y(l);if(c)return clearTimeout(s),s=setTimeout(x,t),h(l)}return s===void 0&&(s=setTimeout(x,t)),o}return w.cancel=v,w.flush=O,w}var OW=SW,_W=OW,PW=Li,AW="Expected a function";function kW(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(AW);return PW(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),_W(e,t,{leading:n,maxWait:t,trailing:i})}var jW=kW;const nE=Se(jW);function Xl(e){"@babel/helpers - typeof";return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xl(e)}function Ow(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 xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){EW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EW(e,t,r){return t=$W(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $W(e){var t=TW(e,"string");return Xl(t)=="symbol"?t:t+""}function TW(e,t){if(Xl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CW(e,t){return DW(e)||IW(e,t)||MW(e,t)||NW()}function NW(){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 MW(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 IW(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 DW(e){if(Array.isArray(e))return e}var $0=j.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,h=e.children,y=e.debounce,p=y===void 0?0:y,b=e.id,x=e.className,m=e.onResize,v=e.style,O=v===void 0?{}:v,w=j.useRef(null),S=j.useRef();S.current=m,j.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 _=j.useState({containerWidth:i.width,containerHeight:i.height}),P=CW(_,2),A=P[0],C=P[1],E=j.useCallback(function(N,D){C(function(R){var L=Math.round(N),V=Math.round(D);return R.containerWidth===L&&R.containerHeight===V?R:{containerWidth:L,containerHeight:V}})},[]);j.useEffect(function(){var N=function(F){var H,Q=F[0].contentRect,K=Q.width,ne=Q.height;E(K,ne),(H=S.current)===null||H===void 0||H.call(S,K,ne)};p>0&&(N=nE(N,p,{trailing:!0,leading:!1}));var D=new ResizeObserver(N),R=w.current.getBoundingClientRect(),L=R.width,V=R.height;return E(L,V),D.observe(w.current),function(){D.disconnect()}},[E,p]);var T=j.useMemo(function(){var N=A.containerWidth,D=A.containerHeight;if(N<0||D<0)return null;Kr(na(o)||na(l),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,l),Kr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var R=na(o)?N:o,L=na(l)?D:l;r&&r>0&&(R?L=R/r:L&&(R=L*r),d&&L>d&&(L=d)),Kr(R>0||L>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.`,R,L,o,l,f,c,r);var V=!Array.isArray(h)&&Mn(h.type).endsWith("Chart");return k.Children.map(h,function(I){return k.isValidElement(I)?j.cloneElement(I,xc({width:R,height:L},V?{style:xc({height:"100%",width:"100%",maxHeight:L,maxWidth:R},I.props.style)}:{})):I})},[r,h,l,d,c,f,A,o]);return k.createElement("div",{id:b?"".concat(b):void 0,className:ue("recharts-responsive-container",x),style:xc(xc({},O),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:w},T)}),kh=function(t){return null};kh.displayName="Cell";function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function Pw(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 Wm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(r),!0).forEach(function(n){RW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RW(e,t,r){return t=LW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LW(e){var t=FW(e,"string");return Yl(t)=="symbol"?t:t+""}function FW(e,t){if(Yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ua={widthCache:{},cacheCount:0},BW=2e3,zW={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Aw="recharts_measurement_span";function UW(e){var t=Wm({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ml=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||un.isSsr)return{width:0,height:0};var n=UW(r),i=JSON.stringify({text:t,copyStyle:n});if(Ua.widthCache[i])return Ua.widthCache[i];try{var a=document.getElementById(Aw);a||(a=document.createElement("span"),a.setAttribute("id",Aw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Wm(Wm({},zW),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ua.widthCache[i]=l,++Ua.cacheCount>BW&&(Ua.cacheCount=0,Ua.widthCache={}),l}catch{return{width:0,height:0}}},VW=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function Wf(e,t){return KW(e)||qW(e,t)||HW(e,t)||WW()}function WW(){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 HW(e,t){if(e){if(typeof e=="string")return kw(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 kw(e,t)}}function kw(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 qW(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 KW(e){if(Array.isArray(e))return e}function GW(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,YW(n.key),n)}}function XW(e,t,r){return t&&jw(e.prototype,t),r&&jw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function YW(e){var t=QW(e,"string");return Ql(t)=="symbol"?t:t+""}function QW(e,t){if(Ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ew=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$w=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ZW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,JW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,iE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},eH=Object.keys(iE),oo="NaN";function tH(e,t){return e*iE[t]}var bc=function(){function e(t,r){GW(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!ZW.test(r)&&(this.num=NaN,this.unit=""),eH.includes(r)&&(this.num=tH(t,r),this.unit="px")}return XW(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=JW.exec(r))!==null&&n!==void 0?n:[],a=Wf(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function aE(e){if(e.includes(oo))return oo;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Ew.exec(t))!==null&&r!==void 0?r:[],i=Wf(n,4),a=i[1],o=i[2],s=i[3],l=bc.parse(a??""),u=bc.parse(s??""),f=o==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return oo;t=t.replace(Ew,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=$w.exec(t))!==null&&c!==void 0?c:[],h=Wf(d,4),y=h[1],p=h[2],b=h[3],x=bc.parse(y??""),m=bc.parse(b??""),v=p==="+"?x.add(m):x.subtract(m);if(v.isNaN())return oo;t=t.replace($w,v.toString())}return t}var Tw=/\(([^()]*)\)/;function rH(e){for(var t=e;t.includes("(");){var r=Tw.exec(t),n=Wf(r,2),i=n[1];t=t.replace(Tw,aE(i))}return t}function nH(e){var t=e.replace(/\s+/g,"");return t=rH(t),t=aE(t),t}function iH(e){try{return nH(e)}catch{return oo}}function Xp(e){var t=iH(e.slice(5,-1));return t===oo?"":t}var aH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],oH=["dx","dy","angle","className","breakAll"];function Hm(){return Hm=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},Hm.apply(this,arguments)}function Cw(e,t){if(e==null)return{};var r=sH(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 sH(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 Nw(e,t){return fH(e)||cH(e,t)||uH(e,t)||lH()}function lH(){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 uH(e,t){if(e){if(typeof e=="string")return Mw(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 Mw(e,t)}}function Mw(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 cH(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 fH(e){if(Array.isArray(e))return e}var oE=/[ \f\n\r\t\v\u2028\u2029]+/,sE=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(oE));var o=a.map(function(l){return{word:l,width:ml(l,i).width}}),s=n?0:ml(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},dH=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=X(o),c=s,d=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(L,V){var I=V.word,F=V.width,H=L[L.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(I),H.width+=F+n;else{var Q={words:[I],width:F};L.push(Q)}return L},[])},h=d(r),y=function(R){return R.reduce(function(L,V){return L.width>V.width?L:V})};if(!f)return h;for(var p="…",b=function(R){var L=c.slice(0,R),V=sE({breakAll:u,style:l,children:L+p}).wordsWithComputedWidth,I=d(V),F=I.length>o||y(I).width>Number(i);return[F,I]},x=0,m=c.length-1,v=0,O;x<=m&&v<=c.length-1;){var w=Math.floor((x+m)/2),S=w-1,_=b(S),P=Nw(_,2),A=P[0],C=P[1],E=b(w),T=Nw(E,1),N=T[0];if(!A&&!N&&(x=w+1),A&&N&&(m=w-1),!A&&N){O=C;break}v++}return O||h},Iw=function(t){var r=ce(t)?[]:t.toString().split(oE);return[{words:r}]},hH=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!un.isSsr){var l,u,f=sE({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return Iw(i);return dH({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return Iw(i)},Dw="#808080",_a=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,h=d===void 0?"start":d,y=t.verticalAnchor,p=y===void 0?"end":y,b=t.fill,x=b===void 0?Dw:b,m=Cw(t,aH),v=j.useMemo(function(){return hH({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),O=m.dx,w=m.dy,S=m.angle,_=m.className,P=m.breakAll,A=Cw(m,oH);if(!ct(n)||!ct(a))return null;var C=n+(X(O)?O:0),E=a+(X(w)?w:0),T;switch(p){case"start":T=Xp("calc(".concat(u,")"));break;case"middle":T=Xp("calc(".concat((v.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:T=Xp("calc(".concat(v.length-1," * -").concat(s,")"));break}var N=[];if(c){var D=v[0].width,R=m.width;N.push("scale(".concat((X(R)?R/D:1)/D,")"))}return S&&N.push("rotate(".concat(S,", ").concat(C,", ").concat(E,")")),N.length&&(A.transform=N.join(" ")),k.createElement("text",Hm({},ae(A,!0),{x:C,y:E,className:ue("recharts-text",_),textAnchor:h,fill:x.includes("url")?Dw:x}),v.map(function(L,V){var I=L.words.join(P?"":" ");return k.createElement("tspan",{x:C,dy:V===0?T:s,key:"".concat(I,"-").concat(V)},I)}))};function $i(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function pH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function T0(e){let t,r,n;e.length!==2?(t=$i,r=(s,l)=>$i(e(s),l),n=(s,l)=>e(s)-l):(t=e===$i||e===pH?e:yH,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 yH(){return 0}function lE(e){return e===null?NaN:+e}function*mH(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const vH=T0($i),gH=vH.right;T0(lE).center;const Fu=gH;class Rw extends Map{constructor(t,r=wH){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(Lw(this,t))}has(t){return super.has(Lw(this,t))}set(t,r){return super.set(xH(this,t),r)}delete(t){return super.delete(bH(this,t))}}function Lw({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function xH({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function bH({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function wH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function SH(e=$i){if(e===$i)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 OH=Math.sqrt(50),_H=Math.sqrt(10),PH=Math.sqrt(2);function Hf(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>=OH?10:a>=_H?5:a>=PH?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?Hf(e,t,r*2):[s,l,u]}function qm(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?Hf(t,e,r):Hf(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 Km(e,t,r){return t=+t,e=+e,r=+r,Hf(e,t,r)[2]}function Gm(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Km(t,e,r):Km(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Fw(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function Bw(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function cE(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:SH(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),h=Math.max(r,Math.floor(t-u*c/l+d)),y=Math.min(n,Math.floor(t+(l-u)*c/l+d));cE(e,t,h,y,i)}const a=e[t];let o=r,s=n;for(Vs(e,r,t),i(e[n],a)>0&&Vs(e,r,n);o<s;){for(Vs(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Vs(e,r,s):(++s,Vs(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Vs(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function AH(e,t,r){if(e=Float64Array.from(mH(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Bw(e);if(t>=1)return Fw(e);var n,i=(n-1)*t,a=Math.floor(i),o=Fw(cE(e,a).subarray(0,a+1)),s=Bw(e.subarray(a+1));return o+(s-o)*(i-a)}}function kH(e,t,r=lE){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 jH(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 Tr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Yn(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 Xm=Symbol("implicit");function C0(){var e=new Rw,t=[],r=[],n=Xm;function i(a){let o=e.get(a);if(o===void 0){if(n!==Xm)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 Rw;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 C0(t,r).unknown(n)},Tr.apply(i,arguments),i}function Zl(){var e=C0().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,h=i<n,y=h?i:n,p=h?n:i;a=(p-y)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),y+=(p-y-a*(d-l))*f,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var b=jH(d).map(function(x){return y+a*x});return r(h?b.reverse():b)}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 Zl(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},Tr.apply(c(),arguments)}function fE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return fE(t())},e}function vl(){return fE(Zl.apply(null,arguments).paddingInner(1))}function N0(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dE(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Bu(){}var Jl=.7,qf=1/Jl,bo="\\s*([+-]?\\d+)\\s*",eu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EH=/^#([0-9a-f]{3,8})$/,$H=new RegExp(`^rgb\\(${bo},${bo},${bo}\\)$`),TH=new RegExp(`^rgb\\(${cn},${cn},${cn}\\)$`),CH=new RegExp(`^rgba\\(${bo},${bo},${bo},${eu}\\)$`),NH=new RegExp(`^rgba\\(${cn},${cn},${cn},${eu}\\)$`),MH=new RegExp(`^hsl\\(${eu},${cn},${cn}\\)$`),IH=new RegExp(`^hsla\\(${eu},${cn},${cn},${eu}\\)$`),zw={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};N0(Bu,tu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Uw,formatHex:Uw,formatHex8:DH,formatHsl:RH,formatRgb:Vw,toString:Vw});function Uw(){return this.rgb().formatHex()}function DH(){return this.rgb().formatHex8()}function RH(){return hE(this).formatHsl()}function Vw(){return this.rgb().formatRgb()}function tu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=EH.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ww(t):r===3?new Yt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wc(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=$H.exec(e))?new Yt(t[1],t[2],t[3],1):(t=TH.exec(e))?new Yt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CH.exec(e))?wc(t[1],t[2],t[3],t[4]):(t=NH.exec(e))?wc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MH.exec(e))?Kw(t[1],t[2]/100,t[3]/100,1):(t=IH.exec(e))?Kw(t[1],t[2]/100,t[3]/100,t[4]):zw.hasOwnProperty(e)?Ww(zw[e]):e==="transparent"?new Yt(NaN,NaN,NaN,0):null}function Ww(e){return new Yt(e>>16&255,e>>8&255,e&255,1)}function wc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Yt(e,t,r,n)}function LH(e){return e instanceof Bu||(e=tu(e)),e?(e=e.rgb(),new Yt(e.r,e.g,e.b,e.opacity)):new Yt}function Ym(e,t,r,n){return arguments.length===1?LH(e):new Yt(e,t,r,n??1)}function Yt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}N0(Yt,Ym,dE(Bu,{brighter(e){return e=e==null?qf:Math.pow(qf,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jl:Math.pow(Jl,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yt(ya(this.r),ya(this.g),ya(this.b),Kf(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:Hw,formatHex:Hw,formatHex8:FH,formatRgb:qw,toString:qw}));function Hw(){return`#${ia(this.r)}${ia(this.g)}${ia(this.b)}`}function FH(){return`#${ia(this.r)}${ia(this.g)}${ia(this.b)}${ia((isNaN(this.opacity)?1:this.opacity)*255)}`}function qw(){const e=Kf(this.opacity);return`${e===1?"rgb(":"rgba("}${ya(this.r)}, ${ya(this.g)}, ${ya(this.b)}${e===1?")":`, ${e})`}`}function Kf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ya(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ia(e){return e=ya(e),(e<16?"0":"")+e.toString(16)}function Kw(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Wr(e,t,r,n)}function hE(e){if(e instanceof Wr)return new Wr(e.h,e.s,e.l,e.opacity);if(e instanceof Bu||(e=tu(e)),!e)return new Wr;if(e instanceof Wr)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 Wr(o,s,l,e.opacity)}function BH(e,t,r,n){return arguments.length===1?hE(e):new Wr(e,t,r,n??1)}function Wr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}N0(Wr,BH,dE(Bu,{brighter(e){return e=e==null?qf:Math.pow(qf,e),new Wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jl:Math.pow(Jl,e),new Wr(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 Yt(Yp(e>=240?e-240:e+120,i,n),Yp(e,i,n),Yp(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Wr(Gw(this.h),Sc(this.s),Sc(this.l),Kf(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=Kf(this.opacity);return`${e===1?"hsl(":"hsla("}${Gw(this.h)}, ${Sc(this.s)*100}%, ${Sc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gw(e){return e=(e||0)%360,e<0?e+360:e}function Sc(e){return Math.max(0,Math.min(1,e||0))}function Yp(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 M0=e=>()=>e;function zH(e,t){return function(r){return e+r*t}}function UH(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 VH(e){return(e=+e)==1?pE:function(t,r){return r-t?UH(t,r,e):M0(isNaN(t)?r:t)}}function pE(e,t){var r=t-e;return r?zH(e,r):M0(isNaN(e)?t:e)}const Xw=function e(t){var r=VH(t);function n(i,a){var o=r((i=Ym(i)).r,(a=Ym(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=pE(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 WH(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 HH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qH(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]=Ps(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 KH(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Gf(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function GH(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]=Ps(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Qm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qp=new RegExp(Qm.source,"g");function XH(e){return function(){return e}}function YH(e){return function(t){return e(t)+""}}function QH(e,t){var r=Qm.lastIndex=Qp.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Qm.exec(e))&&(i=Qp.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:Gf(n,i)})),r=Qp.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?YH(l[0].x):XH(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 Ps(e,t){var r=typeof t,n;return t==null||r==="boolean"?M0(t):(r==="number"?Gf:r==="string"?(n=tu(t))?(t=n,Xw):QH:t instanceof tu?Xw:t instanceof Date?KH:HH(t)?WH:Array.isArray(t)?qH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?GH:Gf)(e,t)}function I0(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function ZH(e,t){t===void 0&&(t=e,e=Ps);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 JH(e){return function(){return e}}function Xf(e){return+e}var Yw=[0,1];function zt(e){return e}function Zm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:JH(isNaN(t)?NaN:.5)}function eq(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function tq(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Zm(i,n),a=r(o,a)):(n=Zm(n,i),a=r(a,o)),function(s){return a(n(s))}}function rq(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]=Zm(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Fu(e,s,1,n)-1;return a[l](i[l](s))}}function zu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function jh(){var e=Yw,t=Yw,r=Ps,n,i,a,o=zt,s,l,u;function f(){var d=Math.min(e.length,t.length);return o!==zt&&(o=eq(e[0],e[d-1])),s=d>2?rq:tq,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),Gf)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Xf),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=I0,f()},c.clamp=function(d){return arguments.length?(o=d?!0:zt,f()):o!==zt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,h){return n=d,i=h,f()}}function D0(){return jh()(zt,zt)}function nq(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Yf(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Wo(e){return e=Yf(Math.abs(e)),e?e[1]:NaN}function iq(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 aq(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var oq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ru(e){if(!(t=oq.exec(e)))throw new Error("invalid format: "+e);var t;return new R0({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]})}ru.prototype=R0.prototype;function R0(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+""}R0.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 sq(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 yE;function lq(e,t){var r=Yf(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yE=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")+Yf(e,Math.max(0,t+a-1))[0]}function Qw(e,t){var r=Yf(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 Zw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:nq,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)=>Qw(e*100,t),r:Qw,s:lq,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Jw(e){return e}var eS=Array.prototype.map,tS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uq(e){var t=e.grouping===void 0||e.thousands===void 0?Jw:iq(eS.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?Jw:aq(eS.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){c=ru(c);var d=c.fill,h=c.align,y=c.sign,p=c.symbol,b=c.zero,x=c.width,m=c.comma,v=c.precision,O=c.trim,w=c.type;w==="n"?(m=!0,w="g"):Zw[w]||(v===void 0&&(v=12),O=!0,w="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=p==="$"?r:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",_=p==="$"?n:/[%p]/.test(w)?o:"",P=Zw[w],A=/[defgprs%]/.test(w);v=v===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function C(E){var T=S,N=_,D,R,L;if(w==="c")N=P(E)+N,E="";else{E=+E;var V=E<0||1/E<0;if(E=isNaN(E)?l:P(Math.abs(E),v),O&&(E=sq(E)),V&&+E==0&&y!=="+"&&(V=!1),T=(V?y==="("?y:s:y==="-"||y==="("?"":y)+T,N=(w==="s"?tS[8+yE/3]:"")+N+(V&&y==="("?")":""),A){for(D=-1,R=E.length;++D<R;)if(L=E.charCodeAt(D),48>L||L>57){N=(L===46?i+E.slice(D+1):E.slice(D))+N,E=E.slice(0,D);break}}}m&&!b&&(E=t(E,1/0));var I=T.length+E.length+N.length,F=I<x?new Array(x-I+1).join(d):"";switch(m&&b&&(E=t(F+E,F.length?x-N.length:1/0),F=""),h){case"<":E=T+E+N+F;break;case"=":E=T+F+E+N;break;case"^":E=F.slice(0,I=F.length>>1)+T+E+N+F.slice(I);break;default:E=F+T+E+N;break}return a(E)}return C.toString=function(){return c+""},C}function f(c,d){var h=u((c=ru(c),c.type="f",c)),y=Math.max(-8,Math.min(8,Math.floor(Wo(d)/3)))*3,p=Math.pow(10,-y),b=tS[8+y/3];return function(x){return h(p*x)+b}}return{format:u,formatPrefix:f}}var Oc,L0,mE;cq({thousands:",",grouping:[3],currency:["$",""]});function cq(e){return Oc=uq(e),L0=Oc.format,mE=Oc.formatPrefix,Oc}function fq(e){return Math.max(0,-Wo(Math.abs(e)))}function dq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wo(t)/3)))*3-Wo(Math.abs(e)))}function hq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Wo(t)-Wo(e))+1}function vE(e,t,r,n){var i=Gm(e,t,r),a;switch(n=ru(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=dq(i,o))&&(n.precision=a),mE(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=hq(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=fq(i))&&(n.precision=a-(n.type==="%")*2);break}}return L0(n)}function Fi(e){var t=e.domain;return e.ticks=function(r){var n=t();return qm(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return vE(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=Km(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 Qf(){var e=D0();return e.copy=function(){return zu(e,Qf())},Tr.apply(e,arguments),Fi(e)}function gE(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,Xf),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gE(e).unknown(t)},e=arguments.length?Array.from(e,Xf):[0,1],Fi(r)}function xE(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 rS(e){return Math.log(e)}function nS(e){return Math.exp(e)}function pq(e){return-Math.log(-e)}function yq(e){return-Math.exp(-e)}function mq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function vq(e){return e===10?mq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function gq(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 iS(e){return(t,r)=>-e(-t,r)}function F0(e){const t=e(rS,nS),r=t.domain;let n=10,i,a;function o(){return i=gq(n),a=vq(n),r()[0]<0?(i=iS(i),a=iS(a),e(pq,yq)):e(rS,nS),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),h=i(f),y,p;const b=s==null?10:+s;let x=[];if(!(n%1)&&h-d<b){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(y=1;y<n;++y)if(p=d<0?y/a(-d):y*a(d),!(p<u)){if(p>f)break;x.push(p)}}else for(;d<=h;++d)for(y=n-1;y>=1;--y)if(p=d>0?y/a(-d):y*a(d),!(p<u)){if(p>f)break;x.push(p)}x.length*2<b&&(x=qm(u,f,b))}else x=qm(d,h,Math.min(h-d,b)).map(a);return c?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=ru(l)).precision==null&&(l.trim=!0),l=L0(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(xE(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function bE(){const e=F0(jh()).domain([1,10]);return e.copy=()=>zu(e,bE()).base(e.base()),Tr.apply(e,arguments),e}function aS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function oS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function B0(e){var t=1,r=e(aS(t),oS(t));return r.constant=function(n){return arguments.length?e(aS(t=+n),oS(t)):t},Fi(r)}function wE(){var e=B0(jh());return e.copy=function(){return zu(e,wE()).constant(e.constant())},Tr.apply(e,arguments)}function sS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xq(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function bq(e){return e<0?-e*e:e*e}function z0(e){var t=e(zt,zt),r=1;function n(){return r===1?e(zt,zt):r===.5?e(xq,bq):e(sS(r),sS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Fi(t)}function U0(){var e=z0(jh());return e.copy=function(){return zu(e,U0()).exponent(e.exponent())},Tr.apply(e,arguments),e}function wq(){return U0.apply(null,arguments).exponent(.5)}function lS(e){return Math.sign(e)*e*e}function Sq(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function SE(){var e=D0(),t=[0,1],r=!1,n;function i(a){var o=Sq(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(lS(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,Xf)).map(lS)),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 SE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Tr.apply(i,arguments),Fi(i)}function OE(){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]=kH(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Fu(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($i),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 OE().domain(e).range(t).unknown(n)},Tr.apply(a,arguments)}function _E(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Fu(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 _E().domain([e,t]).range(i).unknown(a)},Tr.apply(Fi(o),arguments)}function PE(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Fu(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 PE().domain(e).range(t).unknown(r)},Tr.apply(i,arguments)}const Zp=new Date,Jp=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)=>(Zp.setTime(+a),Jp.setTime(+o),e(Zp),e(Jp),Math.floor(r(Zp,Jp))),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 Zf=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zf.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):Zf);Zf.range;const $n=1e3,Pr=$n*60,Tn=Pr*60,Un=Tn*24,V0=Un*7,uS=Un*30,ey=Un*365,aa=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$n)},(e,t)=>(t-e)/$n,e=>e.getUTCSeconds());aa.range;const W0=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$n)},(e,t)=>{e.setTime(+e+t*Pr)},(e,t)=>(t-e)/Pr,e=>e.getMinutes());W0.range;const H0=ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Pr)},(e,t)=>(t-e)/Pr,e=>e.getUTCMinutes());H0.range;const q0=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$n-e.getMinutes()*Pr)},(e,t)=>{e.setTime(+e+t*Tn)},(e,t)=>(t-e)/Tn,e=>e.getHours());q0.range;const K0=ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tn)},(e,t)=>(t-e)/Tn,e=>e.getUTCHours());K0.range;const Uu=ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pr)/Un,e=>e.getDate()-1);Uu.range;const Eh=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Un,e=>e.getUTCDate()-1);Eh.range;const AE=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Un,e=>Math.floor(e/Un));AE.range;function Ia(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())*Pr)/V0)}const $h=Ia(0),Jf=Ia(1),Oq=Ia(2),_q=Ia(3),Ho=Ia(4),Pq=Ia(5),Aq=Ia(6);$h.range;Jf.range;Oq.range;_q.range;Ho.range;Pq.range;Aq.range;function Da(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)/V0)}const Th=Da(0),ed=Da(1),kq=Da(2),jq=Da(3),qo=Da(4),Eq=Da(5),$q=Da(6);Th.range;ed.range;kq.range;jq.range;qo.range;Eq.range;$q.range;const G0=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());G0.range;const X0=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());X0.range;const Vn=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());Vn.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)});Vn.range;const Wn=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());Wn.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)});Wn.range;function kE(e,t,r,n,i,a){const o=[[aa,1,$n],[aa,5,5*$n],[aa,15,15*$n],[aa,30,30*$n],[a,1,Pr],[a,5,5*Pr],[a,15,15*Pr],[a,30,30*Pr],[i,1,Tn],[i,3,3*Tn],[i,6,6*Tn],[i,12,12*Tn],[n,1,Un],[n,2,2*Un],[r,1,V0],[t,1,uS],[t,3,3*uS],[e,1,ey]];function s(u,f,c){const d=f<u;d&&([u,f]=[f,u]);const h=c&&typeof c.range=="function"?c:l(u,f,c),y=h?h.range(u,+f+1):[];return d?y.reverse():y}function l(u,f,c){const d=Math.abs(f-u)/c,h=T0(([,,b])=>b).right(o,d);if(h===o.length)return e.every(Gm(u/ey,f/ey,c));if(h===0)return Zf.every(Math.max(Gm(u,f,c),1));const[y,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return y.every(p)}return[s,l]}const[Tq,Cq]=kE(Wn,X0,Th,AE,K0,H0),[Nq,Mq]=kE(Vn,G0,$h,Uu,q0,W0);function ty(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 ry(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ws(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Iq(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=Hs(i),f=qs(i),c=Hs(a),d=qs(a),h=Hs(o),y=qs(o),p=Hs(s),b=qs(s),x=Hs(l),m=qs(l),v={a:V,A:I,b:F,B:H,c:null,d:yS,e:yS,f:iK,g:pK,G:mK,H:tK,I:rK,j:nK,L:jE,m:aK,M:oK,p:Q,q:K,Q:gS,s:xS,S:sK,u:lK,U:uK,V:cK,w:fK,W:dK,x:null,X:null,y:hK,Y:yK,Z:vK,"%":vS},O={a:ne,A:me,b:Ee,B:Ve,c:null,d:mS,e:mS,f:wK,g:TK,G:NK,H:gK,I:xK,j:bK,L:$E,m:SK,M:OK,p:St,q:vt,Q:gS,s:xS,S:_K,u:PK,U:AK,V:kK,w:jK,W:EK,x:null,X:null,y:$K,Y:CK,Z:MK,"%":vS},w={a:C,A:E,b:T,B:N,c:D,d:hS,e:hS,f:Qq,g:dS,G:fS,H:pS,I:pS,j:Kq,L:Yq,m:qq,M:Gq,p:A,q:Hq,Q:Jq,s:eK,S:Xq,u:Bq,U:zq,V:Uq,w:Fq,W:Vq,x:R,X:L,y:dS,Y:fS,Z:Wq,"%":Zq};v.x=S(r,v),v.X=S(n,v),v.c=S(t,v),O.x=S(r,O),O.X=S(n,O),O.c=S(t,O);function S(Z,le){return function(de){var W=[],Be=-1,ye=0,Ge=Z.length,Ze,Ot,mn;for(de instanceof Date||(de=new Date(+de));++Be<Ge;)Z.charCodeAt(Be)===37&&(W.push(Z.slice(ye,Be)),(Ot=cS[Ze=Z.charAt(++Be)])!=null?Ze=Z.charAt(++Be):Ot=Ze==="e"?" ":"0",(mn=le[Ze])&&(Ze=mn(de,Ot)),W.push(Ze),ye=Be+1);return W.push(Z.slice(ye,Be)),W.join("")}}function _(Z,le){return function(de){var W=Ws(1900,void 0,1),Be=P(W,Z,de+="",0),ye,Ge;if(Be!=de.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?(ye=ry(Ws(W.y,0,1)),Ge=ye.getUTCDay(),ye=Ge>4||Ge===0?ed.ceil(ye):ed(ye),ye=Eh.offset(ye,(W.V-1)*7),W.y=ye.getUTCFullYear(),W.m=ye.getUTCMonth(),W.d=ye.getUTCDate()+(W.w+6)%7):(ye=ty(Ws(W.y,0,1)),Ge=ye.getDay(),ye=Ge>4||Ge===0?Jf.ceil(ye):Jf(ye),ye=Uu.offset(ye,(W.V-1)*7),W.y=ye.getFullYear(),W.m=ye.getMonth(),W.d=ye.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),Ge="Z"in W?ry(Ws(W.y,0,1)).getUTCDay():ty(Ws(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(Ge+5)%7:W.w+W.U*7-(Ge+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,ry(W)):ty(W)}}function P(Z,le,de,W){for(var Be=0,ye=le.length,Ge=de.length,Ze,Ot;Be<ye;){if(W>=Ge)return-1;if(Ze=le.charCodeAt(Be++),Ze===37){if(Ze=le.charAt(Be++),Ot=w[Ze in cS?le.charAt(Be++):Ze],!Ot||(W=Ot(Z,de,W))<0)return-1}else if(Ze!=de.charCodeAt(W++))return-1}return W}function A(Z,le,de){var W=u.exec(le.slice(de));return W?(Z.p=f.get(W[0].toLowerCase()),de+W[0].length):-1}function C(Z,le,de){var W=h.exec(le.slice(de));return W?(Z.w=y.get(W[0].toLowerCase()),de+W[0].length):-1}function E(Z,le,de){var W=c.exec(le.slice(de));return W?(Z.w=d.get(W[0].toLowerCase()),de+W[0].length):-1}function T(Z,le,de){var W=x.exec(le.slice(de));return W?(Z.m=m.get(W[0].toLowerCase()),de+W[0].length):-1}function N(Z,le,de){var W=p.exec(le.slice(de));return W?(Z.m=b.get(W[0].toLowerCase()),de+W[0].length):-1}function D(Z,le,de){return P(Z,t,le,de)}function R(Z,le,de){return P(Z,r,le,de)}function L(Z,le,de){return P(Z,n,le,de)}function V(Z){return o[Z.getDay()]}function I(Z){return a[Z.getDay()]}function F(Z){return l[Z.getMonth()]}function H(Z){return s[Z.getMonth()]}function Q(Z){return i[+(Z.getHours()>=12)]}function K(Z){return 1+~~(Z.getMonth()/3)}function ne(Z){return o[Z.getUTCDay()]}function me(Z){return a[Z.getUTCDay()]}function Ee(Z){return l[Z.getUTCMonth()]}function Ve(Z){return s[Z.getUTCMonth()]}function St(Z){return i[+(Z.getUTCHours()>=12)]}function vt(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var le=S(Z+="",v);return le.toString=function(){return Z},le},parse:function(Z){var le=_(Z+="",!1);return le.toString=function(){return Z},le},utcFormat:function(Z){var le=S(Z+="",O);return le.toString=function(){return Z},le},utcParse:function(Z){var le=_(Z+="",!0);return le.toString=function(){return Z},le}}}var cS={"-":"",_:" ",0:"0"},mt=/^\s*\d+/,Dq=/^%/,Rq=/[\\^$*+?|[\]().{}]/g;function be(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 Lq(e){return e.replace(Rq,"\\$&")}function Hs(e){return new RegExp("^(?:"+e.map(Lq).join("|")+")","i")}function qs(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Fq(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Bq(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function zq(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Uq(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Vq(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function fS(e,t,r){var n=mt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dS(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Wq(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 Hq(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function qq(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function hS(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Kq(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function pS(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Gq(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Xq(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Yq(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Qq(e,t,r){var n=mt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Zq(e,t,r){var n=Dq.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Jq(e,t,r){var n=mt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function eK(e,t,r){var n=mt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function yS(e,t){return be(e.getDate(),t,2)}function tK(e,t){return be(e.getHours(),t,2)}function rK(e,t){return be(e.getHours()%12||12,t,2)}function nK(e,t){return be(1+Uu.count(Vn(e),e),t,3)}function jE(e,t){return be(e.getMilliseconds(),t,3)}function iK(e,t){return jE(e,t)+"000"}function aK(e,t){return be(e.getMonth()+1,t,2)}function oK(e,t){return be(e.getMinutes(),t,2)}function sK(e,t){return be(e.getSeconds(),t,2)}function lK(e){var t=e.getDay();return t===0?7:t}function uK(e,t){return be($h.count(Vn(e)-1,e),t,2)}function EE(e){var t=e.getDay();return t>=4||t===0?Ho(e):Ho.ceil(e)}function cK(e,t){return e=EE(e),be(Ho.count(Vn(e),e)+(Vn(e).getDay()===4),t,2)}function fK(e){return e.getDay()}function dK(e,t){return be(Jf.count(Vn(e)-1,e),t,2)}function hK(e,t){return be(e.getFullYear()%100,t,2)}function pK(e,t){return e=EE(e),be(e.getFullYear()%100,t,2)}function yK(e,t){return be(e.getFullYear()%1e4,t,4)}function mK(e,t){var r=e.getDay();return e=r>=4||r===0?Ho(e):Ho.ceil(e),be(e.getFullYear()%1e4,t,4)}function vK(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+be(t/60|0,"0",2)+be(t%60,"0",2)}function mS(e,t){return be(e.getUTCDate(),t,2)}function gK(e,t){return be(e.getUTCHours(),t,2)}function xK(e,t){return be(e.getUTCHours()%12||12,t,2)}function bK(e,t){return be(1+Eh.count(Wn(e),e),t,3)}function $E(e,t){return be(e.getUTCMilliseconds(),t,3)}function wK(e,t){return $E(e,t)+"000"}function SK(e,t){return be(e.getUTCMonth()+1,t,2)}function OK(e,t){return be(e.getUTCMinutes(),t,2)}function _K(e,t){return be(e.getUTCSeconds(),t,2)}function PK(e){var t=e.getUTCDay();return t===0?7:t}function AK(e,t){return be(Th.count(Wn(e)-1,e),t,2)}function TE(e){var t=e.getUTCDay();return t>=4||t===0?qo(e):qo.ceil(e)}function kK(e,t){return e=TE(e),be(qo.count(Wn(e),e)+(Wn(e).getUTCDay()===4),t,2)}function jK(e){return e.getUTCDay()}function EK(e,t){return be(ed.count(Wn(e)-1,e),t,2)}function $K(e,t){return be(e.getUTCFullYear()%100,t,2)}function TK(e,t){return e=TE(e),be(e.getUTCFullYear()%100,t,2)}function CK(e,t){return be(e.getUTCFullYear()%1e4,t,4)}function NK(e,t){var r=e.getUTCDay();return e=r>=4||r===0?qo(e):qo.ceil(e),be(e.getUTCFullYear()%1e4,t,4)}function MK(){return"+0000"}function vS(){return"%"}function gS(e){return+e}function xS(e){return Math.floor(+e/1e3)}var Va,CE,NE;IK({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 IK(e){return Va=Iq(e),CE=Va.format,Va.parse,NE=Va.utcFormat,Va.utcParse,Va}function DK(e){return new Date(e)}function RK(e){return e instanceof Date?+e:+new Date(+e)}function Y0(e,t,r,n,i,a,o,s,l,u){var f=D0(),c=f.invert,d=f.domain,h=u(".%L"),y=u(":%S"),p=u("%I:%M"),b=u("%I %p"),x=u("%a %d"),m=u("%b %d"),v=u("%B"),O=u("%Y");function w(S){return(l(S)<S?h:s(S)<S?y:o(S)<S?p:a(S)<S?b:n(S)<S?i(S)<S?x:m:r(S)<S?v:O)(S)}return f.invert=function(S){return new Date(c(S))},f.domain=function(S){return arguments.length?d(Array.from(S,RK)):d().map(DK)},f.ticks=function(S){var _=d();return e(_[0],_[_.length-1],S??10)},f.tickFormat=function(S,_){return _==null?w:u(_)},f.nice=function(S){var _=d();return(!S||typeof S.range!="function")&&(S=t(_[0],_[_.length-1],S??10)),S?d(xE(_,S)):f},f.copy=function(){return zu(f,Y0(e,t,r,n,i,a,o,s,l,u))},f}function LK(){return Tr.apply(Y0(Nq,Mq,Vn,G0,$h,Uu,q0,W0,aa,CE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function FK(){return Tr.apply(Y0(Tq,Cq,Wn,X0,Th,Eh,K0,H0,aa,NE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ch(){var e=0,t=1,r,n,i,a,o=zt,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 h,y;return arguments.length?([h,y]=d,o=c(h,y),u):[o(0),o(1)]}}return u.range=f(Ps),u.rangeRound=f(I0),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 Bi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ME(){var e=Fi(Ch()(zt));return e.copy=function(){return Bi(e,ME())},Yn.apply(e,arguments)}function IE(){var e=F0(Ch()).domain([1,10]);return e.copy=function(){return Bi(e,IE()).base(e.base())},Yn.apply(e,arguments)}function DE(){var e=B0(Ch());return e.copy=function(){return Bi(e,DE()).constant(e.constant())},Yn.apply(e,arguments)}function Q0(){var e=z0(Ch());return e.copy=function(){return Bi(e,Q0()).exponent(e.exponent())},Yn.apply(e,arguments)}function BK(){return Q0.apply(null,arguments).exponent(.5)}function RE(){var e=[],t=zt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Fu(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($i),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)=>AH(e,a/n))},r.copy=function(){return RE(t).domain(e)},Yn.apply(r,arguments)}function Nh(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=zt,f,c=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+f(p))-a)*(n*p<n*a?s:l),u(c?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,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,h):[e,t,r]},h.clamp=function(p){return arguments.length?(c=!!p,h):c},h.interpolator=function(p){return arguments.length?(u=p,h):u};function y(p){return function(b){var x,m,v;return arguments.length?([x,m,v]=b,u=ZH(p,[x,m,v]),h):[u(0),u(.5),u(1)]}}return h.range=y(Ps),h.rangeRound=y(I0),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return f=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function LE(){var e=Fi(Nh()(zt));return e.copy=function(){return Bi(e,LE())},Yn.apply(e,arguments)}function FE(){var e=F0(Nh()).domain([.1,1,10]);return e.copy=function(){return Bi(e,FE()).base(e.base())},Yn.apply(e,arguments)}function BE(){var e=B0(Nh());return e.copy=function(){return Bi(e,BE()).constant(e.constant())},Yn.apply(e,arguments)}function Z0(){var e=z0(Nh());return e.copy=function(){return Bi(e,Z0()).exponent(e.exponent())},Yn.apply(e,arguments)}function zK(){return Z0.apply(null,arguments).exponent(.5)}const bS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zl,scaleDiverging:LE,scaleDivergingLog:FE,scaleDivergingPow:Z0,scaleDivergingSqrt:zK,scaleDivergingSymlog:BE,scaleIdentity:gE,scaleImplicit:Xm,scaleLinear:Qf,scaleLog:bE,scaleOrdinal:C0,scalePoint:vl,scalePow:U0,scaleQuantile:OE,scaleQuantize:_E,scaleRadial:SE,scaleSequential:ME,scaleSequentialLog:IE,scaleSequentialPow:Q0,scaleSequentialQuantile:RE,scaleSequentialSqrt:BK,scaleSequentialSymlog:DE,scaleSqrt:wq,scaleSymlog:wE,scaleThreshold:PE,scaleTime:LK,scaleUtc:FK,tickFormat:vE},Symbol.toStringTag,{value:"Module"}));var UK=ms;function VK(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&&!UK(o):r(o,s)))var s=o,l=a}return l}var Mh=VK;function WK(e,t){return e>t}var zE=WK,HK=Mh,qK=zE,KK=_s;function GK(e){return e&&e.length?HK(e,KK,qK):void 0}var XK=GK;const Ih=Se(XK);function YK(e,t){return e<t}var UE=YK,QK=Mh,ZK=UE,JK=_s;function eG(e){return e&&e.length?QK(e,JK,ZK):void 0}var tG=eG;const Dh=Se(tG);var rG=f0,nG=yn,iG=Yj,aG=er;function oG(e,t){var r=aG(e)?rG:iG;return r(e,nG(t))}var sG=oG,lG=Gj,uG=sG;function cG(e,t){return lG(uG(e,t),1)}var fG=cG;const dG=Se(fG);var hG=A0;function pG(e,t){return hG(e,t)}var yG=pG;const Vu=Se(yG);var As=1e9,mG={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ex,Ue=!0,Er="[DecimalError] ",ma=Er+"Invalid argument: ",J0=Er+"Exponent out of range: ",ks=Math.floor,Xi=Math.pow,vG=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,or,dt=1e7,Le=7,VE=9007199254740991,td=ks(VE/Le),te={};te.absoluteValue=te.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};te.comparedTo=te.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};te.decimalPlaces=te.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};te.dividedBy=te.div=function(e){return In(this,new this.constructor(e))};te.dividedToIntegerBy=te.idiv=function(e){var t=this,r=t.constructor;return $e(In(t,new r(e),0,1),r.precision)};te.equals=te.eq=function(e){return!this.cmp(e)};te.exponent=function(){return it(this)};te.greaterThan=te.gt=function(e){return this.cmp(e)>0};te.greaterThanOrEqualTo=te.gte=function(e){return this.cmp(e)>=0};te.isInteger=te.isint=function(){return this.e>this.d.length-2};te.isNegative=te.isneg=function(){return this.s<0};te.isPositive=te.ispos=function(){return this.s>0};te.isZero=function(){return this.s===0};te.lessThan=te.lt=function(e){return this.cmp(e)<0};te.lessThanOrEqualTo=te.lte=function(e){return this.cmp(e)<1};te.logarithm=te.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(or))throw Error(Er+"NaN");if(r.s<1)throw Error(Er+(r.s?"NaN":"-Infinity"));return r.eq(or)?new n(0):(Ue=!1,t=In(nu(r,a),nu(e,a),a),Ue=!0,$e(t,i))};te.minus=te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qE(t,e):WE(t,(e.s=-e.s,e))};te.modulo=te.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Er+"NaN");return r.s?(Ue=!1,t=In(r,e,0,1).times(e),Ue=!0,r.minus(t)):$e(new n(r),i)};te.naturalExponential=te.exp=function(){return HE(this)};te.naturalLogarithm=te.ln=function(){return nu(this)};te.negated=te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};te.plus=te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WE(t,e):qE(t,(e.s=-e.s,e))};te.precision=te.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ma+e);if(t=it(i)+1,n=i.d.length-1,r=n*Le+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};te.squareRoot=te.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(Er+"NaN")}for(e=it(s),Ue=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=on(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ks((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(In(s,a,o+2)).times(.5),on(a.d).slice(0,o)===(t=on(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if($e(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Ue=!0,$e(n,r)};te.times=te.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,d=f.d,h=(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=h.length,l<u&&(a=d,d=h,h=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]+h[n]*d[i-n-1]+t,a[i--]=s%dt|0,t=s/dt|0;a[i]=(a[i]+t)%dt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ue?$e(e,c.precision):e};te.toDecimalPlaces=te.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(hn(e,0,As),t===void 0?t=n.rounding:hn(t,0,8),$e(r,e+it(r)+1,t))};te.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Pa(n,!0):(hn(e,0,As),t===void 0?t=i.rounding:hn(t,0,8),n=$e(new i(n),e+1,t),r=Pa(n,!0,e+1)),r};te.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Pa(i):(hn(e,0,As),t===void 0?t=a.rounding:hn(t,0,8),n=$e(new a(i),e+it(i)+1,t),r=Pa(n.abs(),!1,e+it(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};te.toInteger=te.toint=function(){var e=this,t=e.constructor;return $e(new t(e),it(e)+1,t.rounding)};te.toNumber=function(){return+this};te.toPower=te.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(or);if(s=new l(s),!s.s){if(e.s<1)throw Error(Er+"Infinity");return s}if(s.eq(or))return s;if(n=l.precision,e.eq(or))return $e(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=VE){for(i=new l(or),t=Math.ceil(n/Le+4),Ue=!1;r%2&&(i=i.times(s),SS(i.d,t)),r=ks(r/2),r!==0;)s=s.times(s),SS(s.d,t);return Ue=!0,e.s<0?new l(or).div(i):$e(i,n)}}else if(a<0)throw Error(Er+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ue=!1,i=e.times(nu(s,n+u)),Ue=!0,i=HE(i),i.s=a,i};te.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=it(i),n=Pa(i,r<=a.toExpNeg||r>=a.toExpPos)):(hn(e,1,As),t===void 0?t=a.rounding:hn(t,0,8),i=$e(new a(i),e,t),r=it(i),n=Pa(i,e<=r||r<=a.toExpNeg,e)),n};te.toSignificantDigits=te.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(hn(e,1,As),t===void 0?t=n.rounding:hn(t,0,8)),$e(new n(r),e,t)};te.toString=te.valueOf=te.val=te.toJSON=te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=it(e),r=e.constructor;return Pa(e,t<=r.toExpNeg||t>=r.toExpPos)};function WE(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)),Ue?$e(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/Le),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)/dt|0,l[a]%=dt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Ue?$e(t,c):t}function hn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ma+e)}function on(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=Le-n.length,r&&(a+=ai(r)),a+=n;o=e[t],n=o+"",r=Le-n.length,r&&(a+=ai(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var In=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%dt|0,o=a/dt|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*dt+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,h,y,p,b,x,m,v,O,w,S,_,P,A=n.constructor,C=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Er+"Division by zero");for(l=n.e-i.e,_=T.length,w=E.length,h=new A(C),y=h.d=[],u=0;T[u]==(E[u]||0);)++u;if(T[u]>(E[u]||0)&&--l,a==null?m=a=A.precision:o?m=a+(it(n)-it(i))+1:m=a,m<0)return new A(0);if(m=m/Le+2|0,u=0,_==1)for(f=0,T=T[0],m++;(u<w||f)&&m--;u++)v=f*dt+(E[u]||0),y[u]=v/T|0,f=v%T|0;else{for(f=dt/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),_=T.length,w=E.length),O=_,p=E.slice(0,_),b=p.length;b<_;)p[b++]=0;P=T.slice(),P.unshift(0),S=T[0],T[1]>=dt/2&&++S;do f=0,s=t(T,p,_,b),s<0?(x=p[0],_!=b&&(x=x*dt+(p[1]||0)),f=x/S|0,f>1?(f>=dt&&(f=dt-1),c=e(T,f),d=c.length,b=p.length,s=t(c,p,d,b),s==1&&(f--,r(c,_<d?P:T,d))):(f==0&&(s=f=1),c=T.slice()),d=c.length,d<b&&c.unshift(0),r(p,c,b),s==-1&&(b=p.length,s=t(T,p,_,b),s<1&&(f++,r(p,_<b?P:T,b))),b=p.length):s===0&&(f++,p=[0]),y[u++]=f,s&&p[0]?p[b++]=E[O]||0:(p=[E[O]],b=1);while((O++<w||p[0]!==void 0)&&m--)}return y[0]||y.shift(),h.e=l,$e(h,o?a+it(h)+1:a)}}();function HE(e,t){var r,n,i,a,o,s,l=0,u=0,f=e.constructor,c=f.precision;if(it(e)>16)throw Error(J0+it(e));if(!e.s)return new f(or);for(t==null?(Ue=!1,s=c):s=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Xi(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(or),f.precision=s;;){if(i=$e(i.times(e),s),r=r.times(++l),o=a.plus(In(i,r,s)),on(o.d).slice(0,s)===on(a.d).slice(0,s)){for(;u--;)a=$e(a.times(a),s);return f.precision=c,t==null?(Ue=!0,$e(a,c)):a}a=o}}function it(e){for(var t=e.e*Le,r=e.d[0];r>=10;r/=10)t++;return t}function ny(e,t,r){if(t>e.LN10.sd())throw Ue=!0,r&&(e.precision=r),Error(Er+"LN10 precision limit exceeded");return $e(new e(e.LN10),t)}function ai(e){for(var t="";e--;)t+="0";return t}function nu(e,t){var r,n,i,a,o,s,l,u,f,c=1,d=10,h=e,y=h.d,p=h.constructor,b=p.precision;if(h.s<1)throw Error(Er+(h.s?"NaN":"-Infinity"));if(h.eq(or))return new p(0);if(t==null?(Ue=!1,u=b):u=t,h.eq(10))return t==null&&(Ue=!0),ny(p,u);if(u+=d,p.precision=u,r=on(y),n=r.charAt(0),a=it(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=on(h.d),n=r.charAt(0),c++;a=it(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=ny(p,u+2,b).times(a+""),h=nu(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=b,t==null?(Ue=!0,$e(h,b)):h;for(s=o=h=In(h.minus(or),h.plus(or),u),f=$e(h.times(h),u),i=3;;){if(o=$e(o.times(f),u),l=s.plus(In(o,new p(i),u)),on(l.d).slice(0,u)===on(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(ny(p,u+2,b).times(a+""))),s=In(s,new p(c),u),p.precision=b,t==null?(Ue=!0,$e(s,b)):s;s=l,i+=2}}function wS(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=ks(r/Le),e.d=[],n=(r+1)%Le,r<0&&(n+=Le),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Le;n<i;)e.d.push(+t.slice(n,n+=Le));t=t.slice(n),n=Le-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Ue&&(e.e>td||e.e<-td))throw Error(J0+r)}else e.s=0,e.e=0,e.d=[0];return e}function $e(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+=Le,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/Le),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=Le,i=n-Le+o}if(r!==void 0&&(a=Xi(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/Xi(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=it(e),c.length=1,t=t-a-1,c[0]=Xi(10,(Le-t%Le)%Le),e.e=ks(-t/Le)||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=Xi(10,Le-n),c[f]=i>0?(u/Xi(10,o-i)%Xi(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==dt&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=dt)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Ue&&(e.e>td||e.e<-td))throw Error(J0+it(e));return e}function qE(e,t){var r,n,i,a,o,s,l,u,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ue?$e(t,h):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(h/Le),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]=dt-1;--l[a],l[i]+=dt}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,Ue?$e(t,h):t):new d(0)}function Pa(e,t,r){var n,i=it(e),a=on(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ai(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ai(-i-1)+a,r&&(n=r-o)>0&&(a+=ai(n))):i>=o?(a+=ai(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ai(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ai(n))),e.s<0?"-"+a:a}function SS(e,t){if(e.length>t)return e.length=t,!0}function KE(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(ma+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 wS(o,a.toString())}else if(typeof a!="string")throw Error(ma+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,vG.test(a))wS(o,a);else throw Error(ma+a)}if(i.prototype=te,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=KE,i.config=i.set=gG,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 gG(e){if(!e||typeof e!="object")throw Error(Er+"Object expected");var t,r,n,i=["precision",1,As,"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(ks(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ma+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ma+r+": "+n);return this}var ex=KE(mG);or=new ex(1);const ke=ex;function xG(e){return OG(e)||SG(e)||wG(e)||bG()}function bG(){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 wG(e,t){if(e){if(typeof e=="string")return Jm(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 Jm(e,t)}}function SG(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function OG(e){if(Array.isArray(e))return Jm(e)}function Jm(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 _G=function(t){return t},GE={"@@functional/placeholder":!0},XE=function(t){return t===GE},OS=function(t){return function r(){return arguments.length===0||arguments.length===1&&XE(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},PG=function e(t,r){return t===1?r:OS(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!==GE}).length;return o>=t?r.apply(void 0,i):e(t-o,OS(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 XE(c)?l.shift():c});return r.apply(void 0,xG(f).concat(l))}))})},Rh=function(t){return PG(t.length,t)},ev=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},AG=Rh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),kG=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return _G;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))}},tv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},YE=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 jG(e){var t;return e===0?t=1:t=Math.floor(new ke(e).abs().log(10).toNumber())+1,t}function EG(e,t,r){for(var n=new ke(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var $G=Rh(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),TG=Rh(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CG=Rh(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Lh={rangeStep:EG,getDigitCount:jG,interpolateNumber:$G,uninterpolateNumber:TG,uninterpolateTruncation:CG};function rv(e){return IG(e)||MG(e)||QE(e)||NG()}function NG(){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 MG(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function IG(e){if(Array.isArray(e))return nv(e)}function iu(e,t){return LG(e)||RG(e,t)||QE(e,t)||DG()}function DG(){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 QE(e,t){if(e){if(typeof e=="string")return nv(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 nv(e,t)}}function nv(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 RG(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 LG(e){if(Array.isArray(e))return e}function ZE(e){var t=iu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function JE(e,t,r){if(e.lte(0))return new ke(0);var n=Lh.getDigitCount(e.toNumber()),i=new ke(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new ke(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new ke(Math.ceil(l))}function FG(e,t,r){var n=1,i=new ke(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ke(10).pow(Lh.getDigitCount(e)-1),i=new ke(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ke(Math.floor(e)))}else e===0?i=new ke(Math.floor((t-1)/2)):r||(i=new ke(Math.floor(e)));var o=Math.floor((t-1)/2),s=kG(AG(function(l){return i.add(new ke(l-o).mul(n)).toNumber()}),ev);return s(0,t)}function e2(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 ke(0),tickMin:new ke(0),tickMax:new ke(0)};var a=JE(new ke(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ke(0):(o=new ke(e).add(t).div(2),o=o.sub(new ke(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new ke(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?e2(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 ke(s).mul(a)),tickMax:o.add(new ke(l).mul(a))})}function BG(e){var t=iu(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=ZE([r,n]),l=iu(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(rv(ev(0,i-1).map(function(){return 1/0}))):[].concat(rv(ev(0,i-1).map(function(){return-1/0})),[f]);return r>n?tv(c):c}if(u===f)return FG(u,i,a);var d=e2(u,f,o,a),h=d.step,y=d.tickMin,p=d.tickMax,b=Lh.rangeStep(y,p.add(new ke(.1).mul(h)),h);return r>n?tv(b):b}function zG(e,t){var r=iu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=ZE([n,i]),s=iu(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=JE(new ke(u).sub(l).div(f-1),a,0),d=[].concat(rv(Lh.rangeStep(new ke(l),new ke(u).sub(new ke(.99).mul(c)),c)),[u]);return n>i?tv(d):d}var UG=YE(BG),VG=YE(zG),WG=!0,iy="Invariant failed";function Aa(e,t){if(!e){if(WG)throw new Error(iy);var r=typeof t=="function"?t():t,n=r?"".concat(iy,": ").concat(r):iy;throw new Error(n)}}var HG=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ko(e){"@babel/helpers - typeof";return Ko=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},Ko(e)}function rd(){return rd=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},rd.apply(this,arguments)}function qG(e,t){return YG(e)||XG(e,t)||GG(e,t)||KG()}function KG(){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 GG(e,t){if(e){if(typeof e=="string")return _S(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 _S(e,t)}}function _S(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 XG(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 YG(e){if(Array.isArray(e))return e}function QG(e,t){if(e==null)return{};var r=ZG(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 ZG(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 JG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(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,n2(n.key),n)}}function eX(e,t,r){return t&&PS(e.prototype,t),r&&PS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tX(e,t,r){return t=nd(t),rX(e,t2()?Reflect.construct(t,r||[],nd(e).constructor):t.apply(e,r))}function rX(e,t){if(t&&(Ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nX(e)}function nX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t2=function(){return!!e})()}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nd(e)}function iX(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 r2(e,t,r){return t=n2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n2(e){var t=aX(e,"string");return Ko(t)=="symbol"?t:t+""}function aX(e,t){if(Ko(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ko(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wu=function(e){function t(){return JG(this,t),tX(this,t,arguments)}return iX(t,e),eX(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=QG(n,HG),h=ae(d,!1);this.props.direction==="x"&&f.type!=="number"&&Aa(!1);var y=l.map(function(p){var b=u(p,s),x=b.x,m=b.y,v=b.value,O=b.errorVal;if(!O)return null;var w=[],S,_;if(Array.isArray(O)){var P=qG(O,2);S=P[0],_=P[1]}else S=_=O;if(a==="vertical"){var A=f.scale,C=m+i,E=C+o,T=C-o,N=A(v-S),D=A(v+_);w.push({x1:D,y1:E,x2:D,y2:T}),w.push({x1:N,y1:C,x2:D,y2:C}),w.push({x1:N,y1:E,x2:N,y2:T})}else if(a==="horizontal"){var R=c.scale,L=x+i,V=L-o,I=L+o,F=R(v-S),H=R(v+_);w.push({x1:V,y1:H,x2:I,y2:H}),w.push({x1:L,y1:F,x2:L,y2:H}),w.push({x1:V,y1:F,x2:I,y2:F})}return k.createElement(xe,rd({className:"recharts-errorBar",key:"bar-".concat(w.map(function(Q){return"".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))},h),w.map(function(Q){return k.createElement("line",rd({},Q,{key:"line-".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))}))});return k.createElement(xe,{className:"recharts-errorBars"},y)}}])}(k.Component);r2(Wu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});r2(Wu,"displayName","ErrorBar");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 AS(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 Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AS(Object(r),!0).forEach(function(n){oX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oX(e,t,r){return t=sX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sX(e){var t=lX(e,"string");return au(t)=="symbol"?t:t+""}function lX(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i2=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ir(r,xo);if(!o)return null;var s=xo.defaultProps,l=s!==void 0?Ui(Ui({},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,h=c.props,y=h.sectors||h.data||[];return f.concat(y.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,h=d!==void 0?Ui(Ui({},d),c.props):{},y=h.dataKey,p=h.name,b=h.legendType,x=h.hide;return{inactive:x,dataKey:y,type:l.iconType||b||"square",color:tx(c),value:p||y,payload:h}}),Ui(Ui(Ui({},l),xo.getWithHeight(o,i)),{},{payload:u,item:o})};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function kS(e){return dX(e)||fX(e)||cX(e)||uX()}function uX(){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 cX(e,t){if(e){if(typeof e=="string")return av(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 av(e,t)}}function fX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dX(e){if(Array.isArray(e))return av(e)}function av(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 jS(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 Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jS(Object(r),!0).forEach(function(n){wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wo(e,t,r){return t=hX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hX(e){var t=pX(e,"string");return ou(t)=="symbol"?t:t+""}function pX(e,t){if(ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ou(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)?ur(e,t,r):se(t)?t(e):r}function gl(e,t,r,n){var i=dG(e,function(s){return lt(s,t)});if(r==="number"){var a=i.filter(function(s){return X(s)||parseFloat(s)});return a.length?[Dh(a),Ih(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 yX=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,h=void 0;if(Ft(c-f)!==Ft(d-c)){var y=[];if(Ft(d-c)===Ft(l[1]-l[0])){h=d;var p=c+l[1]-l[0];y[0]=Math.min(p,(p+f)/2),y[1]=Math.max(p,(p+f)/2)}else{h=f;var b=d+l[1]-l[0];y[0]=Math.min(c,(b+c)/2),y[1]=Math.max(c,(b+c)/2)}var x=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var m=Math.min(f,d),v=Math.max(f,d);if(t>(m+c)/2&&t<=(v+c)/2){o=i[u].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},tx=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Qe(Qe({},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},mX=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,h=c.length;d<h;d++){var y=f[c[d]],p=y.items,b=y.cateAxisId,x=p.filter(function(_){return Mn(_.type).indexOf("Bar")>=0});if(x&&x.length){var m=x[0].type.defaultProps,v=m!==void 0?Qe(Qe({},m),x[0].props):x[0].props,O=v.barSize,w=v[b];o[w]||(o[w]=[]);var S=ce(O)?r:O;o[w].push({item:x[0],stackList:x.slice(1),barSize:ce(S)?void 0:Bt(S,n,0)})}}return o},vX=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=Bt(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,y=o.reduce(function(O,w){return O+w.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&h>0&&(d=!0,h*=.9,y=l*h);var p=(i-y)/2>>0,b={offset:p-u,size:0};f=o.reduce(function(O,w){var S={item:w.item,position:{offset:b.offset+b.size+u,size:d?h:w.barSize}},_=[].concat(kS(O),[S]);return b=_[_.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(P){_.push({item:P,position:b})}),_},c)}else{var x=Bt(n,i,0,!0);i-2*x-(l-1)*u<=0&&(u=0);var m=(i-2*x-(l-1)*u)/l;m>1&&(m>>=0);var v=s===+s?Math.min(m,s):m;f=o.reduce(function(O,w,S){var _=[].concat(kS(O),[{item:w.item,position:{offset:x+(m+u)*S+(m-v)/2,size:v}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(P){_.push({item:P,position:_[_.length-1].position})}),_},c)}return f},gX=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=i2({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,h=u.align,y=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&y==="middle")&&h!=="center"&&X(t[h]))return Qe(Qe({},t),{},wo({},h,t[h]+(c||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&y!=="middle"&&X(t[y]))return Qe(Qe({},t),{},wo({},y,t[y]+(d||0)))}return t},xX=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},a2=function(t,r,n,i,a){var o=r.props.children,s=cr(o,Wu).filter(function(u){return xX(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)?[Dh(c),Ih(c)]:[c,c],h=l.reduce(function(y,p){var b=lt(f,p,0),x=d[0]-Math.abs(Array.isArray(b)?b[0]:b),m=d[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(x,y[0]),Math.max(m,y[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},bX=function(t,r,n,i,a){var o=r.map(function(s){return a2(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},o2=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&a2(t,l,u,i)||gl(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},[])},s2=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},l2=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},Cn=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?Ft(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!Ru(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}})},ay=new WeakMap,_c=function(t,r){if(typeof r!="function")return t;ay.has(t)||ay.set(t,new WeakMap);var n=ay.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},u2=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:Zl(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Qf(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:vl(),realScaleType:"point"}:a==="category"?{scale:Zl(),realScaleType:"band"}:{scale:Qf(),realScaleType:"linear"};if(Sa(i)){var l="scale".concat(bh(i));return{scale:(bS[l]||vl)(),realScaleType:bS[l]?l:"point"}}return se(i)?{scale:i}:{scale:vl(),realScaleType:"point"}},ES=1e-4,c2=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])-ES,o=Math.max(i[0],i[1])+ES,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},wX=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},SX=function(t,r){if(!r||r.length!==2||!X(r[0])||!X(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(!X(t[0])||t[0]<n)&&(a[0]=n),(!X(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},OX=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=Ru(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])}},_X=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=Ru(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)}},PX={sign:OX,expand:K6,none:Fo,silhouette:G6,wiggle:X6,positive:_X},AX=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=PX[n],o=q6().keys(i).value(function(s,l){return+lt(s,l,0)}).order($m).offset(a);return o(t)},kX=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 h,y=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Qe(Qe({},d.type.defaultProps),d.props):d.props,p=y.stackId,b=y.hide;if(b)return c;var x=y[n],m=c[x]||{hasStack:!1,stackGroups:{}};if(ct(p)){var v=m.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};v.items.push(d),m.hasStack=!0,m.stackGroups[p]=v}else m.stackGroups[ws("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Qe(Qe({},c),{},wo({},x,m))},l),f={};return Object.keys(u).reduce(function(c,d){var h=u[d];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,b){var x=h.stackGroups[b];return Qe(Qe({},p),{},wo({},b,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:AX(t,x.items,a)}))},y)}return Qe(Qe({},c),{},wo({},d,h))},f)},f2=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=UG(u,a,s);return t.domain([Dh(f),Ih(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=VG(c,a,s);return{niceTicks:d}}return null};function $S(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=$f(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 TS=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},jX=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]},EX=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Qe(Qe({},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},$X=function(t){return t.reduce(function(r,n){return[Dh(n.concat([r[0]]).filter(X)),Ih(n.concat([r[1]]).filter(X))]},[1/0,-1/0])},d2=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=$X(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})},CS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ov=function(t,r,n){if(se(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(X(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(CS.test(t[0])){var a=+CS.exec(t[0])[1];i[0]=r[0]-a}else se(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(X(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(NS.test(t[1])){var o=+NS.exec(t[1])[1];i[1]=r[1]+o}else se(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},id=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=j0(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},MS=function(t,r,n){return!t||!t.length||Vu(t,ur(n,"type.defaultProps.domain"))?r:t},h2=function(t,r){var n=t.type.defaultProps?Qe(Qe({},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 Qe(Qe({},ae(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:tx(t),value:lt(r,i),type:l,payload:r,chartType:u,hide:f})};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 IS(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?IS(Object(r),!0).forEach(function(n){p2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p2(e,t,r){return t=TX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TX(e){var t=CX(e,"string");return su(t)=="symbol"?t:t+""}function CX(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NX(e,t){return RX(e)||DX(e,t)||IX(e,t)||MX()}function MX(){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 IX(e,t){if(e){if(typeof e=="string")return DS(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 DS(e,t)}}function DS(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 DX(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 RX(e){if(Array.isArray(e))return e}var ad=Math.PI/180,LX=function(t){return t*180/Math.PI},Ie=function(t,r,n,i){return{x:t+Math.cos(-ad*i)*n,y:r+Math.sin(-ad*i)*n}},y2=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},FX=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=Bt(t.cx,o,o/2),c=Bt(t.cy,s,s/2),d=y2(o,s,n),h=Bt(t.innerRadius,d,0),y=Bt(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(b,x){var m=r[x],v=m.domain,O=m.reversed,w;if(ce(m.range))i==="angleAxis"?w=[l,u]:i==="radiusAxis"&&(w=[h,y]),O&&(w=[w[1],w[0]]);else{w=m.range;var S=w,_=NX(S,2);l=_[0],u=_[1]}var P=u2(m,a),A=P.realScaleType,C=P.scale;C.domain(v).range(w),c2(C);var E=f2(C,Pn(Pn({},m),{},{realScaleType:A})),T=Pn(Pn(Pn({},m),E),{},{range:w,radius:y,realScaleType:A,scale:C,cx:f,cy:c,innerRadius:h,outerRadius:y,startAngle:l,endAngle:u});return Pn(Pn({},b),{},p2({},x,T))},{})},BX=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))},zX=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=BX({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:LX(u),angleInRadian:u}},UX=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}},VX=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},RS=function(t,r){var n=t.x,i=t.y,a=zX({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=UX(r),c=f.startAngle,d=f.endAngle,h=s,y;if(c<=d){for(;h>d;)h-=360;for(;h<c;)h+=360;y=h>=c&&h<=d}else{for(;h>c;)h-=360;for(;h<d;)h+=360;y=h>=d&&h<=c}return y?Pn(Pn({},r),{},{radius:o,angle:VX(h,r)}):null},m2=function(t){return!j.isValidElement(t)&&!se(t)&&typeof t!="boolean"?t.className:""};function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}var WX=["offset"];function HX(e){return XX(e)||GX(e)||KX(e)||qX()}function qX(){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 KX(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 GX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XX(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 YX(e,t){if(e==null)return{};var r=QX(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 QX(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 LS(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?LS(Object(r),!0).forEach(function(n){ZX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZX(e,t,r){return t=JX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JX(e){var t=eY(e,"string");return lu(t)=="symbol"?t:t+""}function eY(e,t){if(lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uu(){return uu=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},uu.apply(this,arguments)}var tY=function(t){var r=t.value,n=t.formatter,i=ce(t.children)?r:t.children;return se(n)?n(i):i},rY=function(t,r){var n=Ft(r-t),i=Math.min(Math.abs(r-t),360);return n*i},nY=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,h=l.startAngle,y=l.endAngle,p=l.clockWise,b=(c+d)/2,x=rY(h,y),m=x>=0?1:-1,v,O;i==="insideStart"?(v=h+m*o,O=p):i==="insideEnd"?(v=y-m*o,O=!p):i==="end"&&(v=y+m*o,O=p),O=x<=0?O:!O;var w=Ie(u,f,b,v),S=Ie(u,f,b,v+(O?1:-1)*359),_="M".concat(w.x,",").concat(w.y,`
|
||
A`).concat(b,",").concat(b,",0,1,").concat(O?0:1,`,
|
||
`).concat(S.x,",").concat(S.y),P=ce(t.id)?ws("recharts-radial-line-"):t.id;return k.createElement("text",uu({},n,{dominantBaseline:"central",className:ue("recharts-radial-bar-label",s)}),k.createElement("defs",null,k.createElement("path",{id:P,d:_})),k.createElement("textPath",{xlinkHref:"#".concat(P)},r))},iY=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 h=Ie(o,s,u+n,d),y=h.x,p=h.y;return{x:y,y:p,textAnchor:y>=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 b=(l+u)/2,x=Ie(o,s,b,d),m=x.x,v=x.y;return{x:m,y:v,textAnchor:"middle",verticalAnchor:"middle"}},aY=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,h=c>0?"end":"start",y=c>0?"start":"end",p=u>=0?1:-1,b=p*i,x=p>0?"end":"start",m=p>0?"start":"end";if(a==="top"){var v={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:h};return at(at({},v),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:y};return at(at({},O),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var w={x:s-b,y:l+f/2,textAnchor:x,verticalAnchor:"middle"};return at(at({},w),n?{width:Math.max(w.x-n.x,0),height:f}:{})}if(a==="right"){var S={x:s+u+b,y:l+f/2,textAnchor:m,verticalAnchor:"middle"};return at(at({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:f}:{})}var _=n?{width:u,height:f}:{};return a==="insideLeft"?at({x:s+b,y:l+f/2,textAnchor:m,verticalAnchor:"middle"},_):a==="insideRight"?at({x:s+u-b,y:l+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideTop"?at({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?at({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:h},_):a==="insideTopLeft"?at({x:s+b,y:l+d,textAnchor:m,verticalAnchor:y},_):a==="insideTopRight"?at({x:s+u-b,y:l+d,textAnchor:x,verticalAnchor:y},_):a==="insideBottomLeft"?at({x:s+b,y:l+f-d,textAnchor:m,verticalAnchor:h},_):a==="insideBottomRight"?at({x:s+u-b,y:l+f-d,textAnchor:x,verticalAnchor:h},_):vs(a)&&(X(a.x)||na(a.x))&&(X(a.y)||na(a.y))?at({x:s+Bt(a.x,u),y:l+Bt(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):at({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},oY=function(t){return"cx"in t&&X(t.cx)};function pt(e){var t=e.offset,r=t===void 0?5:t,n=YX(e,WX),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)&&!j.isValidElement(u)&&!se(u))return null;if(j.isValidElement(u))return j.cloneElement(u,i);var h;if(se(u)){if(h=j.createElement(u,i),j.isValidElement(h))return h}else h=tY(i);var y=oY(a),p=ae(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return nY(i,h,p);var b=y?iY(i):aY(i);return k.createElement(_a,uu({className:ue("recharts-label",c)},p,b,{breakAll:d}),h)}pt.displayName="Label";var v2=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,h=t.top,y=t.left,p=t.width,b=t.height,x=t.clockWise,m=t.labelViewBox;if(m)return m;if(X(p)&&X(b)){if(X(c)&&X(d))return{x:c,y:d,width:p,height:b};if(X(h)&&X(y))return{x:h,y,width:p,height:b}}return X(c)&&X(d)?{x:c,y:d,width:0,height:0}:X(r)&&X(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:x}:t.viewBox?t.viewBox:{}},sY=function(t,r){return t?t===!0?k.createElement(pt,{key:"label-implicit",viewBox:r}):ct(t)?k.createElement(pt,{key:"label-implicit",viewBox:r,value:t}):j.isValidElement(t)?t.type===pt?j.cloneElement(t,{key:"label-implicit",viewBox:r}):k.createElement(pt,{key:"label-implicit",content:t,viewBox:r}):se(t)?k.createElement(pt,{key:"label-implicit",content:t,viewBox:r}):vs(t)?k.createElement(pt,uu({viewBox:r},t,{key:"label-implicit"})):null:null},lY=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=v2(t),o=cr(i,pt).map(function(l,u){return j.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=sY(t.label,r||a);return[s].concat(HX(o))};pt.parseViewBox=v2;pt.renderCallByParent=lY;function uY(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var cY=uY;const fY=Se(cY);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)}var dY=["valueAccessor"],hY=["data","dataKey","clockWise","id","textBreakAll"];function pY(e){return gY(e)||vY(e)||mY(e)||yY()}function yY(){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 mY(e,t){if(e){if(typeof e=="string")return lv(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 lv(e,t)}}function vY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gY(e){if(Array.isArray(e))return lv(e)}function lv(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 od(){return od=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},od.apply(this,arguments)}function FS(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 BS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){xY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xY(e,t,r){return t=bY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bY(e){var t=wY(e,"string");return cu(t)=="symbol"?t:t+""}function wY(e,t){if(cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zS(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}var OY=function(t){return Array.isArray(t.value)?fY(t.value):t.value};function Dn(e){var t=e.valueAccessor,r=t===void 0?OY:t,n=zS(e,dY),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=zS(n,hY);return!i||!i.length?null:k.createElement(xe,{className:"recharts-label-list"},i.map(function(f,c){var d=ce(a)?r(f,c):lt(f&&f.payload,a),h=ce(s)?{}:{id:"".concat(s,"-").concat(c)};return k.createElement(pt,od({},ae(f,!0),u,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:pt.parseViewBox(ce(o)?f:BS(BS({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Dn.displayName="LabelList";function _Y(e,t){return e?e===!0?k.createElement(Dn,{key:"labelList-implicit",data:t}):k.isValidElement(e)||se(e)?k.createElement(Dn,{key:"labelList-implicit",data:t,content:e}):vs(e)?k.createElement(Dn,od({data:t},e,{key:"labelList-implicit"})):null:null}function PY(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=cr(n,Dn).map(function(o,s){return j.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=_Y(e.label,t);return[a].concat(pY(i))}Dn.renderCallByParent=PY;function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function uv(){return uv=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},uv.apply(this,arguments)}function US(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 VS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(n){AY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AY(e,t,r){return t=kY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kY(e){var t=jY(e,"string");return fu(t)=="symbol"?t:t+""}function jY(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EY=function(t,r){var n=Ft(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Pc=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)/ad,d=u?a:a+o*c,h=Ie(r,n,f,d),y=Ie(r,n,i,d),p=u?a-o*c:a,b=Ie(r,n,f*Math.cos(c*ad),p);return{center:h,circleTangency:y,lineTangency:b,theta:c}},g2=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=EY(o,s),u=o+l,f=Ie(r,n,a,o),c=Ie(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 h=Ie(r,n,i,o),y=Ie(r,n,i,u);d+="L ".concat(y.x,",").concat(y.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
|
||
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},$Y=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=Ft(f-u),d=Pc({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,y=d.lineTangency,p=d.theta,b=Pc({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),x=b.circleTangency,m=b.lineTangency,v=b.theta,O=l?Math.abs(u-f):Math.abs(u-f)-p-v;if(O<0)return s?"M ".concat(y.x,",").concat(y.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
|
||
`):g2({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var w="M ".concat(y.x,",").concat(y.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(c<0),",").concat(x.x,",").concat(x.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(m.x,",").concat(m.y,`
|
||
`);if(i>0){var S=Pc({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),_=S.circleTangency,P=S.lineTangency,A=S.theta,C=Pc({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),E=C.circleTangency,T=C.lineTangency,N=C.theta,D=l?Math.abs(u-f):Math.abs(u-f)-A-N;if(D<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(T.x,",").concat(T.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},TY={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x2=function(t){var r=VS(VS({},TY),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 h=ue("recharts-sector",d),y=o-a,p=Bt(s,y,0,!0),b;return p>0&&Math.abs(f-c)<360?b=$Y({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):b=g2({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),k.createElement("path",uv({},ae(r,!0),{className:h,d:b,role:"img"}))};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 cv(){return cv=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},cv.apply(this,arguments)}function WS(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 HS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WS(Object(r),!0).forEach(function(n){CY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CY(e,t,r){return t=NY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NY(e){var t=MY(e,"string");return du(t)=="symbol"?t:t+""}function MY(e,t){if(du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qS={curveBasisClosed:I6,curveBasisOpen:D6,curveBasis:M6,curveBumpX:b6,curveBumpY:w6,curveLinearClosed:R6,curveLinear:Sh,curveMonotoneX:L6,curveMonotoneY:F6,curveNatural:B6,curveStep:z6,curveStepAfter:V6,curveStepBefore:U6},Ac=function(t){return t.x===+t.x&&t.y===+t.y},Ks=function(t){return t.x},Gs=function(t){return t.y},IY=function(t,r){if(se(t))return t;var n="curve".concat(bh(t));return(n==="curveMonotone"||n==="curveBump")&&r?qS["".concat(n).concat(r==="vertical"?"Y":"X")]:qS[n]||Sh},DY=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=IY(n,s),c=u?a.filter(function(p){return Ac(p)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return Ac(p)}):o,y=c.map(function(p,b){return HS(HS({},p),{},{base:h[b]})});return s==="vertical"?d=mc().y(Gs).x1(Ks).x0(function(p){return p.base.x}):d=mc().x(Ks).y1(Gs).y0(function(p){return p.base.y}),d.defined(Ac).curve(f),d(y)}return s==="vertical"&&X(o)?d=mc().y(Gs).x1(Ks).x0(o):X(o)?d=mc().x(Ks).y1(Gs).y0(o):d=hj().x(Ks).y(Gs),d.defined(Ac).curve(f),d(c)},sd=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?DY(t):i;return k.createElement("path",cv({},ae(t,!1),Tf(t),{className:ue("recharts-curve",r),d:o,ref:a}))},b2={exports:{}},RY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",LY=RY,FY=LY;function w2(){}function S2(){}S2.resetWarningCache=w2;var BY=function(){function e(n,i,a,o,s,l){if(l!==FY){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:S2,resetWarningCache:w2};return r.PropTypes=r,r};b2.exports=BY();var zY=b2.exports;const we=Se(zY);var UY=Object.getOwnPropertyNames,VY=Object.getOwnPropertySymbols,WY=Object.prototype.hasOwnProperty;function KS(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function kc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function GS(e){return UY(e).concat(VY(e))}var HY=Object.hasOwn||function(e,t){return WY.call(e,t)};function Ra(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var qY="__v",KY="__o",GY="_owner",XS=Object.getOwnPropertyDescriptor,YS=Object.keys;function XY(e,t,r){var 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 YY(e,t){return Ra(e.getTime(),t.getTime())}function QY(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function ZY(e,t){return e===t}function QS(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),f=!1,c=0;(s=u.next())&&!s.done;){if(i[c]){c++;continue}var d=o.value,h=s.value;if(r.equals(d[0],h[0],l,c,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}var JY=Ra;function eQ(e,t,r){var n=YS(e),i=n.length;if(YS(t).length!==i)return!1;for(;i-- >0;)if(!O2(e,t,r,n[i]))return!1;return!0}function Xs(e,t,r){var n=GS(e),i=n.length;if(GS(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!O2(e,t,r,a)||(o=XS(e,a),s=XS(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function tQ(e,t){return Ra(e.valueOf(),t.valueOf())}function rQ(e,t){return e.source===t.source&&e.flags===t.flags}function ZS(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,f=0;(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 nQ(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function iQ(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 O2(e,t,r,n){return(n===GY||n===KY||n===qY)&&(e.$$typeof||t.$$typeof)?!0:HY(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var aQ="[object Arguments]",oQ="[object Boolean]",sQ="[object Date]",lQ="[object Error]",uQ="[object Map]",cQ="[object Number]",fQ="[object Object]",dQ="[object RegExp]",hQ="[object Set]",pQ="[object String]",yQ="[object URL]",mQ=Array.isArray,JS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,eO=Object.assign,vQ=Object.prototype.toString.call.bind(Object.prototype.toString);function gQ(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,p,b){if(y===p)return!0;if(y==null||p==null)return!1;var x=typeof y;if(x!==typeof p)return!1;if(x!=="object")return x==="number"?o(y,p,b):x==="function"?i(y,p,b):!1;var m=y.constructor;if(m!==p.constructor)return!1;if(m===Object)return s(y,p,b);if(mQ(y))return t(y,p,b);if(JS!=null&&JS(y))return c(y,p,b);if(m===Date)return r(y,p,b);if(m===RegExp)return u(y,p,b);if(m===Map)return a(y,p,b);if(m===Set)return f(y,p,b);var v=vQ(y);return v===sQ?r(y,p,b):v===dQ?u(y,p,b):v===uQ?a(y,p,b):v===hQ?f(y,p,b):v===fQ?typeof y.then!="function"&&typeof p.then!="function"&&s(y,p,b):v===yQ?d(y,p,b):v===lQ?n(y,p,b):v===aQ?s(y,p,b):v===oQ||v===cQ||v===pQ?l(y,p,b):!1}}function xQ(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Xs:XY,areDatesEqual:YY,areErrorsEqual:QY,areFunctionsEqual:ZY,areMapsEqual:n?KS(QS,Xs):QS,areNumbersEqual:JY,areObjectsEqual:n?Xs:eQ,arePrimitiveWrappersEqual:tQ,areRegExpsEqual:rQ,areSetsEqual:n?KS(ZS,Xs):ZS,areTypedArraysEqual:n?Xs:nQ,areUrlsEqual:iQ};if(r&&(i=eO({},i,r(i))),t){var a=kc(i.areArraysEqual),o=kc(i.areMapsEqual),s=kc(i.areObjectsEqual),l=kc(i.areSetsEqual);i=eO({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function bQ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function wQ(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,h=f.meta;return r(l,u,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var SQ=zi();zi({strict:!0});zi({circular:!0});zi({circular:!0,strict:!0});zi({createInternalComparator:function(){return Ra}});zi({strict:!0,createInternalComparator:function(){return Ra}});zi({circular:!0,createInternalComparator:function(){return Ra}});zi({circular:!0,createInternalComparator:function(){return Ra},strict:!0});function zi(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=xQ(e),l=gQ(s),u=n?n(l):bQ(l);return wQ({circular:r,comparator:l,createState:i,equals:u,strict:o})}function OQ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function tO(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):OQ(i)};requestAnimationFrame(n)}function fv(e){"@babel/helpers - typeof";return fv=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},fv(e)}function _Q(e){return jQ(e)||kQ(e)||AQ(e)||PQ()}function PQ(){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 AQ(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 kQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jQ(e){if(Array.isArray(e))return e}function EQ(){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=_Q(o),l=s[0],u=s.slice(1);if(typeof l=="number"){tO(i.bind(null,u),l);return}i(l),tO(i.bind(null,u));return}fv(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 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 nO(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 iO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nO(Object(r),!0).forEach(function(n){_2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _2(e,t,r){return t=$Q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $Q(e){var t=TQ(e,"string");return hu(t)==="symbol"?t:String(t)}function TQ(e,t){if(hu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CQ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},NQ=function(t){return t},MQ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},xl=function(t,r){return Object.keys(r).reduce(function(n,i){return iO(iO({},n),{},_2({},i,t(i,r[i])))},{})},aO=function(t,r,n){return t.map(function(i){return"".concat(MQ(i)," ").concat(r,"ms ").concat(n)}).join(",")};function IQ(e,t){return LQ(e)||RQ(e,t)||P2(e,t)||DQ()}function DQ(){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 RQ(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 LQ(e){if(Array.isArray(e))return e}function FQ(e){return UQ(e)||zQ(e)||P2(e)||BQ()}function BQ(){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 P2(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 zQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UQ(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 ld=1e-4,A2=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},k2=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=A2(t,r);return k2(i,n)}},VQ=function(t,r){return function(n){var i=A2(t,r),a=[].concat(FQ(i.map(function(o,s){return o*s}).slice(1)),[0]);return k2(a,n)}},sO=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(b){return parseFloat(b)}),f=IQ(u,4);i=f[0],a=f[1],o=f[2],s=f[3]}}}var c=oO(i,o),d=oO(a,s),h=VQ(i,o),y=function(x){return x>1?1:x<0?0:x},p=function(x){for(var m=x>1?1:x,v=m,O=0;O<8;++O){var w=c(v)-m,S=h(v);if(Math.abs(w-m)<ld||S<ld)return d(v);v=y(v-w/S)}return d(v)};return p.isStepper=!1,p},WQ=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 h=-(f-c)*n,y=d*a,p=d+(h-y)*s/1e3,b=d*s/1e3+f;return Math.abs(b-c)<ld&&Math.abs(p)<ld?[c,0]:[b,p]};return l.isStepper=!0,l.dt=s,l},HQ=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 sO(i);case"spring":return WQ();default:if(i.split("(")[0]==="cubic-bezier")return sO(i)}return typeof i=="function"?i:null};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 lO(e){return GQ(e)||KQ(e)||j2(e)||qQ()}function qQ(){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 KQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GQ(e){if(Array.isArray(e))return pv(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 gt(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){hv(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 hv(e,t,r){return t=XQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XQ(e){var t=YQ(e,"string");return pu(t)==="symbol"?t:String(t)}function YQ(e,t){if(pu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QQ(e,t){return eZ(e)||JQ(e,t)||j2(e,t)||ZQ()}function ZQ(){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 j2(e,t){if(e){if(typeof e=="string")return pv(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 pv(e,t)}}function pv(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 JQ(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 eZ(e){if(Array.isArray(e))return e}var ud=function(t,r,n){return t+(r-t)*n},yv=function(t){var r=t.from,n=t.to;return r!==n},tZ=function e(t,r,n){var i=xl(function(a,o){if(yv(o)){var s=t(o.from,o.to,o.velocity),l=QQ(s,2),u=l[0],f=l[1];return gt(gt({},o),{},{from:u,velocity:f})}return o},r);return n<1?xl(function(a,o){return yv(o)?gt(gt({},o),{},{velocity:ud(o.velocity,i[a].velocity,n),from:ud(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const rZ=function(e,t,r,n,i){var a=CQ(e,t),o=a.reduce(function(b,x){return gt(gt({},b),{},hv({},x,[e[x],t[x]]))},{}),s=a.reduce(function(b,x){return gt(gt({},b),{},hv({},x,{from:e[x],velocity:0,to:t[x]}))},{}),l=-1,u,f,c=function(){return null},d=function(){return xl(function(x,m){return m.from},s)},h=function(){return!Object.values(s).filter(yv).length},y=function(x){u||(u=x);var m=x-u,v=m/r.dt;s=tZ(r,s,v),i(gt(gt(gt({},e),t),d())),u=x,h()||(l=requestAnimationFrame(c))},p=function(x){f||(f=x);var m=(x-f)/n,v=xl(function(w,S){return ud.apply(void 0,lO(S).concat([r(m)]))},o);if(i(gt(gt(gt({},e),t),v)),m<1)l=requestAnimationFrame(c);else{var O=xl(function(w,S){return ud.apply(void 0,lO(S).concat([r(1)]))},o);i(gt(gt(gt({},e),t),O))}};return c=r.isStepper?y:p,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function Go(e){"@babel/helpers - typeof";return Go=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},Go(e)}var nZ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function iZ(e,t){if(e==null)return{};var r=aZ(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 aZ(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 oy(e){return uZ(e)||lZ(e)||sZ(e)||oZ()}function oZ(){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 sZ(e,t){if(e){if(typeof e=="string")return mv(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 mv(e,t)}}function lZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uZ(e){if(Array.isArray(e))return mv(e)}function mv(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 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 Nr(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){rl(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 rl(e,t,r){return t=E2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fO(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,E2(n.key),n)}}function fZ(e,t,r){return t&&fO(e.prototype,t),r&&fO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E2(e){var t=dZ(e,"string");return Go(t)==="symbol"?t:String(t)}function dZ(e,t){if(Go(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Go(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hZ(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 pZ(e){var t=yZ();return function(){var n=cd(e),i;if(t){var a=cd(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return gv(this,i)}}function gv(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xv(e)}function xv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yZ(){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 cd(e){return cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cd(e)}var Fh=function(e){hZ(r,e);var t=pZ(r);function r(n,i){var a;cZ(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,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(xv(a)),a.changeStyle=a.changeStyle.bind(xv(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),gv(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof d=="function")return a.state={style:u},gv(a);a.state={style:l?rl({},l,u):u}}else a.state={style:{}};return a}return fZ(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 h={style:l?rl({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(h);return}if(!(SQ(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=y||u?c:i.to;if(this.state&&d){var b={style:l?rl({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(b)}this.runAnimation(Nr(Nr({},this.props),{},{from:p,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,h=rZ(o,s,HQ(u),l,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([d,f,y,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,h=function(p,b,x){if(x===0)return p;var m=b.duration,v=b.easing,O=v===void 0?"ease":v,w=b.style,S=b.properties,_=b.onAnimationEnd,P=x>0?o[x-1]:b,A=S||Object.keys(w);if(typeof O=="function"||O==="spring")return[].concat(oy(p),[a.runJSAnimation.bind(a,{from:P.style,to:w,duration:m,easing:O}),m]);var C=aO(A,m,O),E=Nr(Nr(Nr({},P.style),w),{},{transition:C});return[].concat(oy(p),[E,m,_]).filter(NQ)};return this.manager.start([l].concat(oy(o.reduce(h,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=EQ());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,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?rl({},s,l):l,b=aO(Object.keys(p),o,u);y.start([f,a,Nr(Nr({},p),{},{transition:b}),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=iZ(i,nZ),u=j.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(h){var y=h.props,p=y.style,b=p===void 0?{}:p,x=y.className,m=j.cloneElement(h,Nr(Nr({},l),{},{style:Nr(Nr({},b),f),className:x}));return m};return u===1?c(j.Children.only(a)):k.createElement("div",null,j.Children.map(a,function(d){return c(d)}))}}]),r}(j.PureComponent);Fh.displayName="Animate";Fh.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Fh.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};const ka=Fh;function yu(e){"@babel/helpers - typeof";return yu=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},yu(e)}function fd(){return fd=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},fd.apply(this,arguments)}function mZ(e,t){return bZ(e)||xZ(e,t)||gZ(e,t)||vZ()}function vZ(){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 gZ(e,t){if(e){if(typeof e=="string")return dO(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 dO(e,t)}}function dO(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 xZ(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 bZ(e){if(Array.isArray(e))return e}function hO(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 pO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){wZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wZ(e,t,r){return t=SZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SZ(e){var t=OZ(e,"string");return yu(t)=="symbol"?t:t+""}function OZ(e,t){if(yu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yO=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,h=4;d<h;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 y=Math.min(o,a);f="M ".concat(t,",").concat(r+s*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+l*y,",").concat(r,`
|
||
L `).concat(t+n-l*y,",").concat(r,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*y,`
|
||
L `).concat(t+n,",").concat(r+i-s*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+i,`
|
||
L `).concat(t+l*y,",").concat(r+i,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},_Z=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},PZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rx=function(t){var r=pO(pO({},PZ),t),n=j.useRef(),i=j.useState(-1),a=mZ(i,2),o=a[0],s=a[1];j.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,d=r.radius,h=r.className,y=r.animationEasing,p=r.animationDuration,b=r.animationBegin,x=r.isAnimationActive,m=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var v=ue("recharts-rectangle",h);return m?k.createElement(ka,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:p,animationEasing:y,isActive:m},function(O){var w=O.width,S=O.height,_=O.x,P=O.y;return k.createElement(ka,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:p,isActive:x,easing:y},k.createElement("path",fd({},ae(r,!0),{className:v,d:yO(_,P,w,S,d),ref:n})))}):k.createElement("path",fd({},ae(r,!0),{className:v,d:yO(l,u,f,c,d)}))},AZ=["points","className","baseLinePoints","connectNulls"];function so(){return so=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},so.apply(this,arguments)}function kZ(e,t){if(e==null)return{};var r=jZ(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 jZ(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 mO(e){return CZ(e)||TZ(e)||$Z(e)||EZ()}function EZ(){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 $Z(e,t){if(e){if(typeof e=="string")return bv(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 bv(e,t)}}function TZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CZ(e){if(Array.isArray(e))return bv(e)}function bv(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 vO=function(t){return t&&t.x===+t.x&&t.y===+t.y},NZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){vO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),vO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},bl=function(t,r){var n=NZ(t);r&&(n=[n.reduce(function(a,o){return[].concat(mO(a),mO(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},MZ=function(t,r,n){var i=bl(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(bl(r.reverse(),n).slice(1))},IZ=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=kZ(t,AZ);if(!r||!r.length)return null;var s=ue("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=MZ(r,i,a);return k.createElement("g",{className:s},k.createElement("path",so({},ae(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?k.createElement("path",so({},ae(o,!0),{fill:"none",d:bl(r,a)})):null,l?k.createElement("path",so({},ae(o,!0),{fill:"none",d:bl(i,a)})):null)}var f=bl(r,a);return k.createElement("path",so({},ae(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function wv(){return wv=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},wv.apply(this,arguments)}var Bh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ue("recharts-dot",a);return r===+r&&n===+n&&i===+i?k.createElement("circle",wv({},ae(t,!1),Tf(t),{className:o,cx:r,cy:n,r:i})):null};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 DZ=["x","y","top","left","width","height","className"];function Sv(){return Sv=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},Sv.apply(this,arguments)}function gO(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 RZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(n){LZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LZ(e,t,r){return t=FZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FZ(e){var t=BZ(e,"string");return mu(t)=="symbol"?t:t+""}function BZ(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zZ(e,t){if(e==null)return{};var r=UZ(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 UZ(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 VZ=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},WZ=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,h=d===void 0?0:d,y=t.className,p=zZ(t,DZ),b=RZ({x:n,y:a,top:s,left:u,width:c,height:h},p);return!X(n)||!X(a)||!X(c)||!X(h)||!X(s)||!X(u)?null:k.createElement("path",Sv({},ae(b,!0),{className:ue("recharts-cross",y),d:VZ(n,a,c,h,s,u)}))},HZ=Mh,qZ=zE,KZ=yn;function GZ(e,t){return e&&e.length?HZ(e,KZ(t),qZ):void 0}var XZ=GZ;const YZ=Se(XZ);var QZ=Mh,ZZ=yn,JZ=UE;function eJ(e,t){return e&&e.length?QZ(e,ZZ(t),JZ):void 0}var tJ=eJ;const rJ=Se(tJ);var nJ=["cx","cy","angle","ticks","axisLine"],iJ=["ticks","tick","angle","tickFormatter","stroke"];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 wl(){return wl=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},wl.apply(this,arguments)}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 Vi(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){zh(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 bO(e,t){if(e==null)return{};var r=aJ(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 aJ(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 oJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wO(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,T2(n.key),n)}}function sJ(e,t,r){return t&&wO(e.prototype,t),r&&wO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lJ(e,t,r){return t=dd(t),uJ(e,$2()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}function uJ(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 cJ(e)}function cJ(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 dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dd(e)}function fJ(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 zh(e,t,r){return t=T2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T2(e){var t=dJ(e,"string");return Xo(t)=="symbol"?t:t+""}function dJ(e,t){if(Xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uh=function(e){function t(){return oJ(this,t),lJ(this,t,arguments)}return fJ(t,e),sJ(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return Ie(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=YZ(s,function(f){return f.coordinate||0}),u=rJ(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=bO(n,nJ),f=s.reduce(function(y,p){return[Math.min(y[0],p.coordinate),Math.max(y[1],p.coordinate)]},[1/0,-1/0]),c=Ie(i,a,f[0],o),d=Ie(i,a,f[1],o),h=Vi(Vi(Vi({},ae(u,!1)),{},{fill:"none"},ae(l,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return k.createElement("line",wl({className:"recharts-polar-radius-axis-line"},h))}},{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=bO(i,iJ),c=this.getTickTextAnchor(),d=ae(f,!1),h=ae(o,!1),y=a.map(function(p,b){var x=n.getTickValueCoord(p),m=Vi(Vi(Vi(Vi({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(x.x,", ").concat(x.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:b},x),{},{payload:p});return k.createElement(xe,wl({className:ue("recharts-polar-radius-axis-tick",m2(o)),key:"tick-".concat(p.coordinate)},Oa(n.props,p,b)),t.renderTickItem(o,m,l?l(p.value,b):p.value))});return k.createElement(xe,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:k.createElement(xe,{className:ue("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),pt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):se(n)?o=n(i):o=k.createElement(_a,wl({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(j.PureComponent);zh(Uh,"displayName","PolarRadiusAxis");zh(Uh,"axisType","radiusAxis");zh(Uh,"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 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 Yi(){return Yi=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},Yi.apply(this,arguments)}function SO(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 Wi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){Vh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(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,N2(n.key),n)}}function pJ(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yJ(e,t,r){return t=hd(t),mJ(e,C2()?Reflect.construct(t,r||[],hd(e).constructor):t.apply(e,r))}function mJ(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 vJ(e)}function vJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C2=function(){return!!e})()}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hd(e)}function gJ(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&&_v(e,t)}function _v(e,t){return _v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_v(e,t)}function Vh(e,t,r){return t=N2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N2(e){var t=xJ(e,"string");return Yo(t)=="symbol"?t:t+""}function xJ(e,t){if(Yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bJ=Math.PI/180,_O=1e-5,Wh=function(e){function t(){return hJ(this,t),yJ(this,t,arguments)}return gJ(t,e),pJ(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=Ie(a,o,s,n.coordinate),d=Ie(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*bJ),o;return a>_O?o=i==="outer"?"start":"end":a<-_O?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=Wi(Wi({},ae(this.props,!1)),{},{fill:"none"},ae(s,!1));if(l==="circle")return k.createElement(Bh,Yi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return Ie(i,a,o,d.coordinate)});return k.createElement(IZ,Yi({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=ae(this.props,!1),c=ae(o,!1),d=Wi(Wi({},f),{},{fill:"none"},ae(s,!1)),h=a.map(function(y,p){var b=n.getTickLineCoord(y),x=n.getTickTextAnchor(y),m=Wi(Wi(Wi({textAnchor:x},f),{},{stroke:"none",fill:u},c),{},{index:p,payload:y,x:b.x2,y:b.y2});return k.createElement(xe,Yi({className:ue("recharts-polar-angle-axis-tick",m2(o)),key:"tick-".concat(y.coordinate)},Oa(n.props,y,p)),s&&k.createElement("line",Yi({className:"recharts-polar-angle-axis-tick-line"},d,b)),o&&t.renderTickItem(o,m,l?l(y.value,p):y.value))});return k.createElement(xe,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:k.createElement(xe,{className:ue("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):se(n)?o=n(i):o=k.createElement(_a,Yi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(j.PureComponent);Vh(Wh,"displayName","PolarAngleAxis");Vh(Wh,"axisType","angleAxis");Vh(Wh,"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 wJ=Rj,SJ=wJ(Object.getPrototypeOf,Object),OJ=SJ,_J=Gn,PJ=OJ,AJ=Xn,kJ="[object Object]",jJ=Function.prototype,EJ=Object.prototype,M2=jJ.toString,$J=EJ.hasOwnProperty,TJ=M2.call(Object);function CJ(e){if(!AJ(e)||_J(e)!=kJ)return!1;var t=PJ(e);if(t===null)return!0;var r=$J.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&M2.call(r)==TJ}var NJ=CJ;const MJ=Se(NJ);var IJ=Gn,DJ=Xn,RJ="[object Boolean]";function LJ(e){return e===!0||e===!1||DJ(e)&&IJ(e)==RJ}var FJ=LJ;const BJ=Se(FJ);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)}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 zJ(e,t){return HJ(e)||WJ(e,t)||VJ(e,t)||UJ()}function UJ(){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 VJ(e,t){if(e){if(typeof e=="string")return PO(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 PO(e,t)}}function PO(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 WJ(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 HJ(e){if(Array.isArray(e))return e}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 kO(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){qJ(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 qJ(e,t,r){return t=KJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KJ(e){var t=GJ(e,"string");return vu(t)=="symbol"?t:t+""}function GJ(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jO=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},XJ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YJ=function(t){var r=kO(kO({},XJ),t),n=j.useRef(),i=j.useState(-1),a=zJ(i,2),o=a[0],s=a[1];j.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var v=n.current.getTotalLength();v&&s(v)}catch{}},[]);var l=r.x,u=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,p=r.animationDuration,b=r.animationBegin,x=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var m=ue("recharts-trapezoid",h);return x?k.createElement(ka,{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:p,animationEasing:y,isActive:x},function(v){var O=v.upperWidth,w=v.lowerWidth,S=v.height,_=v.x,P=v.y;return k.createElement(ka,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:p,easing:y},k.createElement("path",pd({},ae(r,!0),{className:m,d:jO(_,P,O,w,S),ref:n})))}):k.createElement("g",null,k.createElement("path",pd({},ae(r,!0),{className:m,d:jO(l,u,f,c,d)})))},QJ=["option","shapeType","propTransformer","activeClassName","isActive"];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 ZJ(e,t){if(e==null)return{};var r=JJ(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 JJ(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 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 yd(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){eee(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 eee(e,t,r){return t=tee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tee(e){var t=ree(e,"string");return gu(t)=="symbol"?t:t+""}function ree(e,t){if(gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nee(e,t){return yd(yd({},t),e)}function iee(e,t){return e==="symbols"}function $O(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return k.createElement(rx,r);case"trapezoid":return k.createElement(YJ,r);case"sector":return k.createElement(x2,r);case"symbols":if(iee(t))return k.createElement(b0,r);break;default:return null}}function aee(e){return j.isValidElement(e)?e.props:e}function I2(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?nee:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=ZJ(e,QJ),u;if(j.isValidElement(t))u=j.cloneElement(t,yd(yd({},l),aee(t)));else if(se(t))u=t(l);else if(MJ(t)&&!BJ(t)){var f=i(t,l);u=k.createElement($O,{shapeType:r,elementProps:f})}else{var c=l;u=k.createElement($O,{shapeType:r,elementProps:c})}return s?k.createElement(xe,{className:o},u):u}function Hh(e,t){return t!=null&&"trapezoids"in e.props}function qh(e,t){return t!=null&&"sectors"in e.props}function xu(e,t){return t!=null&&"points"in e.props}function oee(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 see(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function lee(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function uee(e,t){var r;return Hh(e,t)?r=oee:qh(e,t)?r=see:xu(e,t)&&(r=lee),r}function cee(e,t){var r;return Hh(e,t)?r="trapezoids":qh(e,t)?r="sectors":xu(e,t)&&(r="points"),r}function fee(e,t){if(Hh(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(qh(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 xu(e,t)?t.payload:{}}function dee(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=cee(r,t),a=fee(r,t),o=n.filter(function(l,u){var f=Vu(a,l),c=r.props[i].filter(function(y){var p=uee(r,t);return p(y,t)}),d=r.props[i].indexOf(c[c.length-1]),h=u===d;return f&&h}),s=n.indexOf(o[o.length-1]);return s}var Kc;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)}function lo(){return lo=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},lo.apply(this,arguments)}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 Ce(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){Or(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 hee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CO(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,R2(n.key),n)}}function pee(e,t,r){return t&&CO(e.prototype,t),r&&CO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yee(e,t,r){return t=md(t),mee(e,D2()?Reflect.construct(t,r||[],md(e).constructor):t.apply(e,r))}function mee(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 vee(e)}function vee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D2=function(){return!!e})()}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},md(e)}function gee(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&&Pv(e,t)}function Pv(e,t){return Pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pv(e,t)}function Or(e,t,r){return t=R2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R2(e){var t=xee(e,"string");return Qo(t)=="symbol"?t:t+""}function xee(e,t){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qn=function(e){function t(r){var n;return hee(this,t),n=yee(this,t,[r]),Or(n,"pieRef",null),Or(n,"sectorRefs",[]),Or(n,"id",ws("recharts-pie-")),Or(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),se(i)&&i()}),Or(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),se(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return gee(t,e),pee(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=ae(this.props,!1),c=ae(o,!1),d=ae(s,!1),h=o&&o.offsetRadius||20,y=n.map(function(p,b){var x=(p.startAngle+p.endAngle)/2,m=Ie(p.cx,p.cy,p.outerRadius+h,x),v=Ce(Ce(Ce(Ce({},f),p),{},{stroke:"none"},c),{},{index:b,textAnchor:t.getTextAnchor(m.x,p.cx)},m),O=Ce(Ce(Ce(Ce({},f),p),{},{fill:"none",stroke:p.fill},d),{},{index:b,points:[Ie(p.cx,p.cy,p.outerRadius,x),m]}),w=l;return ce(l)&&ce(u)?w="value":ce(l)&&(w=u),k.createElement(xe,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(b)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(o,v,lt(p,w)))});return k.createElement(xe,{className:"recharts-pie-labels"},y)}},{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,h=c?o:d,y=Ce(Ce({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return k.createElement(xe,lo({ref:function(b){b&&!i.sectorRefs.includes(b)&&i.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},Oa(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)}),k.createElement(I2,lo({option:h,isActive:c,shapeType:"sector"},y)))})}},{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,h=c.prevIsAnimationActive;return k.createElement(ka,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var p=y.t,b=[],x=a&&a[0],m=x.startAngle;return a.forEach(function(v,O){var w=d&&d[O],S=O>0?ur(v,"paddingAngle",0):0;if(w){var _=ar(w.endAngle-w.startAngle,v.endAngle-v.startAngle),P=Ce(Ce({},v),{},{startAngle:m+S,endAngle:m+_(p)+S});b.push(P),m=P.endAngle}else{var A=v.endAngle,C=v.startAngle,E=ar(0,A-C),T=E(p),N=Ce(Ce({},v),{},{startAngle:m+S,endAngle:m+T+S});b.push(N),m=N.endAngle}}),k.createElement(xe,null,n.renderSectorsStatically(b))})}},{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||!Vu(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,h=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!X(u)||!X(f)||!X(c)||!X(d))return null;var p=ue("recharts-pie",s);return k.createElement(xe,{tabIndex:this.props.rootTabIndex,className:p,ref:function(x){n.pieRef=x}},this.renderSectors(),l&&this.renderLabels(o),pt.renderCallByParent(this.props,null,!1),(!h||y)&&Dn.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(k.isValidElement(n))return k.cloneElement(n,i);if(se(n))return n(i);var o=ue("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return k.createElement(sd,lo({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(k.isValidElement(n))return k.cloneElement(n,i);var o=a;if(se(n)&&(o=n(i),k.isValidElement(o)))return o;var s=ue("recharts-pie-label-text",typeof n!="boolean"&&!se(n)?n.className:"");return k.createElement(_a,lo({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(j.PureComponent);Kc=Qn;Or(Qn,"displayName","Pie");Or(Qn,"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:!un.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Or(Qn,"parseDeltaAngle",function(e,t){var r=Ft(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Or(Qn,"getRealPieData",function(e){var t=e.data,r=e.children,n=ae(e,!1),i=cr(r,kh);return t&&t.length?t.map(function(a,o){return Ce(Ce(Ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Ce(Ce({},n),a.props)}):[]});Or(Qn,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=y2(i,a),s=n+Bt(e.cx,i,i/2),l=r+Bt(e.cy,a,a/2),u=Bt(e.innerRadius,o,0),f=Bt(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}});Or(Qn,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Ce(Ce({},t.type.defaultProps),t.props):t.props,i=Kc.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,h=Math.abs(n.minAngle),y=Kc.parseCoordinateOfPie(n,r),p=Kc.parseDeltaAngle(o,s),b=Math.abs(p),x=u;ce(u)&&ce(c)?(Kr(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),x="value"):ce(u)&&(Kr(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),x=c);var m=i.filter(function(P){return lt(P,x,0)!==0}).length,v=(b>=360?m:m-1)*l,O=b-m*h-v,w=i.reduce(function(P,A){var C=lt(A,x,0);return P+(X(C)?C:0)},0),S;if(w>0){var _;S=i.map(function(P,A){var C=lt(P,x,0),E=lt(P,f,A),T=(X(C)?C:0)/w,N;A?N=_.endAngle+Ft(p)*l*(C!==0?1:0):N=o;var D=N+Ft(p)*((C!==0?h:0)+T*O),R=(N+D)/2,L=(y.innerRadius+y.outerRadius)/2,V=[{name:E,value:C,payload:P,dataKey:x,type:d}],I=Ie(y.cx,y.cy,L,R);return _=Ce(Ce(Ce({percent:T,cornerRadius:a,name:E,tooltipPayload:V,midAngle:R,middleRadius:L,tooltipPosition:I},P),y),{},{value:lt(P,x),startAngle:N,endAngle:D,payload:P,paddingAngle:Ft(p)*l}),_})}return Ce(Ce({},y),{},{sectors:S,data:i})});var bee=Math.ceil,wee=Math.max;function See(e,t,r,n){for(var i=-1,a=wee(bee((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Oee=See,_ee=rE,NO=1/0,Pee=17976931348623157e292;function Aee(e){if(!e)return e===0?e:0;if(e=_ee(e),e===NO||e===-NO){var t=e<0?-1:1;return t*Pee}return e===e?e:0}var L2=Aee,kee=Oee,jee=Ah,sy=L2;function Eee(e){return function(t,r,n){return n&&typeof n!="number"&&jee(t,r,n)&&(r=n=void 0),t=sy(t),r===void 0?(r=t,t=0):r=sy(r),n=n===void 0?t<r?1:-1:sy(n),kee(t,r,n,e)}}var $ee=Eee,Tee=$ee,Cee=Tee(),Nee=Cee;const vd=Se(Nee);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 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 IO(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){F2(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 F2(e,t,r){return t=Mee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mee(e){var t=Iee(e,"string");return bu(t)=="symbol"?t:t+""}function Iee(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dee=["Webkit","Moz","O","ms"],Ree=function(t,r){if(!t)return null;var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Dee.reduce(function(a,o){return IO(IO({},a),{},F2({},o+n,r))},{});return i[t]=r,i};function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}function gd(){return gd=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},gd.apply(this,arguments)}function DO(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 ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){rr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(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,z2(n.key),n)}}function Fee(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bee(e,t,r){return t=xd(t),zee(e,B2()?Reflect.construct(t,r||[],xd(e).constructor):t.apply(e,r))}function zee(e,t){if(t&&(Zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uee(e)}function Uee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B2=function(){return!!e})()}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xd(e)}function Vee(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&&Av(e,t)}function Av(e,t){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Av(e,t)}function rr(e,t,r){return t=z2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z2(e){var t=Wee(e,"string");return Zo(t)=="symbol"?t:t+""}function Wee(e,t){if(Zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hee=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=vl().domain(vd(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}},LO=function(t){return t.changedTouches&&!!t.changedTouches.length},Jo=function(e){function t(r){var n;return Lee(this,t),n=Bee(this,t,[r]),rr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),rr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),rr(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()}),rr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),rr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),rr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),rr(n,"handleSlideDragStart",function(i){var a=LO(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 Vee(t,e),Fee(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),h=t.getIndexInRange(o,c),y=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:y===f?f:y-y%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 se(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,h=l.endIndex,y=l.onChange,p=n.pageX-a;p>0?p=Math.min(p,u+f-c-s,u+f-c-o):p<0&&(p=Math.max(p,u-o,u-s));var b=this.getIndex({startX:o+p,endX:s+p});(b.startIndex!==d||b.endIndex!==h)&&y&&y(b),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=LO(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,h=f.travellerWidth,y=f.onChange,p=f.gap,b=f.data,x={startX:this.state.startX,endX:this.state.endX},m=n.pageX-a;m>0?m=Math.min(m,c+d-h-u):m<0&&(m=Math.max(m,c-u)),x[o]=u+m;var v=this.getIndex(x),O=v.startIndex,w=v.endIndex,S=function(){var P=b.length-1;return o==="startX"&&(s>l?O%p===0:w%p===0)||s<l&&w===P||o==="endX"&&(s>l?w%p===0:O%p===0)||s>l&&w===P};this.setState(rr(rr({},o,u+m),"brushMoveStartX",n.pageX),function(){y&&S()&&y(v)})}},{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 h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(rr({},i,h),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 k.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=j.Children.only(u);return c?k.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,h=l.ariaLabel,y=l.data,p=l.startIndex,b=l.endIndex,x=Math.max(n,this.props.x),m=ly(ly({},ae(this.props,!1)),{},{x,y:u,width:f,height:c}),v=h||"Min value: ".concat((a=y[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[b])===null||o===void 0?void 0:o.name);return k.createElement(xe,{tabIndex:0,role:"slider","aria-label":v,"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,m))}},{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 k.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,h=5,y={pointerEvents:"none",fill:u};return k.createElement(xe,{className:"recharts-brush-texts"},k.createElement(_a,gd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:o+s/2},y),this.getTextOfTick(i)),k.createElement(_a,gd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+h,y:o+s/2},y),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,h=d.startX,y=d.endX,p=d.isTextActive,b=d.isSlideMoving,x=d.isTravellerMoving,m=d.isTravellerFocused;if(!i||!i.length||!X(s)||!X(l)||!X(u)||!X(f)||u<=0||f<=0)return null;var v=ue("recharts-brush",a),O=k.Children.count(o)===1,w=Ree("userSelect","none");return k.createElement(xe,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(p||b||x||m||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 k.createElement(k.Fragment,null,k.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),k.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),k.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 k.isValidElement(n)?a=k.cloneElement(n,i):se(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 ly({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?Hee({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(h){return i.scale(h)});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}}])}(j.PureComponent);rr(Jo,"displayName","Brush");rr(Jo,"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 qee=k0;function Kee(e,t){var r;return qee(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Gee=Kee,Xee=Ej,Yee=yn,Qee=Gee,Zee=er,Jee=Ah;function ete(e,t,r){var n=Zee(e)?Xee:Qee;return r&&Jee(e,t,r)&&(t=void 0),n(e,Yee(t))}var tte=ete;const rte=Se(tte);var fn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},FO=Qj;function nte(e,t,r){t=="__proto__"&&FO?FO(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ite=nte,ate=ite,ote=Xj,ste=yn;function lte(e,t){var r={};return t=ste(t),ote(e,function(n,i,a){ate(r,i,t(n,i,a))}),r}var ute=lte;const cte=Se(ute);function fte(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 dte=fte,hte=k0;function pte(e,t){var r=!0;return hte(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var yte=pte,mte=dte,vte=yte,gte=yn,xte=er,bte=Ah;function wte(e,t,r){var n=xte(e)?mte:vte;return r&&bte(e,t,r)&&(t=void 0),n(e,gte(t))}var Ste=wte;const U2=Se(Ste);var Ote=["x","y"];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 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)}function BO(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 Ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(n){_te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _te(e,t,r){return t=Pte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pte(e){var t=Ate(e,"string");return wu(t)=="symbol"?t:t+""}function Ate(e,t){if(wu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kte(e,t){if(e==null)return{};var r=jte(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 jte(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 Ete(e,t){var r=e.x,n=e.y,i=kte(e,Ote),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 Ys(Ys(Ys(Ys(Ys({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function zO(e){return k.createElement(I2,kv({shapeType:"rectangle",propTransformer:Ete,activeClassName:"recharts-active-bar"},e))}var $te=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=typeof n=="number";return a?t(n,i):(a||Aa(!1),r)}},Tte=["value","background"],V2;function es(e){"@babel/helpers - typeof";return es=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},es(e)}function Cte(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}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 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 tt(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){xi(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 Mte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VO(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,H2(n.key),n)}}function Ite(e,t,r){return t&&VO(e.prototype,t),r&&VO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dte(e,t,r){return t=wd(t),Rte(e,W2()?Reflect.construct(t,r||[],wd(e).constructor):t.apply(e,r))}function Rte(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lte(e)}function Lte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W2=function(){return!!e})()}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wd(e)}function Fte(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 xi(e,t,r){return t=H2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H2(e){var t=Bte(e,"string");return es(t)=="symbol"?t:t+""}function Bte(e,t){if(es(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(es(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var La=function(e){function t(){var r;Mte(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Dte(this,t,[].concat(i)),xi(r,"state",{isAnimationFinished:!1}),xi(r,"id",ws("recharts-bar-")),xi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),xi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Fte(t,e),Ite(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=ae(this.props,!1);return n&&n.map(function(c,d){var h=d===l,y=h?u:o,p=tt(tt(tt({},f),c),{},{isActive:h,option:y,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return k.createElement(xe,bd({className:"recharts-bar-rectangle"},Oa(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)}),k.createElement(zO,p))})}},{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 k.createElement(ka,{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(h){var y=h.t,p=a.map(function(b,x){var m=d&&d[x];if(m){var v=ar(m.x,b.x),O=ar(m.y,b.y),w=ar(m.width,b.width),S=ar(m.height,b.height);return tt(tt({},b),{},{x:v(y),y:O(y),width:w(y),height:S(y)})}if(o==="horizontal"){var _=ar(0,b.height),P=_(y);return tt(tt({},b),{},{y:b.y+b.height-P,height:P})}var A=ar(0,b.width),C=A(y);return tt(tt({},b),{},{width:C})});return k.createElement(xe,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Vu(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=ae(this.props.background,!1);return a.map(function(u,f){u.value;var c=u.background,d=Cte(u,Tte);if(!c)return null;var h=tt(tt(tt(tt(tt({},d),{},{fill:"#eee"},c),l),Oa(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return k.createElement(zO,bd({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},h))})}},{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=cr(f,Wu);if(!c)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(b,x){var m=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:m,errorVal:lt(b,x)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return k.createElement(xe,y,c.map(function(p){return k.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:h})}))}},{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,h=n.isAnimationActive,y=n.background,p=n.id;if(i||!a||!a.length)return null;var b=this.state.isAnimationFinished,x=ue("recharts-bar",o),m=s&&s.allowDataOverflow,v=l&&l.allowDataOverflow,O=m||v,w=ce(p)?this.id:p;return k.createElement(xe,{className:x},m||v?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(w)},k.createElement("rect",{x:m?u:u-c/2,y:v?f:f-d/2,width:m?c:c*2,height:v?d:d*2}))):null,k.createElement(xe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(w,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,w),(!h||b)&&Dn.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}}])}(j.PureComponent);V2=La;xi(La,"displayName","Bar");xi(La,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!un.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});xi(La,"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,h=wX(n,r);if(!h)return null;var y=t.layout,p=r.type.defaultProps,b=p!==void 0?tt(tt({},p),r.props):r.props,x=b.dataKey,m=b.children,v=b.minPointSize,O=y==="horizontal"?o:a,w=u?O.scale.domain():null,S=jX({numericAxis:O}),_=cr(m,kh),P=c.map(function(A,C){var E,T,N,D,R,L;u?E=SX(u[f+C],w):(E=lt(A,x),Array.isArray(E)||(E=[S,E]));var V=$te(v,V2.defaultProps.minPointSize)(E[1],C);if(y==="horizontal"){var I,F=[o.scale(E[0]),o.scale(E[1])],H=F[0],Q=F[1];T=TS({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:A,index:C}),N=(I=Q??H)!==null&&I!==void 0?I:void 0,D=h.size;var K=H-Q;if(R=Number.isNaN(K)?0:K,L={x:T,y:o.y,width:D,height:o.height},Math.abs(V)>0&&Math.abs(R)<Math.abs(V)){var ne=Ft(R||V)*(Math.abs(V)-Math.abs(R));N-=ne,R+=ne}}else{var me=[a.scale(E[0]),a.scale(E[1])],Ee=me[0],Ve=me[1];if(T=Ee,N=TS({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:A,index:C}),D=Ve-Ee,R=h.size,L={x:a.x,y:N,width:a.width,height:R},Math.abs(V)>0&&Math.abs(D)<Math.abs(V)){var St=Ft(D||V)*(Math.abs(V)-Math.abs(D));D+=St}}return tt(tt(tt({},A),{},{x:T,y:N,width:D,height:R,value:u?E:E[1],payload:A,background:L},_&&_[C]&&_[C].props),{},{tooltipPayload:[h2(r,A)],tooltipPosition:{x:T+D/2,y:N+R/2}})});return tt({data:P,layout:y},d)});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 zte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(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,q2(n.key),n)}}function Ute(e,t,r){return t&&WO(e.prototype,t),r&&WO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HO(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 Fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){Kh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kh(e,t,r){return t=q2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q2(e){var t=Vte(e,"string");return Su(t)=="symbol"?t:t+""}function Vte(e,t){if(Su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var K2=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=!!ir(u,La);return f.reduce(function(h,y){var p=r[y],b=p.orientation,x=p.domain,m=p.padding,v=m===void 0?{}:m,O=p.mirror,w=p.reversed,S="".concat(b).concat(O?"Mirror":""),_,P,A,C,E;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var T=x[1]-x[0],N=1/0,D=p.categoricalDomain.sort(lF);if(D.forEach(function(me,Ee){Ee>0&&(N=Math.min((me||0)-(D[Ee-1]||0),N))}),Number.isFinite(N)){var R=N/T,L=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(_=R*L/2),p.padding==="no-gap"){var V=Bt(t.barCategoryGap,R*L),I=R*L/2;_=I-V-(I-V)/L*V}}}i==="xAxis"?P=[n.left+(v.left||0)+(_||0),n.left+n.width-(v.right||0)-(_||0)]:i==="yAxis"?P=l==="horizontal"?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0)+(_||0),n.top+n.height-(v.bottom||0)-(_||0)]:P=p.range,w&&(P=[P[1],P[0]]);var F=u2(p,a,d),H=F.scale,Q=F.realScaleType;H.domain(x).range(P),c2(H);var K=f2(H,Fr(Fr({},p),{},{realScaleType:Q}));i==="xAxis"?(E=b==="top"&&!O||b==="bottom"&&O,A=n.left,C=c[S]-E*p.height):i==="yAxis"&&(E=b==="left"&&!O||b==="right"&&O,A=c[S]-E*p.width,C=n.top);var ne=Fr(Fr(Fr({},p),K),{},{realScaleType:Q,x:A,y:C,scale:H,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return ne.bandSize=id(ne,K),!p.hide&&i==="xAxis"?c[S]+=(E?-1:1)*ne.height:p.hide||(c[S]+=(E?-1:1)*ne.width),Fr(Fr({},h),{},Kh({},y,ne))},{})},G2=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)}},Wte=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return G2({x:r,y:n},{x:i,y:a})},X2=function(){function e(t){zte(this,e),this.scale=t}return Ute(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)}}])}();Kh(X2,"EPS",1e-4);var nx=function(t){var r=Object.keys(t).reduce(function(n,i){return Fr(Fr({},n),{},Kh({},i,X2.create(t[i])))},{});return Fr(Fr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return cte(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return U2(i,function(a,o){return r[o].isInRange(a)})}})};function Hte(e){return(e%180+180)%180}var qte=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Hte(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)},Kte=yn,Gte=Lu,Xte=_h;function Yte(e){return function(t,r,n){var i=Object(t);if(!Gte(t)){var a=Kte(r);t=Xte(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 Qte=Yte,Zte=L2;function Jte(e){var t=Zte(e),r=t%1;return t===t?r?t-r:t:0}var ere=Jte,tre=Vj,rre=yn,nre=ere,ire=Math.max;function are(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:nre(r);return i<0&&(i=ire(n+i,0)),tre(e,rre(t),i)}var ore=are,sre=Qte,lre=ore,ure=sre(lre),cre=ure;const fre=Se(cre);var dre=c4(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("")}),ix=j.createContext(void 0),ax=j.createContext(void 0),Y2=j.createContext(void 0),Q2=j.createContext({}),Z2=j.createContext(void 0),J2=j.createContext(0),e$=j.createContext(0),qO=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=dre(a);return k.createElement(ix.Provider,{value:n},k.createElement(ax.Provider,{value:i},k.createElement(Q2.Provider,{value:a},k.createElement(Y2.Provider,{value:f},k.createElement(Z2.Provider,{value:o},k.createElement(J2.Provider,{value:u},k.createElement(e$.Provider,{value:l},s)))))))},hre=function(){return j.useContext(Z2)},t$=function(t){var r=j.useContext(ix);r==null&&Aa(!1);var n=r[t];return n==null&&Aa(!1),n},pre=function(){var t=j.useContext(ix);return ci(t)},yre=function(){var t=j.useContext(ax),r=fre(t,function(n){return U2(n.domain,Number.isFinite)});return r||ci(t)},r$=function(t){var r=j.useContext(ax);r==null&&Aa(!1);var n=r[t];return n==null&&Aa(!1),n},mre=function(){var t=j.useContext(Y2);return t},vre=function(){return j.useContext(Q2)},ox=function(){return j.useContext(e$)},sx=function(){return j.useContext(J2)};function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KO(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,i$(n.key),n)}}function xre(e,t,r){return t&&KO(e.prototype,t),r&&KO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bre(e,t,r){return t=Sd(t),wre(e,n$()?Reflect.construct(t,r||[],Sd(e).constructor):t.apply(e,r))}function wre(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sre(e)}function Sre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n$=function(){return!!e})()}function Sd(e){return Sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sd(e)}function Ore(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&&Ev(e,t)}function Ev(e,t){return Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ev(e,t)}function GO(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 XO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){lx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lx(e,t,r){return t=i$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i$(e){var t=_re(e,"string");return ts(t)=="symbol"?t:t+""}function _re(e,t){if(ts(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ts(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pre(e,t){return Ere(e)||jre(e,t)||kre(e,t)||Are()}function Are(){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 kre(e,t){if(e){if(typeof e=="string")return YO(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 YO(e,t)}}function YO(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 jre(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 Ere(e){if(Array.isArray(e))return e}function $v(){return $v=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},$v.apply(this,arguments)}var $re=function(t,r){var n;return k.isValidElement(t)?n=k.cloneElement(t,r):se(t)?n=t(r):n=k.createElement("line",$v({},r,{className:"recharts-reference-line-line"})),n},Tre=function(t,r,n,i,a,o,s,l,u){var f=a.x,c=a.y,d=a.width,h=a.height;if(n){var y=u.y,p=t.y.apply(y,{position:o});if(fn(u,"discard")&&!t.y.isInRange(p))return null;var b=[{x:f+d,y:p},{x:f,y:p}];return l==="left"?b.reverse():b}if(r){var x=u.x,m=t.x.apply(x,{position:o});if(fn(u,"discard")&&!t.x.isInRange(m))return null;var v=[{x:m,y:c+h},{x:m,y:c}];return s==="top"?v.reverse():v}if(i){var O=u.segment,w=O.map(function(S){return t.apply(S,{position:o})});return fn(u,"discard")&&rte(w,function(S){return!t.isInRange(S)})?null:w}return null};function Cre(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=hre(),f=t$(i),c=r$(a),d=mre();if(!u||!d)return null;Kr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=nx({x:f.scale,y:c.scale}),y=ct(t),p=ct(r),b=n&&n.length===2,x=Tre(h,y,p,b,d,e.position,f.orientation,c.orientation,e);if(!x)return null;var m=Pre(x,2),v=m[0],O=v.x,w=v.y,S=m[1],_=S.x,P=S.y,A=fn(e,"hidden")?"url(#".concat(u,")"):void 0,C=XO(XO({clipPath:A},ae(e,!0)),{},{x1:O,y1:w,x2:_,y2:P});return k.createElement(xe,{className:ue("recharts-reference-line",s)},$re(o,C),pt.renderCallByParent(e,Wte({x1:O,y1:w,x2:_,y2:P})))}var ux=function(e){function t(){return gre(this,t),bre(this,t,arguments)}return Ore(t,e),xre(t,[{key:"render",value:function(){return k.createElement(Cre,this.props)}}])}(k.Component);lx(ux,"displayName","ReferenceLine");lx(ux,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Tv(){return Tv=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},Tv.apply(this,arguments)}function rs(e){"@babel/helpers - typeof";return rs=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},rs(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 ZO(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){Gh(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 Nre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(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,o$(n.key),n)}}function Mre(e,t,r){return t&&JO(e.prototype,t),r&&JO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ire(e,t,r){return t=Od(t),Dre(e,a$()?Reflect.construct(t,r||[],Od(e).constructor):t.apply(e,r))}function Dre(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rre(e)}function Rre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a$=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Od(e)}function Lre(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&&Cv(e,t)}function Cv(e,t){return Cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cv(e,t)}function Gh(e,t,r){return t=o$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=Fre(e,"string");return rs(t)=="symbol"?t:t+""}function Fre(e,t){if(rs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bre=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=nx({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return fn(t,"discard")&&!o.isInRange(s)?null:s},Xh=function(e){function t(){return Nre(this,t),Ire(this,t,arguments)}return Lre(t,e),Mre(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(Kr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=Bre(this.props);if(!c)return null;var d=c.x,h=c.y,y=this.props,p=y.shape,b=y.className,x=fn(this.props,"hidden")?"url(#".concat(l,")"):void 0,m=ZO(ZO({clipPath:x},ae(this.props,!0)),{},{cx:d,cy:h});return k.createElement(xe,{className:ue("recharts-reference-dot",b)},t.renderDot(p,m),pt.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(k.Component);Gh(Xh,"displayName","ReferenceDot");Gh(Xh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Gh(Xh,"renderDot",function(e,t){var r;return k.isValidElement(e)?r=k.cloneElement(e,t):se(e)?r=e(t):r=k.createElement(Bh,Tv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});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 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 e_(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 t_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(r),!0).forEach(function(n){Yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(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 r_(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,l$(n.key),n)}}function Ure(e,t,r){return t&&r_(e.prototype,t),r&&r_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vre(e,t,r){return t=_d(t),Wre(e,s$()?Reflect.construct(t,r||[],_d(e).constructor):t.apply(e,r))}function Wre(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 Hre(e)}function Hre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s$=function(){return!!e})()}function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_d(e)}function qre(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 Yh(e,t,r){return t=l$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=Kre(e,"string");return ns(t)=="symbol"?t:t+""}function Kre(e,t){if(ns(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ns(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gre=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=nx({x:f.scale,y:c.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return fn(a,"discard")&&(!d.isInRange(h)||!d.isInRange(y))?null:G2(h,y)},Qh=function(e){function t(){return zre(this,t),Vre(this,t,arguments)}return qre(t,e),Ure(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;Kr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ct(i),d=ct(a),h=ct(o),y=ct(s),p=this.props.shape;if(!c&&!d&&!h&&!y&&!p)return null;var b=Gre(c,d,h,y,this.props);if(!b&&!p)return null;var x=fn(this.props,"hidden")?"url(#".concat(f,")"):void 0;return k.createElement(xe,{className:ue("recharts-reference-area",l)},t.renderRect(p,t_(t_({clipPath:x},ae(this.props,!0)),b)),pt.renderCallByParent(this.props,b))}}])}(k.Component);Yh(Qh,"displayName","ReferenceArea");Yh(Qh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Yh(Qh,"renderRect",function(e,t){var r;return k.isValidElement(e)?r=k.cloneElement(e,t):se(e)?r=e(t):r=k.createElement(rx,Nv({},t,{className:"recharts-reference-area-rect"})),r});function u$(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)if(r===void 0||r(e[i])===!0)n.push(e[i]);else return;return n}function Xre(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return qte(n,r)}function Yre(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 Pd(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 Qre(e,t){return u$(e,t+1)}function Zre(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 y=n==null?void 0:n[l];if(y===void 0)return{v:u$(n,u)};var p=l,b,x=function(){return b===void 0&&(b=r(y,p)),b},m=y.coordinate,v=l===0||Pd(e,m,x,f,s);v||(l=0,f=o,u+=1),v&&(f=m+e*(x()/2+i),l+=u)},d;u<=a.length;)if(d=c(),d)return d.v;return[]}function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function n_(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 Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n_(Object(r),!0).forEach(function(n){Jre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jre(e,t,r){return t=ene(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ene(e){var t=tne(e,"string");return Ou(t)=="symbol"?t:t+""}function tne(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rne(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var h=a[d],y,p=function(){return y===void 0&&(y=r(h,d)),y};if(d===o-1){var b=e*(h.coordinate+e*p()/2-l);a[d]=h=Et(Et({},h),{},{tickCoord:b>0?h.coordinate-b*e:h.coordinate})}else a[d]=h=Et(Et({},h),{},{tickCoord:h.coordinate});var x=Pd(e,h.tickCoord,p,s,l);x&&(l=h.tickCoord-e*(p()/2+i),a[d]=Et(Et({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function nne(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=Et(Et({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=Pd(e,f.tickCoord,function(){return c},l,u);h&&(u=f.tickCoord-e*(c/2+i),o[s-1]=Et(Et({},f),{},{isShow:!0}))}for(var y=a?s-1:s,p=function(m){var v=o[m],O,w=function(){return O===void 0&&(O=r(v,m)),O};if(m===0){var S=e*(v.coordinate-e*w()/2-l);o[m]=v=Et(Et({},v),{},{tickCoord:S<0?v.coordinate-S*e:v.coordinate})}else o[m]=v=Et(Et({},v),{},{tickCoord:v.coordinate});var _=Pd(e,v.tickCoord,w,l,u);_&&(l=v.tickCoord+e*(w()/2+i),o[m]=Et(Et({},v),{},{isShow:!0}))},b=0;b<y;b++)p(b);return o}function cx(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(X(l)||un.isSsr)return Qre(i,typeof l=="number"&&X(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",y=f&&h==="width"?ml(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(v,O){var w=se(u)?u(v.value,O):v.value;return h==="width"?Xre(ml(w,{fontSize:t,letterSpacing:r}),y,c):ml(w,{fontSize:t,letterSpacing:r})[h]},b=i.length>=2?Ft(i[1].coordinate-i[0].coordinate):1,x=Yre(a,b,h);return l==="equidistantPreserveStart"?Zre(b,x,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=nne(b,x,p,i,o,l==="preserveStartEnd"):d=rne(b,x,p,i,o),d.filter(function(m){return m.isShow}))}var ine=["viewBox"],ane=["viewBox"],one=["ticks"];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)}function uo(){return uo=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},uo.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 Nt(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){fx(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 uy(e,t){if(e==null)return{};var r=sne(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 sne(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 lne(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,f$(n.key),n)}}function une(e,t,r){return t&&a_(e.prototype,t),r&&a_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cne(e,t,r){return t=Ad(t),fne(e,c$()?Reflect.construct(t,r||[],Ad(e).constructor):t.apply(e,r))}function fne(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 dne(e)}function dne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c$=function(){return!!e})()}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ad(e)}function hne(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 fx(e,t,r){return t=f$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f$(e){var t=pne(e,"string");return is(t)=="symbol"?t:t+""}function pne(e,t){if(is(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var js=function(e){function t(r){var n;return lne(this,t),n=cne(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return hne(t,e),une(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=uy(n,ine),s=this.props,l=s.viewBox,u=uy(s,ane);return!go(a,l)||!go(o,u)||!go(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,h,y,p,b,x,m,v=c?-1:1,O=n.tickSize||f,w=X(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=y=n.coordinate,b=o+ +!c*l,p=b-v*O,m=p-v*d,x=w;break;case"left":p=b=n.coordinate,y=a+ +!c*s,h=y-v*O,x=h-v*d,m=w;break;case"right":p=b=n.coordinate,y=a+ +c*s,h=y+v*O,x=h+v*d,m=w;break;default:h=y=n.coordinate,b=o+ +c*l,p=b+v*O,m=p+v*d,x=w;break}return{line:{x1:h,y1:p,x2:y,y2:b},tick:{x,y:m}}}},{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=Nt(Nt(Nt({},ae(this.props,!1)),ae(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);c=Nt(Nt({},c),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);c=Nt(Nt({},c),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return k.createElement("line",uo({},c,{className:ue("recharts-cartesian-axis-line",ur(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,h=cx(Nt(Nt({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),b=ae(this.props,!1),x=ae(f,!1),m=Nt(Nt({},b),{},{fill:"none"},ae(l,!1)),v=h.map(function(O,w){var S=o.getTickLineCoord(O),_=S.line,P=S.tick,A=Nt(Nt(Nt(Nt({textAnchor:y,verticalAnchor:p},b),{},{stroke:"none",fill:u},x),P),{},{index:w,payload:O,visibleTicksCount:h.length,tickFormatter:c});return k.createElement(xe,uo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Oa(o.props,O,w)),l&&k.createElement("line",uo({},m,_,{className:ue("recharts-cartesian-axis-tick-line",ur(l,"className"))})),f&&t.renderTickItem(f,A,"".concat(se(c)?c(O.value,w):O.value).concat(d||"")))});return k.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{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,h=uy(c,one),y=d;return se(l)&&(y=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!y||!y.length?null:k.createElement(xe,{className:ue("recharts-cartesian-axis",u),ref:function(b){n.layerReference=b}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),pt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):se(n)?o=n(i):o=k.createElement(_a,uo({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(j.Component);fx(js,"displayName","CartesianAxis");fx(js,"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 yne=["x1","y1","x2","y2","key"],mne=["offset"];function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function o_(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 Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(r),!0).forEach(function(n){vne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vne(e,t,r){return t=gne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gne(e){var t=xne(e,"string");return ja(t)=="symbol"?t:t+""}function xne(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oa(){return oa=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},oa.apply(this,arguments)}function s_(e,t){if(e==null)return{};var r=bne(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 bne(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 wne=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 k.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function d$(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(se(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=s_(t,yne),u=ae(l,!1);u.offset;var f=s_(u,mne);r=k.createElement("line",oa({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Sne(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=Tt(Tt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return d$(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function One(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=Tt(Tt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return d$(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function _ne(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,h){return d-h});i!==f[0]&&f.unshift(0);var c=f.map(function(d,h){var y=!f[h+1],p=y?i+o-d:f[h+1]-d;if(p<=0)return null;var b=h%t.length;return k.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[b],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Pne(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,h){return d-h});a!==f[0]&&f.unshift(0);var c=f.map(function(d,h){var y=!f[h+1],p=y?a+s-d:f[h+1]-d;if(p<=0)return null;var b=h%n.length;return k.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[b],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Ane=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return l2(cx(Tt(Tt(Tt({},js.defaultProps),n),{},{ticks:Cn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},kne=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return l2(cx(Tt(Tt(Tt({},js.defaultProps),n),{},{ticks:Cn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Wa={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function dx(e){var t,r,n,i,a,o,s=ox(),l=sx(),u=vre(),f=Tt(Tt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Wa.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Wa.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Wa.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Wa.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Wa.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Wa.verticalFill,x:X(e.x)?e.x:u.left,y:X(e.y)?e.y:u.top,width:X(e.width)?e.width:u.width,height:X(e.height)?e.height:u.height}),c=f.x,d=f.y,h=f.width,y=f.height,p=f.syncWithTicks,b=f.horizontalValues,x=f.verticalValues,m=pre(),v=yre();if(!X(h)||h<=0||!X(y)||y<=0||!X(c)||c!==+c||!X(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||Ane,w=f.horizontalCoordinatesGenerator||kne,S=f.horizontalPoints,_=f.verticalPoints;if((!S||!S.length)&&se(w)){var P=b&&b.length,A=w({yAxis:v?Tt(Tt({},v),{},{ticks:P?b:v.ticks}):void 0,width:s,height:l,offset:u},P?!0:p);Kr(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ja(A),"]")),Array.isArray(A)&&(S=A)}if((!_||!_.length)&&se(O)){var C=x&&x.length,E=O({xAxis:m?Tt(Tt({},m),{},{ticks:C?x:m.ticks}):void 0,width:s,height:l,offset:u},C?!0:p);Kr(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ja(E),"]")),Array.isArray(E)&&(_=E)}return k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(wne,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),k.createElement(Sne,oa({},f,{offset:u,horizontalPoints:S,xAxis:m,yAxis:v})),k.createElement(One,oa({},f,{offset:u,verticalPoints:_,xAxis:m,yAxis:v})),k.createElement(_ne,oa({},f,{horizontalPoints:S})),k.createElement(Pne,oa({},f,{verticalPoints:_})))}dx.displayName="CartesianGrid";var jne=["type","layout","connectNulls","ref"],Ene=["key"];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 l_(e,t){if(e==null)return{};var r=$ne(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 $ne(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 Sl(){return Sl=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},Sl.apply(this,arguments)}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 tr(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){Br(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 Ha(e){return Mne(e)||Nne(e)||Cne(e)||Tne()}function Tne(){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 Cne(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 Nne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mne(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}function Ine(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(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,p$(n.key),n)}}function Dne(e,t,r){return t&&c_(e.prototype,t),r&&c_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rne(e,t,r){return t=kd(t),Lne(e,h$()?Reflect.construct(t,r||[],kd(e).constructor):t.apply(e,r))}function Lne(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 Fne(e)}function Fne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h$=function(){return!!e})()}function kd(e){return kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kd(e)}function Bne(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 Br(e,t,r){return t=p$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p$(e){var t=zne(e,"string");return as(t)=="symbol"?t:t+""}function zne(e,t){if(as(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(as(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hu=function(e){function t(){var r;Ine(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Rne(this,t,[].concat(i)),Br(r,"state",{isAnimationFinished:!0,totalLength:0}),Br(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Br(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(x,m){return x+m});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var f=Math.floor(o/u),c=o%u,d=s-o,h=[],y=0,p=0;y<l.length;p+=l[y],++y)if(p+l[y]>c){h=[].concat(Ha(l.slice(0,y)),[c-p]);break}var b=h.length%2===0?[0,d]:[d];return[].concat(Ha(t.repeat(l,f)),Ha(h),b).map(function(x){return"".concat(x,"px")}).join(", ")}),Br(r,"id",ws("recharts-line-")),Br(r,"pathRef",function(o){r.mainCurve=o}),Br(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Br(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Bne(t,e),Dne(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,f=a.children,c=cr(f,Wu);if(!c)return null;var d=function(p,b){return{x:p.x,y:p.y,value:p.value,errorVal:lt(p.payload,b)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return k.createElement(xe,h,c.map(function(y){return k.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,c=ae(this.props,!1),d=ae(l,!0),h=u.map(function(p,b){var x=tr(tr(tr({key:"dot-".concat(b),r:3},c),d),{},{index:b,cx:p.x,cy:p.y,value:p.value,dataKey:f,payload:p.payload,points:u});return t.renderDotItem(l,x)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return k.createElement(xe,Sl({className:"recharts-line-dots",key:"dots"},y),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var c=l_(s,jne),d=tr(tr(tr({},ae(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:f});return k.createElement(sd,Sl({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,h=o.animationId,y=o.animateNewValues,p=o.width,b=o.height,x=this.state,m=x.prevPoints,v=x.totalLength;return k.createElement(ka,{begin:f,duration:c,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var w=O.t;if(m){var S=m.length/s.length,_=s.map(function(T,N){var D=Math.floor(N*S);if(m[D]){var R=m[D],L=ar(R.x,T.x),V=ar(R.y,T.y);return tr(tr({},T),{},{x:L(w),y:V(w)})}if(y){var I=ar(p*2,T.x),F=ar(b/2,T.y);return tr(tr({},T),{},{x:I(w),y:F(w)})}return tr(tr({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var P=ar(0,v),A=P(w),C;if(l){var E="".concat(l).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});C=a.getStrokeDasharray(A,v,E)}else C=a.generateSimpleStrokeDasharray(v,A);return a.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&o&&o.length&&(!u&&f>0||!Vu(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,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.xAxis,f=i.yAxis,c=i.top,d=i.left,h=i.width,y=i.height,p=i.isAnimationActive,b=i.id;if(a||!s||!s.length)return null;var x=this.state.isAnimationFinished,m=s.length===1,v=ue("recharts-line",l),O=u&&u.allowDataOverflow,w=f&&f.allowDataOverflow,S=O||w,_=ce(b)?this.id:b,P=(n=ae(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=P.r,C=A===void 0?3:A,E=P.strokeWidth,T=E===void 0?2:E,N=vF(o)?o:{},D=N.clipDot,R=D===void 0?!0:D,L=C*2+T;return k.createElement(xe,{className:v},O||w?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(_)},k.createElement("rect",{x:O?d:d-h/2,y:w?c:c-y/2,width:O?h:h*2,height:w?y:y*2})),!R&&k.createElement("clipPath",{id:"clipPath-dots-".concat(_)},k.createElement("rect",{x:d-L/2,y:c-L/2,width:h+L,height:y+L}))):null,!m&&this.renderCurve(S,_),this.renderErrorBar(S,_),(m||o)&&this.renderDots(S,R,_),(!p||x)&&Dn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ha(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Ha(o),Ha(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(k.isValidElement(n))a=k.cloneElement(n,i);else if(se(n))a=n(i);else{var o=i.key,s=l_(i,Ene),l=ue("recharts-line-dot",typeof n!="boolean"?n.className:"");a=k.createElement(Bh,Sl({key:o},s,{className:l}))}return a}}])}(j.PureComponent);Br(Hu,"displayName","Line");Br(Hu,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!un.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Br(Hu,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,c=l.map(function(d,h){var y=lt(d,o);return f==="horizontal"?{x:$S({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:ce(y)?null:n.scale(y),value:y,payload:d}:{x:ce(y)?null:r.scale(y),y:$S({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:y,payload:d}});return tr({points:c,layout:f},u)});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 Une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f_(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,v$(n.key),n)}}function Vne(e,t,r){return t&&f_(e.prototype,t),r&&f_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wne(e,t,r){return t=jd(t),Hne(e,y$()?Reflect.construct(t,r||[],jd(e).constructor):t.apply(e,r))}function Hne(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 qne(e)}function qne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y$=function(){return!!e})()}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jd(e)}function Kne(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&&Lv(e,t)}function Lv(e,t){return Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lv(e,t)}function m$(e,t,r){return t=v$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v$(e){var t=Gne(e,"string");return os(t)=="symbol"?t:t+""}function Gne(e,t){if(os(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fv(){return Fv=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},Fv.apply(this,arguments)}function Xne(e){var t=e.xAxisId,r=ox(),n=sx(),i=t$(t);return i==null?null:k.createElement(js,Fv({},i,{className:ue("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Cn(o,!0)}}))}var Es=function(e){function t(){return Une(this,t),Wne(this,t,arguments)}return Kne(t,e),Vne(t,[{key:"render",value:function(){return k.createElement(Xne,this.props)}}])}(k.Component);m$(Es,"displayName","XAxis");m$(Es,"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 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 Yne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d_(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,b$(n.key),n)}}function Qne(e,t,r){return t&&d_(e.prototype,t),r&&d_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zne(e,t,r){return t=Ed(t),Jne(e,g$()?Reflect.construct(t,r||[],Ed(e).constructor):t.apply(e,r))}function Jne(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 eie(e)}function eie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g$=function(){return!!e})()}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ed(e)}function tie(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 x$(e,t,r){return t=b$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b$(e){var t=rie(e,"string");return ss(t)=="symbol"?t:t+""}function rie(e,t){if(ss(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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)}var nie=function(t){var r=t.yAxisId,n=ox(),i=sx(),a=r$(r);return a==null?null:k.createElement(js,zv({},a,{className:ue("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Cn(s,!0)}}))},$s=function(e){function t(){return Yne(this,t),Zne(this,t,arguments)}return tie(t,e),Qne(t,[{key:"render",value:function(){return k.createElement(nie,this.props)}}])}(k.Component);x$($s,"displayName","YAxis");x$($s,"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 h_(e){return sie(e)||oie(e)||aie(e)||iie()}function iie(){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 aie(e,t){if(e){if(typeof e=="string")return Uv(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 Uv(e,t)}}function oie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sie(e){if(Array.isArray(e))return Uv(e)}function Uv(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 Vv=function(t,r,n,i,a){var o=cr(t,ux),s=cr(t,Xh),l=[].concat(h_(o),h_(s)),u=cr(t,Qh),f="".concat(i,"Id"),c=i[0],d=r;if(l.length&&(d=l.reduce(function(p,b){if(b.props[f]===n&&fn(b.props,"extendDomain")&&X(b.props[c])){var x=b.props[c];return[Math.min(p[0],x),Math.max(p[1],x)]}return p},d)),u.length){var h="".concat(c,"1"),y="".concat(c,"2");d=u.reduce(function(p,b){if(b.props[f]===n&&fn(b.props,"extendDomain")&&X(b.props[h])&&X(b.props[y])){var x=b.props[h],m=b.props[y];return[Math.min(p[0],x,m),Math.max(p[1],x,m)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,b){return X(b)?[Math.min(p[0],b),Math.max(p[1],b)]:p},d)),d},w$={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 h=new i(f,c||l,d),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],h]:l._events[y].push(h):(l._events[y]=h,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,h=c.length,y=new Array(h);d<h;d++)y[d]=c[d].fn;return y},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,h,y){var p=r?r+u:u;if(!this._events[p])return!1;var b=this._events[p],x=arguments.length,m,v;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,c),!0;case 4:return b.fn.call(b.context,f,c,d),!0;case 5:return b.fn.call(b.context,f,c,d,h),!0;case 6:return b.fn.call(b.context,f,c,d,h,y),!0}for(v=1,m=new Array(x-1);v<x;v++)m[v-1]=arguments[v];b.fn.apply(b.context,m)}else{var O=b.length,w;for(v=0;v<O;v++)switch(b[v].once&&this.removeListener(u,b[v].fn,void 0,!0),x){case 1:b[v].fn.call(b[v].context);break;case 2:b[v].fn.call(b[v].context,f);break;case 3:b[v].fn.call(b[v].context,f,c);break;case 4:b[v].fn.call(b[v].context,f,c,d);break;default:if(!m)for(w=1,m=new Array(x-1);w<x;w++)m[w-1]=arguments[w];b[v].fn.apply(b[v].context,m)}}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 h=r?r+u:u;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!d||y.once)&&(!c||y.context===c)&&o(this,h);else{for(var p=0,b=[],x=y.length;p<x;p++)(y[p].fn!==f||d&&!y[p].once||c&&y[p].context!==c)&&b.push(y[p]);b.length?this._events[h]=b.length===1?b[0]:b:o(this,h)}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})(w$);var lie=w$.exports;const uie=Se(lie);var cy=new uie,fy="recharts.syncMouseEvents";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 cie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p_(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,S$(n.key),n)}}function fie(e,t,r){return t&&p_(e.prototype,t),r&&p_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dy(e,t,r){return t=S$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S$(e){var t=die(e,"string");return _u(t)=="symbol"?t:t+""}function die(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hie=function(){function e(){cie(this,e),dy(this,"activeIndex",0),dy(this,"coordinateList",[]),dy(this,"layout","horizontal")}return fie(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,h=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=h??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 pie(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&&X(n)&&X(i))return!0}return!1}function yie(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 O$(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ie(t,r,n,i),s=Ie(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function mie(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=Ie(s,l,u,c),h=Ie(s,l,f,c);n=d.x,i=d.y,a=h.x,o=h.y}else return O$(t);return[{x:n,y:i},{x:a,y:o}]}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 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 jc(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){vie(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 vie(e,t,r){return t=gie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gie(e){var t=xie(e,"string");return Pu(t)=="symbol"?t:t+""}function xie(e,t){if(Pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bie(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,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,p=sd;if(d==="ScatterChart")y=o,p=WZ;else if(d==="BarChart")y=yie(c,o,l,f),p=rx;else if(c==="radial"){var b=O$(o),x=b.cx,m=b.cy,v=b.radius,O=b.startAngle,w=b.endAngle;y={cx:x,cy:m,startAngle:O,endAngle:w,innerRadius:v,outerRadius:v},p=x2}else y={points:mie(c,o,l)},p=sd;var S=jc(jc(jc(jc({stroke:"#ccc",pointerEvents:"none"},l),y),ae(h,!1)),{},{payload:s,payloadIndex:u,className:ue("recharts-tooltip-cursor",h.className)});return j.isValidElement(h)?j.cloneElement(h,S):j.createElement(p,S)}var wie=["item"],Sie=["children","className","width","height","style","compact","title","desc"];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 co(){return co=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},co.apply(this,arguments)}function m_(e,t){return Pie(e)||_ie(e,t)||P$(e,t)||Oie()}function Oie(){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 _ie(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 Pie(e){if(Array.isArray(e))return e}function v_(e,t){if(e==null)return{};var r=Aie(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 Aie(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 kie(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,A$(n.key),n)}}function jie(e,t,r){return t&&g_(e.prototype,t),r&&g_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eie(e,t,r){return t=$d(t),$ie(e,_$()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function $ie(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 Tie(e)}function Tie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_$=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(e)}function Cie(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 us(e){return Iie(e)||Mie(e)||P$(e)||Nie()}function Nie(){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 P$(e,t){if(e){if(typeof e=="string")return Hv(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 Hv(e,t)}}function Mie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iie(e){if(Array.isArray(e))return Hv(e)}function Hv(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 x_(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?x_(Object(r),!0).forEach(function(n){oe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oe(e,t,r){return t=A$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A$(e){var t=Die(e,"string");return ls(t)=="symbol"?t:t+""}function Die(e,t){if(ls(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rie={xAxis:["bottom","top"],yAxis:["left","right"]},Lie={width:"100%",height:"100%"},k$={x:0,y:0};function Ec(e){return e}var Fie=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Bie=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),Ie(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return z(z(z({},i),Ie(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return k$},Zh=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(us(s),us(u)):s},[]);return o.length>0?o:t&&t.length&&X(i)&&X(a)?t.slice(i,a+1):[]};function j$(e){return e==="number"?[0,"auto"]:void 0}var qv=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Zh(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 h=c===void 0?s:c;d=$f(h,o.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(us(l),[h2(u,d)]):l},[])},b_=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Fie(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=yX(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=qv(t,r,f,c),h=Bie(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},zie=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,h=s2(f,a);return n.reduce(function(y,p){var b,x=p.type.defaultProps!==void 0?z(z({},p.type.defaultProps),p.props):p.props,m=x.type,v=x.dataKey,O=x.allowDataOverflow,w=x.allowDuplicatedCategory,S=x.scale,_=x.ticks,P=x.includeHidden,A=x[o];if(y[A])return y;var C=Zh(t.data,{graphicalItems:i.filter(function(K){var ne,me=o in K.props?K.props[o]:(ne=K.type.defaultProps)===null||ne===void 0?void 0:ne[o];return me===A}),dataStartIndex:l,dataEndIndex:u}),E=C.length,T,N,D;pie(x.domain,O,m)&&(T=ov(x.domain,null,O),h&&(m==="number"||S!=="auto")&&(D=gl(C,v,"category")));var R=j$(m);if(!T||T.length===0){var L,V=(L=x.domain)!==null&&L!==void 0?L:R;if(v){if(T=gl(C,v,m),m==="category"&&h){var I=sF(T);w&&I?(N=T,T=vd(0,E)):w||(T=MS(V,T,p).reduce(function(K,ne){return K.indexOf(ne)>=0?K:[].concat(us(K),[ne])},[]))}else if(m==="category")w?T=T.filter(function(K){return K!==""&&!ce(K)}):T=MS(V,T,p).reduce(function(K,ne){return K.indexOf(ne)>=0||ne===""||ce(ne)?K:[].concat(us(K),[ne])},[]);else if(m==="number"){var F=bX(C,i.filter(function(K){var ne,me,Ee=o in K.props?K.props[o]:(ne=K.type.defaultProps)===null||ne===void 0?void 0:ne[o],Ve="hide"in K.props?K.props.hide:(me=K.type.defaultProps)===null||me===void 0?void 0:me.hide;return Ee===A&&(P||!Ve)}),v,a,f);F&&(T=F)}h&&(m==="number"||S!=="auto")&&(D=gl(C,v,"category"))}else h?T=vd(0,E):s&&s[A]&&s[A].hasStack&&m==="number"?T=d==="expand"?[0,1]:d2(s[A].stackGroups,l,u):T=o2(C,i.filter(function(K){var ne=o in K.props?K.props[o]:K.type.defaultProps[o],me="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return ne===A&&(P||!me)}),m,f,!0);if(m==="number")T=Vv(c,T,A,a,_),V&&(T=ov(V,T,O));else if(m==="category"&&V){var H=V,Q=T.every(function(K){return H.indexOf(K)>=0});Q&&(T=H)}}return z(z({},y),{},oe({},A,z(z({},x),{},{axisType:a,domain:T,categoricalDomain:D,duplicateDomain:N,originalDomain:(b=x.domain)!==null&&b!==void 0?b:R,isCategorical:h,layout:f})))},{})},Uie=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=Zh(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,y=s2(f,a),p=-1;return n.reduce(function(b,x){var m=x.type.defaultProps!==void 0?z(z({},x.type.defaultProps),x.props):x.props,v=m[o],O=j$("number");if(!b[v]){p++;var w;return y?w=vd(0,h):s&&s[v]&&s[v].hasStack?(w=d2(s[v].stackGroups,l,u),w=Vv(c,w,v,a)):(w=ov(O,o2(d,n.filter(function(S){var _,P,A=o in S.props?S.props[o]:(_=S.type.defaultProps)===null||_===void 0?void 0:_[o],C="hide"in S.props?S.props.hide:(P=S.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===v&&!C}),"number",f),i.defaultProps.allowDataOverflow),w=Vv(c,w,v,a)),z(z({},b),{},oe({},v,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:ur(Rie,"".concat(a,".").concat(p%2),null),domain:w,originalDomain:O,isCategorical:y,layout:f})))}return b},{})},Vie=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=cr(f,a),h={};return d&&d.length?h=zie(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=Uie(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},Wie=function(t){var r=ci(t),n=Cn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:j0(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:id(r,n)}},w_=function(t){var r=t.children,n=t.defaultShowTooltip,i=ir(r,Jo),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}},Hie=function(t){return!t||!t.length?!1:t.some(function(r){var n=Mn(r&&r.type);return n&&n.indexOf("Bar")>=0})},S_=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"}},qie=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||{},h=ir(c,Jo),y=ir(c,xo),p=Object.keys(l).reduce(function(w,S){var _=l[S],P=_.orientation;return!_.mirror&&!_.hide?z(z({},w),{},oe({},P,w[P]+_.width)):w},{left:d.left||0,right:d.right||0}),b=Object.keys(o).reduce(function(w,S){var _=o[S],P=_.orientation;return!_.mirror&&!_.hide?z(z({},w),{},oe({},P,ur(w,"".concat(P))+_.height)):w},{top:d.top||0,bottom:d.bottom||0}),x=z(z({},b),p),m=x.bottom;h&&(x.bottom+=h.props.height||Jo.defaultProps.height),y&&r&&(x=gX(x,i,n,r));var v=u-x.left-x.right,O=f-x.top-x.bottom;return z(z({brushBottom:m},x),{},{width:Math.max(v,0),height:Math.max(O,0)})},Kie=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},hx=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(x,m){var v=m.graphicalItems,O=m.stackGroups,w=m.offset,S=m.updateId,_=m.dataStartIndex,P=m.dataEndIndex,A=x.barSize,C=x.layout,E=x.barGap,T=x.barCategoryGap,N=x.maxBarSize,D=S_(C),R=D.numericAxisName,L=D.cateAxisName,V=Hie(v),I=[];return v.forEach(function(F,H){var Q=Zh(x.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:P}),K=F.type.defaultProps!==void 0?z(z({},F.type.defaultProps),F.props):F.props,ne=K.dataKey,me=K.maxBarSize,Ee=K["".concat(R,"Id")],Ve=K["".concat(L,"Id")],St={},vt=l.reduce(function(M,B){var J=m["".concat(B.axisType,"Map")],Y=K["".concat(B.axisType,"Id")];J&&J[Y]||B.axisType==="zAxis"||Aa(!1);var G=J[Y];return z(z({},M),{},oe(oe({},B.axisType,G),"".concat(B.axisType,"Ticks"),Cn(G)))},St),Z=vt[L],le=vt["".concat(L,"Ticks")],de=O&&O[Ee]&&O[Ee].hasStack&&EX(F,O[Ee].stackGroups),W=Mn(F.type).indexOf("Bar")>=0,Be=id(Z,le),ye=[],Ge=V&&mX({barSize:A,stackGroups:O,totalSize:Kie(vt,L)});if(W){var Ze,Ot,mn=ce(me)?N:me,vn=(Ze=(Ot=id(Z,le,!0))!==null&&Ot!==void 0?Ot:mn)!==null&&Ze!==void 0?Ze:0;ye=vX({barGap:E,barCategoryGap:T,bandSize:vn!==Be?vn:Be,sizeList:Ge[Ve],maxBarSize:mn}),vn!==Be&&(ye=ye.map(function(M){return z(z({},M),{},{position:z(z({},M.position),{},{offset:M.position.offset-vn/2})})}))}var $=F&&F.type&&F.type.getComposedData;$&&I.push({props:z(z({},$(z(z({},vt),{},{displayedData:Q,props:x,dataKey:ne,item:F,bandSize:Be,barPosition:ye,offset:w,stackedData:de,layout:C,dataStartIndex:_,dataEndIndex:P}))),{},oe(oe(oe({key:F.key||"item-".concat(H)},R,vt[R]),L,vt[L]),"animationId",S)),childIndex:bF(F,x.children),item:F})}),I},h=function(x,m){var v=x.props,O=x.dataStartIndex,w=x.dataEndIndex,S=x.updateId;if(!O1({props:v}))return null;var _=v.children,P=v.layout,A=v.stackOffset,C=v.data,E=v.reverseStackOrder,T=S_(P),N=T.numericAxisName,D=T.cateAxisName,R=cr(_,n),L=kX(C,R,"".concat(N,"Id"),"".concat(D,"Id"),A,E),V=l.reduce(function(K,ne){var me="".concat(ne.axisType,"Map");return z(z({},K),{},oe({},me,Vie(v,z(z({},ne),{},{graphicalItems:R,stackGroups:ne.axisType===N&&L,dataStartIndex:O,dataEndIndex:w}))))},{}),I=qie(z(z({},V),{},{props:v,graphicalItems:R}),m==null?void 0:m.legendBBox);Object.keys(V).forEach(function(K){V[K]=f(v,V[K],I,K.replace("Map",""),r)});var F=V["".concat(D,"Map")],H=Wie(F),Q=d(v,z(z({},V),{},{dataStartIndex:O,dataEndIndex:w,updateId:S,graphicalItems:R,stackGroups:L,offset:I}));return z(z({formattedGraphicalItems:Q,graphicalItems:R,offset:I,stackGroups:L},H),V)},y=function(b){function x(m){var v,O,w;return kie(this,x),w=Eie(this,x,[m]),oe(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),oe(w,"accessibilityManager",new hie),oe(w,"handleLegendBBoxUpdate",function(S){if(S){var _=w.state,P=_.dataStartIndex,A=_.dataEndIndex,C=_.updateId;w.setState(z({legendBBox:S},h({props:w.props,dataStartIndex:P,dataEndIndex:A,updateId:C},z(z({},w.state),{},{legendBBox:S}))))}}),oe(w,"handleReceiveSyncEvent",function(S,_,P){if(w.props.syncId===S){if(P===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(_)}}),oe(w,"handleBrushChange",function(S){var _=S.startIndex,P=S.endIndex;if(_!==w.state.dataStartIndex||P!==w.state.dataEndIndex){var A=w.state.updateId;w.setState(function(){return z({dataStartIndex:_,dataEndIndex:P},h({props:w.props,dataStartIndex:_,dataEndIndex:P,updateId:A},w.state))}),w.triggerSyncEvent({dataStartIndex:_,dataEndIndex:P})}}),oe(w,"handleMouseEnter",function(S){var _=w.getMouseInfo(S);if(_){var P=z(z({},_),{},{isTooltipActive:!0});w.setState(P),w.triggerSyncEvent(P);var A=w.props.onMouseEnter;se(A)&&A(P,S)}}),oe(w,"triggeredAfterMouseMove",function(S){var _=w.getMouseInfo(S),P=_?z(z({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(P),w.triggerSyncEvent(P);var A=w.props.onMouseMove;se(A)&&A(P,S)}),oe(w,"handleItemMouseEnter",function(S){w.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),oe(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),oe(w,"handleMouseMove",function(S){S.persist(),w.throttleTriggeredAfterMouseMove(S)}),oe(w,"handleMouseLeave",function(S){w.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var P=w.props.onMouseLeave;se(P)&&P(_,S)}),oe(w,"handleOuterEvent",function(S){var _=xF(S),P=ur(w.props,"".concat(_));if(_&&se(P)){var A,C;/.*touch.*/i.test(_)?C=w.getMouseInfo(S.changedTouches[0]):C=w.getMouseInfo(S),P((A=C)!==null&&A!==void 0?A:{},S)}}),oe(w,"handleClick",function(S){var _=w.getMouseInfo(S);if(_){var P=z(z({},_),{},{isTooltipActive:!0});w.setState(P),w.triggerSyncEvent(P);var A=w.props.onClick;se(A)&&A(P,S)}}),oe(w,"handleMouseDown",function(S){var _=w.props.onMouseDown;if(se(_)){var P=w.getMouseInfo(S);_(P,S)}}),oe(w,"handleMouseUp",function(S){var _=w.props.onMouseUp;if(se(_)){var P=w.getMouseInfo(S);_(P,S)}}),oe(w,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),oe(w,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseDown(S.changedTouches[0])}),oe(w,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseUp(S.changedTouches[0])}),oe(w,"handleDoubleClick",function(S){var _=w.props.onDoubleClick;if(se(_)){var P=w.getMouseInfo(S);_(P,S)}}),oe(w,"handleContextMenu",function(S){var _=w.props.onContextMenu;if(se(_)){var P=w.getMouseInfo(S);_(P,S)}}),oe(w,"triggerSyncEvent",function(S){w.props.syncId!==void 0&&cy.emit(fy,w.props.syncId,S,w.eventEmitterSymbol)}),oe(w,"applySyncEvent",function(S){var _=w.props,P=_.layout,A=_.syncMethod,C=w.state.updateId,E=S.dataStartIndex,T=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)w.setState(z({dataStartIndex:E,dataEndIndex:T},h({props:w.props,dataStartIndex:E,dataEndIndex:T,updateId:C},w.state)));else if(S.activeTooltipIndex!==void 0){var N=S.chartX,D=S.chartY,R=S.activeTooltipIndex,L=w.state,V=L.offset,I=L.tooltipTicks;if(!V)return;if(typeof A=="function")R=A(I,S);else if(A==="value"){R=-1;for(var F=0;F<I.length;F++)if(I[F].value===S.activeLabel){R=F;break}}var H=z(z({},V),{},{x:V.left,y:V.top}),Q=Math.min(N,H.x+H.width),K=Math.min(D,H.y+H.height),ne=I[R]&&I[R].value,me=qv(w.state,w.props.data,R),Ee=I[R]?{x:P==="horizontal"?I[R].coordinate:Q,y:P==="horizontal"?K:I[R].coordinate}:k$;w.setState(z(z({},S),{},{activeLabel:ne,activeCoordinate:Ee,activePayload:me,activeTooltipIndex:R}))}else w.setState(S)}),oe(w,"renderCursor",function(S){var _,P=w.state,A=P.isTooltipActive,C=P.activeCoordinate,E=P.activePayload,T=P.offset,N=P.activeTooltipIndex,D=P.tooltipAxisBandSize,R=w.getTooltipEventType(),L=(_=S.props.active)!==null&&_!==void 0?_:A,V=w.props.layout,I=S.key||"_recharts-cursor";return k.createElement(bie,{key:I,activeCoordinate:C,activePayload:E,activeTooltipIndex:N,chartName:r,element:S,isActive:L,layout:V,offset:T,tooltipAxisBandSize:D,tooltipEventType:R})}),oe(w,"renderPolarAxis",function(S,_,P){var A=ur(S,"type.axisType"),C=ur(w.state,"".concat(A,"Map")),E=S.type.defaultProps,T=E!==void 0?z(z({},E),S.props):S.props,N=C&&C[T["".concat(A,"Id")]];return j.cloneElement(S,z(z({},N),{},{className:ue(A,N.className),key:S.key||"".concat(_,"-").concat(P),ticks:Cn(N,!0)}))}),oe(w,"renderPolarGrid",function(S){var _=S.props,P=_.radialLines,A=_.polarAngles,C=_.polarRadius,E=w.state,T=E.radiusAxisMap,N=E.angleAxisMap,D=ci(T),R=ci(N),L=R.cx,V=R.cy,I=R.innerRadius,F=R.outerRadius;return j.cloneElement(S,{polarAngles:Array.isArray(A)?A:Cn(R,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(C)?C:Cn(D,!0).map(function(H){return H.coordinate}),cx:L,cy:V,innerRadius:I,outerRadius:F,key:S.key||"polar-grid",radialLines:P})}),oe(w,"renderLegend",function(){var S=w.state.formattedGraphicalItems,_=w.props,P=_.children,A=_.width,C=_.height,E=w.props.margin||{},T=A-(E.left||0)-(E.right||0),N=i2({children:P,formattedGraphicalItems:S,legendWidth:T,legendContent:u});if(!N)return null;var D=N.item,R=v_(N,wie);return j.cloneElement(D,z(z({},R),{},{chartWidth:A,chartHeight:C,margin:E,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),oe(w,"renderTooltip",function(){var S,_=w.props,P=_.children,A=_.accessibilityLayer,C=ir(P,xr);if(!C)return null;var E=w.state,T=E.isTooltipActive,N=E.activeCoordinate,D=E.activePayload,R=E.activeLabel,L=E.offset,V=(S=C.props.active)!==null&&S!==void 0?S:T;return j.cloneElement(C,{viewBox:z(z({},L),{},{x:L.left,y:L.top}),active:V,label:R,payload:V?D:[],coordinate:N,accessibilityLayer:A})}),oe(w,"renderBrush",function(S){var _=w.props,P=_.margin,A=_.data,C=w.state,E=C.offset,T=C.dataStartIndex,N=C.dataEndIndex,D=C.updateId;return j.cloneElement(S,{key:S.key||"_recharts-brush",onChange:_c(w.handleBrushChange,S.props.onChange),data:A,x:X(S.props.x)?S.props.x:E.left,y:X(S.props.y)?S.props.y:E.top+E.height+E.brushBottom-(P.bottom||0),width:X(S.props.width)?S.props.width:E.width,startIndex:T,endIndex:N,updateId:"brush-".concat(D)})}),oe(w,"renderReferenceElement",function(S,_,P){if(!S)return null;var A=w,C=A.clipPathId,E=w.state,T=E.xAxisMap,N=E.yAxisMap,D=E.offset,R=S.type.defaultProps||{},L=S.props,V=L.xAxisId,I=V===void 0?R.xAxisId:V,F=L.yAxisId,H=F===void 0?R.yAxisId:F;return j.cloneElement(S,{key:S.key||"".concat(_,"-").concat(P),xAxis:T[I],yAxis:N[H],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),oe(w,"renderActivePoints",function(S){var _=S.item,P=S.activePoint,A=S.basePoint,C=S.childIndex,E=S.isRange,T=[],N=_.props.key,D=_.item.type.defaultProps!==void 0?z(z({},_.item.type.defaultProps),_.item.props):_.item.props,R=D.activeDot,L=D.dataKey,V=z(z({index:C,dataKey:L,cx:P.x,cy:P.y,r:4,fill:tx(_.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},ae(R,!1)),Tf(R));return T.push(x.renderActiveDot(R,V,"".concat(N,"-activePoint-").concat(C))),A?T.push(x.renderActiveDot(R,z(z({},V),{},{cx:A.x,cy:A.y}),"".concat(N,"-basePoint-").concat(C))):E&&T.push(null),T}),oe(w,"renderGraphicChild",function(S,_,P){var A=w.filterFormatItem(S,_,P);if(!A)return null;var C=w.getTooltipEventType(),E=w.state,T=E.isTooltipActive,N=E.tooltipAxis,D=E.activeTooltipIndex,R=E.activeLabel,L=w.props.children,V=ir(L,xr),I=A.props,F=I.points,H=I.isRange,Q=I.baseLine,K=A.item.type.defaultProps!==void 0?z(z({},A.item.type.defaultProps),A.item.props):A.item.props,ne=K.activeDot,me=K.hide,Ee=K.activeBar,Ve=K.activeShape,St=!!(!me&&T&&V&&(ne||Ee||Ve)),vt={};C!=="axis"&&V&&V.props.trigger==="click"?vt={onClick:_c(w.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(vt={onMouseLeave:_c(w.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:_c(w.handleItemMouseEnter,S.props.onMouseEnter)});var Z=j.cloneElement(S,z(z({},A.props),vt));function le(B){return typeof N.dataKey=="function"?N.dataKey(B.payload):null}if(St)if(D>=0){var de,W;if(N.dataKey&&!N.allowDuplicatedCategory){var Be=typeof N.dataKey=="function"?le:"payload.".concat(N.dataKey.toString());de=$f(F,Be,R),W=H&&Q&&$f(Q,Be,R)}else de=F==null?void 0:F[D],W=H&&Q&&Q[D];if(Ve||Ee){var ye=S.props.activeIndex!==void 0?S.props.activeIndex:D;return[j.cloneElement(S,z(z(z({},A.props),vt),{},{activeIndex:ye})),null,null]}if(!ce(de))return[Z].concat(us(w.renderActivePoints({item:A,activePoint:de,basePoint:W,childIndex:D,isRange:H})))}else{var Ge,Ze=(Ge=w.getItemByXY(w.state.activeCoordinate))!==null&&Ge!==void 0?Ge:{graphicalItem:Z},Ot=Ze.graphicalItem,mn=Ot.item,vn=mn===void 0?S:mn,$=Ot.childIndex,M=z(z(z({},A.props),vt),{},{activeIndex:$});return[j.cloneElement(vn,M),null,null]}return H?[Z,null,null]:[Z,null]}),oe(w,"renderCustomized",function(S,_,P){return j.cloneElement(S,z(z({key:"recharts-customized-".concat(P)},w.props),w.state))}),oe(w,"renderMap",{CartesianGrid:{handler:Ec,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Ec},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Ec},YAxis:{handler:Ec},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((v=m.id)!==null&&v!==void 0?v:ws("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=nE(w.triggeredAfterMouseMove,(O=m.throttleDelay)!==null&&O!==void 0?O:1e3/60),w.state={},w}return Cie(x,b),jie(x,[{key:"componentDidMount",value:function(){var v,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var v=this.props,O=v.children,w=v.data,S=v.height,_=v.layout,P=ir(O,xr);if(P){var A=P.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=qv(this.state,w,A,C),T=this.state.tooltipTicks[A].coordinate,N=(this.state.offset.top+S)/2,D=_==="horizontal",R=D?{x:T,y:N}:{y:T,x:N},L=this.state.formattedGraphicalItems.find(function(I){var F=I.item;return F.type.name==="Scatter"});L&&(R=z(z({},R),L.props.points[A].tooltipPosition),E=L.props.points[A].tooltipPayload);var V={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:E,activeCoordinate:R};this.setState(V),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(v,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==v.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==v.margin){var w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(v){wm([ir(v.children,xr)],[ir(this.props.children,xr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var v=ir(this.props.children,xr);if(v&&typeof v.props.shared=="boolean"){var O=v.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(v){if(!this.container)return null;var O=this.container,w=O.getBoundingClientRect(),S=VW(w),_={chartX:Math.round(v.pageX-S.left),chartY:Math.round(v.pageY-S.top)},P=w.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,P);if(!A)return null;var C=this.state,E=C.xAxisMap,T=C.yAxisMap,N=this.getTooltipEventType(),D=b_(this.state,this.props.data,this.props.layout,A);if(N!=="axis"&&E&&T){var R=ci(E).scale,L=ci(T).scale,V=R&&R.invert?R.invert(_.chartX):null,I=L&&L.invert?L.invert(_.chartY):null;return z(z({},_),{},{xValue:V,yValue:I},D)}return D?z(z({},_),D):null}},{key:"inRange",value:function(v,O){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,_=v/w,P=O/w;if(S==="horizontal"||S==="vertical"){var A=this.state.offset,C=_>=A.left&&_<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return C?{x:_,y:P}:null}var E=this.state,T=E.angleAxisMap,N=E.radiusAxisMap;if(T&&N){var D=ci(T);return RS({x:_,y:P},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var v=this.props.children,O=this.getTooltipEventType(),w=ir(v,xr),S={};w&&O==="axis"&&(w.props.trigger==="click"?S={onClick:this.handleClick}:S={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 _=Tf(this.props,this.handleOuterEvent);return z(z({},_),S)}},{key:"addListener",value:function(){cy.on(fy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){cy.removeListener(fy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(v,O,w){for(var S=this.state.formattedGraphicalItems,_=0,P=S.length;_<P;_++){var A=S[_];if(A.item===v||A.props.key===v.key||O===Mn(A.item.type)&&w===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var v=this.clipPathId,O=this.state.offset,w=O.left,S=O.top,_=O.height,P=O.width;return k.createElement("defs",null,k.createElement("clipPath",{id:v},k.createElement("rect",{x:w,y:S,height:_,width:P})))}},{key:"getXScales",value:function(){var v=this.state.xAxisMap;return v?Object.entries(v).reduce(function(O,w){var S=m_(w,2),_=S[0],P=S[1];return z(z({},O),{},oe({},_,P.scale))},{}):null}},{key:"getYScales",value:function(){var v=this.state.yAxisMap;return v?Object.entries(v).reduce(function(O,w){var S=m_(w,2),_=S[0],P=S[1];return z(z({},O),{},oe({},_,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(v){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[v])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(v){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[v])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(v){var O=this.state,w=O.formattedGraphicalItems,S=O.activeItem;if(w&&w.length)for(var _=0,P=w.length;_<P;_++){var A=w[_],C=A.props,E=A.item,T=E.type.defaultProps!==void 0?z(z({},E.type.defaultProps),E.props):E.props,N=Mn(E.type);if(N==="Bar"){var D=(C.data||[]).find(function(I){return _Z(v,I)});if(D)return{graphicalItem:A,payload:D}}else if(N==="RadialBar"){var R=(C.data||[]).find(function(I){return RS(v,I)});if(R)return{graphicalItem:A,payload:R}}else if(Hh(A,S)||qh(A,S)||xu(A,S)){var L=dee({graphicalItem:A,activeTooltipItem:S,itemData:T.data}),V=T.activeIndex===void 0?L:T.activeIndex;return{graphicalItem:z(z({},A),{},{childIndex:V}),payload:xu(A,S)?T.data[L]:A.props.data[L]}}}return null}},{key:"render",value:function(){var v=this;if(!O1(this))return null;var O=this.props,w=O.children,S=O.className,_=O.width,P=O.height,A=O.style,C=O.compact,E=O.title,T=O.desc,N=v_(O,Sie),D=ae(N,!1);if(C)return k.createElement(qO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement(Om,co({},D,{width:_,height:P,title:E,desc:T}),this.renderClipPath(),P1(w,this.renderMap)));if(this.props.accessibilityLayer){var R,L;D.tabIndex=(R=this.props.tabIndex)!==null&&R!==void 0?R:0,D.role=(L=this.props.role)!==null&&L!==void 0?L:"application",D.onKeyDown=function(I){v.accessibilityManager.keyboardEvent(I)},D.onFocus=function(){v.accessibilityManager.focus()}}var V=this.parseEventsOfWrapper();return k.createElement(qO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement("div",co({className:ue("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:_,height:P},A)},V,{ref:function(F){v.container=F}}),k.createElement(Om,co({},D,{width:_,height:P,title:E,desc:T,style:Lie}),this.renderClipPath(),P1(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);oe(y,"displayName",r),oe(y,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),oe(y,"getDerivedStateFromProps",function(b,x){var m=b.dataKey,v=b.data,O=b.children,w=b.width,S=b.height,_=b.layout,P=b.stackOffset,A=b.margin,C=x.dataStartIndex,E=x.dataEndIndex;if(x.updateId===void 0){var T=w_(b);return z(z(z({},T),{},{updateId:0},h(z(z({props:b},T),{},{updateId:0}),x)),{},{prevDataKey:m,prevData:v,prevWidth:w,prevHeight:S,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:O})}if(m!==x.prevDataKey||v!==x.prevData||w!==x.prevWidth||S!==x.prevHeight||_!==x.prevLayout||P!==x.prevStackOffset||!go(A,x.prevMargin)){var N=w_(b),D={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},R=z(z({},b_(x,v,_)),{},{updateId:x.updateId+1}),L=z(z(z({},N),D),R);return z(z(z({},L),h(z({props:b},L),x)),{},{prevDataKey:m,prevData:v,prevWidth:w,prevHeight:S,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:O})}if(!wm(O,x.prevChildren)){var V,I,F,H,Q=ir(O,Jo),K=Q&&(V=(I=Q.props)===null||I===void 0?void 0:I.startIndex)!==null&&V!==void 0?V:C,ne=Q&&(F=(H=Q.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:E,me=K!==C||ne!==E,Ee=!ce(v),Ve=Ee&&!me?x.updateId:x.updateId+1;return z(z({updateId:Ve},h(z(z({props:b},x),{},{updateId:Ve,dataStartIndex:K,dataEndIndex:ne}),x)),{},{prevChildren:O,dataStartIndex:K,dataEndIndex:ne})}return null}),oe(y,"renderActiveDot",function(b,x,m){var v;return j.isValidElement(b)?v=j.cloneElement(b,x):se(b)?v=b(x):v=k.createElement(Bh,x),k.createElement(xe,{className:"recharts-active-dot",key:m},v)});var p=j.forwardRef(function(x,m){return k.createElement(y,co({},x,{ref:m}))});return p.displayName=y.displayName,p},Gie=hx({chartName:"LineChart",GraphicalChild:Hu,axisComponents:[{axisType:"xAxis",AxisComp:Es},{axisType:"yAxis",AxisComp:$s}],formatAxisMap:K2}),Xie=hx({chartName:"BarChart",GraphicalChild:La,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Es},{axisType:"yAxis",AxisComp:$s}],formatAxisMap:K2}),Yie=hx({chartName:"PieChart",GraphicalChild:Qn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Wh},{axisType:"radiusAxis",AxisComp:Uh}],formatAxisMap:FX,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const E$=({data:e,title:t,color:r="#3b82f6"})=>g.jsxs("div",{className:"card p-6",children:[t&&g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:t}),g.jsx($0,{width:"100%",height:300,children:g.jsxs(Xie,{data:e,children:[g.jsx(dx,{strokeDasharray:"3 3",className:"stroke-gray-300 dark:stroke-gray-600"}),g.jsx(Es,{dataKey:"name",className:"text-gray-600 dark:text-gray-400",tick:{fontSize:12}}),g.jsx($s,{className:"text-gray-600 dark:text-gray-400",tick:{fontSize:12}}),g.jsx(xr,{contentStyle:{backgroundColor:"var(--tooltip-bg)",border:"none",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"},labelStyle:{color:"var(--tooltip-text)"}}),g.jsx(La,{dataKey:"value",fill:r,radius:[4,4,0,0]})]})})]}),$$=({data:e,title:t,color:r="#10b981"})=>g.jsxs("div",{className:"card p-6",children:[t&&g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:t}),g.jsx($0,{width:"100%",height:300,children:g.jsxs(Gie,{data:e,children:[g.jsx(dx,{strokeDasharray:"3 3",className:"stroke-gray-300 dark:stroke-gray-600"}),g.jsx(Es,{dataKey:"name",className:"text-gray-600 dark:text-gray-400",tick:{fontSize:12}}),g.jsx($s,{className:"text-gray-600 dark:text-gray-400",tick:{fontSize:12}}),g.jsx(xr,{contentStyle:{backgroundColor:"var(--tooltip-bg)",border:"none",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"},labelStyle:{color:"var(--tooltip-text)"}}),g.jsx(Hu,{type:"monotone",dataKey:"value",stroke:r,strokeWidth:3,dot:{r:6}})]})})]}),Qie=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6"],Zie=({data:e,title:t,colors:r=Qie})=>g.jsxs("div",{className:"card p-6",children:[t&&g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:t}),g.jsx($0,{width:"100%",height:300,children:g.jsxs(Yie,{children:[g.jsx(Qn,{data:e,cx:"50%",cy:"50%",labelLine:!1,label:({name:n,percent:i})=>`${n} ${(i*100).toFixed(0)}%`,outerRadius:80,fill:"#8884d8",dataKey:"value",children:e.map((n,i)=>g.jsx(kh,{fill:r[i%r.length]},`cell-${i}`))}),g.jsx(xr,{contentStyle:{backgroundColor:"var(--tooltip-bg)",border:"none",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"},labelStyle:{color:"var(--tooltip-text)"}})]})})]}),Jh=({columns:e,data:t,loading:r=!1})=>{const[n,i]=j.useState(""),[a,o]=j.useState("asc"),s=u=>{n===u?o(a==="asc"?"desc":"asc"):(i(u),o("asc"))},l=[...t].sort((u,f)=>{if(!n)return 0;const c=u[n],d=f[n];return c<d?a==="asc"?-1:1:c>d?a==="asc"?1:-1:0});return r?g.jsxs("div",{className:"animate-pulse",children:[g.jsx("div",{className:"hidden md:block",children:g.jsxs("div",{className:"card overflow-hidden",children:[g.jsx("div",{className:"bg-gray-50 dark:bg-gray-700 px-6 py-3",children:g.jsx("div",{className:"flex space-x-4",children:e.map((u,f)=>g.jsx("div",{className:"h-4 bg-gray-300 dark:bg-gray-600 rounded flex-1"},f))})}),[...Array(5)].map((u,f)=>g.jsx("div",{className:"px-6 py-4 border-b border-gray-200 dark:border-gray-700",children:g.jsx("div",{className:"flex space-x-4",children:e.map((c,d)=>g.jsx("div",{className:"h-4 bg-gray-300 dark:bg-gray-600 rounded flex-1"},d))})},f))]})}),g.jsx("div",{className:"md:hidden space-y-4",children:[...Array(3)].map((u,f)=>g.jsx("div",{className:"card p-4 space-y-3",children:e.map((c,d)=>g.jsxs("div",{className:"space-y-1",children:[g.jsx("div",{className:"h-3 bg-gray-300 dark:bg-gray-600 rounded w-1/3"}),g.jsx("div",{className:"h-4 bg-gray-300 dark:bg-gray-600 rounded w-2/3"})]},d))},f))})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"hidden md:block card overflow-hidden",children:g.jsxs("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-gray-700",children:[g.jsx("thead",{className:"bg-gray-50 dark:bg-gray-700",children:g.jsx("tr",{children:e.map(u=>g.jsx("th",{className:ue("px-6 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider",u.sortable&&"cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-600"),onClick:()=>u.sortable&&s(u.key),children:g.jsxs("div",{className:"flex items-center justify-end space-x-1",children:[g.jsx("span",{children:u.label}),u.sortable&&g.jsxs("div",{className:"flex flex-col",children:[g.jsx(qI,{className:ue("h-3 w-3",n===u.key&&a==="asc"?"text-primary-600":"text-gray-400")}),g.jsx(yk,{className:ue("h-3 w-3 -mt-1",n===u.key&&a==="desc"?"text-primary-600":"text-gray-400")})]})]})},u.key))})}),g.jsx("tbody",{className:"bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700",children:l.map((u,f)=>g.jsx("tr",{className:"hover:bg-gray-50 dark:hover:bg-gray-700",children:e.map(c=>g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-gray-100 text-right",children:c.render?c.render(u[c.key],u):u[c.key]},c.key))},f))})]})}),g.jsx("div",{className:"md:hidden space-y-4",children:l.map((u,f)=>g.jsx("div",{className:"card p-4 space-y-3",children:e.map(c=>g.jsxs("div",{className:"flex justify-between items-start",children:[g.jsxs("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:[c.label,":"]}),g.jsx("span",{className:"text-sm text-gray-900 dark:text-gray-100 text-right",children:c.render?c.render(u[c.key],u):u[c.key]})]},c.key))},f))})]})},Ni=({permission:e,children:t,fallback:r=null})=>{const{hasPermission:n}=Nu();return n(e)?t:r},Jie=[{title:"کل کاربران",value:1247,change:12,icon:Gg,color:"blue"},{title:"فروش ماهانه",value:"۲۴,۵۶۷,۰۰۰",change:8.5,icon:mk,color:"green"},{title:"کل سفارشات",value:356,change:-2.3,icon:Kg,color:"yellow"},{title:"رشد فروش",value:"۲۳.۵%",change:15.2,icon:Wl,color:"purple"}],O_=[{name:"فروردین",value:4e3},{name:"اردیبهشت",value:3e3},{name:"خرداد",value:5e3},{name:"تیر",value:4500},{name:"مرداد",value:6e3},{name:"شهریور",value:5500}],eae=[{name:"دسکتاپ",value:45},{name:"موبایل",value:35},{name:"تبلت",value:20}],tae=[{id:1,name:"علی احمدی",email:"ali@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۵"},{id:2,name:"فاطمه حسینی",email:"fateme@example.com",role:"مدیر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۴"},{id:3,name:"محمد رضایی",email:"mohammad@example.com",role:"کاربر",status:"غیرفعال",createdAt:"۱۴۰۲/۰۸/۱۳"},{id:4,name:"زهرا کریمی",email:"zahra@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۲"}],rae=[{key:"name",label:"نام",sortable:!0},{key:"email",label:"ایمیل"},{key:"role",label:"نقش"},{key:"status",label:"وضعیت",render:e=>g.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${e==="فعال"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:e})},{key:"createdAt",label:"تاریخ عضویت"},{key:"actions",label:"عملیات",render:()=>g.jsxs("div",{className:"flex space-x-2",children:[g.jsx(je,{size:"sm",variant:"secondary",children:"ویرایش"}),g.jsx(Ni,{permission:22,children:g.jsx(je,{size:"sm",variant:"danger",children:"حذف"})})]})}],nae=()=>g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"داشبورد"}),g.jsxs("div",{className:"flex space-x-4",children:[g.jsx(je,{variant:"secondary",children:"گزارشگیری"}),g.jsx(Ni,{permission:25,children:g.jsx(je,{children:"اضافه کردن"})})]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:Jie.map((e,t)=>g.jsx(kR,{...e},t))}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsx(E$,{data:O_,title:"فروش ماهانه",color:"#3b82f6"}),g.jsx($$,{data:O_,title:"روند رشد",color:"#10b981"})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[g.jsx("div",{className:"lg:col-span-2",children:g.jsxs("div",{className:"card p-6",children:[g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:"کاربران اخیر"}),g.jsx(Jh,{columns:rae,data:tae})]})}),g.jsx("div",{children:g.jsx(Zie,{data:eae,title:"دستگاههای کاربری",colors:["#3b82f6","#10b981","#f59e0b"]})})]})]}),iae=({isOpen:e,onClose:t,title:r,children:n,size:i="md"})=>{if(j.useEffect(()=>{const o=s=>{s.key==="Escape"&&t()};return e&&(document.addEventListener("keydown",o),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",o),document.body.style.overflow="unset"}},[e,t]),!e)return null;const a={sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};return g.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:g.jsxs("div",{className:"flex min-h-screen items-center justify-center p-4",children:[g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity",onClick:t}),g.jsxs("div",{className:`
|
||
relative bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full
|
||
${a[i]} transform transition-all
|
||
`,children:[r&&g.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700",children:[g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:r}),g.jsx("button",{onClick:t,className:"p-1 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:g.jsx(Xg,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"})})]}),g.jsx("div",{className:"p-6",children:n})]})]})})},ep=({currentPage:e,totalPages:t,onPageChange:r,itemsPerPage:n,totalItems:i})=>{const a=(e-1)*n+1,o=Math.min(e*n,i),s=()=>{const l=[];if(t<=5)for(let f=1;f<=t;f++)l.push(f);else{const f=Math.max(1,e-2),c=Math.min(t,f+5-1);for(let d=f;d<=c;d++)l.push(d);f>1&&(l.unshift("..."),l.unshift(1)),c<t&&(l.push("..."),l.push(t))}return l};return t<=1?null:g.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 sm:px-6",children:[g.jsxs("div",{className:"flex flex-1 justify-between sm:hidden",children:[g.jsx(je,{variant:"secondary",size:"sm",onClick:()=>r(e-1),disabled:e===1,children:"قبلی"}),g.jsx(je,{variant:"secondary",size:"sm",onClick:()=>r(e+1),disabled:e===t,children:"بعدی"})]}),g.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[g.jsx("div",{children:g.jsxs("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:["نمایش ",g.jsx("span",{className:"font-medium",children:a})," تا"," ",g.jsx("span",{className:"font-medium",children:o})," از"," ",g.jsx("span",{className:"font-medium",children:i})," نتیجه"]})}),g.jsx("div",{children:g.jsxs("nav",{className:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px",children:[g.jsx("button",{onClick:()=>r(e-1),disabled:e===1,className:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",children:g.jsx(HI,{className:"h-5 w-5"})}),s().map((l,u)=>g.jsx("button",{onClick:()=>typeof l=="number"&&r(l),disabled:l==="...",className:`relative inline-flex items-center px-4 py-2 border text-sm font-medium ${l===e?"z-10 bg-primary-50 dark:bg-primary-900 border-primary-500 text-primary-600 dark:text-primary-400":l==="..."?"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-300 cursor-default":"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600"}`,children:l},u)),g.jsx("button",{onClick:()=>r(e+1),disabled:e===t,className:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",children:g.jsx(WI,{className:"h-5 w-5"})})]})})]})]})},aae=({initialData:e,onSubmit:t,onCancel:r,loading:n=!1,isEdit:i=!1})=>{var u,f,c,d;const{register:a,handleSubmit:o,formState:{errors:s,isValid:l}}=$k({resolver:Ck(PR),mode:"onChange",defaultValues:e});return g.jsxs("div",{className:"card p-6",children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-gray-100",children:i?"ویرایش کاربر":"افزودن کاربر جدید"}),g.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"اطلاعات کاربر را وارد کنید"})]}),g.jsxs("form",{onSubmit:o(t),className:"space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[g.jsx(io,{label:"نام و نام خانوادگی",placeholder:"علی احمدی",icon:xk,error:(u=s.name)==null?void 0:u.message,...a("name")}),g.jsx(io,{label:"ایمیل",type:"email",placeholder:"ali@example.com",icon:gk,error:(f=s.email)==null?void 0:f.message,...a("email")}),g.jsx(io,{label:"شماره تلفن",type:"tel",placeholder:"09123456789",icon:tD,error:(c=s.phone)==null?void 0:c.message,...a("phone")}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"نقش"}),g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(aD,{className:"h-5 w-5 text-gray-400"})}),g.jsxs("select",{className:`input pr-10 ${s.role?"border-red-500 dark:border-red-500 focus:ring-red-500":""}`,...a("role"),children:[g.jsx("option",{value:"",children:"انتخاب کنید"}),g.jsx("option",{value:"کاربر",children:"کاربر"}),g.jsx("option",{value:"مدیر",children:"مدیر"}),g.jsx("option",{value:"ادمین",children:"ادمین"})]})]}),s.role&&g.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:s.role.message})]})]}),!i&&g.jsx(io,{label:"رمز عبور",type:"password",placeholder:"حداقل ۶ کاراکتر",error:(d=s.password)==null?void 0:d.message,...a("password")}),g.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 border-t border-gray-200 dark:border-gray-700",children:[g.jsx(je,{type:"button",variant:"secondary",onClick:r,disabled:n,children:"انصراف"}),g.jsx(je,{type:"submit",loading:n,disabled:!l,children:i?"ویرایش":"افزودن"})]})]})]})},oae=[{id:1,name:"علی احمدی",email:"ali@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۵",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:2,name:"فاطمه حسینی",email:"fateme@example.com",role:"مدیر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۴",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:3,name:"محمد رضایی",email:"mohammad@example.com",role:"کاربر",status:"غیرفعال",createdAt:"۱۴۰۲/۰۸/۱۳",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:4,name:"زهرا کریمی",email:"zahra@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۲",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:5,name:"حسن نوری",email:"hassan@example.com",role:"مدیر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۱۱",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:6,name:"مریم صادقی",email:"maryam@example.com",role:"کاربر",status:"غیرفعال",createdAt:"۱۴۰۲/۰۸/۱۰",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:7,name:"احمد قاسمی",email:"ahmad@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۰۹",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:8,name:"سارا محمدی",email:"sara@example.com",role:"مدیر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۰۸",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:9,name:"رضا کریمی",email:"reza@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۰۷",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:10,name:"نرگس احمدی",email:"narges@example.com",role:"کاربر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۰۶",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:11,name:"امیر حسینی",email:"amir@example.com",role:"مدیر",status:"فعال",createdAt:"۱۴۰۲/۰۸/۰۵",phone:"۰۹۱۲۳۴۵۶۷۸۹"},{id:12,name:"مینا رضایی",email:"mina@example.com",role:"کاربر",status:"غیرفعال",createdAt:"۱۴۰۲/۰۸/۰۴",phone:"۰۹۱۲۳۴۵۶۷۸۹"}],sae=()=>{const[e,t]=j.useState(""),[r,n]=j.useState(!1),[i,a]=j.useState(null),[o,s]=j.useState(1),l=5,u=[{key:"name",label:"نام",sortable:!0},{key:"email",label:"ایمیل",sortable:!0},{key:"phone",label:"تلفن"},{key:"role",label:"نقش"},{key:"status",label:"وضعیت",render:v=>g.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${v==="فعال"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:v})},{key:"createdAt",label:"تاریخ عضویت",sortable:!0},{key:"actions",label:"عملیات",render:(v,O)=>g.jsxs("div",{className:"flex space-x-2",children:[g.jsx(je,{size:"sm",variant:"secondary",onClick:()=>p(O),children:"ویرایش"}),g.jsx(Ni,{permission:22,children:g.jsx(je,{size:"sm",variant:"danger",onClick:()=>b(O.id),children:"حذف"})})]})}],f=oae.filter(v=>v.name.toLowerCase().includes(e.toLowerCase())||v.email.toLowerCase().includes(e.toLowerCase())),c=Math.ceil(f.length/l),d=(o-1)*l,h=f.slice(d,d+l),y=()=>{a(null),n(!0)},p=v=>{a(v),n(!0)},b=v=>{confirm("آیا از حذف این کاربر اطمینان دارید؟")&&console.log("Deleting user:",v)},x=v=>{console.log("User data:",v),n(!1)},m=()=>{n(!1),a(null)};return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"مدیریت کاربران"}),g.jsxs("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:[f.length," کاربر یافت شد"]})]}),g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsxs(je,{variant:"secondary",children:[g.jsx(Hg,{className:"h-4 w-4 ml-2"}),"فیلتر"]}),g.jsx(Ni,{permission:25,children:g.jsxs(je,{onClick:y,children:[g.jsx(qg,{className:"h-4 w-4 ml-2"}),"افزودن کاربر"]})})]})]}),g.jsxs("div",{className:"card p-6",children:[g.jsx("div",{className:"mb-6",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(Jd,{className:"h-5 w-5 text-gray-400"})}),g.jsx("input",{type:"text",placeholder:"جستجو در کاربران...",value:e,onChange:v=>t(v.target.value),className:"input pr-10 max-w-md"})]})}),g.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg overflow-hidden",children:[g.jsx(Jh,{columns:u,data:h,loading:!1}),g.jsx(ep,{currentPage:o,totalPages:c,onPageChange:s,itemsPerPage:l,totalItems:f.length})]})]}),g.jsx(iae,{isOpen:r,onClose:m,size:"lg",children:g.jsx(aae,{initialData:i,onSubmit:x,onCancel:m,loading:!1,isEdit:!!i})})]})},$c=[{id:1,name:"لپتاپ ایسوس",category:"کامپیوتر",price:"۲۵,۰۰۰,۰۰۰",stock:15,status:"موجود",createdAt:"۱۴۰۲/۰۸/۱۵"},{id:2,name:"گوشی سامسونگ گلکسی",category:"موبایل",price:"۱۸,۰۰۰,۰۰۰",stock:8,status:"موجود",createdAt:"۱۴۰۲/۰۸/۱۴"},{id:3,name:"هدفون بیسیم",category:"لوازم جانبی",price:"۲,۵۰۰,۰۰۰",stock:0,status:"ناموجود",createdAt:"۱۴۰۲/۰۸/۱۳"},{id:4,name:"کیبورد گیمینگ",category:"لوازم جانبی",price:"۳,۲۰۰,۰۰۰",stock:25,status:"موجود",createdAt:"۱۴۰۲/۰۸/۱۲"},{id:5,name:"مانیتور ۲۴ اینچ",category:"نمایشگر",price:"۱۲,۰۰۰,۰۰۰",stock:5,status:"کم موجود",createdAt:"۱۴۰۲/۰۸/۱۱"},{id:6,name:"ماوس بیسیم",category:"لوازم جانبی",price:"۱,۸۰۰,۰۰۰",stock:30,status:"موجود",createdAt:"۱۴۰۲/۰۸/۱۰"},{id:7,name:"تبلت آیپد",category:"تبلت",price:"۳۵,۰۰۰,۰۰۰",stock:3,status:"کم موجود",createdAt:"۱۴۰۲/۰۸/۰۹"},{id:8,name:"هارد اکسترنال",category:"ذخیرهسازی",price:"۴,۵۰۰,۰۰۰",stock:12,status:"موجود",createdAt:"۱۴۰۲/۰۸/۰۸"}],lae=()=>{const[e,t]=j.useState(""),[r,n]=j.useState(1),i=6,a=[{key:"name",label:"نام محصول",sortable:!0},{key:"category",label:"دستهبندی",sortable:!0},{key:"price",label:"قیمت",sortable:!0},{key:"stock",label:"موجودی",render:h=>g.jsx("span",{className:`font-medium ${h===0?"text-red-600 dark:text-red-400":h<10?"text-yellow-600 dark:text-yellow-400":"text-green-600 dark:text-green-400"}`,children:h})},{key:"status",label:"وضعیت",render:h=>g.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${h==="موجود"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":h==="کم موجود"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:h})},{key:"createdAt",label:"تاریخ افزودن",sortable:!0},{key:"actions",label:"عملیات",render:(h,y)=>g.jsxs("div",{className:"flex space-x-2",children:[g.jsx(je,{size:"sm",variant:"secondary",onClick:()=>c(y),children:"ویرایش"}),g.jsx(Ni,{permission:22,children:g.jsx(je,{size:"sm",variant:"danger",onClick:()=>d(y.id),children:"حذف"})})]})}],o=$c.filter(h=>h.name.toLowerCase().includes(e.toLowerCase())||h.category.toLowerCase().includes(e.toLowerCase())),s=Math.ceil(o.length/i),l=(r-1)*i,u=o.slice(l,l+i),f=()=>{console.log("Adding new product")},c=h=>{console.log("Editing product:",h)},d=h=>{confirm("آیا از حذف این محصول اطمینان دارید؟")&&console.log("Deleting product:",h)};return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"مدیریت محصولات"}),g.jsxs("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:[o.length," محصول یافت شد"]})]}),g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsxs(je,{variant:"secondary",children:[g.jsx(Hg,{className:"h-4 w-4 ml-2"}),"فیلتر"]}),g.jsx(Ni,{permission:25,children:g.jsxs(je,{onClick:f,children:[g.jsx(qg,{className:"h-4 w-4 ml-2"}),"افزودن محصول"]})})]})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-6",children:[g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Mp,{className:"h-8 w-8 text-blue-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کل محصولات"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:$c.length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Mp,{className:"h-8 w-8 text-green-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"محصولات موجود"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:$c.filter(h=>h.status==="موجود").length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Mp,{className:"h-8 w-8 text-red-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"محصولات ناموجود"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:$c.filter(h=>h.status==="ناموجود").length})]})]})})]}),g.jsxs("div",{className:"card p-6",children:[g.jsx("div",{className:"mb-6",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(Jd,{className:"h-5 w-5 text-gray-400"})}),g.jsx("input",{type:"text",placeholder:"جستجو در محصولات...",value:e,onChange:h=>t(h.target.value),className:"input pr-10 max-w-md"})]})}),g.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg overflow-hidden",children:[g.jsx(Jh,{columns:a,data:u,loading:!1}),g.jsx(ep,{currentPage:r,totalPages:s,onPageChange:n,itemsPerPage:i,totalItems:o.length})]})]})]})},Qs=[{id:1001,customer:"علی احمدی",products:"۳ محصول",amount:"۴۵,۰۰۰,۰۰۰",status:"تحویل شده",date:"۱۴۰۲/۰۸/۱۵"},{id:1002,customer:"فاطمه حسینی",products:"۱ محصول",amount:"۲۵,۰۰۰,۰۰۰",status:"در حال پردازش",date:"۱۴۰۲/۰۸/۱۴"},{id:1003,customer:"محمد رضایی",products:"۲ محصول",amount:"۳۲,۰۰۰,۰۰۰",status:"ارسال شده",date:"۱۴۰۲/۰۸/۱۳"},{id:1004,customer:"زهرا کریمی",products:"۵ محصول",amount:"۱۲۰,۰۰۰,۰۰۰",status:"تحویل شده",date:"۱۴۰۲/۰۸/۱۲"},{id:1005,customer:"حسن نوری",products:"۱ محصول",amount:"۱۸,۰۰۰,۰۰۰",status:"لغو شده",date:"۱۴۰۲/۰۸/۱۱"},{id:1006,customer:"مریم صادقی",products:"۴ محصول",amount:"۸۵,۰۰۰,۰۰۰",status:"در حال پردازش",date:"۱۴۰۲/۰۸/۱۰"},{id:1007,customer:"احمد قاسمی",products:"۲ محصول",amount:"۳۸,۰۰۰,۰۰۰",status:"ارسال شده",date:"۱۴۰۲/۰۸/۰۹"},{id:1008,customer:"سارا محمدی",products:"۳ محصول",amount:"۶۲,۰۰۰,۰۰۰",status:"تحویل شده",date:"۱۴۰۲/۰۸/۰۸"},{id:1009,customer:"رضا کریمی",products:"۱ محصول",amount:"۱۵,۰۰۰,۰۰۰",status:"در حال پردازش",date:"۱۴۰۲/۰۸/۰۷"},{id:1010,customer:"نرگس احمدی",products:"۶ محصول",amount:"۱۴۵,۰۰۰,۰۰۰",status:"تحویل شده",date:"۱۴۰۲/۰۸/۰۶"}],uae=()=>{const[e,t]=j.useState(""),[r,n]=j.useState(1),i=6,a=[{key:"id",label:"شماره سفارش",sortable:!0},{key:"customer",label:"مشتری",sortable:!0},{key:"products",label:"محصولات"},{key:"amount",label:"مبلغ",render:h=>g.jsxs("span",{className:"font-medium text-gray-900 dark:text-gray-100",children:[h," تومان"]})},{key:"status",label:"وضعیت",render:h=>g.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${h==="تحویل شده"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":h==="ارسال شده"?"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200":h==="در حال پردازش"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:h})},{key:"date",label:"تاریخ سفارش",sortable:!0},{key:"actions",label:"عملیات",render:(h,y)=>g.jsxs("div",{className:"flex space-x-2",children:[g.jsx(je,{size:"sm",variant:"secondary",onClick:()=>f(y),children:"مشاهده"}),g.jsx(je,{size:"sm",variant:"primary",onClick:()=>c(y),children:"ویرایش"})]})}],o=Qs.filter(h=>h.customer.toLowerCase().includes(e.toLowerCase())||h.id.toString().includes(e)),s=Math.ceil(o.length/i),l=(r-1)*i,u=o.slice(l,l+i),f=h=>{console.log("Viewing order:",h)},c=h=>{console.log("Editing order:",h)},d=Qs.reduce((h,y)=>{const p=parseInt(y.amount.replace(/[,]/g,""));return h+p},0);return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"مدیریت سفارشات"}),g.jsxs("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:[o.length," سفارش یافت شد"]})]}),g.jsx("div",{className:"flex items-center space-x-4",children:g.jsxs(je,{variant:"secondary",children:[g.jsx(Hg,{className:"h-4 w-4 ml-2"}),"فیلتر"]})})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 mb-6",children:[g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(pm,{className:"h-8 w-8 text-blue-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کل سفارشات"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:Qs.length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Wl,{className:"h-8 w-8 text-green-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"تحویل شده"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:Qs.filter(h=>h.status==="تحویل شده").length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(pm,{className:"h-8 w-8 text-yellow-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"در انتظار"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:Qs.filter(h=>h.status==="در حال پردازش").length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Wl,{className:"h-8 w-8 text-purple-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کل فروش"}),g.jsxs("p",{className:"text-xl font-bold text-gray-900 dark:text-gray-100",children:[d.toLocaleString()," تومان"]})]})]})})]}),g.jsxs("div",{className:"card p-6",children:[g.jsx("div",{className:"mb-6",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(Jd,{className:"h-5 w-5 text-gray-400"})}),g.jsx("input",{type:"text",placeholder:"جستجو در سفارشات...",value:e,onChange:h=>t(h.target.value),className:"input pr-10 max-w-md"})]})}),g.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg overflow-hidden",children:[g.jsx(Jh,{columns:a,data:u,loading:!1}),g.jsx(ep,{currentPage:r,totalPages:s,onPageChange:n,itemsPerPage:i,totalItems:o.length})]})]})]})},cae=()=>{const[e,t]=j.useState("month"),r=[{name:"فروردین",value:12e6},{name:"اردیبهشت",value:19e6},{name:"خرداد",value:15e6},{name:"تیر",value:22e6},{name:"مرداد",value:18e6},{name:"شهریور",value:25e6}],n=[{name:"فروردین",value:150},{name:"اردیبهشت",value:230},{name:"خرداد",value:180},{name:"تیر",value:280},{name:"مرداد",value:200},{name:"شهریور",value:320}],i=[{id:1,title:"گزارش فروش ماهانه",description:"گزارش کامل فروش محصولات در ماه گذشته",type:"فروش",date:"۱۴۰۲/۰۸/۳۰",format:"PDF"},{id:2,title:"گزارش کاربران جدید",description:"آمار کاربران جدید عضو شده در سیستم",type:"کاربران",date:"۱۴۰۲/۰۸/۲۹",format:"Excel"},{id:3,title:"گزارش موجودی انبار",description:"وضعیت موجودی محصولات در انبار",type:"انبار",date:"۱۴۰۲/۰۸/۲۸",format:"PDF"},{id:4,title:"گزارش درآمد روزانه",description:"جزئیات درآمد حاصل از فروش در ۳۰ روز گذشته",type:"مالی",date:"۱۴۰۲/۰۸/۲۷",format:"Excel"}],a=s=>{console.log("Downloading report:",s)},o=()=>{console.log("Generating new report")};return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"گزارشها و آمار"}),g.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"مشاهده و دانلود گزارشهای مختلف سیستم"})]}),g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsxs("select",{value:e,onChange:s=>t(s.target.value),className:"input max-w-xs",children:[g.jsx("option",{value:"week",children:"هفته گذشته"}),g.jsx("option",{value:"month",children:"ماه گذشته"}),g.jsx("option",{value:"quarter",children:"سه ماه گذشته"}),g.jsx("option",{value:"year",children:"سال گذشته"})]}),g.jsxs(je,{onClick:o,children:[g.jsx(hm,{className:"h-4 w-4 ml-2"}),"تولید گزارش جدید"]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[g.jsx("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"p-3 rounded-full bg-blue-100 dark:bg-blue-900",children:g.jsx(mk,{className:"h-6 w-6 text-blue-600 dark:text-blue-400"})}),g.jsxs("div",{className:"mr-4",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کل فروش"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"۱۱۱ میلیون"}),g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"+۱۲% از ماه قبل"})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"p-3 rounded-full bg-green-100 dark:bg-green-900",children:g.jsx(Gg,{className:"h-6 w-6 text-green-600 dark:text-green-400"})}),g.jsxs("div",{className:"mr-4",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کاربران جدید"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"۳۲۰"}),g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"+۸% از ماه قبل"})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"p-3 rounded-full bg-purple-100 dark:bg-purple-900",children:g.jsx(Kg,{className:"h-6 w-6 text-purple-600 dark:text-purple-400"})}),g.jsxs("div",{className:"mr-4",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کل سفارشات"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"۱,۲۵۴"}),g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"+۱۵% از ماه قبل"})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"p-3 rounded-full bg-yellow-100 dark:bg-yellow-900",children:g.jsx(Wl,{className:"h-6 w-6 text-yellow-600 dark:text-yellow-400"})}),g.jsxs("div",{className:"mr-4",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"نرخ رشد"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"+۲۳%"}),g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"بهبود یافته"})]})]})})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow",children:[g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:"روند فروش"}),g.jsx(E$,{data:r})]}),g.jsxs("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow",children:[g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:"رشد کاربران"}),g.jsx($$,{data:n})]})]}),g.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow",children:[g.jsx("div",{className:"px-6 py-4 border-b border-gray-200 dark:border-gray-700",children:g.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"گزارشهای اخیر"})}),g.jsx("div",{className:"p-6",children:g.jsx("div",{className:"space-y-4",children:i.map(s=>g.jsxs("div",{className:"flex items-center justify-between p-4 border border-gray-200 dark:border-gray-700 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900 rounded-lg ml-4",children:g.jsx(hm,{className:"h-5 w-5 text-blue-600 dark:text-blue-400"})}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-medium text-gray-900 dark:text-gray-100",children:s.title}),g.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:s.description}),g.jsxs("div",{className:"flex items-center mt-1 space-x-4",children:[g.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:["نوع: ",s.type]}),g.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:["تاریخ: ",s.date]}),g.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:["فرمت: ",s.format]})]})]})]}),g.jsxs(je,{size:"sm",variant:"secondary",onClick:()=>a(s.id),children:[g.jsx(KI,{className:"h-4 w-4 ml-2"}),"دانلود"]})]},s.id))})})]})]})},fae=[{id:1,title:"سفارش جدید دریافت شد",message:"سفارش شماره ۱۰۰۱ از طرف علی احمدی ثبت شد",type:"order",priority:"high",isRead:!1,date:"۱۴۰۲/۰۸/۱۵ - ۱۴:۳۰",sender:"سیستم فروش"},{id:2,title:"محصول در حال اتمام",message:"موجودی لپتاپ ایسوس به کمتر از ۵ عدد رسیده است",type:"warning",priority:"medium",isRead:!1,date:"۱۴۰۲/۰۸/۱۵ - ۱۲:۱۵",sender:"سیستم انبار"},{id:3,title:"کاربر جدید عضو شد",message:"فاطمه حسینی با موفقیت در سیستم ثبت نام کرد",type:"info",priority:"low",isRead:!0,date:"۱۴۰۲/۰۸/۱۴ - ۱۶:۴۵",sender:"سیستم کاربری"},{id:4,title:"پرداخت انجام شد",message:"پرداخت سفارش ۱۰۰۲ با موفقیت تایید شد",type:"success",priority:"medium",isRead:!0,date:"۱۴۰۲/۰۸/۱۴ - ۱۰:۲۰",sender:"سیستم پرداخت"},{id:5,title:"خطا در سیستم",message:"خطا در اتصال به درگاه پرداخت - نیاز به بررسی فوری",type:"error",priority:"high",isRead:!1,date:"۱۴۰۲/۰۸/۱۴ - ۰۹:۱۰",sender:"سیستم مانیتورینگ"},{id:6,title:"بکآپ تکمیل شد",message:"بکآپ روزانه اطلاعات با موفقیت انجام شد",type:"success",priority:"low",isRead:!0,date:"۱۴۰۲/۰۸/۱۳ - ۲۳:۰۰",sender:"سیستم بکآپ"},{id:7,title:"بروزرسانی سیستم",message:"نسخه جدید سیستم منتشر شد - بروزرسانی در دسترس است",type:"info",priority:"medium",isRead:!1,date:"۱۴۰۲/۰۸/۱۳ - ۱۱:۳۰",sender:"تیم توسعه"},{id:8,title:"گزارش فروش آماده شد",message:"گزارش فروش ماهانه تولید و آماده دانلود است",type:"info",priority:"low",isRead:!0,date:"۱۴۰۲/۰۸/۱۲ - ۰۸:۰۰",sender:"سیستم گزارشگیری"}],dae=()=>{const[e,t]=j.useState(fae),[r,n]=j.useState(""),[i,a]=j.useState("all"),[o,s]=j.useState(1),l=6,u=v=>{switch(v){case"error":return g.jsx(zb,{className:"h-5 w-5 text-red-600"});case"warning":return g.jsx(Np,{className:"h-5 w-5 text-yellow-600"});case"success":return g.jsx(VI,{className:"h-5 w-5 text-green-600"});case"info":return g.jsx(QI,{className:"h-5 w-5 text-blue-600"});default:return g.jsx(hl,{className:"h-5 w-5 text-gray-600"})}},f=v=>{switch(v){case"high":return"border-r-red-500";case"medium":return"border-r-yellow-500";case"low":return"border-r-green-500";default:return"border-r-gray-300"}},c=e.filter(v=>{const O=v.title.toLowerCase().includes(r.toLowerCase())||v.message.toLowerCase().includes(r.toLowerCase()),w=i==="all"||i==="unread"&&!v.isRead||i==="read"&&v.isRead||v.type===i;return O&&w}),d=Math.ceil(c.length/l),h=(o-1)*l,y=c.slice(h,h+l),p=v=>{t(O=>O.map(w=>w.id===v?{...w,isRead:!0}:w))},b=()=>{t(v=>v.map(O=>({...O,isRead:!0})))},x=v=>{t(O=>O.filter(w=>w.id!==v))},m=e.filter(v=>!v.isRead).length;return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"اعلانات"}),g.jsxs("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:[m," اعلان خوانده نشده از ",e.length," اعلان"]})]}),g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsxs(je,{variant:"secondary",onClick:b,disabled:m===0,children:[g.jsx(Fb,{className:"h-4 w-4 ml-2"}),"همه را خوانده شده علامت بزن"]}),g.jsxs(je,{children:[g.jsx(qg,{className:"h-4 w-4 ml-2"}),"اعلان جدید"]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(hl,{className:"h-8 w-8 text-blue-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"کل اعلانات"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:e.length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Np,{className:"h-8 w-8 text-red-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"خوانده نشده"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:m})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(zb,{className:"h-8 w-8 text-red-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"خطا"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:e.filter(v=>v.type==="error").length})]})]})}),g.jsx("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Np,{className:"h-8 w-8 text-yellow-600"}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"هشدار"}),g.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:e.filter(v=>v.type==="warning").length})]})]})})]}),g.jsxs("div",{className:"card p-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g.jsx(Jd,{className:"h-5 w-5 text-gray-400"})}),g.jsx("input",{type:"text",placeholder:"جستجو در اعلانات...",value:r,onChange:v=>n(v.target.value),className:"input pr-10"})]}),g.jsxs("select",{value:i,onChange:v=>a(v.target.value),className:"input min-w-[150px]",children:[g.jsx("option",{value:"all",children:"همه اعلانات"}),g.jsx("option",{value:"unread",children:"خوانده نشده"}),g.jsx("option",{value:"read",children:"خوانده شده"}),g.jsx("option",{value:"error",children:"خطا"}),g.jsx("option",{value:"warning",children:"هشدار"}),g.jsx("option",{value:"success",children:"موفق"}),g.jsx("option",{value:"info",children:"اطلاعات"})]})]}),g.jsx("div",{className:"space-y-4",children:y.map(v=>g.jsx("div",{className:`p-4 border-r-4 ${f(v.priority)} ${v.isRead?"bg-gray-50 dark:bg-gray-700":"bg-white dark:bg-gray-800"} border border-gray-200 dark:border-gray-600 rounded-lg shadow-sm hover:shadow-md transition-shadow`,children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex items-start space-x-3",children:[g.jsx("div",{className:"flex-shrink-0 mt-1",children:u(v.type)}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx("h3",{className:`text-sm font-medium ${v.isRead?"text-gray-600 dark:text-gray-400":"text-gray-900 dark:text-gray-100"}`,children:v.title}),!v.isRead&&g.jsx("div",{className:"w-2 h-2 bg-blue-600 rounded-full"})]}),g.jsx("p",{className:`mt-1 text-sm ${v.isRead?"text-gray-500 dark:text-gray-500":"text-gray-700 dark:text-gray-300"}`,children:v.message}),g.jsxs("div",{className:"mt-2 flex items-center text-xs text-gray-500 dark:text-gray-500 space-x-4",children:[g.jsx("span",{children:v.date}),g.jsxs("span",{children:["از: ",v.sender]})]})]})]}),g.jsxs("div",{className:"flex items-center space-x-2",children:[!v.isRead&&g.jsx(je,{size:"sm",variant:"secondary",onClick:()=>p(v.id),children:g.jsx(Fb,{className:"h-4 w-4"})}),g.jsx(je,{size:"sm",variant:"danger",onClick:()=>x(v.id),children:g.jsx(Xg,{className:"h-4 w-4"})})]})]})},v.id))}),y.length===0&&g.jsxs("div",{className:"text-center py-12",children:[g.jsx(hl,{className:"h-12 w-12 text-gray-400 mx-auto mb-4"}),g.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"هیچ اعلانی یافت نشد"})]}),g.jsx(ep,{currentPage:o,totalPages:d,onPageChange:s,itemsPerPage:l,totalItems:c.length})]})]})},hae=[{id:"dashboard",label:"داشبورد",icon:vk,path:"/"},{id:"users",label:"کاربران",icon:Gg,path:"/users",permission:10},{id:"products",label:"محصولات",icon:Kg,path:"/products",permission:15},{id:"orders",label:"سفارشات",icon:pm,path:"/orders",permission:20},{id:"reports",label:"گزارشها",icon:hm,path:"/reports",permission:25},{id:"notifications",label:"اعلانات",icon:hl,path:"/notifications",permission:30}],pae=({isOpen:e,onClose:t})=>{var s;const{user:r}=Nu(),[n,i]=j.useState([]),a=l=>{i(u=>u.includes(l)?u.filter(f=>f!==l):[...u,l])},o=l=>{var d;const u=l.children&&l.children.length>0,f=n.includes(l.id),c=g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:`flex items-center justify-between px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors ${u?"cursor-pointer":""}`,onClick:u?()=>a(l.id):void 0,children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(l.icon,{className:"h-5 w-5 ml-3"}),g.jsx("span",{className:"font-medium",children:l.label})]}),u&&g.jsx(yk,{className:`h-4 w-4 transition-transform ${f?"rotate-180":""}`})]}),u&&f&&g.jsx("div",{className:"mr-8 mt-1 space-y-1",children:(d=l.children)==null?void 0:d.map(h=>g.jsx("div",{children:h.permission?g.jsx(Ni,{permission:h.permission,children:g.jsx(Tp,{to:h.path,className:({isActive:y})=>`block px-4 py-2 text-sm text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors ${y?"bg-primary-100 dark:bg-primary-900 text-primary-700 dark:text-primary-300":""}`,onClick:t,children:h.label})}):g.jsx(Tp,{to:h.path,className:({isActive:y})=>`block px-4 py-2 text-sm text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors ${y?"bg-primary-100 dark:bg-primary-900 text-primary-700 dark:text-primary-300":""}`,onClick:t,children:h.label})},h.id))})]});return u?g.jsx("div",{children:c}):g.jsxs(Tp,{to:l.path,className:({isActive:h})=>`flex items-center px-4 py-3 rounded-lg transition-colors ${h?"text-primary-700 dark:text-primary-300 bg-primary-100 dark:bg-primary-900":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"}`,onClick:t,children:[g.jsx(l.icon,{className:"h-5 w-5 ml-3"}),g.jsx("span",{className:"font-medium",children:l.label})]})};return g.jsxs(g.Fragment,{children:[e&&g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40 lg:hidden",onClick:t}),g.jsxs("div",{className:`
|
||
fixed top-0 right-0 h-full w-64 bg-white dark:bg-gray-800 shadow-lg z-50 transform transition-transform duration-300 ease-in-out
|
||
${e?"translate-x-0":"translate-x-full"}
|
||
lg:relative lg:translate-x-0
|
||
`,children:[g.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"w-8 h-8 bg-primary-600 rounded-lg flex items-center justify-center",children:g.jsx(vk,{className:"h-5 w-5 text-white"})}),g.jsx("span",{className:"mr-3 text-xl font-bold text-gray-900 dark:text-gray-100",children:"پنل مدیریت"})]}),g.jsx("button",{onClick:t,className:"p-1 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 lg:hidden",children:g.jsx(Xg,{className:"h-5 w-5"})})]}),g.jsxs("div",{className:"p-4",children:[g.jsxs("div",{className:"flex items-center mb-6 p-3 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[g.jsx("div",{className:"w-10 h-10 bg-primary-600 rounded-full flex items-center justify-center",children:g.jsx("span",{className:"text-white font-medium",children:((s=r==null?void 0:r.name)==null?void 0:s.charAt(0))||"A"})}),g.jsxs("div",{className:"mr-3",children:[g.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:(r==null?void 0:r.name)||"کاربر"}),g.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:(r==null?void 0:r.role)||"مدیر"})]})]}),g.jsx("nav",{className:"space-y-2",children:hae.map(l=>g.jsx("div",{children:l.permission?g.jsx(Ni,{permission:l.permission,children:o(l)}):o(l)},l.id))})]})]})]})},yae=({onMenuClick:e})=>{var s;const{user:t,logout:r}=Nu(),{mode:n,toggleTheme:i}=qM(),[a,o]=j.useState(!1);return g.jsx("header",{className:"bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700",children:g.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("button",{onClick:e,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 lg:hidden",children:g.jsx(JI,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),g.jsx("h1",{className:"mr-4 text-lg font-semibold text-gray-900 dark:text-gray-100",children:"خوش آمدید"})]}),g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsx("button",{onClick:i,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:n==="dark"?g.jsx(nD,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"}):g.jsx(eD,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),g.jsxs("button",{className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors relative",children:[g.jsx(hl,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"}),g.jsx("span",{className:"absolute top-0 left-0 w-2 h-2 bg-red-500 rounded-full"})]}),g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>o(!a),className:"flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:[g.jsx("div",{className:"w-8 h-8 bg-primary-600 rounded-full flex items-center justify-center",children:g.jsx("span",{className:"text-white text-sm font-medium",children:((s=t==null?void 0:t.name)==null?void 0:s.charAt(0))||"A"})}),g.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 hidden md:block",children:(t==null?void 0:t.name)||"کاربر"})]}),a&&g.jsx("div",{className:"absolute left-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 z-50",children:g.jsxs("div",{className:"py-1",children:[g.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 dark:border-gray-700",children:[g.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:t==null?void 0:t.name}),g.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:t==null?void 0:t.email})]}),g.jsxs("button",{className:"w-full text-right px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center",children:[g.jsx(xk,{className:"h-4 w-4 ml-2"}),"پروفایل"]}),g.jsxs("button",{onClick:()=>{r(),o(!1)},className:"w-full text-right px-4 py-2 text-sm text-red-600 dark:text-red-400 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center",children:[g.jsx(ZI,{className:"h-4 w-4 ml-2"}),"خروج"]})]})})]})]})]})})},mae=()=>{const[e,t]=j.useState(!1);return g.jsxs("div",{className:"flex h-screen bg-gray-50 dark:bg-gray-900",children:[g.jsx(pae,{isOpen:e,onClose:()=>t(!1)}),g.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[g.jsx(yae,{onMenuClick:()=>t(!0)}),g.jsx("main",{className:"flex-1 overflow-y-auto bg-gray-50 dark:bg-gray-900",children:g.jsx(JN,{})})]})]})},vae=({children:e})=>{const{user:t}=Nu();return t?e:g.jsx(ek,{to:"/login",replace:!0})},gae=()=>g.jsxs(tM,{children:[g.jsx(Sn,{path:"/login",element:g.jsx(AR,{})}),g.jsxs(Sn,{path:"/",element:g.jsx(vae,{children:g.jsx(mae,{})}),children:[g.jsx(Sn,{index:!0,element:g.jsx(nae,{})}),g.jsx(Sn,{path:"users",element:g.jsx(sae,{})}),g.jsx(Sn,{path:"products",element:g.jsx(lae,{})}),g.jsx(Sn,{path:"orders",element:g.jsx(uae,{})}),g.jsx(Sn,{path:"reports",element:g.jsx(cae,{})}),g.jsx(Sn,{path:"notifications",element:g.jsx(dae,{})})]})]});function xae(){return g.jsx(oD,{children:g.jsxs(BM,{client:sD,children:[g.jsx(HM,{children:g.jsx(LI,{children:g.jsx(WM,{children:g.jsx(uM,{children:g.jsx(gae,{})})})})}),g.jsx(zM,{initialIsOpen:!1})]})})}hy.createRoot(document.getElementById("root")).render(g.jsx(k.StrictMode,{children:g.jsx(xae,{})}));
|