function d_(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const 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 ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W1={exports:{}},jc={},H1={exports:{}},ne={};/** * @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 Hl=Symbol.for("react.element"),h_=Symbol.for("react.portal"),p_=Symbol.for("react.fragment"),v_=Symbol.for("react.strict_mode"),m_=Symbol.for("react.profiler"),y_=Symbol.for("react.provider"),g_=Symbol.for("react.context"),x_=Symbol.for("react.forward_ref"),b_=Symbol.for("react.suspense"),w_=Symbol.for("react.memo"),j_=Symbol.for("react.lazy"),jy=Symbol.iterator;function S_(e){return e===null||typeof e!="object"?null:(e=jy&&e[jy]||e["@@iterator"],typeof e=="function"?e:null)}var V1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K1=Object.assign,G1={};function Ra(e,t,r){this.props=e,this.context=t,this.refs=G1,this.updater=r||V1}Ra.prototype.isReactComponent={};Ra.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")};Ra.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function q1(){}q1.prototype=Ra.prototype;function hv(e,t,r){this.props=e,this.context=t,this.refs=G1,this.updater=r||V1}var pv=hv.prototype=new q1;pv.constructor=hv;K1(pv,Ra.prototype);pv.isPureReactComponent=!0;var Sy=Array.isArray,X1=Object.prototype.hasOwnProperty,vv={current:null},Y1={key:!0,ref:!0,__self:!0,__source:!0};function Q1(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)X1.call(t,n)&&!Y1.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,H=N[V];if(0>>1;Vi(Oe,B))Mei(Rt,Oe)?(N[V]=Rt,N[Me]=B,V=Me):(N[V]=Oe,N[oe]=B,V=oe);else if(Mei(Rt,B))N[V]=Rt,N[Me]=B,V=Me;else break e}}return R}function i(N,R){var B=N.sortIndex-R.sortIndex;return B!==0?B:N.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],d=1,f=null,h=3,p=!1,x=!1,y=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var R=r(u);R!==null;){if(R.callback===null)n(u);else if(R.startTime<=N)n(u),R.sortIndex=R.expirationTime,t(s,R);else break;R=r(u)}}function S(N){if(y=!1,b(N),!x)if(r(s)!==null)x=!0,L(w);else{var R=r(u);R!==null&&z(S,R.startTime-N)}}function w(N,R){x=!1,y&&(y=!1,m(P),P=-1),p=!0;var B=h;try{for(b(R),f=r(s);f!==null&&(!(f.expirationTime>R)||N&&!k());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var H=V(f.expirationTime<=R);R=e.unstable_now(),typeof H=="function"?f.callback=H:f===r(s)&&n(s),b(R)}else n(s);f=r(s)}if(f!==null)var Y=!0;else{var oe=r(u);oe!==null&&z(S,oe.startTime-R),Y=!1}return Y}finally{f=null,h=B,p=!1}}var j=!1,O=null,P=-1,A=5,$=-1;function k(){return!(e.unstable_now()-$N||125V?(N.sortIndex=B,t(u,N),r(s)===null&&N===r(u)&&(y?(m(P),P=-1):y=!0,z(S,B-V))):(N.sortIndex=H,t(s,N),x||p||(x=!0,L(w))),N},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(N){var R=h;return function(){var B=h;h=R;try{return N.apply(this,arguments)}finally{h=B}}}})(rw);tw.exports=rw;var I_=tw.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 D_=E,Mt=I_;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fd=Object.prototype.hasOwnProperty,R_=/^[: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]*$/,Py={},_y={};function L_(e){return Fd.call(_y,e)?!0:Fd.call(Py,e)?!1:R_.test(e)?_y[e]=!0:(Py[e]=!0,!1)}function B_(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 z_(e,t,r,n){if(t===null||typeof t>"u"||B_(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 mt(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 nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new mt(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){nt[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var yv=/[\-:]([a-z])/g;function gv(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(yv,gv);nt[t]=new mt(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(yv,gv);nt[t]=new mt(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(yv,gv);nt[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xv(e,t,r,n){var i=nt.hasOwnProperty(t)?nt[t]:null;(i!==null?i.type!==0:n||!(2l||i[o]!==a[l]){var s=` `+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{zf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Oo(e):""}function F_(e){switch(e.tag){case 5:return Oo(e.type);case 16:return Oo("Lazy");case 13:return Oo("Suspense");case 19:return Oo("SuspenseList");case 0:case 2:case 15:return e=Ff(e.type,!1),e;case 11:return e=Ff(e.type.render,!1),e;case 1:return e=Ff(e.type,!0),e;default:return""}}function Vd(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 $i:return"Fragment";case Ei:return"Portal";case Ud:return"Profiler";case bv:return"StrictMode";case Wd:return"Suspense";case Hd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aw:return(e.displayName||"Context")+".Consumer";case iw:return(e._context.displayName||"Context")+".Provider";case wv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jv:return t=e.displayName||null,t!==null?t:Vd(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return Vd(e(t))}catch{}}return null}function U_(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 Vd(t);case 8:return t===bv?"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 On(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W_(e){var t=lw(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 os(e){e._valueTracker||(e._valueTracker=W_(e))}function sw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=lw(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function qs(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 Kd(e,t){var r=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ey(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=On(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 uw(e,t){t=t.checked,t!=null&&xv(e,"checked",t,!1)}function Gd(e,t){uw(e,t);var r=On(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")?qd(e,t.type,r):t.hasOwnProperty("defaultValue")&&qd(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $y(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 qd(e,t,r){(t!=="number"||qs(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Po=Array.isArray;function Vi(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ls.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var $o={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},H_=["Webkit","ms","Moz","O"];Object.keys($o).forEach(function(e){H_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$o[t]=$o[e]})});function hw(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||$o.hasOwnProperty(e)&&$o[e]?(""+t).trim():t+"px"}function pw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=hw(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var V_=Te({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 Qd(e,t){if(t){if(V_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Zd(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 Jd=null;function Sv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eh=null,Ki=null,Gi=null;function Ny(e){if(e=Gl(e)){if(typeof eh!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Ac(t),eh(e.stateNode,e.type,t))}}function vw(e){Ki?Gi?Gi.push(e):Gi=[e]:Ki=e}function mw(){if(Ki){var e=Ki,t=Gi;if(Gi=Ki=null,Ny(e),t)for(e=0;e>>=0,e===0?32:31-(rA(e)/nA|0)|0}var ss=64,us=4194304;function _o(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 Zs(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 l=o&~i;l!==0?n=_o(l):(a&=o,a!==0&&(n=_o(a)))}else o=r&~i,o!==0?n=_o(o):a!==0&&(n=_o(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;0r;r++)t.push(e);return t}function Vl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lr(t),e[t]=r}function lA(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=ko),Fy=" ",Uy=!1;function Dw(e,t){switch(e){case"keyup":return IA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function RA(e,t){switch(e){case"compositionend":return Rw(t);case"keypress":return t.which!==32?null:(Uy=!0,Fy);case"textInput":return e=t.data,e===Fy&&Uy?null:e;default:return null}}function LA(e,t){if(Ti)return e==="compositionend"||!kv&&Dw(e,t)?(e=Mw(),Ls=Ev=un=null,Ti=!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)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=Ky(r)}}function Fw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uw(){for(var e=window,t=qs();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=qs(e.document)}return t}function Nv(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 GA(e){var t=Uw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Fw(r.ownerDocument.documentElement,r)){if(n!==null&&Nv(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=Gy(r,a);var o=Gy(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=document.documentMode,ki=null,oh=null,Co=null,lh=!1;function qy(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;lh||ki==null||ki!==qs(n)||(n=ki,"selectionStart"in n&&Nv(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}),Co&&Qo(Co,n)||(Co=n,n=tu(oh,"onSelect"),0Mi||(e.current=hh[Mi],hh[Mi]=null,Mi--)}function ge(e,t){Mi++,hh[Mi]=e.current,e.current=t}var Pn={},ut=An(Pn),St=An(!1),ai=Pn;function na(e,t){var r=e.type.contextTypes;if(!r)return Pn;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 Ot(e){return e=e.childContextTypes,e!=null}function nu(){Se(St),Se(ut)}function tg(e,t,r){if(ut.current!==Pn)throw Error(W(168));ge(ut,t),ge(St,r)}function Qw(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(W(108,U_(e)||"Unknown",i));return Te({},r,n)}function iu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pn,ai=ut.current,ge(ut,e),ge(St,St.current),!0}function rg(e,t,r){var n=e.stateNode;if(!n)throw Error(W(169));r?(e=Qw(e,t,ai),n.__reactInternalMemoizedMergedChildContext=e,Se(St),Se(ut),ge(ut,e)):Se(St),ge(St,r)}var Er=null,Ec=!1,td=!1;function Zw(e){Er===null?Er=[e]:Er.push(e)}function aE(e){Ec=!0,Zw(e)}function En(){if(!td&&Er!==null){td=!0;var e=0,t=fe;try{var r=Er;for(fe=1;e>=o,i-=o,$r=1<<32-lr(t)+i|r<P?(A=O,O=null):A=O.sibling;var $=h(m,O,b[P],S);if($===null){O===null&&(O=A);break}e&&O&&$.alternate===null&&t(m,O),v=a($,v,P),j===null?w=$:j.sibling=$,j=$,O=A}if(P===b.length)return r(m,O),Pe&&Bn(m,P),w;if(O===null){for(;PP?(A=O,O=null):A=O.sibling;var k=h(m,O,$.value,S);if(k===null){O===null&&(O=A);break}e&&O&&k.alternate===null&&t(m,O),v=a(k,v,P),j===null?w=k:j.sibling=k,j=k,O=A}if($.done)return r(m,O),Pe&&Bn(m,P),w;if(O===null){for(;!$.done;P++,$=b.next())$=f(m,$.value,S),$!==null&&(v=a($,v,P),j===null?w=$:j.sibling=$,j=$);return Pe&&Bn(m,P),w}for(O=n(m,O);!$.done;P++,$=b.next())$=p(O,m,P,$.value,S),$!==null&&(e&&$.alternate!==null&&O.delete($.key===null?P:$.key),v=a($,v,P),j===null?w=$:j.sibling=$,j=$);return e&&O.forEach(function(T){return t(m,T)}),Pe&&Bn(m,P),w}function g(m,v,b,S){if(typeof b=="object"&&b!==null&&b.type===$i&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case as:e:{for(var w=b.key,j=v;j!==null;){if(j.key===w){if(w=b.type,w===$i){if(j.tag===7){r(m,j.sibling),v=i(j,b.props.children),v.return=m,m=v;break e}}else if(j.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===rn&&ag(w)===j.type){r(m,j.sibling),v=i(j,b.props),v.ref=uo(m,j,b),v.return=m,m=v;break e}r(m,j);break}else t(m,j);j=j.sibling}b.type===$i?(v=ei(b.props.children,m.mode,S,b.key),v.return=m,m=v):(S=Ks(b.type,b.key,b.props,null,m.mode,S),S.ref=uo(m,v,b),S.return=m,m=S)}return o(m);case Ei:e:{for(j=b.key;v!==null;){if(v.key===j)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){r(m,v.sibling),v=i(v,b.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=ud(b,m.mode,S),v.return=m,m=v}return o(m);case rn:return j=b._init,g(m,v,j(b._payload),S)}if(Po(b))return x(m,v,b,S);if(io(b))return y(m,v,b,S);ms(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,b),v.return=m,m=v):(r(m,v),v=sd(b,m.mode,S),v.return=m,m=v),o(m)):r(m,v)}return g}var aa=rj(!0),nj=rj(!1),lu=An(null),su=null,Ri=null,Dv=null;function Rv(){Dv=Ri=su=null}function Lv(e){var t=lu.current;Se(lu),e._currentValue=t}function mh(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 Xi(e,t){su=e,Dv=Ri=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(Dv!==e)if(e={context:e,memoizedValue:t,next:null},Ri===null){if(su===null)throw Error(W(308));Ri=e,su.dependencies={lanes:0,firstContext:e}}else Ri=Ri.next=e;return t}var Kn=null;function Bv(e){Kn===null?Kn=[e]:Kn.push(e)}function ij(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Bv(t)):(r.next=i.next,i.next=r),t.interleaved=r,zr(e,n)}function zr(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 nn=!1;function zv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aj(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 Mr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,se&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,zr(e,r)}return i=n.interleaved,i===null?(t.next=t,Bv(n)):(t.next=i.next,i.next=t),n.interleaved=t,zr(e,r)}function zs(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,Pv(e,r)}}function og(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 uu(e,t,r,n){var i=e.updateQueue;nn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(a!==null){var f=i.baseState;o=0,d=u=s=null,l=a;do{var h=l.lane,p=l.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,y=l;switch(h=t,p=r,y.tag){case 1:if(x=y.payload,typeof x=="function"){f=x.call(p,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,h=typeof x=="function"?x.call(p,f,h):x,h==null)break e;f=Te({},f,h);break e;case 2:nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,s=f):d=d.next=p,o|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;h=l,l=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=d,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);si|=o,e.lanes=o,e.memoizedState=f}}function lg(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=nd.transition;nd.transition={};try{e(!1),t()}finally{fe=r,nd.transition=n}}function jj(){return Xt().memoizedState}function uE(e,t,r){var n=bn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Sj(e))Oj(t,r);else if(r=ij(e,t,r,n),r!==null){var i=pt();sr(r,e,n,i),Pj(r,t,n)}}function cE(e,t,r){var n=bn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Sj(e))Oj(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,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,cr(l,o)){var s=t.interleaved;s===null?(i.next=i,Bv(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}r=ij(e,t,i,n),r!==null&&(i=pt(),sr(r,e,n,i),Pj(r,t,n))}}function Sj(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Oj(e,t){Mo=fu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Pj(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Pv(e,r)}}var du={readContext:qt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},fE={readContext:qt,useCallback:function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:ug,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Us(4194308,4,yj.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){return Us(4,2,e,t)},useMemo:function(e,t){var r=hr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=hr();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=uE.bind(null,Ee,e),[n.memoizedState,e]},useRef:function(e){var t=hr();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:qv,useDeferredValue:function(e){return hr().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=sE.bind(null,e[1]),hr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ee,i=hr();if(Pe){if(r===void 0)throw Error(W(407));r=r()}else{if(r=t(),Qe===null)throw Error(W(349));li&30||uj(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,ug(fj.bind(null,n,a,e),[e]),n.flags|=2048,al(9,cj.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=hr(),t=Qe.identifierPrefix;if(Pe){var r=Tr,n=$r;r=(n&~(1<<32-lr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=nl++,0<\/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[pr]=t,e[el]=n,Ij(e,t,!1,!1),t.stateNode=e;e:{switch(o=Zd(r,n),r){case"dialog":be("cancel",e),be("close",e),i=n;break;case"iframe":case"object":case"embed":be("load",e),i=n;break;case"video":case"audio":for(i=0;isa&&(t.flags|=128,n=!0,co(a,!1),t.lanes=4194304)}else{if(!n)if(e=cu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),co(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return at(t),null}else 2*Ie()-a.renderingStartTime>sa&&r!==1073741824&&(t.flags|=128,n=!0,co(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=Ie(),t.sibling=null,r=Ae.current,ge(Ae,n?r&1|2:r&1),t):(at(t),null);case 22:case 23:return em(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Et&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function xE(e,t){switch(Mv(t),t.tag){case 1:return Ot(t.type)&&nu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(),Se(St),Se(ut),Wv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uv(t),null;case 13:if(Se(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ae),null;case 4:return oa(),null;case 10:return Lv(t.type._context),null;case 22:case 23:return em(),null;case 24:return null;default:return null}}var gs=!1,lt=!1,bE=typeof WeakSet=="function"?WeakSet:Set,G=null;function Li(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ne(e,t,n)}else r.current=null}function Ph(e,t,r){try{r()}catch(n){Ne(e,t,n)}}var bg=!1;function wE(e,t){if(sh=Js,e=Uw(),Nv(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,l=-1,s=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==r||i!==0&&f.nodeType!==3||(l=o+i),f!==a||n!==0&&f.nodeType!==3||(s=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===r&&++u===i&&(l=o),h===a&&++d===n&&(s=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(uh={focusedElem:e,selectionRange:r},Js=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,g=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:tr(t.type,y),g);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(S){Ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=bg,bg=!1,x}function Io(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&&Ph(t,r,a)}i=i.next}while(i!==n)}}function kc(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 _h(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 Lj(e){var t=e.alternate;t!==null&&(e.alternate=null,Lj(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pr],delete t[el],delete t[dh],delete t[nE],delete t[iE])),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 Bj(e){return e.tag===5||e.tag===3||e.tag===4}function wg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bj(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 Ah(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=ru));else if(n!==4&&(e=e.child,e!==null))for(Ah(e,t,r),e=e.sibling;e!==null;)Ah(e,t,r),e=e.sibling}function Eh(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(Eh(e,t,r),e=e.sibling;e!==null;)Eh(e,t,r),e=e.sibling}var tt=null,rr=!1;function en(e,t,r){for(r=r.child;r!==null;)zj(e,t,r),r=r.sibling}function zj(e,t,r){if(yr&&typeof yr.onCommitFiberUnmount=="function")try{yr.onCommitFiberUnmount(Sc,r)}catch{}switch(r.tag){case 5:lt||Li(r,t);case 6:var n=tt,i=rr;tt=null,en(e,t,r),tt=n,rr=i,tt!==null&&(rr?(e=tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tt.removeChild(r.stateNode));break;case 18:tt!==null&&(rr?(e=tt,r=r.stateNode,e.nodeType===8?ed(e.parentNode,r):e.nodeType===1&&ed(e,r),Xo(e)):ed(tt,r.stateNode));break;case 4:n=tt,i=rr,tt=r.stateNode.containerInfo,rr=!0,en(e,t,r),tt=n,rr=i;break;case 0:case 11:case 14:case 15:if(!lt&&(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)&&Ph(r,t,o),i=i.next}while(i!==n)}en(e,t,r);break;case 1:if(!lt&&(Li(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Ne(r,t,l)}en(e,t,r);break;case 21:en(e,t,r);break;case 22:r.mode&1?(lt=(n=lt)||r.memoizedState!==null,en(e,t,r),lt=n):en(e,t,r);break;default:en(e,t,r)}}function jg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new bE),t.forEach(function(n){var i=TE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Jt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Ie()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*SE(n/1960))-n,10e?16:e,cn===null)var n=!1;else{if(e=cn,cn=null,vu=0,se&6)throw Error(W(331));var i=se;for(se|=4,G=e.current;G!==null;){var a=G,o=a.child;if(G.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sIe()-Zv?Jn(e,0):Qv|=r),Pt(e,t)}function qj(e,t){t===0&&(e.mode&1?(t=us,us<<=1,!(us&130023424)&&(us=4194304)):t=1);var r=pt();e=zr(e,t),e!==null&&(Vl(e,t,r),Pt(e,r))}function $E(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),qj(e,r)}function TE(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(W(314))}n!==null&&n.delete(t),qj(e,r)}var Xj;Xj=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)wt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return wt=!1,yE(e,t,r);wt=!!(e.flags&131072)}else wt=!1,Pe&&t.flags&1048576&&Jw(t,ou,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ws(e,t),e=t.pendingProps;var i=na(t,ut.current);Xi(t,r),i=Vv(null,t,n,e,i,r);var a=Kv();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,Ot(n)?(a=!0,iu(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zv(t),i.updater=Tc,t.stateNode=i,i._reactInternals=t,gh(t,n,e,r),t=wh(null,t,n,!0,a,r)):(t.tag=0,Pe&&a&&Cv(t),ct(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=NE(n),e=tr(n,e),i){case 0:t=bh(null,t,n,e,r);break e;case 1:t=yg(null,t,n,e,r);break e;case 11:t=vg(null,t,n,e,r);break e;case 14:t=mg(null,t,n,tr(n.type,e),r);break e}throw Error(W(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:tr(n,i),bh(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:tr(n,i),yg(e,t,n,i,r);case 3:e:{if(Nj(t),e===null)throw Error(W(387));n=t.pendingProps,a=t.memoizedState,i=a.element,aj(e,t),uu(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=la(Error(W(423)),t),t=gg(e,t,n,r,i);break e}else if(n!==i){i=la(Error(W(424)),t),t=gg(e,t,n,r,i);break e}else for(kt=yn(t.stateNode.containerInfo.firstChild),Nt=t,Pe=!0,ar=null,r=nj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ia(),n===i){t=Fr(e,t,r);break e}ct(e,t,n,r)}t=t.child}return t;case 5:return oj(t),e===null&&vh(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,ch(n,i)?o=null:a!==null&&ch(n,a)&&(t.flags|=32),kj(e,t),ct(e,t,o,r),t.child;case 6:return e===null&&vh(t),null;case 13:return Cj(e,t,r);case 4:return Fv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=aa(t,null,n,r):ct(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:tr(n,i),vg(e,t,n,i,r);case 7:return ct(e,t,t.pendingProps,r),t.child;case 8:return ct(e,t,t.pendingProps.children,r),t.child;case 12:return ct(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ge(lu,n._currentValue),n._currentValue=o,a!==null)if(cr(a.value,o)){if(a.children===i.children&&!St.current){t=Fr(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(a.tag===1){s=Mr(-1,r&-r),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),mh(a.return,r,t),l.lanes|=r;break}s=s.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(W(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),mh(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}ct(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Xi(t,r),i=qt(i),n=n(i),t.flags|=1,ct(e,t,n,r),t.child;case 14:return n=t.type,i=tr(n,t.pendingProps),i=tr(n.type,i),mg(e,t,n,i,r);case 15:return $j(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:tr(n,i),Ws(e,t),t.tag=1,Ot(n)?(e=!0,iu(t)):e=!1,Xi(t,r),_j(t,n,i),gh(t,n,i,r),wh(null,t,n,!0,e,r);case 19:return Mj(e,t,r);case 22:return Tj(e,t,r)}throw Error(W(156,t.tag))};function Yj(e,t){return Sw(e,t)}function kE(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 Ht(e,t,r,n){return new kE(e,t,r,n)}function rm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NE(e){if(typeof e=="function")return rm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wv)return 11;if(e===jv)return 14}return 2}function wn(e,t){var r=e.alternate;return r===null?(r=Ht(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 Ks(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")rm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $i:return ei(r.children,i,a,t);case bv:o=8,i|=8;break;case Ud:return e=Ht(12,r,t,i|2),e.elementType=Ud,e.lanes=a,e;case Wd:return e=Ht(13,r,t,i),e.elementType=Wd,e.lanes=a,e;case Hd:return e=Ht(19,r,t,i),e.elementType=Hd,e.lanes=a,e;case ow:return Cc(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iw:o=10;break e;case aw:o=9;break e;case wv:o=11;break e;case jv:o=14;break e;case rn:o=16,n=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Ht(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ei(e,t,r,n){return e=Ht(7,e,n,t),e.lanes=r,e}function Cc(e,t,r,n){return e=Ht(22,e,n,t),e.elementType=ow,e.lanes=r,e.stateNode={isHidden:!1},e}function sd(e,t,r){return e=Ht(6,e,null,t),e.lanes=r,e}function ud(e,t,r){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function CE(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=Wf(0),this.expirationTimes=Wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wf(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nm(e,t,r,n,i,a,o,l,s){return e=new CE(e,t,r,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ht(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},zv(a),e}function ME(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eS)}catch(e){console.error(e)}}eS(),ew.exports=It;var BE=ew.exports,Tg=BE;zd.createRoot=Tg.createRoot,zd.hydrateRoot=Tg.hydrateRoot;/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function lm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FE(){return Math.random().toString(36).substr(2,8)}function Ng(e,t){return{usr:e.state,key:e.key,idx:t}}function Ch(e,t,r,n){return r===void 0&&(r=null),ll({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?za(t):t,{state:r,key:t&&t.key||n||FE()})}function gu(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 za(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 UE(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,l=fn.Pop,s=null,u=d();u==null&&(u=0,o.replaceState(ll({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){l=fn.Pop;let g=d(),m=g==null?null:g-u;u=g,s&&s({action:l,location:y.location,delta:m})}function h(g,m){l=fn.Push;let v=Ch(y.location,g,m);u=d()+1;let b=Ng(v,u),S=y.createHref(v);try{o.pushState(b,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}a&&s&&s({action:l,location:y.location,delta:1})}function p(g,m){l=fn.Replace;let v=Ch(y.location,g,m);u=d();let b=Ng(v,u),S=y.createHref(v);o.replaceState(b,"",S),a&&s&&s({action:l,location:y.location,delta:0})}function x(g){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof g=="string"?g:gu(g);return v=v.replace(/ $/,"%20"),$e(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let y={get action(){return l},get location(){return e(i,o)},listen(g){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(kg,f),s=g,()=>{i.removeEventListener(kg,f),s=null}},createHref(g){return t(i,g)},createURL:x,encodeLocation(g){let m=x(g);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(g){return o.go(g)}};return y}var Cg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cg||(Cg={}));function WE(e,t,r){return r===void 0&&(r="/"),HE(e,t,r)}function HE(e,t,r,n){let i=typeof t=="string"?za(t):t,a=ua(i.pathname||"/",r);if(a==null)return null;let o=tS(e);VE(o);let l=null,s=r$(a);for(let u=0;l==null&&u{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};s.relativePath.startsWith("/")&&($e(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let u=jn([n,s.relativePath]),d=r.concat(s);a.children&&a.children.length>0&&($e(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),tS(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:ZE(u,a.index),routesMeta:d})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let s of rS(a.path))i(a,o,s)}),t}function rS(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=rS(n.join("/")),l=[];return l.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function VE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:JE(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const KE=/^:[\w-]+$/,GE=3,qE=2,XE=1,YE=10,QE=-2,Mg=e=>e==="*";function ZE(e,t){let r=e.split("/"),n=r.length;return r.some(Mg)&&(n+=QE),t&&(n+=qE),r.filter(i=>!Mg(i)).reduce((i,a)=>i+(KE.test(a)?GE:a===""?XE:YE),n)}function JE(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 e$(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let l=0;l{let{paramName:h,isOptional:p}=d;if(h==="*"){let y=l[f]||"";o=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const x=l[f];return p&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function t$(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),lm(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,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function r$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lm(!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 ua(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const n$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i$=e=>n$.test(e);function a$(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?za(e):e,a;if(r)if(i$(r))a=r;else{if(r.includes("//")){let o=r;r=nS(r),lm(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=Ig(r.substring(1),"/"):a=Ig(r,t)}else a=t;return{pathname:a,search:s$(n),hash:u$(i)}}function Ig(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 cd(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function o$(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function sm(e,t){let r=o$(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function um(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=za(e):(i=ll({},e),$e(!i.pathname||!i.pathname.includes("?"),cd("?","pathname","search",i)),$e(!i.pathname||!i.pathname.includes("#"),cd("#","pathname","hash",i)),$e(!i.search||!i.search.includes("#"),cd("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}l=f>=0?t[f]:"/"}let s=a$(i,l),u=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}const nS=e=>e.replace(/\/\/+/g,"/"),jn=e=>nS(e.join("/")),l$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),s$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,u$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function c$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const iS=["post","put","patch","delete"];new Set(iS);const f$=["get",...iS];new Set(f$);/** * React Router v6.30.4 * * 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 sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),E.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let f=um(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:jn([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,o,a,e])}const p$=E.createContext(null);function v$(e){let t=E.useContext(qr).outlet;return t&&E.createElement(p$.Provider,{value:e},t)}function zc(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=E.useContext(Gr),{matches:i}=E.useContext(qr),{pathname:a}=Ua(),o=JSON.stringify(sm(i,n.v7_relativeSplatPath));return E.useMemo(()=>um(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function m$(e,t){return y$(e,t)}function y$(e,t,r,n){Fa()||$e(!1);let{navigator:i}=E.useContext(Gr),{matches:a}=E.useContext(qr),o=a[a.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Ua(),d;if(t){var f;let g=typeof t=="string"?za(t):t;s==="/"||(f=g.pathname)!=null&&f.startsWith(s)||$e(!1),d=g}else d=u;let h=d.pathname||"/",p=h;if(s!=="/"){let g=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(g.length).join("/")}let x=WE(e,{pathname:p}),y=j$(x&&x.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:jn([s,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:jn([s,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,r,n);return t&&y?E.createElement(Bc.Provider,{value:{location:sl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:fn.Pop}},y):y}function g$(){let e=_$(),t=c$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),r?E.createElement("pre",{style:i},r):null,null)}const x$=E.createElement(g$,null);class b$ extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?E.createElement(qr.Provider,{value:this.props.routeContext},E.createElement(oS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function w$(e){let{routeContext:t,match:r,children:n}=e,i=E.useContext(Lc);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(qr.Provider,{value:t},n)}function j$(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,l=(i=r)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||$e(!1),o=o.slice(0,Math.min(o.length,d+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,x=!1,y=null,g=null;r&&(p=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||x$,s&&(u<0&&h===0?(E$("route-fallback"),x=!0,g=null):u===h&&(x=!0,g=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),v=()=>{let b;return p?b=y:x?b=g:f.route.Component?b=E.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,E.createElement(w$,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?E.createElement(b$,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var uS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(uS||{}),cS=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}(cS||{});function S$(e){let t=E.useContext(Lc);return t||$e(!1),t}function O$(e){let t=E.useContext(aS);return t||$e(!1),t}function P$(e){let t=E.useContext(qr);return t||$e(!1),t}function fS(e){let t=P$(),r=t.matches[t.matches.length-1];return r.route.id||$e(!1),r.route.id}function _$(){var e;let t=E.useContext(oS),r=O$(),n=fS();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function A$(){let{router:e}=S$(uS.UseNavigateStable),t=fS(cS.UseNavigateStable),r=E.useRef(!1);return lS(()=>{r.current=!0}),E.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,sl({fromRouteId:t},a)))},[e,t])}const Dg={};function E$(e,t,r){Dg[e]||(Dg[e]=!0)}function $$(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function T$(e){let{to:t,replace:r,state:n,relative:i}=e;Fa()||$e(!1);let{future:a,static:o}=E.useContext(Gr),{matches:l}=E.useContext(qr),{pathname:s}=Ua(),u=sS(),d=um(t,sm(l,a.v7_relativeSplatPath),s,i==="path"),f=JSON.stringify(d);return E.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:i}),[u,f,i,r,n]),null}function k$(e){return v$(e.context)}function Je(e){$e(!1)}function N$(e){let{basename:t="/",children:r=null,location:n,navigationType:i=fn.Pop,navigator:a,static:o=!1,future:l}=e;Fa()&&$e(!1);let s=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:s,navigator:a,static:o,future:sl({v7_relativeSplatPath:!1},l)}),[s,l,a,o]);typeof n=="string"&&(n=za(n));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:x="default"}=n,y=E.useMemo(()=>{let g=ua(d,s);return g==null?null:{location:{pathname:g,search:f,hash:h,state:p,key:x},navigationType:i}},[s,d,f,h,p,x,i]);return y==null?null:E.createElement(Gr.Provider,{value:u},E.createElement(Bc.Provider,{children:r,value:y}))}function C$(e){let{children:t,location:r}=e;return m$(Ih(t),r)}new Promise(()=>{});function Ih(e,t){t===void 0&&(t=[]);let r=[];return E.Children.forEach(e,(n,i)=>{if(!E.isValidElement(n))return;let a=[...t,i];if(n.type===E.Fragment){r.push.apply(r,Ih(n.props.children,a));return}n.type!==Je&&$e(!1),!n.props.index||!n.props.children||$e(!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=Ih(n.props.children,a)),r.push(o)}),r}/** * React Router DOM v6.30.4 * * 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 xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u&&Rg?Rg(()=>s(f)):s(f)},[s,u]);return E.useLayoutEffect(()=>o.listen(d),[o,d]),E.useEffect(()=>$$(n),[n]),E.createElement(N$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const U$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",W$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ur=E.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:l,target:s,to:u,preventScrollReset:d,viewTransition:f}=t,h=dS(t,D$),{basename:p}=E.useContext(Gr),x,y=!1;if(typeof u=="string"&&W$.test(u)&&(x=u,U$))try{let b=new URL(window.location.href),S=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=ua(S.pathname,p);S.origin===b.origin&&w!=null?u=w+S.search+S.hash:y=!0}catch{}let g=d$(u,{relative:i}),m=K$(u,{replace:o,state:l,target:s,preventScrollReset:d,relative:i,viewTransition:f});function v(b){n&&n(b),b.defaultPrevented||m(b)}return E.createElement("a",xu({},h,{href:x||g,onClick:y||a?n:v,ref:r,target:s}))}),H$=E.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:l,to:s,viewTransition:u,children:d}=t,f=dS(t,R$),h=zc(s,{relative:f.relative}),p=Ua(),x=E.useContext(aS),{navigator:y,basename:g}=E.useContext(Gr),m=x!=null&&G$(h)&&u===!0,v=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,b=p.pathname,S=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(b=b.toLowerCase(),S=S?S.toLowerCase():null,v=v.toLowerCase()),S&&g&&(S=ua(S,g)||S);const w=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let j=b===v||!o&&b.startsWith(v)&&b.charAt(w)==="/",O=S!=null&&(S===v||!o&&S.startsWith(v)&&S.charAt(v.length)==="/"),P={isActive:j,isPending:O,isTransitioning:m},A=j?n:void 0,$;typeof a=="function"?$=a(P):$=[a,j?"active":null,O?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let k=typeof l=="function"?l(P):l;return E.createElement(Ur,xu({},f,{"aria-current":A,className:$,ref:r,style:k,to:s,viewTransition:u}),typeof d=="function"?d(P):d)});var Dh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Dh||(Dh={}));var Lg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Lg||(Lg={}));function V$(e){let t=E.useContext(Lc);return t||$e(!1),t}function K$(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:l}=t===void 0?{}:t,s=sS(),u=Ua(),d=zc(e,{relative:o});return E.useCallback(f=>{if(I$(f,r)){f.preventDefault();let h=n!==void 0?n:gu(u)===gu(d);s(e,{replace:h,state:i,preventScrollReset:a,relative:o,viewTransition:l})}},[u,s,d,n,i,r,e,a,o,l])}function G$(e,t){t===void 0&&(t={});let r=E.useContext(B$);r==null&&$e(!1);let{basename:n}=V$(Dh.useViewTransitionState),i=zc(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=ua(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=ua(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Mh(i.pathname,o)!=null||Mh(i.pathname,a)!=null}/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hS=(...e)=>e.filter((t,r,n)=>!!t&&n.indexOf(t)===r).join(" ");/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var X$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y$=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...l},s)=>E.createElement("svg",{ref:s,...X$,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:hS("lucide",i),...l},[...o.map(([u,d])=>E.createElement(u,d)),...Array.isArray(a)?a:[a]]));/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ie=(e,t)=>{const r=E.forwardRef(({className:n,...i},a)=>E.createElement(Y$,{ref:a,iconNode:t,className:hS(`lucide-${q$(e)}`,n),...i}));return r.displayName=`${e}`,r};/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q$=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pS=ie("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z$=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J$=ie("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cm=ie("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vS=ie("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rh=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mS=ie("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eT=ie("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lh=ie("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rT=ie("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ca=ie("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yS=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gS=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xS=ie("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aT=ie("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bS=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wa=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lT=ie("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fm=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dm=ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bh=ie("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ti=ie("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wS=ie("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qi=ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cT=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jS=ie("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fT=ie("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hm=ie("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"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dT=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function SS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var fN=cN,dN=Uc;function hN(e,t){var r=this.__data__,n=dN(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var pN=hN,vN=Qk,mN=aN,yN=sN,gN=fN,xN=pN;function Ga(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},qn=function(t){return ci(t)&&t.indexOf("%")===t.length-1},U=function(t){return BC(t)&&!Xa(t)},WC=function(t){return J(t)},Ke=function(t){return U(t)||ci(t)},HC=0,Ya=function(t){var r=++HC;return"".concat(t||"").concat(r)},dt=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(!U(t)&&!ci(t))return n;var a;if(qn(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Xa(a)&&(a=n),i&&a>r&&(a=r),a},sn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},VC=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZC(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 Fh(e){"@babel/helpers - typeof";return Fh=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},Fh(e)}var Yg={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"},Ir=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Qg=null,hd=null,Pm=function e(t){if(t===Qg&&Array.isArray(hd))return hd;var r=[];return E.Children.forEach(t,function(n){J(n)||(MC.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),hd=r,Qg=t,r};function Gt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ir(i)}):n=[Ir(t)],Pm(e).forEach(function(i){var a=Ct(i,"type.displayName")||Ct(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function $t(e,t){var r=Gt(e,t);return r&&r[0]}var Zg=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!U(n)||n<=0||!U(i)||i<=0)},JC=["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"],eM=function(t){return t&&t.type&&ci(t.type)&&JC.indexOf(t.type)>=0},tM=function(t){return t&&Fh(t)==="object"&&"clipDot"in t},rM=function(t,r,n,i){var a,o=(a=dd==null?void 0:dd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||qC.includes(r))||n&&Om.includes(r)},X=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(E.isValidElement(t)&&(i=t.props),!Va(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;rM((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},Uh=function e(t,r){if(t===r)return!0;var n=E.Children.count(t);if(n!==E.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Jg(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lM(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 Hh(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,s=e.desc,u=oM(e,aM),d=i||{width:r,height:n,x:0,y:0},f=te("recharts-surface",a);return _.createElement("svg",Wh({},X(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),_.createElement("title",null,l),_.createElement("desc",null,s),t)}var sM=["children","className"];function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cM(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 ae=_.forwardRef(function(e,t){var r=e.children,n=e.className,i=uM(e,sM),a=te("recharts-layer",n);return _.createElement("g",Vh({className:a},X(i,!0),{ref:t}),r)}),ur=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?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=n?e:hM(e,t,r)}var vM=pM,mM="\\ud800-\\udfff",yM="\\u0300-\\u036f",gM="\\ufe20-\\ufe2f",xM="\\u20d0-\\u20ff",bM=yM+gM+xM,wM="\\ufe0e\\ufe0f",jM="\\u200d",SM=RegExp("["+jM+mM+bM+wM+"]");function OM(e){return SM.test(e)}var DS=OM;function PM(e){return e.split("")}var _M=PM,RS="\\ud800-\\udfff",AM="\\u0300-\\u036f",EM="\\ufe20-\\ufe2f",$M="\\u20d0-\\u20ff",TM=AM+EM+$M,kM="\\ufe0e\\ufe0f",NM="["+RS+"]",Kh="["+TM+"]",Gh="\\ud83c[\\udffb-\\udfff]",CM="(?:"+Kh+"|"+Gh+")",LS="[^"+RS+"]",BS="(?:\\ud83c[\\udde6-\\uddff]){2}",zS="[\\ud800-\\udbff][\\udc00-\\udfff]",MM="\\u200d",FS=CM+"?",US="["+kM+"]?",IM="(?:"+MM+"(?:"+[LS,BS,zS].join("|")+")"+US+FS+")*",DM=US+FS+IM,RM="(?:"+[LS+Kh+"?",Kh,BS,zS,NM].join("|")+")",LM=RegExp(Gh+"(?="+Gh+")|"+RM+DM,"g");function BM(e){return e.match(LM)||[]}var zM=BM,FM=_M,UM=DS,WM=zM;function HM(e){return UM(e)?WM(e):FM(e)}var VM=HM,KM=vM,GM=DS,qM=VM,XM=TS;function YM(e){return function(t){t=XM(t);var r=GM(t)?qM(t):void 0,n=r?r[0]:t.charAt(0),i=r?KM(r,1).join(""):t.slice(1);return n[e]()+i}}var QM=YM,ZM=QM,JM=ZM("toUpperCase"),eI=JM;const rf=de(eI);function ye(e){return function(){return e}}const WS=Math.cos,ju=Math.sin,fr=Math.sqrt,Su=Math.PI,nf=2*Su,qh=Math.PI,Xh=2*qh,Fn=1e-6,tI=Xh-Fn;function HS(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return HS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iFn)if(!(Math.abs(f*s-u*d)>Fn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,x=i-l,y=s*s+u*u,g=p*p+x*x,m=Math.sqrt(y),v=Math.sqrt(h),b=a*Math.tan((qh-Math.acos((y+h-g)/(2*m*v)))/2),S=b/v,w=b/m;Math.abs(S-1)>Fn&&this._append`L${t+S*d},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*p>d*x)},${this._x1=t+w*s},${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 l=n*Math.cos(i),s=n*Math.sin(i),u=t+l,d=r+s,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Fn||Math.abs(this._y1-d)>Fn)&&this._append`L${u},${d}`,n&&(h<0&&(h=h%Xh+Xh),h>tI?this._append`A${n},${n},0,1,${f},${t-l},${r-s}A${n},${n},0,1,${f},${this._x1=u},${this._y1=d}`:h>Fn&&this._append`A${n},${n},0,${+(h>=qh)},${f},${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 _m(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 nI(t)}function Am(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VS(e){this._context=e}VS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function af(e){return new VS(e)}function KS(e){return e[0]}function GS(e){return e[1]}function qS(e,t){var r=ye(!0),n=null,i=af,a=null,o=_m(l);e=typeof e=="function"?e:e===void 0?KS:ye(e),t=typeof t=="function"?t:t===void 0?GS:ye(t);function l(s){var u,d=(s=Am(s)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=d;++u)!(u=p;--x)l.point(b[x],S[x]);l.lineEnd(),l.areaEnd()}m&&(b[h]=+e(g,h,f),S[h]=+t(g,h,f),l.point(n?+n(g,h,f):b[h],r?+r(g,h,f):S[h]))}if(v)return l=null,v+""||null}function d(){return qS().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:ye(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ye(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ye(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:ye(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ye(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ye(+f),u):r},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(r)},u.lineX1=function(){return d().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ye(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}class XS{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 iI(e){return new XS(e,!0)}function aI(e){return new XS(e,!1)}const Em={draw(e,t){const r=fr(t/Su);e.moveTo(r,0),e.arc(0,0,r,0,nf)}},oI={draw(e,t){const r=fr(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()}},YS=fr(1/3),lI=YS*2,sI={draw(e,t){const r=fr(t/lI),n=r*YS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},uI={draw(e,t){const r=fr(t),n=-r/2;e.rect(n,n,r,r)}},cI=.8908130915292852,QS=ju(Su/10)/ju(7*Su/10),fI=ju(nf/10)*QS,dI=-WS(nf/10)*QS,hI={draw(e,t){const r=fr(t*cI),n=fI*r,i=dI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=nf*a/5,l=WS(o),s=ju(o);e.lineTo(s*r,-l*r),e.lineTo(l*n-s*i,s*n+l*i)}e.closePath()}},pd=fr(3),pI={draw(e,t){const r=-fr(t/(pd*3));e.moveTo(0,r*2),e.lineTo(-pd*r,-r),e.lineTo(pd*r,-r),e.closePath()}},Lt=-.5,Bt=fr(3)/2,Yh=1/fr(12),vI=(Yh/2+1)*3,mI={draw(e,t){const r=fr(t/vI),n=r/2,i=r*Yh,a=n,o=r*Yh+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Lt*n-Bt*i,Bt*n+Lt*i),e.lineTo(Lt*a-Bt*o,Bt*a+Lt*o),e.lineTo(Lt*l-Bt*s,Bt*l+Lt*s),e.lineTo(Lt*n+Bt*i,Lt*i-Bt*n),e.lineTo(Lt*a+Bt*o,Lt*o-Bt*a),e.lineTo(Lt*l+Bt*s,Lt*s-Bt*l),e.closePath()}};function yI(e,t){let r=null,n=_m(i);e=typeof e=="function"?e:ye(e||Em),t=typeof t=="function"?t:ye(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:ye(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ye(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ou(){}function Pu(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 ZS(e){this._context=e}ZS.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:Pu(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:Pu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new ZS(e)}function JS(e){this._context=e}JS.prototype={areaStart:Ou,areaEnd:Ou,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:Pu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xI(e){return new JS(e)}function eO(e){this._context=e}eO.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:Pu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new eO(e)}function tO(e){this._context=e}tO.prototype={areaStart:Ou,areaEnd:Ou,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 wI(e){return new tO(e)}function t0(e){return e<0?-1:1}function r0(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),l=(a*i+o*n)/(n+i);return(t0(a)+t0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function n0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function vd(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function _u(e){this._context=e}_u.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:vd(this,this._t0,n0(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,vd(this,n0(this,r=r0(this,e,t)),r);break;default:vd(this,this._t0,r=r0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function rO(e){this._context=new nO(e)}(rO.prototype=Object.create(_u.prototype)).point=function(e,t){_u.prototype.point.call(this,t,e)};function nO(e){this._context=e}nO.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 jI(e){return new _u(e)}function SI(e){return new rO(e)}function iO(e){this._context=e}iO.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=i0(e),i=i0(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function PI(e){return new of(e,.5)}function _I(e){return new of(e,0)}function AI(e){return new of(e,1)}function fa(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r=0;)r[t]=t;return r}function EI(e,t){return e[t]}function $I(e){const t=[];return t.key=e,t}function TI(){var e=ye([]),t=Qh,r=fa,n=EI;function i(a){var o=Array.from(e.apply(this,arguments),$I),l,s=o.length,u=-1,d;for(const f of a)for(l=0,++u;l0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BI(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 aO={symbolCircle:Em,symbolCross:oI,symbolDiamond:sI,symbolSquare:uI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},zI=Math.PI/180,FI=function(t){var r="symbol".concat(rf(t));return aO[r]||Em},UI=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*zI;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}},WI=function(t,r){aO["symbol".concat(rf(t))]=r},$m=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,s=LI(t,MI),u=o0(o0({},s),{},{type:n,size:a,sizeType:l}),d=function(){var g=FI(n),m=yI().type(g).size(UI(a,l,n));return m()},f=u.className,h=u.cx,p=u.cy,x=X(u,!0);return h===+h&&p===+p&&a===+a?_.createElement("path",Zh({},x,{className:te("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};$m.registerSymbol=WI;function da(e){"@babel/helpers - typeof";return da=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},da(e)}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var v=p.inactive?u:p.color;return _.createElement("li",Jh({className:g,style:f,key:"legend-item-".concat(x)},fi(n.props,p,x)),_.createElement(Hh,{width:o,height:o,viewBox:d,style:h},n.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},y?y(m,p,x):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(E.PureComponent);cl(Tm,"displayName","Legend");cl(Tm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var JI=Wc;function e3(){this.__data__=new JI,this.size=0}var t3=e3;function r3(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var n3=r3;function i3(e){return this.__data__.get(e)}var a3=i3;function o3(e){return this.__data__.has(e)}var l3=o3,s3=Wc,u3=ym,c3=gm,f3=200;function d3(e,t){var r=this.__data__;if(r instanceof s3){var n=r.__data__;if(!u3||n.lengthl))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=r&M3?new T3:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=LD}var Mm=BD,zD=Xr,FD=Mm,UD=Yr,WD="[object Arguments]",HD="[object Array]",VD="[object Boolean]",KD="[object Date]",GD="[object Error]",qD="[object Function]",XD="[object Map]",YD="[object Number]",QD="[object Object]",ZD="[object RegExp]",JD="[object Set]",e4="[object String]",t4="[object WeakMap]",r4="[object ArrayBuffer]",n4="[object DataView]",i4="[object Float32Array]",a4="[object Float64Array]",o4="[object Int8Array]",l4="[object Int16Array]",s4="[object Int32Array]",u4="[object Uint8Array]",c4="[object Uint8ClampedArray]",f4="[object Uint16Array]",d4="[object Uint32Array]",we={};we[i4]=we[a4]=we[o4]=we[l4]=we[s4]=we[u4]=we[c4]=we[f4]=we[d4]=!0;we[WD]=we[HD]=we[r4]=we[VD]=we[n4]=we[KD]=we[GD]=we[qD]=we[XD]=we[YD]=we[QD]=we[ZD]=we[JD]=we[e4]=we[t4]=!1;function h4(e){return UD(e)&&FD(e.length)&&!!we[zD(e)]}var p4=h4;function v4(e){return function(t){return e(t)}}var mO=v4,Tu={exports:{}};Tu.exports;(function(e,t){var r=OS,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Tu,Tu.exports);var m4=Tu.exports,y4=p4,g4=mO,h0=m4,p0=h0&&h0.isTypedArray,x4=p0?g4(p0):y4,yO=x4,b4=SD,w4=Nm,j4=_t,S4=vO,O4=Cm,P4=yO,_4=Object.prototype,A4=_4.hasOwnProperty;function E4(e,t){var r=j4(e),n=!r&&w4(e),i=!r&&!n&&S4(e),a=!r&&!n&&!i&&P4(e),o=r||n||i||a,l=o?b4(e.length,String):[],s=l.length;for(var u in e)(t||A4.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||O4(u,s)))&&l.push(u);return l}var $4=E4,T4=Object.prototype;function k4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||T4;return e===r}var N4=k4;function C4(e,t){return function(r){return e(t(r))}}var gO=C4,M4=gO,I4=M4(Object.keys,Object),D4=I4,R4=N4,L4=D4,B4=Object.prototype,z4=B4.hasOwnProperty;function F4(e){if(!R4(e))return L4(e);var t=[];for(var r in Object(e))z4.call(e,r)&&r!="constructor"&&t.push(r);return t}var U4=F4,W4=vm,H4=Mm;function V4(e){return e!=null&&H4(e.length)&&!W4(e)}var Yl=V4,K4=$4,G4=U4,q4=Yl;function X4(e){return q4(e)?K4(e):G4(e)}var lf=X4,Y4=fD,Q4=wD,Z4=lf;function J4(e){return Y4(e,Z4,Q4)}var eR=J4,v0=eR,tR=1,rR=Object.prototype,nR=rR.hasOwnProperty;function iR(e,t,r,n,i,a){var o=r&tR,l=v0(e),s=l.length,u=v0(t),d=u.length;if(s!=d&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in t:nR.call(t,h)))return!1}var p=a.get(e),x=a.get(t);if(p&&x)return p==t&&x==e;var y=!0;a.set(e,t),a.set(t,e);for(var g=o;++f-1}var r5=t5;function n5(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=g5){var u=t?null:m5(e);if(u)return y5(u);o=!1,i=v5,s=new d5}else s=t?[]:l;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M5(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 I5(e){return e.value}function D5(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var r=C5(t,P5);return _.createElement(Tm,r)}var k0=1,ri=function(e){function t(){var r;_5(this,t);for(var n=arguments.length,i=new Array(n),a=0;ak0||Math.abs(i.height-this.lastBoundingBox.height)>k0)&&(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?Pr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,s=i.margin,u=i.chartWidth,d=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var x=this.getBBoxSnapshot();h={top:((d||0)-x.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Pr(Pr({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,s=i.wrapperStyle,u=i.payloadUniqBy,d=i.payload,f=Pr(Pr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return _.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},D5(a,Pr(Pr({},this.props),{},{payload:PO(d,u,I5)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Pr(Pr({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&U(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(E.PureComponent);sf(ri,"displayName","Legend");sf(ri,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var N0=Xl,R5=Nm,L5=_t,C0=N0?N0.isConcatSpreadable:void 0;function B5(e){return L5(e)||R5(e)||!!(C0&&e&&e[C0])}var z5=B5,F5=hO,U5=z5;function EO(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=U5),i||(i=[]);++a0&&r(l)?t>1?EO(l,t-1,r,n,i):F5(i,l):n||(i[i.length]=l)}return i}var $O=EO;function W5(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var s=o[e?l:++i];if(r(a[s],s,a)===!1)break}return t}}var H5=W5,V5=H5,K5=V5(),G5=K5,q5=G5,X5=lf;function Y5(e,t){return e&&q5(e,t,X5)}var TO=Y5,Q5=Yl;function Z5(e,t){return function(r,n){if(r==null)return r;if(!Q5(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&s&&!l&&!u||n&&o&&s||!r&&s||!i)return 1;if(!n&&!a&&!u&&e=l)return s;var u=r[n];return s*(u=="desc"?-1:1)}}return e.index-t.index}var d8=f8,xd=bm,h8=wm,p8=Or,v8=kO,m8=l8,y8=mO,g8=d8,x8=Ja,b8=_t;function w8(e,t,r){t.length?t=xd(t,function(a){return b8(a)?function(o){return h8(o,a.length===1?a[0]:a)}:a}):t=[x8];var n=-1;t=xd(t,y8(p8));var i=v8(e,function(a,o,l){var s=xd(t,function(u){return u(a)});return{criteria:s,index:++n,value:a}});return m8(i,function(a,o){return g8(a,o,r)})}var j8=w8;function S8(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 O8=S8,P8=O8,I0=Math.max;function _8(e,t,r){return t=I0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=I0(n.length-t,0),o=Array(a);++i0){if(++t>=D8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var z8=B8,F8=I8,U8=z8,W8=U8(F8),H8=W8,V8=Ja,K8=A8,G8=H8;function q8(e,t){return G8(K8(e,t,V8),e+"")}var X8=q8,Y8=mm,Q8=Yl,Z8=Cm,J8=$n;function e6(e,t,r){if(!J8(r))return!1;var n=typeof t;return(n=="number"?Q8(r)&&Z8(t,r.length):n=="string"&&t in r)?Y8(r[t],e):!1}var uf=e6,t6=$O,r6=j8,n6=X8,R0=uf,i6=n6(function(e,t){if(e==null)return[];var r=t.length;return r>1&&R0(e,t[0],t[1])?t=[]:r>2&&R0(t[0],t[1],t[2])&&(t=[t[0]]),r6(e,t6(t,1),[])}),a6=i6;const Rm=de(a6);function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(po,"-left"),U(r)&&t&&U(t.x)&&r=t.y),"".concat(po,"-top"),U(n)&&t&&U(t.y)&&ny?Math.max(d,s[n]):Math.max(f,s[n])}function b6(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 w6(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,d,f;return o.height>0&&o.width>0&&r?(d=z0({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=z0({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=b6({translateX:d,translateY:f,useTranslate3d:l})):u=g6,{cssProperties:u,cssClasses:x6({translateX:d,translateY:f,coordinate:r})}}function pa(e){"@babel/helpers - typeof";return pa=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},pa(e)}function F0(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 U0(e){for(var t=1;tW0||Math.abs(n.height-this.state.lastBoundingBox.height)>W0)&&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,l=i.animationDuration,s=i.animationEasing,u=i.children,d=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,x=i.position,y=i.reverseDirection,g=i.useTranslate3d,m=i.viewBox,v=i.wrapperStyle,b=w6({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:x,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:m}),S=b.cssClasses,w=b.cssProperties,j=U0(U0({transition:h&&a?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},v);return _.createElement("div",{tabIndex:-1,className:S,style:j,ref:function(P){n.wrapperNode=P}},u)}}])}(E.PureComponent),k6=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},xi={isSsr:k6()};function va(e){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(e)}function H0(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 V0(e){for(var t=1;t0;return _.createElement(T6,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:a,coordinate:d,hasPayload:j,offset:p,position:g,reverseDirection:m,useTranslate3d:v,viewBox:b,wrapperStyle:S},F6(u,V0(V0({},this.props),{},{payload:w})))}}])}(E.PureComponent);Lm(nr,"displayName","Tooltip");Lm(nr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!xi.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var U6=Sr,W6=function(){return U6.Date.now()},H6=W6,V6=/\s/;function K6(e){for(var t=e.length;t--&&V6.test(e.charAt(t)););return t}var G6=K6,q6=G6,X6=/^\s+/;function Y6(e){return e&&e.slice(0,q6(e)+1).replace(X6,"")}var Q6=Y6,Z6=Q6,K0=$n,J6=Ha,G0=NaN,eB=/^[-+]0x[0-9a-f]+$/i,tB=/^0b[01]+$/i,rB=/^0o[0-7]+$/i,nB=parseInt;function iB(e){if(typeof e=="number")return e;if(J6(e))return G0;if(K0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=K0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Z6(e);var r=tB.test(e);return r||rB.test(e)?nB(e.slice(2),r?2:8):eB.test(e)?G0:+e}var RO=iB,aB=$n,wd=H6,q0=RO,oB="Expected a function",lB=Math.max,sB=Math.min;function uB(e,t,r){var n,i,a,o,l,s,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(oB);t=q0(t)||0,aB(r)&&(d=!!r.leading,f="maxWait"in r,a=f?lB(q0(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(j){var O=n,P=i;return n=i=void 0,u=j,o=e.apply(P,O),o}function x(j){return u=j,l=setTimeout(m,t),d?p(j):o}function y(j){var O=j-s,P=j-u,A=t-O;return f?sB(A,a-P):A}function g(j){var O=j-s,P=j-u;return s===void 0||O>=t||O<0||f&&P>=a}function m(){var j=wd();if(g(j))return v(j);l=setTimeout(m,y(j))}function v(j){return l=void 0,h&&n?p(j):(n=i=void 0,o)}function b(){l!==void 0&&clearTimeout(l),u=0,n=s=i=l=void 0}function S(){return l===void 0?o:v(wd())}function w(){var j=wd(),O=g(j);if(n=arguments,i=this,s=j,O){if(l===void 0)return x(s);if(f)return clearTimeout(l),l=setTimeout(m,t),p(s)}return l===void 0&&(l=setTimeout(m,t)),o}return w.cancel=b,w.flush=S,w}var cB=uB,fB=cB,dB=$n,hB="Expected a function";function pB(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(hB);return dB(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),fB(e,t,{leading:n,maxWait:t,trailing:i})}var vB=pB;const LO=de(vB);function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function X0(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 Os(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(I=LO(I,y,{trailing:!0,leading:!1}));var D=new ResizeObserver(I),M=w.current.getBoundingClientRect(),L=M.width,z=M.height;return k(L,z),D.observe(w.current),function(){D.disconnect()}},[k,y]);var T=E.useMemo(function(){var I=A.containerWidth,D=A.containerHeight;if(I<0||D<0)return null;ur(qn(o)||qn(s),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,s),ur(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=qn(o)?I:o,L=qn(s)?D:s;r&&r>0&&(M?L=M/r:L&&(M=L*r),h&&L>h&&(L=h)),ur(M>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.`,M,L,o,s,d,f,r);var z=!Array.isArray(p)&&Ir(p.type).endsWith("Chart");return _.Children.map(p,function(N){return _.isValidElement(N)?E.cloneElement(N,Os({width:M,height:L},z?{style:Os({height:"100%",width:"100%",maxHeight:L,maxWidth:M},N.props.style)}:{})):N})},[r,p,s,h,f,d,A,o]);return _.createElement("div",{id:g?"".concat(g):void 0,className:te("recharts-responsive-container",m),style:Os(Os({},S),{},{width:o,height:s,minWidth:d,minHeight:f,maxHeight:h}),ref:w},T)}),cf=function(t){return null};cf.displayName="Cell";function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function Z0(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 fp(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||xi.isSsr)return{width:0,height:0};var n=$B(r),i=JSON.stringify({text:t,copyStyle:n});if(Pi.widthCache[i])return Pi.widthCache[i];try{var a=document.getElementById(J0);a||(a=document.createElement("span"),a.setAttribute("id",J0),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=fp(fp({},EB),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return Pi.widthCache[i]=s,++Pi.cacheCount>AB&&(Pi.cacheCount=0,Pi.widthCache={}),s}catch{return{width:0,height:0}}},TB=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function Mu(e,t){return MB(e)||CB(e,t)||NB(e,t)||kB()}function kB(){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 NB(e,t){if(e){if(typeof e=="string")return ex(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 ex(e,t)}}function ex(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ox(e,t){return ZB(e)||QB(e,t)||YB(e,t)||XB()}function XB(){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 YB(e,t){if(e){if(typeof e=="string")return lx(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 lx(e,t)}}function lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(L,z){var N=z.word,R=z.width,B=L[L.length-1];if(B&&(i==null||a||B.width+R+nz.width?L:z})};if(!d)return p;for(var y="…",g=function(M){var L=f.slice(0,M),z=UO({breakAll:u,style:s,children:L+y}).wordsWithComputedWidth,N=h(z),R=N.length>o||x(N).width>Number(i);return[R,N]},m=0,v=f.length-1,b=0,S;m<=v&&b<=f.length-1;){var w=Math.floor((m+v)/2),j=w-1,O=g(j),P=ox(O,2),A=P[0],$=P[1],k=g(w),T=ox(k,1),I=T[0];if(!A&&!I&&(m=w+1),A&&I&&(v=w-1),!A&&I){S=$;break}b++}return S||p},sx=function(t){var r=J(t)?[]:t.toString().split(FO);return[{words:r}]},ez=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!xi.isSsr){var s,u,d=UO({breakAll:o,children:i,style:a});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;s=f,u=h}else return sx(i);return JB({breakAll:o,children:i,maxLines:l,style:a},s,u,r,n)}return sx(i)},ux="#808080",di=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,p=h===void 0?"start":h,x=t.verticalAnchor,y=x===void 0?"end":x,g=t.fill,m=g===void 0?ux:g,v=ax(t,KB),b=E.useMemo(function(){return ez({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),S=v.dx,w=v.dy,j=v.angle,O=v.className,P=v.breakAll,A=ax(v,GB);if(!Ke(n)||!Ke(a))return null;var $=n+(U(S)?S:0),k=a+(U(w)?w:0),T;switch(y){case"start":T=jd("calc(".concat(u,")"));break;case"middle":T=jd("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:T=jd("calc(".concat(b.length-1," * -").concat(l,")"));break}var I=[];if(f){var D=b[0].width,M=v.width;I.push("scale(".concat((U(M)?M/D:1)/D,")"))}return j&&I.push("rotate(".concat(j,", ").concat($,", ").concat(k,")")),I.length&&(A.transform=I.join(" ")),_.createElement("text",dp({},X(A,!0),{x:$,y:k,className:te("recharts-text",O),textAnchor:p,fill:m.includes("url")?ux:m}),b.map(function(L,z){var N=L.words.join(P?"":" ");return _.createElement("tspan",{x:$,dy:z===0?T:l,key:"".concat(N,"-").concat(z)},N)}))};function Sn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function tz(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Bm(e){let t,r,n;e.length!==2?(t=Sn,r=(l,s)=>Sn(e(l),s),n=(l,s)=>e(l)-s):(t=e===Sn||e===tz?e:rz,r=e,n=e);function i(l,s,u=0,d=l.length){if(u>>1;r(l[f],s)<0?u=f+1:d=f}while(u>>1;r(l[f],s)<=0?u=f+1:d=f}while(uu&&n(l[f-1],s)>-n(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function rz(){return 0}function WO(e){return e===null?NaN:+e}function*nz(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const iz=Bm(Sn),Ql=iz.right;Bm(WO).center;class cx extends Map{constructor(t,r=lz){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(fx(this,t))}has(t){return super.has(fx(this,t))}set(t,r){return super.set(az(this,t),r)}delete(t){return super.delete(oz(this,t))}}function fx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function az({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function oz({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function lz(e){return e!==null&&typeof e=="object"?e.valueOf():e}function sz(e=Sn){if(e===Sn)return HO;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 HO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const uz=Math.sqrt(50),cz=Math.sqrt(10),fz=Math.sqrt(2);function Iu(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>=uz?10:a>=cz?5:a>=fz?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),s=Math.round(t*u),l/ut&&--s,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),s=Math.round(t/u),l*ut&&--s),s0))return[];if(e===t)return[e];const n=t=i))return[];const l=a-i+1,s=new Array(l);if(n)if(o<0)for(let u=0;u=n)&&(r=n);return r}function hx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function VO(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?HO:sz(i);n>r;){if(n-r>600){const s=n-r+1,u=t-r+1,d=Math.log(s),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/s+h)),x=Math.min(n,Math.floor(t+(s-u)*f/s+h));VO(e,t,p,x,i)}const a=e[t];let o=r,l=n;for(vo(e,r,t),i(e[n],a)>0&&vo(e,r,n);o0;)--l}i(e[r],a)===0?vo(e,r,l):(++l,vo(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function vo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function dz(e,t,r){if(e=Float64Array.from(nz(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return hx(e);if(t>=1)return dx(e);var n,i=(n-1)*t,a=Math.floor(i),o=dx(VO(e,a).subarray(0,a+1)),l=hx(e.subarray(a+1));return o+(l-o)*(i-a)}}function hz(e,t,r=WO){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),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function pz(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>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_s(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_s(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=mz.exec(e))?new jt(t[1],t[2],t[3],1):(t=yz.exec(e))?new jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=gz.exec(e))?_s(t[1],t[2],t[3],t[4]):(t=xz.exec(e))?_s(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bz.exec(e))?bx(t[1],t[2]/100,t[3]/100,1):(t=wz.exec(e))?bx(t[1],t[2]/100,t[3]/100,t[4]):px.hasOwnProperty(e)?yx(px[e]):e==="transparent"?new jt(NaN,NaN,NaN,0):null}function yx(e){return new jt(e>>16&255,e>>8&255,e&255,1)}function _s(e,t,r,n){return n<=0&&(e=t=r=NaN),new jt(e,t,r,n)}function Oz(e){return e instanceof Zl||(e=xl(e)),e?(e=e.rgb(),new jt(e.r,e.g,e.b,e.opacity)):new jt}function yp(e,t,r,n){return arguments.length===1?Oz(e):new jt(e,t,r,n??1)}function jt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Fm(jt,yp,GO(Zl,{brighter(e){return e=e==null?Du:Math.pow(Du,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yl:Math.pow(yl,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jt(ni(this.r),ni(this.g),ni(this.b),Ru(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:gx,formatHex:gx,formatHex8:Pz,formatRgb:xx,toString:xx}));function gx(){return`#${Xn(this.r)}${Xn(this.g)}${Xn(this.b)}`}function Pz(){return`#${Xn(this.r)}${Xn(this.g)}${Xn(this.b)}${Xn((isNaN(this.opacity)?1:this.opacity)*255)}`}function xx(){const e=Ru(this.opacity);return`${e===1?"rgb(":"rgba("}${ni(this.r)}, ${ni(this.g)}, ${ni(this.b)}${e===1?")":`, ${e})`}`}function Ru(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ni(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xn(e){return e=ni(e),(e<16?"0":"")+e.toString(16)}function bx(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new or(e,t,r,n)}function qO(e){if(e instanceof or)return new or(e.h,e.s,e.l,e.opacity);if(e instanceof Zl||(e=xl(e)),!e)return new or;if(e instanceof or)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,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&s<1?0:o,new or(o,l,s,e.opacity)}function _z(e,t,r,n){return arguments.length===1?qO(e):new or(e,t,r,n??1)}function or(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Fm(or,_z,GO(Zl,{brighter(e){return e=e==null?Du:Math.pow(Du,e),new or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yl:Math.pow(yl,e),new or(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 jt(Sd(e>=240?e-240:e+120,i,n),Sd(e,i,n),Sd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new or(wx(this.h),As(this.s),As(this.l),Ru(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=Ru(this.opacity);return`${e===1?"hsl(":"hsla("}${wx(this.h)}, ${As(this.s)*100}%, ${As(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wx(e){return e=(e||0)%360,e<0?e+360:e}function As(e){return Math.max(0,Math.min(1,e||0))}function Sd(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 Um=e=>()=>e;function Az(e,t){return function(r){return e+r*t}}function Ez(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 $z(e){return(e=+e)==1?XO:function(t,r){return r-t?Ez(t,r,e):Um(isNaN(t)?r:t)}}function XO(e,t){var r=t-e;return r?Az(e,r):Um(isNaN(e)?t:e)}const jx=function e(t){var r=$z(t);function n(i,a){var o=r((i=yp(i)).r,(a=yp(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),u=XO(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=u(d),i+""}}return n.gamma=e,n}(1);function Tz(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:Lu(n,i)})),r=Od.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Fz(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?Uz:Fz,s=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(s||(s=l(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=l(t,e.map(n),Lu)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Bu),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=Wm,d()},f.clamp=function(h){return arguments.length?(o=h?!0:ht,d()):o!==ht},f.interpolate=function(h){return arguments.length?(r=h,d()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,d()}}function Hm(){return ff()(ht,ht)}function Wz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function zu(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ma(e){return e=zu(Math.abs(e)),e?e[1]:NaN}function Hz(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Vz(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Kz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bl(e){if(!(t=Kz.exec(e)))throw new Error("invalid format: "+e);var t;return new Vm({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]})}bl.prototype=Vm.prototype;function Vm(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+""}Vm.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 Gz(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Fu;function qz(e,t){var r=zu(e,t);if(!r)return Fu=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Fu=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")+zu(e,Math.max(0,t+a-1))[0]}function Ox(e,t){var r=zu(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 Px={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Wz,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)=>Ox(e*100,t),r:Ox,s:qz,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function _x(e){return e}var Ax=Array.prototype.map,Ex=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xz(e){var t=e.grouping===void 0||e.thousands===void 0?_x:Hz(Ax.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?_x:Vz(Ax.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f,h){f=bl(f);var p=f.fill,x=f.align,y=f.sign,g=f.symbol,m=f.zero,v=f.width,b=f.comma,S=f.precision,w=f.trim,j=f.type;j==="n"?(b=!0,j="g"):Px[j]||(S===void 0&&(S=12),w=!0,j="g"),(m||p==="0"&&x==="=")&&(m=!0,p="0",x="=");var O=(h&&h.prefix!==void 0?h.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),P=(g==="$"?n:/[%p]/.test(j)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=Px[j],$=/[defgprs%]/.test(j);S=S===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(T){var I=O,D=P,M,L,z;if(j==="c")D=A(T)+D,T="";else{T=+T;var N=T<0||1/T<0;if(T=isNaN(T)?s:A(Math.abs(T),S),w&&(T=Gz(T)),N&&+T==0&&y!=="+"&&(N=!1),I=(N?y==="("?y:l:y==="-"||y==="("?"":y)+I,D=(j==="s"&&!isNaN(T)&&Fu!==void 0?Ex[8+Fu/3]:"")+D+(N&&y==="("?")":""),$){for(M=-1,L=T.length;++Mz||z>57){D=(z===46?i+T.slice(M+1):T.slice(M))+D,T=T.slice(0,M);break}}}b&&!m&&(T=t(T,1/0));var R=I.length+T.length+D.length,B=R>1)+I+T+D+B.slice(R);break;default:T=B+I+T+D;break}return a(T)}return k.toString=function(){return f+""},k}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(ma(h)/3)))*3,x=Math.pow(10,-p),y=u((f=bl(f),f.type="f",f),{suffix:Ex[8+p/3]});return function(g){return y(x*g)}}return{format:u,formatPrefix:d}}var Es,Km,YO;Yz({thousands:",",grouping:[3],currency:["$",""]});function Yz(e){return Es=Xz(e),Km=Es.format,YO=Es.formatPrefix,Es}function Qz(e){return Math.max(0,-ma(Math.abs(e)))}function Zz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ma(t)/3)))*3-ma(Math.abs(e)))}function Jz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ma(t)-ma(e))+1}function QO(e,t,r,n){var i=vp(e,t,r),a;switch(n=bl(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Zz(i,o))&&(n.precision=a),YO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Jz(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Qz(i))&&(n.precision=a-(n.type==="%")*2);break}}return Km(n)}function Tn(e){var t=e.domain;return e.ticks=function(r){var n=t();return hp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return QO(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],l=n[a],s,u,d=10;for(l0;){if(u=pp(o,l,r),u===s)return n[i]=o,n[a]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function Uu(){var e=Hm();return e.copy=function(){return Jl(e,Uu())},Zt.apply(e,arguments),Tn(e)}function ZO(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,Bu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ZO(e).unknown(t)},e=arguments.length?Array.from(e,Bu):[0,1],Tn(r)}function JO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function iF(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 kx(e){return(t,r)=>-e(-t,r)}function Gm(e){const t=e($x,Tx),r=t.domain;let n=10,i,a;function o(){return i=iF(n),a=nF(n),r()[0]<0?(i=kx(i),a=kx(a),e(eF,tF)):e($x,Tx),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const s=r();let u=s[0],d=s[s.length-1];const f=d0){for(;h<=p;++h)for(x=1;xd)break;m.push(y)}}else for(;h<=p;++h)for(x=n-1;x>=1;--x)if(y=h>0?x/a(-h):x*a(h),!(yd)break;m.push(y)}m.length*2{if(l==null&&(l=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=bl(s)).precision==null&&(s.trim=!0),s=Km(s)),l===1/0)return s;const u=Math.max(1,n*l/t.ticks().length);return d=>{let f=d/a(Math.round(i(d)));return f*nr(JO(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function e2(){const e=Gm(ff()).domain([1,10]);return e.copy=()=>Jl(e,e2()).base(e.base()),Zt.apply(e,arguments),e}function Nx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Cx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qm(e){var t=1,r=e(Nx(t),Cx(t));return r.constant=function(n){return arguments.length?e(Nx(t=+n),Cx(t)):t},Tn(r)}function t2(){var e=qm(ff());return e.copy=function(){return Jl(e,t2()).constant(e.constant())},Zt.apply(e,arguments)}function Mx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function aF(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function oF(e){return e<0?-e*e:e*e}function Xm(e){var t=e(ht,ht),r=1;function n(){return r===1?e(ht,ht):r===.5?e(aF,oF):e(Mx(r),Mx(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Tn(t)}function Ym(){var e=Xm(ff());return e.copy=function(){return Jl(e,Ym()).exponent(e.exponent())},Zt.apply(e,arguments),e}function lF(){return Ym.apply(null,arguments).exponent(.5)}function Ix(e){return Math.sign(e)*e*e}function sF(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function r2(){var e=Hm(),t=[0,1],r=!1,n;function i(a){var o=sF(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ix(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,Bu)).map(Ix)),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 r2(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Zt.apply(i,arguments),Tn(i)}function n2(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return i2().domain([e,t]).range(i).unknown(a)},Zt.apply(Tn(o),arguments)}function a2(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ql(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 a2().domain(e).range(t).unknown(r)},Zt.apply(i,arguments)}const Pd=new Date,_d=new Date;function Ge(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),l=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(uGe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Pd.setTime(+a),_d.setTime(+o),e(Pd),e(_d),Math.floor(r(Pd,_d))),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 Wu=Ge(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Wu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ge(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Wu);Wu.range;const kr=1e3,Vt=kr*60,Nr=Vt*60,Wr=Nr*24,Qm=Wr*7,Dx=Wr*30,Ad=Wr*365,Yn=Ge(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCSeconds());Yn.range;const Zm=Ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr)},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getMinutes());Zm.range;const Jm=Ge(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getUTCMinutes());Jm.range;const ey=Ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr-e.getMinutes()*Vt)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getHours());ey.range;const ty=Ge(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getUTCHours());ty.range;const es=Ge(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vt)/Wr,e=>e.getDate()-1);es.range;const df=Ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wr,e=>e.getUTCDate()-1);df.range;const o2=Ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wr,e=>Math.floor(e/Wr));o2.range;function bi(e){return Ge(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())*Vt)/Qm)}const hf=bi(0),Hu=bi(1),uF=bi(2),cF=bi(3),ya=bi(4),fF=bi(5),dF=bi(6);hf.range;Hu.range;uF.range;cF.range;ya.range;fF.range;dF.range;function wi(e){return Ge(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)/Qm)}const pf=wi(0),Vu=wi(1),hF=wi(2),pF=wi(3),ga=wi(4),vF=wi(5),mF=wi(6);pf.range;Vu.range;hF.range;pF.range;ga.range;vF.range;mF.range;const ry=Ge(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());ry.range;const ny=Ge(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());ny.range;const Hr=Ge(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());Hr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ge(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)});Hr.range;const Vr=Ge(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());Vr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ge(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)});Vr.range;function l2(e,t,r,n,i,a){const o=[[Yn,1,kr],[Yn,5,5*kr],[Yn,15,15*kr],[Yn,30,30*kr],[a,1,Vt],[a,5,5*Vt],[a,15,15*Vt],[a,30,30*Vt],[i,1,Nr],[i,3,3*Nr],[i,6,6*Nr],[i,12,12*Nr],[n,1,Wr],[n,2,2*Wr],[r,1,Qm],[t,1,Dx],[t,3,3*Dx],[e,1,Ad]];function l(u,d,f){const h=dg).right(o,h);if(p===o.length)return e.every(vp(u/Ad,d/Ad,f));if(p===0)return Wu.every(Math.max(vp(u,d,f),1));const[x,y]=o[h/o[p-1][2]53)return null;"w"in F||(F.w=1),"Z"in F?(le=$d(mo(F.y,0,1)),Be=le.getUTCDay(),le=Be>4||Be===0?Vu.ceil(le):Vu(le),le=df.offset(le,(F.V-1)*7),F.y=le.getUTCFullYear(),F.m=le.getUTCMonth(),F.d=le.getUTCDate()+(F.w+6)%7):(le=Ed(mo(F.y,0,1)),Be=le.getDay(),le=Be>4||Be===0?Hu.ceil(le):Hu(le),le=es.offset(le,(F.V-1)*7),F.y=le.getFullYear(),F.m=le.getMonth(),F.d=le.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Be="Z"in F?$d(mo(F.y,0,1)).getUTCDay():Ed(mo(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Be+5)%7:F.w+F.U*7-(Be+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,$d(F)):Ed(F)}}function P(K,ee,re,F){for(var ke=0,le=ee.length,Be=re.length,ze,gt;ke=Be)return-1;if(ze=ee.charCodeAt(ke++),ze===37){if(ze=ee.charAt(ke++),gt=w[ze in Rx?ee.charAt(ke++):ze],!gt||(F=gt(K,re,F))<0)return-1}else if(ze!=re.charCodeAt(F++))return-1}return F}function A(K,ee,re){var F=u.exec(ee.slice(re));return F?(K.p=d.get(F[0].toLowerCase()),re+F[0].length):-1}function $(K,ee,re){var F=p.exec(ee.slice(re));return F?(K.w=x.get(F[0].toLowerCase()),re+F[0].length):-1}function k(K,ee,re){var F=f.exec(ee.slice(re));return F?(K.w=h.get(F[0].toLowerCase()),re+F[0].length):-1}function T(K,ee,re){var F=m.exec(ee.slice(re));return F?(K.m=v.get(F[0].toLowerCase()),re+F[0].length):-1}function I(K,ee,re){var F=y.exec(ee.slice(re));return F?(K.m=g.get(F[0].toLowerCase()),re+F[0].length):-1}function D(K,ee,re){return P(K,t,ee,re)}function M(K,ee,re){return P(K,r,ee,re)}function L(K,ee,re){return P(K,n,ee,re)}function z(K){return o[K.getDay()]}function N(K){return a[K.getDay()]}function R(K){return s[K.getMonth()]}function B(K){return l[K.getMonth()]}function V(K){return i[+(K.getHours()>=12)]}function H(K){return 1+~~(K.getMonth()/3)}function Y(K){return o[K.getUTCDay()]}function oe(K){return a[K.getUTCDay()]}function Oe(K){return s[K.getUTCMonth()]}function Me(K){return l[K.getUTCMonth()]}function Rt(K){return i[+(K.getUTCHours()>=12)]}function yt(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var ee=j(K+="",b);return ee.toString=function(){return K},ee},parse:function(K){var ee=O(K+="",!1);return ee.toString=function(){return K},ee},utcFormat:function(K){var ee=j(K+="",S);return ee.toString=function(){return K},ee},utcParse:function(K){var ee=O(K+="",!0);return ee.toString=function(){return K},ee}}}var Rx={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,jF=/^%/,SF=/[\\^$*+?|[\]().{}]/g;function ue(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function PF(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function _F(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function AF(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function EF(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function $F(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Lx(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Bx(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function TF(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 kF(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function NF(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function zx(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function CF(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Fx(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function MF(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function IF(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function DF(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function RF(e,t,r){var n=Ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function LF(e,t,r){var n=jF.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function BF(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function zF(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ux(e,t){return ue(e.getDate(),t,2)}function FF(e,t){return ue(e.getHours(),t,2)}function UF(e,t){return ue(e.getHours()%12||12,t,2)}function WF(e,t){return ue(1+es.count(Hr(e),e),t,3)}function s2(e,t){return ue(e.getMilliseconds(),t,3)}function HF(e,t){return s2(e,t)+"000"}function VF(e,t){return ue(e.getMonth()+1,t,2)}function KF(e,t){return ue(e.getMinutes(),t,2)}function GF(e,t){return ue(e.getSeconds(),t,2)}function qF(e){var t=e.getDay();return t===0?7:t}function XF(e,t){return ue(hf.count(Hr(e)-1,e),t,2)}function u2(e){var t=e.getDay();return t>=4||t===0?ya(e):ya.ceil(e)}function YF(e,t){return e=u2(e),ue(ya.count(Hr(e),e)+(Hr(e).getDay()===4),t,2)}function QF(e){return e.getDay()}function ZF(e,t){return ue(Hu.count(Hr(e)-1,e),t,2)}function JF(e,t){return ue(e.getFullYear()%100,t,2)}function e9(e,t){return e=u2(e),ue(e.getFullYear()%100,t,2)}function t9(e,t){return ue(e.getFullYear()%1e4,t,4)}function r9(e,t){var r=e.getDay();return e=r>=4||r===0?ya(e):ya.ceil(e),ue(e.getFullYear()%1e4,t,4)}function n9(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function Wx(e,t){return ue(e.getUTCDate(),t,2)}function i9(e,t){return ue(e.getUTCHours(),t,2)}function a9(e,t){return ue(e.getUTCHours()%12||12,t,2)}function o9(e,t){return ue(1+df.count(Vr(e),e),t,3)}function c2(e,t){return ue(e.getUTCMilliseconds(),t,3)}function l9(e,t){return c2(e,t)+"000"}function s9(e,t){return ue(e.getUTCMonth()+1,t,2)}function u9(e,t){return ue(e.getUTCMinutes(),t,2)}function c9(e,t){return ue(e.getUTCSeconds(),t,2)}function f9(e){var t=e.getUTCDay();return t===0?7:t}function d9(e,t){return ue(pf.count(Vr(e)-1,e),t,2)}function f2(e){var t=e.getUTCDay();return t>=4||t===0?ga(e):ga.ceil(e)}function h9(e,t){return e=f2(e),ue(ga.count(Vr(e),e)+(Vr(e).getUTCDay()===4),t,2)}function p9(e){return e.getUTCDay()}function v9(e,t){return ue(Vu.count(Vr(e)-1,e),t,2)}function m9(e,t){return ue(e.getUTCFullYear()%100,t,2)}function y9(e,t){return e=f2(e),ue(e.getUTCFullYear()%100,t,2)}function g9(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function x9(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ga(e):ga.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function b9(){return"+0000"}function Hx(){return"%"}function Vx(e){return+e}function Kx(e){return Math.floor(+e/1e3)}var _i,d2,h2;w9({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 w9(e){return _i=wF(e),d2=_i.format,_i.parse,h2=_i.utcFormat,_i.utcParse,_i}function j9(e){return new Date(e)}function S9(e){return e instanceof Date?+e:+new Date(+e)}function iy(e,t,r,n,i,a,o,l,s,u){var d=Hm(),f=d.invert,h=d.domain,p=u(".%L"),x=u(":%S"),y=u("%I:%M"),g=u("%I %p"),m=u("%a %d"),v=u("%b %d"),b=u("%B"),S=u("%Y");function w(j){return(s(j)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>dz(e,a/n))},r.copy=function(){return y2(t).domain(e)},Qr.apply(r,arguments)}function mf(){var e=0,t=.5,r=1,n=1,i,a,o,l,s,u=ht,d,f=!1,h;function p(y){return isNaN(y=+y)?h:(y=.5+((y=+d(y))-a)*(n*yt}var w2=T9,k9=yf,N9=w2,C9=Ja;function M9(e){return e&&e.length?k9(e,C9,N9):void 0}var I9=M9;const dn=de(I9);function D9(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};q.decimalPlaces=q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*je;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};q.dividedBy=q.div=function(e){return Dr(this,new this.constructor(e))};q.dividedToIntegerBy=q.idiv=function(e){var t=this,r=t.constructor;return ve(Dr(t,new r(e),0,1),r.precision)};q.equals=q.eq=function(e){return!this.cmp(e)};q.exponent=function(){return Le(this)};q.greaterThan=q.gt=function(e){return this.cmp(e)>0};q.greaterThanOrEqualTo=q.gte=function(e){return this.cmp(e)>=0};q.isInteger=q.isint=function(){return this.e>this.d.length-2};q.isNegative=q.isneg=function(){return this.s<0};q.isPositive=q.ispos=function(){return this.s>0};q.isZero=function(){return this.s===0};q.lessThan=q.lt=function(e){return this.cmp(e)<0};q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1};q.logarithm=q.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(Tt))throw Error(Yt+"NaN");if(r.s<1)throw Error(Yt+(r.s?"NaN":"-Infinity"));return r.eq(Tt)?new n(0):(_e=!1,t=Dr(wl(r,a),wl(e,a),a),_e=!0,ve(t,i))};q.minus=q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_2(t,e):O2(t,(e.s=-e.s,e))};q.modulo=q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Yt+"NaN");return r.s?(_e=!1,t=Dr(r,e,0,1).times(e),_e=!0,r.minus(t)):ve(new n(r),i)};q.naturalExponential=q.exp=function(){return P2(this)};q.naturalLogarithm=q.ln=function(){return wl(this)};q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};q.plus=q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O2(t,e):_2(t,(e.s=-e.s,e))};q.precision=q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ii+e);if(t=Le(i)+1,n=i.d.length-1,r=n*je+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};q.squareRoot=q.sqrt=function(){var e,t,r,n,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Yt+"NaN")}for(e=Le(l),_e=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=vr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ro((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 s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Dr(l,a,o+2)).times(.5),vr(a.d).slice(0,o)===(t=vr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ve(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return _e=!0,ve(n,r)};q.times=q.mul=function(e){var t,r,n,i,a,o,l,s,u,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,r=d.e+e.e,s=h.length,u=p.length,s=0;){for(t=0,i=s+n;i>n;)l=a[i]+p[n]*h[i-n-1]+t,a[i--]=l%qe|0,t=l/qe|0;a[i]=(a[i]+t)%qe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,_e?ve(e,f.precision):e};q.toDecimalPlaces=q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(wr(e,0,to),t===void 0?t=n.rounding:wr(t,0,8),ve(r,e+Le(r)+1,t))};q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=hi(n,!0):(wr(e,0,to),t===void 0?t=i.rounding:wr(t,0,8),n=ve(new i(n),e+1,t),r=hi(n,!0,e+1)),r};q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?hi(i):(wr(e,0,to),t===void 0?t=a.rounding:wr(t,0,8),n=ve(new a(i),e+Le(i)+1,t),r=hi(n.abs(),!1,e+Le(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};q.toInteger=q.toint=function(){var e=this,t=e.constructor;return ve(new t(e),Le(e)+1,t.rounding)};q.toNumber=function(){return+this};q.toPower=q.pow=function(e){var t,r,n,i,a,o,l=this,s=l.constructor,u=12,d=+(e=new s(e));if(!e.s)return new s(Tt);if(l=new s(l),!l.s){if(e.s<1)throw Error(Yt+"Infinity");return l}if(l.eq(Tt))return l;if(n=s.precision,e.eq(Tt))return ve(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=d<0?-d:d)<=S2){for(i=new s(Tt),t=Math.ceil(n/je+4),_e=!1;r%2&&(i=i.times(l),Xx(i.d,t)),r=ro(r/2),r!==0;)l=l.times(l),Xx(l.d,t);return _e=!0,e.s<0?new s(Tt).div(i):ve(i,n)}}else if(a<0)throw Error(Yt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,_e=!1,i=e.times(wl(l,n+u)),_e=!0,i=P2(i),i.s=a,i};q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Le(i),n=hi(i,r<=a.toExpNeg||r>=a.toExpPos)):(wr(e,1,to),t===void 0?t=a.rounding:wr(t,0,8),i=ve(new a(i),e,t),r=Le(i),n=hi(i,e<=r||r<=a.toExpNeg,e)),n};q.toSignificantDigits=q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(wr(e,1,to),t===void 0?t=n.rounding:wr(t,0,8)),ve(new n(r),e,t)};q.toString=q.valueOf=q.val=q.toJSON=q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Le(e),r=e.constructor;return hi(e,t<=r.toExpNeg||t>=r.toExpPos)};function O2(e,t){var r,n,i,a,o,l,s,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),_e?ve(t,f):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,l=u.length):(n=u,i=o,l=s.length),o=Math.ceil(f/je),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=s.length,a=u.length,l-a<0&&(a=l,n=u,u=s,s=n),r=0;a;)r=(s[--a]=s[a]+u[a]+r)/qe|0,s[a]%=qe;for(r&&(s.unshift(r),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,_e?ve(t,f):t}function wr(e,t,r){if(e!==~~e||er)throw Error(ii+e)}function vr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(l=s=0;li[l]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var l,s,u,d,f,h,p,x,y,g,m,v,b,S,w,j,O,P,A=n.constructor,$=n.s==i.s?1:-1,k=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Yt+"Division by zero");for(s=n.e-i.e,O=T.length,w=k.length,p=new A($),x=p.d=[],u=0;T[u]==(k[u]||0);)++u;if(T[u]>(k[u]||0)&&--s,a==null?v=a=A.precision:o?v=a+(Le(n)-Le(i))+1:v=a,v<0)return new A(0);if(v=v/je+2|0,u=0,O==1)for(d=0,T=T[0],v++;(u1&&(T=e(T,d),k=e(k,d),O=T.length,w=k.length),S=O,y=k.slice(0,O),g=y.length;g=qe/2&&++j;do d=0,l=t(T,y,O,g),l<0?(m=y[0],O!=g&&(m=m*qe+(y[1]||0)),d=m/j|0,d>1?(d>=qe&&(d=qe-1),f=e(T,d),h=f.length,g=y.length,l=t(f,y,h,g),l==1&&(d--,r(f,O16)throw Error(ly+Le(e));if(!e.s)return new d(Tt);for(_e=!1,l=f,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Wn(2,u))/Math.LN10*2+5|0,l+=n,r=i=a=new d(Tt),d.precision=l;;){if(i=ve(i.times(e),l),r=r.times(++s),o=a.plus(Dr(i,r,l)),vr(o.d).slice(0,l)===vr(a.d).slice(0,l)){for(;u--;)a=ve(a.times(a),l);return d.precision=f,t==null?(_e=!0,ve(a,f)):a}a=o}}function Le(e){for(var t=e.e*je,r=e.d[0];r>=10;r/=10)t++;return t}function Td(e,t,r){if(t>e.LN10.sd())throw _e=!0,r&&(e.precision=r),Error(Yt+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function an(e){for(var t="";e--;)t+="0";return t}function wl(e,t){var r,n,i,a,o,l,s,u,d,f=1,h=10,p=e,x=p.d,y=p.constructor,g=y.precision;if(p.s<1)throw Error(Yt+(p.s?"NaN":"-Infinity"));if(p.eq(Tt))return new y(0);if(t==null?(_e=!1,u=g):u=t,p.eq(10))return t==null&&(_e=!0),Td(y,u);if(u+=h,y.precision=u,r=vr(x),n=r.charAt(0),a=Le(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=vr(p.d),n=r.charAt(0),f++;a=Le(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return s=Td(y,u+2,g).times(a+""),p=wl(new y(n+"."+r.slice(1)),u-h).plus(s),y.precision=g,t==null?(_e=!0,ve(p,g)):p;for(l=o=p=Dr(p.minus(Tt),p.plus(Tt),u),d=ve(p.times(p),u),i=3;;){if(o=ve(o.times(d),u),s=l.plus(Dr(o,new y(i),u)),vr(s.d).slice(0,u)===vr(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(Td(y,u+2,g).times(a+""))),l=Dr(l,new y(f),u),y.precision=g,t==null?(_e=!0,ve(l,g)):l;l=s,i+=2}}function qx(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=ro(r/je),e.d=[],n=(r+1)%je,r<0&&(n+=je),nKu||e.e<-Ku))throw Error(ly+r)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,r){var n,i,a,o,l,s,u,d,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=je,i=t,u=f[d=0];else{if(d=Math.ceil((n+1)/je),a=f.length,d>=a)return e;for(u=a=f[d],o=1;a>=10;a/=10)o++;n%=je,i=n-je+o}if(r!==void 0&&(a=Wn(10,o-i-1),l=u/a%10|0,s=t<0||f[d+1]!==void 0||u%a,s=r<4?(l||s)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||s||r==6&&(n>0?i>0?u/Wn(10,o-i):0:f[d-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=Le(e),f.length=1,t=t-a-1,f[0]=Wn(10,(je-t%je)%je),e.e=ro(-t/je)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=d,a=1,d--):(f.length=d+1,a=Wn(10,je-n),f[d]=i>0?(u/Wn(10,o-i)%Wn(10,i)|0)*a:0),s)for(;;)if(d==0){(f[0]+=a)==qe&&(f[0]=1,++e.e);break}else{if(f[d]+=a,f[d]!=qe)break;f[d--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(_e&&(e.e>Ku||e.e<-Ku))throw Error(ly+Le(e));return e}function _2(e,t){var r,n,i,a,o,l,s,u,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),_e?ve(t,p):t;if(s=e.d,f=t.d,n=t.e,u=e.e,s=s.slice(),o=u-n,o){for(d=o<0,d?(r=s,o=-o,l=f.length):(r=f,n=u,l=s.length),i=Math.max(Math.ceil(p/je),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,l=f.length,d=i0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]0?a=a.charAt(0)+"."+a.slice(1)+an(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+an(-i-1)+a,r&&(n=r-o)>0&&(a+=an(n))):i>=o?(a+=an(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+an(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=an(n))),e.s<0?"-"+a:a}function Xx(e,t){if(e.length>t)return e.length=t,!0}function A2(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(ii+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 qx(o,a.toString())}else if(typeof a!="string")throw Error(ii+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,nU.test(a))qx(o,a);else throw Error(ii+a)}if(i.prototype=q,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=A2,i.config=i.set=iU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ii+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ii+r+": "+n);return this}var sy=A2(rU);Tt=new sy(1);const pe=sy;function aU(e){return uU(e)||sU(e)||lU(e)||oU()}function oU(){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 lU(e,t){if(e){if(typeof e=="string")return bp(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 bp(e,t)}}function sU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uU(e){if(Array.isArray(e))return bp(e)}function bp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,Yx(function(){for(var l=arguments.length,s=new Array(l),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function OU(e){if(Array.isArray(e))return e}function N2(e){var t=jl(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function C2(e,t,r){if(e.lte(0))return new pe(0);var n=bf.getDigitCount(e.toNumber()),i=new pe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new pe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=l.mul(i);return t?s:new pe(Math.ceil(s))}function PU(e,t,r){var n=1,i=new pe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new pe(10).pow(bf.getDigitCount(e)-1),i=new pe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new pe(Math.floor(e)))}else e===0?i=new pe(Math.floor((t-1)/2)):r||(i=new pe(Math.floor(e)));var o=Math.floor((t-1)/2),l=hU(dU(function(s){return i.add(new pe(s-o).mul(n)).toNumber()}),wp);return l(0,t)}function M2(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 pe(0),tickMin:new pe(0),tickMax:new pe(0)};var a=C2(new pe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new pe(0):(o=new pe(e).add(t).div(2),o=o.sub(new pe(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new pe(t).sub(o).div(a).toNumber()),u=l+s+1;return u>r?M2(e,t,r,n,i+1):(u0?s+(r-u):s,l=t>0?l:l+(r-u)),{step:a,tickMin:o.sub(new pe(l).mul(a)),tickMax:o.add(new pe(s).mul(a))})}function _U(e){var t=jl(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),l=N2([r,n]),s=jl(l,2),u=s[0],d=s[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Sp(wp(0,i-1).map(function(){return 1/0}))):[].concat(Sp(wp(0,i-1).map(function(){return-1/0})),[d]);return r>n?jp(f):f}if(u===d)return PU(u,i,a);var h=M2(u,d,o,a),p=h.step,x=h.tickMin,y=h.tickMax,g=bf.rangeStep(x,y.add(new pe(.1).mul(p)),p);return r>n?jp(g):g}function AU(e,t){var r=jl(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=N2([n,i]),l=jl(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[n,i];if(s===u)return[s];var d=Math.max(t,2),f=C2(new pe(u).sub(s).div(d-1),a,0),h=[].concat(Sp(bf.rangeStep(new pe(s),new pe(u).sub(new pe(.99).mul(f)),f)),[u]);return n>i?jp(h):h}var EU=T2(_U),$U=T2(AU),TU="Invariant failed";function pi(e,t){throw new Error(TU)}var kU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ba(e){"@babel/helpers - typeof";return ba=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},ba(e)}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LU(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 BU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zU(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,u=0;u0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,h=u>=l-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(ft(f-d)!==ft(h-f)){var x=[];if(ft(h-f)===ft(s[1]-s[0])){p=h;var y=f+s[1]-s[0];x[0]=Math.min(y,(y+d)/2),x[1]=Math.max(y,(y+d)/2)}else{p=d;var g=h+s[1]-s[0];x[0]=Math.min(f,(g+f)/2),x[1]=Math.max(f,(g+f)/2)}var m=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>m[0]&&t<=m[1]||t>=x[0]&&t<=x[1]){o=i[u].index;break}}else{var v=Math.min(d,h),b=Math.max(d,h);if(t>(v+f)/2&&t<=(b+f)/2){o=i[u].index;break}}}else for(var S=0;S0&&S(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},uy=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},n7=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),s=0,u=l.length;s=0});if(m&&m.length){var v=m[0].type.defaultProps,b=v!==void 0?Ce(Ce({},v),m[0].props):m[0].props,S=b.barSize,w=b[g];o[w]||(o[w]=[]);var j=J(S)?r:S;o[w].push({item:m[0],stackList:m.slice(1),barSize:J(j)?void 0:dt(j,n,0)})}}return o},i7=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=dt(r,i,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/s,x=o.reduce(function(S,w){return S+w.barSize||0},0);x+=(s-1)*u,x>=i&&(x-=(s-1)*u,u=0),x>=i&&p>0&&(h=!0,p*=.9,x=s*p);var y=(i-x)/2>>0,g={offset:y-u,size:0};d=o.reduce(function(S,w){var j={item:w.item,position:{offset:g.offset+g.size+u,size:h?p:w.barSize}},O=[].concat(Jx(S),[j]);return g=O[O.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(P){O.push({item:P,position:g})}),O},f)}else{var m=dt(n,i,0,!0);i-2*m-(s-1)*u<=0&&(u=0);var v=(i-2*m-(s-1)*u)/s;v>1&&(v>>=0);var b=l===+l?Math.min(v,l):v;d=o.reduce(function(S,w,j){var O=[].concat(Jx(S),[{item:w.item,position:{offset:m+(v+u)*j+(v-b)/2,size:b}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},f)}return d},a7=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,s=o-(l.left||0)-(l.right||0),u=L2({children:a,legendWidth:s});if(u){var d=i||{},f=d.width,h=d.height,p=u.align,x=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&x==="middle")&&p!=="center"&&U(t[p]))return Ce(Ce({},t),{},ea({},p,t[p]+(f||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&x!=="middle"&&U(t[x]))return Ce(Ce({},t),{},ea({},x,t[x]+(h||0)))}return t},o7=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},B2=function(t,r,n,i,a){var o=r.props.children,l=Gt(o,wf).filter(function(u){return o7(i,a,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=He(d,n);if(J(f))return u;var h=Array.isArray(f)?[gf(f),dn(f)]:[f,f],p=s.reduce(function(x,y){var g=He(d,y,0),m=h[0]-Math.abs(Array.isArray(g)?g[0]:g),v=h[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(m,x[0]),Math.max(v,x[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},l7=function(t,r,n,i,a){var o=r.map(function(l){return B2(t,l,n,a,i)}).filter(function(l){return!J(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},z2=function(t,r,n,i,a){var o=r.map(function(s){var u=s.props.dataKey;return n==="number"&&u&&B2(t,s,u,i)||zo(t,u,n,a)});if(n==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var d=0,f=u.length;d=2?ft(l[0]-l[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return d.filter(function(f){return!Xa(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},kd=new WeakMap,$s=function(t,r){if(typeof r!="function")return t;kd.has(t)||kd.set(t,new WeakMap);var n=kd.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},W2=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:ml(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Uu(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bo(),realScaleType:"point"}:a==="category"?{scale:ml(),realScaleType:"band"}:{scale:Uu(),realScaleType:"linear"};if(ci(i)){var s="scale".concat(rf(i));return{scale:(Gx[s]||Bo)(),realScaleType:Gx[s]?s:"point"}}return Z(i)?{scale:i}:{scale:Bo(),realScaleType:"point"}},tb=1e-4,H2=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])-tb,o=Math.max(i[0],i[1])+tb,l=t(r[0]),s=t(r[n-1]);(lo||so)&&t.domain([r[0],r[n-1]])}},s7=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[l][n][0]=a,t[l][n][1]=a+s,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+s,o=t[l][n][1])}},f7=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},d7={sign:c7,expand:kI,none:fa,silhouette:NI,wiggle:CI,positive:f7},h7=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=d7[n],o=TI().keys(i).value(function(l,s){return+He(l,s,0)}).order(Qh).offset(a);return o(t)},p7=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,s={},u=l.reduce(function(f,h){var p,x=(p=h.type)!==null&&p!==void 0&&p.defaultProps?Ce(Ce({},h.type.defaultProps),h.props):h.props,y=x.stackId,g=x.hide;if(g)return f;var m=x[n],v=f[m]||{hasStack:!1,stackGroups:{}};if(Ke(y)){var b=v.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),v.hasStack=!0,v.stackGroups[y]=b}else v.stackGroups[Ya("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Ce(Ce({},f),{},ea({},m,v))},s),d={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var x={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,g){var m=p.stackGroups[g];return Ce(Ce({},y),{},ea({},g,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:h7(t,m.items,a)}))},x)}return Ce(Ce({},f),{},ea({},h,p))},d)},V2=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=EU(u,a,l);return t.domain([gf(d),dn(d)]),{niceTicks:d}}if(a&&i==="number"){var f=t.domain(),h=$U(f,a,l);return{niceTicks:h}}return null};function rb(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&&!J(i[t.dataKey])){var l=bu(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=He(i,J(o)?t.dataKey:o);return J(s)?null:t.scale(s)}var nb=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var s=He(o,r.dataKey,r.domain[l]);return J(s)?null:r.scale(s)-a/2+i},v7=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]},m7=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ke(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},y7=function(t){return t.reduce(function(r,n){return[gf(n.concat([r[0]]).filter(U)),dn(n.concat([r[1]]).filter(U))]},[1/0,-1/0])},K2=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,s=l.reduce(function(u,d){var f=y7(d.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},ib=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ab=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ap=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(U(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(ib.test(t[0])){var a=+ib.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(U(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(ab.test(t[1])){var o=+ab.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Xu=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=Rm(r,function(f){return f.coordinate}),o=1/0,l=1,s=a.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},_7=function(t,r,n,i,a){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,d=dt(t.cx,o,o/2),f=dt(t.cy,l,l/2),h=X2(o,l,n),p=dt(t.innerRadius,h,0),x=dt(t.outerRadius,h,h*.8),y=Object.keys(r);return y.reduce(function(g,m){var v=r[m],b=v.domain,S=v.reversed,w;if(J(v.range))i==="angleAxis"?w=[s,u]:i==="radiusAxis"&&(w=[p,x]),S&&(w=[w[1],w[0]]);else{w=v.range;var j=w,O=b7(j,2);s=O[0],u=O[1]}var P=W2(v,a),A=P.realScaleType,$=P.scale;$.domain(b).range(w),H2($);var k=V2($,Ar(Ar({},v),{},{realScaleType:A})),T=Ar(Ar(Ar({},v),k),{},{range:w,radius:x,realScaleType:A,scale:$,cx:d,cy:f,innerRadius:p,outerRadius:x,startAngle:s,endAngle:u});return Ar(Ar({},g),{},q2({},m,T))},{})},A7=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))},E7=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=A7({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var s=(n-a)/l,u=Math.acos(s);return i>o&&(u=2*Math.PI-u),{radius:l,angle:P7(u),angleInRadian:u}},$7=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}},T7=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},ub=function(t,r){var n=t.x,i=t.y,a=E7({x:n,y:i},r),o=a.radius,l=a.angle,s=r.innerRadius,u=r.outerRadius;if(ou)return!1;if(o===0)return!0;var d=$7(r),f=d.startAngle,h=d.endAngle,p=l,x;if(f<=h){for(;p>h;)p-=360;for(;p=f&&p<=h}else{for(;p>f;)p-=360;for(;p=h&&p<=f}return x?Ar(Ar({},r),{},{radius:o,angle:T7(p,r)}):null},Y2=function(t){return!E.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}var k7=["offset"];function N7(e){return D7(e)||I7(e)||M7(e)||C7()}function C7(){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 M7(e,t){if(e){if(typeof e=="string")return Ep(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 Ep(e,t)}}function I7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function D7(e){if(Array.isArray(e))return Ep(e)}function Ep(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L7(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 cb(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 Ue(e){for(var t=1;t=0?1:-1,b,S;i==="insideStart"?(b=p+v*o,S=y):i==="insideEnd"?(b=x-v*o,S=!y):i==="end"&&(b=x+v*o,S=y),S=m<=0?S:!S;var w=xe(u,d,g,b),j=xe(u,d,g,b+(S?1:-1)*359),O="M".concat(w.x,",").concat(w.y,` A`).concat(g,",").concat(g,",0,1,").concat(S?0:1,`, `).concat(j.x,",").concat(j.y),P=J(t.id)?Ya("recharts-radial-line-"):t.id;return _.createElement("text",Al({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",l)}),_.createElement("defs",null,_.createElement("path",{id:P,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(P)},r))},V7=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,s=a.innerRadius,u=a.outerRadius,d=a.startAngle,f=a.endAngle,h=(d+f)/2;if(i==="outside"){var p=xe(o,l,u+n,h),x=p.x,y=p.y;return{x,y,textAnchor:x>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(s+u)/2,m=xe(o,l,g,h),v=m.x,b=m.y;return{x:v,y:b,textAnchor:"middle",verticalAnchor:"middle"}},K7=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,s=o.y,u=o.width,d=o.height,f=d>=0?1:-1,h=f*i,p=f>0?"end":"start",x=f>0?"start":"end",y=u>=0?1:-1,g=y*i,m=y>0?"end":"start",v=y>0?"start":"end";if(a==="top"){var b={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:p};return Ue(Ue({},b),n?{height:Math.max(s-n.y,0),width:u}:{})}if(a==="bottom"){var S={x:l+u/2,y:s+d+h,textAnchor:"middle",verticalAnchor:x};return Ue(Ue({},S),n?{height:Math.max(n.y+n.height-(s+d),0),width:u}:{})}if(a==="left"){var w={x:l-g,y:s+d/2,textAnchor:m,verticalAnchor:"middle"};return Ue(Ue({},w),n?{width:Math.max(w.x-n.x,0),height:d}:{})}if(a==="right"){var j={x:l+u+g,y:s+d/2,textAnchor:v,verticalAnchor:"middle"};return Ue(Ue({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:d}:{})}var O=n?{width:u,height:d}:{};return a==="insideLeft"?Ue({x:l+g,y:s+d/2,textAnchor:v,verticalAnchor:"middle"},O):a==="insideRight"?Ue({x:l+u-g,y:s+d/2,textAnchor:m,verticalAnchor:"middle"},O):a==="insideTop"?Ue({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:x},O):a==="insideBottom"?Ue({x:l+u/2,y:s+d-h,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Ue({x:l+g,y:s+h,textAnchor:v,verticalAnchor:x},O):a==="insideTopRight"?Ue({x:l+u-g,y:s+h,textAnchor:m,verticalAnchor:x},O):a==="insideBottomLeft"?Ue({x:l+g,y:s+d-h,textAnchor:v,verticalAnchor:p},O):a==="insideBottomRight"?Ue({x:l+u-g,y:s+d-h,textAnchor:m,verticalAnchor:p},O):Va(a)&&(U(a.x)||qn(a.x))&&(U(a.y)||qn(a.y))?Ue({x:l+dt(a.x,u),y:s+dt(a.y,d),textAnchor:"end",verticalAnchor:"end"},O):Ue({x:l+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},O)},G7=function(t){return"cx"in t&&U(t.cx)};function Ye(e){var t=e.offset,r=t===void 0?5:t,n=R7(e,k7),i=Ue({offset:r},n),a=i.viewBox,o=i.position,l=i.value,s=i.children,u=i.content,d=i.className,f=d===void 0?"":d,h=i.textBreakAll;if(!a||J(l)&&J(s)&&!E.isValidElement(u)&&!Z(u))return null;if(E.isValidElement(u))return E.cloneElement(u,i);var p;if(Z(u)){if(p=E.createElement(u,i),E.isValidElement(p))return p}else p=U7(i);var x=G7(a),y=X(i,!0);if(x&&(o==="insideStart"||o==="insideEnd"||o==="end"))return H7(i,p,y);var g=x?V7(i):K7(i);return _.createElement(di,Al({className:te("recharts-label",f)},y,g,{breakAll:h}),p)}Ye.displayName="Label";var Q2=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,d=t.outerRadius,f=t.x,h=t.y,p=t.top,x=t.left,y=t.width,g=t.height,m=t.clockWise,v=t.labelViewBox;if(v)return v;if(U(y)&&U(g)){if(U(f)&&U(h))return{x:f,y:h,width:y,height:g};if(U(p)&&U(x))return{x:p,y:x,width:y,height:g}}return U(f)&&U(h)?{x:f,y:h,width:0,height:0}:U(r)&&U(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:d||s||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},q7=function(t,r){return t?t===!0?_.createElement(Ye,{key:"label-implicit",viewBox:r}):Ke(t)?_.createElement(Ye,{key:"label-implicit",viewBox:r,value:t}):E.isValidElement(t)?t.type===Ye?E.cloneElement(t,{key:"label-implicit",viewBox:r}):_.createElement(Ye,{key:"label-implicit",content:t,viewBox:r}):Z(t)?_.createElement(Ye,{key:"label-implicit",content:t,viewBox:r}):Va(t)?_.createElement(Ye,Al({viewBox:r},t,{key:"label-implicit"})):null:null},X7=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=Q2(t),o=Gt(i,Ye).map(function(s,u){return E.cloneElement(s,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var l=q7(t.label,r||a);return[l].concat(N7(o))};Ye.parseViewBox=Q2;Ye.renderCallByParent=X7;function Y7(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Q7=Y7;const Z7=de(Q7);function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}var J7=["valueAccessor"],eW=["data","dataKey","clockWise","id","textBreakAll"];function tW(e){return aW(e)||iW(e)||nW(e)||rW()}function rW(){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 nW(e,t){if(e){if(typeof e=="string")return $p(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 $p(e,t)}}function iW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aW(e){if(Array.isArray(e))return $p(e)}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uW(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 cW=function(t){return Array.isArray(t.value)?Z7(t.value):t.value};function Rr(e){var t=e.valueAccessor,r=t===void 0?cW:t,n=hb(e,J7),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,s=n.textBreakAll,u=hb(n,eW);return!i||!i.length?null:_.createElement(ae,{className:"recharts-label-list"},i.map(function(d,f){var h=J(a)?r(d,f):He(d&&d.payload,a),p=J(l)?{}:{id:"".concat(l,"-").concat(f)};return _.createElement(Ye,Qu({},X(d,!0),u,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:s,viewBox:Ye.parseViewBox(J(o)?d:db(db({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Rr.displayName="LabelList";function fW(e,t){return e?e===!0?_.createElement(Rr,{key:"labelList-implicit",data:t}):_.isValidElement(e)||Z(e)?_.createElement(Rr,{key:"labelList-implicit",data:t,content:e}):Va(e)?_.createElement(Rr,Qu({data:t},e,{key:"labelList-implicit"})):null:null}function dW(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=Gt(n,Rr).map(function(o,l){return E.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=fW(e.label,t);return[a].concat(tW(i))}Rr.renderCallByParent=dW;function $l(e){"@babel/helpers - typeof";return $l=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},$l(e)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, `).concat(f.x,",").concat(f.y,` `);if(i>0){var p=xe(r,n,i,o),x=xe(r,n,i,u);h+="L ".concat(x.x,",").concat(x.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`, `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},yW=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=ft(d-u),h=Ts({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,x=h.lineTangency,y=h.theta,g=Ts({cx:r,cy:n,radius:a,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:s}),m=g.circleTangency,v=g.lineTangency,b=g.theta,S=s?Math.abs(u-d):Math.abs(u-d)-y-b;if(S<0)return l?"M ".concat(x.x,",").concat(x.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 `):Z2({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:d});var w="M ".concat(x.x,",").concat(x.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,` A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(m.x,",").concat(m.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,` `);if(i>0){var j=Ts({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),O=j.circleTangency,P=j.lineTangency,A=j.theta,$=Ts({cx:r,cy:n,radius:i,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=$.circleTangency,T=$.lineTangency,I=$.theta,D=s?Math.abs(u-d):Math.abs(u-d)-A-I;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(+(f<0),",").concat(k.x,",").concat(k.y,` A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},gW={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},J2=function(t){var r=vb(vb({},gW),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,s=r.forceCornerRadius,u=r.cornerIsExternal,d=r.startAngle,f=r.endAngle,h=r.className;if(o0&&Math.abs(d-f)<360?g=yW({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,x/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}):g=Z2({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:d,endAngle:f}),_.createElement("path",Tp({},X(r,!0),{className:p,d:g,role:"img"}))};function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;tkW.call(e,t));function ji(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const MW="__v",IW="__o",DW="_owner",{getOwnPropertyDescriptor:bb,keys:wb}=Object;function RW(e,t){return e.byteLength===t.byteLength&&Zu(new Uint8Array(e),new Uint8Array(t))}function LW(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function BW(e,t){return e.byteLength===t.byteLength&&Zu(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function zW(e,t){return ji(e.getTime(),t.getTime())}function FW(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function UW(e,t){return e===t}function jb(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,l,s=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let d=!1,f=0;for(;(l=u.next())&&!l.done;){if(i[f]){f++;continue}const h=o.value,p=l.value;if(r.equals(h[0],p[0],s,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){d=i[f]=!0;break}f++}if(!d)return!1;s++}return!0}const WW=ji;function HW(e,t,r){const n=wb(e);let i=n.length;if(wb(t).length!==i)return!1;for(;i-- >0;)if(!nP(e,t,r,n[i]))return!1;return!0}function wo(e,t,r){const n=xb(e);let i=n.length;if(xb(t).length!==i)return!1;let a,o,l;for(;i-- >0;)if(a=n[i],!nP(e,t,r,a)||(o=bb(e,a),l=bb(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function VW(e,t){return ji(e.valueOf(),t.valueOf())}function KW(e,t){return e.source===t.source&&e.flags===t.flags}function Sb(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const s=t.values();let u=!1,d=0;for(;(l=s.next())&&!l.done;){if(!i[d]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){u=i[d]=!0;break}d++}if(!u)return!1}return!0}function Zu(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function GW(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function nP(e,t,r,n){return(n===DW||n===IW||n===MW)&&(e.$$typeof||t.$$typeof)?!0:CW(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const qW="[object ArrayBuffer]",XW="[object Arguments]",YW="[object Boolean]",QW="[object DataView]",ZW="[object Date]",JW="[object Error]",eH="[object Map]",tH="[object Number]",rH="[object Object]",nH="[object RegExp]",iH="[object Set]",aH="[object String]",oH={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},lH="[object URL]",sH=Object.prototype.toString;function uH({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:x}){return function(g,m,v){if(g===m)return!0;if(g==null||m==null)return!1;const b=typeof g;if(b!==typeof m)return!1;if(b!=="object")return b==="number"?l(g,m,v):b==="function"?a(g,m,v):!1;const S=g.constructor;if(S!==m.constructor)return!1;if(S===Object)return s(g,m,v);if(Array.isArray(g))return t(g,m,v);if(S===Date)return n(g,m,v);if(S===RegExp)return d(g,m,v);if(S===Map)return o(g,m,v);if(S===Set)return f(g,m,v);const w=sH.call(g);if(w===ZW)return n(g,m,v);if(w===nH)return d(g,m,v);if(w===eH)return o(g,m,v);if(w===iH)return f(g,m,v);if(w===rH)return typeof g.then!="function"&&typeof m.then!="function"&&s(g,m,v);if(w===lH)return p(g,m,v);if(w===JW)return i(g,m,v);if(w===XW)return s(g,m,v);if(oH[w])return h(g,m,v);if(w===qW)return e(g,m,v);if(w===QW)return r(g,m,v);if(w===YW||w===tH||w===aH)return u(g,m,v);if(x){let j=x[w];if(!j){const O=NW(g);O&&(j=x[O])}if(j)return j(g,m,v)}return!1}}function cH({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:RW,areArraysEqual:r?wo:LW,areDataViewsEqual:BW,areDatesEqual:zW,areErrorsEqual:FW,areFunctionsEqual:UW,areMapsEqual:r?Nd(jb,wo):jb,areNumbersEqual:WW,areObjectsEqual:r?wo:HW,arePrimitiveWrappersEqual:VW,areRegExpsEqual:KW,areSetsEqual:r?Nd(Sb,wo):Sb,areTypedArraysEqual:r?Nd(Zu,wo):Zu,areUrlsEqual:GW,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Ns(n.areArraysEqual),a=Ns(n.areMapsEqual),o=Ns(n.areObjectsEqual),l=Ns(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return n}function fH(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function dH({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(l,s){const{cache:u=e?new WeakMap:void 0,meta:d}=r();return t(l,s,{cache:u,equals:n,meta:d,strict:i})};if(e)return function(l,s){return t(l,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(l,s){return t(l,s,a)}}const hH=Nn();Nn({strict:!0});Nn({circular:!0});Nn({circular:!0,strict:!0});Nn({createInternalComparator:()=>ji});Nn({strict:!0,createInternalComparator:()=>ji});Nn({circular:!0,createInternalComparator:()=>ji});Nn({circular:!0,createInternalComparator:()=>ji,strict:!0});function Nn(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=cH(e),o=uH(a),l=r?r(o):fH(o);return dH({circular:t,comparator:o,createState:n,equals:l,strict:i})}function pH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Ob(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):pH(i)};requestAnimationFrame(n)}function Np(e){"@babel/helpers - typeof";return Np=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},Np(e)}function vH(e){return xH(e)||gH(e)||yH(e)||mH()}function mH(){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 yH(e,t){if(e){if(typeof e=="string")return Pb(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 Pb(e,t)}}function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},y=function(m){for(var v=m>1?1:m,b=v,S=0;S<8;++S){var w=f(b)-v,j=p(b);if(Math.abs(w-v)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,l=o===void 0?17:o,s=function(d,f,h){var p=-(d-f)*n,x=h*a,y=h+(p-x)*l/1e3,g=h*l/1e3+d;return Math.abs(g-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Cd(e){return eV(e)||JH(e)||ZH(e)||QH()}function QH(){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 ZH(e,t){if(e){if(typeof e=="string")return Rp(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 Rp(e,t)}}function JH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eV(e){if(Array.isArray(e))return Rp(e)}function Rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tc(e)}var jr=function(e){aV(r,e);var t=oV(r);function r(n,i){var a;tV(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,s=o.attributeName,u=o.from,d=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(zp(a)),a.changeStyle=a.changeStyle.bind(zp(a)),!l||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:d}),Bp(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Bp(a);a.state={style:s?Eo({},s,u):u}}else a.state={style:{}};return a}return nV(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,l=a.canBegin,s=a.attributeName,u=a.shouldReAnimate,d=a.to,f=a.from,h=this.state.style;if(l){if(!o){var p={style:s?Eo({},s,d):d};this.state&&h&&(s&&h[s]!==d||!s&&h!==d)&&this.setState(p);return}if(!(hH(i.to,d)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=x||u?f:i.to;if(this.state&&h){var g={style:s?Eo({},s,y):y};(s&&h[s]!==y||!s&&h!==y)&&this.setState(g)}this.runAnimation(er(er({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,s=i.duration,u=i.easing,d=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=GH(o,l,DH(u),s,this.changeStyle),x=function(){a.stopJSAnimation=p()};this.manager.start([h,d,x,s,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,s=i.onAnimationStart,u=o[0],d=u.style,f=u.duration,h=f===void 0?0:f,p=function(y,g,m){if(m===0)return y;var v=g.duration,b=g.easing,S=b===void 0?"ease":b,w=g.style,j=g.properties,O=g.onAnimationEnd,P=m>0?o[m-1]:g,A=j||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(Cd(y),[a.runJSAnimation.bind(a,{from:P.style,to:w,duration:v,easing:S}),v]);var $=Eb(A,v,S),k=er(er(er({},P.style),w),{},{transition:$});return[].concat(Cd(y),[k,v,O]).filter(OH)};return this.manager.start([s].concat(Cd(o.reduce(p,[d,Math.max(h,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=bH());var a=i.begin,o=i.duration,l=i.attributeName,s=i.to,u=i.easing,d=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=l?Eo({},l,s):s,g=Eb(Object.keys(y),o,u);x.start([d,a,er(er({},y),{},{transition:g}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=XH(i,qH),u=E.Children.count(a),d=this.state.style;if(typeof a=="function")return a(d);if(!l||u===0||o<=0)return a;var f=function(p){var x=p.props,y=x.style,g=y===void 0?{}:y,m=x.className,v=E.cloneElement(p,er(er({},s),{},{style:er(er({},g),d),className:m}));return v};return u===1?f(E.Children.only(a)):_.createElement("div",null,E.Children.map(a,function(h){return f(h)}))}}]),r}(E.PureComponent);jr.displayName="Animate";jr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};jr.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};function Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,s=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,d;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;ho?o:a[h];d="M".concat(t,",").concat(r+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(r)),d+="L ".concat(t+n-s*f[1],",").concat(r),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, `).concat(t+n,",").concat(r+l*f[1])),d+="L ".concat(t+n,",").concat(r+i-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, `).concat(t+n-s*f[2],",").concat(r+i)),d+="L ".concat(t+s*f[3],",").concat(r+i),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, `).concat(t,",").concat(r+i-l*f[3])),d+="Z"}else if(o>0&&a===+a&&a>0){var x=Math.min(o,a);d="M ".concat(t,",").concat(r+l*x,` A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+s*x,",").concat(r,` L `).concat(t+n-s*x,",").concat(r,` A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+n,",").concat(r+l*x,` L `).concat(t+n,",").concat(r+i-l*x,` A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+n-s*x,",").concat(r+i,` L `).concat(t+s*x,",").concat(r+i,` A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(r+i-l*x," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return d},mV=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,s=r.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(a,a+l),d=Math.max(a,a+l),f=Math.min(o,o+s),h=Math.max(o,o+s);return n>=u&&n<=d&&i>=f&&i<=h}return!1},yV={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cy=function(t){var r=Db(Db({},yV),t),n=E.useRef(),i=E.useState(-1),a=sV(i,2),o=a[0],l=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var s=r.x,u=r.y,d=r.width,f=r.height,h=r.radius,p=r.className,x=r.animationEasing,y=r.animationDuration,g=r.animationBegin,m=r.isAnimationActive,v=r.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var b=te("recharts-rectangle",p);return v?_.createElement(jr,{canBegin:o>0,from:{width:d,height:f,x:s,y:u},to:{width:d,height:f,x:s,y:u},duration:y,animationEasing:x,isActive:v},function(S){var w=S.width,j=S.height,O=S.x,P=S.y;return _.createElement(jr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:y,isActive:m,easing:x},_.createElement("path",rc({},X(r,!0),{className:b,d:Rb(O,P,w,j,h),ref:n})))}):_.createElement("path",rc({},X(r,!0),{className:b,d:Rb(s,u,d,f,h)}))},gV=["points","className","baseLinePoints","connectNulls"];function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bV(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 Lb(e){return OV(e)||SV(e)||jV(e)||wV()}function wV(){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 jV(e,t){if(e){if(typeof e=="string")return Fp(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 Fp(e,t)}}function SV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OV(e){if(Array.isArray(e))return Fp(e)}function Fp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Bb(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Bb(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Uo=function(t,r){var n=PV(t);r&&(n=[n.reduce(function(a,o){return[].concat(Lb(a),Lb(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},_V=function(t,r,n){var i=Uo(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Uo(r.reverse(),n).slice(1))},AV=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=xV(t,gV);if(!r||!r.length)return null;var l=te("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",u=_V(r,i,a);return _.createElement("g",{className:l},_.createElement("path",Fi({},X(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?_.createElement("path",Fi({},X(o,!0),{fill:"none",d:Uo(r,a)})):null,s?_.createElement("path",Fi({},X(o,!0),{fill:"none",d:Uo(i,a)})):null)}var d=Uo(r,a);return _.createElement("path",Fi({},X(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MV(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 IV=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},DV=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,d=t.width,f=d===void 0?0:d,h=t.height,p=h===void 0?0:h,x=t.className,y=CV(t,EV),g=$V({x:n,y:a,top:l,left:u,width:f,height:p},y);return!U(n)||!U(a)||!U(f)||!U(p)||!U(l)||!U(u)?null:_.createElement("path",Wp({},X(g,!0),{className:te("recharts-cross",x),d:IV(n,a,f,p,l,u)}))},RV=yf,LV=w2,BV=Or;function zV(e,t){return e&&e.length?RV(e,BV(t),LV):void 0}var FV=zV;const UV=de(FV);var WV=yf,HV=Or,VV=j2;function KV(e,t){return e&&e.length?WV(e,HV(t),VV):void 0}var GV=KV;const qV=de(GV);var XV=["cx","cy","angle","ticks","axisLine"],YV=["ticks","tick","angle","tickFormatter","stroke"];function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QV(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 ZV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wb(e,t){for(var r=0;rKb?o=i==="outer"?"start":"end":a<-Kb?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,l=n.axisLine,s=n.axisLineType,u=Ln(Ln({},X(this.props,!1)),{},{fill:"none"},X(l,!1));if(s==="circle")return _.createElement(jf,Hn({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var d=this.props.ticks,f=d.map(function(h){return xe(i,a,o,h.coordinate)});return _.createElement(AV,Hn({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,s=i.tickFormatter,u=i.stroke,d=X(this.props,!1),f=X(o,!1),h=Ln(Ln({},d),{},{fill:"none"},X(l,!1)),p=a.map(function(x,y){var g=n.getTickLineCoord(x),m=n.getTickTextAnchor(x),v=Ln(Ln(Ln({textAnchor:m},d),{},{stroke:"none",fill:u},f),{},{index:y,payload:x,x:g.x2,y:g.y2});return _.createElement(ae,Hn({className:te("recharts-polar-angle-axis-tick",Y2(o)),key:"tick-".concat(x.coordinate)},fi(n.props,x,y)),l&&_.createElement("line",Hn({className:"recharts-polar-angle-axis-tick-line"},h,g)),o&&t.renderTickItem(o,v,s?s(x.value,y):x.value))});return _.createElement(ae,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:_.createElement(ae,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return _.isValidElement(n)?o=_.cloneElement(n,i):Z(n)?o=n(i):o=_.createElement(di,Hn({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(E.PureComponent);Pf(_f,"displayName","PolarAngleAxis");Pf(_f,"axisType","angleAxis");Pf(_f,"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 hK=gO,pK=hK(Object.getPrototypeOf,Object),vK=pK,mK=Xr,yK=vK,gK=Yr,xK="[object Object]",bK=Function.prototype,wK=Object.prototype,pP=bK.toString,jK=wK.hasOwnProperty,SK=pP.call(Object);function OK(e){if(!gK(e)||mK(e)!=xK)return!1;var t=yK(e);if(t===null)return!0;var r=jK.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&pP.call(r)==SK}var PK=OK;const _K=de(PK);var AK=Xr,EK=Yr,$K="[object Boolean]";function TK(e){return e===!0||e===!1||EK(e)&&AK(e)==$K}var kK=TK;const NK=de(kK);function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:d,lowerWidth:f,height:h,x:s,y:u},duration:y,animationEasing:x,isActive:m},function(b){var S=b.upperWidth,w=b.lowerWidth,j=b.height,O=b.x,P=b.y;return _.createElement(jr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:y,easing:x},_.createElement("path",ac({},X(r,!0),{className:v,d:Yb(O,P,S,w,j),ref:n})))}):_.createElement("g",null,_.createElement("path",ac({},X(r,!0),{className:v,d:Yb(s,u,d,f,h)})))},WK=["option","shapeType","propTransformer","activeClassName","isActive"];function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}function HK(e,t){if(e==null)return{};var r=VK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qb(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 oc(e){for(var t=1;t0?Ct(b,"paddingAngle",0):0;if(w){var O=bt(w.endAngle-w.startAngle,b.endAngle-b.startAngle),P=me(me({},b),{},{startAngle:v+j,endAngle:v+O(y)+j});g.push(P),v=P.endAngle}else{var A=b.endAngle,$=b.startAngle,k=bt(0,A-$),T=k(y),I=me(me({},b),{},{startAngle:v+j,endAngle:v+T+j});g.push(I),v=I.endAngle}}),_.createElement(ae,null,n.renderSectorsStatically(g))})}},{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 l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!xa(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,l=i.className,s=i.label,u=i.cx,d=i.cy,f=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,x=this.state.isAnimationFinished;if(a||!o||!o.length||!U(u)||!U(d)||!U(f)||!U(h))return null;var y=te("recharts-pie",l);return _.createElement(ae,{tabIndex:this.props.rootTabIndex,className:y,ref:function(m){n.pieRef=m}},this.renderSectors(),s&&this.renderLabels(o),Ye.renderCallByParent(this.props,null,!1),(!p||x)&&Rr.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=360?v:v-1)*s,S=g-v*p-b,w=i.reduce(function(P,A){var $=He(A,m,0);return P+(U($)?$:0)},0),j;if(w>0){var O;j=i.map(function(P,A){var $=He(P,m,0),k=He(P,d,A),T=(U($)?$:0)/w,I;A?I=O.endAngle+ft(y)*s*($!==0?1:0):I=o;var D=I+ft(y)*(($!==0?p:0)+T*S),M=(I+D)/2,L=(x.innerRadius+x.outerRadius)/2,z=[{name:k,value:$,payload:P,dataKey:m,type:h}],N=xe(x.cx,x.cy,L,M);return O=me(me(me({percent:T,cornerRadius:a,name:k,tooltipPayload:z,midAngle:M,middleRadius:L,tooltipPosition:N},P),x),{},{value:He(P,m),startAngle:I,endAngle:D,payload:P,paddingAngle:ft(y)*s}),O})}return me(me({},x),{},{sectors:j,data:i})});var dG=Math.ceil,hG=Math.max;function pG(e,t,r,n){for(var i=-1,a=hG(dG((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var vG=pG,mG=RO,t1=1/0,yG=17976931348623157e292;function gG(e){if(!e)return e===0?e:0;if(e=mG(e),e===t1||e===-t1){var t=e<0?-1:1;return t*yG}return e===e?e:0}var gP=gG,xG=vG,bG=uf,Md=gP;function wG(e){return function(t,r,n){return n&&typeof n!="number"&&bG(t,r,n)&&(r=n=void 0),t=Md(t),r===void 0?(r=t,t=0):r=Md(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),At(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),At(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),At(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),At(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),At(n,"handleSlideDragStart",function(i){var a=o1(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 IG(t,e),kG(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,l=this.props,s=l.gap,u=l.data,d=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),x=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:x===d?d:x-x%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,s=He(a[n],l,n);return Z(o)?o(s,n):s}},{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,l=i.endX,s=this.props,u=s.x,d=s.width,f=s.travellerWidth,h=s.startIndex,p=s.endIndex,x=s.onChange,y=n.pageX-a;y>0?y=Math.min(y,u+d-f-l,u+d-f-o):y<0&&(y=Math.max(y,u-o,u-l));var g=this.getIndex({startX:o+y,endX:l+y});(g.startIndex!==h||g.endIndex!==p)&&x&&x(g),this.setState({startX:o+y,endX:l+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=o1(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,l=i.endX,s=i.startX,u=this.state[o],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,x=d.onChange,y=d.gap,g=d.data,m={startX:this.state.startX,endX:this.state.endX},v=n.pageX-a;v>0?v=Math.min(v,f+h-p-u):v<0&&(v=Math.max(v,f-u)),m[o]=u+v;var b=this.getIndex(m),S=b.startIndex,w=b.endIndex,j=function(){var P=g.length-1;return o==="startX"&&(l>s?S%y===0:w%y===0)||ls?w%y===0:S%y===0)||l>s&&w===P};this.setState(At(At({},o,u+v),"brushMoveStartX",n.pageX),function(){x&&j()&&x(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,d=this.state[i],f=l.indexOf(d);if(f!==-1){var h=f+n;if(!(h===-1||h>=l.length)){var p=l[h];i==="startX"&&p>=u||i==="endX"&&p<=s||this.setState(At({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,s=n.fill,u=n.stroke;return _.createElement("rect",{stroke:u,fill:s,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,s=n.data,u=n.children,d=n.padding,f=E.Children.only(u);return f?_.cloneElement(f,{x:i,y:a,width:o,height:l,margin:d,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,s=this.props,u=s.y,d=s.travellerWidth,f=s.height,h=s.traveller,p=s.ariaLabel,x=s.data,y=s.startIndex,g=s.endIndex,m=Math.max(n,this.props.x),v=Id(Id({},X(this.props,!1)),{},{x:m,y:u,width:d,height:f}),b=p||"Min value: ".concat((a=x[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=x[g])===null||o===void 0?void 0:o.name);return _.createElement(ae,{tabIndex:0,role:"slider","aria-label":b,"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(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,v))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,s=a.stroke,u=a.travellerWidth,d=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:d,y:o,width:f,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,s=n.travellerWidth,u=n.stroke,d=this.state,f=d.startX,h=d.endX,p=5,x={pointerEvents:"none",fill:u};return _.createElement(ae,{className:"recharts-brush-texts"},_.createElement(di,uc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+l/2},x),this.getTextOfTick(i)),_.createElement(di,uc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+s+p,y:o+l/2},x),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,s=n.y,u=n.width,d=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,x=h.endX,y=h.isTextActive,g=h.isSlideMoving,m=h.isTravellerMoving,v=h.isTravellerFocused;if(!i||!i.length||!U(l)||!U(s)||!U(u)||!U(d)||u<=0||d<=0)return null;var b=te("recharts-brush",a),S=_.Children.count(o)===1,w=$G("userSelect","none");return _.createElement(ae,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,x),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(x,"endX"),(y||g||m||v||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,s=n.stroke,u=Math.floor(a+l/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:i,y:a,width:o,height:l,fill:s,stroke:"none"}),_.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),_.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 _.isValidElement(n)?a=_.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,s=n.travellerWidth,u=n.updateId,d=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Id({prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},a&&a.length?RG({data:a,width:o,x:l,travellerWidth:s,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([l,l+o-s]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var s=Math.floor((o+l)/2);n[s]>i?l=s:o=s}return i>=n[l]?l:o}}])}(E.PureComponent);At(_a,"displayName","Brush");At(_a,"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 LG=Dm;function BG(e,t){var r;return LG(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var zG=BG,FG=cO,UG=Or,WG=zG,HG=_t,VG=uf;function KG(e,t,r){var n=HG(e)?FG:WG;return r&&VG(e,t,r)&&(t=void 0),n(e,UG(t))}var GG=KG;const qG=de(GG);var br=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},l1=NO;function XG(e,t,r){t=="__proto__"&&l1?l1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var YG=XG,QG=YG,ZG=TO,JG=Or;function eq(e,t){var r={};return t=JG(t),ZG(e,function(n,i,a){QG(r,i,t(n,i,a))}),r}var tq=eq;const rq=de(tq);function nq(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bq(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 wq(e,t){var r=e.x,n=e.y,i=xq(e,vq),a="".concat(r),o=parseInt(a,10),l="".concat(n),s=parseInt(l,10),u="".concat(t.height||i.height),d=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return jo(jo(jo(jo(jo({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function u1(e){return _.createElement(vP,qp({shapeType:"rectangle",propTransformer:wq,activeClassName:"recharts-active-bar"},e))}var jq=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=U(n)||WC(n);return a?t(n,i):(a||pi(),r)}},Sq=["value","background"],SP;function Aa(e){"@babel/helpers - typeof";return Aa=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},Aa(e)}function Oq(e,t){if(e==null)return{};var r=Pq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pq(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 fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(D)0&&(I=Math.min((oe||0)-(D[Oe-1]||0),I))}),Number.isFinite(I)){var M=I/T,L=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(O=M*L/2),y.padding==="no-gap"){var z=dt(t.barCategoryGap,M*L),N=M*L/2;O=N-z-(N-z)/L*z}}}i==="xAxis"?P=[n.left+(b.left||0)+(O||0),n.left+n.width-(b.right||0)-(O||0)]:i==="yAxis"?P=s==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(O||0),n.top+n.height-(b.bottom||0)-(O||0)]:P=y.range,w&&(P=[P[1],P[0]]);var R=W2(y,a,h),B=R.scale,V=R.realScaleType;B.domain(m).range(P),H2(B);var H=V2(B,ir(ir({},y),{},{realScaleType:V}));i==="xAxis"?(k=g==="top"&&!S||g==="bottom"&&S,A=n.left,$=f[j]-k*y.height):i==="yAxis"&&(k=g==="left"&&!S||g==="right"&&S,A=f[j]-k*y.width,$=n.top);var Y=ir(ir(ir({},y),H),{},{realScaleType:V,x:A,y:$,scale:B,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return Y.bandSize=Xu(Y,H),!y.hide&&i==="xAxis"?f[j]+=(k?-1:1)*Y.height:y.hide||(f[j]+=(k?-1:1)*Y.width),ir(ir({},p),{},$f({},x,Y))},{})},AP=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)}},Rq=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return AP({x:r,y:n},{x:i,y:a})},EP=function(){function e(t){Cq(this,e),this.scale=t}return Mq(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 l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}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)}}])}();$f(EP,"EPS",1e-4);var fy=function(t){var r=Object.keys(t).reduce(function(n,i){return ir(ir({},n),{},$f({},i,EP.create(t[i])))},{});return ir(ir({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return rq(i,function(s,u){return r[u].apply(s,{bandAware:o,position:l})})},isInRange:function(i){return jP(i,function(a,o){return r[o].isInRange(a)})}})};function Lq(e){return(e%180+180)%180}var Bq=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Lq(i),o=a*Math.PI/180,l=Math.atan(n/r),s=o>l&&o-1?i[a?t[o]:o]:void 0}}var Hq=Wq,Vq=gP;function Kq(e){var t=Vq(e),r=t%1;return t===t?r?t-r:t:0}var Gq=Kq,qq=OO,Xq=Or,Yq=Gq,Qq=Math.max;function Zq(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Yq(r);return i<0&&(i=Qq(n+i,0)),qq(e,Xq(t),i)}var Jq=Zq,eX=Hq,tX=Jq,rX=eX(tX),nX=rX;const iX=de(nX);var aX=XN(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("")}),dy=E.createContext(void 0),hy=E.createContext(void 0),$P=E.createContext(void 0),TP=E.createContext({}),kP=E.createContext(void 0),NP=E.createContext(0),CP=E.createContext(0),p1=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,d=aX(a);return _.createElement(dy.Provider,{value:n},_.createElement(hy.Provider,{value:i},_.createElement(TP.Provider,{value:a},_.createElement($P.Provider,{value:d},_.createElement(kP.Provider,{value:o},_.createElement(NP.Provider,{value:u},_.createElement(CP.Provider,{value:s},l)))))))},oX=function(){return E.useContext(kP)},MP=function(t){var r=E.useContext(dy);r==null&&pi();var n=r[t];return n==null&&pi(),n},lX=function(){var t=E.useContext(dy);return sn(t)},sX=function(){var t=E.useContext(hy),r=iX(t,function(n){return jP(n.domain,Number.isFinite)});return r||sn(t)},IP=function(t){var r=E.useContext(hy);r==null&&pi();var n=r[t];return n==null&&pi(),n},uX=function(){var t=E.useContext($P);return t},cX=function(){return E.useContext(TP)},py=function(){return E.useContext(CP)},vy=function(){return E.useContext(NP)};function Ea(e){"@babel/helpers - typeof";return Ea=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},Ea(e)}function fX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dX(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function GX(e,t){return UP(e,t+1)}function qX(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,s=0,u=1,d=o,f=function(){var x=n==null?void 0:n[s];if(x===void 0)return{v:UP(n,u)};var y=s,g,m=function(){return g===void 0&&(g=r(x,y)),g},v=x.coordinate,b=s===0||mc(e,v,m,d,l);b||(s=0,d=o,u+=1),b&&(d=v+e*(m()/2+i),s+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function j1(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 ot(e){for(var t=1;t0?p.coordinate-g*e:p.coordinate})}else a[h]=p=ot(ot({},p),{},{tickCoord:p.coordinate});var m=mc(e,p.tickCoord,y,l,s);m&&(s=p.tickCoord-e*(y()/2+i),a[h]=ot(ot({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return a}function JX(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,s=t.start,u=t.end;if(a){var d=n[l-1],f=r(d,l-1),h=e*(d.coordinate+e*f/2-u);o[l-1]=d=ot(ot({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=mc(e,d.tickCoord,function(){return f},s,u);p&&(u=d.tickCoord-e*(f/2+i),o[l-1]=ot(ot({},d),{},{isShow:!0}))}for(var x=a?l-1:l,y=function(v){var b=o[v],S,w=function(){return S===void 0&&(S=r(b,v)),S};if(v===0){var j=e*(b.coordinate-e*w()/2-s);o[v]=b=ot(ot({},b),{},{tickCoord:j<0?b.coordinate-j*e:b.coordinate})}else o[v]=b=ot(ot({},b),{},{tickCoord:b.coordinate});var O=mc(e,b.tickCoord,w,s,u);O&&(s=b.tickCoord+e*(w()/2+i),o[v]=ot(ot({},b),{},{isShow:!0}))},g=0;g=2?ft(i[1].coordinate-i[0].coordinate):1,m=KX(a,g,p);return s==="equidistantPreserveStart"?qX(g,m,y,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=JX(g,m,y,i,o,s==="preserveStartEnd"):h=ZX(g,m,y,i,o),h.filter(function(v){return v.isShow}))}var eY=["viewBox"],tY=["viewBox"],rY=["ticks"];function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nY(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 iY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O1(e,t){for(var r=0;r0?s(this.props):s(p)),o<=0||l<=0||!x||!x.length?null:_.createElement(ae,{className:te("recharts-cartesian-axis",u),ref:function(g){n.layerReference=g}},a&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),Ye.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=te(i.className,"recharts-cartesian-axis-tick-value");return _.isValidElement(n)?o=_.cloneElement(n,Fe(Fe({},i),{},{className:l})):Z(n)?o=n(Fe(Fe({},i),{},{className:l})):o=_.createElement(di,Wi({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(E.Component);xy(no,"displayName","CartesianAxis");xy(no,"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 fY=["x1","y1","x2","y2","key"],dY=["offset"];function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}function P1(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 st(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mY(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 yY=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,l=t.height,s=t.ry;return _.createElement("rect",{x:i,y:a,ry:s,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function VP(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(Z(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.key,s=_1(t,fY),u=X(s,!1);u.offset;var d=_1(u,dY);r=_.createElement("line",Qn({},d,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:l}))}return r}function gY(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(l,s){var u=st(st({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(s),index:s});return VP(i,u)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function xY(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(l,s){var u=st(st({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(s),index:s});return VP(i,u)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function bY(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,s=e.horizontal,u=s===void 0?!0:s;if(!u||!t||!t.length)return null;var d=l.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var x=!d[p+1],y=x?i+o-h:d[p+1]-h;if(y<=0)return null;var g=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:y,width:a,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function wY(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,s=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var d=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var x=!d[p+1],y=x?a+l-h:d[p+1]-h;if(y<=0)return null;var g=p%n.length;return _.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:y,height:s,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var jY=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return U2(gy(st(st(st({},no.defaultProps),n),{},{ticks:Cr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},SY=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return U2(gy(st(st(st({},no.defaultProps),n),{},{ticks:Cr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ai={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function KP(e){var t,r,n,i,a,o,l=py(),s=vy(),u=cX(),d=st(st({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ai.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ai.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ai.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ai.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ai.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ai.verticalFill,x:U(e.x)?e.x:u.left,y:U(e.y)?e.y:u.top,width:U(e.width)?e.width:u.width,height:U(e.height)?e.height:u.height}),f=d.x,h=d.y,p=d.width,x=d.height,y=d.syncWithTicks,g=d.horizontalValues,m=d.verticalValues,v=lX(),b=sX();if(!U(p)||p<=0||!U(x)||x<=0||!U(f)||f!==+f||!U(h)||h!==+h)return null;var S=d.verticalCoordinatesGenerator||jY,w=d.horizontalCoordinatesGenerator||SY,j=d.horizontalPoints,O=d.verticalPoints;if((!j||!j.length)&&Z(w)){var P=g&&g.length,A=w({yAxis:b?st(st({},b),{},{ticks:P?g:b.ticks}):void 0,width:l,height:s,offset:u},P?!0:y);ur(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(vi(A),"]")),Array.isArray(A)&&(j=A)}if((!O||!O.length)&&Z(S)){var $=m&&m.length,k=S({xAxis:v?st(st({},v),{},{ticks:$?m:v.ticks}):void 0,width:l,height:s,offset:u},$?!0:y);ur(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(vi(k),"]")),Array.isArray(k)&&(O=k)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(yY,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),_.createElement(gY,Qn({},d,{offset:u,horizontalPoints:j,xAxis:v,yAxis:b})),_.createElement(xY,Qn({},d,{offset:u,verticalPoints:O,xAxis:v,yAxis:b})),_.createElement(bY,Qn({},d,{horizontalPoints:j})),_.createElement(wY,Qn({},d,{verticalPoints:O})))}KP.displayName="CartesianGrid";var OY=["layout","type","stroke","connectNulls","isRange","ref"],PY=["key"],GP;function Na(e){"@babel/helpers - typeof";return Na=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},Na(e)}function qP(e,t){if(e==null)return{};var r=_Y(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _Y(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 Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!xa(d,o)||!xa(f,l))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,l,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,l=i.points,s=i.className,u=i.top,d=i.left,f=i.xAxis,h=i.yAxis,p=i.width,x=i.height,y=i.isAnimationActive,g=i.id;if(a||!l||!l.length)return null;var m=this.state.isAnimationFinished,v=l.length===1,b=te("recharts-area",s),S=f&&f.allowDataOverflow,w=h&&h.allowDataOverflow,j=S||w,O=J(g)?this.id:g,P=(n=X(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=P.r,$=A===void 0?3:A,k=P.strokeWidth,T=k===void 0?2:k,I=tM(o)?o:{},D=I.clipDot,M=D===void 0?!0:D,L=$*2+T;return _.createElement(ae,{className:b},S||w?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(O)},_.createElement("rect",{x:S?d:d-p/2,y:w?u:u-x/2,width:S?p:p*2,height:w?x:x*2})),!M&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:d-L/2,y:u-L/2,width:p+L,height:x+L}))):null,v?null:this.renderArea(j,O),(o||v)&&this.renderDots(j,M,O),(!y||m)&&Rr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(E.PureComponent);GP=Cn;mr(Cn,"displayName","Area");mr(Cn,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!xi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});mr(Cn,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,l=o??a;if(U(l)&&typeof l=="number")return l;var s=i==="horizontal"?n:r,u=s.scale.domain();if(s.type==="number"){var d=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return l==="dataMin"?f:l==="dataMax"||d<0?d:Math.max(Math.min(u[0],u[1]),0)}return l==="dataMin"?u[0]:l==="dataMax"?u[1]:u[0]});mr(Cn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,s=e.dataKey,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,x=u&&u.length,y=GP.getBaseValue(t,r,n,i),g=p==="horizontal",m=!1,v=f.map(function(S,w){var j;x?j=u[d+w]:(j=He(S,s),Array.isArray(j)?m=!0:j=[y,j]);var O=j[1]==null||x&&He(S,s)==null;return g?{x:rb({axis:n,ticks:a,bandSize:l,entry:S,index:w}),y:O?null:i.scale(j[1]),value:j,payload:S}:{x:O?null:n.scale(j[1]),y:rb({axis:i,ticks:o,bandSize:l,entry:S,index:w}),value:j,payload:S}}),b;return x||m?b=v.map(function(S){var w=Array.isArray(S.value)?S.value[0]:null;return g?{x:S.x,y:w!=null&&S.y!=null?i.scale(w):null}:{x:w!=null?n.scale(w):null,y:S.y}}):b=g?i.scale(y):n.scale(y),tn({points:v,baseLine:b,layout:p,isRange:m},h)});mr(Cn,"renderDotItem",function(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(Z(e))r=e(t);else{var n=te("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=qP(t,PY);r=_.createElement(jf,Zn({},a,{key:i,className:n}))}return r});function Ca(e){"@babel/helpers - typeof";return Ca=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},Ca(e)}function MY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IY(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wQ(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 jQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SQ(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&U(i)&&U(a)?t.slice(i,a+1):[]};function c_(e){return e==="number"?[0,"auto"]:void 0}var dv=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=Df(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(s,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;h=bu(p,o.dataKey,i)}else h=f&&f[n]||l[n];return h?[].concat(Da(s),[G2(u,h)]):s},[])},M1=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=IQ(a,n),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,d=r7(o,l,u,s);if(d>=0&&u){var f=u[d]&&u[d].value,h=dv(t,r,d,f),p=DQ(n,l,d,a);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},RQ=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,h=t.stackOffset,p=F2(d,a);return n.reduce(function(x,y){var g,m=y.type.defaultProps!==void 0?C(C({},y.type.defaultProps),y.props):y.props,v=m.type,b=m.dataKey,S=m.allowDataOverflow,w=m.allowDuplicatedCategory,j=m.scale,O=m.ticks,P=m.includeHidden,A=m[o];if(x[A])return x;var $=Df(t.data,{graphicalItems:i.filter(function(H){var Y,oe=o in H.props?H.props[o]:(Y=H.type.defaultProps)===null||Y===void 0?void 0:Y[o];return oe===A}),dataStartIndex:s,dataEndIndex:u}),k=$.length,T,I,D;uQ(m.domain,S,v)&&(T=Ap(m.domain,null,S),p&&(v==="number"||j!=="auto")&&(D=zo($,b,"category")));var M=c_(v);if(!T||T.length===0){var L,z=(L=m.domain)!==null&&L!==void 0?L:M;if(b){if(T=zo($,b,v),v==="category"&&p){var N=VC(T);w&&N?(I=T,T=sc(0,k)):w||(T=ob(z,T,y).reduce(function(H,Y){return H.indexOf(Y)>=0?H:[].concat(Da(H),[Y])},[]))}else if(v==="category")w?T=T.filter(function(H){return H!==""&&!J(H)}):T=ob(z,T,y).reduce(function(H,Y){return H.indexOf(Y)>=0||Y===""||J(Y)?H:[].concat(Da(H),[Y])},[]);else if(v==="number"){var R=l7($,i.filter(function(H){var Y,oe,Oe=o in H.props?H.props[o]:(Y=H.type.defaultProps)===null||Y===void 0?void 0:Y[o],Me="hide"in H.props?H.props.hide:(oe=H.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return Oe===A&&(P||!Me)}),b,a,d);R&&(T=R)}p&&(v==="number"||j!=="auto")&&(D=zo($,b,"category"))}else p?T=sc(0,k):l&&l[A]&&l[A].hasStack&&v==="number"?T=h==="expand"?[0,1]:K2(l[A].stackGroups,s,u):T=z2($,i.filter(function(H){var Y=o in H.props?H.props[o]:H.type.defaultProps[o],oe="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return Y===A&&(P||!oe)}),v,d,!0);if(v==="number")T=uv(f,T,A,a,O),z&&(T=Ap(z,T,S));else if(v==="category"&&z){var B=z,V=T.every(function(H){return B.indexOf(H)>=0});V&&(T=B)}}return C(C({},x),{},Q({},A,C(C({},m),{},{axisType:a,domain:T,categoricalDomain:D,duplicateDomain:I,originalDomain:(g=m.domain)!==null&&g!==void 0?g:M,isCategorical:p,layout:d})))},{})},LQ=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,h=Df(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),p=h.length,x=F2(d,a),y=-1;return n.reduce(function(g,m){var v=m.type.defaultProps!==void 0?C(C({},m.type.defaultProps),m.props):m.props,b=v[o],S=c_("number");if(!g[b]){y++;var w;return x?w=sc(0,p):l&&l[b]&&l[b].hasStack?(w=K2(l[b].stackGroups,s,u),w=uv(f,w,b,a)):(w=Ap(S,z2(h,n.filter(function(j){var O,P,A=o in j.props?j.props[o]:(O=j.type.defaultProps)===null||O===void 0?void 0:O[o],$="hide"in j.props?j.props.hide:(P=j.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===b&&!$}),"number",d),i.defaultProps.allowDataOverflow),w=uv(f,w,b,a)),C(C({},g),{},Q({},b,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ct(CQ,"".concat(a,".").concat(y%2),null),domain:w,originalDomain:S,isCategorical:x,layout:d})))}return g},{})},BQ=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,d=t.children,f="".concat(i,"Id"),h=Gt(d,a),p={};return h&&h.length?p=RQ(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=LQ(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},zQ=function(t){var r=sn(t),n=Cr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Rm(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Xu(r,n)}},I1=function(t){var r=t.children,n=t.defaultShowTooltip,i=$t(r,_a),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}},FQ=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ir(r&&r.type);return n&&n.indexOf("Bar")>=0})},D1=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"}},UQ=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,s=l===void 0?{}:l,u=n.width,d=n.height,f=n.children,h=n.margin||{},p=$t(f,_a),x=$t(f,ri),y=Object.keys(s).reduce(function(w,j){var O=s[j],P=O.orientation;return!O.mirror&&!O.hide?C(C({},w),{},Q({},P,w[P]+O.width)):w},{left:h.left||0,right:h.right||0}),g=Object.keys(o).reduce(function(w,j){var O=o[j],P=O.orientation;return!O.mirror&&!O.hide?C(C({},w),{},Q({},P,Ct(w,"".concat(P))+O.height)):w},{top:h.top||0,bottom:h.bottom||0}),m=C(C({},g),y),v=m.bottom;p&&(m.bottom+=p.props.height||_a.defaultProps.height),x&&r&&(m=a7(m,i,n,r));var b=u-m.left-m.right,S=d-m.top-m.bottom;return C(C({brushBottom:v},m),{},{width:Math.max(b,0),height:Math.max(S,0)})},WQ=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},f_=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,h=function(m,v){var b=v.graphicalItems,S=v.stackGroups,w=v.offset,j=v.updateId,O=v.dataStartIndex,P=v.dataEndIndex,A=m.barSize,$=m.layout,k=m.barGap,T=m.barCategoryGap,I=m.maxBarSize,D=D1($),M=D.numericAxisName,L=D.cateAxisName,z=FQ(b),N=[];return b.forEach(function(R,B){var V=Df(m.data,{graphicalItems:[R],dataStartIndex:O,dataEndIndex:P}),H=R.type.defaultProps!==void 0?C(C({},R.type.defaultProps),R.props):R.props,Y=H.dataKey,oe=H.maxBarSize,Oe=H["".concat(M,"Id")],Me=H["".concat(L,"Id")],Rt={},yt=s.reduce(function(Mn,In){var Rf=v["".concat(In.axisType,"Map")],by=H["".concat(In.axisType,"Id")];Rf&&Rf[by]||In.axisType==="zAxis"||pi();var wy=Rf[by];return C(C({},Mn),{},Q(Q({},In.axisType,wy),"".concat(In.axisType,"Ticks"),Cr(wy)))},Rt),K=yt[L],ee=yt["".concat(L,"Ticks")],re=S&&S[Oe]&&S[Oe].hasStack&&m7(R,S[Oe].stackGroups),F=Ir(R.type).indexOf("Bar")>=0,ke=Xu(K,ee),le=[],Be=z&&n7({barSize:A,stackGroups:S,totalSize:WQ(yt,L)});if(F){var ze,gt,Jr=J(oe)?I:oe,Si=(ze=(gt=Xu(K,ee,!0))!==null&>!==void 0?gt:Jr)!==null&&ze!==void 0?ze:0;le=i7({barGap:k,barCategoryGap:T,bandSize:Si!==ke?Si:ke,sizeList:Be[Me],maxBarSize:Jr}),Si!==ke&&(le=le.map(function(Mn){return C(C({},Mn),{},{position:C(C({},Mn.position),{},{offset:Mn.position.offset-Si/2})})}))}var rs=R&&R.type&&R.type.getComposedData;rs&&N.push({props:C(C({},rs(C(C({},yt),{},{displayedData:V,props:m,dataKey:Y,item:R,bandSize:ke,barPosition:le,offset:w,stackedData:re,layout:$,dataStartIndex:O,dataEndIndex:P}))),{},Q(Q(Q({key:R.key||"item-".concat(B)},M,yt[M]),L,yt[L]),"animationId",j)),childIndex:iM(R,m.children),item:R})}),N},p=function(m,v){var b=m.props,S=m.dataStartIndex,w=m.dataEndIndex,j=m.updateId;if(!Zg({props:b}))return null;var O=b.children,P=b.layout,A=b.stackOffset,$=b.data,k=b.reverseStackOrder,T=D1(P),I=T.numericAxisName,D=T.cateAxisName,M=Gt(O,n),L=p7($,M,"".concat(I,"Id"),"".concat(D,"Id"),A,k),z=s.reduce(function(H,Y){var oe="".concat(Y.axisType,"Map");return C(C({},H),{},Q({},oe,BQ(b,C(C({},Y),{},{graphicalItems:M,stackGroups:Y.axisType===I&&L,dataStartIndex:S,dataEndIndex:w}))))},{}),N=UQ(C(C({},z),{},{props:b,graphicalItems:M}),v==null?void 0:v.legendBBox);Object.keys(z).forEach(function(H){z[H]=d(b,z[H],N,H.replace("Map",""),r)});var R=z["".concat(D,"Map")],B=zQ(R),V=h(b,C(C({},z),{},{dataStartIndex:S,dataEndIndex:w,updateId:j,graphicalItems:M,stackGroups:L,offset:N}));return C(C({formattedGraphicalItems:V,graphicalItems:M,offset:N,stackGroups:L},B),z)},x=function(g){function m(v){var b,S,w;return jQ(this,m),w=PQ(this,m,[v]),Q(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Q(w,"accessibilityManager",new sQ),Q(w,"handleLegendBBoxUpdate",function(j){if(j){var O=w.state,P=O.dataStartIndex,A=O.dataEndIndex,$=O.updateId;w.setState(C({legendBBox:j},p({props:w.props,dataStartIndex:P,dataEndIndex:A,updateId:$},C(C({},w.state),{},{legendBBox:j}))))}}),Q(w,"handleReceiveSyncEvent",function(j,O,P){if(w.props.syncId===j){if(P===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(O)}}),Q(w,"handleBrushChange",function(j){var O=j.startIndex,P=j.endIndex;if(O!==w.state.dataStartIndex||P!==w.state.dataEndIndex){var A=w.state.updateId;w.setState(function(){return C({dataStartIndex:O,dataEndIndex:P},p({props:w.props,dataStartIndex:O,dataEndIndex:P,updateId:A},w.state))}),w.triggerSyncEvent({dataStartIndex:O,dataEndIndex:P})}}),Q(w,"handleMouseEnter",function(j){var O=w.getMouseInfo(j);if(O){var P=C(C({},O),{},{isTooltipActive:!0});w.setState(P),w.triggerSyncEvent(P);var A=w.props.onMouseEnter;Z(A)&&A(P,j)}}),Q(w,"triggeredAfterMouseMove",function(j){var O=w.getMouseInfo(j),P=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(P),w.triggerSyncEvent(P);var A=w.props.onMouseMove;Z(A)&&A(P,j)}),Q(w,"handleItemMouseEnter",function(j){w.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),Q(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Q(w,"handleMouseMove",function(j){j.persist(),w.throttleTriggeredAfterMouseMove(j)}),Q(w,"handleMouseLeave",function(j){w.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};w.setState(O),w.triggerSyncEvent(O);var P=w.props.onMouseLeave;Z(P)&&P(O,j)}),Q(w,"handleOuterEvent",function(j){var O=nM(j),P=Ct(w.props,"".concat(O));if(O&&Z(P)){var A,$;/.*touch.*/i.test(O)?$=w.getMouseInfo(j.changedTouches[0]):$=w.getMouseInfo(j),P((A=$)!==null&&A!==void 0?A:{},j)}}),Q(w,"handleClick",function(j){var O=w.getMouseInfo(j);if(O){var P=C(C({},O),{},{isTooltipActive:!0});w.setState(P),w.triggerSyncEvent(P);var A=w.props.onClick;Z(A)&&A(P,j)}}),Q(w,"handleMouseDown",function(j){var O=w.props.onMouseDown;if(Z(O)){var P=w.getMouseInfo(j);O(P,j)}}),Q(w,"handleMouseUp",function(j){var O=w.props.onMouseUp;if(Z(O)){var P=w.getMouseInfo(j);O(P,j)}}),Q(w,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),Q(w,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.handleMouseDown(j.changedTouches[0])}),Q(w,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.handleMouseUp(j.changedTouches[0])}),Q(w,"handleDoubleClick",function(j){var O=w.props.onDoubleClick;if(Z(O)){var P=w.getMouseInfo(j);O(P,j)}}),Q(w,"handleContextMenu",function(j){var O=w.props.onContextMenu;if(Z(O)){var P=w.getMouseInfo(j);O(P,j)}}),Q(w,"triggerSyncEvent",function(j){w.props.syncId!==void 0&&Rd.emit(Ld,w.props.syncId,j,w.eventEmitterSymbol)}),Q(w,"applySyncEvent",function(j){var O=w.props,P=O.layout,A=O.syncMethod,$=w.state.updateId,k=j.dataStartIndex,T=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)w.setState(C({dataStartIndex:k,dataEndIndex:T},p({props:w.props,dataStartIndex:k,dataEndIndex:T,updateId:$},w.state)));else if(j.activeTooltipIndex!==void 0){var I=j.chartX,D=j.chartY,M=j.activeTooltipIndex,L=w.state,z=L.offset,N=L.tooltipTicks;if(!z)return;if(typeof A=="function")M=A(N,j);else if(A==="value"){M=-1;for(var R=0;R=0){var re,F;if(I.dataKey&&!I.allowDuplicatedCategory){var ke=typeof I.dataKey=="function"?ee:"payload.".concat(I.dataKey.toString());re=bu(R,ke,M),F=B&&V&&bu(V,ke,M)}else re=R==null?void 0:R[D],F=B&&V&&V[D];if(Me||Oe){var le=j.props.activeIndex!==void 0?j.props.activeIndex:D;return[E.cloneElement(j,C(C(C({},A.props),yt),{},{activeIndex:le})),null,null]}if(!J(re))return[K].concat(Da(w.renderActivePoints({item:A,activePoint:re,basePoint:F,childIndex:D,isRange:B})))}else{var Be,ze=(Be=w.getItemByXY(w.state.activeCoordinate))!==null&&Be!==void 0?Be:{graphicalItem:K},gt=ze.graphicalItem,Jr=gt.item,Si=Jr===void 0?j:Jr,rs=gt.childIndex,Mn=C(C(C({},A.props),yt),{},{activeIndex:rs});return[E.cloneElement(Si,Mn),null,null]}return B?[K,null,null]:[K,null]}),Q(w,"renderCustomized",function(j,O,P){return E.cloneElement(j,C(C({key:"recharts-customized-".concat(P)},w.props),w.state))}),Q(w,"renderMap",{CartesianGrid:{handler:Ms,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Ms},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Ms},YAxis:{handler:Ms},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((b=v.id)!==null&&b!==void 0?b:Ya("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=LO(w.triggeredAfterMouseMove,(S=v.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return EQ(m,g),OQ(m,[{key:"componentDidMount",value:function(){var b,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,S=b.children,w=b.data,j=b.height,O=b.layout,P=$t(S,nr);if(P){var A=P.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,k=dv(this.state,w,A,$),T=this.state.tooltipTicks[A].coordinate,I=(this.state.offset.top+j)/2,D=O==="horizontal",M=D?{x:T,y:I}:{y:T,x:I},L=this.state.formattedGraphicalItems.find(function(N){var R=N.item;return R.type.name==="Scatter"});L&&(M=C(C({},M),L.props.points[A].tooltipPosition),k=L.props.points[A].tooltipPayload);var z={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:$,activePayload:k,activeCoordinate:M};this.setState(z),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var w,j;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(b){Uh([$t(b.children,nr)],[$t(this.props.children,nr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=$t(this.props.children,nr);if(b&&typeof b.props.shared=="boolean"){var S=b.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),j=TB(w),O={chartX:Math.round(b.pageX-j.left),chartY:Math.round(b.pageY-j.top)},P=w.width/S.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,P);if(!A)return null;var $=this.state,k=$.xAxisMap,T=$.yAxisMap,I=this.getTooltipEventType(),D=M1(this.state,this.props.data,this.props.layout,A);if(I!=="axis"&&k&&T){var M=sn(k).scale,L=sn(T).scale,z=M&&M.invert?M.invert(O.chartX):null,N=L&&L.invert?L.invert(O.chartY):null;return C(C({},O),{},{xValue:z,yValue:N},D)}return D?C(C({},O),D):null}},{key:"inRange",value:function(b,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,O=b/w,P=S/w;if(j==="horizontal"||j==="vertical"){var A=this.state.offset,$=O>=A.left&&O<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return $?{x:O,y:P}:null}var k=this.state,T=k.angleAxisMap,I=k.radiusAxisMap;if(T&&I){var D=sn(T);return ub({x:O,y:P},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,S=this.getTooltipEventType(),w=$t(b,nr),j={};w&&S==="axis"&&(w.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=wu(this.props,this.handleOuterEvent);return C(C({},O),j)}},{key:"addListener",value:function(){Rd.on(Ld,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Rd.removeListener(Ld,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,S,w){for(var j=this.state.formattedGraphicalItems,O=0,P=j.length;O{const t={active:"badge-success",pending:"badge-warning",completed:"badge-info",shipped:"badge-info",processing:"badge-gray",cancelled:"badge-danger"};return c.jsx("span",{className:`badge ${t[e]||"badge-gray"}`,children:e})};function YQ(){const[e,t]=E.useState("6months");return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"لوحة التحكم"}),c.jsxs("select",{className:"form-select",style:{width:"auto"},value:e,onChange:r=>t(r.target.value),children:[c.jsx("option",{value:"7days",children:"آخر 7 أيام"}),c.jsx("option",{value:"30days",children:"آخر 30 يوم"}),c.jsx("option",{value:"6months",children:"آخر 6 أشهر"}),c.jsx("option",{value:"year",children:"السنة"})]})]}),c.jsx("div",{className:"stats-grid",children:XQ.map(r=>c.jsxs("div",{className:"stat-card",children:[c.jsxs("div",{className:"stat-card-header",children:[c.jsx("div",{className:`stat-card-icon ${r.color}`,children:c.jsx(r.icon,{size:24})}),c.jsxs("span",{className:`stat-card-change ${r.trend}`,children:[r.trend==="up"?c.jsx(cT,{size:16}):c.jsx(uT,{size:16}),r.change]})]}),c.jsx("div",{className:"stat-card-title",children:r.title}),c.jsx("div",{className:"stat-card-value",children:r.value})]},r.title))}),c.jsxs("div",{className:"charts-grid",children:[c.jsxs("div",{className:"chart-card",children:[c.jsxs("div",{className:"chart-header",children:[c.jsx("h3",{className:"chart-title",children:"الإيرادات والطلبات"}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{className:"btn btn-sm btn-outline",children:"الإيرادات"}),c.jsx("button",{className:"btn btn-sm btn-primary",children:"الطلبات"})]})]}),c.jsx(Q0,{width:"100%",height:300,children:c.jsxs(VQ,{data:KQ,children:[c.jsx("defs",{children:c.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[c.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),c.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]})}),c.jsx(KP,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),c.jsx(Mf,{dataKey:"month",stroke:"#9ca3af",fontSize:12}),c.jsx(If,{stroke:"#9ca3af",fontSize:12}),c.jsx(nr,{contentStyle:{borderRadius:8,border:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},formatter:r=>[`${r.toLocaleString()}`,"القيمة"]}),c.jsx(Cn,{type:"monotone",dataKey:"revenue",stroke:"#6366f1",strokeWidth:2,fill:"url(#colorRevenue)"})]})})]}),c.jsxs("div",{className:"chart-card",children:[c.jsx("div",{className:"chart-header",children:c.jsx("h3",{className:"chart-title",children:"توزيع المتاجر"})}),c.jsx(Q0,{width:"100%",height:240,children:c.jsxs(HQ,{children:[c.jsx(Zr,{data:R1,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",children:R1.map((r,n)=>c.jsx(cf,{fill:r.color},`cell-${n}`))}),c.jsx(nr,{}),c.jsx(ri,{layout:"vertical",align:"right",verticalAlign:"middle",iconSize:8,wrapperStyle:{fontSize:12}})]})})]})]}),c.jsxs("div",{className:"grid-2",children:[c.jsxs("div",{className:"table-card",children:[c.jsxs("div",{className:"table-header",children:[c.jsx("h3",{className:"table-title",children:"أفضل المتاجر"}),c.jsx(Ur,{to:"/stores",className:"btn btn-sm btn-outline",children:"عرض الكل"})]}),c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"الطلبات"}),c.jsx("th",{children:"الإيراد"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:GQ.map(r=>c.jsxs("tr",{children:[c.jsxs("td",{children:[c.jsx("div",{style:{fontWeight:500},children:r.name}),c.jsx("div",{style:{fontSize:12,color:"var(--gray-500)"},children:r.owner})]}),c.jsx("td",{children:r.stores.toLocaleString()}),c.jsx("td",{style:{fontWeight:500},children:r.revenue}),c.jsx("td",{children:L1(r.status)})]},r.name))})]})]}),c.jsxs("div",{className:"table-card",children:[c.jsxs("div",{className:"table-header",children:[c.jsx("h3",{className:"table-title",children:"أحدث الطلبات"}),c.jsx(Ur,{to:"/orders",className:"btn btn-sm btn-outline",children:"عرض الكل"})]}),c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم الطلب"}),c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"العميل"}),c.jsx("th",{children:"المبلغ"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:qQ.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace",fontSize:13},children:r.id}),c.jsx("td",{children:r.store}),c.jsx("td",{children:r.customer}),c.jsx("td",{style:{fontWeight:500},children:r.amount}),c.jsx("td",{children:L1(r.status)})]},r.id))})]})]})]})]})}const QQ=[{id:1,name:"متجر التقنية",owner:"خالد العمري",type:"إلكترونيات",plan:"premium",status:"active",orders:1245,rating:4.8,joined:"2024-01-15",revenue:45600},{id:2,name:"بيت الطعام",owner:"سارة المنصور",type:"مطاعم",plan:"professional",status:"active",orders:1089,rating:4.6,joined:"2024-02-20",revenue:38200},{id:3,name:"أزياء الأناقة",owner:"نورة الحربي",type:"ملابس",plan:"premium",status:"active",orders:987,rating:4.9,joined:"2024-03-10",revenue:32800},{id:4,name:"صيدلية الشفاء",owner:"د. محمد العتيبي",type:"صيدلية",plan:"basic",status:"active",orders:756,rating:4.5,joined:"2024-04-05",revenue:28400},{id:5,name:"مطبخ الخليج",owner:"فهد القحطاني",type:"مطاعم",plan:"professional",status:"pending",orders:645,rating:0,joined:"2024-05-01",revenue:24100},{id:6,name:"عطور النخلة",owner:"عبدالله السالم",type:"عطور",plan:"basic",status:"suspended",orders:432,rating:4.3,joined:"2024-03-15",revenue:18900},{id:7,name:"متجر الألعاب",owner:"تركي العتيبي",type:"ألعاب",plan:"professional",status:"active",orders:389,rating:4.7,joined:"2024-04-20",revenue:15600},{id:8,name:"كتب المعرفة",owner:"منى القحطاني",type:"كتب",plan:"basic",status:"active",orders:234,rating:4.4,joined:"2024-05-10",revenue:9800}],ZQ=e=>{const t={active:"badge-success",pending:"badge-warning",suspended:"badge-danger"};return c.jsx("span",{className:`badge ${t[e]||"badge-gray"}`,children:e==="active"?"نشط":e==="pending"?"معلق":"محظور"})},JQ=e=>{const t={basic:"badge-gray",professional:"badge-info",premium:"badge-success"};return c.jsx("span",{className:`badge ${t[e]||"badge-gray"}`,children:e})};function eZ(){const[e,t]=E.useState(""),[r,n]=E.useState("all"),i=QQ.filter(a=>{const o=a.name.includes(e)||a.owner.includes(e),l=r==="all"||a.status===r;return o&&l});return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"إدارة المتاجر"}),c.jsxs(Ur,{to:"/stores/create",className:"btn btn-primary",children:[c.jsx(Wa,{size:18})," إنشاء متجر"]})]}),c.jsxs("div",{className:"table-card",children:[c.jsx("div",{className:"table-header",children:c.jsxs("div",{style:{display:"flex",gap:12},children:[c.jsxs("div",{className:"search-box",style:{width:300},children:[c.jsx(fm,{size:18,color:"var(--gray-400)"}),c.jsx("input",{type:"text",placeholder:"بحث عن متجر...",value:e,onChange:a=>t(a.target.value)})]}),c.jsxs("select",{className:"form-select",style:{width:150},value:r,onChange:a=>n(a.target.value),children:[c.jsx("option",{value:"all",children:"كل الحالات"}),c.jsx("option",{value:"active",children:"نشط"}),c.jsx("option",{value:"pending",children:"معلق"}),c.jsx("option",{value:"suspended",children:"محظور"})]})]})}),c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"المالك"}),c.jsx("th",{children:"النوع"}),c.jsx("th",{children:"الباقة"}),c.jsx("th",{children:"الطلبات"}),c.jsx("th",{children:"التقييم"}),c.jsx("th",{children:"الإيراد"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:i.map(a=>c.jsxs("tr",{children:[c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx("div",{style:{width:40,height:40,borderRadius:8,background:"var(--gray-100)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18},children:"🏪"}),c.jsxs("div",{children:[c.jsx("div",{style:{fontWeight:500},children:a.name}),c.jsx("div",{style:{fontSize:12,color:"var(--gray-500)"},children:a.joined})]})]})}),c.jsx("td",{children:a.owner}),c.jsx("td",{children:a.type}),c.jsx("td",{children:JQ(a.plan)}),c.jsx("td",{children:a.orders.toLocaleString()}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[c.jsx(wS,{size:14,fill:"#f59e0b",color:"#f59e0b"}),c.jsx("span",{children:a.rating})]})}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",a.revenue.toLocaleString()]}),c.jsx("td",{children:ZQ(a.status)}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx(Ur,{to:`/stores/${a.id}`,className:"btn btn-sm btn-outline",children:c.jsx(ca,{size:14})}),a.status==="active"?c.jsx("button",{className:"btn btn-sm btn-danger",children:c.jsx(pS,{size:14})}):c.jsx("button",{className:"btn btn-sm btn-success",children:c.jsx(mS,{size:14})})]})})]},a.id))})]})]})]})}function tZ(){const e={name:"متجر التقنية",email:"khaled@techstore.com",phone:"+966 50 123 4567",address:"الرياض، حي العليا",type:"إلكترونيات",joined:"2024-01-15",stats:{totalOrders:1245,pendingOrders:12,totalRevenue:45600,avgRating:4.8,totalProducts:156}};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[c.jsx(Ur,{to:"/stores",className:"btn btn-outline btn-sm",children:"← العودة"}),c.jsx("h1",{className:"page-title",children:e.name}),c.jsx("span",{className:"badge badge-success",children:"نشط"})]}),c.jsxs("div",{style:{display:"flex",gap:12},children:[c.jsx("button",{className:"btn btn-outline",children:"تعديل"}),c.jsx("button",{className:"btn btn-danger",children:"حظر"})]})]}),c.jsxs("div",{className:"grid-2",style:{marginBottom:24},children:[c.jsxs("div",{className:"chart-card",children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:20},children:"معلومات المتجر"}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(cm,{size:18,color:"var(--gray-400)"}),c.jsx("span",{children:e.type})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(gS,{size:18,color:"var(--gray-400)"}),c.jsx("span",{children:e.email})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(bS,{size:18,color:"var(--gray-400)"}),c.jsx("span",{children:e.phone})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(xS,{size:18,color:"var(--gray-400)"}),c.jsx("span",{children:e.address})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(vS,{size:18,color:"var(--gray-400)"}),c.jsxs("span",{children:["انضم: ",e.joined]})]})]})]}),c.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"إجمالي الطلبات"}),c.jsx("div",{className:"stat-card-value",children:e.stats.totalOrders})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"طلبات معلقة"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--warning)"},children:e.stats.pendingOrders})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"الإيراد الكلي"}),c.jsxs("div",{className:"stat-card-value",children:["₼ ",e.stats.totalRevenue.toLocaleString()]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"التقييم"}),c.jsxs("div",{className:"stat-card-value",style:{display:"flex",alignItems:"center",gap:8},children:[c.jsx(wS,{size:24,fill:"#f59e0b",color:"#f59e0b"}),e.stats.avgRating]})]})]})]}),c.jsxs("div",{className:"table-card",children:[c.jsx("div",{className:"table-header",children:c.jsxs("h3",{className:"table-title",children:["المنتجات (",e.stats.totalProducts,")"]})}),c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"المنتج"}),c.jsx("th",{children:"السعر"}),c.jsx("th",{children:"المخزون"}),c.jsx("th",{children:"المبيعات"})]})}),c.jsx("tbody",{children:[{name:"آيفون 15 برو",price:4500,stock:25,sales:156},{name:"سماعات إيربودز",price:850,stock:50,sales:230},{name:"شاحن لاسلكي",price:180,stock:100,sales:89}].map(t=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:t.name}),c.jsxs("td",{children:["₼ ",t.price]}),c.jsx("td",{children:t.stock}),c.jsx("td",{children:t.sales})]},t.name))})]})]})]})}function rZ(){const[e,t]=E.useState(1);return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"page-header",children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[c.jsx(Ur,{to:"/stores",className:"btn btn-outline btn-sm",children:"← العودة"}),c.jsx("h1",{className:"page-title",children:"إنشاء متجر جديد"})]})}),c.jsxs("div",{className:"chart-card",style:{maxWidth:700},children:[c.jsx("div",{style:{display:"flex",marginBottom:32},children:[1,2,3,4].map(r=>c.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:8},children:[c.jsx("div",{style:{width:36,height:36,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:r<=e?"var(--primary)":"var(--gray-200)",color:r<=e?"white":"var(--gray-500)",fontWeight:600},children:r}),c.jsx("span",{style:{fontSize:14,color:r<=e?"var(--gray-900)":"var(--gray-400)"},children:r===1?"المعلومات":r===2?"المالك":r===3?"الباقة":"مراجعة"}),r<4&&c.jsx("div",{style:{flex:1,height:2,background:rt(2),children:["التالي ",c.jsx(Q$,{size:16})]})})]}),e===2&&c.jsxs("div",{children:[c.jsx("h3",{style:{marginBottom:24},children:"معلومات المالك"}),c.jsxs("div",{className:"grid-2",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"الاسم الأول"}),c.jsx("input",{type:"text",className:"form-input"})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"الاسم الأخير"}),c.jsx("input",{type:"text",className:"form-input"})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"البريد الإلكتروني"}),c.jsx("input",{type:"email",className:"form-input"})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"رقم الجوال"}),c.jsx("input",{type:"tel",className:"form-input"})]}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[c.jsx("button",{className:"btn btn-outline",onClick:()=>t(1),children:"السابق"}),c.jsx("button",{className:"btn btn-primary",onClick:()=>t(3),children:"التالي"})]})]}),e===3&&c.jsxs("div",{children:[c.jsx("h3",{style:{marginBottom:24},children:"اختر الباقة"}),c.jsx("div",{className:"grid-3",children:[{name:"أساسية",price:"99",features:["100 منتج","API أساسية","دعم عبر البريد"]},{name:"احترافية",price:"299",features:["500 منتج","API متقدمة","دعم 24/7","تقارير متقدمة"]},{name:"مميزة",price:"599",features:["منتجات غير محدودة","API كاملة","مدير حساب","تقارير شاملة"]}].map(r=>c.jsxs("div",{style:{padding:24,border:"2px solid var(--gray-200)",borderRadius:12,cursor:"pointer",transition:"all 0.2s"},children:[c.jsx("h4",{style:{fontSize:18,fontWeight:600,marginBottom:8},children:r.name}),c.jsxs("div",{style:{fontSize:32,fontWeight:700,color:"var(--primary)",marginBottom:16},children:["₼ ",r.price,c.jsx("span",{style:{fontSize:14,color:"var(--gray-500)"},children:"/شهرياً"})]}),c.jsx("ul",{style:{listStyle:"none",display:"flex",flexDirection:"column",gap:8},children:r.features.map(n=>c.jsxs("li",{style:{display:"flex",alignItems:"center",gap:8},children:[c.jsx("span",{style:{color:"var(--success)"},children:"✓"})," ",n]},n))})]},r.name))}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:32},children:[c.jsx("button",{className:"btn btn-outline",onClick:()=>t(2),children:"السابق"}),c.jsx("button",{className:"btn btn-primary",onClick:()=>t(4),children:"التالي"})]})]}),e===4&&c.jsxs("div",{children:[c.jsx("h3",{style:{marginBottom:24},children:"مراجعة وإنشاء"}),c.jsxs("div",{style:{background:"var(--gray-50)",borderRadius:12,padding:24},children:[c.jsx("h4",{style:{marginBottom:16},children:"ملخص المتجر"}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16},children:[c.jsxs("div",{children:[c.jsx("span",{style:{color:"var(--gray-500)"},children:"الاسم:"})," متجر التقنية"]}),c.jsxs("div",{children:[c.jsx("span",{style:{color:"var(--gray-500)"},children:"الرابط:"})," tech-store"]}),c.jsxs("div",{children:[c.jsx("span",{style:{color:"var(--gray-500)"},children:"النوع:"})," إلكترونيات"]}),c.jsxs("div",{children:[c.jsx("span",{style:{color:"var(--gray-500)"},children:"الباقة:"})," احترافية"]})]})]}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:32},children:[c.jsx("button",{className:"btn btn-outline",onClick:()=>t(3),children:"السابق"}),c.jsx("button",{className:"btn btn-success",children:"إنشاء المتجر"})]})]})]})]})}const So=[{id:1,name:"أحمد السعيد",email:"ahmed@example.com",phone:"+966 50 123 4567",orders:12,spent:5600,status:"active",joined:"2024-01-15"},{id:2,name:"فاطمة الزهراء",email:"fatima@example.com",phone:"+966 55 234 5678",orders:8,spent:3200,status:"active",joined:"2024-02-20"},{id:3,name:"نورة المطيري",email:"noura@example.com",phone:"+966 50 345 6789",orders:15,spent:8900,status:"active",joined:"2024-03-10"},{id:4,name:"عبدالله القحطاني",email:"abdullah@example.com",phone:"+966 55 456 7890",orders:5,spent:1800,status:"inactive",joined:"2024-04-05"},{id:5,name:"ليلى الهاشمي",email:"layla@example.com",phone:"+966 50 567 8901",orders:20,spent:12500,status:"active",joined:"2024-03-15"},{id:6,name:"محمد العتيبي",email:"mohammed@example.com",phone:"+966 55 678 9012",orders:3,spent:900,status:"blocked",joined:"2024-05-01"},{id:7,name:"سارة المنصور",email:"sara@example.com",phone:"+966 50 789 0123",orders:7,spent:4100,status:"active",joined:"2024-04-20"},{id:8,name:"خالد العمري",email:"khaled@example.com",phone:"+966 55 890 1234",orders:11,spent:6800,status:"active",joined:"2024-05-10"}];function nZ(){const[e,t]=E.useState(""),[r,n]=E.useState("all"),i=So.filter(a=>{const o=a.name.includes(e)||a.email.includes(e),l=r==="all"||a.status===r;return o&&l});return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"page-header",children:c.jsx("h1",{className:"page-title",children:"إدارة العملاء"})}),c.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"إجمالي العملاء"}),c.jsx("div",{className:"stat-card-value",children:So.length.toLocaleString()})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"عملاء نشطين"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--success)"},children:So.filter(a=>a.status==="active").length})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"غير نشطين"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--gray-500)"},children:So.filter(a=>a.status==="inactive").length})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"محظورين"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--danger)"},children:So.filter(a=>a.status==="blocked").length})]})]}),c.jsxs("div",{className:"table-card",children:[c.jsx("div",{className:"table-header",children:c.jsxs("div",{style:{display:"flex",gap:12},children:[c.jsxs("div",{className:"search-box",style:{width:300},children:[c.jsx(fm,{size:18,color:"var(--gray-400)"}),c.jsx("input",{type:"text",placeholder:"بحث عن عميل...",value:e,onChange:a=>t(a.target.value)})]}),c.jsxs("select",{className:"form-select",style:{width:150},value:r,onChange:a=>n(a.target.value),children:[c.jsx("option",{value:"all",children:"كل الحالات"}),c.jsx("option",{value:"active",children:"نشط"}),c.jsx("option",{value:"inactive",children:"غير نشط"}),c.jsx("option",{value:"blocked",children:"محظور"})]})]})}),c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"العميل"}),c.jsx("th",{children:"البريد / الجوال"}),c.jsx("th",{children:"الطلبات"}),c.jsx("th",{children:"المبلغ المنفق"}),c.jsx("th",{children:"تاريخ التسجيل"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:i.map(a=>c.jsxs("tr",{children:[c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx("div",{style:{width:40,height:40,borderRadius:"50%",background:"var(--primary)",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600},children:a.name[0]}),c.jsx("div",{style:{fontWeight:500},children:a.name})]})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,fontSize:13},children:[c.jsx("span",{style:{color:"var(--gray-500)"},children:a.email}),c.jsx("span",{children:a.phone})]})}),c.jsx("td",{children:a.orders}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",a.spent.toLocaleString()]}),c.jsx("td",{style:{color:"var(--gray-500)"},children:a.joined}),c.jsx("td",{children:c.jsx("span",{className:`badge ${a.status==="active"?"badge-success":a.status==="blocked"?"badge-danger":"badge-gray"}`,children:a.status==="active"?"نشط":a.status==="blocked"?"محظور":"غير نشط"})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx(Ur,{to:`/customers/${a.id}`,className:"btn btn-sm btn-outline",children:c.jsx(ca,{size:14})}),a.status==="active"?c.jsx("button",{className:"btn btn-sm btn-danger",children:c.jsx(pS,{size:14})}):c.jsx("button",{className:"btn btn-sm btn-success",children:c.jsx(mS,{size:14})})]})})]},a.id))})]})]})]})}function iZ(){const e={name:"أحمد السعيد",email:"ahmed@example.com",phone:"+966 50 123 4567",address:"الرياض، حي العليا، شارع الملك فهد",joined:"2024-01-15",stats:{totalOrders:12,totalSpent:5600,avgOrderValue:467,lastOrder:"2024-06-01"},orders:[{id:"ORD-2024-001",date:"2024-06-01",store:"متجر التقنية",amount:1250,status:"pending"},{id:"ORD-2024-002",date:"2024-05-20",store:"أزياء الأناقة",amount:890,status:"completed"},{id:"ORD-2024-003",date:"2024-05-10",store:"بيت الطعام",amount:450,status:"completed"}]};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"page-header",children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[c.jsx(Ur,{to:"/customers",className:"btn btn-outline btn-sm",children:"← العودة"}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx("div",{style:{width:48,height:48,borderRadius:"50%",background:"var(--primary)",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:20,fontWeight:600},children:e.name[0]}),c.jsxs("div",{children:[c.jsx("h1",{className:"page-title",style:{margin:0},children:e.name}),c.jsx("span",{className:"badge badge-success",children:"نشط"})]})]})]})}),c.jsxs("div",{className:"grid-2",style:{marginBottom:24},children:[c.jsxs("div",{className:"chart-card",children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:20},children:"معلومات العميل"}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(gS,{size:18,color:"var(--gray-400)"})," ",c.jsx("span",{children:e.email})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(bS,{size:18,color:"var(--gray-400)"})," ",c.jsx("span",{children:e.phone})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(xS,{size:18,color:"var(--gray-400)"})," ",c.jsx("span",{children:e.address})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(vS,{size:18,color:"var(--gray-400)"})," ",c.jsxs("span",{children:["انضم: ",e.joined]})]})]})]}),c.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"إجمالي الطلبات"}),c.jsx("div",{className:"stat-card-value",children:e.stats.totalOrders})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"المبلغ المنفق"}),c.jsxs("div",{className:"stat-card-value",children:["₼ ",e.stats.totalSpent.toLocaleString()]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"متوسط الطلب"}),c.jsxs("div",{className:"stat-card-value",children:["₼ ",e.stats.avgOrderValue]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"آخر طلب"}),c.jsx("div",{className:"stat-card-value",style:{fontSize:16},children:e.stats.lastOrder})]})]})]}),c.jsxs("div",{className:"table-card",children:[c.jsx("div",{className:"table-header",children:c.jsxs("h3",{className:"table-title",children:["الطلبات (",e.orders.length,")"]})}),c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم الطلب"}),c.jsx("th",{children:"التاريخ"}),c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"المبلغ"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:e.orders.map(t=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace"},children:t.id}),c.jsx("td",{children:t.date}),c.jsx("td",{children:t.store}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",t.amount]}),c.jsx("td",{children:c.jsx("span",{className:`badge ${t.status==="completed"?"badge-success":t.status==="pending"?"badge-warning":"badge-info"}`,children:t.status})})]},t.id))})]})]})]})}const aZ=[{id:1,name:"أساسية",monthlyPrice:99,yearlyPrice:990,features:["100 منتج","API أساسية","تقارير بسيطة","دعم بالبريد"],productLimit:100,orderLimit:500,status:"active"},{id:2,name:"احترافية",monthlyPrice:299,yearlyPrice:2990,features:["500 منتج","API متقدمة","تقارير متقدمة","دعم 24/7","تسويق"],productLimit:500,orderLimit:2e3,status:"active"},{id:3,name:"مميزة",monthlyPrice:599,yearlyPrice:5990,features:["منتجات غير محدودة","API كاملة","مدير حساب","تقارير شاملة","تسويق متقدم","تكاملات"],productLimit:-1,orderLimit:-1,status:"active"},{id:4,name:"تجريبية",monthlyPrice:0,yearlyPrice:0,features:["10 منتجات","API محدودة","لمدة 14 يوم"],productLimit:10,orderLimit:50,status:"active"}],oZ=[{id:1,store:"متجر التقنية",plan:"مميزة",billing:"شهري",status:"active",nextBilling:"2024-07-15",amount:599},{id:2,store:"بيت الطعام",plan:"احترافية",billing:"سنوي",status:"active",nextBilling:"2025-02-20",amount:2990},{id:3,store:"أزياء الأناقة",plan:"مميزة",billing:"شهري",status:"pending",nextBilling:"2024-07-10",amount:599},{id:4,store:"صيدلية الشفاء",plan:"أساسية",billing:"شهري",status:"expired",nextBilling:"2024-06-05",amount:99}];function lZ(){const[e,t]=E.useState("plans");return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"إدارة الاشتراكات"}),c.jsxs("button",{className:"btn btn-primary",onClick:()=>{},children:[c.jsx(Wa,{size:18})," إضافة خطة"]})]}),c.jsxs("div",{className:"tabs",children:[c.jsx("button",{className:`tab ${e==="plans"?"active":""}`,onClick:()=>t("plans"),children:"خطط الاشتراك"}),c.jsx("button",{className:`tab ${e==="subscriptions"?"active":""}`,onClick:()=>t("subscriptions"),children:"الاشتراكات النشطة"}),c.jsx("button",{className:`tab ${e==="invoices"?"active":""}`,onClick:()=>t("invoices"),children:"الفواتير"})]}),e==="plans"&&c.jsx("div",{className:"grid-4",children:aZ.map(r=>c.jsxs("div",{className:"chart-card",style:{position:"relative"},children:[r.name==="احترافية"&&c.jsx("div",{style:{position:"absolute",top:-12,right:16,background:"var(--primary)",color:"white",padding:"4px 12px",borderRadius:12,fontSize:12},children:"الأكثر شعبية"}),c.jsx("h3",{style:{fontSize:20,fontWeight:600,marginBottom:16},children:r.name}),c.jsxs("div",{style:{marginBottom:24},children:[c.jsxs("span",{style:{fontSize:36,fontWeight:700},children:["₼ ",r.monthlyPrice]}),c.jsx("span",{style:{color:"var(--gray-500)"},children:"/شهرياً"})]}),c.jsx("ul",{style:{listStyle:"none",marginBottom:24},children:r.features.map(n=>c.jsxs("li",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[c.jsx(Rh,{size:16,color:"var(--success)"})," ",n]},n))}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsxs("button",{className:"btn btn-outline",style:{flex:1},children:[c.jsx(ti,{size:16})," تعديل"]}),r.status==="active"?c.jsx("button",{className:"btn btn-danger btn-sm",children:c.jsx(Qi,{size:16})}):c.jsx("button",{className:"btn btn-success btn-sm",children:c.jsx(Rh,{size:16})})]})]},r.id))}),e==="subscriptions"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"الخطة"}),c.jsx("th",{children:"الفوترة"}),c.jsx("th",{children:"المبلغ"}),c.jsx("th",{children:"التجديد القادم"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:oZ.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:r.store}),c.jsx("td",{children:c.jsx("span",{className:"badge badge-info",children:r.plan})}),c.jsx("td",{children:r.billing}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",r.amount.toLocaleString()]}),c.jsx("td",{children:r.nextBilling}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="active"?"badge-success":r.status==="pending"?"badge-warning":"badge-danger"}`,children:r.status==="active"?"نشط":r.status==="pending"?"معلق":"منتهي"})})]},r.id))})]})}),e==="invoices"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم الفاتورة"}),c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"المبلغ"}),c.jsx("th",{children:"التاريخ"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:[{id:"INV-001",store:"متجر التقنية",amount:599,date:"2024-06-15",status:"paid"},{id:"INV-002",store:"بيت الطعام",amount:2990,date:"2024-06-20",status:"paid"},{id:"INV-003",store:"أزياء الأناقة",amount:599,date:"2024-07-10",status:"pending"}].map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace"},children:r.id}),c.jsx("td",{children:r.store}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",r.amount]}),c.jsx("td",{children:r.date}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="paid"?"badge-success":"badge-warning"}`,children:r.status==="paid"?"مدفوعة":"معلقة"})}),c.jsx("td",{children:c.jsx("button",{className:"btn btn-sm btn-outline",children:"عرض"})})]},r.id))})]})})]})}const sZ=[{id:"stripe",name:"Stripe",icon:"💳",status:"active",transactions:15420,volume:2345e3},{id:"paypal",name:"PayPal",icon:"🅿️",status:"active",transactions:8930,volume:1234e3},{id:"apple_pay",name:"Apple Pay",icon:"",status:"active",transactions:6780,volume:89e4},{id:"google_pay",name:"Google Pay",icon:"",status:"active",transactions:5430,volume:67e4},{id:"tabby",name:"Tabby",icon:"",status:"active",transactions:4560,volume:54e4},{id:"tamara",name:"Tamara",icon:"",status:"active",transactions:3890,volume:45e4},{id:"moyasar",name:"Moyasar",icon:"",status:"inactive",transactions:1200,volume:18e4}],uZ=[{id:"TXN-001",store:"متجر التقنية",method:"Stripe",amount:1250,fee:31.25,net:1218.75,status:"completed",date:"2024-06-15"},{id:"TXN-002",store:"بيت الطعام",method:"Tabby",amount:890,fee:22.25,net:867.75,status:"completed",date:"2024-06-15"},{id:"TXN-003",store:"أزياء الأناقة",method:"Tamara",amount:2100,fee:52.5,net:2047.5,status:"pending",date:"2024-06-14"},{id:"TXN-004",store:"صيدلية الشفاء",method:"Apple Pay",amount:450,fee:11.25,net:438.75,status:"completed",date:"2024-06-14"},{id:"TXN-005",store:"مطبخ الخليج",method:"Stripe",amount:1800,fee:45,net:1755,status:"failed",date:"2024-06-13"}];function cZ(){const[e,t]=E.useState("gateways");return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"page-header",children:c.jsx("h1",{className:"page-title",children:"إدارة المدفوعات"})}),c.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"repeat(4, 1fr)",marginBottom:24},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"إجمالي المعاملات"}),c.jsx("div",{className:"stat-card-value",children:"41,210"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"حجم المعاملات"}),c.jsx("div",{className:"stat-card-value",children:"₼ 5,360,000"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"الرسوم المحصلة"}),c.jsx("div",{className:"stat-card-value",children:"₼ 134,000"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"الرصيد المتاح"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--success)"},children:"₼ 1,245,000"})]})]}),c.jsxs("div",{className:"tabs",children:[c.jsx("button",{className:`tab ${e==="gateways"?"active":""}`,onClick:()=>t("gateways"),children:"بوابات الدفع"}),c.jsx("button",{className:`tab ${e==="transactions"?"active":""}`,onClick:()=>t("transactions"),children:"المعاملات"}),c.jsx("button",{className:`tab ${e==="payouts"?"active":""}`,onClick:()=>t("payouts"),children:"المدفوعات"}),c.jsx("button",{className:`tab ${e==="settings"?"active":""}`,onClick:()=>t("settings"),children:"الإعدادات"})]}),e==="gateways"&&c.jsx("div",{className:"grid-3",children:sZ.map(r=>c.jsxs("div",{className:"chart-card",children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx("div",{style:{width:48,height:48,borderRadius:12,background:"var(--gray-100)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:24},children:r.icon}),c.jsxs("div",{children:[c.jsx("h3",{style:{fontWeight:600},children:r.name}),c.jsx("span",{className:`badge ${r.status==="active"?"badge-success":"badge-gray"}`,children:r.status==="active"?"مفعل":"معطل"})]})]}),c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(dm,{size:14})})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16},children:[c.jsxs("div",{children:[c.jsx("div",{className:"stat-card-title",children:"المعاملات"}),c.jsx("div",{style:{fontWeight:600,fontSize:18},children:r.transactions.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"stat-card-title",children:"الحجم"}),c.jsxs("div",{style:{fontWeight:600,fontSize:18},children:["₼ ",r.volume.toLocaleString()]})]})]})]},r.id))}),e==="transactions"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم المعاملة"}),c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"الطريقة"}),c.jsx("th",{children:"المبلغ"}),c.jsx("th",{children:"الرسوم"}),c.jsx("th",{children:"الصافي"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"التاريخ"})]})}),c.jsx("tbody",{children:uZ.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace"},children:r.id}),c.jsx("td",{children:r.store}),c.jsx("td",{children:r.method}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",r.amount]}),c.jsxs("td",{style:{color:"var(--gray-500)"},children:["₼ ",r.fee]}),c.jsxs("td",{children:["₼ ",r.net]}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="completed"?"badge-success":r.status==="pending"?"badge-warning":"badge-danger"}`,children:r.status==="completed"?"مكتمل":r.status==="pending"?"معلق":"فشل"})}),c.jsx("td",{children:r.date})]},r.id))})]})}),e==="payouts"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم الدفع"}),c.jsx("th",{children:"المتجر"}),c.jsx("th",{children:"المبلغ"}),c.jsx("th",{children:"الطريقة"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"التاريخ"})]})}),c.jsx("tbody",{children:[{id:"PAY-001",store:"متجر التقنية",amount:45e3,method:"Bank Transfer",status:"completed",date:"2024-06-15"},{id:"PAY-002",store:"بيت الطعام",amount:38e3,method:"Bank Transfer",status:"completed",date:"2024-06-15"},{id:"PAY-003",store:"أزياء الأناقة",amount:32e3,method:"PayPal",status:"pending",date:"2024-06-14"}].map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace"},children:r.id}),c.jsx("td",{children:r.store}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",r.amount.toLocaleString()]}),c.jsx("td",{children:r.method}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="completed"?"badge-success":"badge-warning"}`,children:r.status==="completed"?"تم":"معلق"})}),c.jsx("td",{children:r.date})]},r.id))})]})}),e==="settings"&&c.jsxs("div",{className:"chart-card",style:{maxWidth:600},children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:24},children:"إعدادات الدفع"}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"نسبة الرسوم (%)"}),c.jsx("input",{type:"number",className:"form-input",defaultValue:"2.5"})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"الحد الأدنى للرسوم"}),c.jsx("input",{type:"number",className:"form-input",defaultValue:"1"})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"عملة الافتراضية"}),c.jsxs("select",{className:"form-select",children:[c.jsx("option",{value:"AED",children:"درهم إماراتي (AED)"}),c.jsx("option",{value:"SAR",children:"ريال سعودي (SAR)"}),c.jsx("option",{value:"USD",children:"دولار أمريكي (USD)"})]})]}),c.jsx("button",{className:"btn btn-primary",children:"حفظ الإعدادات"})]})]})}const B1=[{id:1,name:"أرامكس",icon:"🚚",status:"active",apiConnected:!0,costPerShipment:15,avgDeliveryDays:2,totalShipments:4560,onTimeRate:94},{id:2,name:"س تي سي",icon:"🚛",status:"active",apiConnected:!0,costPerShipment:12,avgDeliveryDays:3,totalShipments:3890,onTimeRate:91},{id:3,name:"دقة",icon:"📦",status:"active",apiConnected:!0,costPerShipment:18,avgDeliveryDays:1,totalShipments:2340,onTimeRate:97},{id:4,name:"بوسطة",icon:"✈️",status:"inactive",apiConnected:!1,costPerShipment:25,avgDeliveryDays:5,totalShipments:890,onTimeRate:88}],z1=[{id:"SHP-001",orderId:"ORD-2024-001",company:"أرامكس",tracking:"ARX123456789",status:"delivered",customer:"أحمد السعيد",weight:1.5,cost:15,estimatedDelivery:"2024-06-10",actualDelivery:"2024-06-09"},{id:"SHP-002",orderId:"ORD-2024-002",company:"س تي سي",tracking:"STC987654321",status:"in_transit",customer:"فاطمة الزهراء",weight:2.3,cost:12,estimatedDelivery:"2024-06-16",actualDelivery:null},{id:"SHP-003",orderId:"ORD-2024-003",company:"دقة",tracking:"FQD456789123",status:"pending",customer:"نورة المطيري",weight:.8,cost:18,estimatedDelivery:"2024-06-15",actualDelivery:null},{id:"SHP-004",orderId:"ORD-2024-004",company:"أرامكس",tracking:"ARX789123456",status:"delivered",customer:"عبدالله القحطاني",weight:3.2,cost:15,estimatedDelivery:"2024-06-12",actualDelivery:"2024-06-11"}];function fZ(){const[e,t]=E.useState("companies");return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"إدارة الشحن"}),c.jsxs("button",{className:"btn btn-primary",children:[c.jsx(Wa,{size:18})," إضافة شركة شحن"]})]}),c.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"repeat(4, 1fr)",marginBottom:24},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"الشركات النشطة"}),c.jsx("div",{className:"stat-card-value",children:B1.filter(r=>r.status==="active").length})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"إجمالي الشحنات"}),c.jsx("div",{className:"stat-card-value",children:"11,680"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"نسبة التسليم في الوقت"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--success)"},children:"93%"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"تكلفة الشحن الإجمالية"}),c.jsx("div",{className:"stat-card-value",children:"₼ 175,200"})]})]}),c.jsxs("div",{className:"tabs",children:[c.jsx("button",{className:`tab ${e==="companies"?"active":""}`,onClick:()=>t("companies"),children:"شركات الشحن"}),c.jsx("button",{className:`tab ${e==="shipments"?"active":""}`,onClick:()=>t("shipments"),children:"الشحنات"}),c.jsx("button",{className:`tab ${e==="tracking"?"active":""}`,onClick:()=>t("tracking"),children:"تتبع الشحنات"})]}),e==="companies"&&c.jsx("div",{className:"grid-2",children:B1.map(r=>c.jsxs("div",{className:"chart-card",children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx("div",{style:{width:56,height:56,borderRadius:12,background:"var(--gray-100)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:28},children:r.icon}),c.jsxs("div",{children:[c.jsx("h3",{style:{fontWeight:600},children:r.name}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:4},children:[c.jsx("span",{className:`badge ${r.apiConnected?"badge-success":"badge-gray"}`,children:r.apiConnected?"API متصل":"غير متصل"}),c.jsx("span",{className:`badge ${r.status==="active"?"badge-success":"badge-gray"}`,children:r.status==="active"?"نشط":"معطل"})]})]})]}),c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(dm,{size:14})})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:16},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"تكلفة الشحنة"}),c.jsxs("div",{style:{fontWeight:600,fontSize:18},children:["₼ ",r.costPerShipment]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"الشحنات"}),c.jsx("div",{style:{fontWeight:600,fontSize:18},children:r.totalShipments.toLocaleString()})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"مدة التسليم"}),c.jsxs("div",{style:{fontWeight:600,fontSize:18},children:[r.avgDeliveryDays," أيام"]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"نسبة الالتزام"}),c.jsxs("div",{style:{fontWeight:600,fontSize:18,color:"var(--success)"},children:[r.onTimeRate,"%"]})]})]})]},r.id))}),e==="shipments"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم الشحن"}),c.jsx("th",{children:"رقم الطلب"}),c.jsx("th",{children:"الشركة"}),c.jsx("th",{children:"العميل"}),c.jsx("th",{children:"التكلفة"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:z1.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace"},children:r.id}),c.jsx("td",{style:{fontFamily:"monospace",color:"var(--gray-500)"},children:r.orderId}),c.jsx("td",{children:r.company}),c.jsx("td",{children:r.customer}),c.jsxs("td",{style:{fontWeight:500},children:["₼ ",r.cost]}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="delivered"?"badge-success":r.status==="in_transit"?"badge-info":"badge-warning"}`,children:r.status==="delivered"?"تم التسليم":r.status==="in_transit"?"في الطريق":"معلق"})}),c.jsx("td",{children:c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ca,{size:14})})})]},r.id))})]})}),e==="tracking"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"رقم التتبع"}),c.jsx("th",{children:"الشركة"}),c.jsx("th",{children:"العميل"}),c.jsx("th",{children:"الوزن"}),c.jsx("th",{children:"التوصيل المتوقع"}),c.jsx("th",{children:"التوصيل الفعلي"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:z1.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontFamily:"monospace",direction:"ltr"},children:r.tracking}),c.jsx("td",{children:r.company}),c.jsx("td",{children:r.customer}),c.jsxs("td",{children:[r.weight," كجم"]}),c.jsx("td",{children:r.estimatedDelivery}),c.jsx("td",{children:r.actualDelivery||"---"}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="delivered"?"badge-success":r.status==="in_transit"?"badge-info":"badge-warning"}`,children:r.status==="delivered"?"تم التسليم":r.status==="in_transit"?"في الطريق":"معلق"})})]},r.id))})]})})]})}const F1=[{id:1,code:"WELCOME10",name:"خصم جديد",discount:"10%",type:"percentage",minOrder:100,maxDiscount:50,usageCount:234,usageLimit:500,validFrom:"2024-01-01",validTo:"2024-12-31",status:"active"},{id:2,code:"SUMMER25",name:"خصم الصيف",discount:"25",type:"fixed",minOrder:200,maxDiscount:null,usageCount:156,usageLimit:300,validFrom:"2024-06-01",validTo:"2024-08-31",status:"active"},{id:3,code:"FREESHIP",name:"شحن مجاني",discount:"شحن مجاني",type:"free_shipping",minOrder:150,maxDiscount:null,usageCount:89,usageLimit:200,validFrom:"2024-05-01",validTo:"2024-07-31",status:"active"}],U1=[{id:1,name:"عروض الأسبوع",type:"flash_sale",discount:"20%",startDate:"2024-06-10",endDate:"2024-06-17",status:"active",stores:45},{id:2,name:"تخفيضات رمضان",type:"seasonal",discount:"30%",startDate:"2024-03-01",endDate:"2024-04-30",status:"ended",stores:120}],dZ=[{id:1,name:"حملة رمضان",channel:"email",status:"active",sent:15e3,opens:4500,clicks:1200,conversions:180},{id:2,name:"إعلان بداية الصيف",channel:"sms",status:"completed",sent:25e3,opens:null,clicks:null,conversions:320}];function hZ(){const[e,t]=E.useState("coupons");return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"إدارة التسويق"}),c.jsxs("button",{className:"btn btn-primary",children:[c.jsx(Wa,{size:18})," إضافة عرض"]})]}),c.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"repeat(4, 1fr)",marginBottom:24},children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"الكوبونات النشطة"}),c.jsx("div",{className:"stat-card-value",children:F1.filter(r=>r.status==="active").length})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"إجمالي الاستخدام"}),c.jsx("div",{className:"stat-card-value",children:"479"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"العروض الحالية"}),c.jsx("div",{className:"stat-card-value",children:U1.filter(r=>r.status==="active").length})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-card-title",children:"نسبة التحويل"}),c.jsx("div",{className:"stat-card-value",style:{color:"var(--success)"},children:"4.2%"})]})]}),c.jsxs("div",{className:"tabs",children:[c.jsx("button",{className:`tab ${e==="coupons"?"active":""}`,onClick:()=>t("coupons"),children:"الكوبونات"}),c.jsx("button",{className:`tab ${e==="offers"?"active":""}`,onClick:()=>t("offers"),children:"العروض"}),c.jsx("button",{className:`tab ${e==="campaigns"?"active":""}`,onClick:()=>t("campaigns"),children:"الحملات"})]}),e==="coupons"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"الكود"}),c.jsx("th",{children:"الاسم"}),c.jsx("th",{children:"نوع الخصم"}),c.jsx("th",{children:"أدنى طلب"}),c.jsx("th",{children:"الاستخدام"}),c.jsx("th",{children:"صالح حتى"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:F1.map(r=>c.jsxs("tr",{children:[c.jsx("td",{children:c.jsx("code",{style:{background:"var(--gray-100)",padding:"4px 8px",borderRadius:4},children:r.code})}),c.jsx("td",{children:r.name}),c.jsx("td",{children:r.type==="percentage"?`خصم ${r.discount}`:r.type==="fixed"?`₼ ${r.discount}`:r.discount}),c.jsxs("td",{children:["₼ ",r.minOrder]}),c.jsxs("td",{children:[r.usageCount," / ",r.usageLimit]}),c.jsx("td",{children:r.validTo}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="active"?"badge-success":"badge-gray"}`,children:r.status==="active"?"نشط":"منتهي"})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ti,{size:14})}),c.jsx("button",{className:"btn btn-sm btn-danger",children:c.jsx(Qi,{size:14})})]})})]},r.id))})]})}),e==="offers"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"العنوان"}),c.jsx("th",{children:"النوع"}),c.jsx("th",{children:"الخصم"}),c.jsx("th",{children:"تاريخ البدء"}),c.jsx("th",{children:"تاريخ الانتهاء"}),c.jsx("th",{children:"المتاجر"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:U1.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:r.name}),c.jsx("td",{children:c.jsx("span",{className:"badge badge-info",children:r.type==="flash_sale"?"عرض سريع":"موسمي"})}),c.jsx("td",{children:r.discount}),c.jsx("td",{children:r.startDate}),c.jsx("td",{children:r.endDate}),c.jsx("td",{children:r.stores}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="active"?"badge-success":"badge-gray"}`,children:r.status==="active"?"نشط":"منتهي"})})]},r.id))})]})}),e==="campaigns"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"الحملة"}),c.jsx("th",{children:"القناة"}),c.jsx("th",{children:"المُرسَل"}),c.jsx("th",{children:"الفتحات"}),c.jsx("th",{children:"النقرات"}),c.jsx("th",{children:"التحويلات"}),c.jsx("th",{children:"الحالة"})]})}),c.jsx("tbody",{children:dZ.map(r=>{var n,i;return c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:r.name}),c.jsx("td",{children:c.jsx("span",{className:"badge badge-gray",children:r.channel==="email"?"بريد":"رسالة"})}),c.jsx("td",{children:r.sent.toLocaleString()}),c.jsx("td",{children:((n=r.opens)==null?void 0:n.toLocaleString())||"---"}),c.jsx("td",{children:((i=r.clicks)==null?void 0:i.toLocaleString())||"---"}),c.jsx("td",{style:{color:"var(--success)"},children:r.conversions}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="active"?"badge-success":"badge-gray"}`,children:r.status==="active"?"نشط":"منتهي"})})]},r.id)})})]})})]})}const pZ=[{id:1,title:"من نحن",slug:"about",status:"published",author:"أحمد محمد",lastUpdate:"2024-05-15"},{id:2,title:"الشروط والأحكام",slug:"terms",status:"published",author:"أحمد محمد",lastUpdate:"2024-06-01"},{id:3,title:"سياسة الخصوصية",slug:"privacy",status:"published",author:"أحمد محمد",lastUpdate:"2024-06-01"},{id:4,title:"اتصل بنا",slug:"contact",status:"draft",author:"سارة المنصور",lastUpdate:"2024-06-10"}],vZ=[{id:1,question:"كيف أبدأ البيع؟",category:"البيع",answer:"يمكنك البدء بإنشاء متجر مجاني...",status:"published",views:1250},{id:2,question:"ما هي طرق الدفع المتاحة؟",category:"الدفع",answer:"نقبل الدفع عبر البطاقات...",status:"published",views:980},{id:3,question:"كيف أتبع شحنة؟",category:"الشحن",answer:"يمكنك تتبع شحنتك من خلال...",status:"published",views:870},{id:4,question:"ما هي رسوم المنصة؟",category:"المالية",answer:"رسوم المنصة 5% من كل عملية...",status:"draft",views:0}],mZ=[{id:1,title:"كيف تحقق مبيعات أكثر",slug:"boost-sales",category:"نصائح",status:"published",author:"أحمد محمد",date:"2024-06-15",views:2340},{id:2,title:"أفضل ممارسات الشحن",slug:"shipping-tips",category:"شحن",status:"published",author:"سارة المنصور",date:"2024-06-10",views:1890},{id:3,title:"تحسين صور المنتجات",slug:"product-photos",category:"تسويق",status:"draft",author:"خالد العمري",date:"2024-06-12",views:0}];function yZ(){const[e,t]=E.useState("pages");return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"إدارة المحتوى"}),c.jsxs("button",{className:"btn btn-primary",children:[c.jsx(Wa,{size:18})," إضافة جديد"]})]}),c.jsxs("div",{className:"tabs",children:[c.jsxs("button",{className:`tab ${e==="pages"?"active":""}`,onClick:()=>t("pages"),children:[c.jsx(yS,{size:16,style:{marginLeft:8}}),"الصفحات"]}),c.jsxs("button",{className:`tab ${e==="faqs"?"active":""}`,onClick:()=>t("faqs"),children:[c.jsx(eT,{size:16,style:{marginLeft:8}}),"الأسئلة الشائعة"]}),c.jsxs("button",{className:`tab ${e==="blog"?"active":""}`,onClick:()=>t("blog"),children:[c.jsx(J$,{size:16,style:{marginLeft:8}}),"المدونة"]})]}),e==="pages"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"العنوان"}),c.jsx("th",{children:"الرابط"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"المؤلف"}),c.jsx("th",{children:"آخر تحديث"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:pZ.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:r.title}),c.jsx("td",{children:c.jsxs("code",{style:{color:"var(--primary)"},children:["/",r.slug]})}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="published"?"badge-success":"badge-warning"}`,children:r.status==="published"?"منشور":"مسودة"})}),c.jsx("td",{children:r.author}),c.jsx("td",{style:{color:"var(--gray-500)"},children:r.lastUpdate}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ca,{size:14})}),c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ti,{size:14})}),c.jsx("button",{className:"btn btn-sm btn-danger",children:c.jsx(Qi,{size:14})})]})})]},r.id))})]})}),e==="faqs"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"السؤال"}),c.jsx("th",{children:"الفئة"}),c.jsx("th",{children:"عدد المشاهدات"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:vZ.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:r.question}),c.jsx("td",{children:c.jsx("span",{className:"badge badge-gray",children:r.category})}),c.jsx("td",{children:r.views.toLocaleString()}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="published"?"badge-success":"badge-warning"}`,children:r.status==="published"?"منشور":"مسودة"})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ti,{size:14})}),c.jsx("button",{className:"btn btn-sm btn-danger",children:c.jsx(Qi,{size:14})})]})})]},r.id))})]})}),e==="blog"&&c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"العنوان"}),c.jsx("th",{children:"الفئة"}),c.jsx("th",{children:"المؤلف"}),c.jsx("th",{children:"التاريخ"}),c.jsx("th",{children:"المشاهدات"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:mZ.map(r=>c.jsxs("tr",{children:[c.jsx("td",{style:{fontWeight:500},children:r.title}),c.jsx("td",{children:c.jsx("span",{className:"badge badge-info",children:r.category})}),c.jsx("td",{children:r.author}),c.jsx("td",{children:r.date}),c.jsx("td",{children:r.views.toLocaleString()}),c.jsx("td",{children:c.jsx("span",{className:`badge ${r.status==="published"?"badge-success":"badge-warning"}`,children:r.status==="published"?"منشور":"مسودة"})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ca,{size:14})}),c.jsx("button",{className:"btn btn-sm btn-outline",children:c.jsx(ti,{size:14})}),c.jsx("button",{className:"btn btn-sm btn-danger",children:c.jsx(Qi,{size:14})})]})})]},r.id))})]})})]})}const gZ=[{id:1,name:"مدير المنصة",key:"SUPER_ADMIN",color:"danger",description:"صلاحيات كاملة على المنصة",userCount:2,permissions:["all"]},{id:2,name:"صاحب متجر",key:"STORE_OWNER",color:"success",description:"إدارة متجره الخاص",userCount:156,permissions:["store.manage","product.manage","order.view","order.manage","customer.view"]},{id:3,name:"موظف متجر",key:"STORE_EMPLOYEE",color:"info",description:"صلاحيات محددة من صاحب المتجر",userCount:423,permissions:["product.view","product.update","order.view"]},{id:4,name:"عميل",key:"CUSTOMER",color:"gray",description:"التسوق وإدارة طلباته",userCount:24521,permissions:["order.create","order.view","profile.manage"]},{id:5,name:"شركة شحن",key:"SHIPPING_COMPANY",color:"warning",description:"إدارة وتتبع الشحنات",userCount:12,permissions:["shipment.view","shipment.update"]},{id:6,name:"وكالة تسويق",key:"MARKETING_AGENCY",color:"purple",description:"الوصول للتقارير والإحصائيات",userCount:5,permissions:["report.view","analytics.view"]}],xZ=[{group:"المنصة",permissions:["platform.manage","platform.settings","tenant.manage"]},{group:"المتاجر",permissions:["store.view","store.create","store.edit","store.delete","store.manage"]},{group:"المنتجات",permissions:["product.view","product.create","product.edit","product.delete","product.manage"]},{group:"الطلبات",permissions:["order.view","order.create","order.edit","order.cancel","order.manage"]},{group:"العملاء",permissions:["customer.view","customer.edit","customer.block","customer.manage"]},{group:"المدفوعات",permissions:["payment.view","payment.manage","payout.manage"]},{group:"الشحن",permissions:["shipment.view","shipment.create","shipment.update","shipment.manage"]},{group:"المحتوى",permissions:["content.view","content.create","content.edit","content.manage"]},{group:"التقارير",permissions:["report.view","analytics.view","export.manage"]}];function bZ(){const[e,t]=E.useState("roles"),[r,n]=E.useState(null);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"إدارة الصلاحيات"}),c.jsxs("button",{className:"btn btn-primary",children:[c.jsx(Wa,{size:18})," إضافة دور"]})]}),c.jsxs("div",{className:"tabs",children:[c.jsxs("button",{className:`tab ${e==="roles"?"active":""}`,onClick:()=>t("roles"),children:[c.jsx(Bh,{size:16,style:{marginLeft:8}}),"الأدوار"]}),c.jsxs("button",{className:`tab ${e==="permissions"?"active":""}`,onClick:()=>t("permissions"),children:[c.jsx(Rh,{size:16,style:{marginLeft:8}}),"الصلاحيات"]})]}),e==="roles"&&c.jsxs("div",{className:"grid-2",children:[c.jsx("div",{className:"table-card",children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"الدور"}),c.jsx("th",{children:"المستخدمين"}),c.jsx("th",{children:"الحالة"}),c.jsx("th",{children:"إجراءات"})]})}),c.jsx("tbody",{children:gZ.map(i=>c.jsxs("tr",{style:{cursor:"pointer"},onClick:()=>n(i),children:[c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx("div",{style:{width:36,height:36,borderRadius:8,background:`var(--${i.color==="danger"?"danger":i.color==="success"?"success":i.color==="info"?"info":i.color==="purple"?"primary":"gray"}-100)`,color:`var(--${i.color==="danger"?"danger":i.color==="success"?"success":i.color==="info"?"info":i.color==="purple"?"primary":"gray"}-600)`,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Bh,{size:18})}),c.jsxs("div",{children:[c.jsx("div",{style:{fontWeight:500},children:i.name}),c.jsx("div",{style:{fontSize:12,color:"var(--gray-500)"},children:i.description})]})]})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[c.jsx(hm,{size:14,color:"var(--gray-400)"}),i.userCount.toLocaleString()]})}),c.jsx("td",{children:c.jsx("span",{className:"badge badge-success",children:"نشط"})}),c.jsx("td",{children:c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{className:"btn btn-sm btn-outline",onClick:a=>{a.stopPropagation()},children:c.jsx(ti,{size:14})}),i.key!=="SUPER_ADMIN"&&c.jsx("button",{className:"btn btn-sm btn-danger",onClick:a=>{a.stopPropagation()},children:c.jsx(Qi,{size:14})})]})})]},i.id))})]})}),r&&c.jsxs("div",{className:"chart-card",children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:20},children:[c.jsx("h3",{children:r.name}),c.jsx("button",{className:"btn btn-sm btn-outline",onClick:()=>n(null),children:c.jsx(dT,{size:14})})]}),c.jsxs("div",{style:{marginBottom:20},children:[c.jsx("div",{style:{fontSize:13,color:"var(--gray-500)",marginBottom:8},children:"الوصف"}),c.jsx("div",{children:r.description})]}),c.jsxs("div",{style:{marginBottom:20},children:[c.jsxs("div",{style:{fontSize:13,color:"var(--gray-500)",marginBottom:12},children:["الصلاحيات (",r.permissions.length,")"]}),c.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:r.permissions.map(i=>c.jsx("span",{className:"badge badge-info",children:i},i))})]}),c.jsx("div",{style:{display:"flex",gap:8},children:c.jsxs("button",{className:"btn btn-outline",children:[c.jsx(ti,{size:16})," تعديل الصلاحيات"]})})]})]}),e==="permissions"&&c.jsx("div",{children:xZ.map(i=>c.jsxs("div",{className:"chart-card",style:{marginBottom:16},children:[c.jsx("h3",{style:{marginBottom:16,fontSize:16,fontWeight:600},children:i.group}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:12},children:i.permissions.map(a=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:8,background:"var(--gray-50)",borderRadius:8},children:[c.jsx("input",{type:"checkbox",defaultChecked:!0}),c.jsx("span",{style:{fontSize:13},children:a})]},a))})]},i.group))})]})}function wZ(){const[e,t]=E.useState({platformName:"منصة رف",platformUrl:"raf.market",supportEmail:"support@raf.market",supportPhone:"+966 11 234 5678",defaultLanguage:"ar",defaultCurrency:"AED"}),[r,n]=E.useState({smtpHost:"smtp.example.com",smtpPort:"587",smtpUser:"noreply@raf.market",smtpPassword:"",fromEmail:"noreply@raf.market",fromName:"Raf Platform"}),i=()=>{alert("تم حفظ الإعدادات بنجاح")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"الإعدادات"}),c.jsxs("button",{className:"btn btn-primary",onClick:i,children:[c.jsx(lT,{size:18})," حفظ الإعدادات"]})]}),c.jsxs("div",{className:"grid-2",children:[c.jsxs("div",{className:"chart-card",children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:24},children:"إعدادات عامة"}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"اسم المنصة"}),c.jsx("input",{type:"text",className:"form-input",value:e.platformName,onChange:a=>t({...e,platformName:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"رابط المنصة"}),c.jsx("input",{type:"text",className:"form-input",value:e.platformUrl,onChange:a=>t({...e,platformUrl:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"بريد الدعم"}),c.jsx("input",{type:"email",className:"form-input",value:e.supportEmail,onChange:a=>t({...e,supportEmail:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"هاتف الدعم"}),c.jsx("input",{type:"tel",className:"form-input",value:e.supportPhone,onChange:a=>t({...e,supportPhone:a.target.value})})]}),c.jsxs("div",{className:"grid-2",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"اللغة الافتراضية"}),c.jsxs("select",{className:"form-select",value:e.defaultLanguage,onChange:a=>t({...e,defaultLanguage:a.target.value}),children:[c.jsx("option",{value:"ar",children:"العربية"}),c.jsx("option",{value:"en",children:"English"})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"العملة الافتراضية"}),c.jsxs("select",{className:"form-select",value:e.defaultCurrency,onChange:a=>t({...e,defaultCurrency:a.target.value}),children:[c.jsx("option",{value:"AED",children:"درهم إماراتي (AED)"}),c.jsx("option",{value:"SAR",children:"ريال سعودي (SAR)"}),c.jsx("option",{value:"USD",children:"دولار أمريكي (USD)"}),c.jsx("option",{value:"EUR",children:"يورو (EUR)"})]})]})]})]}),c.jsxs("div",{className:"chart-card",children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:24},children:"إعدادات البريد"}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"خادم SMTP"}),c.jsx("input",{type:"text",className:"form-input",value:r.smtpHost,onChange:a=>n({...r,smtpHost:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"المنفذ"}),c.jsx("input",{type:"text",className:"form-input",value:r.smtpPort,onChange:a=>n({...r,smtpPort:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"اسم المستخدم"}),c.jsx("input",{type:"text",className:"form-input",value:r.smtpUser,onChange:a=>n({...r,smtpUser:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"كلمة المرور"}),c.jsx("input",{type:"password",className:"form-input",value:r.smtpPassword,onChange:a=>n({...r,smtpPassword:a.target.value}),placeholder:"••••••••"})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"البريد المرسل"}),c.jsx("input",{type:"email",className:"form-input",value:r.fromEmail,onChange:a=>n({...r,fromEmail:a.target.value})})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"اسم المرسل"}),c.jsx("input",{type:"text",className:"form-input",value:r.fromName,onChange:a=>n({...r,fromName:a.target.value})})]})]})]}),c.jsxs("div",{className:"chart-card",style:{marginTop:24},children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:24},children:"شعار المنصة"}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:24},children:[c.jsx("div",{style:{width:120,height:120,borderRadius:16,background:"var(--gray-100)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:48},children:"🏪"}),c.jsxs("div",{children:[c.jsxs("button",{className:"btn btn-outline",children:[c.jsx(fT,{size:18})," رفع شعار جديد"]}),c.jsx("p",{style:{color:"var(--gray-500)",fontSize:13,marginTop:8},children:"PNG أو JPG - الحجم المثالي 200×200 بكسل"})]})]})]}),c.jsxs("div",{className:"chart-card",style:{marginTop:24},children:[c.jsx("h3",{className:"chart-title",style:{marginBottom:24},children:"الألوان"}),c.jsxs("div",{className:"grid-4",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"اللون الأساسي"}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("input",{type:"color",defaultValue:"#6366f1",style:{width:50,height:40,border:"none",borderRadius:8}}),c.jsx("input",{type:"text",className:"form-input",defaultValue:"#6366f1",style:{flex:1}})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"لون ثانوي"}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("input",{type:"color",defaultValue:"#f59e0b",style:{width:50,height:40,border:"none",borderRadius:8}}),c.jsx("input",{type:"text",className:"form-input",defaultValue:"#f59e0b",style:{flex:1}})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"لون النجاح"}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("input",{type:"color",defaultValue:"#22c55e",style:{width:50,height:40,border:"none",borderRadius:8}}),c.jsx("input",{type:"text",className:"form-input",defaultValue:"#22c55e",style:{flex:1}})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"لون الخطر"}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("input",{type:"color",defaultValue:"#ef4444",style:{width:50,height:40,border:"none",borderRadius:8}}),c.jsx("input",{type:"text",className:"form-input",defaultValue:"#ef4444",style:{flex:1}})]})]})]})]})]})}function jZ(){const[e,t]=E.useState(""),[r,n]=E.useState(""),[i,a]=E.useState(!1),[o,l]=E.useState(!1),s=u=>{u.preventDefault(),l(!0),setTimeout(()=>{l(!1),window.location.href="/dashboard"},1e3)};return c.jsx("div",{className:"login-page",children:c.jsxs("div",{className:"login-box",children:[c.jsxs("div",{className:"pookie-title",children:[c.jsx("div",{className:"raf-logo",children:"🏪 رف"}),c.jsx("p",{style:{color:"var(--gray-500)"},children:"لوحة تحكم المنصة"})]}),c.jsxs("form",{onSubmit:s,children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"البريد الإلكتروني"}),c.jsx("input",{type:"email",className:"form-input",placeholder:"admin@raf.market",value:e,onChange:u=>t(u.target.value),required:!0})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{className:"form-label",children:"كلمة المرور"}),c.jsxs("div",{style:{position:"relative"},children:[c.jsx("input",{type:i?"text":"password",className:"form-input",placeholder:"••••••••",value:r,onChange:u=>n(u.target.value),required:!0,style:{paddingLeft:44}}),c.jsx("button",{type:"button",onClick:()=>a(!i),style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",border:"none",background:"transparent",cursor:"pointer",color:"var(--gray-400)"},children:i?c.jsx(rT,{size:18}):c.jsx(ca,{size:18})})]})]}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:24},children:[c.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8,cursor:"pointer"},children:[c.jsx("input",{type:"checkbox",defaultChecked:!0}),c.jsx("span",{style:{fontSize:14},children:"تذكرني"})]}),c.jsx("a",{href:"#",style:{color:"var(--primary)",fontSize:14},children:"نسيت كلمة المرور؟"})]}),c.jsx("button",{type:"submit",className:"btn btn-primary",style:{width:"100%",padding:12},disabled:o,children:o?"جاري الدخول...":"تسجيل الدخول"})]}),c.jsx("div",{style:{marginTop:24,textAlign:"center",color:"var(--gray-400)",fontSize:13},children:"© 2024 منصة رف - جميع الحقوق محفوظة"})]})})}const SZ=[{path:"/dashboard",label:"لوحة التحكم",icon:nT},{path:"/stores",label:"المتاجر",icon:cm},{path:"/customers",label:"العملاء",icon:hm},{path:"/subscriptions",label:"الاشتراكات",icon:Lh},{path:"/payments",label:"المدفوعات",icon:Lh},{path:"/shipping",label:"الشحن",icon:jS},{path:"/marketing",label:"التسويق",icon:aT},{path:"/content",label:"المحتوى",icon:yS},{path:"/roles",label:"الصلاحيات",icon:Bh},{path:"/settings",label:"الإعدادات",icon:dm}];function OZ(){return c.jsxs("div",{className:"app-layout",children:[c.jsxs("aside",{className:"sidebar",children:[c.jsxs("div",{className:"sidebar-logo",children:[c.jsx("span",{style:{fontSize:28},children:"🏪"}),c.jsx("h1",{children:"رف"})]}),c.jsx("nav",{className:"sidebar-nav",children:SZ.map(e=>c.jsxs(H$,{to:e.path,className:({isActive:t})=>`nav-item ${t?"active":""}`,children:[c.jsx(e.icon,{}),c.jsx("span",{children:e.label})]},e.path))}),c.jsx("div",{style:{marginTop:"auto",paddingTop:24,borderTop:"1px solid var(--gray-700)"},children:c.jsxs("div",{className:"user-menu",style:{color:"white"},children:[c.jsx("div",{className:"user-avatar",children:"أ"}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontSize:14,fontWeight:500},children:"أحمد محمد"}),c.jsx("div",{style:{fontSize:12,color:"var(--gray-400)"},children:"مدير المنصة"})]}),c.jsx(iT,{size:18})]})})]}),c.jsxs("main",{className:"main-content",children:[c.jsxs("header",{className:"header",children:[c.jsx("div",{className:"header-right",children:c.jsxs("div",{className:"search-box",children:[c.jsx(fm,{size:18,color:"var(--gray-400)"}),c.jsx("input",{type:"text",placeholder:"بحث..."})]})}),c.jsxs("div",{className:"header-left",children:[c.jsxs("button",{className:"header-btn",children:[c.jsx(Z$,{size:20,color:"var(--gray-600)"}),c.jsx("span",{className:"notification-badge"})]}),c.jsx("button",{className:"header-btn",children:c.jsx(oT,{size:20,color:"var(--gray-600)"})})]})]}),c.jsx("div",{className:"page-content",children:c.jsx(k$,{})})]})]})}function PZ(){return c.jsx(F$,{children:c.jsxs(C$,{children:[c.jsx(Je,{path:"/login",element:c.jsx(jZ,{})}),c.jsxs(Je,{path:"/",element:c.jsx(OZ,{}),children:[c.jsx(Je,{index:!0,element:c.jsx(T$,{to:"/dashboard",replace:!0})}),c.jsx(Je,{path:"dashboard",element:c.jsx(YQ,{})}),c.jsx(Je,{path:"stores",element:c.jsx(eZ,{})}),c.jsx(Je,{path:"stores/create",element:c.jsx(rZ,{})}),c.jsx(Je,{path:"stores/:slug",element:c.jsx(tZ,{})}),c.jsx(Je,{path:"customers",element:c.jsx(nZ,{})}),c.jsx(Je,{path:"customers/:id",element:c.jsx(iZ,{})}),c.jsx(Je,{path:"subscriptions",element:c.jsx(lZ,{})}),c.jsx(Je,{path:"payments",element:c.jsx(cZ,{})}),c.jsx(Je,{path:"shipping",element:c.jsx(fZ,{})}),c.jsx(Je,{path:"marketing",element:c.jsx(hZ,{})}),c.jsx(Je,{path:"content",element:c.jsx(yZ,{})}),c.jsx(Je,{path:"roles",element:c.jsx(bZ,{})}),c.jsx(Je,{path:"settings",element:c.jsx(wZ,{})})]})]})})}zd.createRoot(document.getElementById("root")).render(c.jsx(_.StrictMode,{children:c.jsx(PZ,{})}));