Plugin Directory

Changeset 3374738


Ignore:
Timestamp:
10/08/2025 02:00:34 AM (6 months ago)
Author:
yooanalytics
Message:

Release 0.8.1

Location:
yooanalytics/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • yooanalytics/trunk/build/index.asset.php

    r3373327 r3374738  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'e55707b3a33492a919d7');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'a31c9904ee2a7a7ecf49');
  • yooanalytics/trunk/build/index.js

    r3373327 r3374738  
    454454    animation-delay: 200ms;
    455455  }
    456 `,Go=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...s}=n,[l,u]=a.useState([]),d=a.useRef(0),f=a.useRef(null);a.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[l]);const p=a.useRef(!1),h=Io(),m=a.useRef(null),y=a.useRef(null),g=a.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;u((e=>[...e,(0,Xr.jsx)(qo,{classes:{ripple:c(o.ripple,Bo.ripple),rippleVisible:c(o.rippleVisible,Bo.rippleVisible),ripplePulsate:c(o.ripplePulsate,Bo.ripplePulsate),child:c(o.child,Bo.child),childLeaving:c(o.childLeaving,Bo.childLeaving),childPulsate:c(o.childPulsate,Bo.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},d.current)])),d.current+=1,f.current=i}),[o]),v=a.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const s=i?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,h]),b=a.useCallback((()=>{v({},{pulsate:!0})}),[v]),w=a.useCallback(((e,t)=>{if(h.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void h.start(0,(()=>{w(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),f.current=t}),[h]);return a.useImperativeHandle(t,(()=>({pulsate:b,start:v,stop:w})),[b,v,w]),(0,Xr.jsx)(Vo,{className:c(Bo.root,o.root,i),ref:y,...s,children:(0,Xr.jsx)(To,{component:null,exit:!0,children:l})})})),Xo=Go;function Ko(e){return to("MuiButtonBase",e)}const Zo=no("MuiButtonBase",["root","disabled","focusVisible"]),Qo=Ur("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Zo.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jo=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:y="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:O,onKeyDown:S,onKeyUp:j,onMouseDown:P,onMouseLeave:k,onMouseUp:E,onTouchEnd:C,onTouchMove:M,onTouchStart:D,tabIndex:_=0,TouchRippleProps:A,touchRippleRef:T,type:N,...R}=n,I=a.useRef(null),$=So.use(),L=go($.ref,T),[F,z]=a.useState(!1);d&&F&&z(!1),a.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),I.current.focus()}})),[]);const W=$.shouldMount&&!f&&!d;a.useEffect((()=>{F&&h&&!f&&$.pulsate()}),[f,h,F,$]);const B=ea($,"start",P,p),H=ea($,"stop",b,p),Y=ea($,"stop",w,p),U=ea($,"stop",E,p),V=ea($,"stop",(e=>{F&&e.preventDefault(),k&&k(e)}),p),q=ea($,"start",D,p),G=ea($,"stop",C,p),X=ea($,"stop",M,p),K=ea($,"stop",(e=>{vo(e.target)||z(!1),g&&g(e)}),!1),Z=wo((e=>{I.current||(I.current=e.currentTarget),vo(e.target)&&(z(!0),O&&O(e)),x&&x(e)})),Q=()=>{const e=I.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},J=wo((e=>{h&&!e.repeat&&F&&" "===e.key&&$.stop(e,(()=>{$.start(e)})),e.target===e.currentTarget&&Q()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&Q()&&"Enter"===e.key&&!d&&(e.preventDefault(),v&&v(e))})),ee=wo((e=>{h&&" "===e.key&&F&&!e.defaultPrevented&&$.stop(e,(()=>{$.pulsate(e)})),j&&j(e),v&&e.target===e.currentTarget&&Q()&&" "===e.key&&!e.defaultPrevented&&v(e)}));let te=l;"button"===te&&(R.href||R.to)&&(te=y);const ne={};"button"===te?(ne.type=void 0===N?"button":N,ne.disabled=d):(R.href||R.to||(ne.role="button"),d&&(ne["aria-disabled"]=d));const re=go(t,I),oe={...n,centerRipple:o,component:l,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:h,tabIndex:_,focusVisible:F},ae=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=u({root:["root",t&&"disabled",n&&"focusVisible"]},Ko,o);return n&&r&&(a.root+=` ${r}`),a})(oe);return(0,Xr.jsxs)(Qo,{as:te,className:c(ae.root,s),ownerState:oe,onBlur:K,onClick:v,onContextMenu:H,onFocus:Z,onKeyDown:J,onKeyUp:ee,onMouseDown:B,onMouseLeave:V,onMouseUp:U,onDragLeave:Y,onTouchEnd:G,onTouchMove:X,onTouchStart:q,ref:re,tabIndex:d?-1:_,type:N,...ne,...R,children:[i,W?(0,Xr.jsx)(Xo,{ref:L,center:o,...A}):null]})}));function ea(e,t,n,r=!1){return wo((o=>(n&&n(o),r||e[t](o),!0)))}const ta=Jo;function na(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function ra(e){return to("MuiChip",e)}const oa=no("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),aa=Ur("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${oa.avatar}`]:t.avatar},{[`& .${oa.avatar}`]:t[`avatar${p(s)}`]},{[`& .${oa.avatar}`]:t[`avatarColor${p(r)}`]},{[`& .${oa.icon}`]:t.icon},{[`& .${oa.icon}`]:t[`icon${p(s)}`]},{[`& .${oa.icon}`]:t[`iconColor${p(o)}`]},{[`& .${oa.deleteIcon}`]:t.deleteIcon},{[`& .${oa.deleteIcon}`]:t[`deleteIcon${p(s)}`]},{[`& .${oa.deleteIcon}`]:t[`deleteIconColor${p(r)}`]},{[`& .${oa.deleteIcon}`]:t[`deleteIcon${p(l)}Color${p(r)}`]},t.root,t[`size${p(s)}`],t[`color${p(r)}`],a&&t.clickable,a&&"default"!==r&&t[`clickableColor${p(r)})`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${p(r)}`],t[l],t[`${l}${p(r)}`]]}})(qr((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${oa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${oa.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${oa.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${oa.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${oa.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${oa.icon}`]:{marginLeft:5,marginRight:-6},[`& .${oa.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gn(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${oa.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${oa.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(na(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${oa.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:gn(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${oa.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${oa.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(na(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${oa.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(na(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${oa.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${oa.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${oa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${oa.avatar}`]:{marginLeft:4},[`& .${oa.avatarSmall}`]:{marginLeft:2},[`& .${oa.icon}`]:{marginLeft:4},[`& .${oa.iconSmall}`]:{marginLeft:2},[`& .${oa.deleteIcon}`]:{marginRight:5},[`& .${oa.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(na()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:gn(e.palette[t].main,.7)}`,[`&.${oa.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gn(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gn(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${oa.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:gn(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),ia=Ur("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${p(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function sa(e){return"Backspace"===e.key||"Delete"===e.key}const la=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:s="default",component:l,deleteIcon:d,disabled:f=!1,icon:h,label:m,onClick:y,onDelete:g,onKeyDown:v,onKeyUp:b,size:w="medium",variant:x="filled",tabIndex:O,skipFocusWhenDisabled:S=!1,...j}=n,P=a.useRef(null),k=go(P,t),E=e=>{e.stopPropagation(),g&&g(e)},C=!(!1===i||!y)||i,M=C||g?ta:l||"div",D={...n,component:M,disabled:f,size:w,color:s,iconColor:a.isValidElement(h)&&h.props.color||s,onDelete:!!g,clickable:C,variant:x},_=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e;return u({root:["root",l,n&&"disabled",`size${p(r)}`,`color${p(o)}`,s&&"clickable",s&&`clickableColor${p(o)}`,i&&"deletable",i&&`deletableColor${p(o)}`,`${l}${p(o)}`],label:["label",`label${p(r)}`],avatar:["avatar",`avatar${p(r)}`,`avatarColor${p(o)}`],icon:["icon",`icon${p(r)}`,`iconColor${p(a)}`],deleteIcon:["deleteIcon",`deleteIcon${p(r)}`,`deleteIconColor${p(o)}`,`deleteIcon${p(l)}Color${p(o)}`]},ra,t)})(D),A=M===ta?{component:l||"div",focusVisibleClassName:_.focusVisible,...g&&{disableRipple:!0}}:{};let T=null;g&&(T=d&&a.isValidElement(d)?a.cloneElement(d,{className:c(d.props.className,_.deleteIcon),onClick:E}):(0,Xr.jsx)(mo,{className:c(_.deleteIcon),onClick:E}));let N=null;r&&a.isValidElement(r)&&(N=a.cloneElement(r,{className:c(_.avatar,r.props.className)}));let R=null;return h&&a.isValidElement(h)&&(R=a.cloneElement(h,{className:c(_.icon,h.props.className)})),(0,Xr.jsxs)(aa,{as:M,className:c(_.root,o),disabled:!(!C||!f)||void 0,onClick:y,onKeyDown:e=>{e.currentTarget===e.target&&sa(e)&&e.preventDefault(),v&&v(e)},onKeyUp:e=>{e.currentTarget===e.target&&g&&sa(e)&&g(e),b&&b(e)},ref:k,tabIndex:S&&f?-1:O,ownerState:D,...A,...j,children:[N||R,(0,Xr.jsx)(ia,{className:c(_.label),ownerState:D,children:m}),T]})})),ca=la,ua=window.wp.i18n;o(28232);var da="popstate";function fa(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:p.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:ga(e);return n=n.replace(/ $/,"%20"),pa(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==c&&(c=0,i.replaceState({...i.state,idx:c},""));let p={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(da,d),l=e,()=>{o.removeEventListener(da,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=ya(p.location,e,t);n&&n(r,e),c=u()+1;let d=ma(r,c),f=p.createHref(r);try{i.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&l&&l({action:s,location:p.location,delta:1})},replace:function(e,t){s="REPLACE";let r=ya(p.location,e,t);n&&n(r,e),c=u();let o=ma(r,c),d=p.createHref(r);i.replaceState(o,"",d),a&&l&&l({action:s,location:p.location,delta:0})},go:e=>i.go(e)};return p}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=va(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),ya("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:ga(t))}),(function(e,t){ha("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function pa(e,t){if(!1===e||null==e)throw new Error(t)}function ha(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function ma(e,t){return{usr:e.state,key:e.key,idx:t}}function ya(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?va(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function ga({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function va(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ba(e,t,n="/"){return function(e,t,n,r){let o=Ta(("string"==typeof t?va(t):t).pathname||"/",n);if(null==o)return null;let a=wa(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=Aa(o);i=Da(a[e],t,r)}return i}(e,t,n,!1)}function wa(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(pa(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=$a([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(pa(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),wa(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Ma(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of xa(e.path))o(e,t,n);else o(e,t)})),t}function xa(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=xa(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}new WeakMap;var Oa=/^:[\w-]+$/,Sa=3,ja=2,Pa=1,ka=10,Ea=-2,Ca=e=>"*"===e;function Ma(e,t){let n=e.split("/"),r=n.length;return n.some(Ca)&&(r+=Ea),t&&(r+=ja),n.filter((e=>!Ca(e))).reduce(((e,t)=>e+(Oa.test(t)?Sa:""===t?Pa:ka)),r)}function Da(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=_a({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=_a({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:$a([a,u.pathname]),pathnameBase:La($a([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=$a([a,u.pathnameBase]))}return i}function _a(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){ha("*"===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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function Aa(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return ha(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ta(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Na(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ra(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Ia(e,t,n,r=!1){let o;"string"==typeof e?o=va(e):(o={...e},pa(!o.pathname||!o.pathname.includes("?"),Na("?","pathname","search",o)),pa(!o.pathname||!o.pathname.includes("#"),Na("#","pathname","hash",o)),pa(!o.search||!o.search.includes("#"),Na("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?va(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:Fa(r),hash:za(o)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var $a=e=>e.join("/").replace(/\/\/+/g,"/"),La=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Fa=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",za=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Wa(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var Ba=["POST","PUT","PATCH","DELETE"],Ha=(new Set(Ba),["GET",...Ba]);new Set(Ha),Symbol("ResetLoaderData");var Ya=a.createContext(null);Ya.displayName="DataRouter";var Ua=a.createContext(null);Ua.displayName="DataRouterState";var Va=a.createContext({isTransitioning:!1});Va.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var qa=a.createContext(null);qa.displayName="Navigation";var Ga=a.createContext(null);Ga.displayName="Location";var Xa=a.createContext({outlet:null,matches:[],isDataRoute:!1});Xa.displayName="Route";var Ka=a.createContext(null);function Za(){return null!=a.useContext(Ga)}function Qa(){return pa(Za(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Ga).location}Ka.displayName="RouteError";var Ja="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ei(e){a.useContext(qa).static||a.useLayoutEffect(e)}function ti(){let{isDataRoute:e}=a.useContext(Xa);return e?function(){let{router:e}=function(e){let t=a.useContext(Ya);return pa(t,li(e)),t}("useNavigate"),t=ci("useNavigate"),n=a.useRef(!1);return ei((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{ha(n.current,Ja),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){pa(Za(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Ya),{basename:t,navigator:n}=a.useContext(qa),{matches:r}=a.useContext(Xa),{pathname:o}=Qa(),i=JSON.stringify(Ra(r)),s=a.useRef(!1);return ei((()=>{s.current=!0})),a.useCallback(((r,a={})=>{if(ha(s.current,Ja),!s.current)return;if("number"==typeof r)return void n.go(r);let l=Ia(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:$a([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)}),[t,n,i,o,e])}()}function ni(e,{relative:t}={}){let{matches:n}=a.useContext(Xa),{pathname:r}=Qa(),o=JSON.stringify(Ra(n));return a.useMemo((()=>Ia(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function ri(e,t,n,r){pa(Za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:i}=a.useContext(qa),{matches:s}=a.useContext(Xa),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",f=l&&l.route;{let e=f&&f.path||"";di(u,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,h=Qa();if(t){let e="string"==typeof t?va(t):t;pa("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=h;let m=p.pathname||"/",y=m;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=!i&&n&&n.matches&&n.matches.length>0?n.matches:ba(e,{pathname:y});ha(f||null!=g,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),ha(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=function(e,t=[],n=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,o=n?.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));pa(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let i=!1,s=-1;if(n)for(let e=0;e<r.length;e++){let t=r[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:o}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||a){i=!0,r=s>=0?r.slice(0,s+1):[r[0]];break}}}return r.reduceRight(((e,l,c)=>{let u,d=!1,f=null,p=null;n&&(u=o&&l.route.id?o[l.route.id]:void 0,f=l.route.errorElement||ai,i&&(s<0&&0===c?(di("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=l.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,c+1)),m=()=>{let t;return t=u?f:d?p:l.route.Component?a.createElement(l.route.Component,null):l.route.element?l.route.element:e,a.createElement(si,{match:l,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?a.createElement(ii,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:$a([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:$a([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&v?a.createElement(Ga.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},v):v}function oi(){let e=function(){let e=a.useContext(Ka),t=function(e){let t=a.useContext(Ua);return pa(t,li(e)),t}("useRouteError"),n=ci("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=Wa(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,s)}a.createContext(null);var ai=a.createElement(oi,null),ii=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(Xa.Provider,{value:this.props.routeContext},a.createElement(Ka.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function si({routeContext:e,match:t,children:n}){let r=a.useContext(Ya);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(Xa.Provider,{value:e},n)}function li(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ci(e){let t=function(e){let t=a.useContext(Xa);return pa(t,li(e)),t}(e),n=t.matches[t.matches.length-1];return pa(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var ui={};function di(e,t,n){t||ui[e]||(ui[e]=!0,ha(!1,n))}function fi(e){pa(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function pi({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){pa(!Za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,future:{}})),[s,o,i]);"string"==typeof n&&(n=va(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=n,h=a.useMemo((()=>{let e=Ta(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}}),[s,c,u,d,f,p,r]);return ha(null!=h,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:a.createElement(qa.Provider,{value:l},a.createElement(Ga.Provider,{children:t,value:h}))}function hi({children:e,location:t}){return ri(mi(e),t)}function mi(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,mi(e.props.children,o));pa(e.type===fi,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),pa(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=mi(e.props.children,o)),n.push(i)})),n}a.memo((function({routes:e,future:t,state:n}){return ri(e,void 0,n,t)})),a.Component;var yi="get",gi="application/x-www-form-urlencoded";function vi(e){return null!=e&&"string"==typeof e.tagName}var bi=null,wi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xi(e){return null==e||wi.has(e)?e:(ha(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gi}"`),null)}function Oi(e,t){if(!1===e||null==e)throw new Error(t)}function Si(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ji(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||s(e,t))):"data"===a?t.filter(((t,a)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Pi(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function ki(){let e=a.useContext(Ya);return Oi(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ei(){let e=a.useContext(Ua);return Oi(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect"),a.Component;var Ci=a.createContext(void 0);function Mi(){let e=a.useContext(Ci);return Oi(e,"You must render this element inside a <HydratedRouter> element"),e}function Di(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _i({page:e,...t}){let{router:n}=ki(),r=a.useMemo((()=>ba(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?a.createElement(Ti,{page:e,matches:r,...t}):null}function Ai(e){let{manifest:t,routeModules:n}=Mi(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!function(e){return null!=e&&"string"==typeof e.page}(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Si).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function Ti({page:e,matches:t,...n}){let r=Qa(),{manifest:o,routeModules:i}=Mi(),{basename:s}=ki(),{loaderData:l,matches:c}=Ei(),u=a.useMemo((()=>ji(e,t,c,o,r,"data")),[e,t,c,o,r]),d=a.useMemo((()=>ji(e,t,c,o,r,"assets")),[e,t,c,o,r]),f=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in l&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))})),0===n.size)return[];let c=function(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===Ta(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}(e,s);return a&&n.size>0&&c.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[c.pathname+c.search]}),[s,l,r,o,u,t,e,i]),p=a.useMemo((()=>Pi(d,o)),[d,o]),h=Ai(d);return a.createElement(a.Fragment,null,f.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>a.createElement("link",{key:e,...t}))))}Ci.displayName="FrameworkContext";function Ni(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var Ri="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Ri&&(window.__reactRouterVersion="7.5.0")}catch(e){}function Ii({basename:e,children:t,window:n}){let r=a.useRef();null==r.current&&(r.current=fa({window:n,v5Compat:!0}));let o=r.current,[i,s]=a.useState({action:o.action,location:o.location}),l=a.useCallback((e=>{a.startTransition((()=>s(e)))}),[s]);return a.useLayoutEffect((()=>o.listen(l)),[o,l]),a.createElement(pi,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var $i=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Li=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d,...f},p){let h,{basename:m}=a.useContext(qa),y="string"==typeof c&&$i.test(c),g=!1;if("string"==typeof c&&y&&(h=c,Ri))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Ta(t.pathname,m);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:g=!0}catch(e){ha(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=function(e,{relative:t}={}){pa(Za(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(qa),{hash:o,pathname:i,search:s}=ni(e,{relative:t}),l=i;return"/"!==n&&(l="/"===i?n:$a([n,i])),r.createHref({pathname:l,search:s,hash:o})}(c,{relative:r}),[b,w,x]=function(e,t){let n=a.useContext(Ci),[r,o]=a.useState(!1),[i,s]=a.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),s(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:Di(l,h),onBlur:Di(c,m),onMouseEnter:Di(u,h),onMouseLeave:Di(d,m),onTouchStart:Di(f,h)}]:[!1,p,{}]}(n,f),O=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=ti(),c=Qa(),u=ni(e,{relative:i});return a.useCallback((a=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(a,t)){a.preventDefault();let t=void 0!==n?n:ga(c)===ga(u);l(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:s})}}),[c,l,u,n,r,t,e,o,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:r,viewTransition:d}),S=a.createElement("a",{...f,...x,href:h||v,onClick:g||o?e:function(t){e&&e(t),t.defaultPrevented||O(t)},ref:Ni(p,w),target:l,"data-discover":y||"render"!==t?void 0:"true"});return b&&!y?a.createElement(a.Fragment,null,S,a.createElement(_i,{page:v})):S}));Li.displayName="Link";var Fi=a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:s,children:l,...c},u){let d=ni(i,{relative:c.relative}),f=Qa(),p=a.useContext(Ua),{navigator:h,basename:m}=a.useContext(qa),y=null!=p&&function(e,t={}){let n=a.useContext(Va);pa(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Wi("useViewTransitionState"),o=ni(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Ta(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ta(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=_a(o.pathname,s)||null!=_a(o.pathname,i)}(d)&&!0===s,g=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,v=f.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&m&&(b=Ta(b,m)||b);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let x,O=v===g||!r&&v.startsWith(g)&&"/"===v.charAt(w),S=null!=b&&(b===g||!r&&b.startsWith(g)&&"/"===b.charAt(g.length)),j={isActive:O,isPending:S,isTransitioning:y},P=O?e:void 0;x="function"==typeof n?n(j):[n,O?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof o?o(j):o;return a.createElement(Li,{...c,"aria-current":P,className:x,ref:u,style:k,to:i,viewTransition:s},"function"==typeof l?l(j):l)}));Fi.displayName="NavLink";var zi=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=yi,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,...p},h)=>{let m=function(){let{router:e}=Wi("useSubmit"),{basename:t}=a.useContext(qa),n=ci("useRouteId");return a.useCallback((async(r,o={})=>{let{action:a,method:i,encType:s,formData:l,body:c}=function(e,t){let n,r,o,a,i;if(function(e){return vi(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?Ta(i,t):null,n=e.getAttribute("method")||yi,o=xi(e.getAttribute("enctype"))||gi,a=new FormData(e)}else if(function(e){return vi(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return vi(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?Ta(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||yi,o=xi(e.getAttribute("formenctype"))||xi(i.getAttribute("enctype"))||gi,a=new FormData(i,e),!function(){if(null===bi)try{new FormData(document.createElement("form"),0),bi=!1}catch(e){bi=!0}return bi}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(vi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yi,r=null,o=gi,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}(r,t);if(!1===o.navigate){let t=o.fetcherKey||Hi();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}(),y=function(e,{relative:t}={}){let{basename:n}=a.useContext(qa),r=a.useContext(Xa);pa(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ni(e||".",{relative:t})},s=Qa();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}return e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:$a([n,i.pathname])),ga(i)}(l,{relative:u}),g="get"===s.toLowerCase()?"get":"post",v="string"==typeof l&&$i.test(l);return a.createElement("form",{ref:h,method:g,action:y,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,a=r?.getAttribute("formmethod")||s;m(r||e.currentTarget,{fetcherKey:t,method:a,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:f})},...p,"data-discover":v||"render"!==e?void 0:"true"})}));function Wi(e){let t=a.useContext(Ya);return pa(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}zi.displayName="Form";var Bi=0,Hi=()=>`__${String(++Bi)}__`;new TextEncoder;const Yi=()=>(0,Xr.jsxs)("div",{className:"yoo-menu",children:[(0,Xr.jsxs)("div",{className:"yoo-logo",children:[(0,Xr.jsx)(Li,{to:"/",children:(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/logo.png`,alt:"YooAnalytics Logo",width:190})}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)(ca,{label:`v${YooAnalytics.version}`,className:"yoo-coming-soon-chip",color:"primary",size:"small",variant:"outlined"})})]}),(0,Xr.jsxs)("div",{className:"yoo-menu-items-container",children:[(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/",className:"yoo-menu-item",children:[(0,Xr.jsx)(lo,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("Dashboard","yooanalytics")})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/realtime",className:"yoo-menu-item",children:[(0,Xr.jsx)(co,{className:"yoo-menu-icon"}),(0,Xr.jsxs)("span",{className:"yoo-menu-text",children:[(0,ua.__)("Realtime","yooanalytics")," ",(0,Xr.jsx)("span",{style:{display:"inline-flex",alignItems:"center"},children:(0,Xr.jsx)(ca,{label:"📊 New",className:"yoo-coming-soon-chip",style:{background:"#1976d2",color:"#fff",border:"none"},size:"small",variant:"filled"})}),(0,Xr.jsx)("div",{className:"clearfix"})]})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Li,{to:"javascript:void(0)",className:"yoo-menu-item disabled",children:[(0,Xr.jsx)(uo,{className:"yoo-menu-icon"}),(0,Xr.jsxs)("span",{className:"yoo-menu-text",children:[(0,ua.__)("Countries","yooanalytics")," ",(0,Xr.jsx)("span",{style:{display:"inline-flex",alignItems:"center"},children:(0,Xr.jsx)(ca,{label:"⚒️ Coming Soon",className:"yoo-coming-soon-chip",color:"primary",size:"small",variant:"outlined"})}),(0,Xr.jsx)("div",{className:"clearfix"})]})]})}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Li,{to:"javascript:void(0)",className:"yoo-menu-item disabled",title:"WooCommerce Purchase Journey",children:[(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/woocommerce-logo.svg`,className:"yoo-menu-icon",width:24,alt:"WooCommerce Logo"}),(0,Xr.jsxs)("span",{className:"yoo-menu-text",children:[(0,ua.__)("Purchase","yooanalytics")," ",(0,Xr.jsx)("span",{style:{display:"inline-flex",alignItems:"center"},children:(0,Xr.jsx)(ca,{label:"⚒️ Coming Soon",className:"yoo-coming-soon-chip",color:"primary",size:"small",variant:"outlined"})}),(0,Xr.jsx)("div",{className:"clearfix"})]})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/settings",className:"yoo-menu-item",children:[(0,Xr.jsx)(fo,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("Settings","yooanalytics")})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)("a",{href:"https://www.yooanalytics.com/contact-us/?utm_source=plugin&utm_medium=menu&utm_campaign=Support",target:"_blank",className:"yoo-menu-item",children:[(0,Xr.jsx)(po,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("Support","yooanalytics")})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/about",className:"yoo-menu-item",children:[(0,Xr.jsx)(ho,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("About","yooanalytics")})]})}),YooAnalytics.hasActiveValidLicense?"":(0,Xr.jsx)("div",{className:"yoo-menu-pro",children:(0,Xr.jsxs)("a",{href:"https://www.yooanalytics.com/?utm_source=plugin&utm_medium=menu&utm_campaign=Get+YooAnalytics+Pro",target:"_blank",className:"yoo-menu-item yoo-get-pro",children:[(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/pro.png`,alt:"YooAnalytics Get Pro"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,Xr.jsx)("b",{children:(0,ua.__)("Get YooAnalytics Pro","yooanalytics")})})]})})]})]}),Ui=window.wp.components,Vi=a.createContext({});function qi({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=!0,customHighlightBackground:c}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof c&&(u["--custom-highlight-background"]=c),u}function Gi({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...l}){var c,u,d;const f=a.useContext(Vi),p={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete p[e];const h={...f,...p,circle:i},m={...s,...qi(h)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const g=null!==(c=h.inline)&&void 0!==c&&c,v=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=m;if(b>e&&t===b-1){const t=null!==(u=n.width)&&void 0!==u?u:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const r=a.createElement("span",{className:y,style:n,key:t},"‌");g?v.push(r):v.push(a.createElement(a.Fragment,{key:t},r,a.createElement("br",null)))}return a.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":null===(d=h.enableAnimation)||void 0===d||d},t?v.map(((e,n)=>a.createElement(t,{key:n},e))):v)}const Xi=e=>(0,Xr.jsx)(Gi,{baseColor:"#FAFAFA",count:e.count,height:e.height,width:e.width,className:e.className}),Ki={"X-WP-Nonce":YooAnalytics.nonce};var Zi=o(83757);const Qi=({columns:e,data:t})=>(0,Xr.jsx)(Zi.Ay,{columns:e,data:t,responsive:!0,highlightOnHover:!0,pagination:!0}),Ji=a.createContext(),es=()=>a.useContext(Ji)??!1;function ts(e){return parseInt(a.version,10)>=19?e?.props?.ref||null:e?.ref||null}const ns=nn(),rs=function(e=ns){return function(e=null){const t=a.useContext(Re);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(e)};function os(){const e=rs(Br);return e[Hr]||e}const as=window.ReactDOM;var is=o.n(as);var ss="unmounted",ls="exited",cs="entering",us="entered",ds="exiting",fs=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=ls,r.appearStatus=cs):o=us:o=t.unmountOnExit||t.mountOnEnter?ss:ls,r.state={status:o},r.nextCallback=null,r}ko(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ss?{status:ls}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==cs&&n!==us&&(t=cs):n!==cs&&n!==us||(t=ds)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:is().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ls&&this.setState({status:ss})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[is().findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:cs},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:us},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:us},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:is().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:ds},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ls},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ls},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:is().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ss)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,jo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s().createElement(Eo.Provider,{value:null},"function"==typeof n?n(e,r):s().cloneElement(s().Children.only(n),r))},t}(s().Component);function ps(){}fs.contextType=Eo,fs.propTypes={},fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ps,onEntering:ps,onEntered:ps,onExit:ps,onExiting:ps,onExited:ps},fs.UNMOUNTED=ss,fs.EXITED=ls,fs.ENTERING=cs,fs.ENTERED=us,fs.EXITING=ds;const hs=fs;function ms(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function ys(e){return`scale(${e}, ${e**2})`}const gs={entering:{opacity:1,transform:ys(1)},entered:{opacity:1,transform:"none"}},vs="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=a.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",TransitionComponent:y=hs,...g}=e,v=Io(),b=a.useRef(),w=os(),x=a.useRef(null),O=go(x,ts(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},j=S(u),P=S(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=ms({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:vs?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(p),C=S((e=>{const{duration:t,delay:n,easing:r}=ms({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:vs?o:.666*o,delay:vs?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ys(.75),d&&d(e)})),M=S(f);return(0,Xr.jsx)(y,{appear:r,in:s,nodeRef:x,onEnter:P,onEntered:k,onEntering:j,onExit:C,onExited:M,onExiting:E,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m,...g,children:(e,{ownerState:t,...n})=>a.cloneElement(o,{style:{opacity:0,transform:ys(.75),visibility:"exited"!==e||s?void 0:"hidden",...gs[e],...h,...o.props.style},ref:O,...n})})}));bs&&(bs.muiSupportAuto=!0);const ws=bs;function xs(e){return e&&e.ownerDocument||document}function Os(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){return e instanceof Os(e).Element||e instanceof Element}function js(e){return e instanceof Os(e).HTMLElement||e instanceof HTMLElement}function Ps(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Os(e).ShadowRoot||e instanceof ShadowRoot)}var ks=Math.max,Es=Math.min,Cs=Math.round;function Ms(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ds(){return!/^((?!chrome|android).)*safari/i.test(Ms())}function _s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&js(e)&&(o=e.offsetWidth>0&&Cs(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Cs(r.height)/e.offsetHeight||1);var i=(Ss(e)?Os(e):window).visualViewport,s=!Ds()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function As(e){var t=Os(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ts(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rs(e){return _s(Ns(e)).left+As(e).scrollLeft}function Is(e){return Os(e).getComputedStyle(e)}function $s(e){var t=Is(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ls(e,t,n){void 0===n&&(n=!1);var r=js(t),o=js(t)&&function(e){var t=e.getBoundingClientRect(),n=Cs(t.width)/e.offsetWidth||1,r=Cs(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ns(t),i=_s(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ts(t)||$s(a))&&(s=function(e){return e!==Os(e)&&js(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:As(e);var t}(t)),js(t)?((l=_s(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Rs(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Fs(e){var t=_s(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zs(e){return"html"===Ts(e)?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||Ns(e)}function Ws(e){return["html","body","#document"].indexOf(Ts(e))>=0?e.ownerDocument.body:js(e)&&$s(e)?e:Ws(zs(e))}function Bs(e,t){var n;void 0===t&&(t=[]);var r=Ws(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Os(r),i=o?[a].concat(a.visualViewport||[],$s(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Bs(zs(i)))}function Hs(e){return["table","td","th"].indexOf(Ts(e))>=0}function Ys(e){return js(e)&&"fixed"!==Is(e).position?e.offsetParent:null}function Us(e){for(var t=Os(e),n=Ys(e);n&&Hs(n)&&"static"===Is(n).position;)n=Ys(n);return n&&("html"===Ts(n)||"body"===Ts(n)&&"static"===Is(n).position)?t:n||function(e){var t=/firefox/i.test(Ms());if(/Trident/i.test(Ms())&&js(e)&&"fixed"===Is(e).position)return null;var n=zs(e);for(Ps(n)&&(n=n.host);js(n)&&["html","body"].indexOf(Ts(n))<0;){var r=Is(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Vs="top",qs="bottom",Gs="right",Xs="left",Ks="auto",Zs=[Vs,qs,Gs,Xs],Qs="start",Js="end",el="viewport",tl="popper",nl=Zs.reduce((function(e,t){return e.concat([t+"-"+Qs,t+"-"+Js])}),[]),rl=[].concat(Zs,[Ks]).reduce((function(e,t){return e.concat([t,t+"-"+Qs,t+"-"+Js])}),[]),ol=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function al(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var il={placement:"bottom",modifiers:[],strategy:"absolute"};function sl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ll(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?il:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},il,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Ss(e)?Bs(e):e.contextElement?Bs(e.contextElement):[],popper:Bs(t)};var i,c,f=function(e){var t=al(e);return ol.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:r});l.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(sl(t,n)){s.rects={reference:Ls(t,Us(n),"fixed"===s.options.strategy),popper:Fs(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!sl(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var cl={passive:!0};function ul(e){return e.split("-")[0]}function dl(e){return e.split("-")[1]}function fl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pl(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ul(o):null,i=o?dl(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Vs:t={x:s,y:n.y-r.height};break;case qs:t={x:s,y:n.y+n.height};break;case Gs:t={x:n.x+n.width,y:l};break;case Xs:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?fl(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Qs:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Js:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var hl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ml(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.y,m=void 0===h?0:h,y="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=Xs,w=Vs,x=window;if(c){var O=Us(n),S="clientHeight",j="clientWidth";O===Os(n)&&"static"!==Is(O=Ns(n)).position&&"absolute"===s&&(S="scrollHeight",j="scrollWidth"),(o===Vs||(o===Xs||o===Gs)&&a===Js)&&(w=qs,m-=(d&&O===x&&x.visualViewport?x.visualViewport.height:O[S])-r.height,m*=l?1:-1),o!==Xs&&(o!==Vs&&o!==qs||a!==Js)||(b=Gs,p-=(d&&O===x&&x.visualViewport?x.visualViewport.width:O[j])-r.width,p*=l?1:-1)}var P,k=Object.assign({position:s},c&&hl),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cs(n*o)/o||0,y:Cs(r*o)/o||0}}({x:p,y:m},Os(n)):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},k,((P={})[w]=v?"0":"",P[b]=g?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P)):Object.assign({},k,((t={})[w]=v?m+"px":"",t[b]=g?p+"px":"",t.transform="",t))}const yl={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];js(o)&&Ts(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});js(r)&&Ts(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var gl={left:"right",right:"left",bottom:"top",top:"bottom"};function vl(e){return e.replace(/left|right|bottom|top/g,(function(e){return gl[e]}))}var bl={start:"end",end:"start"};function wl(e){return e.replace(/start|end/g,(function(e){return bl[e]}))}function xl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ps(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ol(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sl(e,t,n){return t===el?Ol(function(e,t){var n=Os(e),r=Ns(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Ds();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Rs(e),y:l}}(e,n)):Ss(t)?function(e,t){var n=_s(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ol(function(e){var t,n=Ns(e),r=As(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=ks(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ks(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Rs(e),l=-r.scrollTop;return"rtl"===Is(o||n).direction&&(s+=ks(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Ns(e)))}function jl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pl(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function kl(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?el:c,d=n.elementContext,f=void 0===d?tl:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,y=void 0===m?0:m,g=jl("number"!=typeof y?y:Pl(y,Zs)),v=f===tl?"reference":tl,b=e.rects.popper,w=e.elements[h?v:f],x=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Bs(zs(e)),n=["absolute","fixed"].indexOf(Is(e).position)>=0&&js(e)?Us(e):e;return Ss(n)?t.filter((function(e){return Ss(e)&&xl(e,n)&&"body"!==Ts(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Sl(e,n,r);return t.top=ks(o.top,t.top),t.right=Es(o.right,t.right),t.bottom=Es(o.bottom,t.bottom),t.left=ks(o.left,t.left),t}),Sl(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Ss(w)?w:w.contextElement||Ns(e.elements.popper),l,u,i),O=_s(e.elements.reference),S=pl({reference:O,element:b,strategy:"absolute",placement:o}),j=Ol(Object.assign({},b,S)),P=f===tl?j:O,k={top:x.top-P.top+g.top,bottom:P.bottom-x.bottom+g.bottom,left:x.left-P.left+g.left,right:P.right-x.right+g.right},E=e.modifiersData.offset;if(f===tl&&E){var C=E[o];Object.keys(k).forEach((function(e){var t=[Gs,qs].indexOf(e)>=0?1:-1,n=[Vs,qs].indexOf(e)>=0?"y":"x";k[e]+=C[n]*t}))}return k}const El={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,y=t.options.placement,g=ul(y),v=l||(g!==y&&h?function(e){if(ul(e)===Ks)return[];var t=vl(e);return[wl(e),t,wl(t)]}(y):[vl(y)]),b=[y].concat(v).reduce((function(e,n){return e.concat(ul(n)===Ks?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?rl:l,u=dl(r),d=u?s?nl:nl.filter((function(e){return dl(e)===u})):Zs,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=kl(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ul(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,S=!0,j=b[0],P=0;P<b.length;P++){var k=b[P],E=ul(k),C=dl(k)===Qs,M=[Vs,qs].indexOf(E)>=0,D=M?"width":"height",_=kl(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),A=M?C?Gs:Xs:C?qs:Vs;w[D]>x[D]&&(A=vl(A));var T=vl(A),N=[];if(a&&N.push(_[E]<=0),s&&N.push(_[A]<=0,_[T]<=0),N.every((function(e){return e}))){j=k,S=!1;break}O.set(k,N)}if(S)for(var R=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=h?3:1;I>0&&"break"!==R(I);I--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Cl(e,t,n){return ks(e,Es(t,n))}const Ml={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,y=kl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=ul(t.placement),v=dl(t.placement),b=!v,w=fl(g),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,P="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(O){if(a){var M,D="y"===w?Vs:Xs,_="y"===w?qs:Gs,A="y"===w?"height":"width",T=O[w],N=T+y[D],R=T-y[_],I=p?-j[A]/2:0,$=v===Qs?S[A]:j[A],L=v===Qs?-j[A]:-S[A],F=t.elements.arrow,z=p&&F?Fs(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[D],H=W[_],Y=Cl(0,S[A],z[A]),U=b?S[A]/2-I-Y-B-k.mainAxis:$-Y-B-k.mainAxis,V=b?-S[A]/2+I+Y+H+k.mainAxis:L+Y+H+k.mainAxis,q=t.elements.arrow&&Us(t.elements.arrow),G=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,X=null!=(M=null==E?void 0:E[w])?M:0,K=T+V-X,Z=Cl(p?Es(N,T+U-X-G):N,T,p?ks(R,K):R);O[w]=Z,C[w]=Z-T}if(s){var Q,J="x"===w?Vs:Xs,ee="x"===w?qs:Gs,te=O[x],ne="y"===x?"height":"width",re=te+y[J],oe=te-y[ee],ae=-1!==[Vs,Xs].indexOf(g),ie=null!=(Q=null==E?void 0:E[x])?Q:0,se=ae?re:te-S[ne]-j[ne]-ie+k.altAxis,le=ae?te+S[ne]+j[ne]-ie-k.altAxis:oe,ce=p&&ae?function(e,t,n){var r=Cl(e,t,n);return r>n?n:r}(se,te,le):Cl(p?se:re,te,p?le:oe);O[x]=ce,C[x]=ce-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},Dl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=ul(n.placement),l=fl(s),c=[Xs,Gs].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return jl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pl(e,Zs))}(o.padding,n),d=Fs(a),f="y"===l?Vs:Xs,p="y"===l?qs:Gs,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],y=Us(a),g=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,v=h/2-m/2,b=u[f],w=g-d[c]-u[p],x=g/2-d[c]/2+v,O=Cl(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&xl(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Al(e){return[Vs,Gs,qs,Xs].some((function(t){return e[t]>=0}))}var Tl=ll({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Os(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,cl)})),s&&l.addEventListener("resize",n.update,cl),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,cl)})),s&&l.removeEventListener("resize",n.update,cl)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:ul(t.placement),variation:dl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ml(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ml(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},yl,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=rl.reduce((function(e,n){return e[n]=function(e,t,n){var r=ul(e),o=[Xs,Vs].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Xs,Gs].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},El,Ml,Dl,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=kl(t,{elementContext:"reference"}),s=kl(t,{altBoundary:!0}),l=_l(i,r),c=_l(s,o,a),u=Al(l),d=Al(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Nl=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},Rl=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},Il=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=c(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}({...o,...r}),s=Rl(r),l=Rl(o),u=t(i),d=c(u?.className,n?.className,a,o?.className,r?.className),f={...u?.style,...n?.style,...o?.style,...r?.style},p={...u,...n,...l,...s};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}},$l=function(e,t,n){return"function"==typeof e?e(t,n):e};function Ll(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Fl=a.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=yo(a.isValidElement(n)?ts(n):null,t);if(bo((()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),bo((()=>{if(i&&!o)return Ll(t,i),()=>{Ll(t,null)}}),[t,i,o]),o){if(a.isValidElement(n)){const e={ref:l};return a.cloneElement(n,e)}return n}return i?as.createPortal(n,i):i}));function zl(e){return to("MuiPopper",e)}function Wl(e){return"function"==typeof e?e():e}no("MuiPopper",["root"]);const Bl={},Hl=a.forwardRef((function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:y,...g}=e,v=a.useRef(null),b=yo(v,t),w=a.useRef(null),x=yo(w,f),O=a.useRef(x);bo((()=>{O.current=x}),[x]),a.useImperativeHandle(f,(()=>w.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,o),[j,P]=a.useState(S),[k,E]=a.useState(Wl(n));a.useEffect((()=>{w.current&&w.current.forceUpdate()})),a.useEffect((()=>{n&&E(Wl(n))}),[n]),bo((()=>{if(!k||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{P(e.placement)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Tl(k,v.current,{placement:S,...d,modifiers:e});return O.current(t),()=>{t.destroy(),O.current(null)}}),[k,i,s,l,d,S]);const C={placement:j};null!==m&&(C.TransitionProps=m);const M=(e=>{const{classes:t}=e;return u({root:["root"]},zl,t)})(e),D=h.root??"div",_=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:$l(n,r),{props:s,internalRef:l}=Il({...a,externalSlotProps:i}),c=yo(l,i?.ref,e.additionalProps?.ref);return Nl(t,{...s,ref:c},r)}({elementType:D,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:M.root});return(0,Xr.jsx)(D,{..._,children:"function"==typeof r?r(C):r})})),Yl=Ur(a.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Bl,popperRef:p,style:h,transition:m=!1,slotProps:y={},slots:g={},...v}=e,[b,w]=a.useState(!0);if(!l&&!u&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=Wl(n);x=e&&void 0!==e.nodeType?xs(e).body:xs(null).body}const O=u||!l||m&&!b?void 0:"none",S=m?{in:u,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,Xr.jsx)(Fl,{disablePortal:s,container:x,children:(0,Xr.jsx)(Hl,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:t,open:m?!b:u,placement:d,popperOptions:f,popperRef:p,slotProps:y,slots:g,...v,style:{position:"fixed",top:0,left:0,display:O,...h},TransitionProps:S,children:r})})})),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ul=a.forwardRef((function(e,t){const n=es(),r=Zr({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:i,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,transition:y,slots:g,slotProps:v,...b}=r,w=g?.root??i?.Root,x={anchorEl:o,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,transition:y,...b};return(0,Xr.jsx)(Yl,{as:a,direction:n?"rtl":"ltr",slots:{root:w},slotProps:v??s,...x,ref:t})}));let Vl=0;const ql={...a}.useId;function Gl(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,h=$l(d[e],o),{props:{component:m,...y},internalRef:g}=Il({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=yo(g,h?.ref,t.ref),b="root"===e?m||c:m;return[p,Nl(p,{..."root"===e&&!c&&!u[e]&&i,..."root"!==e&&!u[e]&&i,...y,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o)]}function Xl(e){return to("MuiTooltip",e)}const Kl=no("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Zl(e){return Math.round(1e5*e)/1e5}const Ql=Ur(Ul,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(qr((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Kl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Kl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Kl.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Kl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Kl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Kl.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),Jl=Ur("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${p(n.placement.split("-")[0])}`]]}})(qr((({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Kl.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Kl.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Kl.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Zl(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Kl.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Kl.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]})))),ec=Ur("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(qr((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let tc=!1;const nc=new Ro;let rc={x:0,y:0};function oc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ac=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:s={},componentsProps:l={},describeChild:d=!1,disableFocusListener:f=!1,disableHoverListener:h=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:v=0,enterTouchDelay:b=700,followCursor:w=!1,id:x,leaveDelay:O=0,leaveTouchDelay:S=1500,onClose:j,onOpen:P,open:k,placement:E="bottom",PopperComponent:C,PopperProps:M={},slotProps:D={},slots:_={},title:A,TransitionComponent:T,TransitionProps:N,...R}=n,I=a.isValidElement(o)?o:(0,Xr.jsx)("span",{children:o}),$=os(),L=es(),[F,z]=a.useState(),[W,B]=a.useState(null),H=a.useRef(!1),Y=m||w,U=Io(),V=Io(),q=Io(),G=Io(),[X,K]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=a.useRef(void 0!==e),[i,s]=a.useState(t);return[o?e:i,a.useCallback((e=>{o||s(e)}),[])]}({controlled:k,default:!1,name:"Tooltip",state:"open"});let Z=X;const Q=function(e){if(void 0!==ql){const t=ql();return e??t}return function(e){const[t,n]=a.useState(e),r=e||t;return a.useEffect((()=>{null==t&&(Vl+=1,n(`mui-${Vl}`))}),[t]),r}(e)}(x),J=a.useRef(),ee=wo((()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),G.clear()}));a.useEffect((()=>ee),[ee]);const te=e=>{nc.clear(),tc=!0,K(!0),P&&!Z&&P(e)},ne=wo((e=>{nc.start(800+O,(()=>{tc=!1})),K(!1),j&&Z&&j(e),U.start($.transitions.duration.shortest,(()=>{H.current=!1}))})),re=e=>{H.current&&"touchstart"!==e.type||(F&&F.removeAttribute("title"),V.clear(),q.clear(),g||tc&&v?V.start(tc?v:g,(()=>{te(e)})):te(e))},oe=e=>{V.clear(),q.start(O,(()=>{ne(e)}))},[,ae]=a.useState(!1),ie=e=>{vo(e.target)||(ae(!1),oe(e))},se=e=>{F||z(e.currentTarget),vo(e.target)&&(ae(!0),re(e))},le=e=>{H.current=!0;const t=I.props;t.onTouchStart&&t.onTouchStart(e)};a.useEffect((()=>{if(Z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ne(e)}}),[ne,Z]);const ce=go(ts(I),z,t);A||0===A||(Z=!1);const ue=a.useRef(),de={},fe="string"==typeof A;d?(de.title=Z||!fe||h?null:A,de["aria-describedby"]=Z?Q:null):(de["aria-label"]=fe?A:null,de["aria-labelledby"]=Z&&!fe?Q:null);const pe={...de,...R,...I.props,className:c(R.className,I.props.className),onTouchStart:le,ref:ce,...w?{onMouseMove:e=>{const t=I.props;t.onMouseMove&&t.onMouseMove(e),rc={x:e.clientX,y:e.clientY},ue.current&&ue.current.update()}}:{}},he={};y||(pe.onTouchStart=e=>{le(e),q.clear(),U.clear(),ee(),J.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(b,(()=>{document.body.style.WebkitUserSelect=J.current,re(e)}))},pe.onTouchEnd=e=>{I.props.onTouchEnd&&I.props.onTouchEnd(e),ee(),q.start(S,(()=>{ne(e)}))}),h||(pe.onMouseOver=oc(re,pe.onMouseOver),pe.onMouseLeave=oc(oe,pe.onMouseLeave),Y||(he.onMouseOver=re,he.onMouseLeave=oe)),f||(pe.onFocus=oc(se,pe.onFocus),pe.onBlur=oc(ie,pe.onBlur),Y||(he.onFocus=se,he.onBlur=ie));const me={...n,isRtl:L,arrow:r,disableInteractive:Y,placement:E,PopperComponentProp:C,touch:H.current},ye="function"==typeof D.popper?D.popper(me):D.popper,ge=a.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(W),options:{element:W,padding:4}}];return M.popperOptions?.modifiers&&(e=e.concat(M.popperOptions.modifiers)),ye?.popperOptions?.modifiers&&(e=e.concat(ye.popperOptions.modifiers)),{...M.popperOptions,...ye?.popperOptions,modifiers:e}}),[W,M.popperOptions,ye?.popperOptions]),ve=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return u({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${p(a.split("-")[0])}`],arrow:["arrow"]},Xl,t)})(me),be="function"==typeof D.transition?D.transition(me):D.transition,we={slots:{popper:s.Popper,transition:s.Transition??T,tooltip:s.Tooltip,arrow:s.Arrow,..._},slotProps:{arrow:D.arrow??l.arrow,popper:{...M,...ye??l.popper},tooltip:D.tooltip??l.tooltip,transition:{...N,...be??l.transition}}},[xe,Oe]=Gl("popper",{elementType:Ql,externalForwardedProps:we,ownerState:me,className:c(ve.popper,M?.className)}),[Se,je]=Gl("transition",{elementType:ws,externalForwardedProps:we,ownerState:me}),[Pe,ke]=Gl("tooltip",{elementType:Jl,className:ve.tooltip,externalForwardedProps:we,ownerState:me}),[Ee,Ce]=Gl("arrow",{elementType:ec,className:ve.arrow,externalForwardedProps:we,ownerState:me,ref:B});return(0,Xr.jsxs)(a.Fragment,{children:[a.cloneElement(I,pe),(0,Xr.jsx)(xe,{as:C??Ul,placement:E,anchorEl:w?{getBoundingClientRect:()=>({top:rc.y,left:rc.x,right:rc.x,bottom:rc.y,width:0,height:0})}:F,popperRef:ue,open:!!F&&Z,id:Q,transition:!0,...he,...Oe,popperOptions:ge,children:({TransitionProps:e})=>(0,Xr.jsx)(Se,{timeout:$.transitions.duration.shorter,...e,...je,children:(0,Xr.jsxs)(Pe,{...ke,children:[A,r?(0,Xr.jsx)(Ee,{...Ce}):null]})})})]})})),ic=ac;function sc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function lc(e,t=!1){return e&&(sc(e.value)&&""!==e.value||t&&sc(e.defaultValue)&&""!==e.defaultValue)}const cc=function(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)},uc=a.createContext(void 0);function dc(e){return to("MuiFormControl",e)}no("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fc=Ur("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${p(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),pc=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:s="div",disabled:l=!1,error:d=!1,focused:f,fullWidth:h=!1,hiddenLabel:m=!1,margin:y="none",required:g=!1,size:v="medium",variant:b="outlined",...w}=n,x={...n,color:i,component:s,disabled:l,error:d,fullWidth:h,hiddenLabel:m,margin:y,required:g,size:v,variant:b},O=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return u({root:["root","none"!==n&&`margin${p(n)}`,r&&"fullWidth"]},dc,t)})(x),[S,j]=a.useState((()=>{let e=!1;return r&&a.Children.forEach(r,(t=>{if(!cc(t,["Input","Select"]))return;const n=cc(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[P,k]=a.useState((()=>{let e=!1;return r&&a.Children.forEach(r,(t=>{cc(t,["Input","Select"])&&(lc(t.props,!0)||lc(t.props.inputProps,!0))&&(e=!0)})),e})),[E,C]=a.useState(!1);l&&E&&C(!1);const M=void 0===f||l?E:f;let D;a.useRef(!1);const _=a.useCallback((()=>{k(!0)}),[]),A=a.useCallback((()=>{k(!1)}),[]),T=a.useMemo((()=>({adornedStart:S,setAdornedStart:j,color:i,disabled:l,error:d,filled:P,focused:M,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{C(!1)},onFocus:()=>{C(!0)},onEmpty:A,onFilled:_,registerEffect:D,required:g,variant:b})),[S,i,l,d,P,M,h,m,D,A,_,g,v,b]);return(0,Xr.jsx)(uc.Provider,{value:T,children:(0,Xr.jsx)(fc,{as:s,ownerState:x,className:c(O.root,o),ref:t,...w,children:r})})})),hc=pc;var mc=o(30020);const yc=({dateRange:e,onChange:t})=>(0,Xr.jsx)(mc.Ur,{ranges:[e],onChange:t,inputRanges:[],editableDateInputs:!0});var gc=o(5556),vc=o.n(gc),bc=Object.getOwnPropertyNames,wc=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty;function Oc(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function Sc(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,a=o.get(t),i=o.get(n);if(a&&i)return a===n&&i===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function jc(e){return bc(e).concat(wc(e))}var Pc=Object.hasOwn||function(e,t){return xc.call(e,t)};function kc(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var Ec=Object.getOwnPropertyDescriptor,Cc=Object.keys;function Mc(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Dc(e,t){return kc(e.getTime(),t.getTime())}function _c(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ac(e,t){return e===t}function Tc(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o,a,i=new Array(r),s=e.entries(),l=0;(o=s.next())&&!o.done;){for(var c=t.entries(),u=!1,d=0;(a=c.next())&&!a.done;)if(i[d])d++;else{var f=o.value,p=a.value;if(n.equals(f[0],p[0],l,d,e,t,n)&&n.equals(f[1],p[1],f[0],p[0],e,t,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}var Nc=kc;function Rc(e,t,n){var r=Cc(e),o=r.length;if(Cc(t).length!==o)return!1;for(;o-- >0;)if(!Bc(e,t,n,r[o]))return!1;return!0}function Ic(e,t,n){var r,o,a,i=jc(e),s=i.length;if(jc(t).length!==s)return!1;for(;s-- >0;){if(!Bc(e,t,n,r=i[s]))return!1;if(o=Ec(e,r),a=Ec(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable))return!1}return!0}function $c(e,t){return kc(e.valueOf(),t.valueOf())}function Lc(e,t){return e.source===t.source&&e.flags===t.flags}function Fc(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o,a,i=new Array(r),s=e.values();(o=s.next())&&!o.done;){for(var l=t.values(),c=!1,u=0;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(o.value,a.value,o.value,a.value,e,t,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function zc(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Wc(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 Bc(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||Pc(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Hc=Array.isArray,Yc="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Uc=Object.assign,Vc=Object.prototype.toString.call.bind(Object.prototype.toString),qc=Gc();function Gc(e){void 0===e&&(e={});var t,n=e.circular,r=void 0!==n&&n,o=e.createInternalComparator,a=e.createState,i=e.strict,s=void 0!==i&&i,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?Ic:Mc,areDatesEqual:Dc,areErrorsEqual:_c,areFunctionsEqual:Ac,areMapsEqual:r?Oc(Tc,Ic):Tc,areNumbersEqual:Nc,areObjectsEqual:r?Ic:Rc,arePrimitiveWrappersEqual:$c,areRegExpsEqual:Lc,areSetsEqual:r?Oc(Fc,Ic):Fc,areTypedArraysEqual:r?Ic:zc,areUrlsEqual:Wc};if(n&&(o=Uc({},o,n(o))),t){var a=Sc(o.areArraysEqual),i=Sc(o.areMapsEqual),s=Sc(o.areObjectsEqual),l=Sc(o.areSetsEqual);o=Uc({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,a=e.areMapsEqual,i=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(e,p,h){if(e===p)return!0;if(null==e||null==p)return!1;var m=typeof e;if(m!==typeof p)return!1;if("object"!==m)return"number"===m?i(e,p,h):"function"===m&&o(e,p,h);var y=e.constructor;if(y!==p.constructor)return!1;if(y===Object)return s(e,p,h);if(Hc(e))return t(e,p,h);if(null!=Yc&&Yc(e))return d(e,p,h);if(y===Date)return n(e,p,h);if(y===RegExp)return c(e,p,h);if(y===Map)return a(e,p,h);if(y===Set)return u(e,p,h);var g=Vc(e);return"[object Date]"===g?n(e,p,h):"[object RegExp]"===g?c(e,p,h):"[object Map]"===g?a(e,p,h):"[object Set]"===g?u(e,p,h):"[object Object]"===g?"function"!=typeof e.then&&"function"!=typeof p.then&&s(e,p,h):"[object URL]"===g?f(e,p,h):"[object Error]"===g?r(e,p,h):"[object Arguments]"===g?s(e,p,h):("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)&&l(e,p,h)}}(l),u=o?o(c):(t=c,function(e,n,r,o,a,i,s){return t(e,n,s)});return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var s=r(),l=s.cache,c=void 0===l?t?new WeakMap:void 0:l,u=s.meta;return n(e,i,{cache:c,equals:o,meta:u,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:r,comparator:c,createState:a,equals:u,strict:s})}function Xc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function Kc(e){return Kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kc(e)}function Zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qc(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(s=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return Zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zc(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);return"number"==typeof a?void Xc(n.bind(null,i),a):(n(a),void Xc(n.bind(null,i)))}"object"===Kc(r)&&e(r),"function"==typeof r&&r()}var s};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){nu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nu(e,t,n){return t=function(e){var t=function(e){if("object"!==Jc(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Jc(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gc({strict:!0}),Gc({circular:!0}),Gc({circular:!0,strict:!0}),Gc({createInternalComparator:function(){return kc}}),Gc({strict:!0,createInternalComparator:function(){return kc}}),Gc({circular:!0,createInternalComparator:function(){return kc}}),Gc({circular:!0,createInternalComparator:function(){return kc},strict:!0});var ru=function(e){return e},ou=function(e,t){return Object.keys(t).reduce((function(n,r){return tu(tu({},n),{},nu({},r,e(r,t[r])))}),{})},au=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function iu(e,t){if(e){if("string"==typeof e)return su(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?su(e,t):void 0}}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lu=1e-4,cu=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},uu=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},du=function(e,t){return function(n){var r=cu(e,t);return uu(r,n)}},fu=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a=t[0],i=t[1],s=t[2],l=t[3];if(1===t.length)switch(t[0]){case"linear":a=0,i=0,s=1,l=1;break;case"ease":a=.25,i=.1,s=.25,l=1;break;case"ease-in":a=.42,i=0,s=1,l=1;break;case"ease-out":a=.42,i=0,s=.58,l=1;break;case"ease-in-out":a=0,i=0,s=.58,l=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=(r=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),o=4,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(r,o)||iu(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());a=u[0],i=u[1],s=u[2],l=u[3]}}[a,s,i,l].every((function(e){return"number"==typeof e&&e>=0&&e<=1}));var d,f,p=du(a,s),h=du(i,l),m=(d=a,f=s,function(e){var t=cu(d,f),n=[].concat(function(e){return function(e){if(Array.isArray(e))return su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.map((function(e,t){return e*t})).slice(1)),[0]);return uu(n,e)}),y=function(e){return e>1?1:e<0?0:e},g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=p(n)-t,a=m(n);if(Math.abs(o-t)<lu||a<lu)return h(n);n=y(n-o/a)}return h(n)};return g.isStepper=!1,g};function pu(e){return pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pu(e)}function hu(e){return function(e){if(Array.isArray(e))return bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){gu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t,n){return t=function(e){var t=function(e){if("object"!==pu(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==pu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pu(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vu(e,t){if(e){if("string"==typeof e)return bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bu(e,t):void 0}}function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wu=function(e,t,n){return e+(t-e)*n},xu=function(e){return e.from!==e.to},Ou=function e(t,n,r){var o=ou((function(e,n){if(xu(n)){var r=(i=t(n.from,n.to,n.velocity),s=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(i,s)||vu(i,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return yu(yu({},n),{},{from:o,velocity:a})}var i,s;return n}),n);return r<1?ou((function(e,t){return xu(t)?yu(yu({},t),{},{velocity:wu(t.velocity,o[e].velocity,r),from:wu(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)};function Su(e){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(e)}var ju=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Pu(e){return function(e){if(Array.isArray(e))return ku(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ku(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ku(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){Mu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mu(e,t,n){return(t=_u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_u(r.key),r)}}function _u(e){var t=function(e){if("object"!==Su(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Su(t)?t:String(t)}function Au(e,t){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Au(e,t)}function Tu(e,t){if(t&&("object"===Su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Nu(e)}function Nu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ru(e){return Ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ru(e)}var Iu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}(l,e);var t,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ru(r);if(o){var n=Ru(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Tu(this,e)});function l(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=(n=i.call(this,e,t)).props,o=r.isActive,a=r.attributeName,s=r.from,c=r.to,u=r.steps,d=r.children,f=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(Nu(n)),n.changeStyle=n.changeStyle.bind(Nu(n)),!o||f<=0)return n.state={style:{}},"function"==typeof d&&(n.state={style:c}),Tu(n);if(u&&u.length)n.state={style:u[0].style};else if(s){if("function"==typeof d)return n.state={style:s},Tu(n);n.state={style:a?Mu({},a,s):s}}else n.state={style:{}};return n}return t=l,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,a=t.shouldReAnimate,i=t.to,s=t.from,l=this.state.style;if(r)if(n){if(!(qc(e.to,i)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||a?s:e.to;if(this.state&&l){var d={style:o?Mu({},o,u):u};(o&&l[o]!==u||!o&&l!==u)&&this.setState(d)}this.runAnimation(Cu(Cu({},this.props),{},{from:u,begin:0}))}}else{var f={style:o?Mu({},o,i):i};this.state&&l&&(o&&l[o]!==i||!o&&l!==i)&&this.setState(f)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,a=e.easing,i=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=function(e,t,n,r,o){var a,i,s,l,c=(a=e,i=t,[Object.keys(a),Object.keys(i)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=c.reduce((function(n,r){return yu(yu({},n),{},gu({},r,[e[r],t[r]]))}),{}),d=c.reduce((function(n,r){return yu(yu({},n),{},gu({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),f=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var a=(r-s)/n.dt;d=Ou(n,d,a),o(yu(yu(yu({},e),t),ou((function(e,t){return t.from}),d))),s=r,Object.values(d).filter(xu).length&&(f=requestAnimationFrame(p))}:function(a){l||(l=a);var i=(a-l)/r,s=ou((function(e,t){return wu.apply(void 0,hu(t).concat([n(i)]))}),u);if(o(yu(yu(yu({},e),t),s)),i<1)f=requestAnimationFrame(p);else{var c=ou((function(e,t){return wu.apply(void 0,hu(t).concat([n(1)]))}),u);o(yu(yu(yu({},e),t),c))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}}(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fu(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,s=r*i/1e3+e;return Math.abs(s-t)<lu&&Math.abs(a)<lu?[t,0]:[s,a]};return s.isStepper=!0,s.dt=i,s}();default:if("cubic-bezier"===r.split("(")[0])return fu(r)}return"function"==typeof r?r:null}(a),o,this.changeStyle);this.manager.start([l,i,function(){t.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,a=n[0],i=a.style,s=a.duration,l=void 0===s?0:s;return this.manager.start([o].concat(Pu(n.reduce((function(e,r,o){if(0===o)return e;var a=r.duration,i=r.easing,s=void 0===i?"ease":i,l=r.style,c=r.properties,u=r.onAnimationEnd,d=o>0?n[o-1]:r,f=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(Pu(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:a,easing:s}),a]);var p=au(f,a,s),h=Cu(Cu(Cu({},d.style),l),{},{transition:p});return[].concat(Pu(e),[h,a,u]).filter(ru)}),[i,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Qc());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,a=e.easing,i=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof a&&"function"!=typeof c&&"spring"!==a)if(l.length>1)this.runStepAnimation(e);else{var d=r?Mu({},r,o):o,f=au(Object.keys(d),n,a);u.start([i,t,Cu(Cu({},d),{},{transition:f}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ju)),i=a.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===i||n<=0)return t;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,i=t.className;return(0,a.cloneElement)(e,Cu(Cu({},o),{},{style:Cu(Cu({},r),l),className:i}))};return 1===i?c(a.Children.only(t)):s().createElement("div",null,a.Children.map(t,(function(e){return c(e)})))}}],n&&Du(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.PureComponent);Iu.displayName="Animate",Iu.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Iu.propTypes={from:vc().oneOfType([vc().object,vc().string]),to:vc().oneOfType([vc().object,vc().string]),attributeName:vc().string,duration:vc().number,begin:vc().number,easing:vc().oneOfType([vc().string,vc().func]),steps:vc().arrayOf(vc().shape({duration:vc().number.isRequired,style:vc().object.isRequired,easing:vc().oneOfType([vc().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),vc().func]),properties:vc().arrayOf("string"),onAnimationEnd:vc().func})),children:vc().oneOfType([vc().node,vc().func]),isActive:vc().bool,canBegin:vc().bool,onAnimationEnd:vc().func,shouldReAnimate:vc().bool,onAnimationStart:vc().func,onAnimationReStart:vc().func};const $u=Iu;var Lu=o(2404),Fu=o.n(Lu),zu=o(69843),Wu=o.n(zu),Bu=o(58156),Hu=o.n(Bu),Yu=o(85015),Uu=o.n(Yu),Vu=o(1882),qu=o.n(Vu),Gu=o(23805),Xu=o.n(Gu),Ku=o(52199),Zu=o(11741),Qu=o.n(Zu),Ju=o(98023),ed=o.n(Ju),td=function(e){return 0===e?0:e>0?1:-1},nd=function(e){return Uu()(e)&&e.indexOf("%")===e.length-1},rd=function(e){return ed()(e)&&!Qu()(e)},od=function(e){return rd(e)||Uu()(e)},ad=0,id=function(e){var t=++ad;return"".concat(e||"").concat(t)},sd=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!rd(e)&&!Uu()(e))return r;if(nd(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return Qu()(n)&&(n=r),o&&n>t&&(n=t),n},ld=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},cd=function(e,t){return rd(e)&&rd(t)?function(n){return e+n*(t-e)}:function(){return t}};function ud(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Hu()(e,t))===n})):null}function dd(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function fd(e){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(e)}var pd=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],hd=["points","pathLength"],md={svg:["viewBox","children"],polygon:hd,polyline:hd},yd=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],gd=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,a.isValidElement)(e)&&(n=e.props),!Xu()(n))return null;var r={};return Object.keys(n).forEach((function(e){yd.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},vd=function(e,t,n){if(!Xu()(e)||"object"!==fd(e))return null;var r=null;return Object.keys(e).forEach((function(o){var a=e[o];yd.includes(o)&&"function"==typeof a&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(a,t,n))})),r},bd=["children"],wd=["children"];function xd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Od(e){return Od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Od(e)}var Sd={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"},jd=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Pd=null,kd=null,Ed=function e(t){if(t===Pd&&Array.isArray(kd))return kd;var n=[];return a.Children.forEach(t,(function(t){Wu()(t)||((0,Ku.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))})),kd=n,Pd=t,n};function Cd(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return jd(e)})):[jd(t)],Ed(e).forEach((function(e){var t=Hu()(e,"type.displayName")||Hu()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function Md(e,t){var n=Cd(e,t);return n&&n[0]}var Dd=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!rd(n)||n<=0||!rd(r)||r<=0)},_d=["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"],Ad=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,a.isValidElement)(e)&&(r=e.props),!Xu()(r))return null;var o={};return Object.keys(r).forEach((function(e){var a;(function(e,t,n,r){var o,a=null!==(o=null==md?void 0:md[r])&&void 0!==o?o:[];return t.startsWith("data-")||!qu()(e)&&(r&&a.includes(t)||pd.includes(t))||n&&yd.includes(t)})(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])})),o},Td=function e(t,n){if(t===n)return!0;var r=a.Children.count(t);if(r!==a.Children.count(n))return!1;if(0===r)return!0;if(1===r)return Nd(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],s=n[o];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!Nd(i,s))return!1}return!0},Nd=function(e,t){if(Wu()(e)&&Wu()(t))return!0;if(!Wu()(e)&&!Wu()(t)){var n=e.props||{},r=n.children,o=xd(n,bd),a=t.props||{},i=a.children,s=xd(a,wd);return r&&i?dd(o,s)&&Td(r,i):!r&&!i&&dd(o,s)}return!1},Rd=function(e,t){var n=[],r={};return Ed(e).forEach((function(e,o){if(function(e){return e&&e.type&&Uu()(e.type)&&_d.indexOf(e.type)>=0}(e))n.push(e);else if(e){var a=jd(e.type),i=t[a]||{},s=i.handler,l=i.once;if(s&&(!l||!r[a])){var c=s(e,a,o);n.push(c),r[a]=!0}}})),n},Id=["children","className"];function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}var Ld=s().forwardRef((function(e,t){var n=e.children,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Id),a=c("recharts-layer",r);return s().createElement("g",$d({className:a},Ad(o,!0),{ref:t}),n)}));function Fd(e,t){if(!e)throw new Error("Invariant failed")}var zd=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wd(e){return Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wd(e)}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bd.apply(this,arguments)}function Hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xd(r.key),r)}}function Ud(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ud=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vd(e)}function qd(e,t){return qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qd(e,t)}function Gd(e,t,n){return(t=Xd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xd(e){var t=function(e){if("object"!=Wd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wd(t)?t:t+""}var Kd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Vd(n=t),function(e,t){if(t&&("object"===Wd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ud()?Reflect.construct(n,r||[],Vd(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qd(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,i=e.dataPointFormatter,l=e.xAxis,c=e.yAxis,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,zd),d=Ad(u,!1);"x"===this.props.direction&&"number"!==l.type&&Fd(!1);var f=a.map((function(e){var a=i(e,o),u=a.x,f=a.y,p=a.value,h=a.errorVal;if(!h)return null;var m,y,g,v,b=[];if(Array.isArray(h)){var w=(v=2,function(e){if(Array.isArray(e))return e}(g=h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(g,v)||function(e,t){if(e){if("string"==typeof e)return Hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hd(e,t):void 0}}(g,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());m=w[0],y=w[1]}else m=y=h;if("vertical"===n){var x=l.scale,O=f+t,S=O+r,j=O-r,P=x(p-m),k=x(p+y);b.push({x1:k,y1:S,x2:k,y2:j}),b.push({x1:P,y1:O,x2:k,y2:O}),b.push({x1:P,y1:S,x2:P,y2:j})}else if("horizontal"===n){var E=c.scale,C=u+t,M=C-r,D=C+r,_=E(p-m),A=E(p+y);b.push({x1:M,y1:A,x2:D,y2:A}),b.push({x1:C,y1:_,x2:C,y2:A}),b.push({x1:M,y1:_,x2:D,y2:_})}return s().createElement(Ld,Bd({className:"recharts-errorBar",key:"bar-".concat(b.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},d),b.map((function(e){return s().createElement("line",Bd({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return s().createElement(Ld,{className:"recharts-errorBars"},f)}}],r&&Yd(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);Gd(Kd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Gd(Kd,"displayName","ErrorBar");var Zd=function(e){return null};Zd.displayName="Cell";var Qd=o(68090),Jd=o.n(Qd),ef={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return ef[e]},set:function(e,t){if("string"==typeof e)ef[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){ef[t]=e[t]}))}}};function tf(e){return tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tf(e)}function nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(n),!0).forEach((function(t){of(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function of(e,t,n){var r;return r=function(e){if("object"!=tf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==tf(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var af={widthCache:{},cacheCount:0},sf={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lf="recharts_measurement_span",cf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||ef.isSsr)return{width:0,height:0};var n,r=(n=rf({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(af.widthCache[o])return af.widthCache[o];try{var a=document.getElementById(lf);a||((a=document.createElement("span")).setAttribute("id",lf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=rf(rf({},sf),r);Object.assign(a.style,i),a.textContent="".concat(e);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return af.widthCache[o]=l,++af.cacheCount>2e3&&(af.cacheCount=0,af.widthCache={}),l}catch(e){return{width:0,height:0}}};function uf(e){return uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uf(e)}function df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ff(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hf(r.key),r)}}function hf(e){var t=function(e){if("object"!=uf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uf(t)?t:t+""}var mf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gf=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vf=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bf={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},wf=Object.keys(bf),xf="NaN",Of=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||gf.test(n)||(this.num=NaN,this.unit=""),wf.includes(n)&&(this.num=function(e,t){return e*bf[t]}(t,n),this.unit="px")}return t=e,r=[{key:"parse",value:function(t){var n,r=df(null!==(n=vf.exec(t))&&void 0!==n?n:[],3),o=r[1],a=r[2];return new e(parseFloat(o),null!=a?a:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&pf(t.prototype,n),r&&pf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sf(e){if(e.includes(xf))return xf;for(var t=e;t.includes("*")||t.includes("/");){var n,r=df(null!==(n=mf.exec(t))&&void 0!==n?n:[],4),o=r[1],a=r[2],i=r[3],s=Of.parse(null!=o?o:""),l=Of.parse(null!=i?i:""),c="*"===a?s.multiply(l):s.divide(l);if(c.isNaN())return xf;t=t.replace(mf,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=df(null!==(u=yf.exec(t))&&void 0!==u?u:[],4),f=d[1],p=d[2],h=d[3],m=Of.parse(null!=f?f:""),y=Of.parse(null!=h?h:""),g="+"===p?m.add(y):m.subtract(y);if(g.isNaN())return xf;t=t.replace(yf,g.toString())}return t}var jf=/\(([^()]*)\)/;function Pf(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=df(jf.exec(t),2)[1];t=t.replace(jf,Sf(n))}return t}(t),Sf(t)}(e)}catch(e){return xf}}(e.slice(5,-1));return t===xf?"":t}var kf=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Ef=["dx","dy","angle","className","breakAll"];function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(this,arguments)}function Mf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Af=/[ \f\n\r\t\v\u2028\u2029]+/,Tf=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Wu()(t)||(o=n?t.toString().split(""):t.toString().split(Af)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:cf(e,r).width}})),spaceWidth:n?0:cf(" ",r).width}}catch(e){return null}},Nf=function(e){return[{words:Wu()(e)?[]:e.toString().split(Af)}]},Rf="#808080",If=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.lineHeight,l=void 0===i?"1em":i,u=e.capHeight,d=void 0===u?"0.71em":u,f=e.scaleToFit,p=void 0!==f&&f,h=e.textAnchor,m=void 0===h?"start":h,y=e.verticalAnchor,g=void 0===y?"end":y,v=e.fill,b=void 0===v?Rf:v,w=Mf(e,kf),x=(0,a.useMemo)((function(){return function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!ef.isSsr){var s=Tf({breakAll:a,children:r,style:o});return s?function(e,t,n,r,o){var a=e.maxLines,i=e.children,s=e.style,l=e.breakAll,c=rd(a),u=i,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var a=t.word,i=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+i+n<Number(r)))s.words.push(a),s.width+=i+n;else{var l={words:[a],width:i};e.push(l)}return e}),[])},f=d(t);if(!c)return f;for(var p,h=function(e){var t=u.slice(0,e),n=Tf({breakAll:l,style:s,children:t+"…"}).wordsWithComputedWidth,o=d(n),i=o.length>a||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[i,o]},m=0,y=u.length-1,g=0;m<=y&&g<=u.length-1;){var v=Math.floor((m+y)/2),b=Df(h(v-1),2),w=b[0],x=b[1],O=Df(h(v),1)[0];if(w||O||(m=v+1),w&&O&&(y=v-1),!w&&O){p=x;break}g++}return p||f}({breakAll:a,children:r,maxLines:i,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Nf(r)}return Nf(r)}({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:p,style:w.style,width:w.width})}),[w.breakAll,w.children,w.maxLines,p,w.style,w.width]),O=w.dx,S=w.dy,j=w.angle,P=w.className,k=w.breakAll,E=Mf(w,Ef);if(!od(n)||!od(o))return null;var C,M=n+(rd(O)?O:0),D=o+(rd(S)?S:0);switch(g){case"start":C=Pf("calc(".concat(d,")"));break;case"middle":C=Pf("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:C=Pf("calc(".concat(x.length-1," * -").concat(l,")"))}var _=[];if(p){var A=x[0].width,T=w.width;_.push("scale(".concat((rd(T)?T/A:1)/A,")"))}return j&&_.push("rotate(".concat(j,", ").concat(M,", ").concat(D,")")),_.length&&(E.transform=_.join(" ")),s().createElement("text",Cf({},Ad(E,!0),{x:M,y:D,className:c("recharts-text",P),textAnchor:m,fill:b.includes("url")?Rf:b}),x.map((function(e,t){var n=e.words.join(k?"":" ");return s().createElement("tspan",{x:M,dy:0===t?C:l,key:"".concat(n,"-").concat(t)},n)})))};function $f(e){return $f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$f(e)}function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zf(e,t,n){var r;return r=function(e){if("object"!=$f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==$f(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wf=Math.PI/180,Bf=function(e){return 180*e/Math.PI},Hf=function(e,t,n,r){return{x:e+Math.cos(-Wf*r)*n,y:t+Math.sin(-Wf*r)*n}},Yf=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),a=Math.floor(r/360);return e+360*Math.min(o,a)},Uf=function(e,t){var n=function(e,t){var n=e.x,r=e.y,o=t.cx,a=t.cy,i=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-a,2))}({x:n,y:r},{x:o,y:a});if(i<=0)return{radius:i};var s=(n-o)/i,l=Math.acos(s);return r>a&&(l=2*Math.PI-l),{radius:i,angle:Bf(l),angleInRadian:l}}({x:e.x,y:e.y},t),r=n.radius,o=n.angle,a=t.innerRadius,i=t.outerRadius;if(r<a||r>i)return!1;if(0===r)return!0;var s,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),a=Math.min(r,o);return{startAngle:t-360*a,endAngle:n-360*a}}(t),c=l.startAngle,u=l.endAngle,d=o;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;s=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;s=d>=u&&d<=c}return s?Ff(Ff({},t),{},{radius:r,angle:Yf(d,t)}):null};function Vf(e){return Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vf(e)}var qf=["offset"];function Gf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){Zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zf(e,t,n){var r;return r=function(e){if("object"!=Vf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Vf(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(this,arguments)}function Jf(e){var t,n=e.offset,r=Kf({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qf)),o=r.viewBox,i=r.position,l=r.value,u=r.children,d=r.content,f=r.className,p=void 0===f?"":f,h=r.textBreakAll;if(!o||Wu()(l)&&Wu()(u)&&!(0,a.isValidElement)(d)&&!qu()(d))return null;if((0,a.isValidElement)(d))return(0,a.cloneElement)(d,r);if(qu()(d)){if(t=(0,a.createElement)(d,r),(0,a.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=Wu()(e.children)?t:e.children;return qu()(n)?n(r):r}(r);var m=function(e){return"cx"in e&&rd(e.cx)}(o),y=Ad(r,!0);if(m&&("insideStart"===i||"insideEnd"===i||"end"===i))return function(e,t,n){var r,o,a=e.position,i=e.viewBox,l=e.offset,u=e.className,d=i,f=d.cx,p=d.cy,h=d.innerRadius,m=d.outerRadius,y=d.startAngle,g=d.endAngle,v=d.clockWise,b=(h+m)/2,w=function(e,t){return td(t-e)*Math.min(Math.abs(t-e),360)}(y,g),x=w>=0?1:-1;"insideStart"===a?(r=y+x*l,o=v):"insideEnd"===a?(r=g-x*l,o=!v):"end"===a&&(r=g+x*l,o=v),o=w<=0?o:!o;var O=Hf(f,p,b,r),S=Hf(f,p,b,r+359*(o?1:-1)),j="M".concat(O.x,",").concat(O.y,"\n    A").concat(b,",").concat(b,",0,1,").concat(o?0:1,",\n    ").concat(S.x,",").concat(S.y),P=Wu()(e.id)?id("recharts-radial-line-"):e.id;return s().createElement("text",Qf({},n,{dominantBaseline:"central",className:c("recharts-radial-bar-label",u)}),s().createElement("defs",null,s().createElement("path",{id:P,d:j})),s().createElement("textPath",{xlinkHref:"#".concat(P)},t))}(r,t,y);var g=m?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,a=o.cx,i=o.cy,s=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=Hf(a,i,l+n,c),_x=u.x;return{x:_x,y:u.y,textAnchor:_x>=a?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=Hf(a,i,(s+l)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(r):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t,i=a.x,s=a.y,l=a.width,c=a.height,u=c>=0?1:-1,d=u*r,f=u>0?"end":"start",p=u>0?"start":"end",h=l>=0?1:-1,m=h*r,y=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return Kf(Kf({},{x:i+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===o)return Kf(Kf({},{x:i+l/2,y:s+c+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+c),0),width:l}:{});if("left"===o){var v={x:i-m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Kf(Kf({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if("right"===o){var b={x:i+l+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Kf(Kf({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var w=n?{width:l,height:c}:{};return"insideLeft"===o?Kf({x:i+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===o?Kf({x:i+l-m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?Kf({x:i+l/2,y:s+d,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?Kf({x:i+l/2,y:s+c-d,textAnchor:"middle",verticalAnchor:f},w):"insideTopLeft"===o?Kf({x:i+m,y:s+d,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===o?Kf({x:i+l-m,y:s+d,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?Kf({x:i+m,y:s+c-d,textAnchor:g,verticalAnchor:f},w):"insideBottomRight"===o?Kf({x:i+l-m,y:s+c-d,textAnchor:y,verticalAnchor:f},w):Xu()(o)&&(rd(o.x)||nd(o.x))&&(rd(o.y)||nd(o.y))?Kf({x:i+sd(o.x,l),y:s+sd(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):Kf({x:i+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(r);return s().createElement(If,Qf({className:c("recharts-label",p)},y,g,{breakAll:h}),t)}Jf.displayName="Label";var ep=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,h=e.width,m=e.height,y=e.clockWise,g=e.labelViewBox;if(g)return g;if(rd(h)&&rd(m)){if(rd(u)&&rd(d))return{x:u,y:d,width:h,height:m};if(rd(f)&&rd(p))return{x:f,y:p,width:h,height:m}}return rd(u)&&rd(d)?{x:u,y:d,width:0,height:0}:rd(t)&&rd(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:l||0,outerRadius:c||s||i||0,clockWise:y}:e.viewBox?e.viewBox:{}};function tp(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function np(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}Jf.parseViewBox=ep,Jf.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=ep(e),i=Cd(r,Jf).map((function(e,n){return(0,a.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var l,c=function(e,t){return e?!0===e?s().createElement(Jf,{key:"label-implicit",viewBox:t}):od(e)?s().createElement(Jf,{key:"label-implicit",viewBox:t,value:e}):(0,a.isValidElement)(e)?e.type===Jf?(0,a.cloneElement)(e,{key:"label-implicit",viewBox:t}):s().createElement(Jf,{key:"label-implicit",content:e,viewBox:t}):qu()(e)?s().createElement(Jf,{key:"label-implicit",content:e,viewBox:t}):Xu()(e)?s().createElement(Jf,Qf({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[c].concat(function(e){if(Array.isArray(e))return Gf(e)}(l=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return Gf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gf(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};class rp extends Map{constructor(e,t=ap){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(op(this,e))}has(e){return super.has(op(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function op({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ap(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const ip=Symbol("implicit");function sp(){var e=new rp,t=[],n=[],r=ip;function o(o){let a=e.get(o);if(void 0===a){if(r!==ip)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new rp;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return sp(t,n).unknown(r)},tp.apply(o,arguments),o}function lp(){var e,t,n=sp().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,f=d?i:a,p=d?a:i;e=(p-f)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),f+=(p-f-e*(n-l))*u,t=e*(1-l),s&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return lp(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},tp.apply(d(),arguments)}function cp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cp(t())},e}function up(){return cp(lp.apply(null,arguments).paddingInner(1))}const dp=Math.sqrt(50),fp=Math.sqrt(10),pp=Math.sqrt(2);function hp(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=dp?10:a>=fp?5:a>=pp?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?hp(e,t,2*n):[s,l,c]}function mp(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,a,i]=r?hp(t,e,n):hp(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let e=0;e<s;++e)l[e]=(a-e)/-i;else for(let e=0;e<s;++e)l[e]=(a-e)*i;else if(i<0)for(let e=0;e<s;++e)l[e]=(o+e)/-i;else for(let e=0;e<s;++e)l[e]=(o+e)*i;return l}function yp(e,t,n){return hp(e=+e,t=+t,n=+n)[2]}function gp(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?yp(t,e,n):yp(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function vp(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bp(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wp(e){let t,n,r;function o(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=vp,n=(t,n)=>vp(e(t),n),r=(t,n)=>e(t)-n):(t=e===vp||e===bp?e:xp,n=e,r=e),{left:o,center:function(e,t,n=0,a=e.length){const i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function xp(){return 0}function Op(e){return null===e?NaN:+e}const Sp=wp(vp),jp=Sp.right,Pp=(Sp.left,wp(Op).center,jp);function kp(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ep(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cp(){}var Mp=.7,Dp=1/Mp,_p="\\s*([+-]?\\d+)\\s*",Ap="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Np=/^#([0-9a-f]{3,8})$/,Rp=new RegExp(`^rgb\\(${_p},${_p},${_p}\\)$`),Ip=new RegExp(`^rgb\\(${Tp},${Tp},${Tp}\\)$`),$p=new RegExp(`^rgba\\(${_p},${_p},${_p},${Ap}\\)$`),Lp=new RegExp(`^rgba\\(${Tp},${Tp},${Tp},${Ap}\\)$`),Fp=new RegExp(`^hsl\\(${Ap},${Tp},${Tp}\\)$`),zp=new RegExp(`^hsla\\(${Ap},${Tp},${Tp},${Ap}\\)$`),Wp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bp(){return this.rgb().formatHex()}function Hp(){return this.rgb().formatRgb()}function Yp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Np.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Up(t):3===n?new Gp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Rp.exec(e))?new Gp(t[1],t[2],t[3],1):(t=Ip.exec(e))?new Gp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$p.exec(e))?Vp(t[1],t[2],t[3],t[4]):(t=Lp.exec(e))?Vp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fp.exec(e))?eh(t[1],t[2]/100,t[3]/100,1):(t=zp.exec(e))?eh(t[1],t[2]/100,t[3]/100,t[4]):Wp.hasOwnProperty(e)?Up(Wp[e]):"transparent"===e?new Gp(NaN,NaN,NaN,0):null}function Up(e){return new Gp(e>>16&255,e>>8&255,255&e,1)}function Vp(e,t,n,r){return r<=0&&(e=t=n=NaN),new Gp(e,t,n,r)}function qp(e,t,n,r){return 1===arguments.length?((o=e)instanceof Cp||(o=Yp(o)),o?new Gp((o=o.rgb()).r,o.g,o.b,o.opacity):new Gp):new Gp(e,t,n,null==r?1:r);var o}function Gp(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xp(){return`#${Jp(this.r)}${Jp(this.g)}${Jp(this.b)}`}function Kp(){const e=Zp(this.opacity);return`${1===e?"rgb(":"rgba("}${Qp(this.r)}, ${Qp(this.g)}, ${Qp(this.b)}${1===e?")":`, ${e})`}`}function Zp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jp(e){return((e=Qp(e))<16?"0":"")+e.toString(16)}function eh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nh(e,t,n,r)}function th(e){if(e instanceof nh)return new nh(e.h,e.s,e.l,e.opacity);if(e instanceof Cp||(e=Yp(e)),!e)return new nh;if(e instanceof nh)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new nh(i,s,l,e.opacity)}function nh(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rh(e){return(e=(e||0)%360)<0?e+360:e}function oh(e){return Math.max(0,Math.min(1,e||0))}function ah(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ih(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}kp(Cp,Yp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bp,formatHex:Bp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return th(this).formatHsl()},formatRgb:Hp,toString:Hp}),kp(Gp,qp,Ep(Cp,{brighter(e){return e=null==e?Dp:Math.pow(Dp,e),new Gp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Mp:Math.pow(Mp,e),new Gp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gp(Qp(this.r),Qp(this.g),Qp(this.b),Zp(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:Xp,formatHex:Xp,formatHex8:function(){return`#${Jp(this.r)}${Jp(this.g)}${Jp(this.b)}${Jp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Kp,toString:Kp})),kp(nh,(function(e,t,n,r){return 1===arguments.length?th(e):new nh(e,t,n,null==r?1:r)}),Ep(Cp,{brighter(e){return e=null==e?Dp:Math.pow(Dp,e),new nh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Mp:Math.pow(Mp,e),new nh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Gp(ah(e>=240?e-240:e+120,o,r),ah(e,o,r),ah(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new nh(rh(this.h),oh(this.s),oh(this.l),Zp(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=Zp(this.opacity);return`${1===e?"hsl(":"hsla("}${rh(this.h)}, ${100*oh(this.s)}%, ${100*oh(this.l)}%${1===e?")":`, ${e})`}`}}));const sh=e=>()=>e;function lh(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):sh(isNaN(e)?t:e)}const ch=function e(t){var n=function(e){return 1==(e=+e)?lh:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):sh(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=qp(e)).r,(t=qp(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=lh(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function uh(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=qp(t[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=e(a),i=e(i),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=s(e),r+""}}}function dh(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=bh(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function fh(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ph(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function hh(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=bh(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}uh((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return ih((n-r/t)*t,i,o,a,s)}})),uh((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return ih((n-r/t)*t,o,a,i,s)}}));var mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yh=new RegExp(mh.source,"g");function gh(e,t){var n,r,o,a=mh.lastIndex=yh.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=mh.exec(e))&&(r=yh.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i,x:ph(n,r)})),a=yh.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function vh(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function bh(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?sh(t):("number"===o?ph:"string"===o?(n=Yp(t))?(t=n,ch):gh:t instanceof Yp?ch:t instanceof Date?fh:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?dh:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?hh:ph:vh))(e,t)}function wh(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xh(e){return+e}var Oh=[0,1];function Sh(e){return e}function jh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Ph(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=jh(o,r),a=n(i,a)):(r=jh(r,o),a=n(a,i)),function(e){return a(r(e))}}function kh(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=jh(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=Pp(e,t,1,r)-1;return a[n](o[n](t))}}function Eh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ch(){var e,t,n,r,o,a,i=Oh,s=Oh,l=bh,c=Sh;function u(){var e=Math.min(i.length,s.length);return c!==Sh&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),r=e>2?kh:Ph,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(s,i.map(e),ph)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,xh),u()):i.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=wh,u()},d.clamp=function(e){return arguments.length?(c=!!e||Sh,u()):c!==Sh},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Mh(){return Ch()(Sh,Sh)}var Dh,_h=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ah(e){if(!(t=_h.exec(e)))throw new Error("invalid format: "+e);var t;return new Th({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]})}function Th(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Nh(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Rh(e){return(e=Nh(Math.abs(e)))?e[1]:NaN}function Ih(e,t){var n=Nh(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Ah.prototype=Th.prototype,Th.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const $h={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>Ih(100*e,t),r:Ih,s:function(e,t){var n=Nh(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Dh=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Nh(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Lh(e){return e}var Fh,zh,Wh,Bh=Array.prototype.map,Hh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yh(e,t,n,r){var o,a=gp(e,t,n);switch((r=Ah(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rh(t)/3)))-Rh(Math.abs(e)))}(a,i))||(r.precision=o),Wh(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rh(t)-Rh(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Rh(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return zh(r)}function Uh(e){var t=e.domain;return e.ticks=function(e){var n=t();return mp(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Yh(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=yp(l,c,n))===r)return a[i]=l,a[s]=c,t(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Vh(){var e=Mh();return e.copy=function(){return Eh(e,Vh())},tp.apply(e,arguments),Uh(e)}function qh(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,xh),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return qh(e).unknown(t)},e=arguments.length?Array.from(e,xh):[0,1],Uh(n)}function Gh(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}function Xh(e){return Math.log(e)}function Kh(e){return Math.exp(e)}function Zh(e){return-Math.log(-e)}function Qh(e){return-Math.exp(-e)}function Jh(e){return isFinite(e)?+("1e"+e):e<0?0:e}function em(e){return(t,n)=>-e(-t,n)}function tm(e){const t=e(Xh,Kh),n=t.domain;let r,o,a=10;function i(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),o=function(e){return 10===e?Jh:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),n()[0]<0?(r=em(r),o=em(o),e(Zh,Qh)):e(Xh,Kh),t}return t.base=function(e){return arguments.length?(a=+e,i()):a},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],s=t[t.length-1];const l=s<i;l&&([i,s]=[s,i]);let c,u,d=r(i),f=r(s);const p=null==e?10:+e;let h=[];if(!(a%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),i>0){for(;d<=f;++d)for(c=1;c<a;++c)if(u=d<0?c/o(-d):c*o(d),!(u<i)){if(u>s)break;h.push(u)}}else for(;d<=f;++d)for(c=a-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<i)){if(u>s)break;h.push(u)}2*h.length<p&&(h=mp(i,s,p))}else h=mp(d,f,Math.min(f-d,p)).map(o);return l?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===a?"s":","),"function"!=typeof n&&(a%1||null!=(n=Ah(n)).precision||(n.trim=!0),n=zh(n)),e===1/0)return n;const i=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*a<a-.5&&(t*=a),t<=i?n(e):""}},t.nice=()=>n(Gh(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function nm(){const e=tm(Ch()).domain([1,10]);return e.copy=()=>Eh(e,nm()).base(e.base()),tp.apply(e,arguments),e}function rm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function om(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function am(e){var t=1,n=e(rm(t),om(t));return n.constant=function(n){return arguments.length?e(rm(t=+n),om(t)):t},Uh(n)}function im(){var e=am(Ch());return e.copy=function(){return Eh(e,im()).constant(e.constant())},tp.apply(e,arguments)}function sm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cm(e){return e<0?-e*e:e*e}function um(e){var t=e(Sh,Sh),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(Sh,Sh):.5===n?e(lm,cm):e(sm(n),sm(1/n)):n},Uh(t)}function dm(){var e=um(Ch());return e.copy=function(){return Eh(e,dm()).exponent(e.exponent())},tp.apply(e,arguments),e}function fm(){return dm.apply(null,arguments).exponent(.5)}function pm(e){return Math.sign(e)*e*e}function hm(){var e,t=Mh(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(pm(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,xh)).map(pm)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return hm(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},tp.apply(o,arguments),Uh(o)}function mm(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function ym(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function gm(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function vm(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?gm:function(e=vp){if(e===vp)return gm;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const a=r-n+1,i=t-n+1,s=Math.log(a),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(a-l)/a)*(i-a/2<0?-1:1);vm(e,t,Math.max(n,Math.floor(t-i*l/a+c)),Math.min(r,Math.floor(t+(a-i)*l/a+c)),o)}const a=e[t];let i=n,s=r;for(bm(e,n,t),o(e[r],a)>0&&bm(e,n,r);i<s;){for(bm(e,i,s),++i,--s;o(e[i],a)<0;)++i;for(;o(e[s],a)>0;)--s}0===o(e[n],a)?bm(e,n,s):(++s,bm(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function bm(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wm(e,t,n=Op){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}function xm(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=wm(t,e/o);return a}function a(t){return null==t||isNaN(t=+t)?e:n[Pp(r,t)]}return a.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},a.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(vp),o()},a.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return r.slice()},a.copy=function(){return xm().domain(t).range(n).unknown(e)},tp.apply(a,arguments)}function Om(){var e,t=0,n=1,r=1,o=[.5],a=[0,1];function i(t){return null!=t&&t<=t?a[Pp(o,t,0,r)]:e}function s(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return i}return i.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},i.range=function(e){return arguments.length?(r=(a=Array.from(e)).length-1,s()):a.slice()},i.invertExtent=function(e){var i=a.indexOf(e);return i<0?[NaN,NaN]:i<1?[t,o[0]]:i>=r?[o[r-1],n]:[o[i-1],o[i]]},i.unknown=function(t){return arguments.length?(e=t,i):i},i.thresholds=function(){return o.slice()},i.copy=function(){return Om().domain([t,n]).range(a).unknown(e)},tp.apply(Uh(i),arguments)}function Sm(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Pp(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Sm().domain(t).range(n).unknown(e)},tp.apply(o,arguments)}Fh=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Lh:(t=Bh.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Lh:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Bh.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Ah(e)).fill,n=e.align,d=e.sign,f=e.symbol,p=e.zero,h=e.width,m=e.comma,y=e.precision,g=e.trim,v=e.type;"n"===v?(m=!0,v="g"):$h[v]||(void 0===y&&(y=12),g=!0,v="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===f?a:/[%p]/.test(v)?l:"",x=$h[v],O=/[defgprs%]/.test(v);function S(e){var o,a,l,f=b,S=w;if("c"===v)S=x(e)+S,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),y),g&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==d&&(j=!1),f=(j?"("===d?d:c:"-"===d||"("===d?"":d)+f,S=("s"===v?Hh[8+Dh/3]:"")+S+(j&&"("===d?")":""),O)for(o=-1,a=e.length;++o<a;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!p&&(e=r(e,1/0));var P=f.length+e.length+S.length,k=P<h?new Array(h-P+1).join(t):"";switch(m&&p&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=f+e+S+k;break;case"=":e=f+k+e+S;break;case"^":e=k.slice(0,P=k.length>>1)+f+e+S+k.slice(P);break;default:e=k+f+e+S}return s(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Ah(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Rh(t)/3))),o=Math.pow(10,-r),a=Hh[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),zh=Fh.format,Wh=Fh.formatPrefix;const jm=1e3,Pm=6e4,km=36e5,Em=864e5,Cm=6048e5,Mm=31536e6,Dm=new Date,_m=new Date;function Am(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{const i=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return i;let s;do{i.push(s=new Date(+n)),t(n,a),e(n)}while(s<n&&n<r);return i},o.filter=n=>Am((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(Dm.setTime(+t),_m.setTime(+r),e(Dm),e(_m),Math.floor(n(Dm,_m))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const Tm=Am((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Tm.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Am((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Tm:null),Tm.range;const Nm=Am((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*jm)}),((e,t)=>(t-e)/jm),(e=>e.getUTCSeconds())),Rm=(Nm.range,Am((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jm)}),((e,t)=>{e.setTime(+e+t*Pm)}),((e,t)=>(t-e)/Pm),(e=>e.getMinutes()))),Im=(Rm.range,Am((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Pm)}),((e,t)=>(t-e)/Pm),(e=>e.getUTCMinutes()))),$m=(Im.range,Am((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jm-e.getMinutes()*Pm)}),((e,t)=>{e.setTime(+e+t*km)}),((e,t)=>(t-e)/km),(e=>e.getHours()))),Lm=($m.range,Am((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*km)}),((e,t)=>(t-e)/km),(e=>e.getUTCHours()))),Fm=(Lm.range,Am((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pm)/Em),(e=>e.getDate()-1))),zm=(Fm.range,Am((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Em),(e=>e.getUTCDate()-1))),Wm=(zm.range,Am((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Em),(e=>Math.floor(e/Em))));function Bm(e){return Am((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pm)/Cm))}Wm.range;const Hm=Bm(0),Ym=Bm(1),Um=Bm(2),Vm=Bm(3),qm=Bm(4),Gm=Bm(5),Xm=Bm(6);function Km(e){return Am((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Cm))}Hm.range,Ym.range,Um.range,Vm.range,qm.range,Gm.range,Xm.range;const Zm=Km(0),Qm=Km(1),Jm=Km(2),ey=Km(3),ty=Km(4),ny=Km(5),ry=Km(6),oy=(Zm.range,Qm.range,Jm.range,ey.range,ty.range,ny.range,ry.range,Am((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),ay=(oy.range,Am((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),iy=(ay.range,Am((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())));iy.every=e=>isFinite(e=Math.floor(e))&&e>0?Am((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,iy.range;const sy=Am((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()));function ly(e,t,n,r,o,a){const i=[[Nm,1,jm],[Nm,5,5e3],[Nm,15,15e3],[Nm,30,3e4],[a,1,Pm],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,km],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Em],[r,2,1728e5],[n,1,Cm],[t,1,2592e6],[t,3,7776e6],[e,1,Mm]];function s(t,n,r){const o=Math.abs(n-t)/r,a=wp((([,,e])=>e)).right(i,o);if(a===i.length)return e.every(gp(t/Mm,n/Mm,r));if(0===a)return Tm.every(Math.max(gp(t,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},s]}sy.every=e=>isFinite(e=Math.floor(e))&&e>0?Am((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,sy.range;const[cy,uy]=ly(sy,ay,Zm,Wm,Lm,Im),[dy,fy]=ly(iy,oy,Hm,Fm,$m,Rm);function py(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hy(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function my(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var yy,gy,vy,by={"-":"",_:" ",0:"0"},wy=/^\s*\d+/,xy=/^%/,Oy=/[\\^$*+?|[\]().{}]/g;function Sy(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function jy(e){return e.replace(Oy,"\\$&")}function Py(e){return new RegExp("^(?:"+e.map(jy).join("|")+")","i")}function ky(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Ey(e,t,n){var r=wy.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cy(e,t,n){var r=wy.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function My(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Dy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _y(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ay(e,t,n){var r=wy.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ty(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ny(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ry(e,t,n){var r=wy.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Iy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $y(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ly(e,t,n){var r=wy.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Fy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function By(e,t,n){var r=wy.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Hy(e,t,n){var r=wy.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yy(e,t,n){var r=xy.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Uy(e,t,n){var r=wy.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vy(e,t,n){var r=wy.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qy(e,t){return Sy(e.getDate(),t,2)}function Gy(e,t){return Sy(e.getHours(),t,2)}function Xy(e,t){return Sy(e.getHours()%12||12,t,2)}function Ky(e,t){return Sy(1+Fm.count(iy(e),e),t,3)}function Zy(e,t){return Sy(e.getMilliseconds(),t,3)}function Qy(e,t){return Zy(e,t)+"000"}function Jy(e,t){return Sy(e.getMonth()+1,t,2)}function eg(e,t){return Sy(e.getMinutes(),t,2)}function tg(e,t){return Sy(e.getSeconds(),t,2)}function ng(e){var t=e.getDay();return 0===t?7:t}function rg(e,t){return Sy(Hm.count(iy(e)-1,e),t,2)}function og(e){var t=e.getDay();return t>=4||0===t?qm(e):qm.ceil(e)}function ag(e,t){return e=og(e),Sy(qm.count(iy(e),e)+(4===iy(e).getDay()),t,2)}function ig(e){return e.getDay()}function sg(e,t){return Sy(Ym.count(iy(e)-1,e),t,2)}function lg(e,t){return Sy(e.getFullYear()%100,t,2)}function cg(e,t){return Sy((e=og(e)).getFullYear()%100,t,2)}function ug(e,t){return Sy(e.getFullYear()%1e4,t,4)}function dg(e,t){var n=e.getDay();return Sy((e=n>=4||0===n?qm(e):qm.ceil(e)).getFullYear()%1e4,t,4)}function fg(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Sy(t/60|0,"0",2)+Sy(t%60,"0",2)}function pg(e,t){return Sy(e.getUTCDate(),t,2)}function hg(e,t){return Sy(e.getUTCHours(),t,2)}function mg(e,t){return Sy(e.getUTCHours()%12||12,t,2)}function yg(e,t){return Sy(1+zm.count(sy(e),e),t,3)}function gg(e,t){return Sy(e.getUTCMilliseconds(),t,3)}function vg(e,t){return gg(e,t)+"000"}function bg(e,t){return Sy(e.getUTCMonth()+1,t,2)}function wg(e,t){return Sy(e.getUTCMinutes(),t,2)}function xg(e,t){return Sy(e.getUTCSeconds(),t,2)}function Og(e){var t=e.getUTCDay();return 0===t?7:t}function Sg(e,t){return Sy(Zm.count(sy(e)-1,e),t,2)}function jg(e){var t=e.getUTCDay();return t>=4||0===t?ty(e):ty.ceil(e)}function Pg(e,t){return e=jg(e),Sy(ty.count(sy(e),e)+(4===sy(e).getUTCDay()),t,2)}function kg(e){return e.getUTCDay()}function Eg(e,t){return Sy(Qm.count(sy(e)-1,e),t,2)}function Cg(e,t){return Sy(e.getUTCFullYear()%100,t,2)}function Mg(e,t){return Sy((e=jg(e)).getUTCFullYear()%100,t,2)}function Dg(e,t){return Sy(e.getUTCFullYear()%1e4,t,4)}function _g(e,t){var n=e.getUTCDay();return Sy((e=n>=4||0===n?ty(e):ty.ceil(e)).getUTCFullYear()%1e4,t,4)}function Ag(){return"+0000"}function Tg(){return"%"}function Ng(e){return+e}function Rg(e){return Math.floor(+e/1e3)}function Ig(e){return new Date(e)}function $g(e){return e instanceof Date?+e:+new Date(+e)}function Lg(e,t,n,r,o,a,i,s,l,c){var u=Mh(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),v=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(l(e)<e?p:s(e)<e?h:i(e)<e?m:a(e)<e?y:r(e)<e?o(e)<e?g:v:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,$g)):f().map(Ig)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(Gh(n,e)):u},u.copy=function(){return Eh(u,Lg(e,t,n,r,o,a,i,s,l,c))},u}function Fg(){return tp.apply(Lg(dy,fy,iy,oy,Hm,Fm,$m,Rm,Nm,gy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zg(){return tp.apply(Lg(cy,uy,sy,ay,Zm,zm,Lm,Im,Nm,vy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wg(){var e,t,n,r,o,a=0,i=1,s=Sh,l=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([a,i]=o,e=r(a=+a),t=r(i=+i),n=e===t?0:1/(t-e),c):[a,i]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(bh),c.rangeRound=u(wh),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(a),t=o(i),n=e===t?0:1/(t-e),c}}function Bg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Hg(){var e=Uh(Wg()(Sh));return e.copy=function(){return Bg(e,Hg())},np.apply(e,arguments)}function Yg(){var e=tm(Wg()).domain([1,10]);return e.copy=function(){return Bg(e,Yg()).base(e.base())},np.apply(e,arguments)}function Ug(){var e=am(Wg());return e.copy=function(){return Bg(e,Ug()).constant(e.constant())},np.apply(e,arguments)}function Vg(){var e=um(Wg());return e.copy=function(){return Bg(e,Vg()).exponent(e.exponent())},np.apply(e,arguments)}function qg(){return Vg.apply(null,arguments).exponent(.5)}function Gg(){var e=[],t=Sh;function n(n){if(null!=n&&!isNaN(n=+n))return t((Pp(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(vp),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return ym(e);if(t>=1)return mm(e);var r,o=(r-1)*t,a=Math.floor(o),i=mm(vm(e,a).subarray(0,a+1));return i+(ym(e.subarray(a+1))-i)*(o-a)}}(e,r/t)))},n.copy=function(){return Gg(t).domain(e)},np.apply(n,arguments)}function Xg(){var e,t,n,r,o,a,i,s=0,l=.5,c=1,u=1,d=Sh,f=!1;function p(e){return isNaN(e=+e)?i:(e=.5+((e=+a(e))-t)*(u*e<u*t?r:o),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=function(e,t){void 0===t&&(t=e,e=bh);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(i){return arguments.length?([s,l,c]=i,e=a(s=+s),t=a(l=+l),n=a(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,l,c]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(bh),p.rangeRound=h(wh),p.unknown=function(e){return arguments.length?(i=e,p):i},function(i){return a=i,e=i(s),t=i(l),n=i(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function Kg(){var e=Uh(Xg()(Sh));return e.copy=function(){return Bg(e,Kg())},np.apply(e,arguments)}function Zg(){var e=tm(Xg()).domain([.1,1,10]);return e.copy=function(){return Bg(e,Zg()).base(e.base())},np.apply(e,arguments)}function Qg(){var e=am(Xg());return e.copy=function(){return Bg(e,Qg()).constant(e.constant())},np.apply(e,arguments)}function Jg(){var e=um(Xg());return e.copy=function(){return Bg(e,Jg()).exponent(e.exponent())},np.apply(e,arguments)}function ev(){return Jg.apply(null,arguments).exponent(.5)}function tv(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function nv(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function rv(e){return function(){return e}}function ov(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function av(e,t){return e[t]}function iv(e){const t=[];return t.key=e,t}yy=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Py(o),u=ky(o),d=Py(a),f=ky(a),p=Py(i),h=ky(i),m=Py(s),y=ky(s),g=Py(l),v=ky(l),b={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:qy,e:qy,f:Qy,g:cg,G:dg,H:Gy,I:Xy,j:Ky,L:Zy,m:Jy,M:eg,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ng,s:Rg,S:tg,u:ng,U:rg,V:ag,w:ig,W:sg,x:null,X:null,y:lg,Y:ug,Z:fg,"%":Tg},w={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:pg,e:pg,f:vg,g:Mg,G:_g,H:hg,I:mg,j:yg,L:gg,m:bg,M:wg,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ng,s:Rg,S:xg,u:Og,U:Sg,V:Pg,w:kg,W:Eg,x:null,X:null,y:Cg,Y:Dg,Z:Ag,"%":Tg},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return j(e,t,n,r)},d:$y,e:$y,f:Hy,g:Ty,G:Ay,H:Fy,I:Fy,j:Ly,L:By,m:Iy,M:zy,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ry,Q:Uy,s:Vy,S:Wy,u:Cy,U:My,V:Dy,w:Ey,W:_y,x:function(e,t,r){return j(e,n,t,r)},X:function(e,t,n){return j(e,r,t,n)},y:Ty,Y:Ay,Z:Ny,"%":Yy};function O(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(i.push(e.slice(l,s)),null!=(o=by[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(e.slice(l,s)),i.join("")}}function S(e,t){return function(n){var r,o,a=my(1900,void 0,1);if(j(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=hy(my(a.y,0,1))).getUTCDay(),r=o>4||0===o?Qm.ceil(r):Qm(r),r=zm.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=py(my(a.y,0,1))).getDay(),r=o>4||0===o?Ym.ceil(r):Ym(r),r=Fm.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?hy(my(a.y,0,1)).getUTCDay():py(my(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,hy(a)):py(a)}}function j(e,t,n,r){for(var o,a,i=0,s=t.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=x[o in by?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),w.x=O(n,w),w.X=O(r,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),gy=yy.format,yy.parse,vy=yy.utcFormat,yy.utcParse,Array.prototype.slice;var sv=o(94506),lv=o.n(sv),cv=o(31684),uv=o.n(cv),dv=o(47307),fv=o.n(dv),pv=o(55808),hv=o.n(pv),mv=o(33031),yv=o.n(mv),gv=o(38351),vv=o.n(gv);function bv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wv=function(e){return e},xv={"@@functional/placeholder":!0},Ov=function(e){return e===xv},Sv=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Ov(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},jv=function e(t,n){return 1===t?n:Sv((function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o.filter((function(e){return e!==xv})).length;return i>=t?n.apply(void 0,o):e(t-i,Sv((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,i=o.map((function(e){return Ov(e)?t.shift():e}));return n.apply(void 0,(a=i,function(e){if(Array.isArray(e))return bv(e)}(a)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return bv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bv(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))})))}))},Pv=function(e){return jv(e.length,e)},kv=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Ev=Pv((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Cv=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return wv;var r=t.reverse(),o=r[0],a=r.slice(1);return function(){return a.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},Mv=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Dv=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};Pv((function(e,t,n){var r=+e;return r+n*(+t-r)})),Pv((function(e,t,n){var r=t-+e;return(n-e)/(r||1/0)})),Pv((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}));const _v=function(e,t,n){for(var r=new(vv())(e),o=0,a=[];r.lt(t)&&o<1e5;)a.push(r.toNumber()),r=r.add(n),o++;return a},Av=function(e){return 0===e?1:Math.floor(new(vv())(e).abs().log(10).toNumber())+1};function Tv(e){return function(e){if(Array.isArray(e))return Iv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Rv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}}(e,t)||Rv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rv(e,t){if(e){if("string"==typeof e)return Iv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iv(e,t):void 0}}function Iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $v(e){var t=Nv(e,2),n=t[0],r=t[1],o=n,a=r;return n>r&&(o=r,a=n),[o,a]}function Lv(e,t,n){if(e.lte(0))return new(vv())(0);var r=Av(e.toNumber()),o=new(vv())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,s=new(vv())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?s:new(vv())(Math.ceil(s))}function Fv(e,t,n){var r=1,o=new(vv())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(vv())(10).pow(Av(e)-1),o=new(vv())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(vv())(Math.floor(e)))}else 0===e?o=new(vv())(Math.floor((t-1)/2)):n||(o=new(vv())(Math.floor(e)));var i=Math.floor((t-1)/2);return Cv(Ev((function(e){return o.add(new(vv())(e-i).mul(r)).toNumber()})),kv)(0,t)}function zv(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(vv())(0),tickMin:new(vv())(0),tickMax:new(vv())(0)};var a,i=Lv(new(vv())(t).sub(e).div(n-1),r,o);a=e<=0&&t>=0?new(vv())(0):(a=new(vv())(e).add(t).div(2)).sub(new(vv())(a).mod(i));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new(vv())(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?zv(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new(vv())(s).mul(i)),tickMax:a.add(new(vv())(l).mul(i))})}var Wv=Dv((function(e){var t=Nv(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(o,2),s=Nv($v([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(Tv(kv(0,o-1).map((function(){return 1/0})))):[].concat(Tv(kv(0,o-1).map((function(){return-1/0}))),[c]);return n>r?Mv(u):u}if(l===c)return Fv(l,o,a);var d=zv(l,c,i,a),f=d.step,p=d.tickMin,h=d.tickMax,m=_v(p,h.add(new(vv())(.1).mul(f)),f);return n>r?Mv(m):m})),Bv=(Dv((function(e){var t=Nv(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(o,2),s=Nv($v([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return Fv(l,o,a);var u=Lv(new(vv())(c).sub(l).div(i-1),a,0),d=Cv(Ev((function(e){return new(vv())(l).add(new(vv())(e).mul(u)).toNumber()})),kv)(0,i).filter((function(e){return e>=l&&e<=c}));return n>r?Mv(d):d})),Dv((function(e,t){var n=Nv(e,2),r=n[0],o=n[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Nv($v([r,o]),2),s=i[0],l=i[1];if(s===-1/0||l===1/0)return[r,o];if(s===l)return[s];var c=Math.max(t,2),u=Lv(new(vv())(l).sub(s).div(c-1),a,0),d=[].concat(Tv(_v(new(vv())(s),new(vv())(l).sub(new(vv())(.99).mul(u)),u)),[l]);return r>o?Mv(d):d}))),Hv=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]},Yv=["children","width","height","viewBox","className","style","title","desc"];function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}function Vv(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,l=e.title,u=e.desc,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Yv),f=o||{width:n,height:r,x:0,y:0},p=c("recharts-surface",a);return s().createElement("svg",Uv({},Ad(d,!0,"svg"),{className:p,width:n,height:r,style:i,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),s().createElement("title",null,l),s().createElement("desc",null,u),t)}Math.abs,Math.atan2;const qv=Math.cos,Gv=(Math.max,Math.min,Math.sin),Xv=Math.sqrt,Kv=Math.PI,Zv=2*Kv,Qv={draw(e,t){const n=Xv(t/Kv);e.moveTo(n,0),e.arc(0,0,n,0,Zv)}},Jv={draw(e,t){const n=Xv(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},eb=Xv(1/3),tb=2*eb,nb={draw(e,t){const n=Xv(t/tb),r=n*eb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},rb={draw(e,t){const n=Xv(t),r=-n/2;e.rect(r,r,n,n)}},ob=Gv(Kv/10)/Gv(7*Kv/10),ab=Gv(Zv/10)*ob,ib=-qv(Zv/10)*ob,sb={draw(e,t){const n=Xv(.8908130915292852*t),r=ab*n,o=ib*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const a=Zv*t/5,i=qv(a),s=Gv(a);e.lineTo(s*n,-i*n),e.lineTo(i*r-s*o,s*r+i*o)}e.closePath()}},lb=Xv(3),cb={draw(e,t){const n=-Xv(t/(3*lb));e.moveTo(0,2*n),e.lineTo(-lb*n,-n),e.lineTo(lb*n,-n),e.closePath()}},ub=-.5,db=Xv(3)/2,fb=1/Xv(12),pb=3*(fb/2+1),hb={draw(e,t){const n=Xv(t/pb),r=n/2,o=n*fb,a=r,i=n*fb+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(ub*r-db*o,db*r+ub*o),e.lineTo(ub*a-db*i,db*a+ub*i),e.lineTo(ub*s-db*l,db*s+ub*l),e.lineTo(ub*r+db*o,ub*o-db*r),e.lineTo(ub*a+db*i,ub*i-db*a),e.lineTo(ub*s+db*l,ub*l-db*s),e.closePath()}},mb=Math.PI,yb=2*mb,gb=1e-6,vb=yb-gb;function bb(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class wb{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?bb:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bb;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+a}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>gb)if(Math.abs(u*s-l*c)>gb&&o){let f=n-a,p=r-i,h=s*s+l*l,m=f*f+p*p,y=Math.sqrt(h),g=Math.sqrt(d),v=o*Math.tan((mb-Math.acos((h+d-m)/(2*y*g)))/2),b=v/g,w=v/y;Math.abs(b-1)>gb&&this._append`L${e+b*c},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*f>c*p)},${this._x1=e+w*s},${this._y1=t+w*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,d=a?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>gb||Math.abs(this._y1-c)>gb)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%yb+yb),d>vb?this._append`A${n},${n},0,1,${u},${e-i},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>gb&&this._append`A${n},${n},0,${+(d>=mb)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function xb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new wb(t)}function Ob(e){return Ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ob(e)}Xv(3),Xv(3);var Sb=["type","size","sizeType"];function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jb.apply(this,arguments)}function Pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pb(Object(n),!0).forEach((function(t){Eb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eb(e,t,n){var r;return r=function(e){if("object"!=Ob(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ob(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Ob(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cb={symbolCircle:Qv,symbolCross:Jv,symbolDiamond:nb,symbolSquare:rb,symbolStar:sb,symbolTriangle:cb,symbolWye:hb},Mb=Math.PI/180,Db=function(e){var t,n,r=e.type,o=void 0===r?"circle":r,a=e.size,i=void 0===a?64:a,l=e.sizeType,u=void 0===l?"area":l,d=kb(kb({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Sb)),{},{type:o,size:i,sizeType:u}),f=d.className,p=d.cx,h=d.cy,m=Ad(d,!0);return p===+p&&h===+h&&i===+i?s().createElement("path",jb({},m,{className:c("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(t=function(e){var t="symbol".concat(hv()(e));return Cb[t]||Qv}(o),n=function(e,t){let n=null,r=xb(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:rv(e||Qv),t="function"==typeof t?t:rv(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:rv(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*Mb;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(i,u,o)),n())})):null};function _b(e){return _b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_b(e)}function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fb(r.key),r)}}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rb=function(){return!!e})()}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ib(e)}function $b(e,t){return $b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$b(e,t)}function Lb(e,t,n){return(t=Fb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fb(e){var t=function(e){if("object"!=_b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_b(t)?t:t+""}Db.registerSymbol=function(e,t){Cb["symbol".concat(hv()(e))]=t};var zb=32,Wb=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Ib(n=t),function(e,t){if(t&&("object"===_b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rb()?Reflect.construct(n,r||[],Ib(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$b(e,t)}(t,e),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=zb/6,o=zb/3,a=e.inactive?t:e.color;if("plainline"===e.type)return s().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:zb,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return s().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(o,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(n,"\n            H").concat(zb,"M").concat(2*o,",").concat(n,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return s().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(zb,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(s().isValidElement(e.legendIcon)){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){Lb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete i.legendIcon,s().cloneElement(e.legendIcon,i)}return s().createElement(Db,{fill:a,cx:n,cy:n,size:zb,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,a=t.formatter,i=t.inactiveColor,l={x:0,y:0,width:zb,height:zb},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var o=t.formatter||a,f=c(Lb(Lb({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var p=qu()(t.value)?null:t.value;Hv(!qu()(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=t.inactive?i:t.color;return s().createElement("li",Ab({className:f,style:u,key:"legend-item-".concat(n)},vd(e.props,t,n)),s().createElement(Vv,{width:r,height:r,viewBox:l,style:d},e.renderIcon(t)),s().createElement("span",{className:"recharts-legend-item-text",style:{color:h}},o?o(p,t,n):p))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return s().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&Nb(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);Lb(Wb,"displayName","Legend"),Lb(Wb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Bb=o(50014),Hb=o.n(Bb);function Yb(e,t,n){return!0===t?Hb()(e,n):qu()(t)?Hb()(e,t):e}function Ub(e){return Ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ub(e)}var Vb=["ref"];function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach((function(t){Jb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ew(r.key),r)}}function Kb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kb=function(){return!!e})()}function Zb(e){return Zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zb(e)}function Qb(e,t){return Qb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qb(e,t)}function Jb(e,t,n){return(t=ew(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ew(e){var t=function(e){if("object"!=Ub(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ub(t)?t:t+""}function tw(e){return e.value}var nw=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Jb((n=this,r=t,o=[].concat(i),r=Zb(r),e=function(e,t){if(t&&("object"===Ub(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,Kb()?Reflect.construct(r,o||[],Zb(n).constructor):r.apply(n,o))),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qb(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Gb({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),Gb(Gb({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,c=Gb(Gb({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return s().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(s().isValidElement(e))return s().cloneElement(e,t);if("function"==typeof e)return s().createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Vb);return s().createElement(Wb,n)}(n,Gb(Gb({},this.props),{},{payload:Yb(l,i,tw)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=Gb(Gb({},this.defaultProps),e.props).layout;return"vertical"===n&&rd(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&Xb(n.prototype,r),o&&Xb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function rw(e){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rw(e)}function ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ow(Object(n),!0).forEach((function(t){iw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iw(e,t,n){var r;return r=function(e){if("object"!=rw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Jb(nw,"displayName","Legend"),Jb(nw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var sw=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,o=e.legendContent,a=Md(t,nw);if(!a)return null;var i,s=nw.defaultProps,l=void 0!==s?aw(aw({},s),a.props):{};return i=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,n=t.type.defaultProps,r=void 0!==n?aw(aw({},n),t.props):{},o=r.dataKey,a=r.name,i=r.legendType;return{inactive:r.hide,dataKey:o,type:l.iconType||i||"square",color:yw(t),value:a||o,payload:r}})),aw(aw(aw({},l),nw.getWithHeight(a,r)),{},{payload:i,item:a})};function lw(e){return lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lw(e)}function cw(e){return function(e){if(Array.isArray(e))return uw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return uw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uw(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(n),!0).forEach((function(t){pw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pw(e,t,n){var r;return r=function(e){if("object"!=lw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==lw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hw(e,t,n){return Wu()(e)||Wu()(t)?n:od(t)?Hu()(e,t,n):qu()(t)?t(e):n}function mw(e,t,n,r){var o=fv()(e,(function(e){return hw(e,t)}));if("number"===n){var a=o.filter((function(e){return rd(e)||parseFloat(e)}));return a.length?[uv()(a),lv()(a)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Wu()(e)})):o).map((function(e){return od(e)||e instanceof Date?e:""}))}var yw=function(e){var t,n,r=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?fw(fw({},e.type.defaultProps),e.props):e.props,a=o.stroke,i=o.fill;switch(r){case"Line":n=a;break;case"Area":case"Radar":n=a&&"none"!==a?a:i;break;default:n=i}return n},gw=function(e,t,n,r,o){var a=Cd(t.props.children,Kd).filter((function(e){return function(e,t,n){return!!Wu()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(a&&a.length){var i=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=hw(t,n);if(Wu()(r))return e;var o=Array.isArray(r)?[uv()(r),lv()(r)]:[r,r],a=i.reduce((function(e,n){var r=hw(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]}),[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]}),[1/0,-1/0])}return null},vw=function(e,t,n,r,o){var a=t.map((function(t){var a=t.props.dataKey;return"number"===n&&a&&gw(e,t,a,r)||mw(e,a,n,o)}));if("number"===n)return a.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return a.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e}),[])},bw=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},ww=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,a,i=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(a=!0),e.coordinate}));return o||i.push(t),a||i.push(n),i},xw=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,a=e.type,i=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===a&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===e.axisType&&(null==i?void 0:i.length)>=2?2*td(i[0]-i[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}})).filter((function(e){return!Qu()(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+l,value:e,offset:l}})):r.domain().map((function(e,t){return{coordinate:r(e)+l,value:o?o[e]:e,index:t,offset:l}}))},Ow=new WeakMap,Sw=function(e,t){if("function"!=typeof t)return e;Ow.has(e)||Ow.set(e,new WeakMap);var n=Ow.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},jw=1e-4,Pw={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,a=0,i=0;i<t;++i){var s=Qu()(e[i][n][1])?e[i][n][0]:e[i][n][1];s>=0?(e[i][n][0]=o,e[i][n][1]=o+s,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+s,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}tv(e,t)}},none:tv,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],a=o.length;r<a;++r){for(var i=0,s=0;i<n;++i)s+=e[i][r][1]||0;o[r][1]+=o[r][0]=-s/2}tv(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i<r;++i){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],d=u[i][1]||0,f=(d-(u[i-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];f+=(h[i][1]||0)-(h[i-1][1]||0)}l+=d,c+=f*d}n[i-1][1]+=n[i-1][0]=a,l&&(a-=c/l)}n[i-1][1]+=n[i-1][0]=a,tv(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,a=0;a<t;++a){var i=Qu()(e[a][n][1])?e[a][n][0]:e[a][n][1];i>=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},kw=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=Pw[n],a=function(){var e=rv([]),t=ov,n=tv,r=av;function o(o){var a,i,s=Array.from(e.apply(this,arguments),iv),l=s.length,c=-1;for(const e of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(e,s[a].key,c,o)]).data=e;for(a=0,i=nv(t(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:rv(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:rv(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?ov:"function"==typeof e?e:rv(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?tv:e,o):n},o}().keys(r).value((function(e,t){return+hw(e,t,0)})).order(ov).offset(o);return a(e)};function Ew(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,a=e.index,i=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wu()(o[t.dataKey])){var s=ud(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var l=hw(o,Wu()(i)?t.dataKey:i);return Wu()(l)?null:t.scale(l)}var Cw=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,a=e.entry,i=e.index;if("category"===t.type)return n[i]?n[i].coordinate+r:null;var s=hw(a,t.dataKey,t.domain[i]);return Wu()(s)?null:t.scale(s)-o/2+r},Mw=function(e,t,n){return Object.keys(e).reduce((function(r,o){var a=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[uv()(t.concat([e[0]]).filter(rd)),lv()(t.concat([e[1]]).filter(rd))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},Dw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_w=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Aw=function(e,t,n){if(qu()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(rd(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Dw.test(e[0])){var o=+Dw.exec(e[0])[1];r[0]=t[0]-o}else qu()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(rd(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(_w.test(e[1])){var a=+_w.exec(e[1])[1];r[1]=t[1]+a}else qu()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Tw=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=yv()(t,(function(e){return e.coordinate})),a=1/0,i=1,s=o.length;i<s;i++){var l=o[i],c=o[i-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},Nw=function(e,t,n){return e&&e.length?Fu()(e,Hu()(n,"type.defaultProps.domain"))?t:e:t},Rw=function(e,t){var n=e.type.defaultProps?fw(fw({},e.type.defaultProps),e.props):e.props,r=n.dataKey,o=n.name,a=n.unit,i=n.formatter,s=n.tooltipType,l=n.chartType,c=n.hide;return fw(fw({},Ad(e,!1)),{},{dataKey:r,unit:a,formatter:i,name:o||r,color:yw(e),value:hw(t,r),type:s,payload:t,chartType:l,hide:c})};function Iw(e){return Iw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iw(e)}var $w=["valueAccessor"],Lw=["data","dataKey","clockWise","id","textBreakAll"];function Fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ww(Object(n),!0).forEach((function(t){Hw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hw(e,t,n){var r;return r=function(e){if("object"!=Iw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Iw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Iw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Uw=function(e){return Array.isArray(e.value)?Jd()(e.value):e.value};function Vw(e){var t=e.valueAccessor,n=void 0===t?Uw:t,r=Yw(e,$w),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,c=r.textBreakAll,u=Yw(r,Lw);return o&&o.length?s().createElement(Ld,{className:"recharts-label-list"},o.map((function(e,t){var r=Wu()(a)?n(e,t):hw(e&&e.payload,a),o=Wu()(l)?{}:{id:"".concat(l,"-").concat(t)};return s().createElement(Jf,zw({},Ad(e,!0),u,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:Jf.parseViewBox(Wu()(i)?e:Bw(Bw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))}))):null}Vw.displayName="LabelList",Vw.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=Cd(e.children,Vw).map((function(e,n){return(0,a.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return r;var o,i=function(e,t){return e?!0===e?s().createElement(Vw,{key:"labelList-implicit",data:t}):s().isValidElement(e)||qu()(e)?s().createElement(Vw,{key:"labelList-implicit",data:t,content:e}):Xu()(e)?s().createElement(Vw,zw({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[i].concat(function(e){if(Array.isArray(e))return Fw(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fw(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var qw=o(11331),Gw=o.n(qw),Xw=o(53812),Kw=o.n(Xw);function Zw(e){return Zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zw(e)}function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function Jw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach((function(t){nx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nx(e,t,n){var r;return r=function(e){if("object"!=Zw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Zw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rx=function(e,t,n,r,o){var a,i=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),a+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(e+n,",").concat(t+s*u[1])),a+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(e+n-l*u[2],",").concat(t+r)),a+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(e,",").concat(t+r-s*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var f=Math.min(i,o);a="M ".concat(e,",").concat(t+s*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+l*f,",").concat(t,"\n            L ").concat(e+n-l*f,",").concat(t,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*f,"\n            L ").concat(e+n,",").concat(t+r-s*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+n-l*f,",").concat(t+r,"\n            L ").concat(e+l*f,",").concat(t+r,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*f," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},ox=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,s=t.height;if(Math.abs(i)>0&&Math.abs(s)>0){var l=Math.min(o,o+i),c=Math.max(o,o+i),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=l&&n<=c&&r>=u&&r<=d}return!1},ax={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ix=function(e){var t,n,r=tx(tx({},ax),e),o=(0,a.useRef)(),i=(t=(0,a.useState)(-1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Jw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jw(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],u=i[1];(0,a.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&u(e)}catch(e){}}),[]);var d=r.x,f=r.y,p=r.width,h=r.height,m=r.radius,y=r.className,g=r.animationEasing,v=r.animationDuration,b=r.animationBegin,w=r.isAnimationActive,x=r.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var O=c("recharts-rectangle",y);return x?s().createElement($u,{canBegin:l>0,from:{width:p,height:h,x:d,y:f},to:{width:p,height:h,x:d,y:f},duration:v,animationEasing:g,isActive:x},(function(e){var t=e.width,n=e.height,a=e.x,i=e.y;return s().createElement($u,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:w,easing:g},s().createElement("path",Qw({},Ad(r,!0),{className:O,d:rx(a,i,t,n,m),ref:o})))})):s().createElement("path",Qw({},Ad(r,!0),{className:O,d:rx(d,f,p,h,m)}))};function sx(e){return sx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sx(e)}function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lx.apply(this,arguments)}function cx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ux(Object(n),!0).forEach((function(t){fx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ux(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fx(e,t,n){var r;return r=function(e){if("object"!=sx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==sx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var px=function(e,t,n,r,o){var a,i=n-r;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-i/2,",").concat(t+o),(a+="L ".concat(e+n-i/2-r,",").concat(t+o))+"L ".concat(e,",").concat(t," Z")},hx={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mx=function(e){var t,n,r=dx(dx({},hx),e),o=(0,a.useRef)(),i=(t=(0,a.useState)(-1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return cx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cx(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],u=i[1];(0,a.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&u(e)}catch(e){}}),[]);var d=r.x,f=r.y,p=r.upperWidth,h=r.lowerWidth,m=r.height,y=r.className,g=r.animationEasing,v=r.animationDuration,b=r.animationBegin,w=r.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||h!==+h||m!==+m||0===p&&0===h||0===m)return null;var x=c("recharts-trapezoid",y);return w?s().createElement($u,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:m,x:d,y:f},to:{upperWidth:p,lowerWidth:h,height:m,x:d,y:f},duration:v,animationEasing:g,isActive:w},(function(e){var t=e.upperWidth,n=e.lowerWidth,a=e.height,i=e.x,c=e.y;return s().createElement($u,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:g},s().createElement("path",lx({},Ad(r,!0),{className:x,d:px(i,c,t,n,a),ref:o})))})):s().createElement("g",null,s().createElement("path",lx({},Ad(r,!0),{className:x,d:px(d,f,p,h,m)})))};function yx(e){return yx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yx(e)}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(this,arguments)}function vx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vx(Object(n),!0).forEach((function(t){wx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wx(e,t,n){var r;return r=function(e){if("object"!=yx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==yx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xx=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,a=e.sign,i=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,c=s*(i?1:-1)+r,u=Math.asin(s/c)/Wf,d=l?o:o+a*u,f=l?o-a*u:o;return{center:Hf(t,n,c,d),circleTangency:Hf(t,n,r,d),lineTangency:Hf(t,n,c*Math.cos(u*Wf),f),theta:u}},Ox=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.startAngle,i=function(e,t){return td(t-e)*Math.min(Math.abs(t-e),359.999)}(a,e.endAngle),s=a+i,l=Hf(t,n,o,a),c=Hf(t,n,o,s),u="M ".concat(l.x,",").concat(l.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(i)>180),",").concat(+(a>s),",\n    ").concat(c.x,",").concat(c.y,"\n  ");if(r>0){var d=Hf(t,n,r,a),f=Hf(t,n,r,s);u+="L ".concat(f.x,",").concat(f.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(i)>180),",").concat(+(a<=s),",\n            ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},Sx={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},jx=function(e){var t=bx(bx({},Sx),e),n=t.cx,r=t.cy,o=t.innerRadius,a=t.outerRadius,i=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,d=t.startAngle,f=t.endAngle,p=t.className;if(a<o||d===f)return null;var h,m=c("recharts-sector",p),y=a-o,g=sd(i,y,0,!0);return h=g>0&&Math.abs(d-f)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=td(c-l),d=xx({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,h=d.theta,m=xx({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),y=m.circleTangency,g=m.lineTangency,v=m.theta,b=s?Math.abs(l-c):Math.abs(l-c)-h-v;if(b<0)return i?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*-a,",0\n      "):Ox({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n  ");if(r>0){var x=xx({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),O=x.circleTangency,S=x.lineTangency,j=x.theta,P=xx({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),k=P.circleTangency,E=P.lineTangency,C=P.theta,M=s?Math.abs(l-c):Math.abs(l-c)-j-C;if(M<0&&0===a)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(u>0),",").concat(O.x,",").concat(O.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:a,cornerRadius:Math.min(g,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:d,endAngle:f}):Ox({cx:n,cy:r,innerRadius:o,outerRadius:a,startAngle:d,endAngle:f}),s().createElement("path",gx({},Ad(t,!0),{className:m,d:h,role:"img"}))},Px=["option","shapeType","propTransformer","activeClassName","isActive"];function kx(e){return kx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kx(e)}function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ex(Object(n),!0).forEach((function(t){Mx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mx(e,t,n){var r;return r=function(e){if("object"!=kx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==kx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(e,t){return Cx(Cx({},t),e)}function Ax(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return s().createElement(ix,n);case"trapezoid":return s().createElement(mx,n);case"sector":return s().createElement(jx,n);case"symbols":if(function(e){return"symbols"===e}(t))return s().createElement(Db,n);break;default:return null}}function Tx(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,i=void 0===o?Dx:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Px);if((0,a.isValidElement)(n))t=(0,a.cloneElement)(n,Cx(Cx({},d),function(e){return(0,a.isValidElement)(e)?e.props:e}(n)));else if(qu()(n))t=n(d);else if(Gw()(n)&&!Kw()(n)){var f=i(n,d);t=s().createElement(Ax,{shapeType:r,elementProps:f})}else{var p=d;t=s().createElement(Ax,{shapeType:r,elementProps:p})}return u?s().createElement(Ld,{className:c},t):t}function Nx(e,t){return null!=t&&"trapezoids"in e.props}function Rx(e,t){return null!=t&&"sectors"in e.props}function Ix(e,t){return null!=t&&"points"in e.props}function $x(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function Lx(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Fx(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function zx(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return Nx(e,t)?n="trapezoids":Rx(e,t)?n="sectors":Ix(e,t)&&(n="points"),n}(n,t),a=function(e,t){var n,r;return Nx(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:Rx(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:Ix(e,t)?t.payload:{}}(n,t),i=r.filter((function(e,r){var i=Fu()(a,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return Nx(e,t)?n=$x:Rx(e,t)?n=Lx:Ix(e,t)&&(n=Fx),n}(n,t);return r(e,t)})),l=n.props[o].indexOf(s[s.length-1]);return i&&r===l}));return r.indexOf(i[i.length-1])}var Wx=["x","y"];function Bx(e){return Bx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bx(e)}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hx.apply(this,arguments)}function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yx(Object(n),!0).forEach((function(t){Vx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vx(e,t,n){var r;return r=function(e){if("object"!=Bx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Bx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qx(e,t){var n=e.x,r=e.y,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Wx),a="".concat(n),i=parseInt(a,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),d="".concat(t.width||o.width),f=parseInt(d,10);return Ux(Ux(Ux(Ux(Ux({},t),o),i?{x:i}:{}),l?{y:l}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function Gx(e){return s().createElement(Tx,Hx({shapeType:"rectangle",propTransformer:qx,activeClassName:"recharts-active-bar"},e))}var Xx,Kx=["value","background"];function Zx(e){return Zx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zx(e)}function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qx.apply(this,arguments)}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){aO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iO(r.key),r)}}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nO=function(){return!!e})()}function rO(e){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rO(e)}function oO(e,t){return oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oO(e,t)}function aO(e,t,n){return(t=iO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iO(e){var t=function(e){if("object"!=Zx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zx(t)?t:t+""}var sO=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return aO((n=this,r=t,o=[].concat(i),r=rO(r),e=function(e,t){if(t&&("object"===Zx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,nO()?Reflect.construct(r,o||[],rO(n).constructor):r.apply(n,o))),"state",{isAnimationFinished:!1}),aO(e,"id",id("recharts-bar-")),aO(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),aO(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oO(e,t)}(t,e),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.dataKey,a=n.activeIndex,i=n.activeBar,l=Ad(this.props,!1);return e&&e.map((function(e,n){var c=n===a,u=c?i:r,d=eO(eO(eO({},l),e),{},{isActive:c,option:u,index:n,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return s().createElement(Ld,Qx({className:"recharts-bar-rectangle"},vd(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(n)}),s().createElement(Gx,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,i=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return s().createElement($u,{begin:a,duration:i,isActive:o,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,a=n.map((function(e,t){var n=u&&u[t];if(n){var a=cd(n.x,e.x),i=cd(n.y,e.y),s=cd(n.width,e.width),l=cd(n.height,e.height);return eO(eO({},e),{},{x:a(o),y:i(o),width:s(o),height:l(o)})}if("horizontal"===r){var c=cd(0,e.height)(o);return eO(eO({},e),{},{y:e.y+e.height-c,height:c})}var d=cd(0,e.width)(o);return eO(eO({},e),{},{width:d})}));return s().createElement(Ld,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Fu()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,o=t.activeIndex,a=Ad(this.props.background,!1);return n.map((function(t,n){t.value;var i=t.background,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Kx);if(!i)return null;var c=eO(eO(eO(eO(eO({},l),{},{fill:"#eee"},i),a),vd(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return s().createElement(Gx,Qx({key:"background-bar-".concat(n),option:e.props.background,isActive:n===o},c))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=Cd(n.children,Kd);if(!l)return null;var c="vertical"===i?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:hw(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s().createElement(Ld,d,l.map((function(e){return s().cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:c,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,u=e.width,d=e.height,f=e.isAnimationActive,p=e.background,h=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,y=c("recharts-bar",r),g=o&&o.allowDataOverflow,v=a&&a.allowDataOverflow,b=g||v,w=Wu()(h)?this.id:h;return s().createElement(Ld,{className:y},g||v?s().createElement("defs",null,s().createElement("clipPath",{id:"clipPath-".concat(w)},s().createElement("rect",{x:g?i:i-u/2,y:v?l:l-d/2,width:g?u:2*u,height:v?d:2*d}))):null,s().createElement(Ld,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(w,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,w),(!f||m)&&Vw.renderCallByParent(this.props,n))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&tO(n.prototype,r),o&&tO(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);Xx=sO,aO(sO,"displayName","Bar"),aO(sO,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ef.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),aO(sO,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,a=e.xAxis,i=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,m=n.type.defaultProps,y=void 0!==m?eO(eO({},m),n.props):n.props,g=y.dataKey,v=y.children,b=y.minPointSize,w="horizontal"===h?i:a,x=c?w.scale.domain():null,O=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:w}),S=Cd(v,Zd),j=d.map((function(e,t){var r,d,f,m,y,v;c?r=function(e,t){if(!t||2!==t.length||!rd(t[0])||!rd(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!rd(e[0])||e[0]<n)&&(o[0]=n),(!rd(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(c[u+t],x):(r=hw(e,g),Array.isArray(r)||(r=[O,r]));var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||Fd(!1),t)}}(b,Xx.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var j,P=[i.scale(r[0]),i.scale(r[1])],k=P[0],E=P[1];d=Cw({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),f=null!==(j=null!=E?E:k)&&void 0!==j?j:void 0,m=p.size;var C=k-E;if(y=Number.isNaN(C)?0:C,v={x:d,y:i.y,width:m,height:i.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var M=td(y||w)*(Math.abs(w)-Math.abs(y));f-=M,y+=M}}else{var D=[a.scale(r[0]),a.scale(r[1])],_=D[0],A=D[1];d=_,f=Cw({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),m=A-_,y=p.size,v={x:a.x,y:f,width:a.width,height:y},Math.abs(w)>0&&Math.abs(m)<Math.abs(w)&&(m+=td(m||w)*(Math.abs(w)-Math.abs(m)))}return eO(eO(eO({},e),{},{x:d,y:f,width:m,height:y,value:c?r:r[1],payload:e,background:v},S&&S[t]&&S[t].props),{},{tooltipPayload:[Rw(n,e)],tooltipPosition:{x:d+m/2,y:f+y/2}})}));return eO({data:j,layout:h},f)}));var lO=o(42426),cO=o.n(lO),uO=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},dO=o(73916),fO=o.n(dO),pO=o(19747),hO=o.n(pO);function mO(e){return mO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mO(e)}function yO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wO(r.key),r)}}function gO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gO(Object(n),!0).forEach((function(t){bO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bO(e,t,n){return(t=wO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wO(e){var t=function(e){if("object"!=mO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mO(t)?t:t+""}var xO=function(t,n,r,o,a){var i=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(n),d={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},f=!!Md(c,sO);return u.reduce((function(i,s){var c,u,p,h,m,y=n[s],g=y.orientation,v=y.domain,b=y.padding,w=void 0===b?{}:b,x=y.mirror,O=y.reversed,S="".concat(g).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var j=v[1]-v[0],P=1/0,k=y.categoricalDomain.sort();if(k.forEach((function(e,t){t>0&&(P=Math.min((e||0)-(k[t-1]||0),P))})),Number.isFinite(P)){var E=P/j,C="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(c=E*C/2),"no-gap"===y.padding){var M=sd(t.barCategoryGap,E*C),D=E*C/2;c=D-M-(D-M)/C*M}}}u="xAxis"===o?[r.left+(w.left||0)+(c||0),r.left+r.width-(w.right||0)-(c||0)]:"yAxis"===o?"horizontal"===l?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(c||0),r.top+r.height-(w.bottom||0)-(c||0)]:y.range,O&&(u=[u[1],u[0]]);var _=function(t,n,r){var o=t.scale,a=t.type,i=t.layout,s=t.axisType;if("auto"===o)return"radial"===i&&"radiusAxis"===s?{scale:lp(),realScaleType:"band"}:"radial"===i&&"angleAxis"===s?{scale:Vh(),realScaleType:"linear"}:"category"===a&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:up(),realScaleType:"point"}:"category"===a?{scale:lp(),realScaleType:"band"}:{scale:Vh(),realScaleType:"linear"};if(Uu()(o)){var l="scale".concat(hv()(o));return{scale:(e[l]||up)(),realScaleType:e[l]?l:"point"}}return qu()(o)?{scale:o}:{scale:up(),realScaleType:"point"}}(y,a,f),A=_.scale,T=_.realScaleType;A.domain(v).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-jw,a=Math.max(r[0],r[1])+jw,i=e(t[0]),s=e(t[n-1]);(i<o||i>a||s<o||s>a)&&e.domain([t[0],t[n-1]])}}(A);var N=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,a=t.originalDomain,i=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&a&&("auto"===a[0]||"auto"===a[1])){var l=e.domain();if(!l.length)return null;var c=Wv(l,o,i);return e.domain([uv()(c),lv()(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:Bv(u,o,i)}}return null}(A,vO(vO({},y),{},{realScaleType:T}));"xAxis"===o?(m="top"===g&&!x||"bottom"===g&&x,p=r.left,h=d[S]-m*y.height):"yAxis"===o&&(m="left"===g&&!x||"right"===g&&x,p=d[S]-m*y.width,h=r.top);var R=vO(vO(vO({},y),N),{},{realScaleType:T,x:p,y:h,scale:A,width:"xAxis"===o?r.width:y.width,height:"yAxis"===o?r.height:y.height});return R.bandSize=Tw(R,N),y.hide||"xAxis"!==o?y.hide||(d[S]+=(m?-1:1)*R.width):d[S]+=(m?-1:1)*R.height,vO(vO({},i),{},bO({},s,R))}),{})},OO=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return{x:Math.min(n,o),y:Math.min(r,a),width:Math.abs(o-n),height:Math.abs(a-r)}},SO=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&yO(t.prototype,n),r&&yO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();bO(SO,"EPS",1e-4);var jO=function(e){var t=Object.keys(e).reduce((function(t,n){return vO(vO({},t),{},bO({},n,SO.create(e[n])))}),{});return vO(vO({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return fO()(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return hO()(e,(function(e,n){return t[n].isInRange(e)}))}})},PO=o(7309),kO=o.n(PO),EO=o(50104),CO=o.n(EO)()((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("")})),MO=(0,a.createContext)(void 0),DO=(0,a.createContext)(void 0),_O=(0,a.createContext)(void 0),AO=(0,a.createContext)({}),TO=(0,a.createContext)(void 0),NO=(0,a.createContext)(0),RO=(0,a.createContext)(0),IO=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,a=e.clipPathId,i=e.children,l=e.width,c=e.height,u=CO(o);return s().createElement(MO.Provider,{value:n},s().createElement(DO.Provider,{value:r},s().createElement(AO.Provider,{value:o},s().createElement(_O.Provider,{value:u},s().createElement(TO.Provider,{value:a},s().createElement(NO.Provider,{value:c},s().createElement(RO.Provider,{value:l},i)))))))},$O=function(e){var t=(0,a.useContext)(MO);null==t&&Fd(!1);var n=t[e];return null==n&&Fd(!1),n},LO=function(e){var t=(0,a.useContext)(DO);null==t&&Fd(!1);var n=t[e];return null==n&&Fd(!1),n},FO=function(){return(0,a.useContext)(RO)},zO=function(){return(0,a.useContext)(NO)};function WO(e){return WO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WO(e)}function BO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XO(r.key),r)}}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HO=function(){return!!e})()}function YO(e){return YO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YO(e)}function UO(e,t){return UO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UO(e,t)}function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VO(Object(n),!0).forEach((function(t){GO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GO(e,t,n){return(t=XO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XO(e){var t=function(e){if("object"!=WO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WO(t)?t:t+""}function KO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZO.apply(this,arguments)}function QO(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,l=e.shape,u=e.className,d=e.alwaysShow,f=(0,a.useContext)(TO),p=$O(o),h=LO(i),m=(0,a.useContext)(_O);if(!f||!m)return null;Hv(void 0===d,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=function(e,t,n,r,o,a,i,s,l){var c=o.x,u=o.y,d=o.width,f=o.height;if(n){var p=l.y,h=e.y.apply(p,{position:a});if(uO(l,"discard")&&!e.y.isInRange(h))return null;var m=[{x:c+d,y:h},{x:c,y:h}];return"left"===s?m.reverse():m}if(t){var y=l.x,g=e.x.apply(y,{position:a});if(uO(l,"discard")&&!e.x.isInRange(g))return null;var v=[{x:g,y:u+f},{x:g,y:u}];return"top"===i?v.reverse():v}if(r){var b=l.segment.map((function(t){return e.apply(t,{position:a})}));return uO(l,"discard")&&cO()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(jO({x:p.scale,y:h.scale}),od(t),od(n),r&&2===r.length,m,e.position,p.orientation,h.orientation,e);if(!y)return null;var g,v,b,w=(v=2,function(e){if(Array.isArray(e))return e}(g=y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(g,v)||function(e,t){if(e){if("string"==typeof e)return KO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KO(e,t):void 0}}(g,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=w[0],O=x.x,S=x.y,j=w[1],P=j.x,k=j.y,E=qO(qO({clipPath:uO(e,"hidden")?"url(#".concat(f,")"):void 0},Ad(e,!0)),{},{x1:O,y1:S,x2:P,y2:k});return s().createElement(Ld,{className:c("recharts-reference-line",u)},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement("line",ZO({},t,{className:"recharts-reference-line-line"}))}(l,E),Jf.renderCallByParent(e,OO({x:(b={x1:O,y1:S,x2:P,y2:k}).x1,y:b.y1},{x:b.x2,y:b.y2})))}var JO=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=YO(n=t),function(e,t){if(t&&("object"===WO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,HO()?Reflect.construct(n,r||[],YO(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UO(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(QO,this.props)}}])&&BO(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);GO(JO,"displayName","ReferenceLine"),GO(JO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var eS=o(7350),tS=o.n(eS);function nS(e){return nS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nS(e)}function rS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(n),!0).forEach((function(t){aS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aS(e,t,n){var r;return r=function(e){if("object"!=nS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==nS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sS=(0,a.forwardRef)((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,l=void 0===i?"100%":i,u=e.height,d=void 0===u?"100%":u,f=e.minWidth,p=void 0===f?0:f,h=e.minHeight,m=e.maxHeight,y=e.children,g=e.debounce,v=void 0===g?0:g,b=e.id,w=e.className,x=e.onResize,O=e.style,S=void 0===O?{}:O,j=(0,a.useRef)(null),P=(0,a.useRef)();P.current=x,(0,a.useImperativeHandle)(t,(function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})}));var k,E,C=(k=(0,a.useState)({containerWidth:o.width,containerHeight:o.height}),E=2,function(e){if(Array.isArray(e))return e}(k)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(k,E)||function(e,t){if(e){if("string"==typeof e)return iS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iS(e,t):void 0}}(k,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),M=C[0],D=C[1],_=(0,a.useCallback)((function(e,t){D((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);(0,a.useEffect)((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;_(r,o),null===(t=P.current)||void 0===t||t.call(P,r,o)};v>0&&(e=tS()(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=j.current.getBoundingClientRect(),r=n.width,o=n.height;return _(r,o),t.observe(j.current),function(){t.disconnect()}}),[_,v]);var A=(0,a.useMemo)((function(){var e=M.containerWidth,t=M.containerHeight;if(e<0||t<0)return null;Hv(nd(l)||nd(d),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",l,d),Hv(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=nd(l)?e:l,o=nd(d)?t:d;n&&n>0&&(r?o=r/n:o&&(r=o*n),m&&o>m&&(o=m)),Hv(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,o,l,d,p,h,n);var i=!Array.isArray(y)&&jd(y.type).endsWith("Chart");return s().Children.map(y,(function(e){return s().isValidElement(e)?(0,a.cloneElement)(e,oS({width:r,height:o},i?{style:oS({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,y,d,m,h,p,M,l]);return s().createElement("div",{id:b?"".concat(b):void 0,className:c("recharts-responsive-container",w),style:oS(oS({},S),{},{width:l,height:d,minWidth:p,minHeight:h,maxHeight:m}),ref:j},A)})),lS=o(23181),cS=o.n(lS);function uS(e){return uS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uS(e)}function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}function fS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pS(Object(n),!0).forEach((function(t){mS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mS(e,t,n){var r;return r=function(e){if("object"!=uS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==uS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yS(e){return Array.isArray(e)&&od(e[0])&&od(e[1])?e.join(" ~ "):e}var gS=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,o=void 0===r?{}:r,a=e.itemStyle,i=void 0===a?{}:a,l=e.labelStyle,u=void 0===l?{}:l,d=e.payload,f=e.formatter,p=e.itemSorter,h=e.wrapperClassName,m=e.labelClassName,y=e.label,g=e.labelFormatter,v=e.accessibilityLayer,b=void 0!==v&&v,w=hS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=hS({margin:0},u),O=!Wu()(y),S=O?y:"",j=c("recharts-default-tooltip",h),P=c("recharts-tooltip-label",m);O&&g&&null!=d&&(S=g(y,d));var k=b?{role:"status","aria-live":"assertive"}:{};return s().createElement("div",dS({className:j,style:w},k),s().createElement("p",{className:P,style:x},s().isValidElement(S)?S:"".concat(S)),function(){if(d&&d.length){var e=(p?yv()(d,p):d).map((function(e,t){if("none"===e.type)return null;var r=hS({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),o=e.formatter||f||yS,a=e.value,l=e.name,c=a,u=l;if(o&&null!=c&&null!=u){var p=o(a,l,e,t,d);if(Array.isArray(p)){var h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p,2);c=h[0],u=h[1]}else c=p}return s().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},od(u)?s().createElement("span",{className:"recharts-tooltip-item-name"},u):null,od(u)?s().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,s().createElement("span",{className:"recharts-tooltip-item-value"},c),s().createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return s().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function vS(e){return vS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vS(e)}function bS(e,t,n){var r;return r=function(e){if("object"!=vS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==vS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wS="recharts-tooltip-wrapper",xS={visibility:"hidden"};function OS(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return c(wS,bS(bS(bS(bS({},"".concat(wS,"-right"),rd(n)&&t&&rd(t.x)&&n>=t.x),"".concat(wS,"-left"),rd(n)&&t&&rd(t.x)&&n<t.x),"".concat(wS,"-bottom"),rd(r)&&t&&rd(t.y)&&r>=t.y),"".concat(wS,"-top"),rd(r)&&t&&rd(t.y)&&r<t.y))}function SS(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&rd(a[r]))return a[r];var u=n[r]-s-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?u<l[r]?Math.max(d,l[r]):Math.max(u,l[r]):d+s>l[r]+c?Math.max(u,l[r]):Math.max(d,l[r])}function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}function PS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PS(Object(n),!0).forEach((function(t){_S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ES(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AS(r.key),r)}}function CS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CS=function(){return!!e})()}function MS(e){return MS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MS(e)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DS(e,t)}function _S(e,t,n){return(t=AS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AS(e){var t=function(e){if("object"!=jS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jS(t)?t:t+""}var TS=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return _S((n=this,r=t,o=[].concat(i),r=MS(r),e=function(e,t){if(t&&("object"===jS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,CS()?Reflect.construct(r,o||[],MS(n).constructor):r.apply(n,o))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),_S(e,"handleKeyDown",(function(t){var n,r,o,a;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(a=e.props.coordinate)||void 0===a?void 0:a.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DS(e,t)}(t,e),n=t,r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,a=t.animationEasing,i=t.children,l=t.coordinate,c=t.hasPayload,u=t.isAnimationActive,d=t.offset,f=t.position,p=t.reverseDirection,h=t.useTranslate3d,m=t.viewBox,y=t.wrapperStyle,g=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,u=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=SS({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:a,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=SS({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:a,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):xS,cssClasses:OS({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:l,offsetTopLeft:d,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:m}),v=g.cssClasses,b=g.cssProperties,w=kS(kS({transition:u&&n?"transform ".concat(o,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return s().createElement("div",{tabIndex:-1,className:v,style:w,ref:function(t){e.wrapperNode=t}},i)}}],r&&ES(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);function NS(e){return NS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NS(e)}function RS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RS(Object(n),!0).forEach((function(t){WS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BS(r.key),r)}}function LS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LS=function(){return!!e})()}function FS(e){return FS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FS(e)}function zS(e,t){return zS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zS(e,t)}function WS(e,t,n){return(t=BS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BS(e){var t=function(e){if("object"!=NS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NS(t)?t:t+""}function HS(e){return e.dataKey}var YS=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=FS(n=t),function(e,t){if(t&&("object"===NS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,LS()?Reflect.construct(n,r||[],FS(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zS(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,a=t.animationEasing,i=t.content,l=t.coordinate,c=t.filterNull,u=t.isAnimationActive,d=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,m=t.reverseDirection,y=t.useTranslate3d,g=t.viewBox,v=t.wrapperStyle,b=null!=f?f:[];c&&b.length&&(b=Yb(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,HS));var w=b.length>0;return s().createElement(TS,{allowEscapeViewBox:r,animationDuration:o,animationEasing:a,isAnimationActive:u,active:n,coordinate:l,hasPayload:w,offset:d,position:h,reverseDirection:m,useTranslate3d:y,viewBox:g,wrapperStyle:v},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):"function"==typeof e?s().createElement(e,t):s().createElement(gS,t)}(i,IS(IS({},this.props),{},{payload:b})))}}],r&&$S(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);function US(){return US=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}WS(YS,"displayName","Tooltip"),WS(YS,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ef.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 VS=function(e){var t=e.cx,n=e.cy,r=e.r,o=e.className,a=c("recharts-dot",o);return t===+t&&n===+n&&r===+r?s().createElement("circle",US({},Ad(e,!1),gd(e),{className:a,cx:t,cy:n,r})):null};function qS(e){return qS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qS(e)}function GS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GS(Object(n),!0).forEach((function(t){KS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KS(e,t,n){var r;return r=function(e){if("object"!=qS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==qS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZS=["Webkit","Moz","O","ms"];function QS(e){return QS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QS(e)}function JS(){return JS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JS.apply(this,arguments)}function ej(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ej(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sj(r.key),r)}}function rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rj=function(){return!!e})()}function oj(e){return oj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oj(e)}function aj(e,t){return aj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aj(e,t)}function ij(e,t,n){return(t=sj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sj(e){var t=function(e){if("object"!=QS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QS(t)?t:t+""}var lj=function(e){return e.changedTouches&&!!e.changedTouches.length},cj=function(e){function t(e){var n,r,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ij((r=this,a=[e],o=oj(o=t),n=function(e,t){if(t&&("object"===QS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,rj()?Reflect.construct(o,a||[],oj(r).constructor):o.apply(r,a))),"handleDrag",(function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)})),ij(n,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])})),ij(n,"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})})),n.detachDragEndListener()})),ij(n,"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),ij(n,"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})})),ij(n,"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),ij(n,"handleSlideDragStart",(function(e){var t=lj(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aj(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,a=this.props,i=a.gap,s=a.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=t.getIndexInRange(o,l),d=t.getIndexInRange(o,c);return{startIndex:u-u%i,endIndex:d===s?s:d-d%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=hw(n[e],o,e);return qu()(r)?r(a,e):a}},{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(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,s=a.width,l=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,f=e.pageX-n;f>0?f=Math.min(f,i+s-l-o,i+s-l-r):f<0&&(f=Math.max(f,i-r,i-o));var p=this.getIndex({startX:r+f,endX:o+f});p.startIndex===c&&p.endIndex===u||!d||d(p),this.setState({startX:r+f,endX:o+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=lj(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,a=t.startX,i=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,d=s.onChange,f=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},m=e.pageX-n;m>0?m=Math.min(m,l+c-u-i):m<0&&(m=Math.max(m,l-i)),h[r]=i+m;var y=this.getIndex(h),g=y.startIndex,v=y.endIndex;this.setState(ij(ij({},r,i+m),"brushMoveStartX",e.pageX),(function(){var e;d&&(e=p.length-1,("startX"===r&&(o>a?g%f==0:v%f==0)||o<a&&v===e||"endX"===r&&(o>a?v%f==0:g%f==0)||o>a&&v===e)&&d(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,s=this.state[t],l=o.indexOf(s);if(-1!==l){var c=l+e;if(!(-1===c||c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(ij({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return s().createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,l=e.children,c=e.padding,u=a.Children.only(l);return u?s().cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,n){var r,o,a=this,i=this.props,l=i.y,c=i.travellerWidth,u=i.height,d=i.traveller,f=i.ariaLabel,p=i.data,h=i.startIndex,m=i.endIndex,y=Math.max(e,this.props.x),g=tj(tj({},Ad(this.props,!1)),{},{x:y,y:l,width:c,height:u}),v=f||"Min value: ".concat(null===(r=p[h])||void 0===r?void 0:r.name,", Max value: ").concat(null===(o=p[m])||void 0===o?void 0:o.name);return s().createElement(Ld,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth,l=Math.min(e,t)+i,c=Math.max(Math.abs(t-e)-i,0);return s().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:i};return s().createElement(Ld,{className:"recharts-brush-texts"},s().createElement(If,JS({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+o/2},d),this.getTextOfTick(t)),s().createElement(If,JS({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+a+5,y:r+o/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,u=e.alwaysShowText,d=this.state,f=d.startX,p=d.endX,h=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!t||!t.length||!rd(o)||!rd(a)||!rd(i)||!rd(l)||i<=0||l<=0)return null;var v=c("recharts-brush",n),b=1===s().Children.count(r),w=function(e,t){var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=ZS.reduce((function(e,r){return XS(XS({},e),{},KS({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return s().createElement(Ld,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||m||y||g||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return s().createElement(s().Fragment,null,s().createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),s().createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),s().createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return s().isValidElement(e)?s().cloneElement(e,n):qu()(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return tj({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,a=e.width,i=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=up().domain(cS()(0,s)).range([o,o+a-i]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:a,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&nj(n.prototype,r),o&&nj(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function uj(){return uj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uj.apply(this,arguments)}function dj(e){return dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dj(e)}function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){vj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bj(r.key),r)}}function mj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mj=function(){return!!e})()}function yj(e){return yj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yj(e)}function gj(e,t){return gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gj(e,t)}function vj(e,t,n){return(t=bj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bj(e){var t=function(e){if("object"!=dj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dj(t)?t:t+""}ij(cj,"displayName","Brush"),ij(cj,"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 wj=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=yj(n=t),function(e,t){if(t&&("object"===dj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mj()?Reflect.construct(n,r||[],yj(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gj(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.r,a=e.alwaysShow,i=e.clipPathId,l=od(n),u=od(r);if(Hv(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!u)return null;var d=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,a=jO({x:r.scale,y:o.scale}),i=a.apply({x:t,y:n},{bandAware:!0});return uO(e,"discard")&&!a.isInRange(i)?null:i}(this.props);if(!d)return null;var f=d.x,p=d.y,h=this.props,m=h.shape,y=h.className,g=pj(pj({clipPath:uO(this.props,"hidden")?"url(#".concat(i,")"):void 0},Ad(this.props,!0)),{},{cx:f,cy:p});return s().createElement(Ld,{className:c("recharts-reference-dot",y)},t.renderDot(m,g),Jf.renderCallByParent(this.props,{x:f-o,y:p-o,width:2*o,height:2*o}))}}],r&&hj(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function xj(){return xj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xj.apply(this,arguments)}function Oj(e){return Oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oj(e)}function Sj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach((function(t){Mj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dj(r.key),r)}}function kj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kj=function(){return!!e})()}function Ej(e){return Ej=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ej(e)}function Cj(e,t){return Cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cj(e,t)}function Mj(e,t,n){return(t=Dj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dj(e){var t=function(e){if("object"!=Oj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oj(t)?t:t+""}vj(wj,"displayName","ReferenceDot"),vj(wj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),vj(wj,"renderDot",(function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement(VS,uj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}));var _j=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Ej(n=t),function(e,t){if(t&&("object"===Oj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kj()?Reflect.construct(n,r||[],Ej(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cj(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,n=e.x1,r=e.x2,o=e.y1,a=e.y2,i=e.className,l=e.alwaysShow,u=e.clipPathId;Hv(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=od(n),f=od(r),p=od(o),h=od(a),m=this.props.shape;if(!(d||f||p||h||m))return null;var y=function(e,t,n,r,o){var a=o.x1,i=o.x2,s=o.y1,l=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var d=jO({x:c.scale,y:u.scale}),f={x:e?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(i,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!uO(o,"discard")||d.isInRange(f)&&d.isInRange(p)?OO(f,p):null}(d,f,p,h,this.props);if(!y&&!m)return null;var g=uO(this.props,"hidden")?"url(#".concat(u,")"):void 0;return s().createElement(Ld,{className:c("recharts-reference-area",i)},t.renderRect(m,jj(jj({clipPath:g},Ad(this.props,!0)),y)),Jf.renderCallByParent(this.props,y))}}])&&Pj(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function Aj(e){return function(e){if(Array.isArray(e))return Tj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Tj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tj(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Mj(_j,"displayName","ReferenceArea"),Mj(_j,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Mj(_j,"renderRect",(function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement(ix,xj({},t,{className:"recharts-reference-area-rect"}))}));var Nj=function(e,t,n,r,o){var a=Cd(e,JO),i=Cd(e,wj),s=[].concat(Aj(a),Aj(i)),l=Cd(e,_j),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce((function(e,t){if(t.props[c]===n&&uO(t.props,"extendDomain")&&rd(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),l.length){var f="".concat(u,"1"),p="".concat(u,"2");d=l.reduce((function(e,t){if(t.props[c]===n&&uO(t.props,"extendDomain")&&rd(t.props[f])&&rd(t.props[p])){var r=t.props[f],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),d)}return o&&o.length&&(d=o.reduce((function(e,t){return rd(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},Rj=o(30228),Ij=new(o.n(Rj)()),$j="recharts.syncMouseEvents";function Lj(e){return Lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lj(e)}function Fj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wj(r.key),r)}}function zj(e,t,n){return(t=Wj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wj(e){var t=function(e){if("object"!=Lj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lj(t)?t:t+""}var Bj=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),zj(this,"activeIndex",0),zj(this,"coordinateList",[]),zj(this,"layout","horizontal")},t=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,a=void 0===o?null:o,i=e.layout,s=void 0===i?null:i,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=a?a:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,a=n.height,i=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+i+s,u=o+this.offset.top+a/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}],t&&Fj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Hj(){}function Yj(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Uj(e){this._context=e}function Vj(e){this._context=e}function qj(e){this._context=e}Uj.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:Yj(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Yj(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Vj.prototype={areaStart:Hj,areaEnd:Hj,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)}},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:Yj(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},qj.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Yj(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class Gj{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Xj(e){this._context=e}function Kj(e){this._context=e}function Zj(e){return new Kj(e)}function Qj(e){return e<0?-1:1}function Jj(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(Qj(a)+Qj(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function eP(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tP(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,o+s*t,a-s,i-s*n,a,i)}function nP(e){this._context=e}function rP(e){this._context=new oP(e)}function oP(e){this._context=e}function aP(e){this._context=e}function iP(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}function sP(e,t){this._context=e,this._t=t}function lP(e){return e[0]}function cP(e){return e[1]}function uP(e,t){var n=rv(!0),r=null,o=Zj,a=null,i=xb(s);function s(s){var l,c,u,d=(s=nv(s)).length,f=!1;for(null==r&&(a=o(u=i())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(c,l,s),+t(c,l,s));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?lP:rv(e),t="function"==typeof t?t:void 0===t?cP:rv(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:rv(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:rv(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),s):r},s}function dP(e,t,n){var r=null,o=rv(!0),a=null,i=Zj,s=null,l=xb(c);function c(c){var u,d,f,p,h,m=(c=nv(c)).length,y=!1,g=new Array(m),v=new Array(m);for(null==a&&(s=i(h=l())),u=0;u<=m;++u){if(!(u<m&&o(p=c[u],u,c))===y)if(y=!y)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(g[f],v[f]);s.lineEnd(),s.areaEnd()}y&&(g[u]=+e(p,u,c),v[u]=+t(p,u,c),s.point(r?+r(p,u,c):g[u],n?+n(p,u,c):v[u]))}if(h)return s=null,h+""||null}function u(){return uP().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?lP:rv(+e),t="function"==typeof t?t:rv(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?cP:rv(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:rv(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:rv(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:rv(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:rv(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:rv(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),c):a},c}function fP(e){return fP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fP(e)}function pP(){return pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pP.apply(this,arguments)}function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hP(Object(n),!0).forEach((function(t){yP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yP(e,t,n){var r;return r=function(e){if("object"!=fP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==fP(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xj.prototype={areaStart:Hj,areaEnd:Hj,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))}},Kj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},nP.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:tP(this,this._t0,eP(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,tP(this,eP(this,n=Jj(this,e,t)),n);break;default:tP(this,this._t0,n=Jj(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(rP.prototype=Object.create(nP.prototype)).point=function(e,t){nP.prototype.point.call(this,t,e)},oP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}},aP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=iP(e),o=iP(t),a=0,i=1;i<n;++a,++i)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},sP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var gP={curveBasisClosed:function(e){return new Vj(e)},curveBasisOpen:function(e){return new qj(e)},curveBasis:function(e){return new Uj(e)},curveBumpX:function(e){return new Gj(e,!0)},curveBumpY:function(e){return new Gj(e,!1)},curveLinearClosed:function(e){return new Xj(e)},curveLinear:Zj,curveMonotoneX:function(e){return new nP(e)},curveMonotoneY:function(e){return new rP(e)},curveNatural:function(e){return new aP(e)},curveStep:function(e){return new sP(e,.5)},curveStepAfter:function(e){return new sP(e,1)},curveStepBefore:function(e){return new sP(e,0)}},vP=function(e){return e.x===+e.x&&e.y===+e.y},bP=function(e){return e.x},wP=function(e){return e.y},xP=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,a=void 0===o?[]:o,i=e.baseLine,s=e.layout,l=e.connectNulls,c=void 0!==l&&l,u=function(e,t){if(qu()(e))return e;var n="curve".concat(hv()(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?gP[n]||Zj:gP["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),d=c?a.filter((function(e){return vP(e)})):a;if(Array.isArray(i)){var f=c?i.filter((function(e){return vP(e)})):i,p=d.map((function(e,t){return mP(mP({},e),{},{base:f[t]})}));return(t="vertical"===s?dP().y(wP).x1(bP).x0((function(e){return e.base.x})):dP().x(bP).y1(wP).y0((function(e){return e.base.y}))).defined(vP).curve(u),t(p)}return(t="vertical"===s&&rd(i)?dP().y(wP).x1(bP).x0(i):rd(i)?dP().x(bP).y1(wP).y0(i):uP().x(bP).y(wP)).defined(vP).curve(u),t(d)}(e):r;return s().createElement("path",pP({},Ad(e,!1),gd(e),{className:c("recharts-curve",t),d:a,ref:o}))};function OP(e){return OP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OP(e)}var SP=["x","y","top","left","width","height","className"];function jP(){return jP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jP.apply(this,arguments)}function PP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kP(e,t,n){var r;return r=function(e){if("object"!=OP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=OP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==OP(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EP=function(e,t,n,r,o,a){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n)},CP=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,a=e.top,i=void 0===a?0:a,l=e.left,u=void 0===l?0:l,d=e.width,f=void 0===d?0:d,p=e.height,h=void 0===p?0:p,m=e.className,y=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PP(Object(n),!0).forEach((function(t){kP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:n,y:o,top:i,left:u,width:f,height:h},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,SP));return rd(n)&&rd(o)&&rd(f)&&rd(h)&&rd(i)&&rd(u)?s().createElement("path",jP({},Ad(y,!0),{className:c("recharts-cross",m),d:EP(n,o,f,h,i,u)})):null};function MP(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[Hf(t,n,r,o),Hf(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function DP(e,t,n){var r,o,a,i;if("horizontal"===e)a=r=t.x,o=n.top,i=n.top+n.height;else if("vertical"===e)i=o=t.y,r=n.left,a=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return MP(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=Hf(s,l,c,d),p=Hf(s,l,u,d);r=f.x,o=f.y,a=p.x,i=p.y}return[{x:r,y:o},{x:a,y:i}]}function _P(e){return _P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_P(e)}function AP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AP(Object(n),!0).forEach((function(t){NP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NP(e,t,n){var r;return r=function(e){if("object"!=_P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==_P(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(e){var t,n,r,o=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,u=e.activePayload,d=e.offset,f=e.activeTooltipIndex,p=e.tooltipAxisBandSize,h=e.layout,m=e.chartName,y=null!==(t=o.props.cursor)&&void 0!==t?t:null===(n=o.type.defaultProps)||void 0===n?void 0:n.cursor;if(!o||!y||!s||!l||"ScatterChart"!==m&&"axis"!==i)return null;var g=xP;if("ScatterChart"===m)r=l,g=CP;else if("BarChart"===m)r=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(h,l,d,p),g=ix;else if("radial"===h){var v=MP(l),b=v.cx,w=v.cy,x=v.radius;r={cx:b,cy:w,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:x,outerRadius:x},g=jx}else r={points:DP(h,l,d)},g=xP;var O=TP(TP(TP(TP({stroke:"#ccc",pointerEvents:"none"},d),r),Ad(y,!1)),{},{payload:u,payloadIndex:f,className:c("recharts-tooltip-cursor",y.className)});return(0,a.isValidElement)(y)?(0,a.cloneElement)(y,O):(0,a.createElement)(g,O)}var IP=["item"],$P=["children","className","width","height","style","compact","title","desc"];function LP(e){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LP(e)}function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FP.apply(this,arguments)}function zP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||qP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QP(r.key),r)}}function HP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HP=function(){return!!e})()}function YP(e){return YP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YP(e)}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UP(e,t)}function VP(e){return function(e){if(Array.isArray(e))return GP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qP(e,t){if(e){if("string"==typeof e)return GP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GP(e,t):void 0}}function GP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XP(Object(n),!0).forEach((function(t){ZP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZP(e,t,n){return(t=QP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QP(e){var t=function(e){if("object"!=LP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LP(t)?t:t+""}var JP={xAxis:["bottom","top"],yAxis:["left","right"]},ek={width:"100%",height:"100%"},tk={x:0,y:0};function nk(e){return e}var rk=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,a=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(VP(e),VP(n)):e}),[]);return a.length>0?a:e&&e.length&&rd(r)&&rd(o)?e.slice(r,o+1):[]};function ok(e){return"number"===e?[0,"auto"]:void 0}var ak=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=rk(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce((function(o,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:t;return u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),(c=a.dataKey&&!a.allowDuplicatedCategory?ud(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(VP(o),[Rw(s,c)]):o}),[])},ik=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),i=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,l=0;l<i;l++){var c=l>0?r[l-1].coordinate:r[i-1].coordinate,u=r[l].coordinate,d=l>=i-1?r[0].coordinate:r[l+1].coordinate,f=void 0;if(td(u-c)!==td(d-u)){var p=[];if(td(d-u)===td(s[1]-s[0])){f=d;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var m=d+s[1]-s[0];p[0]=Math.min(u,(m+u)/2),p[1]=Math.max(u,(m+u)/2)}var y=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){a=r[l].index;break}}else{var g=Math.min(c,d),v=Math.max(c,d);if(e>(g+u)/2&&e<=(v+u)/2){a=r[l].index;break}}}else for(var b=0;b<i;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){a=n[b].index;break}return a}(a,i,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,d=ak(e,t,c,u),f=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var a=o.coordinate,i=r.radius;return KP(KP(KP({},r),Hf(r.cx,r.cy,i,a)),{},{angle:a,radius:i})}var s=o.coordinate,l=r.angle;return KP(KP(KP({},r),Hf(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return tk}(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:f}}return null},sk=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=Cd(c,o),f={};return d&&d.length?f=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,f=bw(c,o);return n.reduce((function(t,n){var p,h=void 0!==n.type.defaultProps?KP(KP({},n.type.defaultProps),n.props):n.props,m=h.type,y=h.dataKey,g=h.allowDataOverflow,v=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[a];if(t[O])return t;var S,j,P,k=rk(e.data,{graphicalItems:r.filter((function(e){var t;return(a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a])===O})),dataStartIndex:s,dataEndIndex:l}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&rd(r)&&rd(o))return!0}return!1})(h.domain,g,m)&&(S=Aw(h.domain,null,g),!f||"number"!==m&&"auto"===b||(P=mw(k,y,"category")));var C=ok(m);if(!S||0===S.length){var M,D=null!==(M=h.domain)&&void 0!==M?M:C;if(y){if(S=mw(k,y,m),"category"===m&&f){var _=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);v&&_?(j=S,S=cS()(0,E)):v||(S=Nw(D,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(VP(e),[t])}),[]))}else if("category"===m)S=v?S.filter((function(e){return""!==e&&!Wu()(e)})):Nw(D,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wu()(t)?e:[].concat(VP(e),[t])}),[]);else if("number"===m){var A=function(e,t,n,r,o){var a=t.map((function(t){return gw(e,t,n,o,r)})).filter((function(e){return!Wu()(e)}));return a&&a.length?a.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){var t,n,r=a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===O&&(x||!o)})),y,o,c);A&&(S=A)}!f||"number"!==m&&"auto"===b||(P=mw(k,y,"category"))}else S=f?cS()(0,E):i&&i[O]&&i[O].hasStack&&"number"===m?"expand"===d?[0,1]:Mw(i[O].stackGroups,s,l):vw(k,r.filter((function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===O&&(x||!n)})),m,c,!0);if("number"===m)S=Nj(u,S,O,o,w),D&&(S=Aw(D,S,g));else if("category"===m&&D){var T=D;S.every((function(e){return T.indexOf(e)>=0}))&&(S=T)}}return KP(KP({},t),{},ZP({},O,KP(KP({},h),{},{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:j,originalDomain:null!==(p=h.domain)&&void 0!==p?p:C,isCategorical:f,layout:c})))}),{})}(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l}):a&&a.length&&(f=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=rk(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),f=d.length,p=bw(c,o),h=-1;return n.reduce((function(e,t){var m,y=(void 0!==t.type.defaultProps?KP(KP({},t.type.defaultProps),t.props):t.props)[a],g=ok("number");return e[y]?e:(h++,p?m=cS()(0,f):i&&i[y]&&i[y].hasStack?(m=Mw(i[y].stackGroups,s,l),m=Nj(u,m,y,o)):(m=Aw(g,vw(d,n.filter((function(e){var t,n,r=a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===y&&!o})),"number",c),r.defaultProps.allowDataOverflow),m=Nj(u,m,y,o)),KP(KP({},e),{},ZP({},y,KP(KP({axisType:o},r.defaultProps),{},{hide:!0,orientation:Hu()(JP,"".concat(o,".").concat(h%2),null),domain:m,originalDomain:g,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l})),f},lk=function(e){var t=e.children,n=e.defaultShowTooltip,r=Md(t,cj),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},ck=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},uk=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},dk=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,i=e.validateTooltipEventTypes,l=void 0===i?["axis"]:i,u=e.axisComponents,d=e.legendContent,f=e.formatAxisMap,p=e.defaultProps,h=function(e,r){var o=e.props,a=e.dataStartIndex,i=e.dataEndIndex,s=e.updateId;if(!Dd({props:o}))return null;var l=o.children,c=o.layout,d=o.stackOffset,p=o.data,h=o.reverseStackOrder,m=ck(c),y=m.numericAxisName,g=m.cateAxisName,v=Cd(l,n),b=function(e,t,n,r,o,a){if(!e)return null;var i=(a?t.reverse():t).reduce((function(e,t){var o,a=null!==(o=t.type)&&void 0!==o&&o.defaultProps?fw(fw({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(a.hide)return e;var s=a[n],l=e[s]||{hasStack:!1,stackGroups:{}};if(od(i)){var c=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[i]=c}else l.stackGroups[id("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return fw(fw({},e),{},pw({},s,l))}),{});return Object.keys(i).reduce((function(t,a){var s=i[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,a){var i=s.stackGroups[a];return fw(fw({},t),{},pw({},a,{numericAxisId:n,cateAxisId:r,items:i.items,stackedData:kw(e,i.items,o)}))}),{})),fw(fw({},t),{},pw({},a,s))}),{})}(p,v,"".concat(y,"Id"),"".concat(g,"Id"),d,h),w=u.reduce((function(e,t){var n="".concat(t.axisType,"Map");return KP(KP({},e),{},ZP({},n,sk(o,KP(KP({},t),{},{graphicalItems:v,stackGroups:t.axisType===y&&b,dataStartIndex:a,dataEndIndex:i}))))}),{}),x=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,a=e.yAxisMap,i=void 0===a?{}:a,s=n.width,l=n.height,c=n.children,u=n.margin||{},d=Md(c,cj),f=Md(c,nw),p=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:KP(KP({},e),{},ZP({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:KP(KP({},e),{},ZP({},r,Hu()(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=KP(KP({},h),p),y=m.bottom;d&&(m.bottom+=d.props.height||cj.defaultProps.height),f&&t&&(m=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,s=a-(i.left||0)-(i.right||0),l=sw({children:o,legendWidth:s});if(l){var c=r||{},u=c.width,d=c.height,f=l.align,p=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&rd(e[f]))return fw(fw({},e),{},pw({},f,e[f]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&rd(e[p]))return fw(fw({},e),{},pw({},p,e[p]+(d||0)))}return e}(m,0,n,t));var g=s-m.left-m.right,v=l-m.top-m.bottom;return KP(KP({brushBottom:y},m),{},{width:Math.max(g,0),height:Math.max(v,0)})}(KP(KP({},w),{},{props:o,graphicalItems:v}),null==r?void 0:r.legendBBox);Object.keys(w).forEach((function(e){w[e]=f(o,w[e],x,e.replace("Map",""),t)}));var O,S,j=w["".concat(g,"Map")],P=(O=ld(j),{tooltipTicks:S=xw(O,!1,!0),orderedTooltipTicks:yv()(S,(function(e){return e.coordinate})),tooltipAxis:O,tooltipAxisBandSize:Tw(O,S)}),k=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,c=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,h=ck(c),m=h.numericAxisName,y=h.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=jd(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),v=[];return n.forEach((function(n,h){var b=rk(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:s}),w=void 0!==n.type.defaultProps?KP(KP({},n.type.defaultProps),n.props):n.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(m,"Id")],j=w["".concat(y,"Id")],P=u.reduce((function(e,n){var r=t["".concat(n.axisType,"Map")],o=w["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||Fd(!1);var a=r[o];return KP(KP({},e),{},ZP(ZP({},n.axisType,a),"".concat(n.axisType,"Ticks"),xw(a)))}),{}),k=P[y],E=P["".concat(y,"Ticks")],C=r&&r[S]&&r[S].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?fw(fw({},e.type.defaultProps),e.props):e.props).stackId;if(od(r)){var o=t[r];if(o){var a=o.items.indexOf(e);return a>=0?o.stackedData[a]:null}}return null}(n,r[S].stackGroups),M=jd(n.type).indexOf("Bar")>=0,D=Tw(k,E),_=[],A=g&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var a={},i=Object.keys(o),s=0,l=i.length;s<l;s++)for(var c=o[i[s]].stackGroups,u=Object.keys(c),d=0,f=u.length;d<f;d++){var p=c[u[d]],h=p.items,m=p.cateAxisId,y=h.filter((function(e){return jd(e.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,v=void 0!==g?fw(fw({},g),y[0].props):y[0].props,b=v.barSize,w=v[m];a[w]||(a[w]=[]);var x=Wu()(b)?t:b;a[w].push({item:y[0],stackList:y.slice(1),barSize:Wu()(x)?void 0:sd(x,n,0)})}}return a}({barSize:l,stackGroups:r,totalSize:uk(P,y)});if(M){var T,N,R=Wu()(O)?p:O,I=null!==(T=null!==(N=Tw(k,E,!0))&&void 0!==N?N:R)&&void 0!==T?T:0;_=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,a=void 0===o?[]:o,i=e.maxBarSize,s=a.length;if(s<1)return null;var l,c=sd(t,r,0,!0),u=[];if(a[0].barSize===+a[0].barSize){var d=!1,f=r/s,p=a.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*c)>=r&&(p-=(s-1)*c,c=0),p>=r&&f>0&&(d=!0,p=s*(f*=.9));var h={offset:((r-p)/2|0)-c,size:0};l=a.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+c,size:d?f:t.barSize}},r=[].concat(cw(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var m=sd(n,r,0,!0);r-2*m-(s-1)*c<=0&&(c=0);var y=(r-2*m-(s-1)*c)/s;y>1&&(y>>=0);var g=i===+i?Math.min(y,i):y;l=a.reduce((function(e,t,n){var r=[].concat(cw(e),[{item:t.item,position:{offset:m+(y+c)*n+(y-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return l}({barGap:d,barCategoryGap:f,bandSize:I!==D?I:D,sizeList:A[j],maxBarSize:R}),I!==D&&(_=_.map((function(e){return KP(KP({},e),{},{position:KP(KP({},e.position),{},{offset:e.position.offset-I/2})})})))}var $,L,F=n&&n.type&&n.type.getComposedData;F&&v.push({props:KP(KP({},F(KP(KP({},P),{},{displayedData:b,props:e,dataKey:x,item:n,bandSize:D,barPosition:_,offset:o,stackedData:C,layout:c,dataStartIndex:i,dataEndIndex:s}))),{},ZP(ZP(ZP({key:n.key||"item-".concat(h)},m,P[m]),y,P[y]),"animationId",a)),childIndex:($=n,L=e.children,Ed(L).indexOf($)),item:n})})),v}(o,KP(KP({},w),{},{dataStartIndex:a,dataEndIndex:i,updateId:s,graphicalItems:v,stackGroups:b,offset:x}));return KP(KP({formattedGraphicalItems:k,graphicalItems:v,offset:x,stackGroups:b},P),w)},m=function(e){function n(e){var r,o,i,l,u,f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ZP((l=this,f=[e],u=YP(u=n),i=function(e,t){if(t&&("object"===LP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(l,HP()?Reflect.construct(u,f||[],YP(l).constructor):u.apply(l,f))),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ZP(i,"accessibilityManager",new Bj),ZP(i,"handleLegendBBoxUpdate",(function(e){if(e){var t=i.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;i.setState(KP({legendBBox:e},h({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},KP(KP({},i.state),{},{legendBBox:e}))))}})),ZP(i,"handleReceiveSyncEvent",(function(e,t,n){if(i.props.syncId===e){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}})),ZP(i,"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState((function(){return KP({dataStartIndex:t,dataEndIndex:n},h({props:i.props,dataStartIndex:t,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),ZP(i,"handleMouseEnter",(function(e){var t=i.getMouseInfo(e);if(t){var n=KP(KP({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;qu()(r)&&r(n,e)}})),ZP(i,"triggeredAfterMouseMove",(function(e){var t=i.getMouseInfo(e),n=t?KP(KP({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;qu()(r)&&r(n,e)})),ZP(i,"handleItemMouseEnter",(function(e){i.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ZP(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),ZP(i,"handleMouseMove",(function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)})),ZP(i,"handleMouseLeave",(function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var n=i.props.onMouseLeave;qu()(n)&&n(t,e)})),ZP(i,"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&Sd[t]?Sd[t]:null}(e),r=Hu()(i.props,"".concat(n));n&&qu()(r)&&r(null!==(t=/.*touch.*/i.test(n)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)})),ZP(i,"handleClick",(function(e){var t=i.getMouseInfo(e);if(t){var n=KP(KP({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;qu()(r)&&r(n,e)}})),ZP(i,"handleMouseDown",(function(e){var t=i.props.onMouseDown;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"handleMouseUp",(function(e){var t=i.props.onMouseUp;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),ZP(i,"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])})),ZP(i,"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])})),ZP(i,"handleDoubleClick",(function(e){var t=i.props.onDoubleClick;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"handleContextMenu",(function(e){var t=i.props.onContextMenu;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"triggerSyncEvent",(function(e){void 0!==i.props.syncId&&Ij.emit($j,i.props.syncId,e,i.eventEmitterSymbol)})),ZP(i,"applySyncEvent",(function(e){var t=i.props,n=t.layout,r=t.syncMethod,o=i.state.updateId,a=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(KP({dataStartIndex:a,dataEndIndex:s},h({props:i.props,dataStartIndex:a,dataEndIndex:s,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=i.state,f=d.offset,p=d.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var m=0;m<p.length;m++)if(p[m].value===e.activeLabel){u=m;break}}var y=KP(KP({},f),{},{x:f.left,y:f.top}),g=Math.min(l,y.x+y.width),v=Math.min(c,y.y+y.height),b=p[u]&&p[u].value,w=ak(i.state,i.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?v:p[u].coordinate}:tk;i.setState(KP(KP({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else i.setState(e)})),ZP(i,"renderCursor",(function(e){var n,r=i.state,o=r.isTooltipActive,a=r.activeCoordinate,l=r.activePayload,c=r.offset,u=r.activeTooltipIndex,d=r.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:o,h=i.props.layout,m=e.key||"_recharts-cursor";return s().createElement(RP,{key:m,activeCoordinate:a,activePayload:l,activeTooltipIndex:u,chartName:t,element:e,isActive:p,layout:h,offset:c,tooltipAxisBandSize:d,tooltipEventType:f})})),ZP(i,"renderPolarAxis",(function(e,t,n){var r=Hu()(e,"type.axisType"),o=Hu()(i.state,"".concat(r,"Map")),s=e.type.defaultProps,l=void 0!==s?KP(KP({},s),e.props):e.props,u=o&&o[l["".concat(r,"Id")]];return(0,a.cloneElement)(e,KP(KP({},u),{},{className:c(r,u.className),key:e.key||"".concat(t,"-").concat(n),ticks:xw(u,!0)}))})),ZP(i,"renderPolarGrid",(function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,s=i.state,l=s.radiusAxisMap,c=s.angleAxisMap,u=ld(l),d=ld(c),f=d.cx,p=d.cy,h=d.innerRadius,m=d.outerRadius;return(0,a.cloneElement)(e,{polarAngles:Array.isArray(r)?r:xw(d,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:xw(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:n})})),ZP(i,"renderLegend",(function(){var e=i.state.formattedGraphicalItems,t=i.props,n=t.children,r=t.width,o=t.height,s=i.props.margin||{},l=r-(s.left||0)-(s.right||0),c=sw({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:d});if(!c)return null;var u=c.item,f=WP(c,IP);return(0,a.cloneElement)(u,KP(KP({},f),{},{chartWidth:r,chartHeight:o,margin:s,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),ZP(i,"renderTooltip",(function(){var e,t=i.props,n=t.children,r=t.accessibilityLayer,o=Md(n,YS);if(!o)return null;var s=i.state,l=s.isTooltipActive,c=s.activeCoordinate,u=s.activePayload,d=s.activeLabel,f=s.offset,p=null!==(e=o.props.active)&&void 0!==e?e:l;return(0,a.cloneElement)(o,{viewBox:KP(KP({},f),{},{x:f.left,y:f.top}),active:p,label:d,payload:p?u:[],coordinate:c,accessibilityLayer:r})})),ZP(i,"renderBrush",(function(e){var t=i.props,n=t.margin,r=t.data,o=i.state,s=o.offset,l=o.dataStartIndex,c=o.dataEndIndex,u=o.updateId;return(0,a.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Sw(i.handleBrushChange,e.props.onChange),data:r,x:rd(e.props.x)?e.props.x:s.left,y:rd(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(n.bottom||0),width:rd(e.props.width)?e.props.width:s.width,startIndex:l,endIndex:c,updateId:"brush-".concat(u)})})),ZP(i,"renderReferenceElement",(function(e,t,n){if(!e)return null;var r=i.clipPathId,o=i.state,s=o.xAxisMap,l=o.yAxisMap,c=o.offset,u=e.type.defaultProps||{},d=e.props,f=d.xAxisId,p=void 0===f?u.xAxisId:f,h=d.yAxisId,m=void 0===h?u.yAxisId:h;return(0,a.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:s[p],yAxis:l[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:r})})),ZP(i,"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,a=e.childIndex,i=e.isRange,s=[],l=t.props.key,c=void 0!==t.item.type.defaultProps?KP(KP({},t.item.type.defaultProps),t.item.props):t.item.props,u=c.activeDot,d=KP(KP({index:a,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:yw(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},Ad(u,!1)),gd(u));return s.push(n.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(a))),o?s.push(n.renderActiveDot(u,KP(KP({},d),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(a))):i&&s.push(null),s})),ZP(i,"renderGraphicChild",(function(e,t,n){var r=i.filterFormatItem(e,t,n);if(!r)return null;var o=i.getTooltipEventType(),s=i.state,l=s.isTooltipActive,c=s.tooltipAxis,u=s.activeTooltipIndex,d=s.activeLabel,f=Md(i.props.children,YS),p=r.props,h=p.points,m=p.isRange,y=p.baseLine,g=void 0!==r.item.type.defaultProps?KP(KP({},r.item.type.defaultProps),r.item.props):r.item.props,v=g.activeDot,b=g.hide,w=g.activeBar,x=g.activeShape,O=Boolean(!b&&l&&f&&(v||w||x)),S={};"axis"!==o&&f&&"click"===f.props.trigger?S={onClick:Sw(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(S={onMouseLeave:Sw(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:Sw(i.handleItemMouseEnter,e.props.onMouseEnter)});var j=(0,a.cloneElement)(e,KP(KP({},r.props),S));if(O){if(!(u>=0)){var P,k=(null!==(P=i.getItemByXY(i.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:j}).graphicalItem,E=k.item,C=void 0===E?e:E,M=k.childIndex,D=KP(KP(KP({},r.props),S),{},{activeIndex:M});return[(0,a.cloneElement)(C,D),null,null]}var _,A;if(c.dataKey&&!c.allowDuplicatedCategory){var T="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());_=ud(h,T,d),A=m&&y&&ud(y,T,d)}else _=null==h?void 0:h[u],A=m&&y&&y[u];if(x||w){var N=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[(0,a.cloneElement)(e,KP(KP(KP({},r.props),S),{},{activeIndex:N})),null,null]}if(!Wu()(_))return[j].concat(VP(i.renderActivePoints({item:r,activePoint:_,basePoint:A,childIndex:u,isRange:m})))}return m?[j,null,null]:[j,null]})),ZP(i,"renderCustomized",(function(e,t,n){return(0,a.cloneElement)(e,KP(KP({key:"recharts-customized-".concat(n)},i.props),i.state))})),ZP(i,"renderMap",{CartesianGrid:{handler:nk,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:nk},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:nk},YAxis:{handler:nk},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:id("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=tS()(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UP(e,t)}(n,e),r=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=Md(t,YS);if(a){var i=a.props.defaultIndex;if(!("number"!=typeof i||i<0||i>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,l=ak(this.state,n,i,s),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},f=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));f&&(d=KP(KP({},d),f.props.points[i].tooltipPosition),l=f.props.points[i].tooltipPayload);var p={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){Td([Md(e.children,YS)],[Md(this.props.children,YS)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Md(this.props.children,YS);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o=(t=r).top+window.scrollY-document.documentElement.clientTop,a=t.left+window.scrollX-document.documentElement.clientLeft,i={chartX:Math.round(e.pageX-a),chartY:Math.round(e.pageY-o)},s=r.width/n.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,s);if(!l)return null;var c=this.state,u=c.xAxisMap,d=c.yAxisMap,f=this.getTooltipEventType(),p=ik(this.state,this.props.data,this.props.layout,l);if("axis"!==f&&u&&d){var h=ld(u).scale,m=ld(d).scale,y=h&&h.invert?h.invert(i.chartX):null,g=m&&m.invert?m.invert(i.chartY):null;return KP(KP({},i),{},{xValue:y,yValue:g},p)}return p?KP(KP({},i),p):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=ld(l);return Uf({x:o,y:a},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Md(e,YS),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),KP(KP({},gd(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Ij.on($j,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ij.removeListener($j,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o<a;o++){var i=r[o];if(i.item===e||i.props.key===e.key||t===jd(i.item.type)&&n===i.childIndex)return i}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return s().createElement("defs",null,s().createElement("clipPath",{id:e},s().createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=zP(t,2),r=n[0],o=n[1];return KP(KP({},e),{},ZP({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=zP(t,2),r=n[0],o=n[1];return KP(KP({},e),{},ZP({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,a=n.length;o<a;o++){var i=n[o],s=i.props,l=i.item,c=void 0!==l.type.defaultProps?KP(KP({},l.type.defaultProps),l.props):l.props,u=jd(l.type);if("Bar"===u){var d=(s.data||[]).find((function(t){return ox(e,t)}));if(d)return{graphicalItem:i,payload:d}}else if("RadialBar"===u){var f=(s.data||[]).find((function(t){return Uf(e,t)}));if(f)return{graphicalItem:i,payload:f}}else if(Nx(i,r)||Rx(i,r)||Ix(i,r)){var p=zx({graphicalItem:i,activeTooltipItem:r,itemData:c.data}),h=void 0===c.activeIndex?p:c.activeIndex;return{graphicalItem:KP(KP({},i),{},{childIndex:h}),payload:Ix(i,r)?c.data[p]:i.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!Dd(this))return null;var t,n,r=this.props,o=r.children,a=r.className,i=r.width,l=r.height,u=r.style,d=r.compact,f=r.title,p=r.desc,h=WP(r,$P),m=Ad(h,!1);if(d)return s().createElement(IO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s().createElement(Vv,FP({},m,{width:i,height:l,title:f,desc:p}),this.renderClipPath(),Rd(o,this.renderMap)));this.props.accessibilityLayer&&(m.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,m.role=null!==(n=this.props.role)&&void 0!==n?n:"application",m.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},m.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return s().createElement(IO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s().createElement("div",FP({className:c("recharts-wrapper",a),style:KP({position:"relative",cursor:"default",width:i,height:l},u)},y,{ref:function(t){e.container=t}}),s().createElement(Vv,FP({},m,{width:i,height:l,title:f,desc:p,style:ek}),this.renderClipPath(),Rd(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&BP(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(a.Component);ZP(m,"displayName",t),ZP(m,"defaultProps",KP({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ZP(m,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,a=e.width,i=e.height,s=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var f=lk(e);return KP(KP(KP({},f),{},{updateId:0},h(KP(KP({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:i,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||i!==t.prevHeight||s!==t.prevLayout||l!==t.prevStackOffset||!dd(c,t.prevMargin)){var p=lk(e),m={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},y=KP(KP({},ik(t,r,s)),{},{updateId:t.updateId+1}),g=KP(KP(KP({},p),m),y);return KP(KP(KP({},g),h(KP({props:e},g),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:i,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(!Td(o,t.prevChildren)){var v,b,w,x,O=Md(o,cj),S=O&&null!==(v=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==v?v:u,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:d,P=S!==u||j!==d,k=Wu()(r)||P?t.updateId+1:t.updateId;return KP(KP({updateId:k},h(KP(KP({props:e},t),{},{updateId:k,dataStartIndex:S,dataEndIndex:j}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),ZP(m,"renderActiveDot",(function(e,t,n){var r;return r=(0,a.isValidElement)(e)?(0,a.cloneElement)(e,t):qu()(e)?e(t):s().createElement(VS,t),s().createElement(Ld,{className:"recharts-active-dot",key:n},r)}));var y=(0,a.forwardRef)((function(e,t){return s().createElement(m,FP({},e,{ref:t}))}));return y.displayName=m.displayName,y};function fk(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function pk(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function hk(e){return hk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hk(e)}function mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mk(Object(n),!0).forEach((function(t){gk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gk(e,t,n){var r;return r=function(e){if("object"!=hk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==hk(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vk(e,t,n){var r=e.tick,o=e.ticks,a=e.viewBox,i=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(rd(l)||ef.isSsr)return function(e,t){return fk(e,t+1)}(o,"number"==typeof l&&rd(l)?l:0);var f=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?cf(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var o=qu()(c)?c(e.value,r):e.value;return"width"===p?function(e,t,n){return function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,a=Math.atan(n/t),i=o>a&&o<Math.PI-a?n/Math.sin(o):t/Math.cos(o);return Math.abs(i)}({width:e.width+t.width,height:e.height+t.height},n)}(cf(o,{fontSize:t,letterSpacing:n}),h,d):cf(o,{fontSize:t,letterSpacing:n})[p]},y=o.length>=2?td(o[1].coordinate-o[0].coordinate):1,g=function(e,t,n){var r="width"===n,o=e.x,a=e.y,i=e.width,s=e.height;return 1===t?{start:r?o:a,end:r?o+i:a+s}:{start:r?o+i:a+s,end:r?o:a}}(a,y,p);return"equidistantPreserveStart"===l?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,d=s,f=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:fk(r,u)};var a,i=c,f=function(){return void 0===a&&(a=n(t,i)),a},p=t.coordinate,h=0===c||pk(e,p,f,d,l);h||(c=0,d=s,u+=1),h&&(d=p+e*(f()/2+o),c+=u)};u<=i.length;)if(a=f())return a.v;return[]}(y,g,m,o,i):(f="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,o,a){var i=(r||[]).slice(),s=i.length,l=t.start,c=t.end;if(a){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-c);i[s-1]=u=yk(yk({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),pk(e,u.tickCoord,(function(){return d}),l,c)&&(c=u.tickCoord-e*(d/2+o),i[s-1]=yk(yk({},u),{},{isShow:!0}))}for(var p=a?s-1:s,h=function(t){var r,a=i[t],s=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*s()/2-l);i[t]=a=yk(yk({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=yk(yk({},a),{},{tickCoord:a.coordinate});pk(e,a.tickCoord,s,l,c)&&(l=a.tickCoord+e*(s()/2+o),i[t]=yk(yk({},a),{},{isShow:!0}))},m=0;m<p;m++)h(m);return i}(y,g,m,o,i,"preserveStartEnd"===l):function(e,t,n,r,o){for(var a=(r||[]).slice(),i=a.length,s=t.start,l=t.end,c=function(t){var r,c=a[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===i-1){var d=e*(c.coordinate+e*u()/2-l);a[t]=c=yk(yk({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else a[t]=c=yk(yk({},c),{},{tickCoord:c.coordinate});pk(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+o),a[t]=yk(yk({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(y,g,m,o,i),f.filter((function(e){return e.isShow})))}var bk=["viewBox"],wk=["viewBox"],xk=["ticks"];function Ok(e){return Ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ok(e)}function Sk(){return Sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sk.apply(this,arguments)}function jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jk(Object(n),!0).forEach((function(t){_k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ek(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ak(r.key),r)}}function Ck(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ck=function(){return!!e})()}function Mk(e){return Mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mk(e)}function Dk(e,t){return Dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dk(e,t)}function _k(e,t,n){return(t=Ak(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ak(e){var t=function(e){if("object"!=Ok(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ok(t)?t:t+""}var Tk=function(e){function t(e){var n,r,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=this,o=t,a=[e],o=Mk(o),n=function(e,t){if(t&&("object"===Ok(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,Ck()?Reflect.construct(o,a||[],Mk(r).constructor):o.apply(r,a))).state={fontSize:"",letterSpacing:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dk(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=kk(e,bk),o=this.props,a=o.viewBox,i=kk(o,wk);return!dd(n,a)||!dd(r,i)||!dd(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,a,i,s=this.props,l=s.x,c=s.y,u=s.width,d=s.height,f=s.orientation,p=s.tickSize,h=s.mirror,m=s.tickMargin,y=h?-1:1,g=e.tickSize||p,v=rd(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,i=(r=(o=c+ +!h*d)-y*g)-y*m,a=v;break;case"left":r=o=e.coordinate,a=(t=(n=l+ +!h*u)-y*g)-y*m,i=v;break;case"right":r=o=e.coordinate,a=(t=(n=l+ +h*u)+y*g)+y*m,i=v;break;default:t=n=e.coordinate,i=(r=(o=c+ +h*d)+y*g)+y*m,a=v}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:a,y:i}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,i=e.mirror,l=e.axisLine,u=Pk(Pk(Pk({},Ad(this.props,!1)),Ad(l,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var d=+("top"===a&&!i||"bottom"===a&&i);u=Pk(Pk({},u),{},{x1:t,y1:n+d*o,x2:t+r,y2:n+d*o})}else{var f=+("left"===a&&!i||"right"===a&&i);u=Pk(Pk({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s().createElement("line",Sk({},u,{className:c("recharts-cartesian-axis-line",Hu()(l,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,a=this.props,i=a.tickLine,l=a.stroke,u=a.tick,d=a.tickFormatter,f=a.unit,p=vk(Pk(Pk({},this.props),{},{ticks:e}),n,r),h=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),y=Ad(this.props,!1),g=Ad(u,!1),v=Pk(Pk({},y),{},{fill:"none"},Ad(i,!1)),b=p.map((function(e,n){var r=o.getTickLineCoord(e),a=r.line,b=r.tick,w=Pk(Pk(Pk(Pk({textAnchor:h,verticalAnchor:m},y),{},{stroke:"none",fill:l},g),b),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:d});return s().createElement(Ld,Sk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},vd(o.props,e,n)),i&&s().createElement("line",Sk({},v,a,{className:c("recharts-cartesian-axis-tick-line",Hu()(i,"className"))})),u&&t.renderTickItem(u,w,"".concat(qu()(d)?d(e.value,n):e.value).concat(f||"")))}));return s().createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,i=t.className;if(t.hide)return null;var l=this.props,u=l.ticks,d=kk(l,xk),f=u;return qu()(a)&&(f=u&&u.length>0?a(this.props):a(d)),r<=0||o<=0||!f||!f.length?null:s().createElement(Ld,{className:c("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Jf.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,t,n){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement(If,Sk({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&Ek(n.prototype,r),o&&Ek(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.Component);function Nk(e){return Nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nk(e)}function Rk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zk(r.key),r)}}function Ik(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ik=function(){return!!e})()}function $k(e){return $k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$k(e)}function Lk(e,t){return Lk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lk(e,t)}function Fk(e,t,n){return(t=zk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zk(e){var t=function(e){if("object"!=Nk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nk(t)?t:t+""}function Wk(){return Wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wk.apply(this,arguments)}function Bk(e){var t=e.xAxisId,n=FO(),r=zO(),o=$O(t);return null==o?null:s().createElement(Tk,Wk({},o,{className:c("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return xw(e,!0)}}))}_k(Tk,"displayName","CartesianAxis"),_k(Tk,"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 Hk=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=$k(n=t),function(e,t){if(t&&("object"===Nk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ik()?Reflect.construct(n,r||[],$k(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lk(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(Bk,this.props)}}])&&Rk(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function Yk(e){return Yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yk(e)}function Uk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kk(r.key),r)}}function Vk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vk=function(){return!!e})()}function qk(e){return qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qk(e)}function Gk(e,t){return Gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gk(e,t)}function Xk(e,t,n){return(t=Kk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kk(e){var t=function(e){if("object"!=Yk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yk(t)?t:t+""}function Zk(){return Zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zk.apply(this,arguments)}Fk(Hk,"displayName","XAxis"),Fk(Hk,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var Qk=function(e){var t=e.yAxisId,n=FO(),r=zO(),o=LO(t);return null==o?null:s().createElement(Tk,Zk({},o,{className:c("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return xw(e,!0)}}))},Jk=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=qk(n=t),function(e,t){if(t&&("object"===Yk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vk()?Reflect.construct(n,r||[],qk(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gk(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(Qk,this.props)}}])&&Uk(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);Xk(Jk,"displayName","YAxis"),Xk(Jk,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var eE=dk({chartName:"BarChart",GraphicalChild:sO,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Hk},{axisType:"yAxis",AxisComp:Jk}],formatAxisMap:xO}),tE=["x1","y1","x2","y2","key"],nE=["offset"];function rE(e){return rE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rE(e)}function oE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oE(Object(n),!0).forEach((function(t){iE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iE(e,t,n){var r;return r=function(e){if("object"!=rE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rE(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sE(){return sE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sE.apply(this,arguments)}function lE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cE=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.ry;return s().createElement("rect",{x:r,y:o,ry:l,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function uE(e,t){var n;if(s().isValidElement(e))n=s().cloneElement(e,t);else if(qu()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,c=lE(t,tE),u=Ad(c,!1),d=(u.offset,lE(u,nE));n=s().createElement("line",sE({},d,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function dE(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map((function(r,a){var i=aE(aE({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a});return uE(o,i)}));return s().createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function fE(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map((function(r,a){var i=aE(aE({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a});return uE(o,i)}));return s().createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function pE(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,c=e.horizontal;if(void 0!==c&&!c||!t||!t.length)return null;var u=l.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var d=u.map((function(e,l){var c=u[l+1]?u[l+1]-e:o+i-e;if(c<=0)return null;var d=l%t.length;return s().createElement("rect",{key:"react-".concat(l),y:e,x:r,height:c,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return s().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function hE(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,o=e.fillOpacity,a=e.x,i=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==d[0]&&d.unshift(0);var f=d.map((function(e,t){var n=d[t+1]?d[t+1]-e:a+l-e;if(n<=0)return null;var u=t%r.length;return s().createElement("rect",{key:"react-".concat(t),x:e,y:i,width:n,height:c,stroke:"none",fill:r[u],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return s().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var mE=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return ww(vk(aE(aE(aE({},Tk.defaultProps),n),{},{ticks:xw(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},yE=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return ww(vk(aE(aE(aE({},Tk.defaultProps),n),{},{ticks:xw(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},gE={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function vE(e){var t,n,r,o,i,l,c,u,d=FO(),f=zO(),p=(0,a.useContext)(AO),h=aE(aE({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:gE.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:gE.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:gE.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:gE.horizontalFill,vertical:null!==(i=e.vertical)&&void 0!==i?i:gE.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:gE.verticalFill,x:rd(e.x)?e.x:p.left,y:rd(e.y)?e.y:p.top,width:rd(e.width)?e.width:p.width,height:rd(e.height)?e.height:p.height}),m=h.x,y=h.y,g=h.width,v=h.height,b=h.syncWithTicks,w=h.horizontalValues,x=h.verticalValues,O=(c=(0,a.useContext)(MO),ld(c)),S=(u=(0,a.useContext)(DO),kO()(u,(function(e){return hO()(e.domain,Number.isFinite)}))||ld(u));if(!rd(g)||g<=0||!rd(v)||v<=0||!rd(m)||m!==+m||!rd(y)||y!==+y)return null;var j=h.verticalCoordinatesGenerator||mE,P=h.horizontalCoordinatesGenerator||yE,k=h.horizontalPoints,E=h.verticalPoints;if((!k||!k.length)&&qu()(P)){var C=w&&w.length,M=P({yAxis:S?aE(aE({},S),{},{ticks:C?w:S.ticks}):void 0,width:d,height:f,offset:p},!!C||b);Hv(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(rE(M),"]")),Array.isArray(M)&&(k=M)}if((!E||!E.length)&&qu()(j)){var D=x&&x.length,_=j({xAxis:O?aE(aE({},O),{},{ticks:D?x:O.ticks}):void 0,width:d,height:f,offset:p},!!D||b);Hv(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(rE(_),"]")),Array.isArray(_)&&(E=_)}return s().createElement("g",{className:"recharts-cartesian-grid"},s().createElement(cE,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),s().createElement(dE,sE({},h,{offset:p,horizontalPoints:k,xAxis:O,yAxis:S})),s().createElement(fE,sE({},h,{offset:p,verticalPoints:E,xAxis:O,yAxis:S})),s().createElement(pE,sE({},h,{horizontalPoints:k})),s().createElement(hE,sE({},h,{verticalPoints:E})))}function bE(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function wE(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){const e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(e):e.startsWith("rgb")?function(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o||1}}(e):e.startsWith("hsl")?function(e){const t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};const n=parseInt(t[1],10),r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,i=(1-Math.abs(2*o-1))*r,s=n/60,l=i*(1-Math.abs(s%2-1)),c=o-i/2;let u,d,f;return s>=0&&s<1?(u=i,d=l,f=0):s>=1&&s<2?(u=l,d=i,f=0):s>=2&&s<3?(u=0,d=i,f=l):s>=3&&s<4?(u=0,d=l,f=i):s>=4&&s<5?(u=l,d=0,f=i):(u=i,d=0,f=l),{r:Math.round(255*(u+c)),g:Math.round(255*(d+c)),b:Math.round(255*(f+c)),a:a||1}}(e):{r:0,g:0,b:0,a:1}}function xE(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function OE(e,t=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch("))return(function(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;const{r:t,g:n,b:r}=wE(e),o=n/255,a=r/255;return.2126*xE(t/255)+.7152*xE(o)+.0722*xE(a)}(e)>t}function SE({color:e,theme:t,colorScheme:n}){if("string"!=typeof e)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got "+typeof e);if("bright"===e)return{color:e,value:"dark"===n?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:OE("dark"===n?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===n?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:OE("dark"===n?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:OE("white"===e?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),a=o?Number(o):void 0,i=r in t.colors;if(i){const e=void 0!==a?t.colors[r][a]:t.colors[r][bE(t,n||"light")];return{color:r,value:e,shade:a,isThemeColor:i,isLight:OE(e,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:i,isLight:OE(e,t.luminanceThreshold),shade:a,variable:void 0}}function jE(e,t){const n=SE({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function PE(e){return e}function kE(e){const t=(0,a.forwardRef)(e);return t.extend=PE,t.withProps=e=>{const n=(0,a.forwardRef)(((n,r)=>(0,Xr.jsx)(t,{...e,...n,ref:r})));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function EE(e){return Object.keys(e).reduce(((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t)),{})}function CE(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function ME(e,{shouldScale:t=!1}={}){return function n(r){if(0===r||"0"===r)return`0${e}`;if("number"==typeof r){const n=`${r/16}${e}`;return t?CE(n):n}if("string"==typeof r){if(""===r)return r;if(r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map((e=>n(e))).join(",");if(r.includes(" "))return r.split(" ").map((e=>n(e))).join(" ");if(r.includes(e))return t?CE(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const n=`${Number(o)/16}${e}`;return t?CE(n):n}}return r}}vE.displayName="CartesianGrid";const DE=ME("rem",{shouldScale:!0}),_E=ME("em");function AE(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;const{r:n,g:r,b:o,a}=wE(e),i=1-t,s=e=>Math.round(e*i);return`rgba(${s(n)}, ${s(r)}, ${s(o)}, ${a})`}function TE(e,t){const n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=jE(n.from,t),o=jE(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function NE(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${100*(1-t)}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=wE(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const RE=NE,IE="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",$E={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const a=SE({color:e,theme:t}),i="boolean"==typeof o?o:t.autoContrast;if("filled"===n){const t=i&&a.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return a.isThemeColor?void 0===a.shade?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${DE(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${9===a.shade?8:a.shade+1})`,color:t,border:`${DE(1)} solid transparent`}:{background:e,hover:AE(e,.1),color:t,border:`${DE(1)} solid transparent`}}if("light"===n){if(a.isThemeColor){if(void 0===a.shade)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${DE(1)} solid transparent`};const n=t.colors[a.color][a.shade];return{background:NE(n,.1),hover:NE(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${DE(1)} solid transparent`}}return{background:NE(e,.1),hover:NE(e,.12),color:e,border:`${DE(1)} solid transparent`}}return"outline"===n?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${DE(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:NE(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${DE(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:NE(e,.05),color:e,border:`${DE(1)} solid ${e}`}:"subtle"===n?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:NE(t.colors[a.color][a.shade],.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:NE(e,.12),color:e,border:`${DE(1)} solid transparent`}:"transparent"===n?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${DE(1)} solid transparent`}:"white"===n?a.isThemeColor?void 0===a.shade?{background:"var(--mantine-color-white)",hover:AE(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${DE(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:AE(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${DE(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:AE(t.white,.01),color:e,border:`${DE(1)} solid transparent`}:"gradient"===n?{background:TE(r,t),hover:TE(r,t),color:"var(--mantine-color-white)",border:"none"}:"default"===n?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${DE(1)} solid var(--mantine-color-default-border)`}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:IE,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:IE,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:DE(34),lineHeight:"1.3"},h2:{fontSize:DE(26),lineHeight:"1.35"},h3:{fontSize:DE(22),lineHeight:"1.4"},h4:{fontSize:DE(18),lineHeight:"1.45"},h5:{fontSize:DE(16),lineHeight:"1.5"},h6:{fontSize:DE(14),lineHeight:"1.5"}}},fontSizes:{xs:DE(12),sm:DE(14),md:DE(16),lg:DE(18),xl:DE(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:DE(2),sm:DE(4),md:DE(8),lg:DE(16),xl:DE(32)},spacing:{xs:DE(10),sm:DE(12),md:DE(16),lg:DE(20),xl:DE(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), 0 ${DE(1)} ${DE(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(10)} ${DE(15)} ${DE(-5)}, rgba(0, 0, 0, 0.04) 0 ${DE(7)} ${DE(7)} ${DE(-5)}`,md:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(20)} ${DE(25)} ${DE(-5)}, rgba(0, 0, 0, 0.04) 0 ${DE(10)} ${DE(10)} ${DE(-5)}`,lg:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(28)} ${DE(23)} ${DE(-7)}, rgba(0, 0, 0, 0.04) 0 ${DE(12)} ${DE(12)} ${DE(-7)}`,xl:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(36)} ${DE(28)} ${DE(-7)}, rgba(0, 0, 0, 0.04) 0 ${DE(17)} ${DE(17)} ${DE(-7)}`},other:{},components:{}};function LE(e){return e&&"object"==typeof e&&!Array.isArray(e)}function FE(e,t){const n={...e},r=t;return LE(e)&&LE(t)&&Object.keys(t).forEach((t=>{LE(r[t])?n[t]=t in e?FE(n[t],r[t]):r[t]:n[t]=r[t]})),n}const zE="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function WE(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function BE(e){if(!(e.primaryColor in e.colors))throw new Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");if(!("object"!=typeof e.primaryShade||WE(e.primaryShade.dark)&&WE(e.primaryShade.light)))throw new Error(zE);if("number"==typeof e.primaryShade&&!WE(e.primaryShade))throw new Error(zE)}const HE=(0,a.createContext)(null);function YE(){const e=(0,a.useContext)(HE);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function UE({theme:e,children:t,inherit:n=!0}){const r=(0,a.useContext)(HE)||$E,o=(0,a.useMemo)((()=>function(e,t){if(!t)return BE(e),e;const n=FE(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),BE(n),n}(n?r:$E,e)),[e,r,n]);return(0,Xr.jsx)(HE.Provider,{value:o,children:t})}function VE(e,t,n){const r=YE(),o=r.components[e]?.defaultProps;return{...t,..."function"==typeof o?o(r):o,...EE(n)}}UE.displayName="@mantine/core/MantineThemeProvider";const qE={};function GE({theme:e,classNames:t,props:n,stylesCtx:r}){return function(e){const t={};return e.forEach((e=>{Object.entries(e).forEach((([e,n])=>{t[e]?t[e]=c(t[e],n):t[e]=n}))})),t}((Array.isArray(t)?t:[t]).map((t=>"function"==typeof t?t(e,n,r):t||qE)))}function XE({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce(((t,o)=>"function"==typeof o?{...t,...o(e,n,r)}:{...t,...o}),{})}function KE({classNames:e,styles:t,props:n,stylesCtx:r}){const o=YE();return{resolvedClassNames:GE({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:XE({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const ZE=(0,a.createContext)(null);function QE(){const e=(0,a.useContext)(ZE);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function JE(){return QE().getStyleNonce}function eC(){return QE().env||"default"}const tC={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function nC({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return GE({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function rC({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:a,classes:i,unstyled:s,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:h,transformedStyles:m}){return c(function({theme:e,options:t,unstyled:n}){return c(t?.focusable&&!n&&(e.focusClassName||tC[e.focusRing]),t?.active&&!n&&e.activeClassName)}({theme:e,options:t,unstyled:s||h}),function({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map((e=>GE({theme:t,classNames:t.components[e]?.classNames,props:r,stylesCtx:o})?.[n]))}({theme:e,themeName:n,selector:r,props:d,stylesCtx:f}),function({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}({options:t,classes:i,selector:r,unstyled:s}),nC({selector:r,stylesCtx:f,theme:e,classNames:a,props:d}),nC({selector:r,stylesCtx:f,theme:e,classNames:m,props:d}),function({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return GE({theme:o,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}({selector:r,stylesCtx:f,options:t,props:d,theme:e}),function({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}({rootSelector:u,selector:r,className:l}),function({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}({selector:r,classes:i,unstyled:s||h}),p&&!h&&function({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return!1===r?[]:e.map((e=>`${t}-${e}-${n}`))}({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function oC({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map((t=>XE({theme:e,styles:e.components[t]?.styles,props:n,stylesCtx:r})[o])).reduce(((e,t)=>({...e,...t})),{})}function aC({style:e,theme:t}){return Array.isArray(e)?[...e].reduce(((e,n)=>({...e,...aC({style:n,theme:t})})),{}):"function"==typeof e?e(t):null==e?{}:e}function iC({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:a,themeName:i,headless:s}){return function(e){return e.reduce(((e,t)=>(t&&Object.keys(t).forEach((n=>{e[n]={...e[n],...EE(t[n])}})),e)),{})}([s?{}:t?.(n,r,o),...i.map((e=>n.components?.[e]?.vars?.(n,r,o))),e?.(n,r,o)])?.[a]}function sC({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:a,rootSelector:i,styles:s,style:l,vars:c,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&oC({theme:e,themeName:t,props:o,stylesCtx:a,selector:n}),...!f&&XE({theme:e,styles:s,props:o,stylesCtx:a})[n],...!f&&XE({theme:e,styles:r?.styles,props:r?.props||o,stylesCtx:a})[n],...iC({theme:e,props:o,stylesCtx:a,vars:c,varsResolver:u,selector:n,themeName:t,headless:d}),...i===n?aC({style:l,theme:e}):null,...aC({style:r?.style,theme:e})}}function lC({name:e,classes:t,props:n,stylesCtx:r,className:o,style:a,rootSelector:i="root",unstyled:s,classNames:l,styles:c,vars:u,varsResolver:d}){const f=YE(),p=QE().classNamesPrefix,h=QE().withStaticClasses,m=QE().headless,y=(Array.isArray(e)?e:[e]).filter((e=>e)),{withStylesTransform:g,getTransformedStyles:v}=function({props:e,stylesCtx:t,themeName:n}){const r=YE(),o=(QE().stylesTransform?.styles)?.();return{getTransformedStyles:a=>o?[...a.map((n=>o(n,{props:e,theme:r,ctx:t}))),...n.map((n=>o(r.components[n]?.styles,{props:e,theme:r,ctx:t})))].filter(Boolean):[],withStylesTransform:!!o}}({props:n,stylesCtx:r,themeName:y});return(e,b)=>({className:rC({theme:f,options:b,themeName:y,selector:e,classNamesPrefix:p,classNames:l,classes:t,unstyled:s,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:h,headless:m,transformedStyles:v([b?.styles,c])}),style:sC({theme:f,themeName:y,selector:e,options:b,props:n,stylesCtx:r,rootSelector:i,styles:c,style:a,vars:u,varsResolver:d,headless:m,withStylesTransform:g})})}function cC(e){return Object.keys(e)}function uC(e){return cC(e).reduce(((t,n)=>void 0!==e[n]?`${t}${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}(n)}:${e[n]};`:t),"").trim()}function dC({selector:e,styles:t,media:n,container:r}){const o=t?uC(t):"",a=Array.isArray(n)?n.map((t=>`@media${t.query}{${e}{${uC(t.styles)}}}`)):[],i=Array.isArray(r)?r.map((t=>`@container ${t.query}{${e}{${uC(t.styles)}}}`)):[];return`${o?`${e}{${o}}`:""}${a.join("")}${i.join("")}`.trim()}function fC(e){const t=JE();return(0,Xr.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:dC(e)}})}function pC(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every((e=>t.test(e)))}return!1}function hC(e){return e.startsWith("data-")?e:`data-${e}`}function mC(e){return e?"string"==typeof e?{[hC(e)]:!0}:Array.isArray(e)?[...e].reduce(((e,t)=>({...e,...mC(t)})),{}):(t=e,Object.keys(t).reduce(((e,n)=>{const r=t[n];return void 0===r||""===r||!1===r||null===r||(e[hC(n)]=t[n]),e}),{})):null;var t}function yC(e,t){return Array.isArray(e)?[...e].reduce(((e,n)=>({...e,...yC(n,t)})),{}):"function"==typeof e?e(t):null==e?{}:e}function gC({theme:e,style:t,vars:n,styleProps:r}){return{...yC(t,e),...yC(n,e),...r}}function vC(e){const{m:t,mx:n,my:r,mt:o,mb:a,ml:i,mr:s,me:l,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:g,ps:v,bd:b,bg:w,c:x,opacity:O,ff:S,fz:j,fw:P,lts:k,ta:E,lh:C,fs:M,tt:D,td:_,w:A,miw:T,maw:N,h:R,mih:I,mah:$,bgsz:L,bgp:F,bgr:z,bga:W,pos:B,top:H,left:Y,bottom:U,right:V,inset:q,display:G,flex:X,hiddenFrom:K,visibleFrom:Z,lightHidden:Q,darkHidden:J,sx:ee,...te}=e;return{styleProps:EE({m:t,mx:n,my:r,mt:o,mb:a,ml:i,mr:s,me:l,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:g,ps:v,bd:b,bg:w,c:x,opacity:O,ff:S,fz:j,fw:P,lts:k,ta:E,lh:C,fs:M,tt:D,td:_,w:A,miw:T,maw:N,h:R,mih:I,mah:$,bgsz:L,bgp:F,bgr:z,bga:W,pos:B,top:H,left:Y,bottom:U,right:V,inset:q,display:G,flex:X,hiddenFrom:K,visibleFrom:Z,lightHidden:Q,darkHidden:J,sx:ee}),rest:te}}const bC={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function wC(e,t){const n=SE({color:e,theme:t});return"dimmed"===n.color?"var(--mantine-color-dimmed)":"bright"===n.color?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}const xC={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},OC=["h1","h2","h3","h4","h5","h6"],SC=["h1","h2","h3","h4","h5","h6"],jC={color:wC,textColor:function(e,t){const n=SE({color:e,theme:t});return n.isThemeColor&&void 0===n.shade?`var(--mantine-color-${n.color}-text)`:wC(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&OC.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?DE(e):e},spacing:function(e,t){if("number"==typeof e)return DE(e);if("string"==typeof e){const n=e.replace("-","");if(!(n in t.spacing))return DE(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?DE(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&SC.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in xC?xC[e]:e},border:function(e,t){if("number"==typeof e)return DE(e);if("string"==typeof e){const[n,r,...o]=e.split(" ").filter((e=>""!==e.trim()));let a=`${DE(n)}`;return r&&(a+=` ${r}`),o.length>0&&(a+=` ${wC(o.join(" "),t)}`),a.trim()}return e}};function PC(e){return e.replace("(min-width: ","").replace("em)","")}function kC(e,t){return"object"==typeof e&&null!==e&&t in e?e[t]:e}function EC(){return`__m__-${(0,a.useId)().replace(/:/g,"")}`}const CC=(0,a.forwardRef)((({component:e,style:t,__vars:n,className:r,variant:o,mod:a,size:i,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:d,renderRoot:f,__size:p,...h},m)=>{const y=YE(),g=e||"div",{styleProps:v,rest:b}=vC(h),w=QE().stylesTransform?.sx,x=w?.()?.(v.sx),O=EC(),S=function({styleProps:e,data:t,theme:n}){return function({media:e,...t}){const n=Object.keys(e).sort(((e,t)=>Number(PC(e))-Number(PC(t)))).map((t=>({query:t,styles:e[t]})));return{...t,media:n}}(cC(e).reduce(((r,o)=>{if("hiddenFrom"===o||"visibleFrom"===o||"sx"===o)return r;const a=t[o],i=Array.isArray(a.property)?a.property:[a.property],s=function(e){return"object"==typeof e&&null!==e?"base"in e?e.base:void 0:e}(e[o]);if(!function(e){if("object"!=typeof e||null===e)return!1;const t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(e[o]))return i.forEach((e=>{r.inlineStyles[e]=jC[a.type](s,n)})),r;r.hasResponsiveStyles=!0;const l=function(e){return"object"==typeof e&&null!==e?cC(e).filter((e=>"base"!==e)):[]}(e[o]);return i.forEach((t=>{s&&(r.styles[t]=jC[a.type](s,n)),l.forEach((i=>{const s=`(min-width: ${n.breakpoints[i]})`;r.media[s]={...r.media[s],[t]:jC[a.type](kC(e[o],i),n)}}))})),r}),{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:v,theme:y,data:bC}),j={ref:m,style:gC({theme:y,style:t,vars:n,styleProps:S.inlineStyles}),className:c(r,x,{[O]:S.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":o,"data-size":pC(i)?void 0:i||void 0,size:p,...mC(a),...b};return(0,Xr.jsxs)(Xr.Fragment,{children:[S.hasResponsiveStyles&&(0,Xr.jsx)(fC,{selector:`.${O}`,styles:S.styles,media:S.media}),"function"==typeof f?f(j):(0,Xr.jsx)(g,{...j})]})}));CC.displayName="@mantine/core/Box";const MC=CC;function DC(e,t="size",n=!0){if(void 0!==e)return pC(e)?n?DE(e):e:`var(--${t}-${e})`}function _C(e){return DC(e,"mantine-spacing")}function AC(e){return void 0===e?"var(--mantine-radius-default)":DC(e,"mantine-radius")}function TC(e){return DC(e,"mantine-font-size")}function NC(e){return DC(e,"mantine-line-height",!1)}function RC(e){if(e)return DC(e,"mantine-shadow",!1)}function IC(e){const t=(0,a.forwardRef)(e);return t.withProps=e=>{const n=(0,a.forwardRef)(((n,r)=>(0,Xr.jsx)(t,{...e,...n,ref:r})));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=PE,t}var $C={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const LC={withShadow:!0},FC=(e,{radius:t,size:n})=>({root:{"--cs-radius":void 0===t?void 0:AC(t),"--cs-size":DE(n)}}),zC=IC(((e,t)=>{const n=VE("ColorSwatch",LC,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,color:c,size:u,radius:d,withShadow:f,children:p,variant:h,...m}=VE("ColorSwatch",LC,n),y=lC({name:"ColorSwatch",props:n,classes:$C,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:FC});return(0,Xr.jsxs)(MC,{ref:t,variant:h,size:u,...y("root",{focusable:!0}),...m,children:[(0,Xr.jsx)("span",{...y("alphaOverlay")}),f&&(0,Xr.jsx)("span",{...y("shadowOverlay")}),(0,Xr.jsx)("span",{...y("colorOverlay",{style:{backgroundColor:c}})}),(0,Xr.jsx)("span",{...y("childrenOverlay"),children:p})]})}));function WC(e){return e?e.reduce(((e,t)=>{const n=t.name.search(/\./);return n>=0?(e[t.name.substring(n+1)]=t.label,e):(e[t.name]=t.label,e)}),{}):{}}zC.classes=$C,zC.displayName="@mantine/core/ColorSwatch";var BC={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};const HC={},YC=kE(((e,t)=>{const n=VE("ChartLegend",HC,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,payload:c,onHighlight:u,legendPosition:d,mod:f,series:p,showColor:h,centered:m,...y}=n,g=lC({name:"ChartLegend",classes:BC,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s});if(!c)return null;const v=function(e){return function(e){return e.map((e=>{const t=e.dataKey?.split(".").pop();return{...e,dataKey:t,payload:{...e.payload,name:t,dataKey:t}}}))}(e.filter((e=>"none"!==e.color)))}(c),b=WC(p),w=v.map(((e,t)=>(0,Xr.jsxs)("div",{...g("legendItem"),onMouseEnter:()=>u(e.dataKey),onMouseLeave:()=>u(null),"data-without-color":!1===h||void 0,children:[(0,Xr.jsx)(zC,{color:e.color,size:12,...g("legendItemColor"),withShadow:!1}),(0,Xr.jsx)("p",{...g("legendItemName"),children:b[e.dataKey]||e.dataKey})]},t)));return(0,Xr.jsx)(MC,{ref:t,mod:[{position:d,centered:m},f],...g("legend"),...y,children:w})}));YC.displayName="@mantine/charts/ChartLegend";var UC={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function VC(e,t){return"radial"===t||"scatter"===t?Array.isArray(e.value)?e.value[1]-e.value[0]:e.value:Array.isArray(e.payload[e.dataKey])?e.payload[e.dataKey][1]-e.payload[e.dataKey][0]:e.payload[e.name]}const qC={type:"area",showColor:!0},GC=kE(((e,t)=>{const n=VE("ChartTooltip",qC,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,payload:c,label:u,unit:d,type:f,segmentId:p,mod:h,series:m,valueFormatter:y,showColor:g,...v}=n,b=YE(),w=lC({name:"ChartTooltip",classes:UC,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s});if(!c)return null;const x=function(e,t){const n=function(e){return e.map((e=>{if(!e.payload||e.payload[e.name])return e;const t=e.name.search(/\./);if(t>=0){const n=e.name.substring(0,t),r={...e.payload[n]},o=Object.entries(e.payload).reduce(((e,t)=>{const[r,o]=t;return r===n?e:{...e,[r]:o}}),{});return{...e,name:e.name.substring(t+1),payload:{...o,...r}}}return e}))}(e.filter((e=>"none"!==e.fill||!e.color)));return t?n.filter((e=>e.name===t)):n}(c,p),O="scatter"===f?c[0]?.payload?.name:null,S=WC(m),j=u||O,P=x.map((e=>(0,Xr.jsxs)("div",{"data-type":f,...w("tooltipItem"),children:[(0,Xr.jsxs)("div",{...w("tooltipItemBody"),children:[g&&(0,Xr.jsx)("svg",{...w("tooltipItemColor"),children:(0,Xr.jsx)("circle",{r:6,fill:jE(e.color,b),width:12,height:12,cx:6,cy:6})}),(0,Xr.jsx)("div",{...w("tooltipItemName"),children:S[e.name]||e.name})]}),(0,Xr.jsxs)("div",{...w("tooltipItemData"),children:["function"==typeof y?y(VC(e,f)):VC(e,f),d||e.unit]})]},e?.key??e.name)));return(0,Xr.jsxs)(MC,{...w("tooltip"),mod:[{type:f},h],ref:t,...v,children:[j&&(0,Xr.jsx)("div",{...w("tooltipLabel"),children:j}),(0,Xr.jsx)("div",{...w("tooltipBody"),children:P})]})}));GC.displayName="@mantine/charts/ChartTooltip";var XC={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"};function KC(e){return`${(100*e).toFixed(0)}%`}const ZC={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"},QC=(e,{textColor:t,gridColor:n,cursorFill:r,barLabelColor:o})=>({root:{"--chart-text-color":t?jE(t,e):void 0,"--chart-grid-color":n?jE(n,e):void 0,"--chart-cursor-fill":r?jE(r,e):void 0,"--chart-bar-label-color":o?jE(o,e):void 0}}),JC=kE(((e,t)=>{const n=VE("BarChart",ZC,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,data:u,withLegend:d,legendProps:f,series:p,onMouseLeave:h,dataKey:m,withTooltip:y,withXAxis:g,withYAxis:v,gridAxis:b,tickLine:w,xAxisProps:x,yAxisProps:O,unit:S,tooltipAnimationDuration:j,strokeDasharray:P,gridProps:k,tooltipProps:E,referenceLines:C,fillOpacity:M,barChartProps:D,type:_,orientation:A,dir:T,valueFormatter:N,children:R,barProps:I,xAxisLabel:$,yAxisLabel:L,withBarValueLabel:F,valueLabelProps:z,withRightYAxis:W,rightYAxisLabel:B,rightYAxisProps:H,minBarSize:Y,maxBarWidth:U,mod:V,getBarColor:q,gridColor:G,textColor:X,...K}=n,Z=YE(),Q="none"!==b&&("x"===w||"xy"===w),J="none"!==b&&("y"===w||"xy"===w),[ee,te]=(0,a.useState)(null),ne=null!==ee,re="stacked"===_||"percent"===_,oe="percent"===_?KC:N,{resolvedClassNames:ae,resolvedStyles:ie}=KE({classNames:r,styles:s,props:n}),se="waterfall"===_?function(e,t){let n=0,r=0;return e.map((e=>{if(e.standalone)for(const n in e)"number"==typeof e[n]&&n!==t&&(e[n]=[0,e[n]]);else for(const o in e)"number"==typeof e[o]&&o!==t&&(r+=e[o],e[o]=[n,r],n=r);return e}))}(u,m):u,le=lC({name:"BarChart",classes:XC,props:n,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:QC}),ce=p.map((e=>{const t=jE(e.color,Z),n=ne&&ee!==e.name;return(0,a.createElement)(sO,{...le("bar"),key:e.name,name:e.name,dataKey:e.name,fill:t,stroke:t,isAnimationActive:!1,fillOpacity:n?.1:M,strokeOpacity:n?.2:0,stackId:re?"stack":e.stackId||void 0,yAxisId:e.yAxisId||"left",minPointSize:Y,..."function"==typeof I?I(e):I},se.map(((n,r)=>{const o=n.color?jE(n.color,Z):"function"==typeof q?jE(q(n[e.name],e),Z):function(e,t){return"function"==typeof e?e(t).fill:e?.fill}(I,e)||t;return(0,Xr.jsx)(Zd,{fill:o},`cell-${r}`)})),F&&(0,Xr.jsx)(Vw,{position:"vertical"===A?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:oe,..."function"==typeof z?z(e):z}))})),ue=C?.map(((e,t)=>{const n=jE(e.color,Z);return(0,Xr.jsx)(JO,{stroke:e.color?n:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?n:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...le("referenceLine")},t)})),de={axisLine:!1,..."vertical"===A?{dataKey:m,type:"category"}:{type:"number"},tickLine:!!J&&{stroke:"currentColor"},allowDecimals:!0,unit:S,tickFormatter:"vertical"===A?void 0:oe,...le("axis")};return(0,Xr.jsx)(MC,{ref:t,...le("root"),onMouseLeave:e=>{te(null),h?.(e)},dir:T||"ltr",mod:[{orientation:A},V],...K,children:(0,Xr.jsx)(sS,{...le("container"),children:(0,Xr.jsxs)(eE,{data:se,stackOffset:"percent"===_?"expand":void 0,layout:A,maxBarSize:U,margin:{bottom:$?30:void 0,left:L?10:void 0,right:L?5:void 0},...D,children:[d&&(0,Xr.jsx)(nw,{verticalAlign:"top",content:e=>(0,Xr.jsx)(YC,{payload:e.payload,onHighlight:te,legendPosition:f?.verticalAlign||"top",classNames:ae,styles:ie,series:p,showColor:"waterfall"!==_}),...f}),(0,Xr.jsxs)(Hk,{hide:!g,..."vertical"===A?{type:"number"}:{dataKey:m},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Q&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===A?oe:void 0,...le("axis"),...x,children:[$&&(0,Xr.jsx)(Jf,{position:"insideBottom",offset:-20,fontSize:12,...le("axisLabel"),children:$}),x?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!v,...de,...O,children:[L&&(0,Xr.jsx)(Jf,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...le("axisLabel"),children:L}),O?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!W,...de,...H,children:[B&&(0,Xr.jsx)(Jf,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...le("axisLabel"),children:B}),O?.children]}),(0,Xr.jsx)(vE,{strokeDasharray:P,vertical:"y"===b||"xy"===b,horizontal:"x"===b||"xy"===b,...le("grid"),...k}),y&&(0,Xr.jsx)(YS,{animationDuration:j,isAnimationActive:0!==j,position:"vertical"===A?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:P,fill:"var(--chart-cursor-fill)"},content:({label:e,payload:t})=>(0,Xr.jsx)(GC,{label:e,payload:t,type:"waterfall"===_?"scatter":void 0,unit:S,classNames:ae,styles:ie,series:p,valueFormatter:N}),...E}),ce,ue,R]})})})}));JC.displayName="@mantine/charts/BarChart",JC.classes=XC;var eM=["type","layout","connectNulls","ref"],tM=["key"];function nM(e){return nM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nM(e)}function rM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oM(){return oM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oM.apply(this,arguments)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){pM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sM(e){return function(e){if(Array.isArray(e))return lM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lM(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hM(r.key),r)}}function uM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uM=function(){return!!e})()}function dM(e){return dM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dM(e)}function fM(e,t){return fM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fM(e,t)}function pM(e,t,n){return(t=hM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hM(e){var t=function(e){if("object"!=nM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nM(t)?t:t+""}var mM=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return pM((n=this,r=t,o=[].concat(i),r=dM(r),e=function(e,t){if(t&&("object"===nM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,uM()?Reflect.construct(r,o||[],dM(n).constructor):r.apply(n,o))),"state",{isAnimationFinished:!0,totalLength:0}),pM(e,"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),pM(e,"getStrokeDasharray",(function(n,r,o){var a=o.reduce((function(e,t){return e+t}));if(!a)return e.generateSimpleStrokeDasharray(r,n);for(var i=Math.floor(n/a),s=n%a,l=r-n,c=[],u=0,d=0;u<o.length;d+=o[u],++u)if(d+o[u]>s){c=[].concat(sM(o.slice(0,u)),[s-d]);break}var f=c.length%2==0?[0,l]:[l];return[].concat(sM(t.repeat(o,i)),sM(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),pM(e,"id",id("recharts-line-")),pM(e,"pathRef",(function(t){e.mainCurve=t})),pM(e,"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),pM(e,"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fM(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,o=n.xAxis,a=n.yAxis,i=n.layout,l=Cd(n.children,Kd);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:hw(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s().createElement(Ld,u,l.map((function(e){return s().cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,dataPointFormatter:c})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.dot,i=o.points,l=o.dataKey,c=Ad(this.props,!1),u=Ad(a,!0),d=i.map((function(e,n){var r=iM(iM(iM({key:"dot-".concat(n),r:3},c),u),{},{index:n,cx:e.x,cy:e.y,value:e.value,dataKey:l,payload:e.payload,points:i});return t.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return s().createElement(Ld,oM({className:"recharts-line-dots",key:"dots"},f),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,i=o.layout,l=o.connectNulls,c=(o.ref,rM(o,eM)),u=iM(iM(iM({},Ad(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:i,connectNulls:l});return s().createElement(xP,oM({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,i=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,m=this.state,y=m.prevPoints,g=m.totalLength;return s().createElement($u,{begin:l,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t;if(y){var s=y.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=cd(r.x,e.x),a=cd(r.y,e.y);return iM(iM({},e),{},{x:o(i),y:a(i)})}if(f){var l=cd(2*p,e.x),c=cd(h/2,e.y);return iM(iM({},e),{},{x:l(i),y:c(i)})}return iM(iM({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(l,e,t)}var c,u=cd(0,g)(i);if(a){var d="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(u,g,d)}else c=n.generateSimpleStrokeDasharray(g,u);return n.renderCurveStatically(o,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,a=this.state,i=a.prevPoints,s=a.totalLength;return o&&r&&r.length&&(!i&&s>0||!Fu()(i,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,o=t.points,a=t.className,i=t.xAxis,l=t.yAxis,u=t.top,d=t.left,f=t.width,p=t.height,h=t.isAnimationActive,m=t.id;if(n||!o||!o.length)return null;var y=this.state.isAnimationFinished,g=1===o.length,v=c("recharts-line",a),b=i&&i.allowDataOverflow,w=l&&l.allowDataOverflow,x=b||w,O=Wu()(m)?this.id:m,S=null!==(e=Ad(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},j=S.r,P=void 0===j?3:j,k=S.strokeWidth,E=void 0===k?2:k,C=(function(e){return e&&"object"===Od(e)&&"clipDot"in e}(r)?r:{}).clipDot,M=void 0===C||C,D=2*P+E;return s().createElement(Ld,{className:v},b||w?s().createElement("defs",null,s().createElement("clipPath",{id:"clipPath-".concat(O)},s().createElement("rect",{x:b?d:d-f/2,y:w?u:u-p/2,width:b?f:2*f,height:w?p:2*p})),!M&&s().createElement("clipPath",{id:"clipPath-dots-".concat(O)},s().createElement("rect",{x:d-D/2,y:u-D/2,width:f+D,height:p+D}))):null,!g&&this.renderCurve(x,O),this.renderErrorBar(x,O),(g||r)&&this.renderDots(x,M,O),(!h||y)&&Vw.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(sM(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(sM(r),sM(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(s().isValidElement(e))n=s().cloneElement(e,t);else if(qu()(e))n=e(t);else{var r=t.key,o=rM(t,tM),a=c("recharts-line-dot","boolean"!=typeof e?e.className:"");n=s().createElement(VS,oM({key:r},o,{className:a}))}return n}}],r&&cM(n.prototype,r),o&&cM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);pM(mM,"displayName","Line"),pM(mM,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ef.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),pM(mM,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,i=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map((function(e,t){var l=hw(e,i);return"horizontal"===u?{x:Ew({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Wu()(l)?null:r.scale(l),value:l,payload:e}:{x:Wu()(l)?null:n.scale(l),y:Ew({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:l,payload:e}}));return iM({points:d,layout:u},c)}));var yM=dk({chartName:"LineChart",GraphicalChild:mM,axisComponents:[{axisType:"xAxis",AxisComp:Hk},{axisType:"yAxis",AxisComp:Jk}],formatAxisMap:xO});const gM="undefined"!=typeof document?a.useLayoutEffect:a.useEffect,vM=a["useId".toString()]||(()=>{});function bM(e){const t=function(){const e=vM();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[n,r]=(0,a.useState)(t);return gM((()=>{r(function(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}())}),[]),"string"==typeof e?e:"undefined"==typeof window?t:n}function wM({x:e,y:t,value:n,valueFormatter:r}){return(0,Xr.jsx)("g",{transform:`translate(${e},${t})`,children:(0,Xr.jsx)("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"top",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:r?r(n):n})})}const xM={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},OM=(e,{textColor:t,gridColor:n})=>({root:{"--chart-text-color":t?jE(t,e):void 0,"--chart-grid-color":n?jE(n,e):void 0}}),SM=kE(((e,t)=>{const n=VE("LineChart",xM,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,data:u,withLegend:d,legendProps:f,series:p,onMouseLeave:h,dataKey:m,withTooltip:y,withXAxis:g,withYAxis:v,gridAxis:b,tickLine:w,xAxisProps:x,yAxisProps:O,unit:S,tooltipAnimationDuration:j,strokeDasharray:P,gridProps:k,tooltipProps:E,referenceLines:C,withDots:M,dotProps:D,activeDotProps:_,strokeWidth:A,lineChartProps:T,connectNulls:N,fillOpacity:R,curveType:I,orientation:$,dir:L,valueFormatter:F,children:z,lineProps:W,xAxisLabel:B,yAxisLabel:H,type:Y,gradientStops:U,withRightYAxis:V,rightYAxisLabel:q,rightYAxisProps:G,withPointLabels:X,...K}=n,Z=YE(),Q="none"!==b&&("x"===w||"xy"===w),J="none"!==b&&("y"===w||"xy"===w),[ee,te]=(0,a.useState)(null),ne=null!==ee,{resolvedClassNames:re,resolvedStyles:oe}=KE({classNames:r,styles:s,props:n}),ae=lC({name:"LineChart",classes:XC,props:n,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:OM}),ie=`line-chart-gradient-${bM()}`,se=U?.map((e=>(0,Xr.jsx)("stop",{offset:`${e.offset}%`,stopColor:jE(e.color,Z)},e.color))),le=p.map((e=>{const t=jE(e.color,Z),n=ne&&ee!==e.name;return(0,a.createElement)(mM,{...ae("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!M&&{fillOpacity:n?0:1,strokeOpacity:n?0:1,strokeWidth:1,fill:"gradient"===Y?"var(--mantine-color-gray-7)":t,stroke:"gradient"===Y?"white":t,...D},activeDot:!!M&&{fill:"gradient"===Y?"var(--mantine-color-gray-7)":t,stroke:"gradient"===Y?"white":t,..._},fill:t,stroke:"gradient"===Y?`url(#${ie})`:t,strokeWidth:A,isAnimationActive:!1,fillOpacity:n?0:R,strokeOpacity:n?.5:R,connectNulls:N,type:I,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:X?(0,Xr.jsx)(wM,{valueFormatter:F}):void 0,..."function"==typeof W?W(e):W})})),ce=C?.map(((e,t)=>{const n=jE(e.color,Z);return(0,Xr.jsx)(JO,{stroke:e.color?n:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?n:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...ae("referenceLine")},t)})),ue={axisLine:!1,..."vertical"===$?{dataKey:m,type:"category"}:{type:"number"},tickLine:!!J&&{stroke:"currentColor"},allowDecimals:!0,unit:S,tickFormatter:"vertical"===$?void 0:F,...ae("axis")};return(0,Xr.jsx)(MC,{ref:t,...ae("root"),onMouseLeave:e=>{te(null),h?.(e)},dir:L||"ltr",...K,children:(0,Xr.jsx)(sS,{...ae("container"),children:(0,Xr.jsxs)(yM,{data:u,layout:$,margin:{bottom:B?30:void 0,left:H?10:void 0,right:H?5:void 0},...T,children:["gradient"===Y&&(0,Xr.jsx)("defs",{children:(0,Xr.jsx)("linearGradient",{id:ie,x1:"0",y1:"0",x2:"0",y2:"1",children:se})}),d&&(0,Xr.jsx)(nw,{verticalAlign:"top",content:e=>(0,Xr.jsx)(YC,{payload:e.payload,onHighlight:te,legendPosition:f?.verticalAlign||"top",classNames:re,styles:oe,series:p,showColor:"gradient"!==Y}),...f}),(0,Xr.jsxs)(Hk,{hide:!g,..."vertical"===$?{type:"number"}:{dataKey:m},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Q&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===$?F:void 0,...ae("axis"),...x,children:[B&&(0,Xr.jsx)(Jf,{position:"insideBottom",offset:-20,fontSize:12,...ae("axisLabel"),children:B}),x?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!v,...ue,...O,children:[H&&(0,Xr.jsx)(Jf,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...ae("axisLabel"),children:H}),O?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!V,...ue,...G,children:[q&&(0,Xr.jsx)(Jf,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...ae("axisLabel"),children:q}),O?.children]}),(0,Xr.jsx)(vE,{strokeDasharray:P,vertical:"y"===b||"xy"===b,horizontal:"x"===b||"xy"===b,...ae("grid"),...k}),y&&(0,Xr.jsx)(YS,{animationDuration:j,isAnimationActive:0!==j,position:"vertical"===$?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:P},content:({label:e,payload:t})=>(0,Xr.jsx)(GC,{label:e,payload:t,unit:S,classNames:re,styles:oe,series:p,valueFormatter:F,showColor:"gradient"!==Y}),...E}),le,ce,z]})})})}));function jM({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,i]=(0,a.useState)(void 0!==t?t:n);return void 0!==e?[e,r,!0]:[o,(e,...t)=>{i(e),r?.(e,...t)},!1]}function PM(e){return"string"==typeof e?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:"number"==typeof e?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map((e=>PM(e)))}:e}function kM(e){return e?e.map((e=>PM(e))):[]}function EM(e){return e.reduce(((e,t)=>"group"in t?{...e,...EM(t.items)}:(e[t.value]=t,e)),{})}SM.displayName="@mantine/charts/LineChart",SM.classes=XC;const CM=["mousedown","touchstart"],MM={app:100,modal:200,popover:300,overlay:400,max:9999};function DM(e){return MM[e]}const _M=(0,a.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function AM(){return(0,a.useContext)(_M)}function TM(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,n]=t.split("-"),r="right"===e?"left":"right";return void 0===n?r:`${r}-${n}`}return t}var NM={root:"m_9814e45f"};const RM={zIndex:DM("modal")},IM=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:a,zIndex:i})=>({root:{"--overlay-bg":t||(void 0!==n||void 0!==r)&&NE(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${DE(o)})`:void 0,"--overlay-radius":void 0===a?void 0:AC(a),"--overlay-z-index":i?.toString()}}),$M=IC(((e,t)=>{const n=VE("Overlay",RM,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,fixed:c,center:u,children:d,radius:f,zIndex:p,gradient:h,blur:m,color:y,backgroundOpacity:g,mod:v,...b}=n,w=lC({name:"Overlay",props:n,classes:NM,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:IM});return(0,Xr.jsx)(MC,{ref:t,...w("root"),mod:[{center:u,fixed:c},v],...b,children:d})}));function LM(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function FM(...e){return(0,a.useCallback)(function(...e){const t=new Map;return n=>{if(e.forEach((e=>{const r=LM(e,n);r&&t.set(e,r)})),t.size>0)return()=>{e.forEach((e=>{const n=t.get(e);n?n():LM(e,null)})),t.clear()}}}(...e),e)}function zM(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}$M.classes=NM,$M.displayName="@mantine/core/Overlay";const WM={},BM=kE(((e,t)=>{const{children:n,target:r,reuseTargetNode:o,...i}=VE("Portal",WM,e),[s,l]=(0,a.useState)(!1),c=(0,a.useRef)(null);return gM((()=>(l(!0),c.current=function({target:e,reuseTargetNode:t,...n}){if(e)return"string"==typeof e?document.querySelector(e)||zM(n):e;if(t){const e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;const t=zM(n);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return zM(n)}({target:r,reuseTargetNode:o,...i}),LM(t,c.current),r||o||!c.current||document.body.appendChild(c.current),()=>{r||o||!c.current||document.body.removeChild(c.current)})),[r]),s&&c.current?(0,as.createPortal)((0,Xr.jsx)(Xr.Fragment,{children:n}),c.current):null}));BM.displayName="@mantine/core/Portal";const HM=kE((({withinPortal:e=!0,children:t,...n},r)=>"test"!==eC()&&e?(0,Xr.jsx)(BM,{ref:r,...n,children:t}):(0,Xr.jsx)(Xr.Fragment,{children:t})));HM.displayName="@mantine/core/OptionalPortal";const YM=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===e?10:-10}px)`},transitionProperty:"transform, opacity"}),UM={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...YM("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...YM("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...YM("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...YM("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...YM("top"),common:{transformOrigin:"top right"}}},VM={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function qM({transition:e,state:t,duration:n,timingFunction:r}){const o={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"==typeof e?e in UM?{transitionProperty:UM[e].transitionProperty,...o,...UM[e].common,...UM[e][VM[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[VM[t]]}}function GM(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>()=>{n.current=!1}),[]),(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}function XM({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:u}){const d=YE(),f=function(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=(0,a.useState)(n?t:function(e){return"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e)),i=(0,a.useRef)(null);return(0,a.useEffect)((()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(i.current,(e=>o(e.matches)))}),[e]),r}("(prefers-reduced-motion: reduce)",undefined,undefined);const p=!!d.respectReducedMotion&&f,[h,m]=(0,a.useState)(p?0:e),[y,g]=(0,a.useState)(r?"entered":"exited"),v=(0,a.useRef)(-1),b=(0,a.useRef)(-1),w=(0,a.useRef)(-1),x=n=>{const r=n?o:i,a=n?s:l;window.clearTimeout(v.current);const c=p?0:n?e:t;m(c),0===c?("function"==typeof r&&r(),"function"==typeof a&&a(),g(n?"entered":"exited")):w.current=requestAnimationFrame((()=>{as.flushSync((()=>{g(n?"pre-entering":"pre-exiting")})),w.current=requestAnimationFrame((()=>{"function"==typeof r&&r(),g(n?"entering":"exiting"),v.current=window.setTimeout((()=>{"function"==typeof a&&a(),g(n?"entered":"exited")}),c)}))}))};return GM((()=>{var e;e=r,window.clearTimeout(b.current),"number"==typeof(e?c:u)?b.current=window.setTimeout((()=>{x(e)}),e?c:u):x(e)}),[r]),(0,a.useEffect)((()=>()=>{window.clearTimeout(v.current),cancelAnimationFrame(w.current)}),[]),{transitionDuration:h,transitionStatus:y,transitionTimingFunction:n||"ease"}}function KM({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:a,timingFunction:i="ease",onExit:s,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f}){const p=eC(),{transitionDuration:h,transitionStatus:m,transitionTimingFunction:y}=XM({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:s,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f});return 0===h||"test"===p?o?(0,Xr.jsx)(Xr.Fragment,{children:a({})}):e?a({display:"none"}):null:"exited"===m?e?a({display:"none"}):null:(0,Xr.jsx)(Xr.Fragment,{children:a(qM({transition:t,duration:h,state:m,timingFunction:y}))})}function ZM(e){const t=(0,a.createContext)(null);return[({children:e,value:n})=>(0,Xr.jsx)(t.Provider,{value:n,children:e}),()=>{const n=(0,a.useContext)(t);if(null===n)throw new Error(e);return n}]}KM.displayName="@mantine/core/Transition";const[QM,JM]=ZM("Popover component was not found in the tree"),eD=()=>{};function tD(e,t={active:!0}){return"function"==typeof e&&t.active?n=>{"Escape"===n.key&&(e(n),t.onTrigger?.())}:t.onKeyDown||eD}function nD(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function rD(e,t,n,r,o){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===o?"right":"left"]:n}:"start"===e?{["ltr"===o?"left":"right"]:n}:{}}const oD={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function aD({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:a,arrowY:i,dir:s}){const[l,c="center"]=e.split("-"),u={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[oD[l]]:r},d=-t/2;return"left"===l?{...u,...nD(c,i,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...u,...nD(c,i,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...u,...rD(c,a,n,o,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...u,...rD(c,a,n,o,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const iD=(0,a.forwardRef)((({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:a,arrowX:i,arrowY:s,style:l,...c},u)=>{const{dir:d}=AM();return a?(0,Xr.jsx)("div",{...c,ref:u,style:{...l,...aD({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:d,arrowX:i,arrowY:s})}}):null}));iD.displayName="@mantine/core/FloatingArrow";const sD=/input|select|textarea|button|object/,lD="a, input, select, textarea, button, object, [tabindex]";function cD(e){return"none"===e.style.display}function uD(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function dD(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(uD(e));return(sD.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(cD(t))return!1;t=t.parentNode}return!0}(e)}function fD(e){const t=uD(e);return(Number.isNaN(t)||t>=0)&&dD(e)}function pD(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==a.Fragment}var hD={root:"m_515a97f8"};const mD={},yD=kE(((e,t)=>{const n=VE("VisuallyHidden",mD,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,...c}=n,u=lC({name:"VisuallyHidden",classes:hD,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s});return(0,Xr.jsx)(MC,{component:"span",ref:t,...u("root"),...c})}));function gD({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=function(e=!0){const t=(0,a.useRef)(null),n=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const n=Array.from(e.querySelectorAll(lD));t=n.find(fD)||n.find(dD)||null,!t&&dD(e)&&(t=e)}t&&t.focus({preventScroll:!0})},r=(0,a.useCallback)((r=>{e&&null!==r&&t.current!==r&&(r?(setTimeout((()=>{r.getRootNode()&&n(r)})),t.current=r):t.current=null)}),[e]);return(0,a.useEffect)((()=>{if(!e)return;t.current&&setTimeout((()=>n(t.current)));const r=e=>{"Tab"===e.key&&t.current&&function(e,t){const n=(r=e,Array.from(r.querySelectorAll(lD)).filter(fD));var r;if(!n.length)return void t.preventDefault();const o=n[t.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if("INPUT"===s.tagName&&"radio"===s.getAttribute("type")){const e=n.filter((e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===s.getAttribute("name")));i=e.includes(o)}if(!i)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[e]),r}(t),i=FM(o,r);return pD(e)?(0,a.cloneElement)(e,{[n]:i}):e}function vD(e){return(0,Xr.jsx)(yD,{tabIndex:-1,"data-autofocus":!0,...e})}yD.classes=hD,yD.displayName="@mantine/core/VisuallyHidden",gD.displayName="@mantine/core/FocusTrap",vD.displayName="@mantine/core/FocusTrapInitialFocus",gD.InitialFocus=vD;var bD={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const wD={},xD=kE(((e,t)=>{const n=VE("PopoverDropdown",wD,e),{className:r,style:o,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:u,styles:d,...f}=n,p=JM(),h=function({opened:e,shouldReturnFocus:t=!0}){const n=(0,a.useRef)(null),r=()=>{n.current&&"focus"in n.current&&"function"==typeof n.current.focus&&n.current?.focus({preventScroll:!0})};return GM((()=>{let o=-1;const a=e=>{"Tab"===e.key&&window.clearTimeout(o)};return document.addEventListener("keydown",a),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",a)}}),[e,t]),r}({opened:p.opened,shouldReturnFocus:p.returnFocus}),m=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=FM(t,p.floating);return p.disabled?null:(0,Xr.jsx)(HM,{...p.portalProps,withinPortal:p.withinPortal,children:(0,Xr.jsx)(KM,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:"number"==typeof p.transitionProps?.exitDuration?p.transitionProps.exitDuration:p.transitionProps?.duration,children:e=>(0,Xr.jsx)(gD,{active:p.trapFocus&&p.opened,innerRef:y,children:(0,Xr.jsxs)(MC,{...m,...f,variant:c,onKeyDownCapture:tD((()=>{p.onClose?.(),p.onDismiss?.()}),{active:p.closeOnEscape,onTrigger:h,onKeyDown:l}),"data-position":p.placement,"data-fixed":"fixed"===p.floatingStrategy||void 0,...p.getStyles("dropdown",{className:r,props:n,classNames:u,styles:d,style:[{...e,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:"target"===p.width?void 0:DE(p.width)},p.resolvedStyles.dropdown,d?.dropdown,o]}),children:[s,(0,Xr.jsx)(iD,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})}));function OD(e){const t=a.version;return"string"!=typeof a.version||t.startsWith("18.")?e?.ref:e?.props?.ref}xD.classes=bD,xD.displayName="@mantine/core/PopoverDropdown";const SD={refProp:"ref",popupType:"dialog"},jD=kE(((e,t)=>{const{children:n,refProp:r,popupType:o,...i}=VE("PopoverTarget",SD,e);if(!pD(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=JM(),u=FM(l.reference,OD(n),t),d=l.withRoles?{"aria-haspopup":o,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,a.cloneElement)(n,{...s,...d,...l.targetProps,className:c(l.targetProps.className,s.className,n.props.className),[r]:u,...l.controlled?null:{onClick:l.onToggle}})}));jD.displayName="@mantine/core/PopoverTarget";const PD=Math.min,kD=Math.max,ED=Math.round,CD=Math.floor,MD=e=>({x:e,y:e}),DD={left:"right",right:"left",bottom:"top",top:"bottom"},_D={start:"end",end:"start"};function AD(e,t,n){return kD(e,PD(t,n))}function TD(e,t){return"function"==typeof e?e(t):e}function ND(e){return e.split("-")[0]}function RD(e){return e.split("-")[1]}function ID(e){return"x"===e?"y":"x"}function $D(e){return"y"===e?"height":"width"}function LD(e){return["top","bottom"].includes(ND(e))?"y":"x"}function FD(e){return ID(LD(e))}function zD(e){return e.replace(/start|end/g,(e=>_D[e]))}function WD(e){return e.replace(/left|right|bottom|top/g,(e=>DD[e]))}function BD(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function HD(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function YD(e,t,n){let{reference:r,floating:o}=e;const a=LD(t),i=FD(t),s=$D(i),l=ND(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(RD(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function UD(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=TD(t,e),h=BD(p),m=s[f?"floating"===d?"reference":"floating":d],y=HD(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=HD(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}function VD(e){const t=PD(...e.map((e=>e.left))),n=PD(...e.map((e=>e.top)));return{x:t,y:n,width:kD(...e.map((e=>e.right)))-t,height:kD(...e.map((e=>e.bottom)))-n}}function qD(){return"undefined"!=typeof window}function GD(e){return ZD(e)?(e.nodeName||"").toLowerCase():"#document"}function XD(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function KD(e){var t;return null==(t=(ZD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ZD(e){return!!qD()&&(e instanceof Node||e instanceof XD(e).Node)}function QD(e){return!!qD()&&(e instanceof Element||e instanceof XD(e).Element)}function JD(e){return!!qD()&&(e instanceof HTMLElement||e instanceof XD(e).HTMLElement)}function e_(e){return!(!qD()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof XD(e).ShadowRoot)}function t_(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=s_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function n_(e){return["table","td","th"].includes(GD(e))}function r_(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function o_(e){const t=a_(),n=QD(e)?s_(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function a_(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function i_(e){return["html","body","#document"].includes(GD(e))}function s_(e){return XD(e).getComputedStyle(e)}function l_(e){return QD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function c_(e){if("html"===GD(e))return e;const t=e.assignedSlot||e.parentNode||e_(e)&&e.host||KD(e);return e_(t)?t.host:t}function u_(e){const t=c_(e);return i_(t)?e.ownerDocument?e.ownerDocument.body:e.body:JD(t)&&t_(t)?t:u_(t)}function d_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=u_(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=XD(o);if(a){const e=f_(i);return t.concat(i,i.visualViewport||[],t_(o)?o:[],e&&n?d_(e):[])}return t.concat(o,d_(o,[],n))}function f_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function p_(e){const t=s_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=JD(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ED(n)!==a||ED(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function h_(e){return QD(e)?e:e.contextElement}function m_(e){const t=h_(e);if(!JD(t))return MD(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=p_(t);let i=(a?ED(n.width):n.width)/r,s=(a?ED(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const y_=MD(0);function g_(e){const t=XD(e);return a_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:y_}function v_(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=h_(e);let i=MD(1);t&&(r?QD(r)&&(i=m_(r)):i=m_(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==XD(e))&&t}(a,n,r)?g_(a):MD(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=XD(a),t=r&&QD(r)?XD(r):r;let n=e,o=f_(n);for(;o&&r&&t!==n;){const e=m_(o),t=o.getBoundingClientRect(),r=s_(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=XD(o),o=f_(n)}}return HD({width:u,height:d,x:l,y:c})}function b_(e,t){const n=l_(e).scrollLeft;return t?t.left+n:v_(KD(e)).left+n}function w_(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:b_(e,r)),y:r.top+t.scrollTop}}function x_(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=XD(e),r=KD(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=a_();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=KD(e),n=l_(e),r=e.ownerDocument.body,o=kD(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=kD(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+b_(e);const s=-n.scrollTop;return"rtl"===s_(r).direction&&(i+=kD(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(KD(e));else if(QD(t))r=function(e,t){const n=v_(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=JD(e)?m_(e):MD(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=g_(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return HD(r)}function O_(e,t){const n=c_(e);return!(n===t||!QD(n)||i_(n))&&("fixed"===s_(n).position||O_(n,t))}function S_(e,t,n){const r=JD(t),o=KD(t),a="fixed"===n,i=v_(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=MD(0);if(r||!r&&!a)if(("body"!==GD(t)||t_(o))&&(s=l_(t)),r){const e=v_(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=b_(o));const c=!o||r||a?MD(0):w_(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function j_(e){return"static"===s_(e).position}function P_(e,t){if(!JD(e)||"fixed"===s_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return KD(e)===n&&(n=n.ownerDocument.body),n}function k_(e,t){const n=XD(e);if(r_(e))return n;if(!JD(e)){let t=c_(e);for(;t&&!i_(t);){if(QD(t)&&!j_(t))return t;t=c_(t)}return n}let r=P_(e,t);for(;r&&n_(r)&&j_(r);)r=P_(r,t);return r&&i_(r)&&j_(r)&&!o_(r)?n:r||function(e){let t=c_(e);for(;JD(t)&&!i_(t);){if(o_(t))return t;if(r_(t))return null;t=c_(t)}return null}(e)||n}const E_={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=KD(r),s=!!t&&r_(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=MD(1);const u=MD(0),d=JD(r);if((d||!d&&!a)&&(("body"!==GD(r)||t_(i))&&(l=l_(r)),JD(r))){const e=v_(r);c=m_(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?MD(0):w_(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:KD,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?r_(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=d_(e,[],!1).filter((e=>QD(e)&&"body"!==GD(e))),o=null;const a="fixed"===s_(e).position;let i=a?c_(e):e;for(;QD(i)&&!i_(i);){const t=s_(i),n=o_(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||t_(i)&&!n&&O_(e,i))?r=r.filter((e=>e!==i)):o=t,i=c_(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=x_(t,n,o);return e.top=kD(r.top,e.top),e.right=PD(r.right,e.right),e.bottom=PD(r.bottom,e.bottom),e.left=kD(r.left,e.left),e}),x_(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:k_,getElementRects:async function(e){const t=this.getOffsetParent||k_,n=this.getDimensions,r=await n(e.floating);return{reference:S_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=p_(e);return{width:t,height:n}},getScale:m_,isElement:QD,isRTL:function(e){return"rtl"===s_(e).direction}};function C_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const M_=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=ND(n),s=RD(n),l="y"===LD(n),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=TD(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},D_=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=TD(e,t),c={x:n,y:r},u=await UD(t,l),d=LD(ND(o)),f=ID(d);let p=c[f],h=c[d];if(a){const e="y"===f?"bottom":"right";p=AD(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=AD(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},A_=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=TD(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=ND(o),v=LD(s),b=ND(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[WD(s)]:function(e){const t=WD(e);return[zD(e),t,zD(t)]}(s)),O="none"!==h;!f&&O&&x.push(...function(e,t,n,r){const o=RD(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(ND(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(zD)))),a}(s,m,h,w));const S=[s,...x],j=await UD(t,y),P=[];let k=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&P.push(j[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=RD(e),o=FD(e),a=$D(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=WD(i)),[i,WD(i)]}(o,i,w);P.push(j[e[0]],j[e[1]])}if(k=[...k,{placement:o,overflows:P}],!P.every((e=>e<=0))){var E,C;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(C=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var M;const e=null==(M=k.filter((e=>{if(O){const t=LD(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},T_=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=TD(e,t),u=await UD(t,c),d=ND(o),f=RD(o),p="y"===LD(o),{width:h,height:m}=a.floating;let y,g;"top"===d||"bottom"===d?(y=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,y="end"===f?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,w=PD(m-u[y],v),x=PD(h-u[g],b),O=!t.middlewareData.shift;let S=w,j=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),O&&!f){const e=kD(u.left,0),t=kD(u.right,0),n=kD(u.top,0),r=kD(u.bottom,0);p?j=h-2*(0!==e||0!==t?e+t:kD(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:kD(u.top,u.bottom))}await l({...t,availableWidth:j,availableHeight:S});const P=await i.getDimensions(s.floating);return h!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}},N_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=TD(e,t)||{};if(null==c)return{};const d=BD(u),f={x:n,y:r},p=FD(o),h=$D(p),m=await i.getDimensions(c),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=O?O[b]:0;S&&await(null==i.isElement?void 0:i.isElement(O))||(S=s.floating[b]||a.floating[h]);const j=w/2-x/2,P=S/2-m[h]/2-1,k=PD(d[g],P),E=PD(d[v],P),C=k,M=S-m[h]-E,D=S/2-m[h]/2+j,_=AD(C,D,M),A=!l.arrow&&null!=RD(o)&&D!==_&&a.reference[h]/2-(D<C?k:E)-m[h]/2<0,T=A?D<C?D-C:D-M:0;return{[p]:f[p]+T,data:{[p]:_,centerOffset:D-_-T,...A&&{alignmentOffset:T}},reset:A}}}),R_=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:i}=t,{padding:s=2,x:l,y:c}=TD(e,t),u=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),d=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>HD(VD(e))))}(u),f=HD(VD(u)),p=BD(s),h=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find((e=>l>e.left-p.left&&l<e.right+p.right&&c>e.top-p.top&&c<e.bottom+p.bottom))||f;if(d.length>=2){if("y"===LD(n)){const e=d[0],t=d[d.length-1],r="top"===ND(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===ND(n),t=kD(...d.map((e=>e.right))),r=PD(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,i=o[o.length-1].bottom;return{top:a,bottom:i,left:r,right:t,width:t-r,height:i-a,x:r,y:a}}return f}},floating:r.floating,strategy:i});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},I_=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=TD(e,t),u={x:n,y:r},d=LD(o),f=ID(d);let p=u[f],h=u[d];const m=TD(s,t),y="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+y.mainAxis,n=a.reference[f]+a.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,v;const e="y"===f?"width":"height",t=["top","left"].includes(ND(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:y.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?y.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},$_=(e,t,n)=>{const r=new Map,o={platform:E_,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=YD(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:y,y:g,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=g?g:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=YD(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var L_="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function F_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!F_(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||F_(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function z_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function W_(e,t){const n=z_(e);return Math.round(t*n)/n}function B_(e){const t=a.useRef(e);return L_((()=>{t.current=e})),t}const H_=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?N_({element:n.current,padding:r}).fn(t):{}:n?N_({element:n,padding:r}).fn(t):{}}}),Y_=(e,t)=>({...M_(e),options:[e,t]}),U_=(e,t)=>({...D_(e),options:[e,t]}),V_=(e,t)=>({...I_(e),options:[e,t]}),q_=(e,t)=>({...A_(e),options:[e,t]}),G_=(e,t)=>({...R_(e),options:[e,t]}),X_=(e,t)=>({...H_(e),options:[e,t]});function K_(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Z_(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&e_(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Q_(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function J_(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function eA(){const e=/android/i;return e.test(Q_())||e.test(J_())}function tA(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function nA(e){return(null==e?void 0:e.ownerDocument)||document}function rA(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function oA(e){return"composedPath"in e?e.composedPath()[0]:e.target}const aA={...i},iA=aA.useInsertionEffect||(e=>e());function sA(e){const t=a.useRef((()=>{}));return iA((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var lA="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;let cA=!1,uA=0;const dA=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+uA++,fA=aA.useId||function(){const[e,t]=a.useState((()=>cA?dA():void 0));return lA((()=>{null==e&&t(dA())}),[]),a.useEffect((()=>{cA=!0}),[]),e};const pA=a.createContext(null),hA=a.createContext(null),mA=()=>{var e;return(null==(e=a.useContext(pA))?void 0:e.id)||null},yA=()=>a.useContext(hA);function gA(e){return"data-floating-ui-"+e}function vA(e){const t=(0,a.useRef)(e);return lA((()=>{t.current=e})),t}const bA=gA("safe-polygon");function wA(e,t,n){return n&&!tA(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function xA(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,h=yA(),m=mA(),y=vA(u),g=vA(c),v=vA(n),b=a.useRef(),w=a.useRef(-1),x=a.useRef(),O=a.useRef(-1),S=a.useRef(!0),j=a.useRef(!1),P=a.useRef((()=>{})),k=a.useRef(!1),E=a.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);a.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(O.current),S.current=!0,k.current=!1)}}),[l,i]),a.useEffect((()=>{if(!l)return;if(!y.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=nA(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s.floating,n,r,l,y,E]);const C=a.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=wA(g.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[g,r]),M=sA((()=>{P.current(),x.current=void 0})),D=sA((()=>{if(j.current){const e=nA(s.floating).body;e.style.pointerEvents="",e.removeAttribute(bA),j.current=!1}})),_=sA((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));a.useEffect((()=>{if(l&&QD(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=s.floating)||e.addEventListener("mouseleave",i),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a),()=>{var e;n&&r.removeEventListener("mouseleave",i),null==(e=s.floating)||e.removeEventListener("mouseleave",i),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(w.current),S.current=!1,d&&!tA(b.current)||f>0&&!wA(g.current,"open"))return;const t=wA(g.current,"open",b.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function a(e){if(_())return;P.current();const t=nA(s.floating);if(clearTimeout(O.current),k.current=!1,y.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=y.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){D(),M(),_()||C(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(P.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!Z_(s.floating,e.relatedTarget))&&C(e)}function i(e){_()||o.current.floatingContext&&(null==y.current||y.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){D(),M(),_()||C(e)}})(e))}}),[s,l,e,d,f,p,C,M,D,r,n,v,h,g,y,o,_]),lA((()=>{var e;if(l&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&E()){j.current=!0;const e=s.floating;if(QD(s.domReference)&&e){var t;const n=nA(s.floating).body;n.setAttribute(bA,"");const r=s.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,m,s,h,y,E]),lA((()=>{n||(b.current=void 0,k.current=!1,M(),D())}),[n,M,D]),a.useEffect((()=>()=>{M(),clearTimeout(w.current),clearTimeout(O.current),D()}),[l,s.domReference,M,D]);const A=a.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||v.current||r(!0,t,"hover")}d&&!tA(b.current)||n||0===f||k.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(O.current),"touch"===b.current?o():(k.current=!0,O.current=window.setTimeout(o,f)))}}}),[d,r,n,v,f]),T=a.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){_()||C(e.nativeEvent,!1)}})),[C,_]);return a.useMemo((()=>l?{reference:A,floating:T}:{}),[l,A,T])}const OA=()=>{},SA=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:OA,setState:OA,isInstantPhase:!1});function jA(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=a.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=a.useRef(null),l=a.useCallback((e=>{i({currentId:e})}),[]);return lA((()=>{o.currentId?null===s.current?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)}),[o.currentId,o.isInstantPhase]),a.createElement(SA.Provider,{value:a.useMemo((()=>({...o,setState:i,setCurrentId:l})),[o,l])},t)}function PA(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const kA="data-floating-ui-focusable",EA={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},CA={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},MA=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function DA(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:m}=t,y=yA(),g=sA("function"==typeof c?c:()=>!1),v="function"==typeof c?g:c,b=a.useRef(!1),w=a.useRef(!1),{escapeKey:x,outsidePress:O}=MA(h),{escapeKey:S,outsidePress:j}=MA(m),P=a.useRef(!1),k=sA((e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;if(P.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=y?PA(y.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),E=sA((e=>{var t;const n=()=>{var t;k(e),null==(t=oA(e))||t.removeEventListener("keydown",n)};null==(t=oA(e))||t.addEventListener("keydown",n)})),C=sA((e=>{var t;const n=b.current;b.current=!1;const a=w.current;if(w.current=!1,"click"===u&&a)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=oA(e),l="["+gA("inert")+"]",c=nA(o.floating).querySelectorAll(l);let d=QD(s)?s:null;for(;d&&!i_(d);){const e=c_(d);if(i_(e)||!QD(e))break;d=e}if(c.length&&QD(s)&&!s.matches("html,body")&&!Z_(s,o.floating)&&Array.from(c).every((e=>!Z_(d,e))))return;if(JD(s)&&_){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===s_(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=y&&PA(y.nodesRef.current,f).some((t=>{var n;return rA(e,null==(n=t.context)?void 0:n.elements.floating)}));if(rA(e,o.floating)||rA(e,o.domReference)||p)return;const h=y?PA(y.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),M=sA((e=>{var t;const n=()=>{var t;C(e),null==(t=oA(e))||t.removeEventListener(u,n)};null==(t=oA(e))||t.addEventListener(u,n)}));a.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=O;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),P.current=!0}function c(){e=window.setTimeout((()=>{P.current=!1}),a_()?5:0)}const d=nA(o.floating);l&&(d.addEventListener("keydown",S?E:k,S),d.addEventListener("compositionstart",a),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,j?M:C,j);let f=[];return p&&(QD(o.domReference)&&(f=d_(o.domReference)),QD(o.floating)&&(f=f.concat(d_(o.floating))),!QD(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(d_(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",S?E:k,S),d.removeEventListener("compositionstart",a),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,j?M:C,j),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,l,v,u,n,r,p,s,x,O,k,S,E,C,j,M]),a.useEffect((()=>{b.current=!1}),[v,u]);const D=a.useMemo((()=>({onKeyDown:k,[EA[f]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,d,f]),_=a.useMemo((()=>({onKeyDown:k,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[CA[u]]:()=>{b.current=!0}})),[k,u]);return a.useMemo((()=>s?{reference:D,floating:_}:{}),[s,D,_])}function _A(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=fA(),i=a.useRef({}),[s]=a.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=mA(),[c,u]=a.useState(r.reference),d=sA(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=a.useMemo((()=>({setPositionReference:u})),[]),p=a.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return a.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f})),[t,d,p,s,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=a.useState(null),[l,c]=a.useState(null),u=(null==o?void 0:o.domReference)||i,d=a.useRef(null),f=yA();lA((()=>{u&&(d.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=a.useState(r);F_(p,r)||h(r);const[m,y]=a.useState(null),[g,v]=a.useState(null),b=a.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),w=a.useCallback((e=>{e!==j.current&&(j.current=e,v(e))}),[]),x=i||m,O=s||g,S=a.useRef(null),j=a.useRef(null),P=a.useRef(d),k=null!=c,E=B_(c),C=B_(o),M=B_(u),D=a.useCallback((()=>{if(!S.current||!j.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),$_(S.current,j.current,e).then((e=>{const t={...e,isPositioned:!1!==M.current};_.current&&!F_(P.current,t)&&(P.current=t,as.flushSync((()=>{f(t)})))}))}),[p,t,n,C,M]);L_((()=>{!1===u&&P.current.isPositioned&&(P.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const _=a.useRef(!1);L_((()=>(_.current=!0,()=>{_.current=!1})),[]),L_((()=>{if(x&&(S.current=x),O&&(j.current=O),x&&O){if(E.current)return E.current(x,O,D);D()}}),[x,O,D,E,k]);const A=a.useMemo((()=>({reference:S,floating:j,setReference:b,setFloating:w})),[b,w]),T=a.useMemo((()=>({reference:x,floating:O})),[x,O]),N=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=W_(T.floating,d.x),r=W_(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...z_(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,T.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:D,refs:A,elements:T,floatingStyles:N})),[d,D,A,T,N])}({...e,elements:{...o,...l&&{reference:l}}}),h=a.useCallback((e=>{const t=QD(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=a.useCallback((e=>{(QD(e)||null===e)&&(d.current=e,s(e)),(QD(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!QD(e))&&p.refs.setReference(e)}),[p.refs]),y=a.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d})),[p.refs,m,h]),g=a.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=a.useMemo((()=>({...p,...r,refs:y,elements:g,nodeId:t})),[p,y,g,t,r]);return lA((()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),a.useMemo((()=>({...p,context:v,refs:y,elements:g})),[p,y,g,v])}function AA(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=a.useRef(!1),d=a.useRef(),f=a.useRef(!0);a.useEffect((()=>{if(!l)return;const e=XD(s.domReference);function t(){!n&&JD(s.domReference)&&s.domReference===K_(nA(s.domReference))&&(u.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[s.domReference,n,l]),a.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,l]),a.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const p=a.useMemo((()=>({onPointerDown(e){(function(e){return!J_().includes("jsdom/")&&(!eA()&&0===e.width&&0===e.height||eA()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=oA(e.nativeEvent);if(c&&QD(t))try{if(/apple/i.test(navigator.vendor)&&Q_().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&(!JD(n=t)||!n.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")))return}var n;r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=QD(t)&&t.hasAttribute(gA("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const a=K_(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(Z_(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Z_(s.domReference,a)||o||r(!1,n,"focus"))}))}})),[i,s.domReference,r,c]);return a.useMemo((()=>l?{reference:p}:{}),[l,p])}const TA="active",NA="selected";function RA(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[TA]:t,[NA]:__,...n}=e;a=n}return{..."floating"===n&&{tabIndex:-1,[kA]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[TA,NA].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}const IA=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function $A(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(n=IA.get(s))?n:s,c=fA(),u=null!=mA(),d=a.useMemo((()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[l,o,u,r,c,s]),f=a.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,s]),p=a.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,s]);return a.useMemo((()=>i?{reference:d,floating:f,item:p}:{}),[i,d,f,p])}function LA({opened:e,floating:t,position:n,positionDependencies:r}){const[o,i]=(0,a.useState)(0);(0,a.useEffect)((()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=h_(e),u=o||a?[...c?d_(c):[],...d_(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=KD(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h={rootMargin:-CD(d)+"px "+-CD(o.clientWidth-(u+f))+"px "+-CD(o.clientHeight-(d+p))+"px "+-CD(u)+"px",threshold:kD(0,PD(1,l))||1};let m=!0;function y(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||C_(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?v_(e):null;return l&&function t(){const r=v_(e);m&&!C_(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(t.refs.reference.current,t.refs.floating.current,t.update)}),[t.refs.reference.current,t.refs.floating.current,e,o,n]),GM((()=>{t.update()}),r),GM((()=>{i((e=>e+1))}),[e])}function FA(e,t){const n=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),r=[Y_(e.offset)];return n.shift&&r.push(U_("boolean"==typeof n.shift?{limiter:V_(),padding:5}:{limiter:V_(),padding:5,...n.shift})),n.flip&&r.push("boolean"==typeof n.flip?q_():q_(n.flip)),n.inline&&r.push("boolean"==typeof n.inline?G_():G_(n.inline)),r.push(X_({element:e.arrowRef,padding:e.arrowOffset})),(n.size||"target"===e.width)&&r.push((e=>({...T_(e),options:[e,void 0]}))({..."boolean"==typeof n.size?{}:n.size,apply({rects:r,availableWidth:o,availableHeight:a,...i}){const s=t(),l=s.refs.floating.current?.style??{};n.size&&("object"==typeof n.size&&n.size.apply?n.size.apply({rects:r,availableWidth:o,availableHeight:a,...i}):Object.assign(l,{maxWidth:`${o}px`,maxHeight:`${a}px`})),"target"===e.width&&Object.assign(l,{width:`${r.reference.width}px`})}})),r}const zA={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:DM("popover"),__staticSelector:"Popover",width:"max-content"},WA=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":void 0===t?void 0:AC(t),"--popover-shadow":RC(n)}});function BA(e){const t=VE("Popover",zA,e),{children:n,position:r,offset:o,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:f,middlewares:p,withArrow:h,arrowSize:m,arrowOffset:y,arrowRadius:g,arrowPosition:v,unstyled:b,classNames:w,styles:x,closeOnClickOutside:O,withinPortal:S,portalProps:j,closeOnEscape:P,clickOutsideEvents:k,trapFocus:E,onClose:C,onDismiss:M,onOpen:D,onChange:_,zIndex:A,radius:T,shadow:N,id:R,defaultOpened:I,__staticSelector:$,withRoles:L,disabled:F,returnFocus:z,variant:W,keepMounted:B,vars:H,floatingStrategy:Y,withOverlay:U,overlayProps:V,...q}=t,G=lC({name:$,props:t,classes:bD,classNames:w,styles:x,unstyled:b,rootSelector:"dropdown",vars:H,varsResolver:WA}),{resolvedStyles:X}=KE({classNames:w,styles:x,props:t}),K=(0,a.useRef)(null),[Z,Q]=(0,a.useState)(null),[J,ee]=(0,a.useState)(null),{dir:te}=AM(),ne=bM(R),re=function(e){const[t,n]=jM({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,a.useRef)(t),o=_A({strategy:e.strategy,placement:e.position,middleware:FA(e,(()=>o))});return LA({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:o}),GM((()=>{e.onPositionChange?.(o.placement)}),[o.placement]),GM((()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t}),[t,e.onClose,e.onOpen]),{floating:o,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{t&&n(!1)},onToggle:()=>n(!t)}}({middlewares:p,width:f,position:TM(te,r),offset:"number"==typeof o?o+(h?m/2:0):o,arrowRef:K,arrowOffset:y,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:I,onChange:_,onOpen:D,onClose:C,onDismiss:M,strategy:Y});!function(e,t,n){const r=(0,a.useRef)(null);(0,a.useEffect)((()=>{const o=t=>{const{target:o}=t??{};if(Array.isArray(n)){const r=o?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(o)&&"HTML"!==o.tagName,a=n.every((e=>!!e&&!t.composedPath().includes(e)));a&&!r&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||CM).forEach((e=>document.addEventListener(e,o))),()=>{(t||CM).forEach((e=>document.removeEventListener(e,o)))}}),[r,e,n])}((()=>{O&&(re.onClose(),M?.())}),k,[Z,J]);const oe=(0,a.useCallback)((e=>{Q(e),re.floating.refs.setReference(e)}),[re.floating.refs.setReference]),ae=(0,a.useCallback)((e=>{ee(e),re.floating.refs.setFloating(e)}),[re.floating.refs.setFloating]),ie=(0,a.useCallback)((()=>{c?.onExited?.(),u?.()}),[c?.onExited,u]),se=(0,a.useCallback)((()=>{c?.onEntered?.(),d?.()}),[c?.onEntered,d]);return(0,Xr.jsxs)(QM,{value:{returnFocus:z,disabled:F,controlled:re.controlled,reference:oe,floating:ae,x:re.floating.x,y:re.floating.y,arrowX:re.floating?.middlewareData?.arrow?.x,arrowY:re.floating?.middlewareData?.arrow?.y,opened:re.opened,arrowRef:K,transitionProps:{...c,onExited:ie,onEntered:se},width:f,withArrow:h,arrowSize:m,arrowOffset:y,arrowRadius:g,arrowPosition:v,placement:re.floating.placement,trapFocus:E,withinPortal:S,portalProps:j,zIndex:A,radius:T,shadow:N,closeOnEscape:P,onDismiss:M,onClose:re.onClose,onToggle:re.onToggle,getTargetId:()=>`${ne}-target`,getDropdownId:()=>`${ne}-dropdown`,withRoles:L,targetProps:q,__staticSelector:$,classNames:w,styles:x,unstyled:b,variant:W,keepMounted:B,getStyles:G,resolvedStyles:X,floatingStrategy:Y},children:[n,U&&(0,Xr.jsx)(KM,{transition:"fade",mounted:re.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:e=>(0,Xr.jsx)(HM,{withinPortal:S,children:(0,Xr.jsx)($M,{...V,...G("overlay",{className:V?.className,style:[e,V?.style]})})})})]})}BA.Target=jD,BA.Dropdown=xD,BA.displayName="@mantine/core/Popover",BA.extend=e=>e;const[HA,YA]=ZM("Combobox component was not found in tree");var UA={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const VA={error:null},qA=(e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":DC(t,"combobox-chevron-size"),"--combobox-chevron-color":n?jE(n,e):void 0}}),GA=kE(((e,t)=>{const n=VE("ComboboxChevron",VA,e),{size:r,error:o,style:a,className:i,classNames:s,styles:l,unstyled:c,vars:u,mod:d,...f}=n,p=lC({name:"ComboboxChevron",classes:UA,props:n,style:a,className:i,classNames:s,styles:l,unstyled:c,vars:u,varsResolver:qA,rootSelector:"chevron"});return(0,Xr.jsx)(MC,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},d],ref:t,children:(0,Xr.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}));function XA(e=null){const t=(0,a.createContext)(e);return[({children:e,value:n})=>(0,Xr.jsx)(t.Provider,{value:n,children:e}),()=>(0,a.useContext)(t)]}GA.classes=UA,GA.displayName="@mantine/core/ComboboxChevron";const[KA,ZA]=XA({size:"sm"});var QA={root:"m_87cf2631"};const JA={__staticSelector:"UnstyledButton"},eT=IC(((e,t)=>{const n=VE("UnstyledButton",JA,e),{className:r,component:o="button",__staticSelector:a,unstyled:i,classNames:s,styles:l,style:c,...u}=n,d=lC({name:a,props:n,classes:QA,className:r,style:c,classNames:s,styles:l,unstyled:i});return(0,Xr.jsx)(MC,{...d("root",{focusable:!0}),component:o,ref:t,type:"button"===o?"button":void 0,...u})}));eT.classes=QA,eT.displayName="@mantine/core/UnstyledButton";const tT=(0,a.forwardRef)((({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>(0,Xr.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:(0,Xr.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})));tT.displayName="@mantine/core/CloseIcon";var nT={root:"m_86a44da5","root--subtle":"m_220c80f2"};const rT={variant:"subtle"},oT=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":DC(t,"cb-size"),"--cb-radius":void 0===n?void 0:AC(n),"--cb-icon-size":DE(r)}}),aT=IC(((e,t)=>{const n=VE("CloseButton",rT,e),{iconSize:r,children:o,vars:a,radius:i,className:s,classNames:l,style:c,styles:u,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:m,mod:y,__staticSelector:g,...v}=n,b=lC({name:g||"CloseButton",props:n,className:s,style:c,classes:nT,classNames:l,styles:u,unstyled:d,vars:a,varsResolver:oT});return(0,Xr.jsxs)(eT,{ref:t,...v,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},y],...b("root",{variant:h,active:!p&&!f}),children:[m||(0,Xr.jsx)(tT,{}),o]})}));aT.classes=nT,aT.displayName="@mantine/core/CloseButton";const iT={},sT=kE(((e,t)=>{const n=VE("InputClearButton",iT,e),{size:r,variant:o,vars:a,classNames:i,styles:s,...l}=n,c=ZA(),{resolvedClassNames:u,resolvedStyles:d}=KE({classNames:i,styles:s,props:n});return(0,Xr.jsx)(aT,{variant:o||"transparent",ref:t,size:r||c?.size||"sm",classNames:u,styles:d,__staticSelector:"InputClearButton",...l})}));sT.displayName="@mantine/core/InputClearButton";const[lT,cT]=XA({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var uT={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const dT={},fT=(e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`}}),pT=kE(((e,t)=>{const n=VE("InputDescription",dT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=VE("InputDescription",dT,n),h=cT(),m=lC({name:["InputWrapper",u],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"description",vars:l,varsResolver:fT}),y=d&&h?.getStyles||m;return(0,Xr.jsx)(MC,{component:"p",ref:t,variant:f,size:c,...y("description",h?.getStyles?{className:o,style:a}:void 0),...p})}));pT.classes=uT,pT.displayName="@mantine/core/InputDescription";const hT={},mT=(e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`}}),yT=kE(((e,t)=>{const n=VE("InputError",hT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=n,h=lC({name:["InputWrapper",u],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"error",vars:l,varsResolver:mT}),m=cT(),y=d&&m?.getStyles||h;return(0,Xr.jsx)(MC,{component:"p",ref:t,variant:f,size:c,...y("error",m?.getStyles?{className:o,style:a}:void 0),...p})}));yT.classes=uT,yT.displayName="@mantine/core/InputError";const gT={labelElement:"label"},vT=(e,{size:t})=>({label:{"--input-label-size":TC(t),"--input-asterisk-color":void 0}}),bT=kE(((e,t)=>{const n=VE("InputLabel",gT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,labelElement:c,size:u,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:m,variant:y,mod:g,...v}=VE("InputLabel",gT,n),b=lC({name:["InputWrapper",m],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"label",vars:l,varsResolver:vT}),w=cT(),x=w?.getStyles||b;return(0,Xr.jsxs)(MC,{...x("label",w?.getStyles?{className:o,style:a}:void 0),component:c,variant:y,size:u,ref:t,htmlFor:"label"===c?f:void 0,mod:[{required:d},g],onMouseDown:e=>{p?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...v,children:[h,d&&(0,Xr.jsx)("span",{...x("required"),"aria-hidden":!0,children:" *"})]})}));bT.classes=uT,bT.displayName="@mantine/core/InputLabel";const wT={},xT=kE(((e,t)=>{const n=VE("InputPlaceholder",wT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,__staticSelector:c,variant:u,error:d,mod:f,...p}=VE("InputPlaceholder",wT,n),h=lC({name:["InputPlaceholder",c],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"placeholder"});return(0,Xr.jsx)(MC,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:u,ref:t,...p})}));function OT(e,{hasDescription:t,hasError:n}){const r=e.findIndex((e=>"input"===e)),o=e.slice(0,r),a=e.slice(r+1),i=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&a.includes("description")||n&&a.includes("error"),offsetTop:i}}xT.classes=uT,xT.displayName="@mantine/core/InputPlaceholder";const ST={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},jT=(e,{size:t})=>({label:{"--input-label-size":TC(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`}}),PT=kE(((e,t)=>{const n=VE("InputWrapper",ST,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,size:u,variant:d,__staticSelector:f,inputContainer:p,inputWrapperOrder:h,label:m,error:y,description:g,labelProps:v,descriptionProps:b,errorProps:w,labelElement:x,children:O,withAsterisk:S,id:j,required:P,__stylesApiProps:k,mod:E,...C}=n,M=lC({name:["InputWrapper",f],props:k||n,classes:uT,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:jT}),D={size:u,variant:d,__staticSelector:f},_=bM(j),A="boolean"==typeof S?S:P,T=w?.id||`${_}-error`,N=b?.id||`${_}-description`,R=_,I=!!y&&"boolean"!=typeof y,$=!!g,L=`${I?T:""} ${$?N:""}`,F=L.trim().length>0?L.trim():void 0,z=v?.id||`${_}-label`,W=m&&(0,Xr.jsx)(bT,{labelElement:x,id:z,htmlFor:R,required:A,...D,...v,children:m},"label"),B=$&&(0,Xr.jsx)(pT,{...b,...D,size:b?.size||D.size,id:b?.id||N,children:g},"description"),H=(0,Xr.jsx)(a.Fragment,{children:p(O)},"input"),Y=I&&(0,a.createElement)(yT,{...w,...D,size:w?.size||D.size,key:"error",id:w?.id||T},y),U=h.map((e=>{switch(e){case"label":return W;case"input":return H;case"description":return B;case"error":return Y;default:return null}}));return(0,Xr.jsx)(lT,{value:{getStyles:M,describedBy:F,inputId:R,labelId:z,...OT(h,{hasDescription:$,hasError:I})},children:(0,Xr.jsx)(MC,{ref:t,variant:d,size:u,mod:[{error:!!y},E],...M("root"),...C,children:U})})}));PT.classes=uT,PT.displayName="@mantine/core/InputWrapper";const kT={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},ET=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":DC(t.size,"input-height"),"--input-fz":TC(t.size),"--input-radius":void 0===t.radius?void 0:AC(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?DE(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?DE(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?DC(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),CT=IC(((e,t)=>{const n=VE("Input",kT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,required:l,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:f,error:p,disabled:h,leftSection:m,leftSectionProps:y,leftSectionWidth:g,rightSection:v,rightSectionProps:b,rightSectionWidth:w,rightSectionPointerEvents:x,leftSectionPointerEvents:O,variant:S,vars:j,pointer:P,multiline:k,radius:E,id:C,withAria:M,withErrorStyles:D,mod:_,inputSize:A,__clearSection:T,__clearable:N,__defaultRightSection:R,...I}=n,{styleProps:$,rest:L}=vC(I),F=cT(),z=lC({name:["Input",c],props:u||n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,stylesCtx:{offsetBottom:F?.offsetBottom,offsetTop:F?.offsetTop},rootSelector:"wrapper",vars:j,varsResolver:ET}),W=M?{required:l,disabled:h,"aria-invalid":!!p,"aria-describedby":F?.describedBy,id:F?.inputId||C}:{},B=v||N&&T||R;return(0,Xr.jsx)(KA,{value:{size:d||"sm"},children:(0,Xr.jsxs)(MC,{...z("wrapper"),...$,...f,mod:[{error:!!p&&D,pointer:P,disabled:h,multiline:k,"data-with-right-section":!!B,"data-with-left-section":!!m},_],variant:S,size:d,children:[m&&(0,Xr.jsx)("div",{...y,"data-position":"left",...z("section",{className:y?.className,style:y?.style}),children:m}),(0,Xr.jsx)(MC,{component:"input",...L,...W,ref:t,required:l,mod:{disabled:h,error:!!p&&D},variant:S,__size:A,...z("input")}),B&&(0,Xr.jsx)("div",{...b,"data-position":"right",...z("section",{className:b?.className,style:b?.style}),children:B})]})})}));CT.classes=uT,CT.Wrapper=PT,CT.Label=bT,CT.Error=yT,CT.Description=pT,CT.Placeholder=xT,CT.ClearButton=sT,CT.displayName="@mantine/core/Input";const MT=(0,a.forwardRef)((({size:e,onMouseDown:t,onClick:n,onClear:r,...o},a)=>(0,Xr.jsx)(CT.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{r(),n?.(e)}})));MT.displayName="@mantine/core/ComboboxClearButton";const DT={},_T=kE(((e,t)=>{const{classNames:n,styles:r,className:o,style:a,hidden:i,...s}=VE("ComboboxDropdown",DT,e),l=YA();return(0,Xr.jsx)(BA.Dropdown,{...s,ref:t,role:"presentation","data-hidden":i||void 0,...l.getStyles("dropdown",{className:o,style:a,classNames:n,styles:r})})}));_T.classes=UA,_T.displayName="@mantine/core/ComboboxDropdown";const AT={refProp:"ref"},TT=kE(((e,t)=>{const{children:n,refProp:r}=VE("ComboboxDropdownTarget",AT,e);if(YA(),!pD(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,Xr.jsx)(BA.Target,{ref:t,refProp:r,children:n})}));TT.displayName="@mantine/core/ComboboxDropdownTarget";const NT={},RT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ComboboxEmpty",NT,e),l=YA();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:a,style:o}),...s})}));function IT({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:i}){const s=YA(),[l,c]=(0,a.useState)(null);return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!(!s.store.listId||!s.store.dropdownOpened)||void 0,"aria-controls":s.store.dropdownOpened?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:n=>{if(e?.(n),!s.readOnly&&t){if(n.nativeEvent.isComposing)return;if("ArrowDown"===n.nativeEvent.code&&(n.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===n.nativeEvent.code&&(n.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===n.nativeEvent.code||"NumpadEnter"===n.nativeEvent.code){if(229===n.nativeEvent.keyCode)return;const e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&-1!==e?(n.preventDefault(),s.store.clickSelectedOption()):"button"===o&&(n.preventDefault(),s.store.openDropdown("keyboard"))}"Escape"===n.key&&s.store.closeDropdown("keyboard"),"Space"===n.nativeEvent.code&&"button"===o&&(n.preventDefault(),s.store.toggleDropdown("keyboard"))}}}}RT.classes=UA,RT.displayName="@mantine/core/ComboboxEmpty";const $T={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},LT=kE(((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=VE("ComboboxEventsTarget",$T,e);if(!pD(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=YA(),f=IT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return(0,a.cloneElement)(n,{...f,...u,[r]:FM(t,d.store.targetRef,OD(n))})}));LT.displayName="@mantine/core/ComboboxEventsTarget";const FT={},zT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ComboboxFooter",FT,e),l=YA();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:o,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})}));zT.classes=UA,zT.displayName="@mantine/core/ComboboxFooter";const WT={},BT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,children:s,label:l,...c}=VE("ComboboxGroup",WT,e),u=YA();return(0,Xr.jsxs)(MC,{ref:t,...u.getStyles("group",{className:r,classNames:n,style:o,styles:a}),...c,children:[l&&(0,Xr.jsx)("div",{...u.getStyles("groupLabel",{classNames:n,styles:a}),children:l}),s]})}));BT.classes=UA,BT.displayName="@mantine/core/ComboboxGroup";const HT={},YT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ComboboxHeader",HT,e),l=YA();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:o,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})}));function UT({value:e,valuesDivider:t=",",...n}){return(0,Xr.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}YT.classes=UA,YT.displayName="@mantine/core/ComboboxHeader",UT.displayName="@mantine/core/ComboboxHiddenInput";const VT={},qT=kE(((e,t)=>{const n=VE("ComboboxOption",VT,e),{classNames:r,className:o,style:i,styles:s,vars:l,onClick:c,id:u,active:d,onMouseDown:f,onMouseOver:p,disabled:h,selected:m,mod:y,...g}=n,v=YA(),b=(0,a.useId)(),w=u||b;return(0,Xr.jsx)(MC,{...v.getStyles("option",{className:o,classNames:r,styles:s,style:i}),...g,ref:t,id:w,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":h,"combobox-selected":m},y],role:"option",onClick:e=>{h?e.preventDefault():(v.onOptionSubmit?.(n.value,n),c?.(e))},onMouseDown:e=>{e.preventDefault(),f?.(e)},onMouseOver:e=>{v.resetSelectionOnOptionHover&&v.store.resetSelectedOption(),p?.(e)}})}));qT.classes=UA,qT.displayName="@mantine/core/ComboboxOption";const GT={},XT=kE(((e,t)=>{const n=VE("ComboboxOptions",GT,e),{classNames:r,className:o,style:i,styles:s,id:l,onMouseDown:c,labelledBy:u,...d}=n,f=YA(),p=bM(l);return(0,a.useEffect)((()=>{f.store.setListId(p)}),[p]),(0,Xr.jsx)(MC,{ref:t,...f.getStyles("options",{className:o,style:i,classNames:r,styles:s}),...d,id:p,role:"listbox","aria-labelledby":u,onMouseDown:e=>{e.preventDefault(),c?.(e)}})}));XT.classes=UA,XT.displayName="@mantine/core/ComboboxOptions";const KT={withAriaAttributes:!0,withKeyboardNavigation:!0},ZT=kE(((e,t)=>{const n=VE("ComboboxSearch",KT,e),{classNames:r,styles:o,unstyled:a,vars:i,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:c,size:u,...d}=n,f=YA(),p=f.getStyles("search"),h=IT({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return(0,Xr.jsx)(CT,{ref:FM(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},o],size:u||f.size,...h,...d,__staticSelector:"Combobox"})}));ZT.classes=UA,ZT.displayName="@mantine/core/ComboboxSearch";const QT={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},JT=kE(((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=VE("ComboboxTarget",QT,e);if(!pD(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=YA(),f=IT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),p=(0,a.cloneElement)(n,{...f,...u});return(0,Xr.jsx)(BA.Target,{ref:FM(t,d.store.targetRef),children:p})}));function eN({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:o,loop:i=!0,scrollBehavior:s="instant"}={}){const[l,c]=jM({value:t,defaultValue:e,finalValue:!1,onChange:n}),u=(0,a.useRef)(null),d=(0,a.useRef)(-1),f=(0,a.useRef)(null),p=(0,a.useRef)(null),h=(0,a.useRef)(-1),m=(0,a.useRef)(-1),y=(0,a.useRef)(-1),g=(0,a.useCallback)(((e="unknown")=>{l||(c(!0),o?.(e))}),[c,o,l]),v=(0,a.useCallback)(((e="unknown")=>{l&&(c(!1),r?.(e))}),[c,r,l]),b=(0,a.useCallback)(((e="unknown")=>{l?v(e):g(e)}),[v,g,l]),w=(0,a.useCallback)((()=>{const e=document.querySelector(`#${u.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")}),[]),x=(0,a.useCallback)((e=>{const t=document.getElementById(u.current),n=t?.querySelectorAll("[data-combobox-option]");if(!n)return null;const r=e>=n.length?0:e<0?n.length-1:e;return d.current=r,n?.[r]&&!n[r].hasAttribute("data-combobox-disabled")?(w(),n[r].setAttribute("data-combobox-selected","true"),n[r].setAttribute("aria-selected","true"),n[r].scrollIntoView({block:"nearest",behavior:s}),n[r].id):null}),[s,w]),O=(0,a.useCallback)((()=>{const e=document.querySelector(`#${u.current} [data-combobox-active]`);if(e){const t=document.querySelectorAll(`#${u.current} [data-combobox-option]`),n=Array.from(t).findIndex((t=>t===e));return x(n)}return x(0)}),[x]),S=(0,a.useCallback)((()=>x(function(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(n)for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i))),[x,i]),j=(0,a.useCallback)((()=>x(function(e,t,n){for(let n=e-1;n>=0;n-=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(n)for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i))),[x,i]),P=(0,a.useCallback)((()=>x(function(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}(document.querySelectorAll(`#${u.current} [data-combobox-option]`)))),[x]),k=(0,a.useCallback)(((e="selected",t)=>{y.current=window.setTimeout((()=>{const n=document.querySelectorAll(`#${u.current} [data-combobox-option]`),r=Array.from(n).findIndex((t=>t.hasAttribute(`data-combobox-${e}`)));d.current=r,t?.scrollIntoView&&n[r]?.scrollIntoView({block:"nearest",behavior:s})}),0)}),[]),E=(0,a.useCallback)((()=>{d.current=-1,w()}),[w]),C=(0,a.useCallback)((()=>{const e=document.querySelectorAll(`#${u.current} [data-combobox-option]`),t=e?.[d.current];t?.click()}),[]),M=(0,a.useCallback)((e=>{u.current=e}),[]),D=(0,a.useCallback)((()=>{h.current=window.setTimeout((()=>f.current.focus()),0)}),[]),_=(0,a.useCallback)((()=>{m.current=window.setTimeout((()=>p.current.focus()),0)}),[]),A=(0,a.useCallback)((()=>d.current),[]);return(0,a.useEffect)((()=>()=>{window.clearTimeout(h.current),window.clearTimeout(m.current),window.clearTimeout(y.current)}),[]),{dropdownOpened:l,openDropdown:g,closeDropdown:v,toggleDropdown:b,selectedOptionIndex:d.current,getSelectedOptionIndex:A,selectOption:x,selectFirstOption:P,selectActiveOption:O,selectNextOption:S,selectPreviousOption:j,resetSelectedOption:E,updateSelectedOptionIndex:k,listId:u.current,setListId:M,clickSelectedOption:C,searchRef:f,focusSearchInput:D,targetRef:p,focusTarget:_}}JT.displayName="@mantine/core/ComboboxTarget";const tN={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},nN=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":TC(t),"--combobox-option-padding":DC(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===n?void 0:DE(n),"--combobox-option-fz":TC(t),"--combobox-option-padding":DC(t,"combobox-option-padding")}});function rN(e){const t=VE("Combobox",tN,e),{classNames:n,styles:r,unstyled:o,children:a,store:i,vars:s,onOptionSubmit:l,onClose:c,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...m}=t,y=eN(),g=i||y,v=lC({name:p||"Combobox",classes:UA,props:t,classNames:n,styles:r,unstyled:o,vars:s,varsResolver:nN});return(0,Xr.jsx)(HA,{value:{getStyles:v,store:g,onOptionSubmit:l,size:u,resetSelectionOnOptionHover:f,readOnly:h},children:(0,Xr.jsx)(BA,{opened:g.dropdownOpened,...m,onChange:e=>!e&&(c?.(),void g.closeDropdown()),withRoles:!1,unstyled:o,children:a})})}function oN({size:e,style:t,...n}){const r=void 0!==e?{width:DE(e),height:DE(e),...t}:t;return(0,Xr.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:(0,Xr.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}rN.extend=e=>e,rN.classes=UA,rN.displayName="@mantine/core/Combobox",rN.Target=JT,rN.Dropdown=_T,rN.Options=XT,rN.Option=qT,rN.Search=ZT,rN.Empty=RT,rN.Chevron=GA,rN.Footer=zT,rN.Header=YT,rN.EventsTarget=LT,rN.DropdownTarget=TT,rN.Group=BT,rN.ClearButton=MT,rN.HiddenInput=UT;const[aN,iN]=ZM("ScrollArea.Root component was not found in tree");function sN(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{t.current=e})),(0,a.useMemo)((()=>(...e)=>t.current?.(...e)),[])}function lN(e,t){const n=sN(t);gM((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const cN=(0,a.forwardRef)(((e,t)=>{const{style:n,...r}=e,o=iN(),[i,s]=(0,a.useState)(0),[l,c]=(0,a.useState)(0),u=Boolean(i&&l);return lN(o.scrollbarX,(()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),c(e)})),lN(o.scrollbarY,(()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),s(e)})),u?(0,Xr.jsx)("div",{...r,ref:t,style:{...n,width:i,height:l}}):null})),uN=(0,a.forwardRef)(((e,t)=>{const n=iN(),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,Xr.jsx)(cN,{...e,ref:t}):null})),dN={scrollHideDelay:1e3,type:"hover"},fN=(0,a.forwardRef)(((e,t)=>{const n=VE("ScrollAreaRoot",dN,e),{type:r,scrollHideDelay:o,scrollbars:i,...s}=n,[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),[f,p]=(0,a.useState)(null),[h,m]=(0,a.useState)(null),[y,g]=(0,a.useState)(null),[v,b]=(0,a.useState)(0),[w,x]=(0,a.useState)(0),[O,S]=(0,a.useState)(!1),[j,P]=(0,a.useState)(!1),k=FM(t,(e=>c(e)));return(0,Xr.jsx)(aN,{value:{type:r,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:O,onScrollbarXEnabledChange:S,scrollbarY:y,onScrollbarYChange:g,scrollbarYEnabled:j,onScrollbarYEnabledChange:P,onCornerWidthChange:b,onCornerHeightChange:x},children:(0,Xr.jsx)(MC,{...s,ref:k,__vars:{"--sa-corner-width":"xy"!==i?"0px":`${v}px`,"--sa-corner-height":"xy"!==i?"0px":`${w}px`}})})}));fN.displayName="@mantine/core/ScrollAreaRoot";const pN=()=>{};function hN(e,t){const n="number"==typeof t?t:t.delay,r="number"!=typeof t&&t.flushOnUnmount,o=sN(e),i=(0,a.useRef)(0),s=Object.assign((0,a.useCallback)(((...e)=>{window.clearTimeout(i.current);const t=()=>{0!==i.current&&(i.current=0,o(...e))};s.flush=t,i.current=window.setTimeout(t,n)}),[o,n]),{flush:pN});return(0,a.useEffect)((()=>()=>{window.clearTimeout(i.current),r&&s.flush()}),[s,r]),s}function mN(e,t){const n=e/t;return Number.isNaN(n)?0:n}function yN(e){const t=mN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function gN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function vN(e,t,n="ltr"){const r=yN(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return gN([0,i],[0,s])(l)}function bN(e,t){return e>0&&e<t}function wN(e){return e?parseInt(e,10):0}function xN(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),!1!==n&&r.defaultPrevented||t?.(r)}}const[ON,SN]=ZM("ScrollAreaScrollbar was not found in tree"),jN=(0,a.forwardRef)(((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,p=iN(),[h,m]=(0,a.useState)(null),y=FM(t,(e=>m(e))),g=(0,a.useRef)(null),v=(0,a.useRef)(""),{viewport:b}=p,w=n.content-n.viewport,x=sN(u),O=sN(l),S=hN(d,10),j=e=>{if(g.current){const t=e.clientX-g.current.left,n=e.clientY-g.current.top;c({x:t,y:n})}};return(0,a.useEffect)((()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&x(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[b,h,w,x]),(0,a.useEffect)(O,[n,O]),lN(h,S),lN(p.content,S),(0,Xr.jsx)(ON,{value:{scrollbar:h,hasThumb:r,onThumbChange:sN(o),onThumbPointerUp:sN(i),onThumbPositionChange:O,onThumbPointerDown:sN(s)},children:(0,Xr.jsx)("div",{...f,ref:y,"data-mantine-scrollbar":!0,style:{position:"absolute",...f.style},onPointerDown:xN(e.onPointerDown,(e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j(e))})),onPointerMove:xN(e.onPointerMove,j),onPointerUp:xN(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))})),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,g.current=null}})})})),PN=(0,a.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...i}=e,s=iN(),[l,c]=(0,a.useState)(),u=(0,a.useRef)(null),d=FM(t,u,s.onScrollbarXChange);return(0,a.useEffect)((()=>{u.current&&c(getComputedStyle(u.current))}),[u]),(0,Xr.jsx)(jN,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...o,"--sa-thumb-width":`${yN(n)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(s.viewport){const r=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),bN(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:wN(l.paddingLeft),paddingEnd:wN(l.paddingRight)}})}})}));PN.displayName="@mantine/core/ScrollAreaScrollbarX";const kN=(0,a.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...i}=e,s=iN(),[l,c]=(0,a.useState)(),u=(0,a.useRef)(null),d=FM(t,u,s.onScrollbarYChange);return(0,a.useEffect)((()=>{u.current&&c(window.getComputedStyle(u.current))}),[]),(0,Xr.jsx)(jN,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${yN(n)}px`,...o},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(s.viewport){const r=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),bN(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:wN(l.paddingTop),paddingEnd:wN(l.paddingBottom)}})}})}));kN.displayName="@mantine/core/ScrollAreaScrollbarY";const EN=(0,a.forwardRef)(((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=AM(),i=iN(),s=(0,a.useRef)(null),l=(0,a.useRef)(0),[c,u]=(0,a.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=mN(c.viewport,c.content),f={...r,sizes:c,onSizesChange:u,hasThumb:Boolean(d>0&&d<1),onThumbChange:e=>{s.current=e},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:e=>{l.current=e}},p=(e,t)=>function(e,t,n,r="ltr"){const o=yN(n),a=t||o/2,i=o-a,s=n.scrollbar.paddingStart+a,l=n.scrollbar.size-n.scrollbar.paddingEnd-i,c=n.content-n.viewport;return gN([s,l],"ltr"===r?[0,c]:[-1*c,0])(e)}(e,l.current,c,t);return"horizontal"===n?(0,Xr.jsx)(PN,{...f,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=vN(i.viewport.scrollLeft,c,o);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=p(e,o))}}):"vertical"===n?(0,Xr.jsx)(kN,{...f,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=vN(i.viewport.scrollTop,c);0===c.scrollbar.size?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=p(e))}}):null}));EN.displayName="@mantine/core/ScrollAreaScrollbarVisible";const CN=(0,a.forwardRef)(((e,t)=>{const n=iN(),{forceMount:r,...o}=e,[i,s]=(0,a.useState)(!1),l="horizontal"===e.orientation,c=hN((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?e:t)}}),10);return lN(n.viewport,c),lN(n.content,c),r||i?(0,Xr.jsx)(EN,{"data-state":i?"visible":"hidden",...o,ref:t}):null}));CN.displayName="@mantine/core/ScrollAreaScrollbarAuto";const MN=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=iN(),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const{scrollArea:e}=o;let t=0;if(e){const n=()=>{window.clearTimeout(t),s(!0)},r=()=>{t=window.setTimeout((()=>s(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),n||i?(0,Xr.jsx)(CN,{"data-state":i?"visible":"hidden",...r,ref:t}):null}));MN.displayName="@mantine/core/ScrollAreaScrollbarHover";const DN=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=iN(),i="horizontal"===e.orientation,[s,l]=(0,a.useState)("hidden"),c=hN((()=>l("idle")),100);return(0,a.useEffect)((()=>{if("idle"===s){const e=window.setTimeout((()=>l("hidden")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,o.scrollHideDelay]),(0,a.useEffect)((()=>{const{viewport:e}=o,t=i?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("scrolling"),c()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[o.viewport,i,c]),n||"hidden"!==s?(0,Xr.jsx)(EN,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:xN(e.onPointerEnter,(()=>l("interacting"))),onPointerLeave:xN(e.onPointerLeave,(()=>l("idle")))}):null})),_N=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=iN(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return(0,a.useEffect)((()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)})),[l,i,s]),"hover"===o.type?(0,Xr.jsx)(MN,{...r,ref:t,forceMount:n}):"scroll"===o.type?(0,Xr.jsx)(DN,{...r,ref:t,forceMount:n}):"auto"===o.type?(0,Xr.jsx)(CN,{...r,ref:t,forceMount:n}):"always"===o.type?(0,Xr.jsx)(EN,{...r,ref:t}):null}));_N.displayName="@mantine/core/ScrollAreaScrollbar";const AN=(0,a.forwardRef)(((e,t)=>{const{style:n,...r}=e,o=iN(),i=SN(),{onThumbPositionChange:s}=i,l=FM(t,(e=>i.onThumbChange(e))),c=(0,a.useRef)(void 0),u=hN((()=>{c.current&&(c.current(),c.current=void 0)}),100);return(0,a.useEffect)((()=>{const{viewport:e}=o;if(e){const t=()=>{if(u(),!c.current){const t=function(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),(0,Xr.jsx)("div",{"data-state":i.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:xN(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:xN(e.onPointerUp,i.onThumbPointerUp)})}));AN.displayName="@mantine/core/ScrollAreaThumb";const TN=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=SN();return n||o.hasThumb?(0,Xr.jsx)(AN,{ref:t,...r}):null}));TN.displayName="@mantine/core/ScrollAreaThumb";const NN=(0,a.forwardRef)((({children:e,style:t,...n},r)=>{const o=iN(),a=FM(r,o.onViewportChange);return(0,Xr.jsx)(MC,{...n,ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,Xr.jsx)("div",{style:{minWidth:"100%",display:"table"},ref:o.onContentChange,children:e})})}));NN.displayName="@mantine/core/ScrollAreaViewport";var RN={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const IN={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},$N=(e,{scrollbarSize:t,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":DE(t),"--scrollarea-over-scroll-behavior":n}}),LN=kE(((e,t)=>{const n=VE("ScrollArea",IN,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:u,type:d,scrollHideDelay:f,viewportProps:p,viewportRef:h,onScrollPositionChange:m,children:y,offsetScrollbars:g,scrollbars:v,onBottomReached:b,onTopReached:w,overscrollBehavior:x,...O}=n,[S,j]=(0,a.useState)(!1),[P,k]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),M=lC({name:"ScrollArea",props:n,classes:RN,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:u,varsResolver:$N}),D=(0,a.useRef)(null),_=(A=[h,D],a.useMemo((()=>A.every((e=>null==e))?null:e=>{A.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}),A));var A;return(0,a.useEffect)((()=>{if(!D.current)return;if("present"!==g)return;const e=D.current,t=new ResizeObserver((()=>{const{scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:o}=e;k(t>n),C(r>o)}));return t.observe(e),()=>t.disconnect()}),[D,g]),(0,Xr.jsxs)(fN,{type:"never"===d?"always":d,scrollHideDelay:f,ref:t,scrollbars:v,...M("root"),...O,children:[(0,Xr.jsx)(NN,{...p,...M("viewport",{style:p?.style}),ref:_,"data-offset-scrollbars":!0===g?"xy":g||void 0,"data-scrollbars":v||void 0,"data-horizontal-hidden":"present"!==g||E?void 0:"true","data-vertical-hidden":"present"!==g||P?void 0:"true",onScroll:e=>{p?.onScroll?.(e),m?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});const{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t-(n-r)>=0&&b?.(),0===t&&w?.()},children:y}),("xy"===v||"x"===v)&&(0,Xr.jsx)(_N,{...M("scrollbar"),orientation:"horizontal","data-hidden":"never"===d||"present"===g&&!E||void 0,forceMount:!0,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:(0,Xr.jsx)(TN,{...M("thumb")})}),("xy"===v||"y"===v)&&(0,Xr.jsx)(_N,{...M("scrollbar"),orientation:"vertical","data-hidden":"never"===d||"present"===g&&!P||void 0,forceMount:!0,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:(0,Xr.jsx)(TN,{...M("thumb")})}),(0,Xr.jsx)(uN,{...M("corner"),"data-hovered":S||void 0,"data-hidden":"never"===d||void 0})]})}));LN.displayName="@mantine/core/ScrollArea";const FN=kE(((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:a,scrollHideDelay:i,type:s,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,scrollbars:m,style:y,vars:g,onBottomReached:v,onTopReached:b,...w}=VE("ScrollAreaAutosize",IN,e);return(0,Xr.jsx)(MC,{...w,ref:t,style:[{display:"flex",overflow:"auto"},y],children:(0,Xr.jsx)(MC,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,Xr.jsx)(LN,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:a,type:s,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,vars:g,scrollbars:m,onBottomReached:v,onTopReached:b,children:n})})})}));function zN(e){return"group"in e}function WN({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),o=[];for(let a=0;a<e.length;a+=1){const i=e[a];if(o.length===n)return o;zN(i)&&o.push({group:i.group,items:WN({options:i.items,search:t,limit:n-o.length})}),zN(i)||i.label.toLowerCase().includes(r)&&o.push(i)}return o}function BN(e,t=new Set){if(Array.isArray(e))for(const n of e)if(zN(n))BN(n.items,t);else{if(void 0===n.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!=typeof n.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got "+typeof n.value);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function HN({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:o,renderOption:a}){if(!zN(e)){const i=function(e,t){return Array.isArray(e)?e.includes(t):e===t}(n,e.value),s=t&&i&&(0,Xr.jsx)(oN,{className:UA.optionsDropdownCheckIcon}),l=(0,Xr.jsxs)(Xr.Fragment,{children:["left"===r&&s,(0,Xr.jsx)("span",{children:e.label}),"right"===r&&s]});return(0,Xr.jsx)(rN.Option,{value:e.value,disabled:e.disabled,className:c({[UA.optionsDropdownOption]:!o}),"data-reverse":"right"===r||void 0,"data-checked":i||void 0,"aria-selected":i,active:i,children:"function"==typeof a?a({option:e,checked:i}):l})}const i=e.items.map((e=>(0,Xr.jsx)(HN,{data:e,value:n,unstyled:o,withCheckIcon:t,checkIconPosition:r,renderOption:a},e.value)));return(0,Xr.jsx)(rN.Group,{label:e.group,children:i})}function YN({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:o,limit:a,maxDropdownHeight:i,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:c=!1,value:u,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:m,scrollAreaProps:y,"aria-label":g}){BN(e);const v="string"==typeof o?(r||WN)({options:e,search:l?o:"",limit:a??1/0}):e,b=function(e){if(0===e.length)return!0;for(const t of e){if(!("group"in t))return!1;if(t.items.length>0)return!1}return!0}(v),w=v.map((e=>(0,Xr.jsx)(HN,{data:e,withCheckIcon:c,value:u,checkIconPosition:d,unstyled:p,renderOption:m},zN(e)?e.group:e.value)));return(0,Xr.jsx)(rN.Dropdown,{hidden:t||n&&b,"data-composed":!0,children:(0,Xr.jsxs)(rN.Options,{labelledBy:h,"aria-label":g,children:[s?(0,Xr.jsx)(LN.Autosize,{mah:i??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:w}):w,b&&f&&(0,Xr.jsx)(rN.Empty,{children:f})]})})}LN.classes=RN,FN.displayName="@mantine/core/ScrollAreaAutosize",FN.classes=RN,LN.Autosize=FN;const UN={__staticSelector:"InputBase",withAria:!0},VN=IC(((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=function(e,t,n){const r=VE("InputBase",t,n),{label:o,description:a,error:i,required:s,classNames:l,styles:c,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:m,descriptionProps:y,wrapperProps:g,id:v,size:b,style:w,inputContainer:x,inputWrapperOrder:O,withAsterisk:S,variant:j,vars:P,mod:k,...E}=r,{styleProps:C,rest:M}=vC(E);return{...M,classNames:l,styles:c,unstyled:d,wrapperProps:{...{label:o,description:a,error:i,required:s,classNames:l,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:m,descriptionProps:y,unstyled:d,styles:c,size:b,style:w,inputContainer:x,inputWrapperOrder:O,withAsterisk:S,variant:j,id:v,mod:k,...g},...C},inputProps:{required:s,classNames:l,styles:c,unstyled:d,size:b,__staticSelector:f,__stylesApiProps:p||r,error:i,variant:j,id:v}}}(0,UN,e);return(0,Xr.jsx)(CT.Wrapper,{...r,children:(0,Xr.jsx)(CT,{...n,...o,ref:t})})}));VN.classes={...CT.classes,...CT.Wrapper.classes},VN.displayName="@mantine/core/InputBase";const qN={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},GN=kE(((e,t)=>{const n=VE("Select",qN,e),{classNames:r,styles:o,unstyled:i,vars:s,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:u,onDropdownOpen:d,onFocus:f,onBlur:p,onClick:h,onChange:m,data:y,value:g,defaultValue:v,selectFirstOptionOnChange:b,onOptionSubmit:w,comboboxProps:x,readOnly:O,disabled:S,filter:j,limit:P,withScrollArea:k,maxDropdownHeight:E,size:C,searchable:M,rightSection:D,checkIconPosition:_,withCheckIcon:A,nothingFoundMessage:T,name:N,form:R,searchValue:I,defaultSearchValue:$,onSearchChange:L,allowDeselect:F,error:z,rightSectionPointerEvents:W,id:B,clearable:H,clearButtonProps:Y,hiddenInputProps:U,renderOption:V,onClear:q,autoComplete:G,scrollAreaProps:X,__defaultRightSection:K,__clearSection:Z,__clearable:Q,chevronColor:J,...ee}=n,te=(0,a.useMemo)((()=>kM(y)),[y]),ne=(0,a.useMemo)((()=>EM(te)),[te]),re=bM(B),[oe,ae,ie]=jM({value:g,defaultValue:v,finalValue:null,onChange:m}),se="string"==typeof oe?ne[oe]:void 0,le=function(e){const t=(0,a.useRef)(void 0);return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}(se),[ce,ue]=jM({value:I,defaultValue:$,finalValue:se?se.label:"",onChange:L}),de=eN({opened:l,defaultOpened:c,onDropdownOpen:()=>{d?.(),de.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),de.resetSelectedOption()}}),fe=e=>{ue(e),de.resetSelectedOption()},{resolvedClassNames:pe,resolvedStyles:he}=KE({props:n,styles:o,classNames:r});(0,a.useEffect)((()=>{b&&de.selectFirstOption()}),[b,ce]),(0,a.useEffect)((()=>{null===g&&fe(""),"string"!=typeof g||!se||le?.value===se.value&&le?.label===se.label||fe(se.label)}),[g,se]);const me=(0,Xr.jsx)(rN.ClearButton,{...Y,onClear:()=>{ae(null,null),fe(""),q?.()}}),ye=H&&!!oe&&!S&&!O;return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(rN,{store:de,__staticSelector:"Select",classNames:pe,styles:he,unstyled:i,readOnly:O,onOptionSubmit:e=>{w?.(e);const t=F&&ne[e].value===oe?null:ne[e],n=t?t.value:null;n!==oe&&ae(n,t),!ie&&fe("string"==typeof n&&t?.label||""),de.closeDropdown()},size:C,...x,children:[(0,Xr.jsx)(rN.Target,{targetType:M?"input":"button",autoComplete:G,children:(0,Xr.jsx)(VN,{id:re,ref:t,__defaultRightSection:(0,Xr.jsx)(rN.Chevron,{size:C,error:z,unstyled:i,color:J}),__clearSection:me,__clearable:ye,rightSection:D,rightSectionPointerEvents:W||(ye?"all":"none"),...ee,size:C,__staticSelector:"Select",disabled:S,readOnly:O||!M,value:ce,onChange:e=>{fe(e.currentTarget.value),de.openDropdown(),b&&de.selectFirstOption()},onFocus:e=>{M&&de.openDropdown(),f?.(e)},onBlur:e=>{M&&de.closeDropdown(),fe(null!=oe&&ne[oe]?.label||""),p?.(e)},onClick:e=>{M?de.openDropdown():de.toggleDropdown(),h?.(e)},classNames:pe,styles:he,unstyled:i,pointer:!M,error:z})}),(0,Xr.jsx)(YN,{data:te,hidden:O||S,filter:j,search:ce,limit:P,hiddenWhenEmpty:!T,withScrollArea:k,maxDropdownHeight:E,filterOptions:M&&se?.label!==ce,value:oe,checkIconPosition:_,withCheckIcon:A,nothingFoundMessage:T,unstyled:i,labelId:ee.label?`${re}-label`:void 0,"aria-label":ee.label?void 0:ee["aria-label"],renderOption:V,scrollAreaProps:X})]}),(0,Xr.jsx)(rN.HiddenInput,{value:oe,name:N,form:R,disabled:S,...U})]})}));GN.classes={...VN.classes,...rN.classes},GN.displayName="@mantine/core/Select";const XN=()=>{const e=`${YooAnalytics.assetsURL}images/up-trend.png`,t=`${YooAnalytics.assetsURL}images/down-trend.png`,[n,o]=(0,r.useState)(!0),[a,i]=(0,r.useState)([]),[s,l]=(0,r.useState)([]),[c,u]=(0,r.useState)([]),[d,f]=(0,r.useState)([]),[p,h]=(0,r.useState)([]),[m,y]=(0,r.useState)([]),[g,v]=(0,r.useState)(3e4),[b,w]=(0,r.useState)(!1),[x,O]=(0,r.useState)((0,ua.__)("Select Date Range","yooanalytics")),[S,j]=(0,r.useState)((0,ua.__)("Today","yooanalytics")),[P,k]=(0,r.useState)({visitors:0,views:0,online:0,purchase:0}),[E,C]=(0,r.useState)({startDate:new Date,endDate:new Date,key:"selection"}),[M,D]=(0,r.useState)("bar"),_={post:"📬",page:"📄",product:"🛒"},A=[{name:"ID",selector:e=>_[e.type]?(0,Xr.jsx)(ic,{title:e.page_id,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",children:_[e.type]}):(0,Xr.jsx)(ic,{title:e.page_id,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",children:_.post}),grow:0},{name:"Title",selector:e=>(0,Xr.jsx)(ic,{title:e.page_url,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",onClick:()=>window.open(e.page_url,"_blank"),children:e.title}),sortable:!0},{name:"Visitors",selector:e=>e.visitors_count,sortable:!0,grow:0},{name:"Views",selector:e=>e.views_count,sortable:!0,grow:0}];(0,r.useEffect)((()=>{let e;return(g>0||void 0===g)&&T(),g>0&&(e=setInterval(T,g)),()=>clearInterval(e)}),[g]);const T=async(e="",t="")=>{o(!0);const n=await async function({startDate:e="",endDate:t="",period:n="days"}={}){const r=new URLSearchParams;e&&r.set("start",e),t&&r.set("end",t),n&&r.set("period",n);const o=`${YooAnalytics.restURL}/v1/get-analytics?${r.toString()}`,a=await fetch(o,{headers:Ki});if(!a.ok)throw new Error(`Analytics request failed with status ${a.status}`);return(await a.json()).data}(e);n?(n.settings.refresh_interval&&v(n.settings.refresh_interval),k(n.summary),i(n.search_engines),l(n.top_referers),u(n.utm_sources||[]),f(n.utm_mediums||[]),h(n.pages_stats),y(n.datewise_stats)):console.log("fetchAnalytics",n),o(!1)},N=m?.dates?.map(((e,t)=>({date:e,Visitors:parseInt(m?.visitors?.[t]||0),Views:parseInt(m?.views?.[t]||0)})))||[];return(0,Xr.jsx)("div",{className:"yoo-body",children:n?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)("div",{className:"yoo-dashboard-filter",children:(0,Xr.jsx)(Xi,{count:1,height:56,width:"100%"})}),(0,Xr.jsxs)(Ui.Flex,{children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})})]}),(0,Xr.jsxs)(Ui.Flex,{className:"yoo-dashboard-charts",children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:350,width:"100%"})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:350,width:"100%"})})]}),(0,Xr.jsxs)(Ui.Flex,{className:"yoo-dashboard-logs",align:"start",children:[(0,Xr.jsxs)(Ui.FlexItem,{style:{width:"310%"},children:[(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"})]}),(0,Xr.jsx)(Ui.Flex,{direction:"column",style:{width:"100%"},children:(0,Xr.jsxs)(Ui.FlexItem,{style:{width:"100%"},children:[(0,Xr.jsx)(Xi,{count:1,height:252,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:252,width:"100%"})]})})]})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)("div",{className:"yoo-dashboard-filter",children:(0,Xr.jsxs)(Ui.Flex,{children:[(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("label",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Date Range","yooanalytics")})}),(0,Xr.jsx)(Ui.__experimentalInputControl,{placeholder:x,className:"yoo-date-range-picker",readOnly:!0,suffix:(0,Xr.jsx)(Ui.__experimentalInputControlSuffixWrapper,{children:"📆"}),onClick:()=>w(!b)}),b&&(0,Xr.jsxs)("div",{className:"yoo-date-range-picker-container",children:[(0,Xr.jsx)(yc,{dateRange:E,onChange:e=>{C(e.selection);let t={year:"numeric",month:"short",day:"numeric"};O(`${e.selection.startDate.toLocaleDateString("en-US",t)} - ${e.selection.endDate.toLocaleDateString("en-US",t)}`),j((0,ua.__)("Selected Range","yooanalytics"))}}),(0,Xr.jsx)("div",{className:"yoo-menu-items-container",children:(0,Xr.jsxs)(Ui.Flex,{children:[(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsx)("button",{className:"yoo-btn yoo-btn-secondary",onClick:()=>w(!1),children:(0,ua.__)("Close")})}),(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsx)("button",{className:"yoo-btn yoo-btn-primary",onClick:async()=>{w(!1);let e=new Date(E.startDate);e=e.getFullYear()+"-"+(e.getMonth()+1).toString().padStart(2,"0")+"-"+e.getDate().toString().padStart(2,"0");let t=new Date(E.endDate);t=t.getFullYear()+"-"+(t.getMonth()+1).toString().padStart(2,"0")+"-"+t.getDate().toString().padStart(2,"0"),await T(e,t)},children:(0,ua.__)("Apply")})})]})})]})]})}),(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsx)(hc,{sx:{m:1,minWidth:160},size:"small",children:(0,Xr.jsx)(GN,{id:"yoo-auto-refresh",value:g.toString(),label:(0,ua.__)("Refresh Interval (Seconds)"),onChange:e=>(async e=>{let t={refresh_interval:e.target.value};await async function(e){const t=await fetch(`${YooAnalytics.restURL}/v1/update-dashboard`,{headers:Ki,method:"POST",body:JSON.stringify({body:e})});return!!t.ok&&(await t.json()).data}(t)&&v(e.target.value)})({target:{value:parseInt(e)}}),data:[{value:"5000",label:(0,ua.__)("5 Seconds")},{value:"10000",label:(0,ua.__)("10 Seconds")},{value:"30000",label:(0,ua.__)("30 Seconds")},{value:"60000",label:(0,ua.__)("1 Minute")},{value:"300000",label:(0,ua.__)("5 Minutes")},{value:"600000",label:(0,ua.__)("10 Minutes")}]})})})]})}),(0,Xr.jsxs)(Ui.Flex,{className:"yoo-dashboard-stats",children:[(0,Xr.jsxs)(Ui.FlexItem,{className:P.visitors>0?"yoo-stats-box yoo-stats-visitors":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Visitors","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.visitors}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:S})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.visitors>0?e:t,alt:"Stats Trend"})})]})]}),(0,Xr.jsxs)(Ui.FlexItem,{className:P.views>0?"yoo-stats-box yoo-stats-views":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Views","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.views}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:S})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.views>0?e:t,alt:"Stats Trend"})})]})]}),(0,Xr.jsxs)(Ui.FlexItem,{className:P.online>0?"yoo-stats-box yoo-stats-online":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Online","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.online}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:(0,ua.__)("In last 30 minutes","yooanalytics")})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.online>0?e:t,alt:"Stats Trend"})})]})]}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsxs)(Ui.FlexItem,{className:P.purchase>0?"yoo-stats-box yoo-stats-purchase":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Purchase","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.purchase}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:S})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.purchase>0?e:t,alt:"Stats Trend"})})]})]})]}),(0,Xr.jsxs)(Ui.Flex,{style:{margin:"24px 0",gap:"var(--wp--preset--spacing--lg, 24px)",alignItems:"flex-start"},children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"25%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-search-engines-card",style:0===a.length?{backgroundColor:"#ffebee"}:void 0,children:0===a.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🔍"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No Search Engine data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🔍 ",(0,ua.__)("Search Engines","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Search Engine","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Views","yooanalytics")})})]}),Object.keys(a).map(((e,t)=>{let n=a[t].referer_url,r=(o=n).includes("google")?"Google":o.includes("bing")?"Bing":o.includes("yahoo")?"Yahoo":o.includes("duckduckgo")?"DuckDuckGo":o.includes("yandex")?"Yandex":o.includes("baidu")?"Baidu":"Other";var o;let i=a[t].count;return(0,Xr.jsxs)("tr",{title:n,children:[(0,Xr.jsxs)("td",{children:[(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/search-engines/${r}.png`}),r]}),(0,Xr.jsx)("td",{children:i})]})}))]})})]},"0.1")})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"25%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-top-referers-card",style:0===s.length?{backgroundColor:"#ffebee"}:void 0,children:0===s.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🌏"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No Referrers data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["⬇️ ",(0,ua.__)("Top 10 Referrers","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Referrer URL","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Views","yooanalytics")})})]}),Object.keys(s).map(((e,t)=>{let n=s[t].count,r=s[t].referer_url.length>19?s[t].referer_url.substring(0,19)+"...":s[t].referer_url;return(0,Xr.jsxs)("tr",{onClick:()=>window.open(s[t].referer_url,"_blank"),children:[(0,Xr.jsx)("td",{children:(0,Xr.jsxs)(ic,{title:s[t].referer_url,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",children:["🌏 ",r]})}),(0,Xr.jsx)("td",{children:n})]})}))]})})]},"0.1")})}),YooAnalytics.hasActiveValidLicense?(0,Xr.jsxs)("div",{style:{width:"50%",display:"flex",gap:"var(--wp--preset--spacing--lg, 24px)"},children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-source-card",style:0===c.length?{backgroundColor:"#ffebee"}:void 0,children:0===c.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🔗"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No UTM Source data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🔗 ",(0,ua.__)("UTM Sources","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Source","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Count","yooanalytics")})})]}),c.map(((e,t)=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:e.utm_source||(0,Xr.jsx)("span",{style:{color:"#aaa"},children:(0,ua.__)("(none)","yooanalytics")})}),(0,Xr.jsx)("td",{children:e.count})]},t)))]})})]},"0.2")})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-medium-card",style:0===d.length?{backgroundColor:"#ffebee"}:void 0,children:0===d.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🛤️"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No UTM Medium data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🛤️ ",(0,ua.__)("UTM Mediums","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Medium","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Count","yooanalytics")})})]}),d.map(((e,t)=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:e.utm_medium||(0,Xr.jsx)("span",{style:{color:"#aaa"},children:(0,ua.__)("(none)","yooanalytics")})}),(0,Xr.jsx)("td",{children:e.count})]},t)))]})})]},"0.3")})})]}):(0,Xr.jsxs)("div",{style:{width:"50%",display:"flex",gap:"var(--wp--preset--spacing--lg, 24px)",position:"relative"},children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-source-card",style:{filter:"blur(4px)",pointerEvents:"none"},children:(0,Xr.jsxs)("div",{style:{padding:16},children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🔗 ",(0,ua.__)("UTM Sources","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsx)("table",{width:"100%",children:[0,1,2,3].map((e=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:"••••••••"}),(0,Xr.jsx)("td",{style:{textAlign:"right"},children:"••"})]},e)))})})]})})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-medium-card",style:{filter:"blur(4px)",pointerEvents:"none"},children:(0,Xr.jsxs)("div",{style:{padding:16},children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🛤️ ",(0,ua.__)("UTM Mediums","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsx)("table",{width:"100%",children:[0,1,2,3].map((e=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:"••••••••"}),(0,Xr.jsx)("td",{style:{textAlign:"right"},children:"••"})]},e)))})})]})})}),(0,Xr.jsx)("div",{className:"yoo-pro-overlay-wrapper",children:(0,Xr.jsxs)("div",{className:"yoo-pro-overlay",children:[(0,Xr.jsxs)("h4",{children:["🔒 ",(0,ua.__)("UTM Analytics is a Pro feature","yooanalytics")]}),(0,Xr.jsx)("p",{children:(0,ua.__)("Upgrade to YooAnalytics Pro to unlock UTM Source and Medium analytics.","yooanalytics")}),(0,Xr.jsx)("button",{className:"yoo-btn yoo-btn-primary yoo-pro-cta",onClick:()=>window.open("https://www.yooanalytics.com/?utm_source=plugin&utm_medium=dashboard&utm_campaign=Upgrade+To+Pro","_blank"),children:(0,ua.__)("Get YooAnalytics Pro","yooanalytics")})]})})]})]}),(0,Xr.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",margin:"16px 0",maxWidth:"100%"},children:(0,Xr.jsx)("div",{style:{minWidth:180},children:(0,Xr.jsx)(GN,{value:M,onChange:D,data:[{value:"bar",label:(0,ua.__)("Bar Chart","yooanalytics")},{value:"line",label:(0,ua.__)("Line Chart","yooanalytics")}],size:"sm"})})}),(0,Xr.jsx)("div",{className:"yoo-dashboard-charts",children:(0,Xr.jsx)("div",{className:"yoo-dashboard-chart yoo-dashboard-cards",children:(0,Xr.jsxs)("div",{children:["bar"===M&&(0===m.dates.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"📊"}),(0,Xr.jsx)("h2",{children:(0,ua.__)("No Stats Found!","yooanalytics")})]}):(0,Xr.jsx)(JC,{h:350,data:N,dataKey:"date",type:"stacked",legendProps:{verticalAlign:"bottom"},series:[{name:"Visitors",label:(0,ua.__)("Visitors","yooanalytics"),color:"#1a7efb"},{name:"Views",label:(0,ua.__)("Views","yooanalytics"),color:"#d7ebff"}],barChartProps:{barSize:20,radius:7},noDataText:(0,ua.__)("No analytics data available","yooanalytics")})),"line"===M&&(0===m.dates.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"📈"}),(0,Xr.jsx)("h2",{children:(0,ua.__)("No Stats Found!","yooanalytics")})]}):(0,Xr.jsx)(SM,{h:350,data:N,dataKey:"date",series:[{name:"Visitors",color:"#1a7efb",label:(0,ua.__)("Visitors","yooanalytics")},{name:"Views",color:"#d7ebff",label:(0,ua.__)("Views","yooanalytics"),strokeDasharray:"5 5"}],curveType:"linear",legendProps:{verticalAlign:"bottom"},dotProps:{r:4,strokeWidth:1},activeDotProps:{r:6,fill:"#fff",strokeWidth:2}}))]})})}),(0,Xr.jsx)("div",{style:{marginTop:32},children:0!==p.length?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)("h1",{children:["🔢 ",(0,ua.__)("Pages","yooanalytics")]}),(0,Xr.jsx)(Qi,{columns:A,data:p})]}):(0,Xr.jsx)("div",{className:"yoo-dashboard-cards yoo-dashboard-stats",children:(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"📊"}),(0,Xr.jsx)("h2",{children:(0,ua.__)("No Visits Found, Let's wait for amazing performance.","yooanalytics")})]})})})]})})};var KN={root:"m_4081bf90"};const ZN={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},QN=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:a,wrap:i},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":_C(r),"--group-align":o,"--group-justify":a,"--group-wrap":i}}),JN=kE(((e,t)=>{const n=VE("Group",ZN,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,children:c,gap:u,align:d,justify:f,wrap:p,grow:h,preventGrowOverflow:m,vars:y,variant:g,__size:v,mod:b,...w}=n,x=function(e){return a.Children.toArray(e).filter(Boolean)}(c),O=x.length,S=_C(u??"md"),j=lC({name:"Group",props:n,stylesCtx:{childWidth:`calc(${100/O}% - (${S} - ${S} / ${O}))`},className:o,style:i,classes:KN,classNames:r,styles:s,unstyled:l,vars:y,varsResolver:QN});return(0,Xr.jsx)(MC,{...j("root"),ref:t,variant:g,mod:[{grow:h},b],size:v,...w,children:x})}));JN.classes=KN,JN.displayName="@mantine/core/Group";const eR=["h1","h2","h3","h4","h5","h6"],tR=["xs","sm","md","lg","xl"];var nR={root:"m_8a5d1357"};const rR={order:1},oR=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const a=function(e,t){const n=void 0!==t?t:`h${e}`;return eR.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:tR.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:DE(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}(t,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":"number"==typeof r?r.toString():void 0,"--title-text-wrap":o}}},aR=kE(((e,t)=>{const n=VE("Title",rR,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,order:l,vars:c,size:u,variant:d,lineClamp:f,textWrap:p,mod:h,...m}=n,y=lC({name:"Title",props:n,classes:nR,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:c,varsResolver:oR});return[1,2,3,4,5,6].includes(l)?(0,Xr.jsx)(MC,{...y("root"),component:`h${l}`,variant:d,ref:t,mod:[{order:l,"data-line-clamp":"number"==typeof f},h],size:u,...m}):null}));aR.classes=nR,aR.displayName="@mantine/core/Title";var iR={root:"m_b6d8b162"};function sR(e){return"start"===e?"start":"end"===e||e?"end":void 0}const lR={inherit:!1},cR=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:a})=>({root:{"--text-fz":TC(o),"--text-lh":NC(o),"--text-gradient":"gradient"===t?TE(r,e):void 0,"--text-line-clamp":"number"==typeof n?n.toString():void 0,"--text-color":a?jE(a,e):void 0}}),uR=IC(((e,t)=>{const n=VE("Text",lR,e),{lineClamp:r,truncate:o,inline:a,inherit:i,gradient:s,span:l,__staticSelector:c,vars:u,className:d,style:f,classNames:p,styles:h,unstyled:m,variant:y,mod:g,size:v,...b}=n,w=lC({name:["Text",c],props:n,classes:iR,className:d,style:f,classNames:p,styles:h,unstyled:m,vars:u,varsResolver:cR});return(0,Xr.jsx)(MC,{...w("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":sR(o),"data-line-clamp":"number"==typeof r,"data-inline":a,"data-inherit":i},g],size:v,...b})}));uR.classes=iR,uR.displayName="@mantine/core/Text";var dR={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const fR=(0,a.forwardRef)((({className:e,...t},n)=>(0,Xr.jsxs)(MC,{component:"span",className:c(dR.barsLoader,e),...t,ref:n,children:[(0,Xr.jsx)("span",{className:dR.bar}),(0,Xr.jsx)("span",{className:dR.bar}),(0,Xr.jsx)("span",{className:dR.bar})]})));fR.displayName="@mantine/core/Bars";const pR=(0,a.forwardRef)((({className:e,...t},n)=>(0,Xr.jsxs)(MC,{component:"span",className:c(dR.dotsLoader,e),...t,ref:n,children:[(0,Xr.jsx)("span",{className:dR.dot}),(0,Xr.jsx)("span",{className:dR.dot}),(0,Xr.jsx)("span",{className:dR.dot})]})));pR.displayName="@mantine/core/Dots";const hR=(0,a.forwardRef)((({className:e,...t},n)=>(0,Xr.jsx)(MC,{component:"span",className:c(dR.ovalLoader,e),...t,ref:n})));hR.displayName="@mantine/core/Oval";const mR={bars:fR,oval:hR,dots:pR},yR={loaders:mR,type:"oval"},gR=(e,{size:t,color:n})=>({root:{"--loader-size":DC(t,"loader-size"),"--loader-color":n?jE(n,e):void 0}}),vR=kE(((e,t)=>{const n=VE("Loader",yR,e),{size:r,color:o,type:a,vars:i,className:s,style:l,classNames:c,styles:u,unstyled:d,loaders:f,variant:p,children:h,...m}=n,y=lC({name:"Loader",props:n,classes:dR,className:s,style:l,classNames:c,styles:u,unstyled:d,vars:i,varsResolver:gR});return h?(0,Xr.jsx)(MC,{...y("root"),ref:t,...m,children:h}):(0,Xr.jsx)(MC,{...y("root"),ref:t,component:f[a],variant:p,size:r,...m})}));vR.defaultLoaders=mR,vR.classes=dR,vR.displayName="@mantine/core/Loader";var bR={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const wR={orientation:"horizontal"},xR=(e,{borderWidth:t})=>({group:{"--button-border-width":DE(t)}}),OR=kE(((e,t)=>{const n=VE("ButtonGroup",wR,e),{className:r,style:o,classNames:a,styles:i,unstyled:s,orientation:l,vars:c,borderWidth:u,variant:d,mod:f,...p}=VE("ButtonGroup",wR,e),h=lC({name:"ButtonGroup",props:n,classes:bR,className:r,style:o,classNames:a,styles:i,unstyled:s,vars:c,varsResolver:xR,rootSelector:"group"});return(0,Xr.jsx)(MC,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})}));OR.classes=bR,OR.displayName="@mantine/core/ButtonGroup";const SR={},jR=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:a,size:i})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{groupSection:{"--section-height":DC(i,"section-height"),"--section-padding-x":DC(i,"section-padding-x"),"--section-fz":i?.includes("compact")?TC(i.replace("compact-","")):TC(i),"--section-radius":void 0===t?void 0:AC(t),"--section-bg":n||o?s.background:void 0,"--section-color":s.color,"--section-bd":n||o?s.border:void 0}}},PR=kE(((e,t)=>{const n=VE("ButtonGroupSection",SR,e),{className:r,style:o,classNames:a,styles:i,unstyled:s,vars:l,variant:c,gradient:u,radius:d,autoContrast:f,...p}=VE("ButtonGroupSection",SR,e),h=lC({name:"ButtonGroupSection",props:n,classes:bR,className:r,style:o,classNames:a,styles:i,unstyled:s,vars:l,varsResolver:jR,rootSelector:"groupSection"});return(0,Xr.jsx)(MC,{...h("groupSection"),ref:t,variant:c,...p})}));PR.classes=bR,PR.displayName="@mantine/core/ButtonGroupSection";const kR={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${DE(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},ER={},CR=(e,{radius:t,color:n,gradient:r,variant:o,size:a,justify:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{root:{"--button-justify":i,"--button-height":DC(a,"button-height"),"--button-padding-x":DC(a,"button-padding-x"),"--button-fz":a?.includes("compact")?TC(a.replace("compact-","")):TC(a),"--button-radius":void 0===t?void 0:AC(t),"--button-bg":n||o?l.background:void 0,"--button-hover":n||o?l.hover:void 0,"--button-color":l.color,"--button-bd":n||o?l.border:void 0,"--button-hover-color":n||o?l.hoverColor:void 0}}},MR=IC(((e,t)=>{const n=VE("Button",ER,e),{style:r,vars:o,className:a,color:i,disabled:s,children:l,leftSection:c,rightSection:u,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:m,gradient:y,classNames:g,styles:v,unstyled:b,"data-disabled":w,autoContrast:x,mod:O,...S}=n,j=lC({name:"Button",props:n,classes:bR,className:a,style:r,classNames:g,styles:v,unstyled:b,vars:o,varsResolver:CR}),P=!!c,k=!!u;return(0,Xr.jsxs)(eT,{ref:t,...j("root",{active:!s&&!h&&!w}),unstyled:b,variant:f,disabled:s||h,mod:[{disabled:s||w,loading:h,block:d,"with-left-section":P,"with-right-section":k},O],...S,children:[(0,Xr.jsx)(KM,{mounted:!!h,transition:kR,duration:150,children:e=>(0,Xr.jsx)(MC,{component:"span",...j("loader",{style:e}),"aria-hidden":!0,children:(0,Xr.jsx)(vR,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...m})})}),(0,Xr.jsxs)("span",{...j("inner"),children:[c&&(0,Xr.jsx)(MC,{component:"span",...j("section"),mod:{position:"left"},children:c}),(0,Xr.jsx)(MC,{component:"span",mod:{loading:h},...j("label"),children:l}),u&&(0,Xr.jsx)(MC,{component:"span",...j("section"),mod:{position:"right"},children:u})]})]})}));function DR(e){const t=function(e){return"string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e}(e);return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}function _R(e,t){return DR(e in t?t[e]:e)}function AR(e){return"object"==typeof e&&null!==e?"base"in e?e.base:void 0:e}function TR({spacing:e,verticalSpacing:t,cols:n,selector:r}){const o=YE(),a=void 0===t?e:t,i=EE({"--sg-spacing-x":_C(AR(e)),"--sg-spacing-y":_C(AR(a)),"--sg-cols":AR(n)?.toString()}),s=cC(o.breakpoints).reduce(((t,r)=>(t[r]||(t[r]={}),"object"==typeof e&&void 0!==e[r]&&(t[r]["--sg-spacing-x"]=_C(e[r])),"object"==typeof a&&void 0!==a[r]&&(t[r]["--sg-spacing-y"]=_C(a[r])),"object"==typeof n&&void 0!==n[r]&&(t[r]["--sg-cols"]=n[r]),t)),{}),l=function(e,t){const n=e.map((e=>({value:e,px:_R(e,t)})));return n.sort(((e,t)=>e.px-t.px)),n}(cC(s),o.breakpoints).filter((e=>cC(s[e.value]).length>0)),c=l.map((e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:s[e.value]})));return(0,Xr.jsx)(fC,{styles:i,media:c,selector:r})}function NR(e){return"object"==typeof e&&null!==e?cC(e):[]}function RR({spacing:e,verticalSpacing:t,cols:n,selector:r}){const o=void 0===t?e:t,a=EE({"--sg-spacing-x":_C(AR(e)),"--sg-spacing-y":_C(AR(o)),"--sg-cols":AR(n)?.toString()}),i=function({spacing:e,verticalSpacing:t,cols:n}){return Array.from(new Set([...NR(e),...NR(t),...NR(n)])).sort(((e,t)=>DR(e)-DR(t)))}({spacing:e,verticalSpacing:t,cols:n}),s=i.reduce(((t,r)=>(t[r]||(t[r]={}),"object"==typeof e&&void 0!==e[r]&&(t[r]["--sg-spacing-x"]=_C(e[r])),"object"==typeof o&&void 0!==o[r]&&(t[r]["--sg-spacing-y"]=_C(o[r])),"object"==typeof n&&void 0!==n[r]&&(t[r]["--sg-cols"]=n[r]),t)),{}),l=i.map((e=>({query:`simple-grid (min-width: ${e})`,styles:s[e]})));return(0,Xr.jsx)(fC,{styles:a,container:l,selector:r})}MR.classes=bR,MR.displayName="@mantine/core/Button",MR.Group=OR,MR.GroupSection=PR;var IR={container:"m_925c2d2c",root:"m_2415a157"};const $R={cols:1,spacing:"md",type:"media"},LR=kE(((e,t)=>{const n=VE("SimpleGrid",$R,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,cols:c,verticalSpacing:u,spacing:d,type:f,...p}=n,h=lC({name:"SimpleGrid",classes:IR,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l}),m=EC();return"container"===f?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(RR,{...n,selector:`.${m}`}),(0,Xr.jsx)("div",{...h("container"),children:(0,Xr.jsx)(MC,{ref:t,...h("root",{className:m}),...p})})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(TR,{...n,selector:`.${m}`}),(0,Xr.jsx)(MC,{ref:t,...h("root",{className:m}),...p})]})}));LR.classes=IR,LR.displayName="@mantine/core/SimpleGrid";var FR={root:"m_1b7284a3"};const zR={},WR=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":void 0===t?void 0:AC(t),"--paper-shadow":RC(n)}}),BR=IC(((e,t)=>{const n=VE("Paper",zR,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,withBorder:l,vars:c,radius:u,shadow:d,variant:f,mod:p,...h}=n,m=lC({name:"Paper",props:n,classes:FR,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:c,varsResolver:WR});return(0,Xr.jsx)(MC,{ref:t,mod:[{"data-with-border":l},p],...m("root"),variant:f,...h})}));BR.classes=FR,BR.displayName="@mantine/core/Paper";const[HR,YR]=ZM("Card component was not found in tree");var UR={root:"m_e615b15f",section:"m_599a2148"};const VR={},qR=IC(((e,t)=>{const n=VE("CardSection",VR,e),{classNames:r,className:o,style:a,styles:i,vars:s,withBorder:l,inheritPadding:c,mod:u,...d}=n,f=YR();return(0,Xr.jsx)(MC,{ref:t,mod:[{"with-border":l,"inherit-padding":c},u],...f.getStyles("section",{className:o,style:a,styles:i,classNames:r}),...d})}));qR.classes=UR,qR.displayName="@mantine/core/CardSection";const GR={},XR=(e,{padding:t})=>({root:{"--card-padding":_C(t)}}),KR=IC(((e,t)=>{const n=VE("Card",GR,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,children:u,padding:d,...f}=n,p=lC({name:"Card",props:n,classes:UR,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:XR}),h=a.Children.toArray(u),m=h.map(((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===qR?(0,a.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===h.length-1||void 0}):e));return(0,Xr.jsx)(HR,{value:{getStyles:p},children:(0,Xr.jsx)(BR,{ref:t,unstyled:l,...p("root"),...f,children:m})})}));KR.classes=UR,KR.displayName="@mantine/core/Card",KR.Section=qR;var ZR={root:"m_6d731127"};const QR={gap:"md",align:"stretch",justify:"flex-start"},JR=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":_C(t),"--stack-align":n,"--stack-justify":r}}),eI=kE(((e,t)=>{const n=VE("Stack",QR,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,align:c,justify:u,gap:d,variant:f,...p}=n,h=lC({name:"Stack",props:n,classes:ZR,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:JR});return(0,Xr.jsx)(MC,{ref:t,...h("root"),variant:f,...p})}));eI.classes=ZR,eI.displayName="@mantine/core/Stack";const[tI,nI]=ZM("Progress.Root component was not found in tree");var rI={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const oI={},aI=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ProgressLabel",oI,e),l=nI();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("label",{className:r,style:o,classNames:n,styles:a}),...s})}));aI.classes=rI,aI.displayName="@mantine/core/ProgressLabel";const iI={},sI=(e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":DC(t,"progress-size"),"--progress-radius":void 0===n?void 0:AC(n),"--progress-transition-duration":"number"==typeof r?`${r}ms`:void 0}}),lI=kE(((e,t)=>{const n=VE("ProgressRoot",iI,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,autoContrast:c,transitionDuration:u,...d}=n,f=lC({name:"Progress",classes:rI,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:sI});return(0,Xr.jsx)(tI,{value:{getStyles:f,autoContrast:c},children:(0,Xr.jsx)(MC,{ref:t,...f("root"),...d})})}));function cI({color:e,theme:t,autoContrast:n}){return("boolean"==typeof n?n:t.autoContrast)&&SE({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function uI(e,t){return cI({color:e.colors[e.primaryColor][bE(e,t)],theme:e,autoContrast:null})}function dI(e,t){return"boolean"==typeof e?e:t.autoContrast}lI.classes=rI,lI.displayName="@mantine/core/ProgressRoot";const fI={withAria:!0},pI=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,value:s,withAria:l,color:c,striped:u,animated:d,mod:f,...p}=VE("ProgressSection",fI,e),h=nI(),m=YE(),y=l?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,"aria-valuetext":`${s}%`}:{};return(0,Xr.jsx)(MC,{ref:t,...h.getStyles("section",{className:r,classNames:n,styles:a,style:o}),...p,...y,mod:[{striped:u||d,animated:d},f],__vars:{"--progress-section-width":`${s}%`,"--progress-section-color":jE(c,m),"--progress-label-color":dI(h.autoContrast,m)?cI({color:c,theme:m,autoContrast:h.autoContrast}):void 0}})}));pI.classes=rI,pI.displayName="@mantine/core/ProgressSection";const hI={},mI=kE(((e,t)=>{const n=VE("Progress",hI,e),{value:r,classNames:o,styles:a,vars:i,color:s,striped:l,animated:c,"aria-label":u,...d}=n,{resolvedClassNames:f,resolvedStyles:p}=KE({classNames:o,styles:a,props:n});return(0,Xr.jsx)(lI,{ref:t,classNames:f,styles:p,vars:i,...d,children:(0,Xr.jsx)(pI,{value:r,color:s,striped:l,animated:c,"aria-label":u})})}));mI.classes=rI,mI.displayName="@mantine/core/Progress",mI.Section=pI,mI.Root=lI,mI.Label=aI;const yI={duration:100,transition:"fade"};function gI(e,t){return Array.isArray(e)?[...e].reduce(((e,n)=>({...e,...gI(n,t)})),{}):"function"==typeof e?e(t):null==e?{}:e}var vI={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const bI={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:DM("popover")},wI=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:AC(t),"--tooltip-bg":n?jE(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),xI=kE(((e,t)=>{const n=VE("TooltipFloating",bI,e),{children:r,refProp:o,withinPortal:i,style:s,className:l,classNames:c,styles:u,unstyled:d,radius:f,color:p,label:h,offset:m,position:y,multiline:g,zIndex:v,disabled:b,defaultOpened:w,variant:x,vars:O,portalProps:S,...j}=n,P=YE(),k=lC({name:"TooltipFloating",props:n,classes:vI,className:l,style:s,classNames:c,styles:u,unstyled:d,rootSelector:"tooltip",vars:O,varsResolver:wI}),{handleMouseMove:E,x:C,y:M,opened:D,boundaryRef:_,floating:A,setOpened:T}=function({offset:e,position:t,defaultOpened:n}){const[r,o]=(0,a.useState)(n),i=(0,a.useRef)(null),{x:s,y:l,elements:c,refs:u,update:d,placement:f}=_A({placement:t,middleware:[U_({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=f.includes("right")?e:t.includes("left")?-1*e:0,h=f.includes("bottom")?e:t.includes("top")?-1*e:0,m=(0,a.useCallback)((({clientX:e,clientY:t})=>{u.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+p,top:t+h,right:e,bottom:t})})}),[c.reference]);return(0,a.useEffect)((()=>{if(u.floating.current){const e=i.current;e.addEventListener("mousemove",m);const t=d_(u.floating.current);return t.forEach((e=>{e.addEventListener("scroll",d)})),()=>{e.removeEventListener("mousemove",m),t.forEach((e=>{e.removeEventListener("scroll",d)}))}}}),[c.reference,u.floating.current,d,m,r]),{handleMouseMove:m,x:s,y:l,opened:r,setOpened:o,boundaryRef:i,floating:u.setFloating}}({offset:m,position:y,defaultOpened:w});if(!pD(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const N=FM(_,OD(r),t),R=r.props;return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(HM,{...S,withinPortal:i,children:(0,Xr.jsx)(MC,{...j,...k("tooltip",{style:{...gI(s,P),zIndex:v,display:!b&&D?"block":"none",top:(M&&Math.round(M))??"",left:(C&&Math.round(C))??""}}),variant:x,ref:A,mod:{multiline:g},children:h})}),(0,a.cloneElement)(r,{...R,[o]:N,onMouseEnter:e=>{R.onMouseEnter?.(e),E(e),T(!0)},onMouseLeave:e=>{R.onMouseLeave?.(e),T(!1)}})]})}));xI.classes=vI,xI.displayName="@mantine/core/TooltipFloating";const OI=(0,a.createContext)(!1),SI=OI.Provider,jI={openDelay:0,closeDelay:0};function PI(e){const{openDelay:t,closeDelay:n,children:r}=VE("TooltipGroup",jI,e);return(0,Xr.jsx)(SI,{value:!0,children:(0,Xr.jsx)(jA,{delay:{open:t,close:n},children:r})})}function kI(e){const t=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),n=[Y_(e.offset)];return t.shift&&n.push(U_("boolean"==typeof t.shift?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push("boolean"==typeof t.flip?q_():q_(t.flip)),n.push(X_({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push("boolean"==typeof t.inline?G_():G_(t.inline)):e.inline&&n.push(G_()),n}function EI(e){const[t,n]=(0,a.useState)(e.defaultOpened),r="boolean"==typeof e.opened?e.opened:t,o=(0,a.useContext)(OI),i=bM(),s=(0,a.useCallback)((e=>{n(e),e&&v(i)}),[i]),{x:l,y:c,context:u,refs:d,update:f,placement:p,middlewareData:{arrow:{x:h,y:m}={}}}=_A({strategy:e.strategy,placement:e.position,open:r,onOpenChange:s,middleware:kI(e)}),{delay:y,currentId:g,setCurrentId:v}=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:s=!0}=t,l=null!=i?i:o,c=a.useContext(SA),{currentId:u,setCurrentId:d,initialDelay:f,setState:p,timeoutMs:h}=c;return lA((()=>{s&&u&&(p({delay:{open:1,close:wA(f,"close")}}),u!==l&&r(!1))}),[s,l,r,p,u,f]),lA((()=>{function e(){r(!1),p({delay:f,currentId:null})}if(s&&u&&!n&&u===l){if(h){const t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}}),[s,n,p,u,l,r,f,h]),lA((()=>{s&&d!==OA&&n&&d(l)}),[s,n,d,l]),c}(u,{id:i}),{getReferenceProps:b,getFloatingProps:w}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>RA(t,e,"reference")),t),i=a.useCallback((t=>RA(t,e,"floating")),n),s=a.useCallback((t=>RA(t,e,"item")),r);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([xA(u,{enabled:e.events?.hover,delay:o?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),AA(u,{enabled:e.events?.focus,visibleOnly:!0}),$A(u,{role:"tooltip"}),DA(u,{enabled:void 0===e.opened})]);LA({opened:r,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:d,update:f}}),GM((()=>{e.onPositionChange?.(p)}),[p]);const x=r&&g&&g!==i;return{x:l,y:c,arrowX:h,arrowY:m,reference:d.setReference,floating:d.setFloating,getFloatingProps:w,getReferenceProps:b,isGroupPhase:x,opened:r,placement:p}}PI.displayName="@mantine/core/TooltipGroup",PI.extend=e=>e;const CI={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:DM("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},MI=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:AC(t),"--tooltip-bg":n?jE(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),DI=kE(((e,t)=>{const n=VE("Tooltip",CI,e),{children:r,position:o,refProp:i,label:s,openDelay:l,closeDelay:u,onPositionChange:d,opened:f,defaultOpened:p,withinPortal:h,radius:m,color:y,classNames:g,styles:v,unstyled:b,style:w,className:x,withArrow:O,arrowSize:S,arrowOffset:j,arrowRadius:P,arrowPosition:k,offset:E,transitionProps:C,multiline:M,events:D,zIndex:_,disabled:A,positionDependencies:T,onClick:N,onMouseEnter:R,onMouseLeave:I,inline:$,variant:L,keepMounted:F,vars:z,portalProps:W,mod:B,floatingStrategy:H,middlewares:Y,...U}=VE("Tooltip",CI,n),{dir:V}=AM(),q=(0,a.useRef)(null),G=EI({position:TM(V,o),closeDelay:u,openDelay:l,onPositionChange:d,opened:f,defaultOpened:p,events:D,arrowRef:q,arrowOffset:j,offset:"number"==typeof E?E+(O?S/2:0):E,positionDependencies:[...T,r],inline:$,strategy:H,middlewares:Y}),X=lC({name:"Tooltip",props:n,classes:vI,className:x,style:w,classNames:g,styles:v,unstyled:b,rootSelector:"tooltip",vars:z,varsResolver:MI});if(!pD(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const K=FM(G.reference,OD(r),t),Z=function(e){return{...yI,duration:100,transition:"fade",...e}}(C),Q=r.props;return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(HM,{...W,withinPortal:h,children:(0,Xr.jsx)(KM,{...Z,keepMounted:F,mounted:!A&&!!G.opened,duration:G.isGroupPhase?10:Z.duration,children:e=>(0,Xr.jsxs)(MC,{...U,"data-fixed":"fixed"===H||void 0,variant:L,mod:[{multiline:M},B],...G.getFloatingProps({ref:G.floating,className:X("tooltip").className,style:{...X("tooltip").style,...e,zIndex:_,top:G.y??0,left:G.x??0}}),children:[s,(0,Xr.jsx)(iD,{ref:q,arrowX:G.arrowX,arrowY:G.arrowY,visible:O,position:G.placement,arrowSize:S,arrowOffset:j,arrowRadius:P,arrowPosition:k,...X("arrow")})]})})}),(0,a.cloneElement)(r,G.getReferenceProps({onClick:N,onMouseEnter:R,onMouseLeave:I,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:c(x,Q.className),...Q,[i]:K}))]})}));DI.classes=vI,DI.displayName="@mantine/core/Tooltip",DI.Floating=xI,DI.Group=PI;const _I=()=>{const[e,t]=(0,r.useState)(10),[n,o]=(0,r.useState)([]),[a,i]=(0,r.useState)(!1),s=(0,r.useRef)(null),l=async()=>{i(!0);try{const e=await fetch(`${YooAnalytics.restURL}/v1/realtime?window_seconds=1800`,{credentials:"same-origin",headers:{"X-WP-Nonce":YooAnalytics.nonce}}),t=await e.json();t.success?o(t.data||[]):o([])}catch(e){o([])}i(!1)};(0,r.useEffect)((()=>(l(),s.current&&clearInterval(s.current),s.current=setInterval(l,1e3*e),()=>{s.current&&clearInterval(s.current)})),[e]);const c=[{value:"5",label:`5 ${(0,ua.__)("Seconds","yooanalytics")}`},{value:"10",label:`10 ${(0,ua.__)("Seconds","yooanalytics")}`},{value:"30",label:`30 ${(0,ua.__)("Seconds","yooanalytics")}`},{value:"60",label:`1 ${(0,ua.__)("Minute","yooanalytics")}`},{value:"300",label:`5 ${(0,ua.__)("Minutes","yooanalytics")}`},{value:"600",label:`10 ${(0,ua.__)("Minutes","yooanalytics")}`}],u=e=>e?String(e).replace(/\/+$|\s+$/g,""):"",d=(e,t,n)=>{const r={};return e.forEach((e=>{let o=e[t]||"";o&&("function"==typeof n&&(o=n(o)),o&&(r[o]=(r[o]||0)+1))})),Object.entries(r).map((([e,t])=>({value:e,count:t})))};let f=d(Array.isArray(n)?n.filter((e=>e.utm_source)):[],"utm_source",u);f=Array.isArray(f)?f.map((e=>({utm_source:e.value,count:e.count}))):[];let p=d(Array.isArray(n)?n.filter((e=>e.utm_medium)):[],"utm_medium",u);p=Array.isArray(p)?p.map((e=>({utm_medium:e.value,count:e.count}))):[];let h=d(Array.isArray(n)?n.filter((e=>e.utm_campaign)):[],"utm_campaign",u);h=Array.isArray(h)?h.map((e=>({utm_campaign:e.value,count:e.count}))):[];const m=d(n,"referer_url").map(((e,t)=>({referer_url:e.value,count:e.count}))),y=d(n,"page_url").map(((e,t)=>({page_url:e.value,count:e.count}))),g=d(n,"user_agent").map(((e,t)=>({user_agent:e.value,count:e.count}))),v=(e,t,n=4)=>{if(!Array.isArray(e)||0===e.length)return{total:0,rows:[]};const r=e.reduce(((e,t)=>e+(t.count||0)),0),o=[...e].sort(((e,t)=>(t.count||0)-(e.count||0))),a=o.slice(0,n).map((e=>({label:e[t]||"None",count:e.count||0,percent:r>0?Math.round(e.count/r*100):0})));return{total:r,rows:a}},b=v(f,"utm_source",4),w=v(p,"utm_medium",4),x=v(h,"utm_campaign",4);return(0,Xr.jsxs)("div",{className:"yoo-body",children:[(0,Xr.jsx)("div",{className:"yoo-header",children:(0,Xr.jsxs)(JN,{style:{width:"100%",display:"flex",alignItems:"center"},children:[(0,Xr.jsx)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",alignItems:"flex-start"},children:a?(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsx)(Xi,{count:1,height:32,width:"45%",style:{marginBottom:8}}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"32%"})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(aR,{order:2,children:["📊 ",(0,ua.__)("Realtime Overview","yooanalytics")]}),(0,Xr.jsx)(uR,{children:(0,ua.__)("Active users in last 30 minutes.","yooanalytics")})]})}),(0,Xr.jsx)("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:(0,Xr.jsx)(JN,{spacing:"sm",align:"center",children:a?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(Xi,{count:1,height:36,width:"180px",style:{marginRight:12}}),(0,Xr.jsx)(Xi,{count:1,height:36,width:"120px"})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(GN,{data:c,value:String(e),onChange:e=>t(Number(e)),placeholder:(0,ua.__)("Refresh","yooanalytics"),sx:{minWidth:180}}),(0,Xr.jsx)(MR,{variant:"outline",onClick:l,children:(0,ua.__)("Refresh Now","yooanalytics")})]})})})]})}),(0,Xr.jsx)(LR,{cols:3,spacing:24,breakpoints:[{maxWidth:900,cols:1}],style:{marginBottom:24,position:"relative",width:"100%"},children:a?[0,1,2].map((e=>(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(Xi,{count:1,height:20,width:"55%",style:{marginBottom:10}}),(0,Xr.jsx)(Xi,{count:2,height:14,width:"80%",style:{marginBottom:6}}),(0,Xr.jsx)(Xi,{count:1,height:10,width:"60%"})]},e))):YooAnalytics.hasActiveValidLicense?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Sources","yooanalytics")}),0===b.total?(0,Xr.jsx)(uR,{size:"sm",children:"No data"}):(0,Xr.jsxs)(eI,{spacing:8,children:[b.rows.map(((e,t)=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:e.label}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:e.count})]}),(0,Xr.jsx)(mI,{value:e.percent,size:"sm",mt:6,color:"blue"})]},t))),b.rows.length<4&&(0,Xr.jsxs)(uR,{size:"xs",color:"dimmed",children:["Showing top ",b.rows.length," of ",f.length]})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Mediums","yooanalytics")}),0===w.total?(0,Xr.jsx)(uR,{size:"sm",children:"No data"}):(0,Xr.jsxs)(eI,{spacing:8,children:[w.rows.map(((e,t)=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:e.label}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:e.count})]}),(0,Xr.jsx)(mI,{value:e.percent,size:"sm",mt:6,color:"green"})]},t))),w.rows.length<4&&(0,Xr.jsxs)(uR,{size:"xs",color:"dimmed",children:["Showing top ",w.rows.length," of ",p.length]})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Campaigns","yooanalytics")}),0===x.total?(0,Xr.jsx)(uR,{size:"sm",children:"No data"}):(0,Xr.jsxs)(eI,{spacing:8,children:[x.rows.map(((e,t)=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:e.label}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:e.count})]}),(0,Xr.jsx)(mI,{value:e.percent,size:"sm",mt:6,color:"red"})]},t))),x.rows.length<4&&(0,Xr.jsxs)(uR,{size:"xs",color:"dimmed",children:["Showing top ",x.rows.length," of ",h.length]})]})]})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc",filter:"blur(4px)",pointerEvents:"none",width:"100%"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Sources","yooanalytics")}),(0,Xr.jsxs)(eI,{spacing:8,children:[[0,1,2,3].map((e=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:"••••••••"}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:"••"})]}),(0,Xr.jsx)(mI,{value:25,size:"sm",mt:6,color:"blue"})]},e))),(0,Xr.jsx)(uR,{size:"xs",color:"dimmed",children:"Showing top 4 of 4"})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc",filter:"blur(4px)",pointerEvents:"none",width:"100%"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Mediums","yooanalytics")}),(0,Xr.jsxs)(eI,{spacing:8,children:[[0,1,2,3].map((e=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:"••••••••"}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:"••"})]}),(0,Xr.jsx)(mI,{value:25,size:"sm",mt:6,color:"green"})]},e))),(0,Xr.jsx)(uR,{size:"xs",color:"dimmed",children:"Showing top 4 of 4"})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc",filter:"blur(4px)",pointerEvents:"none",width:"100%"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Campaigns","yooanalytics")}),(0,Xr.jsxs)(eI,{spacing:8,children:[[0,1,2,3].map((e=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:"••••••••"}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:"••"})]}),(0,Xr.jsx)(mI,{value:25,size:"sm",mt:6,color:"red"})]},e))),(0,Xr.jsx)(uR,{size:"xs",color:"dimmed",children:"Showing top 4 of 4"})]})]}),(0,Xr.jsx)("div",{style:{position:"absolute",inset:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:(0,Xr.jsx)("div",{style:{pointerEvents:"auto"},children:(0,Xr.jsxs)(KR,{withBorder:!0,p:24,radius:"md",shadow:"sm",style:{background:"#fffbe6",color:"#111827",textAlign:"center",maxWidth:420},children:[(0,Xr.jsxs)(aR,{order:4,style:{color:"#d97706"},mb:8,children:["🔒 ",(0,ua.__)("UTM Analytics is a Pro feature","yooanalytics")]}),(0,Xr.jsx)(uR,{size:"md",style:{color:"rgba(17,24,39,0.85)"},mb:12,children:(0,ua.__)("Upgrade to YooAnalytics Pro to unlock UTM Source, Medium, and Campaign analytics.","yooanalytics")}),(0,Xr.jsx)(MR,{variant:"filled",style:{background:"#1a7efb",color:"#ffffff",borderColor:"#1a7efb",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8},radius:"md",size:"md",onClick:()=>window.open("https://www.yooanalytics.com/?utm_source=plugin&utm_medium=realtime&utm_campaign=Upgrade+To+Pro","_blank"),children:(0,Xr.jsx)("span",{style:{display:"inline-block",textAlign:"center"},children:(0,ua.__)("Get YooAnalytics Pro","yooanalytics")})})]})})})]})}),(0,Xr.jsx)("div",{className:"yoo-screen",children:a?(0,Xr.jsxs)(eI,{spacing:24,children:[[0,1,2].map((e=>(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(Xi,{count:1,height:22,width:"22%",style:{marginBottom:10}}),(0,Xr.jsx)(Xi,{count:1,height:32,width:"100%",style:{marginBottom:8}}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"60%"})]},e))),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,style:{overflowX:"auto"},children:[(0,Xr.jsx)(Xi,{count:1,height:22,width:"22%",style:{marginBottom:10}}),(0,Xr.jsx)(Xi,{count:1,height:32,width:"100%",style:{marginBottom:8}}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"80%"}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"70%"})]})]}):(0,Xr.jsxs)(eI,{spacing:24,children:[(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Referrers","yooanalytics")}),(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Referrer","yooanalytics"),selector:e=>e.referer_url},{name:(0,ua.__)("Count","yooanalytics"),selector:e=>e.count}],data:m})]}),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Pages","yooanalytics")}),(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Page","yooanalytics"),selector:e=>e.page_url},{name:(0,ua.__)("Count","yooanalytics"),selector:e=>e.count}],data:y})]}),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Devices","yooanalytics")}),(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Device","yooanalytics"),selector:e=>e.user_agent},{name:(0,ua.__)("Count","yooanalytics"),selector:e=>e.count}],data:g})]}),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,style:{overflowX:"auto"},children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Raw Events","yooanalytics")}),(0,Xr.jsx)("div",{style:{minWidth:900},children:(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Time","yooanalytics"),selector:e=>{const t=e.created_at?e.created_at.split(" ")[1]:"";return(0,Xr.jsx)(DI,{label:e.created_at,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:80,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})},sortable:!0},{name:(0,ua.__)("Page","yooanalytics"),selector:e=>(0,Xr.jsx)(DI,{label:e.page_url,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:180,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:e.page_url})})},{name:(0,ua.__)("Referrer","yooanalytics"),selector:e=>(0,Xr.jsx)(DI,{label:e.referer_url,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:180,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:e.referer_url})})},{name:(0,ua.__)("Device","yooanalytics"),selector:e=>(0,Xr.jsx)(DI,{label:e.user_agent,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:e.user_agent})})},{name:(0,ua.__)("UTM Source","yooanalytics"),selector:e=>{const t=u(e.utm_source||"");return(0,Xr.jsx)(DI,{label:t,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})}},{name:(0,ua.__)("UTM Medium","yooanalytics"),selector:e=>{const t=u(e.utm_medium||"");return(0,Xr.jsx)(DI,{label:t,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})},hide:"sm"},{name:(0,ua.__)("Campaign","yooanalytics"),selector:e=>{const t=u(e.utm_campaign||"");return(0,Xr.jsx)(DI,{label:t,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})},hide:"sm"}],data:n})})]})]})})]})},AI=()=>(0,Xr.jsx)("div",{className:"yoo-body",children:(0,Xr.jsxs)("div",{className:"yoo-header",children:[(0,Xr.jsxs)("h1",{children:["⚒️ ",(0,ua.__)("Coming Soon","yooanalytics")]}),(0,Xr.jsx)("p",{children:(0,ua.__)("Get more control over settings.","yooanalytics")})]})}),TI=()=>(0,Xr.jsxs)("div",{className:"yoo-body",children:[(0,Xr.jsxs)("div",{className:"yoo-header",children:[(0,Xr.jsx)("h1",{children:(0,ua.__)("About","yooanalytics")}),(0,Xr.jsx)("p",{children:(0,ua.__)("This is about your System Status, Share with YooAnalytics Support if you are facing any issues.","yooanalytics")})]}),(0,Xr.jsx)("div",{className:"yoo-section",children:(0,Xr.jsxs)("ol",{children:[(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("You are using YooAnalytics Version %s","yooanalytics"),YooAnalytics.version)}),(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("You are using YooAnalytics %s","yooanalytics"),YooAnalytics.hasActiveValidLicense&&" Pro")}),(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("Your Rest URL is %s","yooanalytics"),YooAnalytics.restURL)}),(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("Your Admin URL is %s","yooanalytics"),YooAnalytics.adminURL)}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsx)("li",{children:(0,ua.__)("WooCommerce is active","yooanalytics")})]})})]}),NI=()=>(0,Xr.jsxs)(hi,{children:[(0,Xr.jsx)(fi,{path:"/",element:(0,Xr.jsx)(XN,{})}),(0,Xr.jsx)(fi,{path:"/realtime",element:(0,Xr.jsx)(_I,{})}),(0,Xr.jsx)(fi,{path:"/settings",element:(0,Xr.jsx)(AI,{})}),(0,Xr.jsx)(fi,{path:"/about",element:(0,Xr.jsx)(TI,{})})]});function RI(e){return"auto"===e||"dark"===e||"light"===e}function II({key:e="mantine-color-scheme-value"}={}){let t;return{get:t=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return RI(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&RI(t.newValue)&&n(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}function $I(){const e=YE(),t=JE(),n=cC(e.breakpoints).reduce(((t,n)=>{const r=e.breakpoints[n].includes("px"),o=DR(e.breakpoints[n]);return`${t}@media (max-width: ${r?o-.1+"px":_E(o-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${o}px`:_E(o)}) {.mantine-hidden-from-${n} {display: none !important;}}`}),"");return(0,Xr.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function LI(e){return Object.entries(e).map((([e,t])=>`${e}: ${t};`)).join("")}function FI(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,t)=>`${t}{${e}}`),t)}function zI({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if("light"===n){const n=bE(e,"light"),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${9===n?8:n+1})`,[`--mantine-color-${r}-light`]:RE(e.colors[t][n],.1),[`--mantine-color-${r}-light-hover`]:RE(e.colors[t][n],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:RE(e.colors[t][n],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}const a=bE(e,"dark"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${9===a?8:a+1})`,[`--mantine-color-${r}-light`]:RE(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:RE(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:RE(e.colors[t][Math.max(a-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}function WI(e,t,n){cC(t).forEach((r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]})))}const BI=e=>{const t=bE(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:DE(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":uI(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":uI(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};WI(r.variables,e.breakpoints,"breakpoint"),WI(r.variables,e.spacing,"spacing"),WI(r.variables,e.fontSizes,"font-size"),WI(r.variables,e.lineHeights,"line-height"),WI(r.variables,e.shadows,"shadow"),WI(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach(((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`})),cC(e.colors).forEach((t=>{const n=e.colors[t];if(function(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}(n))return Object.assign(r.light,zI({theme:e,name:n.name,color:n.light,colorScheme:"light",withColorValues:!0})),void Object.assign(r.dark,zI({theme:e,name:n.name,color:n.dark,colorScheme:"dark",withColorValues:!0}));n.forEach(((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e})),Object.assign(r.light,zI({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,zI({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))}));const o=e.headings.sizes;return cC(o).forEach((t=>{r.variables[`--mantine-${t}-font-size`]=o[t].fontSize,r.variables[`--mantine-${t}-line-height`]=o[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=o[t].fontWeight||e.headings.fontWeight})),r},HI=BI($E);function YI({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=YE(),r=JE(),o=function({theme:e,generator:t}){const n=BI(e),r=t?.(e);return r?FE(n,r):n}({theme:n,generator:QE().cssVariablesResolver}),a=":root"===e&&t,i=function(e,t){const n=LI(e.variables),r=n?FI(t,n):"",o=LI(e.dark),a=LI(e.light);return`${r}${o?FI(":host"===t?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):""}${a?FI(":host"===t?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,a):""}`}(a?function(e){const t={variables:{},light:{},dark:{}};return cC(e.variables).forEach((n=>{HI.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])})),cC(e.light).forEach((n=>{HI.light[n]!==e.light[n]&&(t.light[n]=e.light[n])})),cC(e.dark).forEach((n=>{HI.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])})),t}(o):o,e);return i?(0,Xr.jsx)("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${i}${a?"":(s=e,`\n  ${s}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n  ${s}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n`)}`}}):null;var s}function UI(e,t){const n="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r="auto"!==e?e:n?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",r)}function VI({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:s=!0,cssVariablesSelector:l=":root",classNamesPrefix:c="mantine",colorSchemeManager:u=II(),defaultColorScheme:d="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:h,stylesTransform:m,env:y}){const{colorScheme:g,setColorScheme:v,clearColorScheme:b}=function({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=(0,a.useRef)(null),[i,s]=(0,a.useState)((()=>e.get(t))),l=r||i,c=(0,a.useCallback)((t=>{r||(UI(t,n),s(t),e.set(t))}),[e.set,l,r]),u=(0,a.useCallback)((()=>{s(t),UI(t,n),e.clear()}),[e.clear,t]);return(0,a.useEffect)((()=>(e.subscribe(c),e.unsubscribe)),[e.subscribe,e.unsubscribe]),gM((()=>{UI(e.get(t),n)}),[]),(0,a.useEffect)((()=>{if(r)return UI(r,n),()=>{};void 0===r&&UI(i,n),"undefined"!=typeof window&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===i&&UI(e.matches?"dark":"light",n)};return o.current?.addEventListener("change",e),()=>o.current?.removeEventListener("change",e)}),[i,r]),{colorScheme:l,setColorScheme:c,clearColorScheme:u}}({defaultColorScheme:d,forceColorScheme:h,manager:u,getRootElement:f});return function({respectReducedMotion:e,getRootElement:t}){gM((()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")}),[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:f}),(0,Xr.jsx)(ZE.Provider,{value:{colorScheme:g,setColorScheme:v,clearColorScheme:b,getRootElement:f,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:l,withStaticClasses:r,stylesTransform:m,env:y},children:(0,Xr.jsxs)(UE,{theme:e,children:[s&&(0,Xr.jsx)(YI,{cssVariablesSelector:l,deduplicateCssVariables:i}),o&&(0,Xr.jsx)($I,{}),t]})})}YI.displayName="@mantine/CssVariables",function(){const e=console.error;console.error=(...t)=>{t.length>1&&"string"==typeof t[0]&&t[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof t[1]&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}(),VI.displayName="@mantine/core/MantineProvider";const qI=()=>(0,Xr.jsxs)("div",{className:"yoo-dashboard",children:[(0,Xr.jsx)(Yi,{}),(0,Xr.jsx)(NI,{}),(0,Xr.jsx)("div",{className:"clearfix"})]}),GI={};n()((()=>{(0,r.createRoot)(document.getElementById("root")).render((0,Xr.jsx)(r.StrictMode,{children:(0,Xr.jsx)(VI,{theme:GI,children:(0,Xr.jsx)(Ii,{children:(0,Xr.jsx)(qI,{})})})}))}))})()})();
     456`,Go=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...s}=n,[l,u]=a.useState([]),d=a.useRef(0),f=a.useRef(null);a.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[l]);const p=a.useRef(!1),h=Io(),m=a.useRef(null),y=a.useRef(null),g=a.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;u((e=>[...e,(0,Xr.jsx)(qo,{classes:{ripple:c(o.ripple,Bo.ripple),rippleVisible:c(o.rippleVisible,Bo.rippleVisible),ripplePulsate:c(o.ripplePulsate,Bo.ripplePulsate),child:c(o.child,Bo.child),childLeaving:c(o.childLeaving,Bo.childLeaving),childPulsate:c(o.childPulsate,Bo.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},d.current)])),d.current+=1,f.current=i}),[o]),v=a.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const s=i?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,h]),b=a.useCallback((()=>{v({},{pulsate:!0})}),[v]),w=a.useCallback(((e,t)=>{if(h.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void h.start(0,(()=>{w(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),f.current=t}),[h]);return a.useImperativeHandle(t,(()=>({pulsate:b,start:v,stop:w})),[b,v,w]),(0,Xr.jsx)(Vo,{className:c(Bo.root,o.root,i),ref:y,...s,children:(0,Xr.jsx)(To,{component:null,exit:!0,children:l})})})),Xo=Go;function Ko(e){return to("MuiButtonBase",e)}const Zo=no("MuiButtonBase",["root","disabled","focusVisible"]),Qo=Ur("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Zo.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jo=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:y="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:O,onKeyDown:S,onKeyUp:j,onMouseDown:P,onMouseLeave:k,onMouseUp:E,onTouchEnd:C,onTouchMove:M,onTouchStart:D,tabIndex:_=0,TouchRippleProps:A,touchRippleRef:T,type:N,...R}=n,I=a.useRef(null),$=So.use(),L=go($.ref,T),[F,z]=a.useState(!1);d&&F&&z(!1),a.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),I.current.focus()}})),[]);const W=$.shouldMount&&!f&&!d;a.useEffect((()=>{F&&h&&!f&&$.pulsate()}),[f,h,F,$]);const B=ea($,"start",P,p),H=ea($,"stop",b,p),Y=ea($,"stop",w,p),U=ea($,"stop",E,p),V=ea($,"stop",(e=>{F&&e.preventDefault(),k&&k(e)}),p),q=ea($,"start",D,p),G=ea($,"stop",C,p),X=ea($,"stop",M,p),K=ea($,"stop",(e=>{vo(e.target)||z(!1),g&&g(e)}),!1),Z=wo((e=>{I.current||(I.current=e.currentTarget),vo(e.target)&&(z(!0),O&&O(e)),x&&x(e)})),Q=()=>{const e=I.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},J=wo((e=>{h&&!e.repeat&&F&&" "===e.key&&$.stop(e,(()=>{$.start(e)})),e.target===e.currentTarget&&Q()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&Q()&&"Enter"===e.key&&!d&&(e.preventDefault(),v&&v(e))})),ee=wo((e=>{h&&" "===e.key&&F&&!e.defaultPrevented&&$.stop(e,(()=>{$.pulsate(e)})),j&&j(e),v&&e.target===e.currentTarget&&Q()&&" "===e.key&&!e.defaultPrevented&&v(e)}));let te=l;"button"===te&&(R.href||R.to)&&(te=y);const ne={};"button"===te?(ne.type=void 0===N?"button":N,ne.disabled=d):(R.href||R.to||(ne.role="button"),d&&(ne["aria-disabled"]=d));const re=go(t,I),oe={...n,centerRipple:o,component:l,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:h,tabIndex:_,focusVisible:F},ae=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=u({root:["root",t&&"disabled",n&&"focusVisible"]},Ko,o);return n&&r&&(a.root+=` ${r}`),a})(oe);return(0,Xr.jsxs)(Qo,{as:te,className:c(ae.root,s),ownerState:oe,onBlur:K,onClick:v,onContextMenu:H,onFocus:Z,onKeyDown:J,onKeyUp:ee,onMouseDown:B,onMouseLeave:V,onMouseUp:U,onDragLeave:Y,onTouchEnd:G,onTouchMove:X,onTouchStart:q,ref:re,tabIndex:d?-1:_,type:N,...ne,...R,children:[i,W?(0,Xr.jsx)(Xo,{ref:L,center:o,...A}):null]})}));function ea(e,t,n,r=!1){return wo((o=>(n&&n(o),r||e[t](o),!0)))}const ta=Jo;function na(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function ra(e){return to("MuiChip",e)}const oa=no("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),aa=Ur("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${oa.avatar}`]:t.avatar},{[`& .${oa.avatar}`]:t[`avatar${p(s)}`]},{[`& .${oa.avatar}`]:t[`avatarColor${p(r)}`]},{[`& .${oa.icon}`]:t.icon},{[`& .${oa.icon}`]:t[`icon${p(s)}`]},{[`& .${oa.icon}`]:t[`iconColor${p(o)}`]},{[`& .${oa.deleteIcon}`]:t.deleteIcon},{[`& .${oa.deleteIcon}`]:t[`deleteIcon${p(s)}`]},{[`& .${oa.deleteIcon}`]:t[`deleteIconColor${p(r)}`]},{[`& .${oa.deleteIcon}`]:t[`deleteIcon${p(l)}Color${p(r)}`]},t.root,t[`size${p(s)}`],t[`color${p(r)}`],a&&t.clickable,a&&"default"!==r&&t[`clickableColor${p(r)})`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${p(r)}`],t[l],t[`${l}${p(r)}`]]}})(qr((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${oa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${oa.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${oa.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${oa.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${oa.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${oa.icon}`]:{marginLeft:5,marginRight:-6},[`& .${oa.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gn(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${oa.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${oa.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(na(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${oa.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:gn(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${oa.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${oa.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(na(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${oa.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(na(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${oa.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${oa.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${oa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${oa.avatar}`]:{marginLeft:4},[`& .${oa.avatarSmall}`]:{marginLeft:2},[`& .${oa.icon}`]:{marginLeft:4},[`& .${oa.iconSmall}`]:{marginLeft:2},[`& .${oa.deleteIcon}`]:{marginRight:5},[`& .${oa.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(na()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:gn(e.palette[t].main,.7)}`,[`&.${oa.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gn(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gn(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${oa.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:gn(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),ia=Ur("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${p(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function sa(e){return"Backspace"===e.key||"Delete"===e.key}const la=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:s="default",component:l,deleteIcon:d,disabled:f=!1,icon:h,label:m,onClick:y,onDelete:g,onKeyDown:v,onKeyUp:b,size:w="medium",variant:x="filled",tabIndex:O,skipFocusWhenDisabled:S=!1,...j}=n,P=a.useRef(null),k=go(P,t),E=e=>{e.stopPropagation(),g&&g(e)},C=!(!1===i||!y)||i,M=C||g?ta:l||"div",D={...n,component:M,disabled:f,size:w,color:s,iconColor:a.isValidElement(h)&&h.props.color||s,onDelete:!!g,clickable:C,variant:x},_=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e;return u({root:["root",l,n&&"disabled",`size${p(r)}`,`color${p(o)}`,s&&"clickable",s&&`clickableColor${p(o)}`,i&&"deletable",i&&`deletableColor${p(o)}`,`${l}${p(o)}`],label:["label",`label${p(r)}`],avatar:["avatar",`avatar${p(r)}`,`avatarColor${p(o)}`],icon:["icon",`icon${p(r)}`,`iconColor${p(a)}`],deleteIcon:["deleteIcon",`deleteIcon${p(r)}`,`deleteIconColor${p(o)}`,`deleteIcon${p(l)}Color${p(o)}`]},ra,t)})(D),A=M===ta?{component:l||"div",focusVisibleClassName:_.focusVisible,...g&&{disableRipple:!0}}:{};let T=null;g&&(T=d&&a.isValidElement(d)?a.cloneElement(d,{className:c(d.props.className,_.deleteIcon),onClick:E}):(0,Xr.jsx)(mo,{className:c(_.deleteIcon),onClick:E}));let N=null;r&&a.isValidElement(r)&&(N=a.cloneElement(r,{className:c(_.avatar,r.props.className)}));let R=null;return h&&a.isValidElement(h)&&(R=a.cloneElement(h,{className:c(_.icon,h.props.className)})),(0,Xr.jsxs)(aa,{as:M,className:c(_.root,o),disabled:!(!C||!f)||void 0,onClick:y,onKeyDown:e=>{e.currentTarget===e.target&&sa(e)&&e.preventDefault(),v&&v(e)},onKeyUp:e=>{e.currentTarget===e.target&&g&&sa(e)&&g(e),b&&b(e)},ref:k,tabIndex:S&&f?-1:O,ownerState:D,...A,...j,children:[N||R,(0,Xr.jsx)(ia,{className:c(_.label),ownerState:D,children:m}),T]})})),ca=la,ua=window.wp.i18n;o(28232);var da="popstate";function fa(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:p.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:ga(e);return n=n.replace(/ $/,"%20"),pa(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==c&&(c=0,i.replaceState({...i.state,idx:c},""));let p={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(da,d),l=e,()=>{o.removeEventListener(da,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=ya(p.location,e,t);n&&n(r,e),c=u()+1;let d=ma(r,c),f=p.createHref(r);try{i.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&l&&l({action:s,location:p.location,delta:1})},replace:function(e,t){s="REPLACE";let r=ya(p.location,e,t);n&&n(r,e),c=u();let o=ma(r,c),d=p.createHref(r);i.replaceState(o,"",d),a&&l&&l({action:s,location:p.location,delta:0})},go:e=>i.go(e)};return p}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=va(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),ya("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:ga(t))}),(function(e,t){ha("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function pa(e,t){if(!1===e||null==e)throw new Error(t)}function ha(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function ma(e,t){return{usr:e.state,key:e.key,idx:t}}function ya(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?va(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function ga({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function va(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ba(e,t,n="/"){return function(e,t,n,r){let o=Ta(("string"==typeof t?va(t):t).pathname||"/",n);if(null==o)return null;let a=wa(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=Aa(o);i=Da(a[e],t,r)}return i}(e,t,n,!1)}function wa(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(pa(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=$a([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(pa(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),wa(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Ma(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of xa(e.path))o(e,t,n);else o(e,t)})),t}function xa(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=xa(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}new WeakMap;var Oa=/^:[\w-]+$/,Sa=3,ja=2,Pa=1,ka=10,Ea=-2,Ca=e=>"*"===e;function Ma(e,t){let n=e.split("/"),r=n.length;return n.some(Ca)&&(r+=Ea),t&&(r+=ja),n.filter((e=>!Ca(e))).reduce(((e,t)=>e+(Oa.test(t)?Sa:""===t?Pa:ka)),r)}function Da(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=_a({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=_a({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:$a([a,u.pathname]),pathnameBase:La($a([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=$a([a,u.pathnameBase]))}return i}function _a(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){ha("*"===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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function Aa(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return ha(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ta(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Na(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ra(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Ia(e,t,n,r=!1){let o;"string"==typeof e?o=va(e):(o={...e},pa(!o.pathname||!o.pathname.includes("?"),Na("?","pathname","search",o)),pa(!o.pathname||!o.pathname.includes("#"),Na("#","pathname","hash",o)),pa(!o.search||!o.search.includes("#"),Na("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?va(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:Fa(r),hash:za(o)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var $a=e=>e.join("/").replace(/\/\/+/g,"/"),La=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Fa=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",za=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Wa(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var Ba=["POST","PUT","PATCH","DELETE"],Ha=(new Set(Ba),["GET",...Ba]);new Set(Ha),Symbol("ResetLoaderData");var Ya=a.createContext(null);Ya.displayName="DataRouter";var Ua=a.createContext(null);Ua.displayName="DataRouterState";var Va=a.createContext({isTransitioning:!1});Va.displayName="ViewTransition",a.createContext(new Map).displayName="Fetchers",a.createContext(null).displayName="Await";var qa=a.createContext(null);qa.displayName="Navigation";var Ga=a.createContext(null);Ga.displayName="Location";var Xa=a.createContext({outlet:null,matches:[],isDataRoute:!1});Xa.displayName="Route";var Ka=a.createContext(null);function Za(){return null!=a.useContext(Ga)}function Qa(){return pa(Za(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Ga).location}Ka.displayName="RouteError";var Ja="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ei(e){a.useContext(qa).static||a.useLayoutEffect(e)}function ti(){let{isDataRoute:e}=a.useContext(Xa);return e?function(){let{router:e}=function(e){let t=a.useContext(Ya);return pa(t,li(e)),t}("useNavigate"),t=ci("useNavigate"),n=a.useRef(!1);return ei((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{ha(n.current,Ja),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){pa(Za(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Ya),{basename:t,navigator:n}=a.useContext(qa),{matches:r}=a.useContext(Xa),{pathname:o}=Qa(),i=JSON.stringify(Ra(r)),s=a.useRef(!1);return ei((()=>{s.current=!0})),a.useCallback(((r,a={})=>{if(ha(s.current,Ja),!s.current)return;if("number"==typeof r)return void n.go(r);let l=Ia(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:$a([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)}),[t,n,i,o,e])}()}function ni(e,{relative:t}={}){let{matches:n}=a.useContext(Xa),{pathname:r}=Qa(),o=JSON.stringify(Ra(n));return a.useMemo((()=>Ia(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function ri(e,t,n,r){pa(Za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:i}=a.useContext(qa),{matches:s}=a.useContext(Xa),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",f=l&&l.route;{let e=f&&f.path||"";di(u,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,h=Qa();if(t){let e="string"==typeof t?va(t):t;pa("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=h;let m=p.pathname||"/",y=m;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=!i&&n&&n.matches&&n.matches.length>0?n.matches:ba(e,{pathname:y});ha(f||null!=g,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),ha(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=function(e,t=[],n=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,o=n?.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));pa(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let i=!1,s=-1;if(n)for(let e=0;e<r.length;e++){let t=r[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:o}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||a){i=!0,r=s>=0?r.slice(0,s+1):[r[0]];break}}}return r.reduceRight(((e,l,c)=>{let u,d=!1,f=null,p=null;n&&(u=o&&l.route.id?o[l.route.id]:void 0,f=l.route.errorElement||ai,i&&(s<0&&0===c?(di("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=l.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,c+1)),m=()=>{let t;return t=u?f:d?p:l.route.Component?a.createElement(l.route.Component,null):l.route.element?l.route.element:e,a.createElement(si,{match:l,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?a.createElement(ii,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:$a([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:$a([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&v?a.createElement(Ga.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},v):v}function oi(){let e=function(){let e=a.useContext(Ka),t=function(e){let t=a.useContext(Ua);return pa(t,li(e)),t}("useRouteError"),n=ci("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=Wa(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,s)}a.createContext(null);var ai=a.createElement(oi,null),ii=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(Xa.Provider,{value:this.props.routeContext},a.createElement(Ka.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function si({routeContext:e,match:t,children:n}){let r=a.useContext(Ya);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(Xa.Provider,{value:e},n)}function li(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ci(e){let t=function(e){let t=a.useContext(Xa);return pa(t,li(e)),t}(e),n=t.matches[t.matches.length-1];return pa(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var ui={};function di(e,t,n){t||ui[e]||(ui[e]=!0,ha(!1,n))}function fi(e){pa(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function pi({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){pa(!Za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,future:{}})),[s,o,i]);"string"==typeof n&&(n=va(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=n,h=a.useMemo((()=>{let e=Ta(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}}),[s,c,u,d,f,p,r]);return ha(null!=h,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:a.createElement(qa.Provider,{value:l},a.createElement(Ga.Provider,{children:t,value:h}))}function hi({children:e,location:t}){return ri(mi(e),t)}function mi(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,mi(e.props.children,o));pa(e.type===fi,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),pa(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=mi(e.props.children,o)),n.push(i)})),n}a.memo((function({routes:e,future:t,state:n}){return ri(e,void 0,n,t)})),a.Component;var yi="get",gi="application/x-www-form-urlencoded";function vi(e){return null!=e&&"string"==typeof e.tagName}var bi=null,wi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xi(e){return null==e||wi.has(e)?e:(ha(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gi}"`),null)}function Oi(e,t){if(!1===e||null==e)throw new Error(t)}function Si(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ji(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||s(e,t))):"data"===a?t.filter(((t,a)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Pi(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function ki(){let e=a.useContext(Ya);return Oi(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ei(){let e=a.useContext(Ua);return Oi(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect"),a.Component;var Ci=a.createContext(void 0);function Mi(){let e=a.useContext(Ci);return Oi(e,"You must render this element inside a <HydratedRouter> element"),e}function Di(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _i({page:e,...t}){let{router:n}=ki(),r=a.useMemo((()=>ba(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?a.createElement(Ti,{page:e,matches:r,...t}):null}function Ai(e){let{manifest:t,routeModules:n}=Mi(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!function(e){return null!=e&&"string"==typeof e.page}(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Si).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function Ti({page:e,matches:t,...n}){let r=Qa(),{manifest:o,routeModules:i}=Mi(),{basename:s}=ki(),{loaderData:l,matches:c}=Ei(),u=a.useMemo((()=>ji(e,t,c,o,r,"data")),[e,t,c,o,r]),d=a.useMemo((()=>ji(e,t,c,o,r,"assets")),[e,t,c,o,r]),f=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in l&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))})),0===n.size)return[];let c=function(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===Ta(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}(e,s);return a&&n.size>0&&c.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[c.pathname+c.search]}),[s,l,r,o,u,t,e,i]),p=a.useMemo((()=>Pi(d,o)),[d,o]),h=Ai(d);return a.createElement(a.Fragment,null,f.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>a.createElement("link",{key:e,...t}))))}Ci.displayName="FrameworkContext";function Ni(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var Ri="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Ri&&(window.__reactRouterVersion="7.5.0")}catch(e){}function Ii({basename:e,children:t,window:n}){let r=a.useRef();null==r.current&&(r.current=fa({window:n,v5Compat:!0}));let o=r.current,[i,s]=a.useState({action:o.action,location:o.location}),l=a.useCallback((e=>{a.startTransition((()=>s(e)))}),[s]);return a.useLayoutEffect((()=>o.listen(l)),[o,l]),a.createElement(pi,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var $i=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Li=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d,...f},p){let h,{basename:m}=a.useContext(qa),y="string"==typeof c&&$i.test(c),g=!1;if("string"==typeof c&&y&&(h=c,Ri))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Ta(t.pathname,m);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:g=!0}catch(e){ha(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=function(e,{relative:t}={}){pa(Za(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(qa),{hash:o,pathname:i,search:s}=ni(e,{relative:t}),l=i;return"/"!==n&&(l="/"===i?n:$a([n,i])),r.createHref({pathname:l,search:s,hash:o})}(c,{relative:r}),[b,w,x]=function(e,t){let n=a.useContext(Ci),[r,o]=a.useState(!1),[i,s]=a.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),s(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:Di(l,h),onBlur:Di(c,m),onMouseEnter:Di(u,h),onMouseLeave:Di(d,m),onTouchStart:Di(f,h)}]:[!1,p,{}]}(n,f),O=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=ti(),c=Qa(),u=ni(e,{relative:i});return a.useCallback((a=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(a,t)){a.preventDefault();let t=void 0!==n?n:ga(c)===ga(u);l(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:s})}}),[c,l,u,n,r,t,e,o,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:r,viewTransition:d}),S=a.createElement("a",{...f,...x,href:h||v,onClick:g||o?e:function(t){e&&e(t),t.defaultPrevented||O(t)},ref:Ni(p,w),target:l,"data-discover":y||"render"!==t?void 0:"true"});return b&&!y?a.createElement(a.Fragment,null,S,a.createElement(_i,{page:v})):S}));Li.displayName="Link";var Fi=a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:s,children:l,...c},u){let d=ni(i,{relative:c.relative}),f=Qa(),p=a.useContext(Ua),{navigator:h,basename:m}=a.useContext(qa),y=null!=p&&function(e,t={}){let n=a.useContext(Va);pa(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Wi("useViewTransitionState"),o=ni(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Ta(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ta(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=_a(o.pathname,s)||null!=_a(o.pathname,i)}(d)&&!0===s,g=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,v=f.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&m&&(b=Ta(b,m)||b);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let x,O=v===g||!r&&v.startsWith(g)&&"/"===v.charAt(w),S=null!=b&&(b===g||!r&&b.startsWith(g)&&"/"===b.charAt(g.length)),j={isActive:O,isPending:S,isTransitioning:y},P=O?e:void 0;x="function"==typeof n?n(j):[n,O?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof o?o(j):o;return a.createElement(Li,{...c,"aria-current":P,className:x,ref:u,style:k,to:i,viewTransition:s},"function"==typeof l?l(j):l)}));Fi.displayName="NavLink";var zi=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=yi,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,...p},h)=>{let m=function(){let{router:e}=Wi("useSubmit"),{basename:t}=a.useContext(qa),n=ci("useRouteId");return a.useCallback((async(r,o={})=>{let{action:a,method:i,encType:s,formData:l,body:c}=function(e,t){let n,r,o,a,i;if(function(e){return vi(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?Ta(i,t):null,n=e.getAttribute("method")||yi,o=xi(e.getAttribute("enctype"))||gi,a=new FormData(e)}else if(function(e){return vi(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return vi(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?Ta(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||yi,o=xi(e.getAttribute("formenctype"))||xi(i.getAttribute("enctype"))||gi,a=new FormData(i,e),!function(){if(null===bi)try{new FormData(document.createElement("form"),0),bi=!1}catch(e){bi=!0}return bi}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(vi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yi,r=null,o=gi,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}(r,t);if(!1===o.navigate){let t=o.fetcherKey||Hi();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}(),y=function(e,{relative:t}={}){let{basename:n}=a.useContext(qa),r=a.useContext(Xa);pa(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ni(e||".",{relative:t})},s=Qa();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}return e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:$a([n,i.pathname])),ga(i)}(l,{relative:u}),g="get"===s.toLowerCase()?"get":"post",v="string"==typeof l&&$i.test(l);return a.createElement("form",{ref:h,method:g,action:y,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,a=r?.getAttribute("formmethod")||s;m(r||e.currentTarget,{fetcherKey:t,method:a,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:f})},...p,"data-discover":v||"render"!==e?void 0:"true"})}));function Wi(e){let t=a.useContext(Ya);return pa(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}zi.displayName="Form";var Bi=0,Hi=()=>`__${String(++Bi)}__`;new TextEncoder;const Yi=()=>(0,Xr.jsxs)("div",{className:"yoo-menu",children:[(0,Xr.jsxs)("div",{className:"yoo-logo",children:[(0,Xr.jsx)(Li,{to:"/",children:(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/logo.png`,alt:"YooAnalytics Logo",width:190})}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)(ca,{label:`v${YooAnalytics.version}`,className:"yoo-coming-soon-chip",color:"primary",size:"small",variant:"outlined"})})]}),(0,Xr.jsxs)("div",{className:"yoo-menu-items-container",children:[(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/",className:"yoo-menu-item",children:[(0,Xr.jsx)(lo,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("Dashboard","yooanalytics")})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/realtime",className:"yoo-menu-item",children:[(0,Xr.jsx)(co,{className:"yoo-menu-icon"}),(0,Xr.jsxs)("span",{className:"yoo-menu-text",children:[(0,ua.__)("Realtime","yooanalytics")," ",(0,Xr.jsx)("span",{style:{display:"inline-flex",alignItems:"center"},children:(0,Xr.jsx)(ca,{label:"📊 New",className:"yoo-coming-soon-chip",style:{background:"#1976d2",color:"#fff",border:"none"},size:"small",variant:"filled"})}),(0,Xr.jsx)("div",{className:"clearfix"})]})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Li,{to:"javascript:void(0)",className:"yoo-menu-item disabled",children:[(0,Xr.jsx)(uo,{className:"yoo-menu-icon"}),(0,Xr.jsxs)("span",{className:"yoo-menu-text",children:[(0,ua.__)("Countries","yooanalytics")," ",(0,Xr.jsx)("span",{style:{display:"inline-flex",alignItems:"center"},children:(0,Xr.jsx)(ca,{label:"⚒️ Coming Soon",className:"yoo-coming-soon-chip",color:"primary",size:"small",variant:"outlined"})}),(0,Xr.jsx)("div",{className:"clearfix"})]})]})}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Li,{to:"javascript:void(0)",className:"yoo-menu-item disabled",title:"WooCommerce Purchase Journey",children:[(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/woocommerce-logo.svg`,className:"yoo-menu-icon",width:24,alt:"WooCommerce Logo"}),(0,Xr.jsxs)("span",{className:"yoo-menu-text",children:[(0,ua.__)("Purchase","yooanalytics")," ",(0,Xr.jsx)("span",{style:{display:"inline-flex",alignItems:"center"},children:(0,Xr.jsx)(ca,{label:"⚒️ Coming Soon",className:"yoo-coming-soon-chip",color:"primary",size:"small",variant:"outlined"})}),(0,Xr.jsx)("div",{className:"clearfix"})]})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/settings",className:"yoo-menu-item",children:[(0,Xr.jsx)(fo,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("Settings","yooanalytics")})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)("a",{href:"https://www.yooanalytics.com/contact-us/?utm_source=plugin&utm_medium=menu&utm_campaign=Support",target:"_blank",className:"yoo-menu-item",children:[(0,Xr.jsx)(po,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("Support","yooanalytics")})]})}),(0,Xr.jsx)("div",{children:(0,Xr.jsxs)(Fi,{to:"/about",className:"yoo-menu-item",children:[(0,Xr.jsx)(ho,{className:"yoo-menu-icon"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,ua.__)("About","yooanalytics")})]})}),YooAnalytics.hasActiveValidLicense?"":(0,Xr.jsx)("div",{className:"yoo-menu-pro",children:(0,Xr.jsxs)("a",{href:"https://www.yooanalytics.com/?utm_source=plugin&utm_medium=menu&utm_campaign=Get+YooAnalytics+Pro",target:"_blank",className:"yoo-menu-item yoo-get-pro",children:[(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/pro.png`,alt:"YooAnalytics Get Pro"}),(0,Xr.jsx)("span",{className:"yoo-menu-text",children:(0,Xr.jsx)("b",{children:(0,ua.__)("Get YooAnalytics Pro","yooanalytics")})})]})})]})]}),Ui=window.wp.components,Vi=a.createContext({});function qi({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=!0,customHighlightBackground:c}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof c&&(u["--custom-highlight-background"]=c),u}function Gi({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...l}){var c,u,d;const f=a.useContext(Vi),p={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete p[e];const h={...f,...p,circle:i},m={...s,...qi(h)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const g=null!==(c=h.inline)&&void 0!==c&&c,v=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=m;if(b>e&&t===b-1){const t=null!==(u=n.width)&&void 0!==u?u:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const r=a.createElement("span",{className:y,style:n,key:t},"‌");g?v.push(r):v.push(a.createElement(a.Fragment,{key:t},r,a.createElement("br",null)))}return a.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":null===(d=h.enableAnimation)||void 0===d||d},t?v.map(((e,n)=>a.createElement(t,{key:n},e))):v)}const Xi=e=>(0,Xr.jsx)(Gi,{baseColor:"#FAFAFA",count:e.count,height:e.height,width:e.width,className:e.className}),Ki={"X-WP-Nonce":YooAnalytics.nonce};var Zi=o(83757);const Qi=({columns:e,data:t})=>(0,Xr.jsx)(Zi.Ay,{columns:e,data:t,responsive:!0,highlightOnHover:!0,pagination:!0}),Ji=a.createContext(),es=()=>a.useContext(Ji)??!1;function ts(e){return parseInt(a.version,10)>=19?e?.props?.ref||null:e?.ref||null}const ns=nn(),rs=function(e=ns){return function(e=null){const t=a.useContext(Re);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(e)};function os(){const e=rs(Br);return e[Hr]||e}const as=window.ReactDOM;var is=o.n(as);var ss="unmounted",ls="exited",cs="entering",us="entered",ds="exiting",fs=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=ls,r.appearStatus=cs):o=us:o=t.unmountOnExit||t.mountOnEnter?ss:ls,r.state={status:o},r.nextCallback=null,r}ko(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ss?{status:ls}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==cs&&n!==us&&(t=cs):n!==cs&&n!==us||(t=ds)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:is().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ls&&this.setState({status:ss})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[is().findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:cs},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:us},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:us},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:is().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:ds},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ls},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ls},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:is().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ss)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,jo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s().createElement(Eo.Provider,{value:null},"function"==typeof n?n(e,r):s().cloneElement(s().Children.only(n),r))},t}(s().Component);function ps(){}fs.contextType=Eo,fs.propTypes={},fs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ps,onEntering:ps,onEntered:ps,onExit:ps,onExiting:ps,onExited:ps},fs.UNMOUNTED=ss,fs.EXITED=ls,fs.ENTERING=cs,fs.ENTERED=us,fs.EXITING=ds;const hs=fs;function ms(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function ys(e){return`scale(${e}, ${e**2})`}const gs={entering:{opacity:1,transform:ys(1)},entered:{opacity:1,transform:"none"}},vs="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=a.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",TransitionComponent:y=hs,...g}=e,v=Io(),b=a.useRef(),w=os(),x=a.useRef(null),O=go(x,ts(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},j=S(u),P=S(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=ms({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:vs?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(p),C=S((e=>{const{duration:t,delay:n,easing:r}=ms({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:vs?o:.666*o,delay:vs?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ys(.75),d&&d(e)})),M=S(f);return(0,Xr.jsx)(y,{appear:r,in:s,nodeRef:x,onEnter:P,onEntered:k,onEntering:j,onExit:C,onExited:M,onExiting:E,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m,...g,children:(e,{ownerState:t,...n})=>a.cloneElement(o,{style:{opacity:0,transform:ys(.75),visibility:"exited"!==e||s?void 0:"hidden",...gs[e],...h,...o.props.style},ref:O,...n})})}));bs&&(bs.muiSupportAuto=!0);const ws=bs;function xs(e){return e&&e.ownerDocument||document}function Os(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){return e instanceof Os(e).Element||e instanceof Element}function js(e){return e instanceof Os(e).HTMLElement||e instanceof HTMLElement}function Ps(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Os(e).ShadowRoot||e instanceof ShadowRoot)}var ks=Math.max,Es=Math.min,Cs=Math.round;function Ms(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ds(){return!/^((?!chrome|android).)*safari/i.test(Ms())}function _s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&js(e)&&(o=e.offsetWidth>0&&Cs(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Cs(r.height)/e.offsetHeight||1);var i=(Ss(e)?Os(e):window).visualViewport,s=!Ds()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function As(e){var t=Os(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ts(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rs(e){return _s(Ns(e)).left+As(e).scrollLeft}function Is(e){return Os(e).getComputedStyle(e)}function $s(e){var t=Is(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ls(e,t,n){void 0===n&&(n=!1);var r=js(t),o=js(t)&&function(e){var t=e.getBoundingClientRect(),n=Cs(t.width)/e.offsetWidth||1,r=Cs(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Ns(t),i=_s(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ts(t)||$s(a))&&(s=function(e){return e!==Os(e)&&js(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:As(e);var t}(t)),js(t)?((l=_s(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Rs(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Fs(e){var t=_s(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zs(e){return"html"===Ts(e)?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||Ns(e)}function Ws(e){return["html","body","#document"].indexOf(Ts(e))>=0?e.ownerDocument.body:js(e)&&$s(e)?e:Ws(zs(e))}function Bs(e,t){var n;void 0===t&&(t=[]);var r=Ws(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Os(r),i=o?[a].concat(a.visualViewport||[],$s(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Bs(zs(i)))}function Hs(e){return["table","td","th"].indexOf(Ts(e))>=0}function Ys(e){return js(e)&&"fixed"!==Is(e).position?e.offsetParent:null}function Us(e){for(var t=Os(e),n=Ys(e);n&&Hs(n)&&"static"===Is(n).position;)n=Ys(n);return n&&("html"===Ts(n)||"body"===Ts(n)&&"static"===Is(n).position)?t:n||function(e){var t=/firefox/i.test(Ms());if(/Trident/i.test(Ms())&&js(e)&&"fixed"===Is(e).position)return null;var n=zs(e);for(Ps(n)&&(n=n.host);js(n)&&["html","body"].indexOf(Ts(n))<0;){var r=Is(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Vs="top",qs="bottom",Gs="right",Xs="left",Ks="auto",Zs=[Vs,qs,Gs,Xs],Qs="start",Js="end",el="viewport",tl="popper",nl=Zs.reduce((function(e,t){return e.concat([t+"-"+Qs,t+"-"+Js])}),[]),rl=[].concat(Zs,[Ks]).reduce((function(e,t){return e.concat([t,t+"-"+Qs,t+"-"+Js])}),[]),ol=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function al(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var il={placement:"bottom",modifiers:[],strategy:"absolute"};function sl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ll(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?il:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},il,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Ss(e)?Bs(e):e.contextElement?Bs(e.contextElement):[],popper:Bs(t)};var i,c,f=function(e){var t=al(e);return ol.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:r});l.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(sl(t,n)){s.rects={reference:Ls(t,Us(n),"fixed"===s.options.strategy),popper:Fs(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!sl(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var cl={passive:!0};function ul(e){return e.split("-")[0]}function dl(e){return e.split("-")[1]}function fl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pl(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ul(o):null,i=o?dl(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Vs:t={x:s,y:n.y-r.height};break;case qs:t={x:s,y:n.y+n.height};break;case Gs:t={x:n.x+n.width,y:l};break;case Xs:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?fl(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Qs:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Js:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var hl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ml(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.y,m=void 0===h?0:h,y="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=Xs,w=Vs,x=window;if(c){var O=Us(n),S="clientHeight",j="clientWidth";O===Os(n)&&"static"!==Is(O=Ns(n)).position&&"absolute"===s&&(S="scrollHeight",j="scrollWidth"),(o===Vs||(o===Xs||o===Gs)&&a===Js)&&(w=qs,m-=(d&&O===x&&x.visualViewport?x.visualViewport.height:O[S])-r.height,m*=l?1:-1),o!==Xs&&(o!==Vs&&o!==qs||a!==Js)||(b=Gs,p-=(d&&O===x&&x.visualViewport?x.visualViewport.width:O[j])-r.width,p*=l?1:-1)}var P,k=Object.assign({position:s},c&&hl),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cs(n*o)/o||0,y:Cs(r*o)/o||0}}({x:p,y:m},Os(n)):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},k,((P={})[w]=v?"0":"",P[b]=g?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P)):Object.assign({},k,((t={})[w]=v?m+"px":"",t[b]=g?p+"px":"",t.transform="",t))}const yl={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];js(o)&&Ts(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});js(r)&&Ts(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var gl={left:"right",right:"left",bottom:"top",top:"bottom"};function vl(e){return e.replace(/left|right|bottom|top/g,(function(e){return gl[e]}))}var bl={start:"end",end:"start"};function wl(e){return e.replace(/start|end/g,(function(e){return bl[e]}))}function xl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ps(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ol(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sl(e,t,n){return t===el?Ol(function(e,t){var n=Os(e),r=Ns(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Ds();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Rs(e),y:l}}(e,n)):Ss(t)?function(e,t){var n=_s(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ol(function(e){var t,n=Ns(e),r=As(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=ks(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ks(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Rs(e),l=-r.scrollTop;return"rtl"===Is(o||n).direction&&(s+=ks(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Ns(e)))}function jl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pl(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function kl(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?el:c,d=n.elementContext,f=void 0===d?tl:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,y=void 0===m?0:m,g=jl("number"!=typeof y?y:Pl(y,Zs)),v=f===tl?"reference":tl,b=e.rects.popper,w=e.elements[h?v:f],x=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Bs(zs(e)),n=["absolute","fixed"].indexOf(Is(e).position)>=0&&js(e)?Us(e):e;return Ss(n)?t.filter((function(e){return Ss(e)&&xl(e,n)&&"body"!==Ts(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Sl(e,n,r);return t.top=ks(o.top,t.top),t.right=Es(o.right,t.right),t.bottom=Es(o.bottom,t.bottom),t.left=ks(o.left,t.left),t}),Sl(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Ss(w)?w:w.contextElement||Ns(e.elements.popper),l,u,i),O=_s(e.elements.reference),S=pl({reference:O,element:b,strategy:"absolute",placement:o}),j=Ol(Object.assign({},b,S)),P=f===tl?j:O,k={top:x.top-P.top+g.top,bottom:P.bottom-x.bottom+g.bottom,left:x.left-P.left+g.left,right:P.right-x.right+g.right},E=e.modifiersData.offset;if(f===tl&&E){var C=E[o];Object.keys(k).forEach((function(e){var t=[Gs,qs].indexOf(e)>=0?1:-1,n=[Vs,qs].indexOf(e)>=0?"y":"x";k[e]+=C[n]*t}))}return k}const El={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,y=t.options.placement,g=ul(y),v=l||(g!==y&&h?function(e){if(ul(e)===Ks)return[];var t=vl(e);return[wl(e),t,wl(t)]}(y):[vl(y)]),b=[y].concat(v).reduce((function(e,n){return e.concat(ul(n)===Ks?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?rl:l,u=dl(r),d=u?s?nl:nl.filter((function(e){return dl(e)===u})):Zs,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=kl(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ul(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,S=!0,j=b[0],P=0;P<b.length;P++){var k=b[P],E=ul(k),C=dl(k)===Qs,M=[Vs,qs].indexOf(E)>=0,D=M?"width":"height",_=kl(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),A=M?C?Gs:Xs:C?qs:Vs;w[D]>x[D]&&(A=vl(A));var T=vl(A),N=[];if(a&&N.push(_[E]<=0),s&&N.push(_[A]<=0,_[T]<=0),N.every((function(e){return e}))){j=k,S=!1;break}O.set(k,N)}if(S)for(var R=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=h?3:1;I>0&&"break"!==R(I);I--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Cl(e,t,n){return ks(e,Es(t,n))}const Ml={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,y=kl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=ul(t.placement),v=dl(t.placement),b=!v,w=fl(g),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,P="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(O){if(a){var M,D="y"===w?Vs:Xs,_="y"===w?qs:Gs,A="y"===w?"height":"width",T=O[w],N=T+y[D],R=T-y[_],I=p?-j[A]/2:0,$=v===Qs?S[A]:j[A],L=v===Qs?-j[A]:-S[A],F=t.elements.arrow,z=p&&F?Fs(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[D],H=W[_],Y=Cl(0,S[A],z[A]),U=b?S[A]/2-I-Y-B-k.mainAxis:$-Y-B-k.mainAxis,V=b?-S[A]/2+I+Y+H+k.mainAxis:L+Y+H+k.mainAxis,q=t.elements.arrow&&Us(t.elements.arrow),G=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,X=null!=(M=null==E?void 0:E[w])?M:0,K=T+V-X,Z=Cl(p?Es(N,T+U-X-G):N,T,p?ks(R,K):R);O[w]=Z,C[w]=Z-T}if(s){var Q,J="x"===w?Vs:Xs,ee="x"===w?qs:Gs,te=O[x],ne="y"===x?"height":"width",re=te+y[J],oe=te-y[ee],ae=-1!==[Vs,Xs].indexOf(g),ie=null!=(Q=null==E?void 0:E[x])?Q:0,se=ae?re:te-S[ne]-j[ne]-ie+k.altAxis,le=ae?te+S[ne]+j[ne]-ie-k.altAxis:oe,ce=p&&ae?function(e,t,n){var r=Cl(e,t,n);return r>n?n:r}(se,te,le):Cl(p?se:re,te,p?le:oe);O[x]=ce,C[x]=ce-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},Dl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=ul(n.placement),l=fl(s),c=[Xs,Gs].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return jl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pl(e,Zs))}(o.padding,n),d=Fs(a),f="y"===l?Vs:Xs,p="y"===l?qs:Gs,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],y=Us(a),g=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,v=h/2-m/2,b=u[f],w=g-d[c]-u[p],x=g/2-d[c]/2+v,O=Cl(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&xl(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _l(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Al(e){return[Vs,Gs,qs,Xs].some((function(t){return e[t]>=0}))}var Tl=ll({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Os(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,cl)})),s&&l.addEventListener("resize",n.update,cl),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,cl)})),s&&l.removeEventListener("resize",n.update,cl)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:ul(t.placement),variation:dl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ml(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ml(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},yl,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=rl.reduce((function(e,n){return e[n]=function(e,t,n){var r=ul(e),o=[Xs,Vs].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Xs,Gs].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},El,Ml,Dl,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=kl(t,{elementContext:"reference"}),s=kl(t,{altBoundary:!0}),l=_l(i,r),c=_l(s,o,a),u=Al(l),d=Al(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Nl=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},Rl=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},Il=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=c(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}({...o,...r}),s=Rl(r),l=Rl(o),u=t(i),d=c(u?.className,n?.className,a,o?.className,r?.className),f={...u?.style,...n?.style,...o?.style,...r?.style},p={...u,...n,...l,...s};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}},$l=function(e,t,n){return"function"==typeof e?e(t,n):e};function Ll(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Fl=a.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=yo(a.isValidElement(n)?ts(n):null,t);if(bo((()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),bo((()=>{if(i&&!o)return Ll(t,i),()=>{Ll(t,null)}}),[t,i,o]),o){if(a.isValidElement(n)){const e={ref:l};return a.cloneElement(n,e)}return n}return i?as.createPortal(n,i):i}));function zl(e){return to("MuiPopper",e)}function Wl(e){return"function"==typeof e?e():e}no("MuiPopper",["root"]);const Bl={},Hl=a.forwardRef((function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:y,...g}=e,v=a.useRef(null),b=yo(v,t),w=a.useRef(null),x=yo(w,f),O=a.useRef(x);bo((()=>{O.current=x}),[x]),a.useImperativeHandle(f,(()=>w.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,o),[j,P]=a.useState(S),[k,E]=a.useState(Wl(n));a.useEffect((()=>{w.current&&w.current.forceUpdate()})),a.useEffect((()=>{n&&E(Wl(n))}),[n]),bo((()=>{if(!k||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{P(e.placement)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Tl(k,v.current,{placement:S,...d,modifiers:e});return O.current(t),()=>{t.destroy(),O.current(null)}}),[k,i,s,l,d,S]);const C={placement:j};null!==m&&(C.TransitionProps=m);const M=(e=>{const{classes:t}=e;return u({root:["root"]},zl,t)})(e),D=h.root??"div",_=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:$l(n,r),{props:s,internalRef:l}=Il({...a,externalSlotProps:i}),c=yo(l,i?.ref,e.additionalProps?.ref);return Nl(t,{...s,ref:c},r)}({elementType:D,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:M.root});return(0,Xr.jsx)(D,{..._,children:"function"==typeof r?r(C):r})})),Yl=Ur(a.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Bl,popperRef:p,style:h,transition:m=!1,slotProps:y={},slots:g={},...v}=e,[b,w]=a.useState(!0);if(!l&&!u&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=Wl(n);x=e&&void 0!==e.nodeType?xs(e).body:xs(null).body}const O=u||!l||m&&!b?void 0:"none",S=m?{in:u,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,Xr.jsx)(Fl,{disablePortal:s,container:x,children:(0,Xr.jsx)(Hl,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:t,open:m?!b:u,placement:d,popperOptions:f,popperRef:p,slotProps:y,slots:g,...v,style:{position:"fixed",top:0,left:0,display:O,...h},TransitionProps:S,children:r})})})),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ul=a.forwardRef((function(e,t){const n=es(),r=Zr({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:i,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,transition:y,slots:g,slotProps:v,...b}=r,w=g?.root??i?.Root,x={anchorEl:o,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,transition:y,...b};return(0,Xr.jsx)(Yl,{as:a,direction:n?"rtl":"ltr",slots:{root:w},slotProps:v??s,...x,ref:t})}));let Vl=0;const ql={...a}.useId;function Gl(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,h=$l(d[e],o),{props:{component:m,...y},internalRef:g}=Il({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=yo(g,h?.ref,t.ref),b="root"===e?m||c:m;return[p,Nl(p,{..."root"===e&&!c&&!u[e]&&i,..."root"!==e&&!u[e]&&i,...y,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o)]}function Xl(e){return to("MuiTooltip",e)}const Kl=no("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Zl(e){return Math.round(1e5*e)/1e5}const Ql=Ur(Ul,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(qr((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Kl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Kl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Kl.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Kl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Kl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Kl.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),Jl=Ur("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${p(n.placement.split("-")[0])}`]]}})(qr((({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Kl.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Kl.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Kl.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Zl(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Kl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Kl.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Kl.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Kl.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]})))),ec=Ur("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(qr((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let tc=!1;const nc=new Ro;let rc={x:0,y:0};function oc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ac=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:s={},componentsProps:l={},describeChild:d=!1,disableFocusListener:f=!1,disableHoverListener:h=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:v=0,enterTouchDelay:b=700,followCursor:w=!1,id:x,leaveDelay:O=0,leaveTouchDelay:S=1500,onClose:j,onOpen:P,open:k,placement:E="bottom",PopperComponent:C,PopperProps:M={},slotProps:D={},slots:_={},title:A,TransitionComponent:T,TransitionProps:N,...R}=n,I=a.isValidElement(o)?o:(0,Xr.jsx)("span",{children:o}),$=os(),L=es(),[F,z]=a.useState(),[W,B]=a.useState(null),H=a.useRef(!1),Y=m||w,U=Io(),V=Io(),q=Io(),G=Io(),[X,K]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=a.useRef(void 0!==e),[i,s]=a.useState(t);return[o?e:i,a.useCallback((e=>{o||s(e)}),[])]}({controlled:k,default:!1,name:"Tooltip",state:"open"});let Z=X;const Q=function(e){if(void 0!==ql){const t=ql();return e??t}return function(e){const[t,n]=a.useState(e),r=e||t;return a.useEffect((()=>{null==t&&(Vl+=1,n(`mui-${Vl}`))}),[t]),r}(e)}(x),J=a.useRef(),ee=wo((()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),G.clear()}));a.useEffect((()=>ee),[ee]);const te=e=>{nc.clear(),tc=!0,K(!0),P&&!Z&&P(e)},ne=wo((e=>{nc.start(800+O,(()=>{tc=!1})),K(!1),j&&Z&&j(e),U.start($.transitions.duration.shortest,(()=>{H.current=!1}))})),re=e=>{H.current&&"touchstart"!==e.type||(F&&F.removeAttribute("title"),V.clear(),q.clear(),g||tc&&v?V.start(tc?v:g,(()=>{te(e)})):te(e))},oe=e=>{V.clear(),q.start(O,(()=>{ne(e)}))},[,ae]=a.useState(!1),ie=e=>{vo(e.target)||(ae(!1),oe(e))},se=e=>{F||z(e.currentTarget),vo(e.target)&&(ae(!0),re(e))},le=e=>{H.current=!0;const t=I.props;t.onTouchStart&&t.onTouchStart(e)};a.useEffect((()=>{if(Z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ne(e)}}),[ne,Z]);const ce=go(ts(I),z,t);A||0===A||(Z=!1);const ue=a.useRef(),de={},fe="string"==typeof A;d?(de.title=Z||!fe||h?null:A,de["aria-describedby"]=Z?Q:null):(de["aria-label"]=fe?A:null,de["aria-labelledby"]=Z&&!fe?Q:null);const pe={...de,...R,...I.props,className:c(R.className,I.props.className),onTouchStart:le,ref:ce,...w?{onMouseMove:e=>{const t=I.props;t.onMouseMove&&t.onMouseMove(e),rc={x:e.clientX,y:e.clientY},ue.current&&ue.current.update()}}:{}},he={};y||(pe.onTouchStart=e=>{le(e),q.clear(),U.clear(),ee(),J.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(b,(()=>{document.body.style.WebkitUserSelect=J.current,re(e)}))},pe.onTouchEnd=e=>{I.props.onTouchEnd&&I.props.onTouchEnd(e),ee(),q.start(S,(()=>{ne(e)}))}),h||(pe.onMouseOver=oc(re,pe.onMouseOver),pe.onMouseLeave=oc(oe,pe.onMouseLeave),Y||(he.onMouseOver=re,he.onMouseLeave=oe)),f||(pe.onFocus=oc(se,pe.onFocus),pe.onBlur=oc(ie,pe.onBlur),Y||(he.onFocus=se,he.onBlur=ie));const me={...n,isRtl:L,arrow:r,disableInteractive:Y,placement:E,PopperComponentProp:C,touch:H.current},ye="function"==typeof D.popper?D.popper(me):D.popper,ge=a.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(W),options:{element:W,padding:4}}];return M.popperOptions?.modifiers&&(e=e.concat(M.popperOptions.modifiers)),ye?.popperOptions?.modifiers&&(e=e.concat(ye.popperOptions.modifiers)),{...M.popperOptions,...ye?.popperOptions,modifiers:e}}),[W,M.popperOptions,ye?.popperOptions]),ve=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return u({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${p(a.split("-")[0])}`],arrow:["arrow"]},Xl,t)})(me),be="function"==typeof D.transition?D.transition(me):D.transition,we={slots:{popper:s.Popper,transition:s.Transition??T,tooltip:s.Tooltip,arrow:s.Arrow,..._},slotProps:{arrow:D.arrow??l.arrow,popper:{...M,...ye??l.popper},tooltip:D.tooltip??l.tooltip,transition:{...N,...be??l.transition}}},[xe,Oe]=Gl("popper",{elementType:Ql,externalForwardedProps:we,ownerState:me,className:c(ve.popper,M?.className)}),[Se,je]=Gl("transition",{elementType:ws,externalForwardedProps:we,ownerState:me}),[Pe,ke]=Gl("tooltip",{elementType:Jl,className:ve.tooltip,externalForwardedProps:we,ownerState:me}),[Ee,Ce]=Gl("arrow",{elementType:ec,className:ve.arrow,externalForwardedProps:we,ownerState:me,ref:B});return(0,Xr.jsxs)(a.Fragment,{children:[a.cloneElement(I,pe),(0,Xr.jsx)(xe,{as:C??Ul,placement:E,anchorEl:w?{getBoundingClientRect:()=>({top:rc.y,left:rc.x,right:rc.x,bottom:rc.y,width:0,height:0})}:F,popperRef:ue,open:!!F&&Z,id:Q,transition:!0,...he,...Oe,popperOptions:ge,children:({TransitionProps:e})=>(0,Xr.jsx)(Se,{timeout:$.transitions.duration.shorter,...e,...je,children:(0,Xr.jsxs)(Pe,{...ke,children:[A,r?(0,Xr.jsx)(Ee,{...Ce}):null]})})})]})})),ic=ac;function sc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function lc(e,t=!1){return e&&(sc(e.value)&&""!==e.value||t&&sc(e.defaultValue)&&""!==e.defaultValue)}const cc=function(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)},uc=a.createContext(void 0);function dc(e){return to("MuiFormControl",e)}no("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fc=Ur("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${p(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),pc=a.forwardRef((function(e,t){const n=Zr({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:s="div",disabled:l=!1,error:d=!1,focused:f,fullWidth:h=!1,hiddenLabel:m=!1,margin:y="none",required:g=!1,size:v="medium",variant:b="outlined",...w}=n,x={...n,color:i,component:s,disabled:l,error:d,fullWidth:h,hiddenLabel:m,margin:y,required:g,size:v,variant:b},O=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return u({root:["root","none"!==n&&`margin${p(n)}`,r&&"fullWidth"]},dc,t)})(x),[S,j]=a.useState((()=>{let e=!1;return r&&a.Children.forEach(r,(t=>{if(!cc(t,["Input","Select"]))return;const n=cc(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[P,k]=a.useState((()=>{let e=!1;return r&&a.Children.forEach(r,(t=>{cc(t,["Input","Select"])&&(lc(t.props,!0)||lc(t.props.inputProps,!0))&&(e=!0)})),e})),[E,C]=a.useState(!1);l&&E&&C(!1);const M=void 0===f||l?E:f;let D;a.useRef(!1);const _=a.useCallback((()=>{k(!0)}),[]),A=a.useCallback((()=>{k(!1)}),[]),T=a.useMemo((()=>({adornedStart:S,setAdornedStart:j,color:i,disabled:l,error:d,filled:P,focused:M,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{C(!1)},onFocus:()=>{C(!0)},onEmpty:A,onFilled:_,registerEffect:D,required:g,variant:b})),[S,i,l,d,P,M,h,m,D,A,_,g,v,b]);return(0,Xr.jsx)(uc.Provider,{value:T,children:(0,Xr.jsx)(fc,{as:s,ownerState:x,className:c(O.root,o),ref:t,...w,children:r})})})),hc=pc;var mc=o(30020);const yc=({dateRange:e,onChange:t})=>(0,Xr.jsx)(mc.Ur,{ranges:[e],onChange:t,inputRanges:[],editableDateInputs:!0});var gc=o(5556),vc=o.n(gc),bc=Object.getOwnPropertyNames,wc=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty;function Oc(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function Sc(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,a=o.get(t),i=o.get(n);if(a&&i)return a===n&&i===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function jc(e){return bc(e).concat(wc(e))}var Pc=Object.hasOwn||function(e,t){return xc.call(e,t)};function kc(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var Ec=Object.getOwnPropertyDescriptor,Cc=Object.keys;function Mc(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Dc(e,t){return kc(e.getTime(),t.getTime())}function _c(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ac(e,t){return e===t}function Tc(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o,a,i=new Array(r),s=e.entries(),l=0;(o=s.next())&&!o.done;){for(var c=t.entries(),u=!1,d=0;(a=c.next())&&!a.done;)if(i[d])d++;else{var f=o.value,p=a.value;if(n.equals(f[0],p[0],l,d,e,t,n)&&n.equals(f[1],p[1],f[0],p[0],e,t,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}var Nc=kc;function Rc(e,t,n){var r=Cc(e),o=r.length;if(Cc(t).length!==o)return!1;for(;o-- >0;)if(!Bc(e,t,n,r[o]))return!1;return!0}function Ic(e,t,n){var r,o,a,i=jc(e),s=i.length;if(jc(t).length!==s)return!1;for(;s-- >0;){if(!Bc(e,t,n,r=i[s]))return!1;if(o=Ec(e,r),a=Ec(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable))return!1}return!0}function $c(e,t){return kc(e.valueOf(),t.valueOf())}function Lc(e,t){return e.source===t.source&&e.flags===t.flags}function Fc(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o,a,i=new Array(r),s=e.values();(o=s.next())&&!o.done;){for(var l=t.values(),c=!1,u=0;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(o.value,a.value,o.value,a.value,e,t,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function zc(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Wc(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 Bc(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||Pc(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Hc=Array.isArray,Yc="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Uc=Object.assign,Vc=Object.prototype.toString.call.bind(Object.prototype.toString),qc=Gc();function Gc(e){void 0===e&&(e={});var t,n=e.circular,r=void 0!==n&&n,o=e.createInternalComparator,a=e.createState,i=e.strict,s=void 0!==i&&i,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?Ic:Mc,areDatesEqual:Dc,areErrorsEqual:_c,areFunctionsEqual:Ac,areMapsEqual:r?Oc(Tc,Ic):Tc,areNumbersEqual:Nc,areObjectsEqual:r?Ic:Rc,arePrimitiveWrappersEqual:$c,areRegExpsEqual:Lc,areSetsEqual:r?Oc(Fc,Ic):Fc,areTypedArraysEqual:r?Ic:zc,areUrlsEqual:Wc};if(n&&(o=Uc({},o,n(o))),t){var a=Sc(o.areArraysEqual),i=Sc(o.areMapsEqual),s=Sc(o.areObjectsEqual),l=Sc(o.areSetsEqual);o=Uc({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,a=e.areMapsEqual,i=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(e,p,h){if(e===p)return!0;if(null==e||null==p)return!1;var m=typeof e;if(m!==typeof p)return!1;if("object"!==m)return"number"===m?i(e,p,h):"function"===m&&o(e,p,h);var y=e.constructor;if(y!==p.constructor)return!1;if(y===Object)return s(e,p,h);if(Hc(e))return t(e,p,h);if(null!=Yc&&Yc(e))return d(e,p,h);if(y===Date)return n(e,p,h);if(y===RegExp)return c(e,p,h);if(y===Map)return a(e,p,h);if(y===Set)return u(e,p,h);var g=Vc(e);return"[object Date]"===g?n(e,p,h):"[object RegExp]"===g?c(e,p,h):"[object Map]"===g?a(e,p,h):"[object Set]"===g?u(e,p,h):"[object Object]"===g?"function"!=typeof e.then&&"function"!=typeof p.then&&s(e,p,h):"[object URL]"===g?f(e,p,h):"[object Error]"===g?r(e,p,h):"[object Arguments]"===g?s(e,p,h):("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)&&l(e,p,h)}}(l),u=o?o(c):(t=c,function(e,n,r,o,a,i,s){return t(e,n,s)});return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var s=r(),l=s.cache,c=void 0===l?t?new WeakMap:void 0:l,u=s.meta;return n(e,i,{cache:c,equals:o,meta:u,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:r,comparator:c,createState:a,equals:u,strict:s})}function Xc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function Kc(e){return Kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kc(e)}function Zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qc(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(s=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return Zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zc(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);return"number"==typeof a?void Xc(n.bind(null,i),a):(n(a),void Xc(n.bind(null,i)))}"object"===Kc(r)&&e(r),"function"==typeof r&&r()}var s};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){nu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nu(e,t,n){return t=function(e){var t=function(e){if("object"!==Jc(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Jc(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gc({strict:!0}),Gc({circular:!0}),Gc({circular:!0,strict:!0}),Gc({createInternalComparator:function(){return kc}}),Gc({strict:!0,createInternalComparator:function(){return kc}}),Gc({circular:!0,createInternalComparator:function(){return kc}}),Gc({circular:!0,createInternalComparator:function(){return kc},strict:!0});var ru=function(e){return e},ou=function(e,t){return Object.keys(t).reduce((function(n,r){return tu(tu({},n),{},nu({},r,e(r,t[r])))}),{})},au=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function iu(e,t){if(e){if("string"==typeof e)return su(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?su(e,t):void 0}}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lu=1e-4,cu=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},uu=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},du=function(e,t){return function(n){var r=cu(e,t);return uu(r,n)}},fu=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a=t[0],i=t[1],s=t[2],l=t[3];if(1===t.length)switch(t[0]){case"linear":a=0,i=0,s=1,l=1;break;case"ease":a=.25,i=.1,s=.25,l=1;break;case"ease-in":a=.42,i=0,s=1,l=1;break;case"ease-out":a=.42,i=0,s=.58,l=1;break;case"ease-in-out":a=0,i=0,s=.58,l=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=(r=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),o=4,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(r,o)||iu(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());a=u[0],i=u[1],s=u[2],l=u[3]}}[a,s,i,l].every((function(e){return"number"==typeof e&&e>=0&&e<=1}));var d,f,p=du(a,s),h=du(i,l),m=(d=a,f=s,function(e){var t=cu(d,f),n=[].concat(function(e){return function(e){if(Array.isArray(e))return su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.map((function(e,t){return e*t})).slice(1)),[0]);return uu(n,e)}),y=function(e){return e>1?1:e<0?0:e},g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=p(n)-t,a=m(n);if(Math.abs(o-t)<lu||a<lu)return h(n);n=y(n-o/a)}return h(n)};return g.isStepper=!1,g};function pu(e){return pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pu(e)}function hu(e){return function(e){if(Array.isArray(e))return bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){gu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t,n){return t=function(e){var t=function(e){if("object"!==pu(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==pu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pu(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vu(e,t){if(e){if("string"==typeof e)return bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bu(e,t):void 0}}function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wu=function(e,t,n){return e+(t-e)*n},xu=function(e){return e.from!==e.to},Ou=function e(t,n,r){var o=ou((function(e,n){if(xu(n)){var r=(i=t(n.from,n.to,n.velocity),s=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(i,s)||vu(i,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return yu(yu({},n),{},{from:o,velocity:a})}var i,s;return n}),n);return r<1?ou((function(e,t){return xu(t)?yu(yu({},t),{},{velocity:wu(t.velocity,o[e].velocity,r),from:wu(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)};function Su(e){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(e)}var ju=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Pu(e){return function(e){if(Array.isArray(e))return ku(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ku(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ku(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){Mu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mu(e,t,n){return(t=_u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_u(r.key),r)}}function _u(e){var t=function(e){if("object"!==Su(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Su(t)?t:String(t)}function Au(e,t){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Au(e,t)}function Tu(e,t){if(t&&("object"===Su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Nu(e)}function Nu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ru(e){return Ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ru(e)}var Iu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}(l,e);var t,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ru(r);if(o){var n=Ru(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Tu(this,e)});function l(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=(n=i.call(this,e,t)).props,o=r.isActive,a=r.attributeName,s=r.from,c=r.to,u=r.steps,d=r.children,f=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(Nu(n)),n.changeStyle=n.changeStyle.bind(Nu(n)),!o||f<=0)return n.state={style:{}},"function"==typeof d&&(n.state={style:c}),Tu(n);if(u&&u.length)n.state={style:u[0].style};else if(s){if("function"==typeof d)return n.state={style:s},Tu(n);n.state={style:a?Mu({},a,s):s}}else n.state={style:{}};return n}return t=l,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,a=t.shouldReAnimate,i=t.to,s=t.from,l=this.state.style;if(r)if(n){if(!(qc(e.to,i)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||a?s:e.to;if(this.state&&l){var d={style:o?Mu({},o,u):u};(o&&l[o]!==u||!o&&l!==u)&&this.setState(d)}this.runAnimation(Cu(Cu({},this.props),{},{from:u,begin:0}))}}else{var f={style:o?Mu({},o,i):i};this.state&&l&&(o&&l[o]!==i||!o&&l!==i)&&this.setState(f)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,a=e.easing,i=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=function(e,t,n,r,o){var a,i,s,l,c=(a=e,i=t,[Object.keys(a),Object.keys(i)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=c.reduce((function(n,r){return yu(yu({},n),{},gu({},r,[e[r],t[r]]))}),{}),d=c.reduce((function(n,r){return yu(yu({},n),{},gu({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),f=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var a=(r-s)/n.dt;d=Ou(n,d,a),o(yu(yu(yu({},e),t),ou((function(e,t){return t.from}),d))),s=r,Object.values(d).filter(xu).length&&(f=requestAnimationFrame(p))}:function(a){l||(l=a);var i=(a-l)/r,s=ou((function(e,t){return wu.apply(void 0,hu(t).concat([n(i)]))}),u);if(o(yu(yu(yu({},e),t),s)),i<1)f=requestAnimationFrame(p);else{var c=ou((function(e,t){return wu.apply(void 0,hu(t).concat([n(1)]))}),u);o(yu(yu(yu({},e),t),c))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}}(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fu(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,s=r*i/1e3+e;return Math.abs(s-t)<lu&&Math.abs(a)<lu?[t,0]:[s,a]};return s.isStepper=!0,s.dt=i,s}();default:if("cubic-bezier"===r.split("(")[0])return fu(r)}return"function"==typeof r?r:null}(a),o,this.changeStyle);this.manager.start([l,i,function(){t.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,a=n[0],i=a.style,s=a.duration,l=void 0===s?0:s;return this.manager.start([o].concat(Pu(n.reduce((function(e,r,o){if(0===o)return e;var a=r.duration,i=r.easing,s=void 0===i?"ease":i,l=r.style,c=r.properties,u=r.onAnimationEnd,d=o>0?n[o-1]:r,f=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(Pu(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:a,easing:s}),a]);var p=au(f,a,s),h=Cu(Cu(Cu({},d.style),l),{},{transition:p});return[].concat(Pu(e),[h,a,u]).filter(ru)}),[i,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Qc());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,a=e.easing,i=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof a&&"function"!=typeof c&&"spring"!==a)if(l.length>1)this.runStepAnimation(e);else{var d=r?Mu({},r,o):o,f=au(Object.keys(d),n,a);u.start([i,t,Cu(Cu({},d),{},{transition:f}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ju)),i=a.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===i||n<=0)return t;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,i=t.className;return(0,a.cloneElement)(e,Cu(Cu({},o),{},{style:Cu(Cu({},r),l),className:i}))};return 1===i?c(a.Children.only(t)):s().createElement("div",null,a.Children.map(t,(function(e){return c(e)})))}}],n&&Du(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.PureComponent);Iu.displayName="Animate",Iu.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Iu.propTypes={from:vc().oneOfType([vc().object,vc().string]),to:vc().oneOfType([vc().object,vc().string]),attributeName:vc().string,duration:vc().number,begin:vc().number,easing:vc().oneOfType([vc().string,vc().func]),steps:vc().arrayOf(vc().shape({duration:vc().number.isRequired,style:vc().object.isRequired,easing:vc().oneOfType([vc().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),vc().func]),properties:vc().arrayOf("string"),onAnimationEnd:vc().func})),children:vc().oneOfType([vc().node,vc().func]),isActive:vc().bool,canBegin:vc().bool,onAnimationEnd:vc().func,shouldReAnimate:vc().bool,onAnimationStart:vc().func,onAnimationReStart:vc().func};const $u=Iu;var Lu=o(2404),Fu=o.n(Lu),zu=o(69843),Wu=o.n(zu),Bu=o(58156),Hu=o.n(Bu),Yu=o(85015),Uu=o.n(Yu),Vu=o(1882),qu=o.n(Vu),Gu=o(23805),Xu=o.n(Gu),Ku=o(52199),Zu=o(11741),Qu=o.n(Zu),Ju=o(98023),ed=o.n(Ju),td=function(e){return 0===e?0:e>0?1:-1},nd=function(e){return Uu()(e)&&e.indexOf("%")===e.length-1},rd=function(e){return ed()(e)&&!Qu()(e)},od=function(e){return rd(e)||Uu()(e)},ad=0,id=function(e){var t=++ad;return"".concat(e||"").concat(t)},sd=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!rd(e)&&!Uu()(e))return r;if(nd(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return Qu()(n)&&(n=r),o&&n>t&&(n=t),n},ld=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},cd=function(e,t){return rd(e)&&rd(t)?function(n){return e+n*(t-e)}:function(){return t}};function ud(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Hu()(e,t))===n})):null}function dd(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function fd(e){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(e)}var pd=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],hd=["points","pathLength"],md={svg:["viewBox","children"],polygon:hd,polyline:hd},yd=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],gd=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,a.isValidElement)(e)&&(n=e.props),!Xu()(n))return null;var r={};return Object.keys(n).forEach((function(e){yd.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},vd=function(e,t,n){if(!Xu()(e)||"object"!==fd(e))return null;var r=null;return Object.keys(e).forEach((function(o){var a=e[o];yd.includes(o)&&"function"==typeof a&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(a,t,n))})),r},bd=["children"],wd=["children"];function xd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Od(e){return Od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Od(e)}var Sd={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"},jd=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Pd=null,kd=null,Ed=function e(t){if(t===Pd&&Array.isArray(kd))return kd;var n=[];return a.Children.forEach(t,(function(t){Wu()(t)||((0,Ku.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))})),kd=n,Pd=t,n};function Cd(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return jd(e)})):[jd(t)],Ed(e).forEach((function(e){var t=Hu()(e,"type.displayName")||Hu()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function Md(e,t){var n=Cd(e,t);return n&&n[0]}var Dd=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!rd(n)||n<=0||!rd(r)||r<=0)},_d=["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"],Ad=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,a.isValidElement)(e)&&(r=e.props),!Xu()(r))return null;var o={};return Object.keys(r).forEach((function(e){var a;(function(e,t,n,r){var o,a=null!==(o=null==md?void 0:md[r])&&void 0!==o?o:[];return t.startsWith("data-")||!qu()(e)&&(r&&a.includes(t)||pd.includes(t))||n&&yd.includes(t)})(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])})),o},Td=function e(t,n){if(t===n)return!0;var r=a.Children.count(t);if(r!==a.Children.count(n))return!1;if(0===r)return!0;if(1===r)return Nd(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],s=n[o];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!Nd(i,s))return!1}return!0},Nd=function(e,t){if(Wu()(e)&&Wu()(t))return!0;if(!Wu()(e)&&!Wu()(t)){var n=e.props||{},r=n.children,o=xd(n,bd),a=t.props||{},i=a.children,s=xd(a,wd);return r&&i?dd(o,s)&&Td(r,i):!r&&!i&&dd(o,s)}return!1},Rd=function(e,t){var n=[],r={};return Ed(e).forEach((function(e,o){if(function(e){return e&&e.type&&Uu()(e.type)&&_d.indexOf(e.type)>=0}(e))n.push(e);else if(e){var a=jd(e.type),i=t[a]||{},s=i.handler,l=i.once;if(s&&(!l||!r[a])){var c=s(e,a,o);n.push(c),r[a]=!0}}})),n},Id=["children","className"];function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}var Ld=s().forwardRef((function(e,t){var n=e.children,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Id),a=c("recharts-layer",r);return s().createElement("g",$d({className:a},Ad(o,!0),{ref:t}),n)}));function Fd(e,t){if(!e)throw new Error("Invariant failed")}var zd=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wd(e){return Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wd(e)}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bd.apply(this,arguments)}function Hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xd(r.key),r)}}function Ud(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ud=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vd(e)}function qd(e,t){return qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qd(e,t)}function Gd(e,t,n){return(t=Xd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xd(e){var t=function(e){if("object"!=Wd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wd(t)?t:t+""}var Kd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Vd(n=t),function(e,t){if(t&&("object"===Wd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ud()?Reflect.construct(n,r||[],Vd(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qd(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,i=e.dataPointFormatter,l=e.xAxis,c=e.yAxis,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,zd),d=Ad(u,!1);"x"===this.props.direction&&"number"!==l.type&&Fd(!1);var f=a.map((function(e){var a=i(e,o),u=a.x,f=a.y,p=a.value,h=a.errorVal;if(!h)return null;var m,y,g,v,b=[];if(Array.isArray(h)){var w=(v=2,function(e){if(Array.isArray(e))return e}(g=h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(g,v)||function(e,t){if(e){if("string"==typeof e)return Hd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hd(e,t):void 0}}(g,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());m=w[0],y=w[1]}else m=y=h;if("vertical"===n){var x=l.scale,O=f+t,S=O+r,j=O-r,P=x(p-m),k=x(p+y);b.push({x1:k,y1:S,x2:k,y2:j}),b.push({x1:P,y1:O,x2:k,y2:O}),b.push({x1:P,y1:S,x2:P,y2:j})}else if("horizontal"===n){var E=c.scale,C=u+t,M=C-r,D=C+r,_=E(p-m),A=E(p+y);b.push({x1:M,y1:A,x2:D,y2:A}),b.push({x1:C,y1:_,x2:C,y2:A}),b.push({x1:M,y1:_,x2:D,y2:_})}return s().createElement(Ld,Bd({className:"recharts-errorBar",key:"bar-".concat(b.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},d),b.map((function(e){return s().createElement("line",Bd({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return s().createElement(Ld,{className:"recharts-errorBars"},f)}}],r&&Yd(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);Gd(Kd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Gd(Kd,"displayName","ErrorBar");var Zd=function(e){return null};Zd.displayName="Cell";var Qd=o(68090),Jd=o.n(Qd),ef={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return ef[e]},set:function(e,t){if("string"==typeof e)ef[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){ef[t]=e[t]}))}}};function tf(e){return tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tf(e)}function nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(n),!0).forEach((function(t){of(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function of(e,t,n){var r;return r=function(e){if("object"!=tf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==tf(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var af={widthCache:{},cacheCount:0},sf={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lf="recharts_measurement_span",cf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||ef.isSsr)return{width:0,height:0};var n,r=(n=rf({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(af.widthCache[o])return af.widthCache[o];try{var a=document.getElementById(lf);a||((a=document.createElement("span")).setAttribute("id",lf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=rf(rf({},sf),r);Object.assign(a.style,i),a.textContent="".concat(e);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return af.widthCache[o]=l,++af.cacheCount>2e3&&(af.cacheCount=0,af.widthCache={}),l}catch(e){return{width:0,height:0}}};function uf(e){return uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uf(e)}function df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ff(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hf(r.key),r)}}function hf(e){var t=function(e){if("object"!=uf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uf(t)?t:t+""}var mf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gf=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vf=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bf={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},wf=Object.keys(bf),xf="NaN",Of=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||gf.test(n)||(this.num=NaN,this.unit=""),wf.includes(n)&&(this.num=function(e,t){return e*bf[t]}(t,n),this.unit="px")}return t=e,r=[{key:"parse",value:function(t){var n,r=df(null!==(n=vf.exec(t))&&void 0!==n?n:[],3),o=r[1],a=r[2];return new e(parseFloat(o),null!=a?a:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&pf(t.prototype,n),r&&pf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sf(e){if(e.includes(xf))return xf;for(var t=e;t.includes("*")||t.includes("/");){var n,r=df(null!==(n=mf.exec(t))&&void 0!==n?n:[],4),o=r[1],a=r[2],i=r[3],s=Of.parse(null!=o?o:""),l=Of.parse(null!=i?i:""),c="*"===a?s.multiply(l):s.divide(l);if(c.isNaN())return xf;t=t.replace(mf,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=df(null!==(u=yf.exec(t))&&void 0!==u?u:[],4),f=d[1],p=d[2],h=d[3],m=Of.parse(null!=f?f:""),y=Of.parse(null!=h?h:""),g="+"===p?m.add(y):m.subtract(y);if(g.isNaN())return xf;t=t.replace(yf,g.toString())}return t}var jf=/\(([^()]*)\)/;function Pf(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=df(jf.exec(t),2)[1];t=t.replace(jf,Sf(n))}return t}(t),Sf(t)}(e)}catch(e){return xf}}(e.slice(5,-1));return t===xf?"":t}var kf=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Ef=["dx","dy","angle","className","breakAll"];function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(this,arguments)}function Mf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Af=/[ \f\n\r\t\v\u2028\u2029]+/,Tf=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Wu()(t)||(o=n?t.toString().split(""):t.toString().split(Af)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:cf(e,r).width}})),spaceWidth:n?0:cf(" ",r).width}}catch(e){return null}},Nf=function(e){return[{words:Wu()(e)?[]:e.toString().split(Af)}]},Rf="#808080",If=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.lineHeight,l=void 0===i?"1em":i,u=e.capHeight,d=void 0===u?"0.71em":u,f=e.scaleToFit,p=void 0!==f&&f,h=e.textAnchor,m=void 0===h?"start":h,y=e.verticalAnchor,g=void 0===y?"end":y,v=e.fill,b=void 0===v?Rf:v,w=Mf(e,kf),x=(0,a.useMemo)((function(){return function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!ef.isSsr){var s=Tf({breakAll:a,children:r,style:o});return s?function(e,t,n,r,o){var a=e.maxLines,i=e.children,s=e.style,l=e.breakAll,c=rd(a),u=i,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var a=t.word,i=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+i+n<Number(r)))s.words.push(a),s.width+=i+n;else{var l={words:[a],width:i};e.push(l)}return e}),[])},f=d(t);if(!c)return f;for(var p,h=function(e){var t=u.slice(0,e),n=Tf({breakAll:l,style:s,children:t+"…"}).wordsWithComputedWidth,o=d(n),i=o.length>a||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[i,o]},m=0,y=u.length-1,g=0;m<=y&&g<=u.length-1;){var v=Math.floor((m+y)/2),b=Df(h(v-1),2),w=b[0],x=b[1],O=Df(h(v),1)[0];if(w||O||(m=v+1),w&&O&&(y=v-1),!w&&O){p=x;break}g++}return p||f}({breakAll:a,children:r,maxLines:i,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Nf(r)}return Nf(r)}({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:p,style:w.style,width:w.width})}),[w.breakAll,w.children,w.maxLines,p,w.style,w.width]),O=w.dx,S=w.dy,j=w.angle,P=w.className,k=w.breakAll,E=Mf(w,Ef);if(!od(n)||!od(o))return null;var C,M=n+(rd(O)?O:0),D=o+(rd(S)?S:0);switch(g){case"start":C=Pf("calc(".concat(d,")"));break;case"middle":C=Pf("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:C=Pf("calc(".concat(x.length-1," * -").concat(l,")"))}var _=[];if(p){var A=x[0].width,T=w.width;_.push("scale(".concat((rd(T)?T/A:1)/A,")"))}return j&&_.push("rotate(".concat(j,", ").concat(M,", ").concat(D,")")),_.length&&(E.transform=_.join(" ")),s().createElement("text",Cf({},Ad(E,!0),{x:M,y:D,className:c("recharts-text",P),textAnchor:m,fill:b.includes("url")?Rf:b}),x.map((function(e,t){var n=e.words.join(k?"":" ");return s().createElement("tspan",{x:M,dy:0===t?C:l,key:"".concat(n,"-").concat(t)},n)})))};function $f(e){return $f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$f(e)}function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zf(e,t,n){var r;return r=function(e){if("object"!=$f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==$f(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wf=Math.PI/180,Bf=function(e){return 180*e/Math.PI},Hf=function(e,t,n,r){return{x:e+Math.cos(-Wf*r)*n,y:t+Math.sin(-Wf*r)*n}},Yf=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),a=Math.floor(r/360);return e+360*Math.min(o,a)},Uf=function(e,t){var n=function(e,t){var n=e.x,r=e.y,o=t.cx,a=t.cy,i=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-a,2))}({x:n,y:r},{x:o,y:a});if(i<=0)return{radius:i};var s=(n-o)/i,l=Math.acos(s);return r>a&&(l=2*Math.PI-l),{radius:i,angle:Bf(l),angleInRadian:l}}({x:e.x,y:e.y},t),r=n.radius,o=n.angle,a=t.innerRadius,i=t.outerRadius;if(r<a||r>i)return!1;if(0===r)return!0;var s,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),a=Math.min(r,o);return{startAngle:t-360*a,endAngle:n-360*a}}(t),c=l.startAngle,u=l.endAngle,d=o;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;s=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;s=d>=u&&d<=c}return s?Ff(Ff({},t),{},{radius:r,angle:Yf(d,t)}):null};function Vf(e){return Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vf(e)}var qf=["offset"];function Gf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){Zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zf(e,t,n){var r;return r=function(e){if("object"!=Vf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Vf(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(this,arguments)}function Jf(e){var t,n=e.offset,r=Kf({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qf)),o=r.viewBox,i=r.position,l=r.value,u=r.children,d=r.content,f=r.className,p=void 0===f?"":f,h=r.textBreakAll;if(!o||Wu()(l)&&Wu()(u)&&!(0,a.isValidElement)(d)&&!qu()(d))return null;if((0,a.isValidElement)(d))return(0,a.cloneElement)(d,r);if(qu()(d)){if(t=(0,a.createElement)(d,r),(0,a.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=Wu()(e.children)?t:e.children;return qu()(n)?n(r):r}(r);var m=function(e){return"cx"in e&&rd(e.cx)}(o),y=Ad(r,!0);if(m&&("insideStart"===i||"insideEnd"===i||"end"===i))return function(e,t,n){var r,o,a=e.position,i=e.viewBox,l=e.offset,u=e.className,d=i,f=d.cx,p=d.cy,h=d.innerRadius,m=d.outerRadius,y=d.startAngle,g=d.endAngle,v=d.clockWise,b=(h+m)/2,w=function(e,t){return td(t-e)*Math.min(Math.abs(t-e),360)}(y,g),x=w>=0?1:-1;"insideStart"===a?(r=y+x*l,o=v):"insideEnd"===a?(r=g-x*l,o=!v):"end"===a&&(r=g+x*l,o=v),o=w<=0?o:!o;var O=Hf(f,p,b,r),S=Hf(f,p,b,r+359*(o?1:-1)),j="M".concat(O.x,",").concat(O.y,"\n    A").concat(b,",").concat(b,",0,1,").concat(o?0:1,",\n    ").concat(S.x,",").concat(S.y),P=Wu()(e.id)?id("recharts-radial-line-"):e.id;return s().createElement("text",Qf({},n,{dominantBaseline:"central",className:c("recharts-radial-bar-label",u)}),s().createElement("defs",null,s().createElement("path",{id:P,d:j})),s().createElement("textPath",{xlinkHref:"#".concat(P)},t))}(r,t,y);var g=m?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,a=o.cx,i=o.cy,s=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=Hf(a,i,l+n,c),_x=u.x;return{x:_x,y:u.y,textAnchor:_x>=a?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:a,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=Hf(a,i,(s+l)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(r):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t,i=a.x,s=a.y,l=a.width,c=a.height,u=c>=0?1:-1,d=u*r,f=u>0?"end":"start",p=u>0?"start":"end",h=l>=0?1:-1,m=h*r,y=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return Kf(Kf({},{x:i+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===o)return Kf(Kf({},{x:i+l/2,y:s+c+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+c),0),width:l}:{});if("left"===o){var v={x:i-m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Kf(Kf({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if("right"===o){var b={x:i+l+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Kf(Kf({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var w=n?{width:l,height:c}:{};return"insideLeft"===o?Kf({x:i+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===o?Kf({x:i+l-m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?Kf({x:i+l/2,y:s+d,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?Kf({x:i+l/2,y:s+c-d,textAnchor:"middle",verticalAnchor:f},w):"insideTopLeft"===o?Kf({x:i+m,y:s+d,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===o?Kf({x:i+l-m,y:s+d,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?Kf({x:i+m,y:s+c-d,textAnchor:g,verticalAnchor:f},w):"insideBottomRight"===o?Kf({x:i+l-m,y:s+c-d,textAnchor:y,verticalAnchor:f},w):Xu()(o)&&(rd(o.x)||nd(o.x))&&(rd(o.y)||nd(o.y))?Kf({x:i+sd(o.x,l),y:s+sd(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):Kf({x:i+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(r);return s().createElement(If,Qf({className:c("recharts-label",p)},y,g,{breakAll:h}),t)}Jf.displayName="Label";var ep=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,h=e.width,m=e.height,y=e.clockWise,g=e.labelViewBox;if(g)return g;if(rd(h)&&rd(m)){if(rd(u)&&rd(d))return{x:u,y:d,width:h,height:m};if(rd(f)&&rd(p))return{x:f,y:p,width:h,height:m}}return rd(u)&&rd(d)?{x:u,y:d,width:0,height:0}:rd(t)&&rd(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:l||0,outerRadius:c||s||i||0,clockWise:y}:e.viewBox?e.viewBox:{}};function tp(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function np(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}Jf.parseViewBox=ep,Jf.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=ep(e),i=Cd(r,Jf).map((function(e,n){return(0,a.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var l,c=function(e,t){return e?!0===e?s().createElement(Jf,{key:"label-implicit",viewBox:t}):od(e)?s().createElement(Jf,{key:"label-implicit",viewBox:t,value:e}):(0,a.isValidElement)(e)?e.type===Jf?(0,a.cloneElement)(e,{key:"label-implicit",viewBox:t}):s().createElement(Jf,{key:"label-implicit",content:e,viewBox:t}):qu()(e)?s().createElement(Jf,{key:"label-implicit",content:e,viewBox:t}):Xu()(e)?s().createElement(Jf,Qf({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[c].concat(function(e){if(Array.isArray(e))return Gf(e)}(l=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return Gf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gf(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};class rp extends Map{constructor(e,t=ap){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(op(this,e))}has(e){return super.has(op(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function op({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ap(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const ip=Symbol("implicit");function sp(){var e=new rp,t=[],n=[],r=ip;function o(o){let a=e.get(o);if(void 0===a){if(r!==ip)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new rp;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return sp(t,n).unknown(r)},tp.apply(o,arguments),o}function lp(){var e,t,n=sp().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,f=d?i:a,p=d?a:i;e=(p-f)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),f+=(p-f-e*(n-l))*u,t=e*(1-l),s&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return lp(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},tp.apply(d(),arguments)}function cp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cp(t())},e}function up(){return cp(lp.apply(null,arguments).paddingInner(1))}const dp=Math.sqrt(50),fp=Math.sqrt(10),pp=Math.sqrt(2);function hp(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=dp?10:a>=fp?5:a>=pp?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?hp(e,t,2*n):[s,l,c]}function mp(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,a,i]=r?hp(t,e,n):hp(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let e=0;e<s;++e)l[e]=(a-e)/-i;else for(let e=0;e<s;++e)l[e]=(a-e)*i;else if(i<0)for(let e=0;e<s;++e)l[e]=(o+e)/-i;else for(let e=0;e<s;++e)l[e]=(o+e)*i;return l}function yp(e,t,n){return hp(e=+e,t=+t,n=+n)[2]}function gp(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?yp(t,e,n):yp(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function vp(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bp(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wp(e){let t,n,r;function o(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=vp,n=(t,n)=>vp(e(t),n),r=(t,n)=>e(t)-n):(t=e===vp||e===bp?e:xp,n=e,r=e),{left:o,center:function(e,t,n=0,a=e.length){const i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function xp(){return 0}function Op(e){return null===e?NaN:+e}const Sp=wp(vp),jp=Sp.right,Pp=(Sp.left,wp(Op).center,jp);function kp(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ep(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cp(){}var Mp=.7,Dp=1/Mp,_p="\\s*([+-]?\\d+)\\s*",Ap="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Np=/^#([0-9a-f]{3,8})$/,Rp=new RegExp(`^rgb\\(${_p},${_p},${_p}\\)$`),Ip=new RegExp(`^rgb\\(${Tp},${Tp},${Tp}\\)$`),$p=new RegExp(`^rgba\\(${_p},${_p},${_p},${Ap}\\)$`),Lp=new RegExp(`^rgba\\(${Tp},${Tp},${Tp},${Ap}\\)$`),Fp=new RegExp(`^hsl\\(${Ap},${Tp},${Tp}\\)$`),zp=new RegExp(`^hsla\\(${Ap},${Tp},${Tp},${Ap}\\)$`),Wp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bp(){return this.rgb().formatHex()}function Hp(){return this.rgb().formatRgb()}function Yp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Np.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Up(t):3===n?new Gp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Rp.exec(e))?new Gp(t[1],t[2],t[3],1):(t=Ip.exec(e))?new Gp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$p.exec(e))?Vp(t[1],t[2],t[3],t[4]):(t=Lp.exec(e))?Vp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fp.exec(e))?eh(t[1],t[2]/100,t[3]/100,1):(t=zp.exec(e))?eh(t[1],t[2]/100,t[3]/100,t[4]):Wp.hasOwnProperty(e)?Up(Wp[e]):"transparent"===e?new Gp(NaN,NaN,NaN,0):null}function Up(e){return new Gp(e>>16&255,e>>8&255,255&e,1)}function Vp(e,t,n,r){return r<=0&&(e=t=n=NaN),new Gp(e,t,n,r)}function qp(e,t,n,r){return 1===arguments.length?((o=e)instanceof Cp||(o=Yp(o)),o?new Gp((o=o.rgb()).r,o.g,o.b,o.opacity):new Gp):new Gp(e,t,n,null==r?1:r);var o}function Gp(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xp(){return`#${Jp(this.r)}${Jp(this.g)}${Jp(this.b)}`}function Kp(){const e=Zp(this.opacity);return`${1===e?"rgb(":"rgba("}${Qp(this.r)}, ${Qp(this.g)}, ${Qp(this.b)}${1===e?")":`, ${e})`}`}function Zp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jp(e){return((e=Qp(e))<16?"0":"")+e.toString(16)}function eh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nh(e,t,n,r)}function th(e){if(e instanceof nh)return new nh(e.h,e.s,e.l,e.opacity);if(e instanceof Cp||(e=Yp(e)),!e)return new nh;if(e instanceof nh)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new nh(i,s,l,e.opacity)}function nh(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rh(e){return(e=(e||0)%360)<0?e+360:e}function oh(e){return Math.max(0,Math.min(1,e||0))}function ah(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ih(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}kp(Cp,Yp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bp,formatHex:Bp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return th(this).formatHsl()},formatRgb:Hp,toString:Hp}),kp(Gp,qp,Ep(Cp,{brighter(e){return e=null==e?Dp:Math.pow(Dp,e),new Gp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Mp:Math.pow(Mp,e),new Gp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gp(Qp(this.r),Qp(this.g),Qp(this.b),Zp(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:Xp,formatHex:Xp,formatHex8:function(){return`#${Jp(this.r)}${Jp(this.g)}${Jp(this.b)}${Jp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Kp,toString:Kp})),kp(nh,(function(e,t,n,r){return 1===arguments.length?th(e):new nh(e,t,n,null==r?1:r)}),Ep(Cp,{brighter(e){return e=null==e?Dp:Math.pow(Dp,e),new nh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Mp:Math.pow(Mp,e),new nh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Gp(ah(e>=240?e-240:e+120,o,r),ah(e,o,r),ah(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new nh(rh(this.h),oh(this.s),oh(this.l),Zp(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=Zp(this.opacity);return`${1===e?"hsl(":"hsla("}${rh(this.h)}, ${100*oh(this.s)}%, ${100*oh(this.l)}%${1===e?")":`, ${e})`}`}}));const sh=e=>()=>e;function lh(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):sh(isNaN(e)?t:e)}const ch=function e(t){var n=function(e){return 1==(e=+e)?lh:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):sh(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=qp(e)).r,(t=qp(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=lh(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function uh(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=qp(t[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=e(a),i=e(i),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=s(e),r+""}}}function dh(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=bh(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function fh(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ph(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function hh(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=bh(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}uh((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return ih((n-r/t)*t,i,o,a,s)}})),uh((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return ih((n-r/t)*t,o,a,i,s)}}));var mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yh=new RegExp(mh.source,"g");function gh(e,t){var n,r,o,a=mh.lastIndex=yh.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=mh.exec(e))&&(r=yh.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i,x:ph(n,r)})),a=yh.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function vh(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function bh(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?sh(t):("number"===o?ph:"string"===o?(n=Yp(t))?(t=n,ch):gh:t instanceof Yp?ch:t instanceof Date?fh:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?dh:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?hh:ph:vh))(e,t)}function wh(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xh(e){return+e}var Oh=[0,1];function Sh(e){return e}function jh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Ph(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=jh(o,r),a=n(i,a)):(r=jh(r,o),a=n(a,i)),function(e){return a(r(e))}}function kh(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=jh(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=Pp(e,t,1,r)-1;return a[n](o[n](t))}}function Eh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ch(){var e,t,n,r,o,a,i=Oh,s=Oh,l=bh,c=Sh;function u(){var e=Math.min(i.length,s.length);return c!==Sh&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),r=e>2?kh:Ph,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(s,i.map(e),ph)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,xh),u()):i.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=wh,u()},d.clamp=function(e){return arguments.length?(c=!!e||Sh,u()):c!==Sh},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Mh(){return Ch()(Sh,Sh)}var Dh,_h=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ah(e){if(!(t=_h.exec(e)))throw new Error("invalid format: "+e);var t;return new Th({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]})}function Th(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Nh(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Rh(e){return(e=Nh(Math.abs(e)))?e[1]:NaN}function Ih(e,t){var n=Nh(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Ah.prototype=Th.prototype,Th.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const $h={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>Ih(100*e,t),r:Ih,s:function(e,t){var n=Nh(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Dh=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Nh(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Lh(e){return e}var Fh,zh,Wh,Bh=Array.prototype.map,Hh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yh(e,t,n,r){var o,a=gp(e,t,n);switch((r=Ah(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rh(t)/3)))-Rh(Math.abs(e)))}(a,i))||(r.precision=o),Wh(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rh(t)-Rh(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Rh(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return zh(r)}function Uh(e){var t=e.domain;return e.ticks=function(e){var n=t();return mp(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Yh(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=yp(l,c,n))===r)return a[i]=l,a[s]=c,t(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Vh(){var e=Mh();return e.copy=function(){return Eh(e,Vh())},tp.apply(e,arguments),Uh(e)}function qh(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,xh),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return qh(e).unknown(t)},e=arguments.length?Array.from(e,xh):[0,1],Uh(n)}function Gh(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}function Xh(e){return Math.log(e)}function Kh(e){return Math.exp(e)}function Zh(e){return-Math.log(-e)}function Qh(e){return-Math.exp(-e)}function Jh(e){return isFinite(e)?+("1e"+e):e<0?0:e}function em(e){return(t,n)=>-e(-t,n)}function tm(e){const t=e(Xh,Kh),n=t.domain;let r,o,a=10;function i(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),o=function(e){return 10===e?Jh:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),n()[0]<0?(r=em(r),o=em(o),e(Zh,Qh)):e(Xh,Kh),t}return t.base=function(e){return arguments.length?(a=+e,i()):a},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],s=t[t.length-1];const l=s<i;l&&([i,s]=[s,i]);let c,u,d=r(i),f=r(s);const p=null==e?10:+e;let h=[];if(!(a%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),i>0){for(;d<=f;++d)for(c=1;c<a;++c)if(u=d<0?c/o(-d):c*o(d),!(u<i)){if(u>s)break;h.push(u)}}else for(;d<=f;++d)for(c=a-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<i)){if(u>s)break;h.push(u)}2*h.length<p&&(h=mp(i,s,p))}else h=mp(d,f,Math.min(f-d,p)).map(o);return l?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===a?"s":","),"function"!=typeof n&&(a%1||null!=(n=Ah(n)).precision||(n.trim=!0),n=zh(n)),e===1/0)return n;const i=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*a<a-.5&&(t*=a),t<=i?n(e):""}},t.nice=()=>n(Gh(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function nm(){const e=tm(Ch()).domain([1,10]);return e.copy=()=>Eh(e,nm()).base(e.base()),tp.apply(e,arguments),e}function rm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function om(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function am(e){var t=1,n=e(rm(t),om(t));return n.constant=function(n){return arguments.length?e(rm(t=+n),om(t)):t},Uh(n)}function im(){var e=am(Ch());return e.copy=function(){return Eh(e,im()).constant(e.constant())},tp.apply(e,arguments)}function sm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cm(e){return e<0?-e*e:e*e}function um(e){var t=e(Sh,Sh),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(Sh,Sh):.5===n?e(lm,cm):e(sm(n),sm(1/n)):n},Uh(t)}function dm(){var e=um(Ch());return e.copy=function(){return Eh(e,dm()).exponent(e.exponent())},tp.apply(e,arguments),e}function fm(){return dm.apply(null,arguments).exponent(.5)}function pm(e){return Math.sign(e)*e*e}function hm(){var e,t=Mh(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(pm(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,xh)).map(pm)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return hm(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},tp.apply(o,arguments),Uh(o)}function mm(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function ym(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function gm(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function vm(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?gm:function(e=vp){if(e===vp)return gm;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const a=r-n+1,i=t-n+1,s=Math.log(a),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(a-l)/a)*(i-a/2<0?-1:1);vm(e,t,Math.max(n,Math.floor(t-i*l/a+c)),Math.min(r,Math.floor(t+(a-i)*l/a+c)),o)}const a=e[t];let i=n,s=r;for(bm(e,n,t),o(e[r],a)>0&&bm(e,n,r);i<s;){for(bm(e,i,s),++i,--s;o(e[i],a)<0;)++i;for(;o(e[s],a)>0;)--s}0===o(e[n],a)?bm(e,n,s):(++s,bm(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function bm(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wm(e,t,n=Op){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}function xm(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=wm(t,e/o);return a}function a(t){return null==t||isNaN(t=+t)?e:n[Pp(r,t)]}return a.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},a.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(vp),o()},a.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return r.slice()},a.copy=function(){return xm().domain(t).range(n).unknown(e)},tp.apply(a,arguments)}function Om(){var e,t=0,n=1,r=1,o=[.5],a=[0,1];function i(t){return null!=t&&t<=t?a[Pp(o,t,0,r)]:e}function s(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return i}return i.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},i.range=function(e){return arguments.length?(r=(a=Array.from(e)).length-1,s()):a.slice()},i.invertExtent=function(e){var i=a.indexOf(e);return i<0?[NaN,NaN]:i<1?[t,o[0]]:i>=r?[o[r-1],n]:[o[i-1],o[i]]},i.unknown=function(t){return arguments.length?(e=t,i):i},i.thresholds=function(){return o.slice()},i.copy=function(){return Om().domain([t,n]).range(a).unknown(e)},tp.apply(Uh(i),arguments)}function Sm(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Pp(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Sm().domain(t).range(n).unknown(e)},tp.apply(o,arguments)}Fh=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Lh:(t=Bh.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Lh:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Bh.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Ah(e)).fill,n=e.align,d=e.sign,f=e.symbol,p=e.zero,h=e.width,m=e.comma,y=e.precision,g=e.trim,v=e.type;"n"===v?(m=!0,v="g"):$h[v]||(void 0===y&&(y=12),g=!0,v="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===f?a:/[%p]/.test(v)?l:"",x=$h[v],O=/[defgprs%]/.test(v);function S(e){var o,a,l,f=b,S=w;if("c"===v)S=x(e)+S,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),y),g&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==d&&(j=!1),f=(j?"("===d?d:c:"-"===d||"("===d?"":d)+f,S=("s"===v?Hh[8+Dh/3]:"")+S+(j&&"("===d?")":""),O)for(o=-1,a=e.length;++o<a;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!p&&(e=r(e,1/0));var P=f.length+e.length+S.length,k=P<h?new Array(h-P+1).join(t):"";switch(m&&p&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=f+e+S+k;break;case"=":e=f+k+e+S;break;case"^":e=k.slice(0,P=k.length>>1)+f+e+S+k.slice(P);break;default:e=k+f+e+S}return s(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Ah(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Rh(t)/3))),o=Math.pow(10,-r),a=Hh[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),zh=Fh.format,Wh=Fh.formatPrefix;const jm=1e3,Pm=6e4,km=36e5,Em=864e5,Cm=6048e5,Mm=31536e6,Dm=new Date,_m=new Date;function Am(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{const i=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return i;let s;do{i.push(s=new Date(+n)),t(n,a),e(n)}while(s<n&&n<r);return i},o.filter=n=>Am((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(Dm.setTime(+t),_m.setTime(+r),e(Dm),e(_m),Math.floor(n(Dm,_m))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const Tm=Am((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Tm.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Am((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Tm:null),Tm.range;const Nm=Am((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*jm)}),((e,t)=>(t-e)/jm),(e=>e.getUTCSeconds())),Rm=(Nm.range,Am((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jm)}),((e,t)=>{e.setTime(+e+t*Pm)}),((e,t)=>(t-e)/Pm),(e=>e.getMinutes()))),Im=(Rm.range,Am((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Pm)}),((e,t)=>(t-e)/Pm),(e=>e.getUTCMinutes()))),$m=(Im.range,Am((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jm-e.getMinutes()*Pm)}),((e,t)=>{e.setTime(+e+t*km)}),((e,t)=>(t-e)/km),(e=>e.getHours()))),Lm=($m.range,Am((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*km)}),((e,t)=>(t-e)/km),(e=>e.getUTCHours()))),Fm=(Lm.range,Am((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pm)/Em),(e=>e.getDate()-1))),zm=(Fm.range,Am((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Em),(e=>e.getUTCDate()-1))),Wm=(zm.range,Am((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Em),(e=>Math.floor(e/Em))));function Bm(e){return Am((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pm)/Cm))}Wm.range;const Hm=Bm(0),Ym=Bm(1),Um=Bm(2),Vm=Bm(3),qm=Bm(4),Gm=Bm(5),Xm=Bm(6);function Km(e){return Am((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Cm))}Hm.range,Ym.range,Um.range,Vm.range,qm.range,Gm.range,Xm.range;const Zm=Km(0),Qm=Km(1),Jm=Km(2),ey=Km(3),ty=Km(4),ny=Km(5),ry=Km(6),oy=(Zm.range,Qm.range,Jm.range,ey.range,ty.range,ny.range,ry.range,Am((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),ay=(oy.range,Am((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),iy=(ay.range,Am((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())));iy.every=e=>isFinite(e=Math.floor(e))&&e>0?Am((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,iy.range;const sy=Am((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()));function ly(e,t,n,r,o,a){const i=[[Nm,1,jm],[Nm,5,5e3],[Nm,15,15e3],[Nm,30,3e4],[a,1,Pm],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,km],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Em],[r,2,1728e5],[n,1,Cm],[t,1,2592e6],[t,3,7776e6],[e,1,Mm]];function s(t,n,r){const o=Math.abs(n-t)/r,a=wp((([,,e])=>e)).right(i,o);if(a===i.length)return e.every(gp(t/Mm,n/Mm,r));if(0===a)return Tm.every(Math.max(gp(t,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},s]}sy.every=e=>isFinite(e=Math.floor(e))&&e>0?Am((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,sy.range;const[cy,uy]=ly(sy,ay,Zm,Wm,Lm,Im),[dy,fy]=ly(iy,oy,Hm,Fm,$m,Rm);function py(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hy(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function my(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var yy,gy,vy,by={"-":"",_:" ",0:"0"},wy=/^\s*\d+/,xy=/^%/,Oy=/[\\^$*+?|[\]().{}]/g;function Sy(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function jy(e){return e.replace(Oy,"\\$&")}function Py(e){return new RegExp("^(?:"+e.map(jy).join("|")+")","i")}function ky(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Ey(e,t,n){var r=wy.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cy(e,t,n){var r=wy.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function My(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Dy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _y(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ay(e,t,n){var r=wy.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ty(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ny(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ry(e,t,n){var r=wy.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Iy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $y(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ly(e,t,n){var r=wy.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Fy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wy(e,t,n){var r=wy.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function By(e,t,n){var r=wy.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Hy(e,t,n){var r=wy.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yy(e,t,n){var r=xy.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Uy(e,t,n){var r=wy.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vy(e,t,n){var r=wy.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qy(e,t){return Sy(e.getDate(),t,2)}function Gy(e,t){return Sy(e.getHours(),t,2)}function Xy(e,t){return Sy(e.getHours()%12||12,t,2)}function Ky(e,t){return Sy(1+Fm.count(iy(e),e),t,3)}function Zy(e,t){return Sy(e.getMilliseconds(),t,3)}function Qy(e,t){return Zy(e,t)+"000"}function Jy(e,t){return Sy(e.getMonth()+1,t,2)}function eg(e,t){return Sy(e.getMinutes(),t,2)}function tg(e,t){return Sy(e.getSeconds(),t,2)}function ng(e){var t=e.getDay();return 0===t?7:t}function rg(e,t){return Sy(Hm.count(iy(e)-1,e),t,2)}function og(e){var t=e.getDay();return t>=4||0===t?qm(e):qm.ceil(e)}function ag(e,t){return e=og(e),Sy(qm.count(iy(e),e)+(4===iy(e).getDay()),t,2)}function ig(e){return e.getDay()}function sg(e,t){return Sy(Ym.count(iy(e)-1,e),t,2)}function lg(e,t){return Sy(e.getFullYear()%100,t,2)}function cg(e,t){return Sy((e=og(e)).getFullYear()%100,t,2)}function ug(e,t){return Sy(e.getFullYear()%1e4,t,4)}function dg(e,t){var n=e.getDay();return Sy((e=n>=4||0===n?qm(e):qm.ceil(e)).getFullYear()%1e4,t,4)}function fg(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Sy(t/60|0,"0",2)+Sy(t%60,"0",2)}function pg(e,t){return Sy(e.getUTCDate(),t,2)}function hg(e,t){return Sy(e.getUTCHours(),t,2)}function mg(e,t){return Sy(e.getUTCHours()%12||12,t,2)}function yg(e,t){return Sy(1+zm.count(sy(e),e),t,3)}function gg(e,t){return Sy(e.getUTCMilliseconds(),t,3)}function vg(e,t){return gg(e,t)+"000"}function bg(e,t){return Sy(e.getUTCMonth()+1,t,2)}function wg(e,t){return Sy(e.getUTCMinutes(),t,2)}function xg(e,t){return Sy(e.getUTCSeconds(),t,2)}function Og(e){var t=e.getUTCDay();return 0===t?7:t}function Sg(e,t){return Sy(Zm.count(sy(e)-1,e),t,2)}function jg(e){var t=e.getUTCDay();return t>=4||0===t?ty(e):ty.ceil(e)}function Pg(e,t){return e=jg(e),Sy(ty.count(sy(e),e)+(4===sy(e).getUTCDay()),t,2)}function kg(e){return e.getUTCDay()}function Eg(e,t){return Sy(Qm.count(sy(e)-1,e),t,2)}function Cg(e,t){return Sy(e.getUTCFullYear()%100,t,2)}function Mg(e,t){return Sy((e=jg(e)).getUTCFullYear()%100,t,2)}function Dg(e,t){return Sy(e.getUTCFullYear()%1e4,t,4)}function _g(e,t){var n=e.getUTCDay();return Sy((e=n>=4||0===n?ty(e):ty.ceil(e)).getUTCFullYear()%1e4,t,4)}function Ag(){return"+0000"}function Tg(){return"%"}function Ng(e){return+e}function Rg(e){return Math.floor(+e/1e3)}function Ig(e){return new Date(e)}function $g(e){return e instanceof Date?+e:+new Date(+e)}function Lg(e,t,n,r,o,a,i,s,l,c){var u=Mh(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),v=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(l(e)<e?p:s(e)<e?h:i(e)<e?m:a(e)<e?y:r(e)<e?o(e)<e?g:v:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,$g)):f().map(Ig)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(Gh(n,e)):u},u.copy=function(){return Eh(u,Lg(e,t,n,r,o,a,i,s,l,c))},u}function Fg(){return tp.apply(Lg(dy,fy,iy,oy,Hm,Fm,$m,Rm,Nm,gy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zg(){return tp.apply(Lg(cy,uy,sy,ay,Zm,zm,Lm,Im,Nm,vy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wg(){var e,t,n,r,o,a=0,i=1,s=Sh,l=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([a,i]=o,e=r(a=+a),t=r(i=+i),n=e===t?0:1/(t-e),c):[a,i]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(bh),c.rangeRound=u(wh),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(a),t=o(i),n=e===t?0:1/(t-e),c}}function Bg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Hg(){var e=Uh(Wg()(Sh));return e.copy=function(){return Bg(e,Hg())},np.apply(e,arguments)}function Yg(){var e=tm(Wg()).domain([1,10]);return e.copy=function(){return Bg(e,Yg()).base(e.base())},np.apply(e,arguments)}function Ug(){var e=am(Wg());return e.copy=function(){return Bg(e,Ug()).constant(e.constant())},np.apply(e,arguments)}function Vg(){var e=um(Wg());return e.copy=function(){return Bg(e,Vg()).exponent(e.exponent())},np.apply(e,arguments)}function qg(){return Vg.apply(null,arguments).exponent(.5)}function Gg(){var e=[],t=Sh;function n(n){if(null!=n&&!isNaN(n=+n))return t((Pp(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(vp),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return ym(e);if(t>=1)return mm(e);var r,o=(r-1)*t,a=Math.floor(o),i=mm(vm(e,a).subarray(0,a+1));return i+(ym(e.subarray(a+1))-i)*(o-a)}}(e,r/t)))},n.copy=function(){return Gg(t).domain(e)},np.apply(n,arguments)}function Xg(){var e,t,n,r,o,a,i,s=0,l=.5,c=1,u=1,d=Sh,f=!1;function p(e){return isNaN(e=+e)?i:(e=.5+((e=+a(e))-t)*(u*e<u*t?r:o),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=function(e,t){void 0===t&&(t=e,e=bh);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(i){return arguments.length?([s,l,c]=i,e=a(s=+s),t=a(l=+l),n=a(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,l,c]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(bh),p.rangeRound=h(wh),p.unknown=function(e){return arguments.length?(i=e,p):i},function(i){return a=i,e=i(s),t=i(l),n=i(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function Kg(){var e=Uh(Xg()(Sh));return e.copy=function(){return Bg(e,Kg())},np.apply(e,arguments)}function Zg(){var e=tm(Xg()).domain([.1,1,10]);return e.copy=function(){return Bg(e,Zg()).base(e.base())},np.apply(e,arguments)}function Qg(){var e=am(Xg());return e.copy=function(){return Bg(e,Qg()).constant(e.constant())},np.apply(e,arguments)}function Jg(){var e=um(Xg());return e.copy=function(){return Bg(e,Jg()).exponent(e.exponent())},np.apply(e,arguments)}function ev(){return Jg.apply(null,arguments).exponent(.5)}function tv(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function nv(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function rv(e){return function(){return e}}function ov(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function av(e,t){return e[t]}function iv(e){const t=[];return t.key=e,t}yy=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Py(o),u=ky(o),d=Py(a),f=ky(a),p=Py(i),h=ky(i),m=Py(s),y=ky(s),g=Py(l),v=ky(l),b={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:qy,e:qy,f:Qy,g:cg,G:dg,H:Gy,I:Xy,j:Ky,L:Zy,m:Jy,M:eg,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ng,s:Rg,S:tg,u:ng,U:rg,V:ag,w:ig,W:sg,x:null,X:null,y:lg,Y:ug,Z:fg,"%":Tg},w={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:pg,e:pg,f:vg,g:Mg,G:_g,H:hg,I:mg,j:yg,L:gg,m:bg,M:wg,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ng,s:Rg,S:xg,u:Og,U:Sg,V:Pg,w:kg,W:Eg,x:null,X:null,y:Cg,Y:Dg,Z:Ag,"%":Tg},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return j(e,t,n,r)},d:$y,e:$y,f:Hy,g:Ty,G:Ay,H:Fy,I:Fy,j:Ly,L:By,m:Iy,M:zy,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ry,Q:Uy,s:Vy,S:Wy,u:Cy,U:My,V:Dy,w:Ey,W:_y,x:function(e,t,r){return j(e,n,t,r)},X:function(e,t,n){return j(e,r,t,n)},y:Ty,Y:Ay,Z:Ny,"%":Yy};function O(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(i.push(e.slice(l,s)),null!=(o=by[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(e.slice(l,s)),i.join("")}}function S(e,t){return function(n){var r,o,a=my(1900,void 0,1);if(j(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=hy(my(a.y,0,1))).getUTCDay(),r=o>4||0===o?Qm.ceil(r):Qm(r),r=zm.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=py(my(a.y,0,1))).getDay(),r=o>4||0===o?Ym.ceil(r):Ym(r),r=Fm.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?hy(my(a.y,0,1)).getUTCDay():py(my(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,hy(a)):py(a)}}function j(e,t,n,r){for(var o,a,i=0,s=t.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=x[o in by?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),w.x=O(n,w),w.X=O(r,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),gy=yy.format,yy.parse,vy=yy.utcFormat,yy.utcParse,Array.prototype.slice;var sv=o(94506),lv=o.n(sv),cv=o(31684),uv=o.n(cv),dv=o(47307),fv=o.n(dv),pv=o(55808),hv=o.n(pv),mv=o(33031),yv=o.n(mv),gv=o(38351),vv=o.n(gv);function bv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wv=function(e){return e},xv={"@@functional/placeholder":!0},Ov=function(e){return e===xv},Sv=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Ov(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},jv=function e(t,n){return 1===t?n:Sv((function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o.filter((function(e){return e!==xv})).length;return i>=t?n.apply(void 0,o):e(t-i,Sv((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,i=o.map((function(e){return Ov(e)?t.shift():e}));return n.apply(void 0,(a=i,function(e){if(Array.isArray(e))return bv(e)}(a)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return bv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bv(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))})))}))},Pv=function(e){return jv(e.length,e)},kv=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Ev=Pv((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Cv=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return wv;var r=t.reverse(),o=r[0],a=r.slice(1);return function(){return a.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},Mv=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Dv=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};Pv((function(e,t,n){var r=+e;return r+n*(+t-r)})),Pv((function(e,t,n){var r=t-+e;return(n-e)/(r||1/0)})),Pv((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}));const _v=function(e,t,n){for(var r=new(vv())(e),o=0,a=[];r.lt(t)&&o<1e5;)a.push(r.toNumber()),r=r.add(n),o++;return a},Av=function(e){return 0===e?1:Math.floor(new(vv())(e).abs().log(10).toNumber())+1};function Tv(e){return function(e){if(Array.isArray(e))return Iv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Rv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{_n||null==i.return||i.return()}finally{if(r)throw o}}return n}}(e,t)||Rv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rv(e,t){if(e){if("string"==typeof e)return Iv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iv(e,t):void 0}}function Iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $v(e){var t=Nv(e,2),n=t[0],r=t[1],o=n,a=r;return n>r&&(o=r,a=n),[o,a]}function Lv(e,t,n){if(e.lte(0))return new(vv())(0);var r=Av(e.toNumber()),o=new(vv())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,s=new(vv())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?s:new(vv())(Math.ceil(s))}function Fv(e,t,n){var r=1,o=new(vv())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(vv())(10).pow(Av(e)-1),o=new(vv())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(vv())(Math.floor(e)))}else 0===e?o=new(vv())(Math.floor((t-1)/2)):n||(o=new(vv())(Math.floor(e)));var i=Math.floor((t-1)/2);return Cv(Ev((function(e){return o.add(new(vv())(e-i).mul(r)).toNumber()})),kv)(0,t)}function zv(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(vv())(0),tickMin:new(vv())(0),tickMax:new(vv())(0)};var a,i=Lv(new(vv())(t).sub(e).div(n-1),r,o);a=e<=0&&t>=0?new(vv())(0):(a=new(vv())(e).add(t).div(2)).sub(new(vv())(a).mod(i));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new(vv())(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?zv(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new(vv())(s).mul(i)),tickMax:a.add(new(vv())(l).mul(i))})}var Wv=Dv((function(e){var t=Nv(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(o,2),s=Nv($v([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(Tv(kv(0,o-1).map((function(){return 1/0})))):[].concat(Tv(kv(0,o-1).map((function(){return-1/0}))),[c]);return n>r?Mv(u):u}if(l===c)return Fv(l,o,a);var d=zv(l,c,i,a),f=d.step,p=d.tickMin,h=d.tickMax,m=_v(p,h.add(new(vv())(.1).mul(f)),f);return n>r?Mv(m):m})),Bv=(Dv((function(e){var t=Nv(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(o,2),s=Nv($v([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return Fv(l,o,a);var u=Lv(new(vv())(c).sub(l).div(i-1),a,0),d=Cv(Ev((function(e){return new(vv())(l).add(new(vv())(e).mul(u)).toNumber()})),kv)(0,i).filter((function(e){return e>=l&&e<=c}));return n>r?Mv(d):d})),Dv((function(e,t){var n=Nv(e,2),r=n[0],o=n[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Nv($v([r,o]),2),s=i[0],l=i[1];if(s===-1/0||l===1/0)return[r,o];if(s===l)return[s];var c=Math.max(t,2),u=Lv(new(vv())(l).sub(s).div(c-1),a,0),d=[].concat(Tv(_v(new(vv())(s),new(vv())(l).sub(new(vv())(.99).mul(u)),u)),[l]);return r>o?Mv(d):d}))),Hv=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]},Yv=["children","width","height","viewBox","className","style","title","desc"];function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}function Vv(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,l=e.title,u=e.desc,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Yv),f=o||{width:n,height:r,x:0,y:0},p=c("recharts-surface",a);return s().createElement("svg",Uv({},Ad(d,!0,"svg"),{className:p,width:n,height:r,style:i,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),s().createElement("title",null,l),s().createElement("desc",null,u),t)}Math.abs,Math.atan2;const qv=Math.cos,Gv=(Math.max,Math.min,Math.sin),Xv=Math.sqrt,Kv=Math.PI,Zv=2*Kv,Qv={draw(e,t){const n=Xv(t/Kv);e.moveTo(n,0),e.arc(0,0,n,0,Zv)}},Jv={draw(e,t){const n=Xv(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},eb=Xv(1/3),tb=2*eb,nb={draw(e,t){const n=Xv(t/tb),r=n*eb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},rb={draw(e,t){const n=Xv(t),r=-n/2;e.rect(r,r,n,n)}},ob=Gv(Kv/10)/Gv(7*Kv/10),ab=Gv(Zv/10)*ob,ib=-qv(Zv/10)*ob,sb={draw(e,t){const n=Xv(.8908130915292852*t),r=ab*n,o=ib*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const a=Zv*t/5,i=qv(a),s=Gv(a);e.lineTo(s*n,-i*n),e.lineTo(i*r-s*o,s*r+i*o)}e.closePath()}},lb=Xv(3),cb={draw(e,t){const n=-Xv(t/(3*lb));e.moveTo(0,2*n),e.lineTo(-lb*n,-n),e.lineTo(lb*n,-n),e.closePath()}},ub=-.5,db=Xv(3)/2,fb=1/Xv(12),pb=3*(fb/2+1),hb={draw(e,t){const n=Xv(t/pb),r=n/2,o=n*fb,a=r,i=n*fb+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(ub*r-db*o,db*r+ub*o),e.lineTo(ub*a-db*i,db*a+ub*i),e.lineTo(ub*s-db*l,db*s+ub*l),e.lineTo(ub*r+db*o,ub*o-db*r),e.lineTo(ub*a+db*i,ub*i-db*a),e.lineTo(ub*s+db*l,ub*l-db*s),e.closePath()}},mb=Math.PI,yb=2*mb,gb=1e-6,vb=yb-gb;function bb(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class wb{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?bb:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bb;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+a}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>gb)if(Math.abs(u*s-l*c)>gb&&o){let f=n-a,p=r-i,h=s*s+l*l,m=f*f+p*p,y=Math.sqrt(h),g=Math.sqrt(d),v=o*Math.tan((mb-Math.acos((h+d-m)/(2*y*g)))/2),b=v/g,w=v/y;Math.abs(b-1)>gb&&this._append`L${e+b*c},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*f>c*p)},${this._x1=e+w*s},${this._y1=t+w*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,d=a?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>gb||Math.abs(this._y1-c)>gb)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%yb+yb),d>vb?this._append`A${n},${n},0,1,${u},${e-i},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>gb&&this._append`A${n},${n},0,${+(d>=mb)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function xb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new wb(t)}function Ob(e){return Ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ob(e)}Xv(3),Xv(3);var Sb=["type","size","sizeType"];function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jb.apply(this,arguments)}function Pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pb(Object(n),!0).forEach((function(t){Eb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eb(e,t,n){var r;return r=function(e){if("object"!=Ob(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ob(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Ob(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cb={symbolCircle:Qv,symbolCross:Jv,symbolDiamond:nb,symbolSquare:rb,symbolStar:sb,symbolTriangle:cb,symbolWye:hb},Mb=Math.PI/180,Db=function(e){var t,n,r=e.type,o=void 0===r?"circle":r,a=e.size,i=void 0===a?64:a,l=e.sizeType,u=void 0===l?"area":l,d=kb(kb({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Sb)),{},{type:o,size:i,sizeType:u}),f=d.className,p=d.cx,h=d.cy,m=Ad(d,!0);return p===+p&&h===+h&&i===+i?s().createElement("path",jb({},m,{className:c("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(t=function(e){var t="symbol".concat(hv()(e));return Cb[t]||Qv}(o),n=function(e,t){let n=null,r=xb(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:rv(e||Qv),t="function"==typeof t?t:rv(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:rv(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*Mb;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(i,u,o)),n())})):null};function _b(e){return _b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_b(e)}function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fb(r.key),r)}}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rb=function(){return!!e})()}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ib(e)}function $b(e,t){return $b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$b(e,t)}function Lb(e,t,n){return(t=Fb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fb(e){var t=function(e){if("object"!=_b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_b(t)?t:t+""}Db.registerSymbol=function(e,t){Cb["symbol".concat(hv()(e))]=t};var zb=32,Wb=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Ib(n=t),function(e,t){if(t&&("object"===_b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rb()?Reflect.construct(n,r||[],Ib(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$b(e,t)}(t,e),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=zb/6,o=zb/3,a=e.inactive?t:e.color;if("plainline"===e.type)return s().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:zb,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return s().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(o,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(n,"\n            H").concat(zb,"M").concat(2*o,",").concat(n,"\n            A").concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return s().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(zb,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(s().isValidElement(e.legendIcon)){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){Lb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete i.legendIcon,s().cloneElement(e.legendIcon,i)}return s().createElement(Db,{fill:a,cx:n,cy:n,size:zb,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,a=t.formatter,i=t.inactiveColor,l={x:0,y:0,width:zb,height:zb},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var o=t.formatter||a,f=c(Lb(Lb({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var p=qu()(t.value)?null:t.value;Hv(!qu()(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=t.inactive?i:t.color;return s().createElement("li",Ab({className:f,style:u,key:"legend-item-".concat(n)},vd(e.props,t,n)),s().createElement(Vv,{width:r,height:r,viewBox:l,style:d},e.renderIcon(t)),s().createElement("span",{className:"recharts-legend-item-text",style:{color:h}},o?o(p,t,n):p))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return s().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&Nb(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);Lb(Wb,"displayName","Legend"),Lb(Wb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Bb=o(50014),Hb=o.n(Bb);function Yb(e,t,n){return!0===t?Hb()(e,n):qu()(t)?Hb()(e,t):e}function Ub(e){return Ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ub(e)}var Vb=["ref"];function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach((function(t){Jb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ew(r.key),r)}}function Kb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kb=function(){return!!e})()}function Zb(e){return Zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zb(e)}function Qb(e,t){return Qb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qb(e,t)}function Jb(e,t,n){return(t=ew(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ew(e){var t=function(e){if("object"!=Ub(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ub(t)?t:t+""}function tw(e){return e.value}var nw=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Jb((n=this,r=t,o=[].concat(i),r=Zb(r),e=function(e,t){if(t&&("object"===Ub(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,Kb()?Reflect.construct(r,o||[],Zb(n).constructor):r.apply(n,o))),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qb(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Gb({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),Gb(Gb({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,c=Gb(Gb({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return s().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(s().isValidElement(e))return s().cloneElement(e,t);if("function"==typeof e)return s().createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Vb);return s().createElement(Wb,n)}(n,Gb(Gb({},this.props),{},{payload:Yb(l,i,tw)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=Gb(Gb({},this.defaultProps),e.props).layout;return"vertical"===n&&rd(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&Xb(n.prototype,r),o&&Xb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function rw(e){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rw(e)}function ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ow(Object(n),!0).forEach((function(t){iw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iw(e,t,n){var r;return r=function(e){if("object"!=rw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Jb(nw,"displayName","Legend"),Jb(nw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var sw=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,o=e.legendContent,a=Md(t,nw);if(!a)return null;var i,s=nw.defaultProps,l=void 0!==s?aw(aw({},s),a.props):{};return i=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,n=t.type.defaultProps,r=void 0!==n?aw(aw({},n),t.props):{},o=r.dataKey,a=r.name,i=r.legendType;return{inactive:r.hide,dataKey:o,type:l.iconType||i||"square",color:yw(t),value:a||o,payload:r}})),aw(aw(aw({},l),nw.getWithHeight(a,r)),{},{payload:i,item:a})};function lw(e){return lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lw(e)}function cw(e){return function(e){if(Array.isArray(e))return uw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return uw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uw(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dw(Object(n),!0).forEach((function(t){pw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pw(e,t,n){var r;return r=function(e){if("object"!=lw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==lw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hw(e,t,n){return Wu()(e)||Wu()(t)?n:od(t)?Hu()(e,t,n):qu()(t)?t(e):n}function mw(e,t,n,r){var o=fv()(e,(function(e){return hw(e,t)}));if("number"===n){var a=o.filter((function(e){return rd(e)||parseFloat(e)}));return a.length?[uv()(a),lv()(a)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Wu()(e)})):o).map((function(e){return od(e)||e instanceof Date?e:""}))}var yw=function(e){var t,n,r=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?fw(fw({},e.type.defaultProps),e.props):e.props,a=o.stroke,i=o.fill;switch(r){case"Line":n=a;break;case"Area":case"Radar":n=a&&"none"!==a?a:i;break;default:n=i}return n},gw=function(e,t,n,r,o){var a=Cd(t.props.children,Kd).filter((function(e){return function(e,t,n){return!!Wu()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(a&&a.length){var i=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=hw(t,n);if(Wu()(r))return e;var o=Array.isArray(r)?[uv()(r),lv()(r)]:[r,r],a=i.reduce((function(e,n){var r=hw(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]}),[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]}),[1/0,-1/0])}return null},vw=function(e,t,n,r,o){var a=t.map((function(t){var a=t.props.dataKey;return"number"===n&&a&&gw(e,t,a,r)||mw(e,a,n,o)}));if("number"===n)return a.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return a.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e}),[])},bw=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},ww=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,a,i=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(a=!0),e.coordinate}));return o||i.push(t),a||i.push(n),i},xw=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,a=e.type,i=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===a&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===e.axisType&&(null==i?void 0:i.length)>=2?2*td(i[0]-i[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}})).filter((function(e){return!Qu()(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+l,value:e,offset:l}})):r.domain().map((function(e,t){return{coordinate:r(e)+l,value:o?o[e]:e,index:t,offset:l}}))},Ow=new WeakMap,Sw=function(e,t){if("function"!=typeof t)return e;Ow.has(e)||Ow.set(e,new WeakMap);var n=Ow.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},jw=1e-4,Pw={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,a=0,i=0;i<t;++i){var s=Qu()(e[i][n][1])?e[i][n][0]:e[i][n][1];s>=0?(e[i][n][0]=o,e[i][n][1]=o+s,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+s,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}tv(e,t)}},none:tv,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],a=o.length;r<a;++r){for(var i=0,s=0;i<n;++i)s+=e[i][r][1]||0;o[r][1]+=o[r][0]=-s/2}tv(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i<r;++i){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],d=u[i][1]||0,f=(d-(u[i-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];f+=(h[i][1]||0)-(h[i-1][1]||0)}l+=d,c+=f*d}n[i-1][1]+=n[i-1][0]=a,l&&(a-=c/l)}n[i-1][1]+=n[i-1][0]=a,tv(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,a=0;a<t;++a){var i=Qu()(e[a][n][1])?e[a][n][0]:e[a][n][1];i>=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},kw=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=Pw[n],a=function(){var e=rv([]),t=ov,n=tv,r=av;function o(o){var a,i,s=Array.from(e.apply(this,arguments),iv),l=s.length,c=-1;for(const e of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(e,s[a].key,c,o)]).data=e;for(a=0,i=nv(t(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:rv(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:rv(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?ov:"function"==typeof e?e:rv(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?tv:e,o):n},o}().keys(r).value((function(e,t){return+hw(e,t,0)})).order(ov).offset(o);return a(e)};function Ew(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,a=e.index,i=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wu()(o[t.dataKey])){var s=ud(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var l=hw(o,Wu()(i)?t.dataKey:i);return Wu()(l)?null:t.scale(l)}var Cw=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,a=e.entry,i=e.index;if("category"===t.type)return n[i]?n[i].coordinate+r:null;var s=hw(a,t.dataKey,t.domain[i]);return Wu()(s)?null:t.scale(s)-o/2+r},Mw=function(e,t,n){return Object.keys(e).reduce((function(r,o){var a=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[uv()(t.concat([e[0]]).filter(rd)),lv()(t.concat([e[1]]).filter(rd))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},Dw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_w=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Aw=function(e,t,n){if(qu()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(rd(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Dw.test(e[0])){var o=+Dw.exec(e[0])[1];r[0]=t[0]-o}else qu()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(rd(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(_w.test(e[1])){var a=+_w.exec(e[1])[1];r[1]=t[1]+a}else qu()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Tw=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=yv()(t,(function(e){return e.coordinate})),a=1/0,i=1,s=o.length;i<s;i++){var l=o[i],c=o[i-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},Nw=function(e,t,n){return e&&e.length?Fu()(e,Hu()(n,"type.defaultProps.domain"))?t:e:t},Rw=function(e,t){var n=e.type.defaultProps?fw(fw({},e.type.defaultProps),e.props):e.props,r=n.dataKey,o=n.name,a=n.unit,i=n.formatter,s=n.tooltipType,l=n.chartType,c=n.hide;return fw(fw({},Ad(e,!1)),{},{dataKey:r,unit:a,formatter:i,name:o||r,color:yw(e),value:hw(t,r),type:s,payload:t,chartType:l,hide:c})};function Iw(e){return Iw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iw(e)}var $w=["valueAccessor"],Lw=["data","dataKey","clockWise","id","textBreakAll"];function Fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ww(Object(n),!0).forEach((function(t){Hw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hw(e,t,n){var r;return r=function(e){if("object"!=Iw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Iw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Iw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Uw=function(e){return Array.isArray(e.value)?Jd()(e.value):e.value};function Vw(e){var t=e.valueAccessor,n=void 0===t?Uw:t,r=Yw(e,$w),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,c=r.textBreakAll,u=Yw(r,Lw);return o&&o.length?s().createElement(Ld,{className:"recharts-label-list"},o.map((function(e,t){var r=Wu()(a)?n(e,t):hw(e&&e.payload,a),o=Wu()(l)?{}:{id:"".concat(l,"-").concat(t)};return s().createElement(Jf,zw({},Ad(e,!0),u,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:Jf.parseViewBox(Wu()(i)?e:Bw(Bw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))}))):null}Vw.displayName="LabelList",Vw.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=Cd(e.children,Vw).map((function(e,n){return(0,a.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return r;var o,i=function(e,t){return e?!0===e?s().createElement(Vw,{key:"labelList-implicit",data:t}):s().isValidElement(e)||qu()(e)?s().createElement(Vw,{key:"labelList-implicit",data:t,content:e}):Xu()(e)?s().createElement(Vw,zw({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[i].concat(function(e){if(Array.isArray(e))return Fw(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fw(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var qw=o(11331),Gw=o.n(qw),Xw=o(53812),Kw=o.n(Xw);function Zw(e){return Zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zw(e)}function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function Jw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach((function(t){nx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nx(e,t,n){var r;return r=function(e){if("object"!=Zw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Zw(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rx=function(e,t,n,r,o){var a,i=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),a+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(e+n,",").concat(t+s*u[1])),a+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(e+n-l*u[2],",").concat(t+r)),a+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(e,",").concat(t+r-s*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var f=Math.min(i,o);a="M ".concat(e,",").concat(t+s*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+l*f,",").concat(t,"\n            L ").concat(e+n-l*f,",").concat(t,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*f,"\n            L ").concat(e+n,",").concat(t+r-s*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+n-l*f,",").concat(t+r,"\n            L ").concat(e+l*f,",").concat(t+r,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*f," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},ox=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,s=t.height;if(Math.abs(i)>0&&Math.abs(s)>0){var l=Math.min(o,o+i),c=Math.max(o,o+i),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=l&&n<=c&&r>=u&&r<=d}return!1},ax={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ix=function(e){var t,n,r=tx(tx({},ax),e),o=(0,a.useRef)(),i=(t=(0,a.useState)(-1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Jw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jw(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],u=i[1];(0,a.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&u(e)}catch(e){}}),[]);var d=r.x,f=r.y,p=r.width,h=r.height,m=r.radius,y=r.className,g=r.animationEasing,v=r.animationDuration,b=r.animationBegin,w=r.isAnimationActive,x=r.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var O=c("recharts-rectangle",y);return x?s().createElement($u,{canBegin:l>0,from:{width:p,height:h,x:d,y:f},to:{width:p,height:h,x:d,y:f},duration:v,animationEasing:g,isActive:x},(function(e){var t=e.width,n=e.height,a=e.x,i=e.y;return s().createElement($u,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:w,easing:g},s().createElement("path",Qw({},Ad(r,!0),{className:O,d:rx(a,i,t,n,m),ref:o})))})):s().createElement("path",Qw({},Ad(r,!0),{className:O,d:rx(d,f,p,h,m)}))};function sx(e){return sx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sx(e)}function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lx.apply(this,arguments)}function cx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ux(Object(n),!0).forEach((function(t){fx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ux(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fx(e,t,n){var r;return r=function(e){if("object"!=sx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==sx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var px=function(e,t,n,r,o){var a,i=n-r;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-i/2,",").concat(t+o),(a+="L ".concat(e+n-i/2-r,",").concat(t+o))+"L ".concat(e,",").concat(t," Z")},hx={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mx=function(e){var t,n,r=dx(dx({},hx),e),o=(0,a.useRef)(),i=(t=(0,a.useState)(-1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return cx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cx(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],u=i[1];(0,a.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&u(e)}catch(e){}}),[]);var d=r.x,f=r.y,p=r.upperWidth,h=r.lowerWidth,m=r.height,y=r.className,g=r.animationEasing,v=r.animationDuration,b=r.animationBegin,w=r.isUpdateAnimationActive;if(d!==+d||f!==+f||p!==+p||h!==+h||m!==+m||0===p&&0===h||0===m)return null;var x=c("recharts-trapezoid",y);return w?s().createElement($u,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:m,x:d,y:f},to:{upperWidth:p,lowerWidth:h,height:m,x:d,y:f},duration:v,animationEasing:g,isActive:w},(function(e){var t=e.upperWidth,n=e.lowerWidth,a=e.height,i=e.x,c=e.y;return s().createElement($u,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:g},s().createElement("path",lx({},Ad(r,!0),{className:x,d:px(i,c,t,n,a),ref:o})))})):s().createElement("g",null,s().createElement("path",lx({},Ad(r,!0),{className:x,d:px(d,f,p,h,m)})))};function yx(e){return yx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yx(e)}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(this,arguments)}function vx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vx(Object(n),!0).forEach((function(t){wx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wx(e,t,n){var r;return r=function(e){if("object"!=yx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==yx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xx=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,a=e.sign,i=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,c=s*(i?1:-1)+r,u=Math.asin(s/c)/Wf,d=l?o:o+a*u,f=l?o-a*u:o;return{center:Hf(t,n,c,d),circleTangency:Hf(t,n,r,d),lineTangency:Hf(t,n,c*Math.cos(u*Wf),f),theta:u}},Ox=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.startAngle,i=function(e,t){return td(t-e)*Math.min(Math.abs(t-e),359.999)}(a,e.endAngle),s=a+i,l=Hf(t,n,o,a),c=Hf(t,n,o,s),u="M ".concat(l.x,",").concat(l.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(i)>180),",").concat(+(a>s),",\n    ").concat(c.x,",").concat(c.y,"\n  ");if(r>0){var d=Hf(t,n,r,a),f=Hf(t,n,r,s);u+="L ".concat(f.x,",").concat(f.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(i)>180),",").concat(+(a<=s),",\n            ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},Sx={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},jx=function(e){var t=bx(bx({},Sx),e),n=t.cx,r=t.cy,o=t.innerRadius,a=t.outerRadius,i=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,d=t.startAngle,f=t.endAngle,p=t.className;if(a<o||d===f)return null;var h,m=c("recharts-sector",p),y=a-o,g=sd(i,y,0,!0);return h=g>0&&Math.abs(d-f)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=td(c-l),d=xx({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,h=d.theta,m=xx({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),y=m.circleTangency,g=m.lineTangency,v=m.theta,b=s?Math.abs(l-c):Math.abs(l-c)-h-v;if(b<0)return i?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n        a").concat(a,",").concat(a,",0,0,1,").concat(2*-a,",0\n      "):Ox({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n    A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n  ");if(r>0){var x=xx({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),O=x.circleTangency,S=x.lineTangency,j=x.theta,P=xx({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),k=P.circleTangency,E=P.lineTangency,C=P.theta,M=s?Math.abs(l-c):Math.abs(l-c)-j-C;if(M<0&&0===a)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(u>0),",").concat(O.x,",").concat(O.y,"\n      A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:a,cornerRadius:Math.min(g,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:d,endAngle:f}):Ox({cx:n,cy:r,innerRadius:o,outerRadius:a,startAngle:d,endAngle:f}),s().createElement("path",gx({},Ad(t,!0),{className:m,d:h,role:"img"}))},Px=["option","shapeType","propTransformer","activeClassName","isActive"];function kx(e){return kx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kx(e)}function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ex(Object(n),!0).forEach((function(t){Mx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mx(e,t,n){var r;return r=function(e){if("object"!=kx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==kx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(e,t){return Cx(Cx({},t),e)}function Ax(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return s().createElement(ix,n);case"trapezoid":return s().createElement(mx,n);case"sector":return s().createElement(jx,n);case"symbols":if(function(e){return"symbols"===e}(t))return s().createElement(Db,n);break;default:return null}}function Tx(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,i=void 0===o?Dx:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Px);if((0,a.isValidElement)(n))t=(0,a.cloneElement)(n,Cx(Cx({},d),function(e){return(0,a.isValidElement)(e)?e.props:e}(n)));else if(qu()(n))t=n(d);else if(Gw()(n)&&!Kw()(n)){var f=i(n,d);t=s().createElement(Ax,{shapeType:r,elementProps:f})}else{var p=d;t=s().createElement(Ax,{shapeType:r,elementProps:p})}return u?s().createElement(Ld,{className:c},t):t}function Nx(e,t){return null!=t&&"trapezoids"in e.props}function Rx(e,t){return null!=t&&"sectors"in e.props}function Ix(e,t){return null!=t&&"points"in e.props}function $x(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function Lx(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Fx(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function zx(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return Nx(e,t)?n="trapezoids":Rx(e,t)?n="sectors":Ix(e,t)&&(n="points"),n}(n,t),a=function(e,t){var n,r;return Nx(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:Rx(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:Ix(e,t)?t.payload:{}}(n,t),i=r.filter((function(e,r){var i=Fu()(a,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return Nx(e,t)?n=$x:Rx(e,t)?n=Lx:Ix(e,t)&&(n=Fx),n}(n,t);return r(e,t)})),l=n.props[o].indexOf(s[s.length-1]);return i&&r===l}));return r.indexOf(i[i.length-1])}var Wx=["x","y"];function Bx(e){return Bx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bx(e)}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hx.apply(this,arguments)}function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ux(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yx(Object(n),!0).forEach((function(t){Vx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vx(e,t,n){var r;return r=function(e){if("object"!=Bx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Bx(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qx(e,t){var n=e.x,r=e.y,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Wx),a="".concat(n),i=parseInt(a,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),d="".concat(t.width||o.width),f=parseInt(d,10);return Ux(Ux(Ux(Ux(Ux({},t),o),i?{x:i}:{}),l?{y:l}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function Gx(e){return s().createElement(Tx,Hx({shapeType:"rectangle",propTransformer:qx,activeClassName:"recharts-active-bar"},e))}var Xx,Kx=["value","background"];function Zx(e){return Zx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zx(e)}function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qx.apply(this,arguments)}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){aO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iO(r.key),r)}}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nO=function(){return!!e})()}function rO(e){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rO(e)}function oO(e,t){return oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oO(e,t)}function aO(e,t,n){return(t=iO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iO(e){var t=function(e){if("object"!=Zx(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zx(t)?t:t+""}var sO=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return aO((n=this,r=t,o=[].concat(i),r=rO(r),e=function(e,t){if(t&&("object"===Zx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,nO()?Reflect.construct(r,o||[],rO(n).constructor):r.apply(n,o))),"state",{isAnimationFinished:!1}),aO(e,"id",id("recharts-bar-")),aO(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),aO(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oO(e,t)}(t,e),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.dataKey,a=n.activeIndex,i=n.activeBar,l=Ad(this.props,!1);return e&&e.map((function(e,n){var c=n===a,u=c?i:r,d=eO(eO(eO({},l),e),{},{isActive:c,option:u,index:n,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return s().createElement(Ld,Qx({className:"recharts-bar-rectangle"},vd(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(n)}),s().createElement(Gx,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,i=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return s().createElement($u,{begin:a,duration:i,isActive:o,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,a=n.map((function(e,t){var n=u&&u[t];if(n){var a=cd(n.x,e.x),i=cd(n.y,e.y),s=cd(n.width,e.width),l=cd(n.height,e.height);return eO(eO({},e),{},{x:a(o),y:i(o),width:s(o),height:l(o)})}if("horizontal"===r){var c=cd(0,e.height)(o);return eO(eO({},e),{},{y:e.y+e.height-c,height:c})}var d=cd(0,e.width)(o);return eO(eO({},e),{},{width:d})}));return s().createElement(Ld,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Fu()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,o=t.activeIndex,a=Ad(this.props.background,!1);return n.map((function(t,n){t.value;var i=t.background,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Kx);if(!i)return null;var c=eO(eO(eO(eO(eO({},l),{},{fill:"#eee"},i),a),vd(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return s().createElement(Gx,Qx({key:"background-bar-".concat(n),option:e.props.background,isActive:n===o},c))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=Cd(n.children,Kd);if(!l)return null;var c="vertical"===i?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:hw(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s().createElement(Ld,d,l.map((function(e){return s().cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:c,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,u=e.width,d=e.height,f=e.isAnimationActive,p=e.background,h=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,y=c("recharts-bar",r),g=o&&o.allowDataOverflow,v=a&&a.allowDataOverflow,b=g||v,w=Wu()(h)?this.id:h;return s().createElement(Ld,{className:y},g||v?s().createElement("defs",null,s().createElement("clipPath",{id:"clipPath-".concat(w)},s().createElement("rect",{x:g?i:i-u/2,y:v?l:l-d/2,width:g?u:2*u,height:v?d:2*d}))):null,s().createElement(Ld,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(w,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,w),(!f||m)&&Vw.renderCallByParent(this.props,n))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&tO(n.prototype,r),o&&tO(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);Xx=sO,aO(sO,"displayName","Bar"),aO(sO,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ef.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),aO(sO,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,a=e.xAxis,i=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,m=n.type.defaultProps,y=void 0!==m?eO(eO({},m),n.props):n.props,g=y.dataKey,v=y.children,b=y.minPointSize,w="horizontal"===h?i:a,x=c?w.scale.domain():null,O=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:w}),S=Cd(v,Zd),j=d.map((function(e,t){var r,d,f,m,y,v;c?r=function(e,t){if(!t||2!==t.length||!rd(t[0])||!rd(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!rd(e[0])||e[0]<n)&&(o[0]=n),(!rd(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(c[u+t],x):(r=hw(e,g),Array.isArray(r)||(r=[O,r]));var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||Fd(!1),t)}}(b,Xx.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var j,P=[i.scale(r[0]),i.scale(r[1])],k=P[0],E=P[1];d=Cw({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),f=null!==(j=null!=E?E:k)&&void 0!==j?j:void 0,m=p.size;var C=k-E;if(y=Number.isNaN(C)?0:C,v={x:d,y:i.y,width:m,height:i.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var M=td(y||w)*(Math.abs(w)-Math.abs(y));f-=M,y+=M}}else{var D=[a.scale(r[0]),a.scale(r[1])],_=D[0],A=D[1];d=_,f=Cw({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),m=A-_,y=p.size,v={x:a.x,y:f,width:a.width,height:y},Math.abs(w)>0&&Math.abs(m)<Math.abs(w)&&(m+=td(m||w)*(Math.abs(w)-Math.abs(m)))}return eO(eO(eO({},e),{},{x:d,y:f,width:m,height:y,value:c?r:r[1],payload:e,background:v},S&&S[t]&&S[t].props),{},{tooltipPayload:[Rw(n,e)],tooltipPosition:{x:d+m/2,y:f+y/2}})}));return eO({data:j,layout:h},f)}));var lO=o(42426),cO=o.n(lO),uO=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},dO=o(73916),fO=o.n(dO),pO=o(19747),hO=o.n(pO);function mO(e){return mO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mO(e)}function yO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wO(r.key),r)}}function gO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gO(Object(n),!0).forEach((function(t){bO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bO(e,t,n){return(t=wO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wO(e){var t=function(e){if("object"!=mO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mO(t)?t:t+""}var xO=function(t,n,r,o,a){var i=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(n),d={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},f=!!Md(c,sO);return u.reduce((function(i,s){var c,u,p,h,m,y=n[s],g=y.orientation,v=y.domain,b=y.padding,w=void 0===b?{}:b,x=y.mirror,O=y.reversed,S="".concat(g).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var j=v[1]-v[0],P=1/0,k=y.categoricalDomain.sort();if(k.forEach((function(e,t){t>0&&(P=Math.min((e||0)-(k[t-1]||0),P))})),Number.isFinite(P)){var E=P/j,C="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(c=E*C/2),"no-gap"===y.padding){var M=sd(t.barCategoryGap,E*C),D=E*C/2;c=D-M-(D-M)/C*M}}}u="xAxis"===o?[r.left+(w.left||0)+(c||0),r.left+r.width-(w.right||0)-(c||0)]:"yAxis"===o?"horizontal"===l?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(c||0),r.top+r.height-(w.bottom||0)-(c||0)]:y.range,O&&(u=[u[1],u[0]]);var _=function(t,n,r){var o=t.scale,a=t.type,i=t.layout,s=t.axisType;if("auto"===o)return"radial"===i&&"radiusAxis"===s?{scale:lp(),realScaleType:"band"}:"radial"===i&&"angleAxis"===s?{scale:Vh(),realScaleType:"linear"}:"category"===a&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:up(),realScaleType:"point"}:"category"===a?{scale:lp(),realScaleType:"band"}:{scale:Vh(),realScaleType:"linear"};if(Uu()(o)){var l="scale".concat(hv()(o));return{scale:(e[l]||up)(),realScaleType:e[l]?l:"point"}}return qu()(o)?{scale:o}:{scale:up(),realScaleType:"point"}}(y,a,f),A=_.scale,T=_.realScaleType;A.domain(v).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-jw,a=Math.max(r[0],r[1])+jw,i=e(t[0]),s=e(t[n-1]);(i<o||i>a||s<o||s>a)&&e.domain([t[0],t[n-1]])}}(A);var N=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,a=t.originalDomain,i=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&a&&("auto"===a[0]||"auto"===a[1])){var l=e.domain();if(!l.length)return null;var c=Wv(l,o,i);return e.domain([uv()(c),lv()(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:Bv(u,o,i)}}return null}(A,vO(vO({},y),{},{realScaleType:T}));"xAxis"===o?(m="top"===g&&!x||"bottom"===g&&x,p=r.left,h=d[S]-m*y.height):"yAxis"===o&&(m="left"===g&&!x||"right"===g&&x,p=d[S]-m*y.width,h=r.top);var R=vO(vO(vO({},y),N),{},{realScaleType:T,x:p,y:h,scale:A,width:"xAxis"===o?r.width:y.width,height:"yAxis"===o?r.height:y.height});return R.bandSize=Tw(R,N),y.hide||"xAxis"!==o?y.hide||(d[S]+=(m?-1:1)*R.width):d[S]+=(m?-1:1)*R.height,vO(vO({},i),{},bO({},s,R))}),{})},OO=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return{x:Math.min(n,o),y:Math.min(r,a),width:Math.abs(o-n),height:Math.abs(a-r)}},SO=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&yO(t.prototype,n),r&&yO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();bO(SO,"EPS",1e-4);var jO=function(e){var t=Object.keys(e).reduce((function(t,n){return vO(vO({},t),{},bO({},n,SO.create(e[n])))}),{});return vO(vO({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return fO()(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return hO()(e,(function(e,n){return t[n].isInRange(e)}))}})},PO=o(7309),kO=o.n(PO),EO=o(50104),CO=o.n(EO)()((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("")})),MO=(0,a.createContext)(void 0),DO=(0,a.createContext)(void 0),_O=(0,a.createContext)(void 0),AO=(0,a.createContext)({}),TO=(0,a.createContext)(void 0),NO=(0,a.createContext)(0),RO=(0,a.createContext)(0),IO=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,a=e.clipPathId,i=e.children,l=e.width,c=e.height,u=CO(o);return s().createElement(MO.Provider,{value:n},s().createElement(DO.Provider,{value:r},s().createElement(AO.Provider,{value:o},s().createElement(_O.Provider,{value:u},s().createElement(TO.Provider,{value:a},s().createElement(NO.Provider,{value:c},s().createElement(RO.Provider,{value:l},i)))))))},$O=function(e){var t=(0,a.useContext)(MO);null==t&&Fd(!1);var n=t[e];return null==n&&Fd(!1),n},LO=function(e){var t=(0,a.useContext)(DO);null==t&&Fd(!1);var n=t[e];return null==n&&Fd(!1),n},FO=function(){return(0,a.useContext)(RO)},zO=function(){return(0,a.useContext)(NO)};function WO(e){return WO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WO(e)}function BO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XO(r.key),r)}}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HO=function(){return!!e})()}function YO(e){return YO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YO(e)}function UO(e,t){return UO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UO(e,t)}function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VO(Object(n),!0).forEach((function(t){GO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GO(e,t,n){return(t=XO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XO(e){var t=function(e){if("object"!=WO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WO(t)?t:t+""}function KO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZO.apply(this,arguments)}function QO(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,l=e.shape,u=e.className,d=e.alwaysShow,f=(0,a.useContext)(TO),p=$O(o),h=LO(i),m=(0,a.useContext)(_O);if(!f||!m)return null;Hv(void 0===d,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=function(e,t,n,r,o,a,i,s,l){var c=o.x,u=o.y,d=o.width,f=o.height;if(n){var p=l.y,h=e.y.apply(p,{position:a});if(uO(l,"discard")&&!e.y.isInRange(h))return null;var m=[{x:c+d,y:h},{x:c,y:h}];return"left"===s?m.reverse():m}if(t){var y=l.x,g=e.x.apply(y,{position:a});if(uO(l,"discard")&&!e.x.isInRange(g))return null;var v=[{x:g,y:u+f},{x:g,y:u}];return"top"===i?v.reverse():v}if(r){var b=l.segment.map((function(t){return e.apply(t,{position:a})}));return uO(l,"discard")&&cO()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(jO({x:p.scale,y:h.scale}),od(t),od(n),r&&2===r.length,m,e.position,p.orientation,h.orientation,e);if(!y)return null;var g,v,b,w=(v=2,function(e){if(Array.isArray(e))return e}(g=y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(g,v)||function(e,t){if(e){if("string"==typeof e)return KO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KO(e,t):void 0}}(g,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=w[0],O=x.x,S=x.y,j=w[1],P=j.x,k=j.y,E=qO(qO({clipPath:uO(e,"hidden")?"url(#".concat(f,")"):void 0},Ad(e,!0)),{},{x1:O,y1:S,x2:P,y2:k});return s().createElement(Ld,{className:c("recharts-reference-line",u)},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement("line",ZO({},t,{className:"recharts-reference-line-line"}))}(l,E),Jf.renderCallByParent(e,OO({x:(b={x1:O,y1:S,x2:P,y2:k}).x1,y:b.y1},{x:b.x2,y:b.y2})))}var JO=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=YO(n=t),function(e,t){if(t&&("object"===WO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,HO()?Reflect.construct(n,r||[],YO(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UO(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(QO,this.props)}}])&&BO(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);GO(JO,"displayName","ReferenceLine"),GO(JO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var eS=o(7350),tS=o.n(eS);function nS(e){return nS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nS(e)}function rS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(n),!0).forEach((function(t){aS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aS(e,t,n){var r;return r=function(e){if("object"!=nS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==nS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sS=(0,a.forwardRef)((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,l=void 0===i?"100%":i,u=e.height,d=void 0===u?"100%":u,f=e.minWidth,p=void 0===f?0:f,h=e.minHeight,m=e.maxHeight,y=e.children,g=e.debounce,v=void 0===g?0:g,b=e.id,w=e.className,x=e.onResize,O=e.style,S=void 0===O?{}:O,j=(0,a.useRef)(null),P=(0,a.useRef)();P.current=x,(0,a.useImperativeHandle)(t,(function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})}));var k,E,C=(k=(0,a.useState)({containerWidth:o.width,containerHeight:o.height}),E=2,function(e){if(Array.isArray(e))return e}(k)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(k,E)||function(e,t){if(e){if("string"==typeof e)return iS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iS(e,t):void 0}}(k,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),M=C[0],D=C[1],_=(0,a.useCallback)((function(e,t){D((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);(0,a.useEffect)((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;_(r,o),null===(t=P.current)||void 0===t||t.call(P,r,o)};v>0&&(e=tS()(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=j.current.getBoundingClientRect(),r=n.width,o=n.height;return _(r,o),t.observe(j.current),function(){t.disconnect()}}),[_,v]);var A=(0,a.useMemo)((function(){var e=M.containerWidth,t=M.containerHeight;if(e<0||t<0)return null;Hv(nd(l)||nd(d),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",l,d),Hv(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=nd(l)?e:l,o=nd(d)?t:d;n&&n>0&&(r?o=r/n:o&&(r=o*n),m&&o>m&&(o=m)),Hv(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,o,l,d,p,h,n);var i=!Array.isArray(y)&&jd(y.type).endsWith("Chart");return s().Children.map(y,(function(e){return s().isValidElement(e)?(0,a.cloneElement)(e,oS({width:r,height:o},i?{style:oS({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,y,d,m,h,p,M,l]);return s().createElement("div",{id:b?"".concat(b):void 0,className:c("recharts-responsive-container",w),style:oS(oS({},S),{},{width:l,height:d,minWidth:p,minHeight:h,maxHeight:m}),ref:j},A)})),lS=o(23181),cS=o.n(lS);function uS(e){return uS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uS(e)}function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}function fS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pS(Object(n),!0).forEach((function(t){mS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mS(e,t,n){var r;return r=function(e){if("object"!=uS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==uS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yS(e){return Array.isArray(e)&&od(e[0])&&od(e[1])?e.join(" ~ "):e}var gS=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,o=void 0===r?{}:r,a=e.itemStyle,i=void 0===a?{}:a,l=e.labelStyle,u=void 0===l?{}:l,d=e.payload,f=e.formatter,p=e.itemSorter,h=e.wrapperClassName,m=e.labelClassName,y=e.label,g=e.labelFormatter,v=e.accessibilityLayer,b=void 0!==v&&v,w=hS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=hS({margin:0},u),O=!Wu()(y),S=O?y:"",j=c("recharts-default-tooltip",h),P=c("recharts-tooltip-label",m);O&&g&&null!=d&&(S=g(y,d));var k=b?{role:"status","aria-live":"assertive"}:{};return s().createElement("div",dS({className:j,style:w},k),s().createElement("p",{className:P,style:x},s().isValidElement(S)?S:"".concat(S)),function(){if(d&&d.length){var e=(p?yv()(d,p):d).map((function(e,t){if("none"===e.type)return null;var r=hS({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),o=e.formatter||f||yS,a=e.value,l=e.name,c=a,u=l;if(o&&null!=c&&null!=u){var p=o(a,l,e,t,d);if(Array.isArray(p)){var h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p,2);c=h[0],u=h[1]}else c=p}return s().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},od(u)?s().createElement("span",{className:"recharts-tooltip-item-name"},u):null,od(u)?s().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,s().createElement("span",{className:"recharts-tooltip-item-value"},c),s().createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return s().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function vS(e){return vS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vS(e)}function bS(e,t,n){var r;return r=function(e){if("object"!=vS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==vS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wS="recharts-tooltip-wrapper",xS={visibility:"hidden"};function OS(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return c(wS,bS(bS(bS(bS({},"".concat(wS,"-right"),rd(n)&&t&&rd(t.x)&&n>=t.x),"".concat(wS,"-left"),rd(n)&&t&&rd(t.x)&&n<t.x),"".concat(wS,"-bottom"),rd(r)&&t&&rd(t.y)&&r>=t.y),"".concat(wS,"-top"),rd(r)&&t&&rd(t.y)&&r<t.y))}function SS(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&rd(a[r]))return a[r];var u=n[r]-s-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?u<l[r]?Math.max(d,l[r]):Math.max(u,l[r]):d+s>l[r]+c?Math.max(u,l[r]):Math.max(d,l[r])}function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}function PS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PS(Object(n),!0).forEach((function(t){_S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ES(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AS(r.key),r)}}function CS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CS=function(){return!!e})()}function MS(e){return MS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MS(e)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DS(e,t)}function _S(e,t,n){return(t=AS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AS(e){var t=function(e){if("object"!=jS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jS(t)?t:t+""}var TS=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return _S((n=this,r=t,o=[].concat(i),r=MS(r),e=function(e,t){if(t&&("object"===jS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,CS()?Reflect.construct(r,o||[],MS(n).constructor):r.apply(n,o))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),_S(e,"handleKeyDown",(function(t){var n,r,o,a;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(a=e.props.coordinate)||void 0===a?void 0:a.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DS(e,t)}(t,e),n=t,r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,a=t.animationEasing,i=t.children,l=t.coordinate,c=t.hasPayload,u=t.isAnimationActive,d=t.offset,f=t.position,p=t.reverseDirection,h=t.useTranslate3d,m=t.viewBox,y=t.wrapperStyle,g=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,u=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=SS({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:a,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=SS({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:a,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):xS,cssClasses:OS({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:l,offsetTopLeft:d,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:m}),v=g.cssClasses,b=g.cssProperties,w=kS(kS({transition:u&&n?"transform ".concat(o,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return s().createElement("div",{tabIndex:-1,className:v,style:w,ref:function(t){e.wrapperNode=t}},i)}}],r&&ES(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);function NS(e){return NS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NS(e)}function RS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RS(Object(n),!0).forEach((function(t){WS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BS(r.key),r)}}function LS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LS=function(){return!!e})()}function FS(e){return FS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FS(e)}function zS(e,t){return zS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zS(e,t)}function WS(e,t,n){return(t=BS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BS(e){var t=function(e){if("object"!=NS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NS(t)?t:t+""}function HS(e){return e.dataKey}var YS=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=FS(n=t),function(e,t){if(t&&("object"===NS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,LS()?Reflect.construct(n,r||[],FS(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zS(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,a=t.animationEasing,i=t.content,l=t.coordinate,c=t.filterNull,u=t.isAnimationActive,d=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,m=t.reverseDirection,y=t.useTranslate3d,g=t.viewBox,v=t.wrapperStyle,b=null!=f?f:[];c&&b.length&&(b=Yb(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,HS));var w=b.length>0;return s().createElement(TS,{allowEscapeViewBox:r,animationDuration:o,animationEasing:a,isAnimationActive:u,active:n,coordinate:l,hasPayload:w,offset:d,position:h,reverseDirection:m,useTranslate3d:y,viewBox:g,wrapperStyle:v},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):"function"==typeof e?s().createElement(e,t):s().createElement(gS,t)}(i,IS(IS({},this.props),{},{payload:b})))}}],r&&$S(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.PureComponent);function US(){return US=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}WS(YS,"displayName","Tooltip"),WS(YS,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ef.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 VS=function(e){var t=e.cx,n=e.cy,r=e.r,o=e.className,a=c("recharts-dot",o);return t===+t&&n===+n&&r===+r?s().createElement("circle",US({},Ad(e,!1),gd(e),{className:a,cx:t,cy:n,r})):null};function qS(e){return qS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qS(e)}function GS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GS(Object(n),!0).forEach((function(t){KS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KS(e,t,n){var r;return r=function(e){if("object"!=qS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==qS(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZS=["Webkit","Moz","O","ms"];function QS(e){return QS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QS(e)}function JS(){return JS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JS.apply(this,arguments)}function ej(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ej(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sj(r.key),r)}}function rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rj=function(){return!!e})()}function oj(e){return oj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oj(e)}function aj(e,t){return aj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aj(e,t)}function ij(e,t,n){return(t=sj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sj(e){var t=function(e){if("object"!=QS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=QS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QS(t)?t:t+""}var lj=function(e){return e.changedTouches&&!!e.changedTouches.length},cj=function(e){function t(e){var n,r,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ij((r=this,a=[e],o=oj(o=t),n=function(e,t){if(t&&("object"===QS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,rj()?Reflect.construct(o,a||[],oj(r).constructor):o.apply(r,a))),"handleDrag",(function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)})),ij(n,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])})),ij(n,"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})})),n.detachDragEndListener()})),ij(n,"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),ij(n,"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})})),ij(n,"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),ij(n,"handleSlideDragStart",(function(e){var t=lj(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aj(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,a=this.props,i=a.gap,s=a.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=t.getIndexInRange(o,l),d=t.getIndexInRange(o,c);return{startIndex:u-u%i,endIndex:d===s?s:d-d%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=hw(n[e],o,e);return qu()(r)?r(a,e):a}},{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(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,s=a.width,l=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,f=e.pageX-n;f>0?f=Math.min(f,i+s-l-o,i+s-l-r):f<0&&(f=Math.max(f,i-r,i-o));var p=this.getIndex({startX:r+f,endX:o+f});p.startIndex===c&&p.endIndex===u||!d||d(p),this.setState({startX:r+f,endX:o+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=lj(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,a=t.startX,i=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,d=s.onChange,f=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},m=e.pageX-n;m>0?m=Math.min(m,l+c-u-i):m<0&&(m=Math.max(m,l-i)),h[r]=i+m;var y=this.getIndex(h),g=y.startIndex,v=y.endIndex;this.setState(ij(ij({},r,i+m),"brushMoveStartX",e.pageX),(function(){var e;d&&(e=p.length-1,("startX"===r&&(o>a?g%f==0:v%f==0)||o<a&&v===e||"endX"===r&&(o>a?v%f==0:g%f==0)||o>a&&v===e)&&d(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,s=this.state[t],l=o.indexOf(s);if(-1!==l){var c=l+e;if(!(-1===c||c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(ij({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return s().createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,l=e.children,c=e.padding,u=a.Children.only(l);return u?s().cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,n){var r,o,a=this,i=this.props,l=i.y,c=i.travellerWidth,u=i.height,d=i.traveller,f=i.ariaLabel,p=i.data,h=i.startIndex,m=i.endIndex,y=Math.max(e,this.props.x),g=tj(tj({},Ad(this.props,!1)),{},{x:y,y:l,width:c,height:u}),v=f||"Min value: ".concat(null===(r=p[h])||void 0===r?void 0:r.name,", Max value: ").concat(null===(o=p[m])||void 0===o?void 0:o.name);return s().createElement(Ld,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth,l=Math.min(e,t)+i,c=Math.max(Math.abs(t-e)-i,0);return s().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:i};return s().createElement(Ld,{className:"recharts-brush-texts"},s().createElement(If,JS({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+o/2},d),this.getTextOfTick(t)),s().createElement(If,JS({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+a+5,y:r+o/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,u=e.alwaysShowText,d=this.state,f=d.startX,p=d.endX,h=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!t||!t.length||!rd(o)||!rd(a)||!rd(i)||!rd(l)||i<=0||l<=0)return null;var v=c("recharts-brush",n),b=1===s().Children.count(r),w=function(e,t){var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=ZS.reduce((function(e,r){return XS(XS({},e),{},KS({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return s().createElement(Ld,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||m||y||g||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return s().createElement(s().Fragment,null,s().createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),s().createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),s().createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return s().isValidElement(e)?s().cloneElement(e,n):qu()(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return tj({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,a=e.width,i=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=up().domain(cS()(0,s)).range([o,o+a-i]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:a,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&nj(n.prototype,r),o&&nj(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);function uj(){return uj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uj.apply(this,arguments)}function dj(e){return dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dj(e)}function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){vj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bj(r.key),r)}}function mj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mj=function(){return!!e})()}function yj(e){return yj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yj(e)}function gj(e,t){return gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gj(e,t)}function vj(e,t,n){return(t=bj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bj(e){var t=function(e){if("object"!=dj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dj(t)?t:t+""}ij(cj,"displayName","Brush"),ij(cj,"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 wj=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=yj(n=t),function(e,t){if(t&&("object"===dj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mj()?Reflect.construct(n,r||[],yj(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gj(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.r,a=e.alwaysShow,i=e.clipPathId,l=od(n),u=od(r);if(Hv(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!u)return null;var d=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,a=jO({x:r.scale,y:o.scale}),i=a.apply({x:t,y:n},{bandAware:!0});return uO(e,"discard")&&!a.isInRange(i)?null:i}(this.props);if(!d)return null;var f=d.x,p=d.y,h=this.props,m=h.shape,y=h.className,g=pj(pj({clipPath:uO(this.props,"hidden")?"url(#".concat(i,")"):void 0},Ad(this.props,!0)),{},{cx:f,cy:p});return s().createElement(Ld,{className:c("recharts-reference-dot",y)},t.renderDot(m,g),Jf.renderCallByParent(this.props,{x:f-o,y:p-o,width:2*o,height:2*o}))}}],r&&hj(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function xj(){return xj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xj.apply(this,arguments)}function Oj(e){return Oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oj(e)}function Sj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach((function(t){Mj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dj(r.key),r)}}function kj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kj=function(){return!!e})()}function Ej(e){return Ej=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ej(e)}function Cj(e,t){return Cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cj(e,t)}function Mj(e,t,n){return(t=Dj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dj(e){var t=function(e){if("object"!=Oj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oj(t)?t:t+""}vj(wj,"displayName","ReferenceDot"),vj(wj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),vj(wj,"renderDot",(function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement(VS,uj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}));var _j=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Ej(n=t),function(e,t){if(t&&("object"===Oj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kj()?Reflect.construct(n,r||[],Ej(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cj(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,n=e.x1,r=e.x2,o=e.y1,a=e.y2,i=e.className,l=e.alwaysShow,u=e.clipPathId;Hv(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=od(n),f=od(r),p=od(o),h=od(a),m=this.props.shape;if(!(d||f||p||h||m))return null;var y=function(e,t,n,r,o){var a=o.x1,i=o.x2,s=o.y1,l=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var d=jO({x:c.scale,y:u.scale}),f={x:e?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(i,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!uO(o,"discard")||d.isInRange(f)&&d.isInRange(p)?OO(f,p):null}(d,f,p,h,this.props);if(!y&&!m)return null;var g=uO(this.props,"hidden")?"url(#".concat(u,")"):void 0;return s().createElement(Ld,{className:c("recharts-reference-area",i)},t.renderRect(m,jj(jj({clipPath:g},Ad(this.props,!0)),y)),Jf.renderCallByParent(this.props,y))}}])&&Pj(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function Aj(e){return function(e){if(Array.isArray(e))return Tj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Tj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tj(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Mj(_j,"displayName","ReferenceArea"),Mj(_j,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Mj(_j,"renderRect",(function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement(ix,xj({},t,{className:"recharts-reference-area-rect"}))}));var Nj=function(e,t,n,r,o){var a=Cd(e,JO),i=Cd(e,wj),s=[].concat(Aj(a),Aj(i)),l=Cd(e,_j),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce((function(e,t){if(t.props[c]===n&&uO(t.props,"extendDomain")&&rd(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),l.length){var f="".concat(u,"1"),p="".concat(u,"2");d=l.reduce((function(e,t){if(t.props[c]===n&&uO(t.props,"extendDomain")&&rd(t.props[f])&&rd(t.props[p])){var r=t.props[f],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),d)}return o&&o.length&&(d=o.reduce((function(e,t){return rd(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},Rj=o(30228),Ij=new(o.n(Rj)()),$j="recharts.syncMouseEvents";function Lj(e){return Lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lj(e)}function Fj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wj(r.key),r)}}function zj(e,t,n){return(t=Wj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wj(e){var t=function(e){if("object"!=Lj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lj(t)?t:t+""}var Bj=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),zj(this,"activeIndex",0),zj(this,"coordinateList",[]),zj(this,"layout","horizontal")},t=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,a=void 0===o?null:o,i=e.layout,s=void 0===i?null:i,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=a?a:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,a=n.height,i=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+i+s,u=o+this.offset.top+a/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}],t&&Fj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Hj(){}function Yj(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Uj(e){this._context=e}function Vj(e){this._context=e}function qj(e){this._context=e}Uj.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:Yj(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Yj(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Vj.prototype={areaStart:Hj,areaEnd:Hj,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)}},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:Yj(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},qj.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Yj(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class Gj{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Xj(e){this._context=e}function Kj(e){this._context=e}function Zj(e){return new Kj(e)}function Qj(e){return e<0?-1:1}function Jj(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(Qj(a)+Qj(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function eP(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tP(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,o+s*t,a-s,i-s*n,a,i)}function nP(e){this._context=e}function rP(e){this._context=new oP(e)}function oP(e){this._context=e}function aP(e){this._context=e}function iP(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}function sP(e,t){this._context=e,this._t=t}function lP(e){return e[0]}function cP(e){return e[1]}function uP(e,t){var n=rv(!0),r=null,o=Zj,a=null,i=xb(s);function s(s){var l,c,u,d=(s=nv(s)).length,f=!1;for(null==r&&(a=o(u=i())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(c,l,s),+t(c,l,s));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?lP:rv(e),t="function"==typeof t?t:void 0===t?cP:rv(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:rv(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:rv(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),s):r},s}function dP(e,t,n){var r=null,o=rv(!0),a=null,i=Zj,s=null,l=xb(c);function c(c){var u,d,f,p,h,m=(c=nv(c)).length,y=!1,g=new Array(m),v=new Array(m);for(null==a&&(s=i(h=l())),u=0;u<=m;++u){if(!(u<m&&o(p=c[u],u,c))===y)if(y=!y)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(g[f],v[f]);s.lineEnd(),s.areaEnd()}y&&(g[u]=+e(p,u,c),v[u]=+t(p,u,c),s.point(r?+r(p,u,c):g[u],n?+n(p,u,c):v[u]))}if(h)return s=null,h+""||null}function u(){return uP().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?lP:rv(+e),t="function"==typeof t?t:rv(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?cP:rv(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:rv(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:rv(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:rv(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:rv(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:rv(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:rv(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),c):a},c}function fP(e){return fP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fP(e)}function pP(){return pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pP.apply(this,arguments)}function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hP(Object(n),!0).forEach((function(t){yP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yP(e,t,n){var r;return r=function(e){if("object"!=fP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==fP(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xj.prototype={areaStart:Hj,areaEnd:Hj,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))}},Kj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},nP.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:tP(this,this._t0,eP(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,tP(this,eP(this,n=Jj(this,e,t)),n);break;default:tP(this,this._t0,n=Jj(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(rP.prototype=Object.create(nP.prototype)).point=function(e,t){nP.prototype.point.call(this,t,e)},oP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}},aP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=iP(e),o=iP(t),a=0,i=1;i<n;++a,++i)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},sP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var gP={curveBasisClosed:function(e){return new Vj(e)},curveBasisOpen:function(e){return new qj(e)},curveBasis:function(e){return new Uj(e)},curveBumpX:function(e){return new Gj(e,!0)},curveBumpY:function(e){return new Gj(e,!1)},curveLinearClosed:function(e){return new Xj(e)},curveLinear:Zj,curveMonotoneX:function(e){return new nP(e)},curveMonotoneY:function(e){return new rP(e)},curveNatural:function(e){return new aP(e)},curveStep:function(e){return new sP(e,.5)},curveStepAfter:function(e){return new sP(e,1)},curveStepBefore:function(e){return new sP(e,0)}},vP=function(e){return e.x===+e.x&&e.y===+e.y},bP=function(e){return e.x},wP=function(e){return e.y},xP=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,a=void 0===o?[]:o,i=e.baseLine,s=e.layout,l=e.connectNulls,c=void 0!==l&&l,u=function(e,t){if(qu()(e))return e;var n="curve".concat(hv()(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?gP[n]||Zj:gP["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),d=c?a.filter((function(e){return vP(e)})):a;if(Array.isArray(i)){var f=c?i.filter((function(e){return vP(e)})):i,p=d.map((function(e,t){return mP(mP({},e),{},{base:f[t]})}));return(t="vertical"===s?dP().y(wP).x1(bP).x0((function(e){return e.base.x})):dP().x(bP).y1(wP).y0((function(e){return e.base.y}))).defined(vP).curve(u),t(p)}return(t="vertical"===s&&rd(i)?dP().y(wP).x1(bP).x0(i):rd(i)?dP().x(bP).y1(wP).y0(i):uP().x(bP).y(wP)).defined(vP).curve(u),t(d)}(e):r;return s().createElement("path",pP({},Ad(e,!1),gd(e),{className:c("recharts-curve",t),d:a,ref:o}))};function OP(e){return OP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OP(e)}var SP=["x","y","top","left","width","height","className"];function jP(){return jP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jP.apply(this,arguments)}function PP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kP(e,t,n){var r;return r=function(e){if("object"!=OP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=OP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==OP(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EP=function(e,t,n,r,o,a){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n)},CP=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,a=e.top,i=void 0===a?0:a,l=e.left,u=void 0===l?0:l,d=e.width,f=void 0===d?0:d,p=e.height,h=void 0===p?0:p,m=e.className,y=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PP(Object(n),!0).forEach((function(t){kP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:n,y:o,top:i,left:u,width:f,height:h},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,SP));return rd(n)&&rd(o)&&rd(f)&&rd(h)&&rd(i)&&rd(u)?s().createElement("path",jP({},Ad(y,!0),{className:c("recharts-cross",m),d:EP(n,o,f,h,i,u)})):null};function MP(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[Hf(t,n,r,o),Hf(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function DP(e,t,n){var r,o,a,i;if("horizontal"===e)a=r=t.x,o=n.top,i=n.top+n.height;else if("vertical"===e)i=o=t.y,r=n.left,a=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return MP(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=Hf(s,l,c,d),p=Hf(s,l,u,d);r=f.x,o=f.y,a=p.x,i=p.y}return[{x:r,y:o},{x:a,y:i}]}function _P(e){return _P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_P(e)}function AP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AP(Object(n),!0).forEach((function(t){NP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NP(e,t,n){var r;return r=function(e){if("object"!=_P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==_P(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(e){var t,n,r,o=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,u=e.activePayload,d=e.offset,f=e.activeTooltipIndex,p=e.tooltipAxisBandSize,h=e.layout,m=e.chartName,y=null!==(t=o.props.cursor)&&void 0!==t?t:null===(n=o.type.defaultProps)||void 0===n?void 0:n.cursor;if(!o||!y||!s||!l||"ScatterChart"!==m&&"axis"!==i)return null;var g=xP;if("ScatterChart"===m)r=l,g=CP;else if("BarChart"===m)r=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(h,l,d,p),g=ix;else if("radial"===h){var v=MP(l),b=v.cx,w=v.cy,x=v.radius;r={cx:b,cy:w,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:x,outerRadius:x},g=jx}else r={points:DP(h,l,d)},g=xP;var O=TP(TP(TP(TP({stroke:"#ccc",pointerEvents:"none"},d),r),Ad(y,!1)),{},{payload:u,payloadIndex:f,className:c("recharts-tooltip-cursor",y.className)});return(0,a.isValidElement)(y)?(0,a.cloneElement)(y,O):(0,a.createElement)(g,O)}var IP=["item"],$P=["children","className","width","height","style","compact","title","desc"];function LP(e){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LP(e)}function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FP.apply(this,arguments)}function zP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||qP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QP(r.key),r)}}function HP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HP=function(){return!!e})()}function YP(e){return YP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YP(e)}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UP(e,t)}function VP(e){return function(e){if(Array.isArray(e))return GP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qP(e,t){if(e){if("string"==typeof e)return GP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GP(e,t):void 0}}function GP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XP(Object(n),!0).forEach((function(t){ZP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZP(e,t,n){return(t=QP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QP(e){var t=function(e){if("object"!=LP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LP(t)?t:t+""}var JP={xAxis:["bottom","top"],yAxis:["left","right"]},ek={width:"100%",height:"100%"},tk={x:0,y:0};function nk(e){return e}var rk=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,a=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(VP(e),VP(n)):e}),[]);return a.length>0?a:e&&e.length&&rd(r)&&rd(o)?e.slice(r,o+1):[]};function ok(e){return"number"===e?[0,"auto"]:void 0}var ak=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=rk(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce((function(o,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:t;return u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),(c=a.dataKey&&!a.allowDuplicatedCategory?ud(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(VP(o),[Rw(s,c)]):o}),[])},ik=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),i=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,l=0;l<i;l++){var c=l>0?r[l-1].coordinate:r[i-1].coordinate,u=r[l].coordinate,d=l>=i-1?r[0].coordinate:r[l+1].coordinate,f=void 0;if(td(u-c)!==td(d-u)){var p=[];if(td(d-u)===td(s[1]-s[0])){f=d;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var m=d+s[1]-s[0];p[0]=Math.min(u,(m+u)/2),p[1]=Math.max(u,(m+u)/2)}var y=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){a=r[l].index;break}}else{var g=Math.min(c,d),v=Math.max(c,d);if(e>(g+u)/2&&e<=(v+u)/2){a=r[l].index;break}}}else for(var b=0;b<i;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){a=n[b].index;break}return a}(a,i,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,d=ak(e,t,c,u),f=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var a=o.coordinate,i=r.radius;return KP(KP(KP({},r),Hf(r.cx,r.cy,i,a)),{},{angle:a,radius:i})}var s=o.coordinate,l=r.angle;return KP(KP(KP({},r),Hf(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return tk}(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:f}}return null},sk=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=Cd(c,o),f={};return d&&d.length?f=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,f=bw(c,o);return n.reduce((function(t,n){var p,h=void 0!==n.type.defaultProps?KP(KP({},n.type.defaultProps),n.props):n.props,m=h.type,y=h.dataKey,g=h.allowDataOverflow,v=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[a];if(t[O])return t;var S,j,P,k=rk(e.data,{graphicalItems:r.filter((function(e){var t;return(a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a])===O})),dataStartIndex:s,dataEndIndex:l}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&rd(r)&&rd(o))return!0}return!1})(h.domain,g,m)&&(S=Aw(h.domain,null,g),!f||"number"!==m&&"auto"===b||(P=mw(k,y,"category")));var C=ok(m);if(!S||0===S.length){var M,D=null!==(M=h.domain)&&void 0!==M?M:C;if(y){if(S=mw(k,y,m),"category"===m&&f){var _=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);v&&_?(j=S,S=cS()(0,E)):v||(S=Nw(D,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(VP(e),[t])}),[]))}else if("category"===m)S=v?S.filter((function(e){return""!==e&&!Wu()(e)})):Nw(D,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wu()(t)?e:[].concat(VP(e),[t])}),[]);else if("number"===m){var A=function(e,t,n,r,o){var a=t.map((function(t){return gw(e,t,n,o,r)})).filter((function(e){return!Wu()(e)}));return a&&a.length?a.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){var t,n,r=a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===O&&(x||!o)})),y,o,c);A&&(S=A)}!f||"number"!==m&&"auto"===b||(P=mw(k,y,"category"))}else S=f?cS()(0,E):i&&i[O]&&i[O].hasStack&&"number"===m?"expand"===d?[0,1]:Mw(i[O].stackGroups,s,l):vw(k,r.filter((function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===O&&(x||!n)})),m,c,!0);if("number"===m)S=Nj(u,S,O,o,w),D&&(S=Aw(D,S,g));else if("category"===m&&D){var T=D;S.every((function(e){return T.indexOf(e)>=0}))&&(S=T)}}return KP(KP({},t),{},ZP({},O,KP(KP({},h),{},{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:j,originalDomain:null!==(p=h.domain)&&void 0!==p?p:C,isCategorical:f,layout:c})))}),{})}(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l}):a&&a.length&&(f=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=rk(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),f=d.length,p=bw(c,o),h=-1;return n.reduce((function(e,t){var m,y=(void 0!==t.type.defaultProps?KP(KP({},t.type.defaultProps),t.props):t.props)[a],g=ok("number");return e[y]?e:(h++,p?m=cS()(0,f):i&&i[y]&&i[y].hasStack?(m=Mw(i[y].stackGroups,s,l),m=Nj(u,m,y,o)):(m=Aw(g,vw(d,n.filter((function(e){var t,n,r=a in e.props?e.props[a]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[a],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===y&&!o})),"number",c),r.defaultProps.allowDataOverflow),m=Nj(u,m,y,o)),KP(KP({},e),{},ZP({},y,KP(KP({axisType:o},r.defaultProps),{},{hide:!0,orientation:Hu()(JP,"".concat(o,".").concat(h%2),null),domain:m,originalDomain:g,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l})),f},lk=function(e){var t=e.children,n=e.defaultShowTooltip,r=Md(t,cj),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},ck=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},uk=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},dk=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,i=e.validateTooltipEventTypes,l=void 0===i?["axis"]:i,u=e.axisComponents,d=e.legendContent,f=e.formatAxisMap,p=e.defaultProps,h=function(e,r){var o=e.props,a=e.dataStartIndex,i=e.dataEndIndex,s=e.updateId;if(!Dd({props:o}))return null;var l=o.children,c=o.layout,d=o.stackOffset,p=o.data,h=o.reverseStackOrder,m=ck(c),y=m.numericAxisName,g=m.cateAxisName,v=Cd(l,n),b=function(e,t,n,r,o,a){if(!e)return null;var i=(a?t.reverse():t).reduce((function(e,t){var o,a=null!==(o=t.type)&&void 0!==o&&o.defaultProps?fw(fw({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(a.hide)return e;var s=a[n],l=e[s]||{hasStack:!1,stackGroups:{}};if(od(i)){var c=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[i]=c}else l.stackGroups[id("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return fw(fw({},e),{},pw({},s,l))}),{});return Object.keys(i).reduce((function(t,a){var s=i[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,a){var i=s.stackGroups[a];return fw(fw({},t),{},pw({},a,{numericAxisId:n,cateAxisId:r,items:i.items,stackedData:kw(e,i.items,o)}))}),{})),fw(fw({},t),{},pw({},a,s))}),{})}(p,v,"".concat(y,"Id"),"".concat(g,"Id"),d,h),w=u.reduce((function(e,t){var n="".concat(t.axisType,"Map");return KP(KP({},e),{},ZP({},n,sk(o,KP(KP({},t),{},{graphicalItems:v,stackGroups:t.axisType===y&&b,dataStartIndex:a,dataEndIndex:i}))))}),{}),x=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,a=e.yAxisMap,i=void 0===a?{}:a,s=n.width,l=n.height,c=n.children,u=n.margin||{},d=Md(c,cj),f=Md(c,nw),p=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:KP(KP({},e),{},ZP({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:KP(KP({},e),{},ZP({},r,Hu()(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=KP(KP({},h),p),y=m.bottom;d&&(m.bottom+=d.props.height||cj.defaultProps.height),f&&t&&(m=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,s=a-(i.left||0)-(i.right||0),l=sw({children:o,legendWidth:s});if(l){var c=r||{},u=c.width,d=c.height,f=l.align,p=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&rd(e[f]))return fw(fw({},e),{},pw({},f,e[f]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&rd(e[p]))return fw(fw({},e),{},pw({},p,e[p]+(d||0)))}return e}(m,0,n,t));var g=s-m.left-m.right,v=l-m.top-m.bottom;return KP(KP({brushBottom:y},m),{},{width:Math.max(g,0),height:Math.max(v,0)})}(KP(KP({},w),{},{props:o,graphicalItems:v}),null==r?void 0:r.legendBBox);Object.keys(w).forEach((function(e){w[e]=f(o,w[e],x,e.replace("Map",""),t)}));var O,S,j=w["".concat(g,"Map")],P=(O=ld(j),{tooltipTicks:S=xw(O,!1,!0),orderedTooltipTicks:yv()(S,(function(e){return e.coordinate})),tooltipAxis:O,tooltipAxisBandSize:Tw(O,S)}),k=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,c=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,h=ck(c),m=h.numericAxisName,y=h.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=jd(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),v=[];return n.forEach((function(n,h){var b=rk(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:s}),w=void 0!==n.type.defaultProps?KP(KP({},n.type.defaultProps),n.props):n.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(m,"Id")],j=w["".concat(y,"Id")],P=u.reduce((function(e,n){var r=t["".concat(n.axisType,"Map")],o=w["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||Fd(!1);var a=r[o];return KP(KP({},e),{},ZP(ZP({},n.axisType,a),"".concat(n.axisType,"Ticks"),xw(a)))}),{}),k=P[y],E=P["".concat(y,"Ticks")],C=r&&r[S]&&r[S].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?fw(fw({},e.type.defaultProps),e.props):e.props).stackId;if(od(r)){var o=t[r];if(o){var a=o.items.indexOf(e);return a>=0?o.stackedData[a]:null}}return null}(n,r[S].stackGroups),M=jd(n.type).indexOf("Bar")>=0,D=Tw(k,E),_=[],A=g&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var a={},i=Object.keys(o),s=0,l=i.length;s<l;s++)for(var c=o[i[s]].stackGroups,u=Object.keys(c),d=0,f=u.length;d<f;d++){var p=c[u[d]],h=p.items,m=p.cateAxisId,y=h.filter((function(e){return jd(e.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,v=void 0!==g?fw(fw({},g),y[0].props):y[0].props,b=v.barSize,w=v[m];a[w]||(a[w]=[]);var x=Wu()(b)?t:b;a[w].push({item:y[0],stackList:y.slice(1),barSize:Wu()(x)?void 0:sd(x,n,0)})}}return a}({barSize:l,stackGroups:r,totalSize:uk(P,y)});if(M){var T,N,R=Wu()(O)?p:O,I=null!==(T=null!==(N=Tw(k,E,!0))&&void 0!==N?N:R)&&void 0!==T?T:0;_=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,a=void 0===o?[]:o,i=e.maxBarSize,s=a.length;if(s<1)return null;var l,c=sd(t,r,0,!0),u=[];if(a[0].barSize===+a[0].barSize){var d=!1,f=r/s,p=a.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*c)>=r&&(p-=(s-1)*c,c=0),p>=r&&f>0&&(d=!0,p=s*(f*=.9));var h={offset:((r-p)/2|0)-c,size:0};l=a.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+c,size:d?f:t.barSize}},r=[].concat(cw(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var m=sd(n,r,0,!0);r-2*m-(s-1)*c<=0&&(c=0);var y=(r-2*m-(s-1)*c)/s;y>1&&(y>>=0);var g=i===+i?Math.min(y,i):y;l=a.reduce((function(e,t,n){var r=[].concat(cw(e),[{item:t.item,position:{offset:m+(y+c)*n+(y-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return l}({barGap:d,barCategoryGap:f,bandSize:I!==D?I:D,sizeList:A[j],maxBarSize:R}),I!==D&&(_=_.map((function(e){return KP(KP({},e),{},{position:KP(KP({},e.position),{},{offset:e.position.offset-I/2})})})))}var $,L,F=n&&n.type&&n.type.getComposedData;F&&v.push({props:KP(KP({},F(KP(KP({},P),{},{displayedData:b,props:e,dataKey:x,item:n,bandSize:D,barPosition:_,offset:o,stackedData:C,layout:c,dataStartIndex:i,dataEndIndex:s}))),{},ZP(ZP(ZP({key:n.key||"item-".concat(h)},m,P[m]),y,P[y]),"animationId",a)),childIndex:($=n,L=e.children,Ed(L).indexOf($)),item:n})})),v}(o,KP(KP({},w),{},{dataStartIndex:a,dataEndIndex:i,updateId:s,graphicalItems:v,stackGroups:b,offset:x}));return KP(KP({formattedGraphicalItems:k,graphicalItems:v,offset:x,stackGroups:b},P),w)},m=function(e){function n(e){var r,o,i,l,u,f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ZP((l=this,f=[e],u=YP(u=n),i=function(e,t){if(t&&("object"===LP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(l,HP()?Reflect.construct(u,f||[],YP(l).constructor):u.apply(l,f))),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ZP(i,"accessibilityManager",new Bj),ZP(i,"handleLegendBBoxUpdate",(function(e){if(e){var t=i.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;i.setState(KP({legendBBox:e},h({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},KP(KP({},i.state),{},{legendBBox:e}))))}})),ZP(i,"handleReceiveSyncEvent",(function(e,t,n){if(i.props.syncId===e){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}})),ZP(i,"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState((function(){return KP({dataStartIndex:t,dataEndIndex:n},h({props:i.props,dataStartIndex:t,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),ZP(i,"handleMouseEnter",(function(e){var t=i.getMouseInfo(e);if(t){var n=KP(KP({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;qu()(r)&&r(n,e)}})),ZP(i,"triggeredAfterMouseMove",(function(e){var t=i.getMouseInfo(e),n=t?KP(KP({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;qu()(r)&&r(n,e)})),ZP(i,"handleItemMouseEnter",(function(e){i.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ZP(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),ZP(i,"handleMouseMove",(function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)})),ZP(i,"handleMouseLeave",(function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var n=i.props.onMouseLeave;qu()(n)&&n(t,e)})),ZP(i,"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&Sd[t]?Sd[t]:null}(e),r=Hu()(i.props,"".concat(n));n&&qu()(r)&&r(null!==(t=/.*touch.*/i.test(n)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)})),ZP(i,"handleClick",(function(e){var t=i.getMouseInfo(e);if(t){var n=KP(KP({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;qu()(r)&&r(n,e)}})),ZP(i,"handleMouseDown",(function(e){var t=i.props.onMouseDown;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"handleMouseUp",(function(e){var t=i.props.onMouseUp;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),ZP(i,"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])})),ZP(i,"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])})),ZP(i,"handleDoubleClick",(function(e){var t=i.props.onDoubleClick;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"handleContextMenu",(function(e){var t=i.props.onContextMenu;qu()(t)&&t(i.getMouseInfo(e),e)})),ZP(i,"triggerSyncEvent",(function(e){void 0!==i.props.syncId&&Ij.emit($j,i.props.syncId,e,i.eventEmitterSymbol)})),ZP(i,"applySyncEvent",(function(e){var t=i.props,n=t.layout,r=t.syncMethod,o=i.state.updateId,a=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(KP({dataStartIndex:a,dataEndIndex:s},h({props:i.props,dataStartIndex:a,dataEndIndex:s,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=i.state,f=d.offset,p=d.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var m=0;m<p.length;m++)if(p[m].value===e.activeLabel){u=m;break}}var y=KP(KP({},f),{},{x:f.left,y:f.top}),g=Math.min(l,y.x+y.width),v=Math.min(c,y.y+y.height),b=p[u]&&p[u].value,w=ak(i.state,i.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?v:p[u].coordinate}:tk;i.setState(KP(KP({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else i.setState(e)})),ZP(i,"renderCursor",(function(e){var n,r=i.state,o=r.isTooltipActive,a=r.activeCoordinate,l=r.activePayload,c=r.offset,u=r.activeTooltipIndex,d=r.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:o,h=i.props.layout,m=e.key||"_recharts-cursor";return s().createElement(RP,{key:m,activeCoordinate:a,activePayload:l,activeTooltipIndex:u,chartName:t,element:e,isActive:p,layout:h,offset:c,tooltipAxisBandSize:d,tooltipEventType:f})})),ZP(i,"renderPolarAxis",(function(e,t,n){var r=Hu()(e,"type.axisType"),o=Hu()(i.state,"".concat(r,"Map")),s=e.type.defaultProps,l=void 0!==s?KP(KP({},s),e.props):e.props,u=o&&o[l["".concat(r,"Id")]];return(0,a.cloneElement)(e,KP(KP({},u),{},{className:c(r,u.className),key:e.key||"".concat(t,"-").concat(n),ticks:xw(u,!0)}))})),ZP(i,"renderPolarGrid",(function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,s=i.state,l=s.radiusAxisMap,c=s.angleAxisMap,u=ld(l),d=ld(c),f=d.cx,p=d.cy,h=d.innerRadius,m=d.outerRadius;return(0,a.cloneElement)(e,{polarAngles:Array.isArray(r)?r:xw(d,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:xw(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:n})})),ZP(i,"renderLegend",(function(){var e=i.state.formattedGraphicalItems,t=i.props,n=t.children,r=t.width,o=t.height,s=i.props.margin||{},l=r-(s.left||0)-(s.right||0),c=sw({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:d});if(!c)return null;var u=c.item,f=WP(c,IP);return(0,a.cloneElement)(u,KP(KP({},f),{},{chartWidth:r,chartHeight:o,margin:s,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),ZP(i,"renderTooltip",(function(){var e,t=i.props,n=t.children,r=t.accessibilityLayer,o=Md(n,YS);if(!o)return null;var s=i.state,l=s.isTooltipActive,c=s.activeCoordinate,u=s.activePayload,d=s.activeLabel,f=s.offset,p=null!==(e=o.props.active)&&void 0!==e?e:l;return(0,a.cloneElement)(o,{viewBox:KP(KP({},f),{},{x:f.left,y:f.top}),active:p,label:d,payload:p?u:[],coordinate:c,accessibilityLayer:r})})),ZP(i,"renderBrush",(function(e){var t=i.props,n=t.margin,r=t.data,o=i.state,s=o.offset,l=o.dataStartIndex,c=o.dataEndIndex,u=o.updateId;return(0,a.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Sw(i.handleBrushChange,e.props.onChange),data:r,x:rd(e.props.x)?e.props.x:s.left,y:rd(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(n.bottom||0),width:rd(e.props.width)?e.props.width:s.width,startIndex:l,endIndex:c,updateId:"brush-".concat(u)})})),ZP(i,"renderReferenceElement",(function(e,t,n){if(!e)return null;var r=i.clipPathId,o=i.state,s=o.xAxisMap,l=o.yAxisMap,c=o.offset,u=e.type.defaultProps||{},d=e.props,f=d.xAxisId,p=void 0===f?u.xAxisId:f,h=d.yAxisId,m=void 0===h?u.yAxisId:h;return(0,a.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:s[p],yAxis:l[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:r})})),ZP(i,"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,a=e.childIndex,i=e.isRange,s=[],l=t.props.key,c=void 0!==t.item.type.defaultProps?KP(KP({},t.item.type.defaultProps),t.item.props):t.item.props,u=c.activeDot,d=KP(KP({index:a,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:yw(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},Ad(u,!1)),gd(u));return s.push(n.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(a))),o?s.push(n.renderActiveDot(u,KP(KP({},d),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(a))):i&&s.push(null),s})),ZP(i,"renderGraphicChild",(function(e,t,n){var r=i.filterFormatItem(e,t,n);if(!r)return null;var o=i.getTooltipEventType(),s=i.state,l=s.isTooltipActive,c=s.tooltipAxis,u=s.activeTooltipIndex,d=s.activeLabel,f=Md(i.props.children,YS),p=r.props,h=p.points,m=p.isRange,y=p.baseLine,g=void 0!==r.item.type.defaultProps?KP(KP({},r.item.type.defaultProps),r.item.props):r.item.props,v=g.activeDot,b=g.hide,w=g.activeBar,x=g.activeShape,O=Boolean(!b&&l&&f&&(v||w||x)),S={};"axis"!==o&&f&&"click"===f.props.trigger?S={onClick:Sw(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(S={onMouseLeave:Sw(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:Sw(i.handleItemMouseEnter,e.props.onMouseEnter)});var j=(0,a.cloneElement)(e,KP(KP({},r.props),S));if(O){if(!(u>=0)){var P,k=(null!==(P=i.getItemByXY(i.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:j}).graphicalItem,E=k.item,C=void 0===E?e:E,M=k.childIndex,D=KP(KP(KP({},r.props),S),{},{activeIndex:M});return[(0,a.cloneElement)(C,D),null,null]}var _,A;if(c.dataKey&&!c.allowDuplicatedCategory){var T="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());_=ud(h,T,d),A=m&&y&&ud(y,T,d)}else _=null==h?void 0:h[u],A=m&&y&&y[u];if(x||w){var N=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[(0,a.cloneElement)(e,KP(KP(KP({},r.props),S),{},{activeIndex:N})),null,null]}if(!Wu()(_))return[j].concat(VP(i.renderActivePoints({item:r,activePoint:_,basePoint:A,childIndex:u,isRange:m})))}return m?[j,null,null]:[j,null]})),ZP(i,"renderCustomized",(function(e,t,n){return(0,a.cloneElement)(e,KP(KP({key:"recharts-customized-".concat(n)},i.props),i.state))})),ZP(i,"renderMap",{CartesianGrid:{handler:nk,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:nk},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:nk},YAxis:{handler:nk},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:id("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=tS()(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UP(e,t)}(n,e),r=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=Md(t,YS);if(a){var i=a.props.defaultIndex;if(!("number"!=typeof i||i<0||i>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,l=ak(this.state,n,i,s),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},f=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));f&&(d=KP(KP({},d),f.props.points[i].tooltipPosition),l=f.props.points[i].tooltipPayload);var p={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){Td([Md(e.children,YS)],[Md(this.props.children,YS)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Md(this.props.children,YS);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o=(t=r).top+window.scrollY-document.documentElement.clientTop,a=t.left+window.scrollX-document.documentElement.clientLeft,i={chartX:Math.round(e.pageX-a),chartY:Math.round(e.pageY-o)},s=r.width/n.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,s);if(!l)return null;var c=this.state,u=c.xAxisMap,d=c.yAxisMap,f=this.getTooltipEventType(),p=ik(this.state,this.props.data,this.props.layout,l);if("axis"!==f&&u&&d){var h=ld(u).scale,m=ld(d).scale,y=h&&h.invert?h.invert(i.chartX):null,g=m&&m.invert?m.invert(i.chartY):null;return KP(KP({},i),{},{xValue:y,yValue:g},p)}return p?KP(KP({},i),p):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=ld(l);return Uf({x:o,y:a},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Md(e,YS),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),KP(KP({},gd(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Ij.on($j,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ij.removeListener($j,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o<a;o++){var i=r[o];if(i.item===e||i.props.key===e.key||t===jd(i.item.type)&&n===i.childIndex)return i}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return s().createElement("defs",null,s().createElement("clipPath",{id:e},s().createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=zP(t,2),r=n[0],o=n[1];return KP(KP({},e),{},ZP({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=zP(t,2),r=n[0],o=n[1];return KP(KP({},e),{},ZP({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,a=n.length;o<a;o++){var i=n[o],s=i.props,l=i.item,c=void 0!==l.type.defaultProps?KP(KP({},l.type.defaultProps),l.props):l.props,u=jd(l.type);if("Bar"===u){var d=(s.data||[]).find((function(t){return ox(e,t)}));if(d)return{graphicalItem:i,payload:d}}else if("RadialBar"===u){var f=(s.data||[]).find((function(t){return Uf(e,t)}));if(f)return{graphicalItem:i,payload:f}}else if(Nx(i,r)||Rx(i,r)||Ix(i,r)){var p=zx({graphicalItem:i,activeTooltipItem:r,itemData:c.data}),h=void 0===c.activeIndex?p:c.activeIndex;return{graphicalItem:KP(KP({},i),{},{childIndex:h}),payload:Ix(i,r)?c.data[p]:i.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!Dd(this))return null;var t,n,r=this.props,o=r.children,a=r.className,i=r.width,l=r.height,u=r.style,d=r.compact,f=r.title,p=r.desc,h=WP(r,$P),m=Ad(h,!1);if(d)return s().createElement(IO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s().createElement(Vv,FP({},m,{width:i,height:l,title:f,desc:p}),this.renderClipPath(),Rd(o,this.renderMap)));this.props.accessibilityLayer&&(m.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,m.role=null!==(n=this.props.role)&&void 0!==n?n:"application",m.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},m.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return s().createElement(IO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s().createElement("div",FP({className:c("recharts-wrapper",a),style:KP({position:"relative",cursor:"default",width:i,height:l},u)},y,{ref:function(t){e.container=t}}),s().createElement(Vv,FP({},m,{width:i,height:l,title:f,desc:p,style:ek}),this.renderClipPath(),Rd(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&BP(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(a.Component);ZP(m,"displayName",t),ZP(m,"defaultProps",KP({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ZP(m,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,a=e.width,i=e.height,s=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var f=lk(e);return KP(KP(KP({},f),{},{updateId:0},h(KP(KP({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:i,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||i!==t.prevHeight||s!==t.prevLayout||l!==t.prevStackOffset||!dd(c,t.prevMargin)){var p=lk(e),m={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},y=KP(KP({},ik(t,r,s)),{},{updateId:t.updateId+1}),g=KP(KP(KP({},p),m),y);return KP(KP(KP({},g),h(KP({props:e},g),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:i,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(!Td(o,t.prevChildren)){var v,b,w,x,O=Md(o,cj),S=O&&null!==(v=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==v?v:u,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:d,P=S!==u||j!==d,k=Wu()(r)||P?t.updateId+1:t.updateId;return KP(KP({updateId:k},h(KP(KP({props:e},t),{},{updateId:k,dataStartIndex:S,dataEndIndex:j}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),ZP(m,"renderActiveDot",(function(e,t,n){var r;return r=(0,a.isValidElement)(e)?(0,a.cloneElement)(e,t):qu()(e)?e(t):s().createElement(VS,t),s().createElement(Ld,{className:"recharts-active-dot",key:n},r)}));var y=(0,a.forwardRef)((function(e,t){return s().createElement(m,FP({},e,{ref:t}))}));return y.displayName=m.displayName,y};function fk(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function pk(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function hk(e){return hk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hk(e)}function mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mk(Object(n),!0).forEach((function(t){gk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gk(e,t,n){var r;return r=function(e){if("object"!=hk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==hk(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vk(e,t,n){var r=e.tick,o=e.ticks,a=e.viewBox,i=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(rd(l)||ef.isSsr)return function(e,t){return fk(e,t+1)}(o,"number"==typeof l&&rd(l)?l:0);var f=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?cf(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var o=qu()(c)?c(e.value,r):e.value;return"width"===p?function(e,t,n){return function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,a=Math.atan(n/t),i=o>a&&o<Math.PI-a?n/Math.sin(o):t/Math.cos(o);return Math.abs(i)}({width:e.width+t.width,height:e.height+t.height},n)}(cf(o,{fontSize:t,letterSpacing:n}),h,d):cf(o,{fontSize:t,letterSpacing:n})[p]},y=o.length>=2?td(o[1].coordinate-o[0].coordinate):1,g=function(e,t,n){var r="width"===n,o=e.x,a=e.y,i=e.width,s=e.height;return 1===t?{start:r?o:a,end:r?o+i:a+s}:{start:r?o+i:a+s,end:r?o:a}}(a,y,p);return"equidistantPreserveStart"===l?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,d=s,f=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:fk(r,u)};var a,i=c,f=function(){return void 0===a&&(a=n(t,i)),a},p=t.coordinate,h=0===c||pk(e,p,f,d,l);h||(c=0,d=s,u+=1),h&&(d=p+e*(f()/2+o),c+=u)};u<=i.length;)if(a=f())return a.v;return[]}(y,g,m,o,i):(f="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,o,a){var i=(r||[]).slice(),s=i.length,l=t.start,c=t.end;if(a){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-c);i[s-1]=u=yk(yk({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),pk(e,u.tickCoord,(function(){return d}),l,c)&&(c=u.tickCoord-e*(d/2+o),i[s-1]=yk(yk({},u),{},{isShow:!0}))}for(var p=a?s-1:s,h=function(t){var r,a=i[t],s=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*s()/2-l);i[t]=a=yk(yk({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=yk(yk({},a),{},{tickCoord:a.coordinate});pk(e,a.tickCoord,s,l,c)&&(l=a.tickCoord+e*(s()/2+o),i[t]=yk(yk({},a),{},{isShow:!0}))},m=0;m<p;m++)h(m);return i}(y,g,m,o,i,"preserveStartEnd"===l):function(e,t,n,r,o){for(var a=(r||[]).slice(),i=a.length,s=t.start,l=t.end,c=function(t){var r,c=a[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===i-1){var d=e*(c.coordinate+e*u()/2-l);a[t]=c=yk(yk({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else a[t]=c=yk(yk({},c),{},{tickCoord:c.coordinate});pk(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+o),a[t]=yk(yk({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(y,g,m,o,i),f.filter((function(e){return e.isShow})))}var bk=["viewBox"],wk=["viewBox"],xk=["ticks"];function Ok(e){return Ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ok(e)}function Sk(){return Sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sk.apply(this,arguments)}function jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jk(Object(n),!0).forEach((function(t){_k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ek(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ak(r.key),r)}}function Ck(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ck=function(){return!!e})()}function Mk(e){return Mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mk(e)}function Dk(e,t){return Dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dk(e,t)}function _k(e,t,n){return(t=Ak(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ak(e){var t=function(e){if("object"!=Ok(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ok(t)?t:t+""}var Tk=function(e){function t(e){var n,r,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=this,o=t,a=[e],o=Mk(o),n=function(e,t){if(t&&("object"===Ok(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,Ck()?Reflect.construct(o,a||[],Mk(r).constructor):o.apply(r,a))).state={fontSize:"",letterSpacing:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dk(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=kk(e,bk),o=this.props,a=o.viewBox,i=kk(o,wk);return!dd(n,a)||!dd(r,i)||!dd(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,a,i,s=this.props,l=s.x,c=s.y,u=s.width,d=s.height,f=s.orientation,p=s.tickSize,h=s.mirror,m=s.tickMargin,y=h?-1:1,g=e.tickSize||p,v=rd(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,i=(r=(o=c+ +!h*d)-y*g)-y*m,a=v;break;case"left":r=o=e.coordinate,a=(t=(n=l+ +!h*u)-y*g)-y*m,i=v;break;case"right":r=o=e.coordinate,a=(t=(n=l+ +h*u)+y*g)+y*m,i=v;break;default:t=n=e.coordinate,i=(r=(o=c+ +h*d)+y*g)+y*m,a=v}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:a,y:i}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,i=e.mirror,l=e.axisLine,u=Pk(Pk(Pk({},Ad(this.props,!1)),Ad(l,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var d=+("top"===a&&!i||"bottom"===a&&i);u=Pk(Pk({},u),{},{x1:t,y1:n+d*o,x2:t+r,y2:n+d*o})}else{var f=+("left"===a&&!i||"right"===a&&i);u=Pk(Pk({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s().createElement("line",Sk({},u,{className:c("recharts-cartesian-axis-line",Hu()(l,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,a=this.props,i=a.tickLine,l=a.stroke,u=a.tick,d=a.tickFormatter,f=a.unit,p=vk(Pk(Pk({},this.props),{},{ticks:e}),n,r),h=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),y=Ad(this.props,!1),g=Ad(u,!1),v=Pk(Pk({},y),{},{fill:"none"},Ad(i,!1)),b=p.map((function(e,n){var r=o.getTickLineCoord(e),a=r.line,b=r.tick,w=Pk(Pk(Pk(Pk({textAnchor:h,verticalAnchor:m},y),{},{stroke:"none",fill:l},g),b),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:d});return s().createElement(Ld,Sk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},vd(o.props,e,n)),i&&s().createElement("line",Sk({},v,a,{className:c("recharts-cartesian-axis-tick-line",Hu()(i,"className"))})),u&&t.renderTickItem(u,w,"".concat(qu()(d)?d(e.value,n):e.value).concat(f||"")))}));return s().createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,i=t.className;if(t.hide)return null;var l=this.props,u=l.ticks,d=kk(l,xk),f=u;return qu()(a)&&(f=u&&u.length>0?a(this.props):a(d)),r<=0||o<=0||!f||!f.length?null:s().createElement(Ld,{className:c("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Jf.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,t,n){return s().isValidElement(e)?s().cloneElement(e,t):qu()(e)?e(t):s().createElement(If,Sk({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&Ek(n.prototype,r),o&&Ek(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.Component);function Nk(e){return Nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nk(e)}function Rk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zk(r.key),r)}}function Ik(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ik=function(){return!!e})()}function $k(e){return $k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$k(e)}function Lk(e,t){return Lk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lk(e,t)}function Fk(e,t,n){return(t=zk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zk(e){var t=function(e){if("object"!=Nk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nk(t)?t:t+""}function Wk(){return Wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wk.apply(this,arguments)}function Bk(e){var t=e.xAxisId,n=FO(),r=zO(),o=$O(t);return null==o?null:s().createElement(Tk,Wk({},o,{className:c("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return xw(e,!0)}}))}_k(Tk,"displayName","CartesianAxis"),_k(Tk,"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 Hk=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=$k(n=t),function(e,t){if(t&&("object"===Nk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ik()?Reflect.construct(n,r||[],$k(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lk(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(Bk,this.props)}}])&&Rk(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);function Yk(e){return Yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yk(e)}function Uk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kk(r.key),r)}}function Vk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vk=function(){return!!e})()}function qk(e){return qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qk(e)}function Gk(e,t){return Gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gk(e,t)}function Xk(e,t,n){return(t=Kk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kk(e){var t=function(e){if("object"!=Yk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yk(t)?t:t+""}function Zk(){return Zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zk.apply(this,arguments)}Fk(Hk,"displayName","XAxis"),Fk(Hk,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var Qk=function(e){var t=e.yAxisId,n=FO(),r=zO(),o=LO(t);return null==o?null:s().createElement(Tk,Zk({},o,{className:c("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return xw(e,!0)}}))},Jk=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=qk(n=t),function(e,t){if(t&&("object"===Yk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vk()?Reflect.construct(n,r||[],qk(e).constructor):n.apply(e,r));var e,n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gk(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s().createElement(Qk,this.props)}}])&&Uk(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s().Component);Xk(Jk,"displayName","YAxis"),Xk(Jk,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var eE=dk({chartName:"BarChart",GraphicalChild:sO,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Hk},{axisType:"yAxis",AxisComp:Jk}],formatAxisMap:xO}),tE=["x1","y1","x2","y2","key"],nE=["offset"];function rE(e){return rE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rE(e)}function oE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oE(Object(n),!0).forEach((function(t){iE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iE(e,t,n){var r;return r=function(e){if("object"!=rE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rE(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sE(){return sE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sE.apply(this,arguments)}function lE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cE=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.ry;return s().createElement("rect",{x:r,y:o,ry:l,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function uE(e,t){var n;if(s().isValidElement(e))n=s().cloneElement(e,t);else if(qu()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,c=lE(t,tE),u=Ad(c,!1),d=(u.offset,lE(u,nE));n=s().createElement("line",sE({},d,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function dE(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map((function(r,a){var i=aE(aE({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a});return uE(o,i)}));return s().createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function fE(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map((function(r,a){var i=aE(aE({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a});return uE(o,i)}));return s().createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function pE(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,c=e.horizontal;if(void 0!==c&&!c||!t||!t.length)return null;var u=l.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var d=u.map((function(e,l){var c=u[l+1]?u[l+1]-e:o+i-e;if(c<=0)return null;var d=l%t.length;return s().createElement("rect",{key:"react-".concat(l),y:e,x:r,height:c,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return s().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function hE(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,o=e.fillOpacity,a=e.x,i=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==d[0]&&d.unshift(0);var f=d.map((function(e,t){var n=d[t+1]?d[t+1]-e:a+l-e;if(n<=0)return null;var u=t%r.length;return s().createElement("rect",{key:"react-".concat(t),x:e,y:i,width:n,height:c,stroke:"none",fill:r[u],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return s().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var mE=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return ww(vk(aE(aE(aE({},Tk.defaultProps),n),{},{ticks:xw(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},yE=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return ww(vk(aE(aE(aE({},Tk.defaultProps),n),{},{ticks:xw(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},gE={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function vE(e){var t,n,r,o,i,l,c,u,d=FO(),f=zO(),p=(0,a.useContext)(AO),h=aE(aE({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:gE.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:gE.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:gE.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:gE.horizontalFill,vertical:null!==(i=e.vertical)&&void 0!==i?i:gE.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:gE.verticalFill,x:rd(e.x)?e.x:p.left,y:rd(e.y)?e.y:p.top,width:rd(e.width)?e.width:p.width,height:rd(e.height)?e.height:p.height}),m=h.x,y=h.y,g=h.width,v=h.height,b=h.syncWithTicks,w=h.horizontalValues,x=h.verticalValues,O=(c=(0,a.useContext)(MO),ld(c)),S=(u=(0,a.useContext)(DO),kO()(u,(function(e){return hO()(e.domain,Number.isFinite)}))||ld(u));if(!rd(g)||g<=0||!rd(v)||v<=0||!rd(m)||m!==+m||!rd(y)||y!==+y)return null;var j=h.verticalCoordinatesGenerator||mE,P=h.horizontalCoordinatesGenerator||yE,k=h.horizontalPoints,E=h.verticalPoints;if((!k||!k.length)&&qu()(P)){var C=w&&w.length,M=P({yAxis:S?aE(aE({},S),{},{ticks:C?w:S.ticks}):void 0,width:d,height:f,offset:p},!!C||b);Hv(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(rE(M),"]")),Array.isArray(M)&&(k=M)}if((!E||!E.length)&&qu()(j)){var D=x&&x.length,_=j({xAxis:O?aE(aE({},O),{},{ticks:D?x:O.ticks}):void 0,width:d,height:f,offset:p},!!D||b);Hv(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(rE(_),"]")),Array.isArray(_)&&(E=_)}return s().createElement("g",{className:"recharts-cartesian-grid"},s().createElement(cE,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),s().createElement(dE,sE({},h,{offset:p,horizontalPoints:k,xAxis:O,yAxis:S})),s().createElement(fE,sE({},h,{offset:p,verticalPoints:E,xAxis:O,yAxis:S})),s().createElement(pE,sE({},h,{horizontalPoints:k})),s().createElement(hE,sE({},h,{verticalPoints:E})))}function bE(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function wE(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){const e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(e):e.startsWith("rgb")?function(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o||1}}(e):e.startsWith("hsl")?function(e){const t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};const n=parseInt(t[1],10),r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,i=(1-Math.abs(2*o-1))*r,s=n/60,l=i*(1-Math.abs(s%2-1)),c=o-i/2;let u,d,f;return s>=0&&s<1?(u=i,d=l,f=0):s>=1&&s<2?(u=l,d=i,f=0):s>=2&&s<3?(u=0,d=i,f=l):s>=3&&s<4?(u=0,d=l,f=i):s>=4&&s<5?(u=l,d=0,f=i):(u=i,d=0,f=l),{r:Math.round(255*(u+c)),g:Math.round(255*(d+c)),b:Math.round(255*(f+c)),a:a||1}}(e):{r:0,g:0,b:0,a:1}}function xE(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function OE(e,t=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch("))return(function(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;const{r:t,g:n,b:r}=wE(e),o=n/255,a=r/255;return.2126*xE(t/255)+.7152*xE(o)+.0722*xE(a)}(e)>t}function SE({color:e,theme:t,colorScheme:n}){if("string"!=typeof e)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got "+typeof e);if("bright"===e)return{color:e,value:"dark"===n?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:OE("dark"===n?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===n?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:OE("dark"===n?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:OE("white"===e?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),a=o?Number(o):void 0,i=r in t.colors;if(i){const e=void 0!==a?t.colors[r][a]:t.colors[r][bE(t,n||"light")];return{color:r,value:e,shade:a,isThemeColor:i,isLight:OE(e,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:i,isLight:OE(e,t.luminanceThreshold),shade:a,variable:void 0}}function jE(e,t){const n=SE({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function PE(e){return e}function kE(e){const t=(0,a.forwardRef)(e);return t.extend=PE,t.withProps=e=>{const n=(0,a.forwardRef)(((n,r)=>(0,Xr.jsx)(t,{...e,...n,ref:r})));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function EE(e){return Object.keys(e).reduce(((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t)),{})}function CE(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function ME(e,{shouldScale:t=!1}={}){return function n(r){if(0===r||"0"===r)return`0${e}`;if("number"==typeof r){const n=`${r/16}${e}`;return t?CE(n):n}if("string"==typeof r){if(""===r)return r;if(r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map((e=>n(e))).join(",");if(r.includes(" "))return r.split(" ").map((e=>n(e))).join(" ");if(r.includes(e))return t?CE(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const n=`${Number(o)/16}${e}`;return t?CE(n):n}}return r}}vE.displayName="CartesianGrid";const DE=ME("rem",{shouldScale:!0}),_E=ME("em");function AE(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;const{r:n,g:r,b:o,a}=wE(e),i=1-t,s=e=>Math.round(e*i);return`rgba(${s(n)}, ${s(r)}, ${s(o)}, ${a})`}function TE(e,t){const n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=jE(n.from,t),o=jE(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function NE(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${100*(1-t)}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=wE(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const RE=NE,IE="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",$E={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const a=SE({color:e,theme:t}),i="boolean"==typeof o?o:t.autoContrast;if("filled"===n){const t=i&&a.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return a.isThemeColor?void 0===a.shade?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${DE(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${9===a.shade?8:a.shade+1})`,color:t,border:`${DE(1)} solid transparent`}:{background:e,hover:AE(e,.1),color:t,border:`${DE(1)} solid transparent`}}if("light"===n){if(a.isThemeColor){if(void 0===a.shade)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${DE(1)} solid transparent`};const n=t.colors[a.color][a.shade];return{background:NE(n,.1),hover:NE(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${DE(1)} solid transparent`}}return{background:NE(e,.1),hover:NE(e,.12),color:e,border:`${DE(1)} solid transparent`}}return"outline"===n?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${DE(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:NE(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${DE(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:NE(e,.05),color:e,border:`${DE(1)} solid ${e}`}:"subtle"===n?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:NE(t.colors[a.color][a.shade],.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:NE(e,.12),color:e,border:`${DE(1)} solid transparent`}:"transparent"===n?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${DE(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${DE(1)} solid transparent`}:"white"===n?a.isThemeColor?void 0===a.shade?{background:"var(--mantine-color-white)",hover:AE(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${DE(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:AE(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${DE(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:AE(t.white,.01),color:e,border:`${DE(1)} solid transparent`}:"gradient"===n?{background:TE(r,t),hover:TE(r,t),color:"var(--mantine-color-white)",border:"none"}:"default"===n?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${DE(1)} solid var(--mantine-color-default-border)`}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:IE,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:IE,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:DE(34),lineHeight:"1.3"},h2:{fontSize:DE(26),lineHeight:"1.35"},h3:{fontSize:DE(22),lineHeight:"1.4"},h4:{fontSize:DE(18),lineHeight:"1.45"},h5:{fontSize:DE(16),lineHeight:"1.5"},h6:{fontSize:DE(14),lineHeight:"1.5"}}},fontSizes:{xs:DE(12),sm:DE(14),md:DE(16),lg:DE(18),xl:DE(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:DE(2),sm:DE(4),md:DE(8),lg:DE(16),xl:DE(32)},spacing:{xs:DE(10),sm:DE(12),md:DE(16),lg:DE(20),xl:DE(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), 0 ${DE(1)} ${DE(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(10)} ${DE(15)} ${DE(-5)}, rgba(0, 0, 0, 0.04) 0 ${DE(7)} ${DE(7)} ${DE(-5)}`,md:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(20)} ${DE(25)} ${DE(-5)}, rgba(0, 0, 0, 0.04) 0 ${DE(10)} ${DE(10)} ${DE(-5)}`,lg:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(28)} ${DE(23)} ${DE(-7)}, rgba(0, 0, 0, 0.04) 0 ${DE(12)} ${DE(12)} ${DE(-7)}`,xl:`0 ${DE(1)} ${DE(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${DE(36)} ${DE(28)} ${DE(-7)}, rgba(0, 0, 0, 0.04) 0 ${DE(17)} ${DE(17)} ${DE(-7)}`},other:{},components:{}};function LE(e){return e&&"object"==typeof e&&!Array.isArray(e)}function FE(e,t){const n={...e},r=t;return LE(e)&&LE(t)&&Object.keys(t).forEach((t=>{LE(r[t])?n[t]=t in e?FE(n[t],r[t]):r[t]:n[t]=r[t]})),n}const zE="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function WE(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function BE(e){if(!(e.primaryColor in e.colors))throw new Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");if(!("object"!=typeof e.primaryShade||WE(e.primaryShade.dark)&&WE(e.primaryShade.light)))throw new Error(zE);if("number"==typeof e.primaryShade&&!WE(e.primaryShade))throw new Error(zE)}const HE=(0,a.createContext)(null);function YE(){const e=(0,a.useContext)(HE);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function UE({theme:e,children:t,inherit:n=!0}){const r=(0,a.useContext)(HE)||$E,o=(0,a.useMemo)((()=>function(e,t){if(!t)return BE(e),e;const n=FE(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),BE(n),n}(n?r:$E,e)),[e,r,n]);return(0,Xr.jsx)(HE.Provider,{value:o,children:t})}function VE(e,t,n){const r=YE(),o=r.components[e]?.defaultProps;return{...t,..."function"==typeof o?o(r):o,...EE(n)}}UE.displayName="@mantine/core/MantineThemeProvider";const qE={};function GE({theme:e,classNames:t,props:n,stylesCtx:r}){return function(e){const t={};return e.forEach((e=>{Object.entries(e).forEach((([e,n])=>{t[e]?t[e]=c(t[e],n):t[e]=n}))})),t}((Array.isArray(t)?t:[t]).map((t=>"function"==typeof t?t(e,n,r):t||qE)))}function XE({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce(((t,o)=>"function"==typeof o?{...t,...o(e,n,r)}:{...t,...o}),{})}function KE({classNames:e,styles:t,props:n,stylesCtx:r}){const o=YE();return{resolvedClassNames:GE({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:XE({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const ZE=(0,a.createContext)(null);function QE(){const e=(0,a.useContext)(ZE);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function JE(){return QE().getStyleNonce}function eC(){return QE().env||"default"}const tC={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function nC({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return GE({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function rC({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:a,classes:i,unstyled:s,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:h,transformedStyles:m}){return c(function({theme:e,options:t,unstyled:n}){return c(t?.focusable&&!n&&(e.focusClassName||tC[e.focusRing]),t?.active&&!n&&e.activeClassName)}({theme:e,options:t,unstyled:s||h}),function({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map((e=>GE({theme:t,classNames:t.components[e]?.classNames,props:r,stylesCtx:o})?.[n]))}({theme:e,themeName:n,selector:r,props:d,stylesCtx:f}),function({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}({options:t,classes:i,selector:r,unstyled:s}),nC({selector:r,stylesCtx:f,theme:e,classNames:a,props:d}),nC({selector:r,stylesCtx:f,theme:e,classNames:m,props:d}),function({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return GE({theme:o,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}({selector:r,stylesCtx:f,options:t,props:d,theme:e}),function({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}({rootSelector:u,selector:r,className:l}),function({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}({selector:r,classes:i,unstyled:s||h}),p&&!h&&function({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return!1===r?[]:e.map((e=>`${t}-${e}-${n}`))}({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function oC({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map((t=>XE({theme:e,styles:e.components[t]?.styles,props:n,stylesCtx:r})[o])).reduce(((e,t)=>({...e,...t})),{})}function aC({style:e,theme:t}){return Array.isArray(e)?[...e].reduce(((e,n)=>({...e,...aC({style:n,theme:t})})),{}):"function"==typeof e?e(t):null==e?{}:e}function iC({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:a,themeName:i,headless:s}){return function(e){return e.reduce(((e,t)=>(t&&Object.keys(t).forEach((n=>{e[n]={...e[n],...EE(t[n])}})),e)),{})}([s?{}:t?.(n,r,o),...i.map((e=>n.components?.[e]?.vars?.(n,r,o))),e?.(n,r,o)])?.[a]}function sC({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:a,rootSelector:i,styles:s,style:l,vars:c,varsResolver:u,headless:d,withStylesTransform:f}){return{...!f&&oC({theme:e,themeName:t,props:o,stylesCtx:a,selector:n}),...!f&&XE({theme:e,styles:s,props:o,stylesCtx:a})[n],...!f&&XE({theme:e,styles:r?.styles,props:r?.props||o,stylesCtx:a})[n],...iC({theme:e,props:o,stylesCtx:a,vars:c,varsResolver:u,selector:n,themeName:t,headless:d}),...i===n?aC({style:l,theme:e}):null,...aC({style:r?.style,theme:e})}}function lC({name:e,classes:t,props:n,stylesCtx:r,className:o,style:a,rootSelector:i="root",unstyled:s,classNames:l,styles:c,vars:u,varsResolver:d}){const f=YE(),p=QE().classNamesPrefix,h=QE().withStaticClasses,m=QE().headless,y=(Array.isArray(e)?e:[e]).filter((e=>e)),{withStylesTransform:g,getTransformedStyles:v}=function({props:e,stylesCtx:t,themeName:n}){const r=YE(),o=(QE().stylesTransform?.styles)?.();return{getTransformedStyles:a=>o?[...a.map((n=>o(n,{props:e,theme:r,ctx:t}))),...n.map((n=>o(r.components[n]?.styles,{props:e,theme:r,ctx:t})))].filter(Boolean):[],withStylesTransform:!!o}}({props:n,stylesCtx:r,themeName:y});return(e,b)=>({className:rC({theme:f,options:b,themeName:y,selector:e,classNamesPrefix:p,classNames:l,classes:t,unstyled:s,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:h,headless:m,transformedStyles:v([b?.styles,c])}),style:sC({theme:f,themeName:y,selector:e,options:b,props:n,stylesCtx:r,rootSelector:i,styles:c,style:a,vars:u,varsResolver:d,headless:m,withStylesTransform:g})})}function cC(e){return Object.keys(e)}function uC(e){return cC(e).reduce(((t,n)=>void 0!==e[n]?`${t}${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}(n)}:${e[n]};`:t),"").trim()}function dC({selector:e,styles:t,media:n,container:r}){const o=t?uC(t):"",a=Array.isArray(n)?n.map((t=>`@media${t.query}{${e}{${uC(t.styles)}}}`)):[],i=Array.isArray(r)?r.map((t=>`@container ${t.query}{${e}{${uC(t.styles)}}}`)):[];return`${o?`${e}{${o}}`:""}${a.join("")}${i.join("")}`.trim()}function fC(e){const t=JE();return(0,Xr.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:dC(e)}})}function pC(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every((e=>t.test(e)))}return!1}function hC(e){return e.startsWith("data-")?e:`data-${e}`}function mC(e){return e?"string"==typeof e?{[hC(e)]:!0}:Array.isArray(e)?[...e].reduce(((e,t)=>({...e,...mC(t)})),{}):(t=e,Object.keys(t).reduce(((e,n)=>{const r=t[n];return void 0===r||""===r||!1===r||null===r||(e[hC(n)]=t[n]),e}),{})):null;var t}function yC(e,t){return Array.isArray(e)?[...e].reduce(((e,n)=>({...e,...yC(n,t)})),{}):"function"==typeof e?e(t):null==e?{}:e}function gC({theme:e,style:t,vars:n,styleProps:r}){return{...yC(t,e),...yC(n,e),...r}}function vC(e){const{m:t,mx:n,my:r,mt:o,mb:a,ml:i,mr:s,me:l,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:g,ps:v,bd:b,bg:w,c:x,opacity:O,ff:S,fz:j,fw:P,lts:k,ta:E,lh:C,fs:M,tt:D,td:_,w:A,miw:T,maw:N,h:R,mih:I,mah:$,bgsz:L,bgp:F,bgr:z,bga:W,pos:B,top:H,left:Y,bottom:U,right:V,inset:q,display:G,flex:X,hiddenFrom:K,visibleFrom:Z,lightHidden:Q,darkHidden:J,sx:ee,...te}=e;return{styleProps:EE({m:t,mx:n,my:r,mt:o,mb:a,ml:i,mr:s,me:l,ms:c,p:u,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:g,ps:v,bd:b,bg:w,c:x,opacity:O,ff:S,fz:j,fw:P,lts:k,ta:E,lh:C,fs:M,tt:D,td:_,w:A,miw:T,maw:N,h:R,mih:I,mah:$,bgsz:L,bgp:F,bgr:z,bga:W,pos:B,top:H,left:Y,bottom:U,right:V,inset:q,display:G,flex:X,hiddenFrom:K,visibleFrom:Z,lightHidden:Q,darkHidden:J,sx:ee}),rest:te}}const bC={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function wC(e,t){const n=SE({color:e,theme:t});return"dimmed"===n.color?"var(--mantine-color-dimmed)":"bright"===n.color?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}const xC={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},OC=["h1","h2","h3","h4","h5","h6"],SC=["h1","h2","h3","h4","h5","h6"],jC={color:wC,textColor:function(e,t){const n=SE({color:e,theme:t});return n.isThemeColor&&void 0===n.shade?`var(--mantine-color-${n.color}-text)`:wC(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&OC.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?DE(e):e},spacing:function(e,t){if("number"==typeof e)return DE(e);if("string"==typeof e){const n=e.replace("-","");if(!(n in t.spacing))return DE(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?DE(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&SC.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in xC?xC[e]:e},border:function(e,t){if("number"==typeof e)return DE(e);if("string"==typeof e){const[n,r,...o]=e.split(" ").filter((e=>""!==e.trim()));let a=`${DE(n)}`;return r&&(a+=` ${r}`),o.length>0&&(a+=` ${wC(o.join(" "),t)}`),a.trim()}return e}};function PC(e){return e.replace("(min-width: ","").replace("em)","")}function kC(e,t){return"object"==typeof e&&null!==e&&t in e?e[t]:e}function EC(){return`__m__-${(0,a.useId)().replace(/:/g,"")}`}const CC=(0,a.forwardRef)((({component:e,style:t,__vars:n,className:r,variant:o,mod:a,size:i,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:d,renderRoot:f,__size:p,...h},m)=>{const y=YE(),g=e||"div",{styleProps:v,rest:b}=vC(h),w=QE().stylesTransform?.sx,x=w?.()?.(v.sx),O=EC(),S=function({styleProps:e,data:t,theme:n}){return function({media:e,...t}){const n=Object.keys(e).sort(((e,t)=>Number(PC(e))-Number(PC(t)))).map((t=>({query:t,styles:e[t]})));return{...t,media:n}}(cC(e).reduce(((r,o)=>{if("hiddenFrom"===o||"visibleFrom"===o||"sx"===o)return r;const a=t[o],i=Array.isArray(a.property)?a.property:[a.property],s=function(e){return"object"==typeof e&&null!==e?"base"in e?e.base:void 0:e}(e[o]);if(!function(e){if("object"!=typeof e||null===e)return!1;const t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(e[o]))return i.forEach((e=>{r.inlineStyles[e]=jC[a.type](s,n)})),r;r.hasResponsiveStyles=!0;const l=function(e){return"object"==typeof e&&null!==e?cC(e).filter((e=>"base"!==e)):[]}(e[o]);return i.forEach((t=>{s&&(r.styles[t]=jC[a.type](s,n)),l.forEach((i=>{const s=`(min-width: ${n.breakpoints[i]})`;r.media[s]={...r.media[s],[t]:jC[a.type](kC(e[o],i),n)}}))})),r}),{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:v,theme:y,data:bC}),j={ref:m,style:gC({theme:y,style:t,vars:n,styleProps:S.inlineStyles}),className:c(r,x,{[O]:S.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":o,"data-size":pC(i)?void 0:i||void 0,size:p,...mC(a),...b};return(0,Xr.jsxs)(Xr.Fragment,{children:[S.hasResponsiveStyles&&(0,Xr.jsx)(fC,{selector:`.${O}`,styles:S.styles,media:S.media}),"function"==typeof f?f(j):(0,Xr.jsx)(g,{...j})]})}));CC.displayName="@mantine/core/Box";const MC=CC;function DC(e,t="size",n=!0){if(void 0!==e)return pC(e)?n?DE(e):e:`var(--${t}-${e})`}function _C(e){return DC(e,"mantine-spacing")}function AC(e){return void 0===e?"var(--mantine-radius-default)":DC(e,"mantine-radius")}function TC(e){return DC(e,"mantine-font-size")}function NC(e){return DC(e,"mantine-line-height",!1)}function RC(e){if(e)return DC(e,"mantine-shadow",!1)}function IC(e){const t=(0,a.forwardRef)(e);return t.withProps=e=>{const n=(0,a.forwardRef)(((n,r)=>(0,Xr.jsx)(t,{...e,...n,ref:r})));return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=PE,t}var $C={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const LC={withShadow:!0},FC=(e,{radius:t,size:n})=>({root:{"--cs-radius":void 0===t?void 0:AC(t),"--cs-size":DE(n)}}),zC=IC(((e,t)=>{const n=VE("ColorSwatch",LC,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,color:c,size:u,radius:d,withShadow:f,children:p,variant:h,...m}=VE("ColorSwatch",LC,n),y=lC({name:"ColorSwatch",props:n,classes:$C,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:FC});return(0,Xr.jsxs)(MC,{ref:t,variant:h,size:u,...y("root",{focusable:!0}),...m,children:[(0,Xr.jsx)("span",{...y("alphaOverlay")}),f&&(0,Xr.jsx)("span",{...y("shadowOverlay")}),(0,Xr.jsx)("span",{...y("colorOverlay",{style:{backgroundColor:c}})}),(0,Xr.jsx)("span",{...y("childrenOverlay"),children:p})]})}));function WC(e){return e?e.reduce(((e,t)=>{const n=t.name.search(/\./);return n>=0?(e[t.name.substring(n+1)]=t.label,e):(e[t.name]=t.label,e)}),{}):{}}zC.classes=$C,zC.displayName="@mantine/core/ColorSwatch";var BC={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};const HC={},YC=kE(((e,t)=>{const n=VE("ChartLegend",HC,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,payload:c,onHighlight:u,legendPosition:d,mod:f,series:p,showColor:h,centered:m,...y}=n,g=lC({name:"ChartLegend",classes:BC,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s});if(!c)return null;const v=function(e){return function(e){return e.map((e=>{const t=e.dataKey?.split(".").pop();return{...e,dataKey:t,payload:{...e.payload,name:t,dataKey:t}}}))}(e.filter((e=>"none"!==e.color)))}(c),b=WC(p),w=v.map(((e,t)=>(0,Xr.jsxs)("div",{...g("legendItem"),onMouseEnter:()=>u(e.dataKey),onMouseLeave:()=>u(null),"data-without-color":!1===h||void 0,children:[(0,Xr.jsx)(zC,{color:e.color,size:12,...g("legendItemColor"),withShadow:!1}),(0,Xr.jsx)("p",{...g("legendItemName"),children:b[e.dataKey]||e.dataKey})]},t)));return(0,Xr.jsx)(MC,{ref:t,mod:[{position:d,centered:m},f],...g("legend"),...y,children:w})}));YC.displayName="@mantine/charts/ChartLegend";var UC={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function VC(e,t){return"radial"===t||"scatter"===t?Array.isArray(e.value)?e.value[1]-e.value[0]:e.value:Array.isArray(e.payload[e.dataKey])?e.payload[e.dataKey][1]-e.payload[e.dataKey][0]:e.payload[e.name]}const qC={type:"area",showColor:!0},GC=kE(((e,t)=>{const n=VE("ChartTooltip",qC,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,payload:c,label:u,unit:d,type:f,segmentId:p,mod:h,series:m,valueFormatter:y,showColor:g,...v}=n,b=YE(),w=lC({name:"ChartTooltip",classes:UC,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s});if(!c)return null;const x=function(e,t){const n=function(e){return e.map((e=>{if(!e.payload||e.payload[e.name])return e;const t=e.name.search(/\./);if(t>=0){const n=e.name.substring(0,t),r={...e.payload[n]},o=Object.entries(e.payload).reduce(((e,t)=>{const[r,o]=t;return r===n?e:{...e,[r]:o}}),{});return{...e,name:e.name.substring(t+1),payload:{...o,...r}}}return e}))}(e.filter((e=>"none"!==e.fill||!e.color)));return t?n.filter((e=>e.name===t)):n}(c,p),O="scatter"===f?c[0]?.payload?.name:null,S=WC(m),j=u||O,P=x.map((e=>(0,Xr.jsxs)("div",{"data-type":f,...w("tooltipItem"),children:[(0,Xr.jsxs)("div",{...w("tooltipItemBody"),children:[g&&(0,Xr.jsx)("svg",{...w("tooltipItemColor"),children:(0,Xr.jsx)("circle",{r:6,fill:jE(e.color,b),width:12,height:12,cx:6,cy:6})}),(0,Xr.jsx)("div",{...w("tooltipItemName"),children:S[e.name]||e.name})]}),(0,Xr.jsxs)("div",{...w("tooltipItemData"),children:["function"==typeof y?y(VC(e,f)):VC(e,f),d||e.unit]})]},e?.key??e.name)));return(0,Xr.jsxs)(MC,{...w("tooltip"),mod:[{type:f},h],ref:t,...v,children:[j&&(0,Xr.jsx)("div",{...w("tooltipLabel"),children:j}),(0,Xr.jsx)("div",{...w("tooltipBody"),children:P})]})}));GC.displayName="@mantine/charts/ChartTooltip";var XC={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"};function KC(e){return`${(100*e).toFixed(0)}%`}const ZC={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"},QC=(e,{textColor:t,gridColor:n,cursorFill:r,barLabelColor:o})=>({root:{"--chart-text-color":t?jE(t,e):void 0,"--chart-grid-color":n?jE(n,e):void 0,"--chart-cursor-fill":r?jE(r,e):void 0,"--chart-bar-label-color":o?jE(o,e):void 0}}),JC=kE(((e,t)=>{const n=VE("BarChart",ZC,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,data:u,withLegend:d,legendProps:f,series:p,onMouseLeave:h,dataKey:m,withTooltip:y,withXAxis:g,withYAxis:v,gridAxis:b,tickLine:w,xAxisProps:x,yAxisProps:O,unit:S,tooltipAnimationDuration:j,strokeDasharray:P,gridProps:k,tooltipProps:E,referenceLines:C,fillOpacity:M,barChartProps:D,type:_,orientation:A,dir:T,valueFormatter:N,children:R,barProps:I,xAxisLabel:$,yAxisLabel:L,withBarValueLabel:F,valueLabelProps:z,withRightYAxis:W,rightYAxisLabel:B,rightYAxisProps:H,minBarSize:Y,maxBarWidth:U,mod:V,getBarColor:q,gridColor:G,textColor:X,...K}=n,Z=YE(),Q="none"!==b&&("x"===w||"xy"===w),J="none"!==b&&("y"===w||"xy"===w),[ee,te]=(0,a.useState)(null),ne=null!==ee,re="stacked"===_||"percent"===_,oe="percent"===_?KC:N,{resolvedClassNames:ae,resolvedStyles:ie}=KE({classNames:r,styles:s,props:n}),se="waterfall"===_?function(e,t){let n=0,r=0;return e.map((e=>{if(e.standalone)for(const n in e)"number"==typeof e[n]&&n!==t&&(e[n]=[0,e[n]]);else for(const o in e)"number"==typeof e[o]&&o!==t&&(r+=e[o],e[o]=[n,r],n=r);return e}))}(u,m):u,le=lC({name:"BarChart",classes:XC,props:n,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:QC}),ce=p.map((e=>{const t=jE(e.color,Z),n=ne&&ee!==e.name;return(0,a.createElement)(sO,{...le("bar"),key:e.name,name:e.name,dataKey:e.name,fill:t,stroke:t,isAnimationActive:!1,fillOpacity:n?.1:M,strokeOpacity:n?.2:0,stackId:re?"stack":e.stackId||void 0,yAxisId:e.yAxisId||"left",minPointSize:Y,..."function"==typeof I?I(e):I},se.map(((n,r)=>{const o=n.color?jE(n.color,Z):"function"==typeof q?jE(q(n[e.name],e),Z):function(e,t){return"function"==typeof e?e(t).fill:e?.fill}(I,e)||t;return(0,Xr.jsx)(Zd,{fill:o},`cell-${r}`)})),F&&(0,Xr.jsx)(Vw,{position:"vertical"===A?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:oe,..."function"==typeof z?z(e):z}))})),ue=C?.map(((e,t)=>{const n=jE(e.color,Z);return(0,Xr.jsx)(JO,{stroke:e.color?n:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?n:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...le("referenceLine")},t)})),de={axisLine:!1,..."vertical"===A?{dataKey:m,type:"category"}:{type:"number"},tickLine:!!J&&{stroke:"currentColor"},allowDecimals:!0,unit:S,tickFormatter:"vertical"===A?void 0:oe,...le("axis")};return(0,Xr.jsx)(MC,{ref:t,...le("root"),onMouseLeave:e=>{te(null),h?.(e)},dir:T||"ltr",mod:[{orientation:A},V],...K,children:(0,Xr.jsx)(sS,{...le("container"),children:(0,Xr.jsxs)(eE,{data:se,stackOffset:"percent"===_?"expand":void 0,layout:A,maxBarSize:U,margin:{bottom:$?30:void 0,left:L?10:void 0,right:L?5:void 0},...D,children:[d&&(0,Xr.jsx)(nw,{verticalAlign:"top",content:e=>(0,Xr.jsx)(YC,{payload:e.payload,onHighlight:te,legendPosition:f?.verticalAlign||"top",classNames:ae,styles:ie,series:p,showColor:"waterfall"!==_}),...f}),(0,Xr.jsxs)(Hk,{hide:!g,..."vertical"===A?{type:"number"}:{dataKey:m},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Q&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===A?oe:void 0,...le("axis"),...x,children:[$&&(0,Xr.jsx)(Jf,{position:"insideBottom",offset:-20,fontSize:12,...le("axisLabel"),children:$}),x?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!v,...de,...O,children:[L&&(0,Xr.jsx)(Jf,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...le("axisLabel"),children:L}),O?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!W,...de,...H,children:[B&&(0,Xr.jsx)(Jf,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...le("axisLabel"),children:B}),O?.children]}),(0,Xr.jsx)(vE,{strokeDasharray:P,vertical:"y"===b||"xy"===b,horizontal:"x"===b||"xy"===b,...le("grid"),...k}),y&&(0,Xr.jsx)(YS,{animationDuration:j,isAnimationActive:0!==j,position:"vertical"===A?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:P,fill:"var(--chart-cursor-fill)"},content:({label:e,payload:t})=>(0,Xr.jsx)(GC,{label:e,payload:t,type:"waterfall"===_?"scatter":void 0,unit:S,classNames:ae,styles:ie,series:p,valueFormatter:N}),...E}),ce,ue,R]})})})}));JC.displayName="@mantine/charts/BarChart",JC.classes=XC;var eM=["type","layout","connectNulls","ref"],tM=["key"];function nM(e){return nM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nM(e)}function rM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oM(){return oM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oM.apply(this,arguments)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){pM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sM(e){return function(e){if(Array.isArray(e))return lM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lM(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hM(r.key),r)}}function uM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uM=function(){return!!e})()}function dM(e){return dM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dM(e)}function fM(e,t){return fM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fM(e,t)}function pM(e,t,n){return(t=hM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hM(e){var t=function(e){if("object"!=nM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nM(t)?t:t+""}var mM=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return pM((n=this,r=t,o=[].concat(i),r=dM(r),e=function(e,t){if(t&&("object"===nM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,uM()?Reflect.construct(r,o||[],dM(n).constructor):r.apply(n,o))),"state",{isAnimationFinished:!0,totalLength:0}),pM(e,"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),pM(e,"getStrokeDasharray",(function(n,r,o){var a=o.reduce((function(e,t){return e+t}));if(!a)return e.generateSimpleStrokeDasharray(r,n);for(var i=Math.floor(n/a),s=n%a,l=r-n,c=[],u=0,d=0;u<o.length;d+=o[u],++u)if(d+o[u]>s){c=[].concat(sM(o.slice(0,u)),[s-d]);break}var f=c.length%2==0?[0,l]:[l];return[].concat(sM(t.repeat(o,i)),sM(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),pM(e,"id",id("recharts-line-")),pM(e,"pathRef",(function(t){e.mainCurve=t})),pM(e,"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),pM(e,"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fM(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,o=n.xAxis,a=n.yAxis,i=n.layout,l=Cd(n.children,Kd);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:hw(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s().createElement(Ld,u,l.map((function(e){return s().cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,dataPointFormatter:c})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.dot,i=o.points,l=o.dataKey,c=Ad(this.props,!1),u=Ad(a,!0),d=i.map((function(e,n){var r=iM(iM(iM({key:"dot-".concat(n),r:3},c),u),{},{index:n,cx:e.x,cy:e.y,value:e.value,dataKey:l,payload:e.payload,points:i});return t.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return s().createElement(Ld,oM({className:"recharts-line-dots",key:"dots"},f),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,i=o.layout,l=o.connectNulls,c=(o.ref,rM(o,eM)),u=iM(iM(iM({},Ad(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:i,connectNulls:l});return s().createElement(xP,oM({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,i=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,m=this.state,y=m.prevPoints,g=m.totalLength;return s().createElement($u,{begin:l,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t;if(y){var s=y.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=cd(r.x,e.x),a=cd(r.y,e.y);return iM(iM({},e),{},{x:o(i),y:a(i)})}if(f){var l=cd(2*p,e.x),c=cd(h/2,e.y);return iM(iM({},e),{},{x:l(i),y:c(i)})}return iM(iM({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(l,e,t)}var c,u=cd(0,g)(i);if(a){var d="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(u,g,d)}else c=n.generateSimpleStrokeDasharray(g,u);return n.renderCurveStatically(o,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,a=this.state,i=a.prevPoints,s=a.totalLength;return o&&r&&r.length&&(!i&&s>0||!Fu()(i,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,o=t.points,a=t.className,i=t.xAxis,l=t.yAxis,u=t.top,d=t.left,f=t.width,p=t.height,h=t.isAnimationActive,m=t.id;if(n||!o||!o.length)return null;var y=this.state.isAnimationFinished,g=1===o.length,v=c("recharts-line",a),b=i&&i.allowDataOverflow,w=l&&l.allowDataOverflow,x=b||w,O=Wu()(m)?this.id:m,S=null!==(e=Ad(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},j=S.r,P=void 0===j?3:j,k=S.strokeWidth,E=void 0===k?2:k,C=(function(e){return e&&"object"===Od(e)&&"clipDot"in e}(r)?r:{}).clipDot,M=void 0===C||C,D=2*P+E;return s().createElement(Ld,{className:v},b||w?s().createElement("defs",null,s().createElement("clipPath",{id:"clipPath-".concat(O)},s().createElement("rect",{x:b?d:d-f/2,y:w?u:u-p/2,width:b?f:2*f,height:w?p:2*p})),!M&&s().createElement("clipPath",{id:"clipPath-dots-".concat(O)},s().createElement("rect",{x:d-D/2,y:u-D/2,width:f+D,height:p+D}))):null,!g&&this.renderCurve(x,O),this.renderErrorBar(x,O),(g||r)&&this.renderDots(x,M,O),(!h||y)&&Vw.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(sM(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(sM(r),sM(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(s().isValidElement(e))n=s().cloneElement(e,t);else if(qu()(e))n=e(t);else{var r=t.key,o=rM(t,tM),a=c("recharts-line-dot","boolean"!=typeof e?e.className:"");n=s().createElement(VS,oM({key:r},o,{className:a}))}return n}}],r&&cM(n.prototype,r),o&&cM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(a.PureComponent);pM(mM,"displayName","Line"),pM(mM,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ef.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),pM(mM,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,i=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map((function(e,t){var l=hw(e,i);return"horizontal"===u?{x:Ew({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Wu()(l)?null:r.scale(l),value:l,payload:e}:{x:Wu()(l)?null:n.scale(l),y:Ew({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:l,payload:e}}));return iM({points:d,layout:u},c)}));var yM=dk({chartName:"LineChart",GraphicalChild:mM,axisComponents:[{axisType:"xAxis",AxisComp:Hk},{axisType:"yAxis",AxisComp:Jk}],formatAxisMap:xO});const gM="undefined"!=typeof document?a.useLayoutEffect:a.useEffect,vM=a["useId".toString()]||(()=>{});function bM(e){const t=function(){const e=vM();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[n,r]=(0,a.useState)(t);return gM((()=>{r(function(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}())}),[]),"string"==typeof e?e:"undefined"==typeof window?t:n}function wM({x:e,y:t,value:n,valueFormatter:r}){return(0,Xr.jsx)("g",{transform:`translate(${e},${t})`,children:(0,Xr.jsx)("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"top",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:r?r(n):n})})}const xM={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},OM=(e,{textColor:t,gridColor:n})=>({root:{"--chart-text-color":t?jE(t,e):void 0,"--chart-grid-color":n?jE(n,e):void 0}}),SM=kE(((e,t)=>{const n=VE("LineChart",xM,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,data:u,withLegend:d,legendProps:f,series:p,onMouseLeave:h,dataKey:m,withTooltip:y,withXAxis:g,withYAxis:v,gridAxis:b,tickLine:w,xAxisProps:x,yAxisProps:O,unit:S,tooltipAnimationDuration:j,strokeDasharray:P,gridProps:k,tooltipProps:E,referenceLines:C,withDots:M,dotProps:D,activeDotProps:_,strokeWidth:A,lineChartProps:T,connectNulls:N,fillOpacity:R,curveType:I,orientation:$,dir:L,valueFormatter:F,children:z,lineProps:W,xAxisLabel:B,yAxisLabel:H,type:Y,gradientStops:U,withRightYAxis:V,rightYAxisLabel:q,rightYAxisProps:G,withPointLabels:X,...K}=n,Z=YE(),Q="none"!==b&&("x"===w||"xy"===w),J="none"!==b&&("y"===w||"xy"===w),[ee,te]=(0,a.useState)(null),ne=null!==ee,{resolvedClassNames:re,resolvedStyles:oe}=KE({classNames:r,styles:s,props:n}),ae=lC({name:"LineChart",classes:XC,props:n,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:OM}),ie=`line-chart-gradient-${bM()}`,se=U?.map((e=>(0,Xr.jsx)("stop",{offset:`${e.offset}%`,stopColor:jE(e.color,Z)},e.color))),le=p.map((e=>{const t=jE(e.color,Z),n=ne&&ee!==e.name;return(0,a.createElement)(mM,{...ae("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!M&&{fillOpacity:n?0:1,strokeOpacity:n?0:1,strokeWidth:1,fill:"gradient"===Y?"var(--mantine-color-gray-7)":t,stroke:"gradient"===Y?"white":t,...D},activeDot:!!M&&{fill:"gradient"===Y?"var(--mantine-color-gray-7)":t,stroke:"gradient"===Y?"white":t,..._},fill:t,stroke:"gradient"===Y?`url(#${ie})`:t,strokeWidth:A,isAnimationActive:!1,fillOpacity:n?0:R,strokeOpacity:n?.5:R,connectNulls:N,type:I,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:X?(0,Xr.jsx)(wM,{valueFormatter:F}):void 0,..."function"==typeof W?W(e):W})})),ce=C?.map(((e,t)=>{const n=jE(e.color,Z);return(0,Xr.jsx)(JO,{stroke:e.color?n:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?n:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...ae("referenceLine")},t)})),ue={axisLine:!1,..."vertical"===$?{dataKey:m,type:"category"}:{type:"number"},tickLine:!!J&&{stroke:"currentColor"},allowDecimals:!0,unit:S,tickFormatter:"vertical"===$?void 0:F,...ae("axis")};return(0,Xr.jsx)(MC,{ref:t,...ae("root"),onMouseLeave:e=>{te(null),h?.(e)},dir:L||"ltr",...K,children:(0,Xr.jsx)(sS,{...ae("container"),children:(0,Xr.jsxs)(yM,{data:u,layout:$,margin:{bottom:B?30:void 0,left:H?10:void 0,right:H?5:void 0},...T,children:["gradient"===Y&&(0,Xr.jsx)("defs",{children:(0,Xr.jsx)("linearGradient",{id:ie,x1:"0",y1:"0",x2:"0",y2:"1",children:se})}),d&&(0,Xr.jsx)(nw,{verticalAlign:"top",content:e=>(0,Xr.jsx)(YC,{payload:e.payload,onHighlight:te,legendPosition:f?.verticalAlign||"top",classNames:re,styles:oe,series:p,showColor:"gradient"!==Y}),...f}),(0,Xr.jsxs)(Hk,{hide:!g,..."vertical"===$?{type:"number"}:{dataKey:m},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Q&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===$?F:void 0,...ae("axis"),...x,children:[B&&(0,Xr.jsx)(Jf,{position:"insideBottom",offset:-20,fontSize:12,...ae("axisLabel"),children:B}),x?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!v,...ue,...O,children:[H&&(0,Xr.jsx)(Jf,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...ae("axisLabel"),children:H}),O?.children]}),(0,Xr.jsxs)(Jk,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!V,...ue,...G,children:[q&&(0,Xr.jsx)(Jf,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...ae("axisLabel"),children:q}),O?.children]}),(0,Xr.jsx)(vE,{strokeDasharray:P,vertical:"y"===b||"xy"===b,horizontal:"x"===b||"xy"===b,...ae("grid"),...k}),y&&(0,Xr.jsx)(YS,{animationDuration:j,isAnimationActive:0!==j,position:"vertical"===$?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:P},content:({label:e,payload:t})=>(0,Xr.jsx)(GC,{label:e,payload:t,unit:S,classNames:re,styles:oe,series:p,valueFormatter:F,showColor:"gradient"!==Y}),...E}),le,ce,z]})})})}));function jM({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,i]=(0,a.useState)(void 0!==t?t:n);return void 0!==e?[e,r,!0]:[o,(e,...t)=>{i(e),r?.(e,...t)},!1]}function PM(e){return"string"==typeof e?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:"number"==typeof e?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map((e=>PM(e)))}:e}function kM(e){return e?e.map((e=>PM(e))):[]}function EM(e){return e.reduce(((e,t)=>"group"in t?{...e,...EM(t.items)}:(e[t.value]=t,e)),{})}SM.displayName="@mantine/charts/LineChart",SM.classes=XC;const CM=["mousedown","touchstart"],MM={app:100,modal:200,popover:300,overlay:400,max:9999};function DM(e){return MM[e]}const _M=(0,a.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function AM(){return(0,a.useContext)(_M)}function TM(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,n]=t.split("-"),r="right"===e?"left":"right";return void 0===n?r:`${r}-${n}`}return t}var NM={root:"m_9814e45f"};const RM={zIndex:DM("modal")},IM=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:a,zIndex:i})=>({root:{"--overlay-bg":t||(void 0!==n||void 0!==r)&&NE(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${DE(o)})`:void 0,"--overlay-radius":void 0===a?void 0:AC(a),"--overlay-z-index":i?.toString()}}),$M=IC(((e,t)=>{const n=VE("Overlay",RM,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,fixed:c,center:u,children:d,radius:f,zIndex:p,gradient:h,blur:m,color:y,backgroundOpacity:g,mod:v,...b}=n,w=lC({name:"Overlay",props:n,classes:NM,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:IM});return(0,Xr.jsx)(MC,{ref:t,...w("root"),mod:[{center:u,fixed:c},v],...b,children:d})}));function LM(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function FM(...e){return(0,a.useCallback)(function(...e){const t=new Map;return n=>{if(e.forEach((e=>{const r=LM(e,n);r&&t.set(e,r)})),t.size>0)return()=>{e.forEach((e=>{const n=t.get(e);n?n():LM(e,null)})),t.clear()}}}(...e),e)}function zM(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}$M.classes=NM,$M.displayName="@mantine/core/Overlay";const WM={},BM=kE(((e,t)=>{const{children:n,target:r,reuseTargetNode:o,...i}=VE("Portal",WM,e),[s,l]=(0,a.useState)(!1),c=(0,a.useRef)(null);return gM((()=>(l(!0),c.current=function({target:e,reuseTargetNode:t,...n}){if(e)return"string"==typeof e?document.querySelector(e)||zM(n):e;if(t){const e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;const t=zM(n);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return zM(n)}({target:r,reuseTargetNode:o,...i}),LM(t,c.current),r||o||!c.current||document.body.appendChild(c.current),()=>{r||o||!c.current||document.body.removeChild(c.current)})),[r]),s&&c.current?(0,as.createPortal)((0,Xr.jsx)(Xr.Fragment,{children:n}),c.current):null}));BM.displayName="@mantine/core/Portal";const HM=kE((({withinPortal:e=!0,children:t,...n},r)=>"test"!==eC()&&e?(0,Xr.jsx)(BM,{ref:r,...n,children:t}):(0,Xr.jsx)(Xr.Fragment,{children:t})));HM.displayName="@mantine/core/OptionalPortal";const YM=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===e?10:-10}px)`},transitionProperty:"transform, opacity"}),UM={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...YM("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...YM("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...YM("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...YM("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...YM("top"),common:{transformOrigin:"top right"}}},VM={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function qM({transition:e,state:t,duration:n,timingFunction:r}){const o={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"==typeof e?e in UM?{transitionProperty:UM[e].transitionProperty,...o,...UM[e].common,...UM[e][VM[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[VM[t]]}}function GM(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>()=>{n.current=!1}),[]),(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}function XM({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:u}){const d=YE(),f=function(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=(0,a.useState)(n?t:function(e){return"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e)),i=(0,a.useRef)(null);return(0,a.useEffect)((()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(i.current,(e=>o(e.matches)))}),[e]),r}("(prefers-reduced-motion: reduce)",undefined,undefined);const p=!!d.respectReducedMotion&&f,[h,m]=(0,a.useState)(p?0:e),[y,g]=(0,a.useState)(r?"entered":"exited"),v=(0,a.useRef)(-1),b=(0,a.useRef)(-1),w=(0,a.useRef)(-1),x=n=>{const r=n?o:i,a=n?s:l;window.clearTimeout(v.current);const c=p?0:n?e:t;m(c),0===c?("function"==typeof r&&r(),"function"==typeof a&&a(),g(n?"entered":"exited")):w.current=requestAnimationFrame((()=>{as.flushSync((()=>{g(n?"pre-entering":"pre-exiting")})),w.current=requestAnimationFrame((()=>{"function"==typeof r&&r(),g(n?"entering":"exiting"),v.current=window.setTimeout((()=>{"function"==typeof a&&a(),g(n?"entered":"exited")}),c)}))}))};return GM((()=>{var e;e=r,window.clearTimeout(b.current),"number"==typeof(e?c:u)?b.current=window.setTimeout((()=>{x(e)}),e?c:u):x(e)}),[r]),(0,a.useEffect)((()=>()=>{window.clearTimeout(v.current),cancelAnimationFrame(w.current)}),[]),{transitionDuration:h,transitionStatus:y,transitionTimingFunction:n||"ease"}}function KM({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:a,timingFunction:i="ease",onExit:s,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f}){const p=eC(),{transitionDuration:h,transitionStatus:m,transitionTimingFunction:y}=XM({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:s,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:f});return 0===h||"test"===p?o?(0,Xr.jsx)(Xr.Fragment,{children:a({})}):e?a({display:"none"}):null:"exited"===m?e?a({display:"none"}):null:(0,Xr.jsx)(Xr.Fragment,{children:a(qM({transition:t,duration:h,state:m,timingFunction:y}))})}function ZM(e){const t=(0,a.createContext)(null);return[({children:e,value:n})=>(0,Xr.jsx)(t.Provider,{value:n,children:e}),()=>{const n=(0,a.useContext)(t);if(null===n)throw new Error(e);return n}]}KM.displayName="@mantine/core/Transition";const[QM,JM]=ZM("Popover component was not found in the tree"),eD=()=>{};function tD(e,t={active:!0}){return"function"==typeof e&&t.active?n=>{"Escape"===n.key&&(e(n),t.onTrigger?.())}:t.onKeyDown||eD}function nD(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function rD(e,t,n,r,o){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===o?"right":"left"]:n}:"start"===e?{["ltr"===o?"left":"right"]:n}:{}}const oD={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function aD({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:a,arrowY:i,dir:s}){const[l,c="center"]=e.split("-"),u={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[oD[l]]:r},d=-t/2;return"left"===l?{...u,...nD(c,i,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...u,...nD(c,i,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...u,...rD(c,a,n,o,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...u,...rD(c,a,n,o,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const iD=(0,a.forwardRef)((({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:a,arrowX:i,arrowY:s,style:l,...c},u)=>{const{dir:d}=AM();return a?(0,Xr.jsx)("div",{...c,ref:u,style:{...l,...aD({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:d,arrowX:i,arrowY:s})}}):null}));iD.displayName="@mantine/core/FloatingArrow";const sD=/input|select|textarea|button|object/,lD="a, input, select, textarea, button, object, [tabindex]";function cD(e){return"none"===e.style.display}function uD(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function dD(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(uD(e));return(sD.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(cD(t))return!1;t=t.parentNode}return!0}(e)}function fD(e){const t=uD(e);return(Number.isNaN(t)||t>=0)&&dD(e)}function pD(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==a.Fragment}var hD={root:"m_515a97f8"};const mD={},yD=kE(((e,t)=>{const n=VE("VisuallyHidden",mD,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,...c}=n,u=lC({name:"VisuallyHidden",classes:hD,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s});return(0,Xr.jsx)(MC,{component:"span",ref:t,...u("root"),...c})}));function gD({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=function(e=!0){const t=(0,a.useRef)(null),n=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const n=Array.from(e.querySelectorAll(lD));t=n.find(fD)||n.find(dD)||null,!t&&dD(e)&&(t=e)}t&&t.focus({preventScroll:!0})},r=(0,a.useCallback)((r=>{e&&null!==r&&t.current!==r&&(r?(setTimeout((()=>{r.getRootNode()&&n(r)})),t.current=r):t.current=null)}),[e]);return(0,a.useEffect)((()=>{if(!e)return;t.current&&setTimeout((()=>n(t.current)));const r=e=>{"Tab"===e.key&&t.current&&function(e,t){const n=(r=e,Array.from(r.querySelectorAll(lD)).filter(fD));var r;if(!n.length)return void t.preventDefault();const o=n[t.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if("INPUT"===s.tagName&&"radio"===s.getAttribute("type")){const e=n.filter((e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===s.getAttribute("name")));i=e.includes(o)}if(!i)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[e]),r}(t),i=FM(o,r);return pD(e)?(0,a.cloneElement)(e,{[n]:i}):e}function vD(e){return(0,Xr.jsx)(yD,{tabIndex:-1,"data-autofocus":!0,...e})}yD.classes=hD,yD.displayName="@mantine/core/VisuallyHidden",gD.displayName="@mantine/core/FocusTrap",vD.displayName="@mantine/core/FocusTrapInitialFocus",gD.InitialFocus=vD;var bD={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const wD={},xD=kE(((e,t)=>{const n=VE("PopoverDropdown",wD,e),{className:r,style:o,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:u,styles:d,...f}=n,p=JM(),h=function({opened:e,shouldReturnFocus:t=!0}){const n=(0,a.useRef)(null),r=()=>{n.current&&"focus"in n.current&&"function"==typeof n.current.focus&&n.current?.focus({preventScroll:!0})};return GM((()=>{let o=-1;const a=e=>{"Tab"===e.key&&window.clearTimeout(o)};return document.addEventListener("keydown",a),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",a)}}),[e,t]),r}({opened:p.opened,shouldReturnFocus:p.returnFocus}),m=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=FM(t,p.floating);return p.disabled?null:(0,Xr.jsx)(HM,{...p.portalProps,withinPortal:p.withinPortal,children:(0,Xr.jsx)(KM,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:"number"==typeof p.transitionProps?.exitDuration?p.transitionProps.exitDuration:p.transitionProps?.duration,children:e=>(0,Xr.jsx)(gD,{active:p.trapFocus&&p.opened,innerRef:y,children:(0,Xr.jsxs)(MC,{...m,...f,variant:c,onKeyDownCapture:tD((()=>{p.onClose?.(),p.onDismiss?.()}),{active:p.closeOnEscape,onTrigger:h,onKeyDown:l}),"data-position":p.placement,"data-fixed":"fixed"===p.floatingStrategy||void 0,...p.getStyles("dropdown",{className:r,props:n,classNames:u,styles:d,style:[{...e,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:"target"===p.width?void 0:DE(p.width)},p.resolvedStyles.dropdown,d?.dropdown,o]}),children:[s,(0,Xr.jsx)(iD,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})}));function OD(e){const t=a.version;return"string"!=typeof a.version||t.startsWith("18.")?e?.ref:e?.props?.ref}xD.classes=bD,xD.displayName="@mantine/core/PopoverDropdown";const SD={refProp:"ref",popupType:"dialog"},jD=kE(((e,t)=>{const{children:n,refProp:r,popupType:o,...i}=VE("PopoverTarget",SD,e);if(!pD(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=JM(),u=FM(l.reference,OD(n),t),d=l.withRoles?{"aria-haspopup":o,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,a.cloneElement)(n,{...s,...d,...l.targetProps,className:c(l.targetProps.className,s.className,n.props.className),[r]:u,...l.controlled?null:{onClick:l.onToggle}})}));jD.displayName="@mantine/core/PopoverTarget";const PD=Math.min,kD=Math.max,ED=Math.round,CD=Math.floor,MD=e=>({x:e,y:e}),DD={left:"right",right:"left",bottom:"top",top:"bottom"},_D={start:"end",end:"start"};function AD(e,t,n){return kD(e,PD(t,n))}function TD(e,t){return"function"==typeof e?e(t):e}function ND(e){return e.split("-")[0]}function RD(e){return e.split("-")[1]}function ID(e){return"x"===e?"y":"x"}function $D(e){return"y"===e?"height":"width"}function LD(e){return["top","bottom"].includes(ND(e))?"y":"x"}function FD(e){return ID(LD(e))}function zD(e){return e.replace(/start|end/g,(e=>_D[e]))}function WD(e){return e.replace(/left|right|bottom|top/g,(e=>DD[e]))}function BD(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function HD(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function YD(e,t,n){let{reference:r,floating:o}=e;const a=LD(t),i=FD(t),s=$D(i),l=ND(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(RD(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function UD(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=TD(t,e),h=BD(p),m=s[f?"floating"===d?"reference":"floating":d],y=HD(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=HD(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}function VD(e){const t=PD(...e.map((e=>e.left))),n=PD(...e.map((e=>e.top)));return{x:t,y:n,width:kD(...e.map((e=>e.right)))-t,height:kD(...e.map((e=>e.bottom)))-n}}function qD(){return"undefined"!=typeof window}function GD(e){return ZD(e)?(e.nodeName||"").toLowerCase():"#document"}function XD(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function KD(e){var t;return null==(t=(ZD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ZD(e){return!!qD()&&(e instanceof Node||e instanceof XD(e).Node)}function QD(e){return!!qD()&&(e instanceof Element||e instanceof XD(e).Element)}function JD(e){return!!qD()&&(e instanceof HTMLElement||e instanceof XD(e).HTMLElement)}function e_(e){return!(!qD()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof XD(e).ShadowRoot)}function t_(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=s_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function n_(e){return["table","td","th"].includes(GD(e))}function r_(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function o_(e){const t=a_(),n=QD(e)?s_(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function a_(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function i_(e){return["html","body","#document"].includes(GD(e))}function s_(e){return XD(e).getComputedStyle(e)}function l_(e){return QD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function c_(e){if("html"===GD(e))return e;const t=e.assignedSlot||e.parentNode||e_(e)&&e.host||KD(e);return e_(t)?t.host:t}function u_(e){const t=c_(e);return i_(t)?e.ownerDocument?e.ownerDocument.body:e.body:JD(t)&&t_(t)?t:u_(t)}function d_(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=u_(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=XD(o);if(a){const e=f_(i);return t.concat(i,i.visualViewport||[],t_(o)?o:[],e&&n?d_(e):[])}return t.concat(o,d_(o,[],n))}function f_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function p_(e){const t=s_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=JD(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ED(n)!==a||ED(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function h_(e){return QD(e)?e:e.contextElement}function m_(e){const t=h_(e);if(!JD(t))return MD(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=p_(t);let i=(a?ED(n.width):n.width)/r,s=(a?ED(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const y_=MD(0);function g_(e){const t=XD(e);return a_()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:y_}function v_(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=h_(e);let i=MD(1);t&&(r?QD(r)&&(i=m_(r)):i=m_(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==XD(e))&&t}(a,n,r)?g_(a):MD(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=XD(a),t=r&&QD(r)?XD(r):r;let n=e,o=f_(n);for(;o&&r&&t!==n;){const e=m_(o),t=o.getBoundingClientRect(),r=s_(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=XD(o),o=f_(n)}}return HD({width:u,height:d,x:l,y:c})}function b_(e,t){const n=l_(e).scrollLeft;return t?t.left+n:v_(KD(e)).left+n}function w_(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:b_(e,r)),y:r.top+t.scrollTop}}function x_(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=XD(e),r=KD(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=a_();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=KD(e),n=l_(e),r=e.ownerDocument.body,o=kD(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=kD(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+b_(e);const s=-n.scrollTop;return"rtl"===s_(r).direction&&(i+=kD(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(KD(e));else if(QD(t))r=function(e,t){const n=v_(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=JD(e)?m_(e):MD(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=g_(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return HD(r)}function O_(e,t){const n=c_(e);return!(n===t||!QD(n)||i_(n))&&("fixed"===s_(n).position||O_(n,t))}function S_(e,t,n){const r=JD(t),o=KD(t),a="fixed"===n,i=v_(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=MD(0);if(r||!r&&!a)if(("body"!==GD(t)||t_(o))&&(s=l_(t)),r){const e=v_(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=b_(o));const c=!o||r||a?MD(0):w_(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function j_(e){return"static"===s_(e).position}function P_(e,t){if(!JD(e)||"fixed"===s_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return KD(e)===n&&(n=n.ownerDocument.body),n}function k_(e,t){const n=XD(e);if(r_(e))return n;if(!JD(e)){let t=c_(e);for(;t&&!i_(t);){if(QD(t)&&!j_(t))return t;t=c_(t)}return n}let r=P_(e,t);for(;r&&n_(r)&&j_(r);)r=P_(r,t);return r&&i_(r)&&j_(r)&&!o_(r)?n:r||function(e){let t=c_(e);for(;JD(t)&&!i_(t);){if(o_(t))return t;if(r_(t))return null;t=c_(t)}return null}(e)||n}const E_={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=KD(r),s=!!t&&r_(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=MD(1);const u=MD(0),d=JD(r);if((d||!d&&!a)&&(("body"!==GD(r)||t_(i))&&(l=l_(r)),JD(r))){const e=v_(r);c=m_(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?MD(0):w_(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:KD,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?r_(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=d_(e,[],!1).filter((e=>QD(e)&&"body"!==GD(e))),o=null;const a="fixed"===s_(e).position;let i=a?c_(e):e;for(;QD(i)&&!i_(i);){const t=s_(i),n=o_(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||t_(i)&&!n&&O_(e,i))?r=r.filter((e=>e!==i)):o=t,i=c_(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=x_(t,n,o);return e.top=kD(r.top,e.top),e.right=PD(r.right,e.right),e.bottom=PD(r.bottom,e.bottom),e.left=kD(r.left,e.left),e}),x_(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:k_,getElementRects:async function(e){const t=this.getOffsetParent||k_,n=this.getDimensions,r=await n(e.floating);return{reference:S_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=p_(e);return{width:t,height:n}},getScale:m_,isElement:QD,isRTL:function(e){return"rtl"===s_(e).direction}};function C_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const M_=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=ND(n),s=RD(n),l="y"===LD(n),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=TD(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},D_=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=TD(e,t),c={x:n,y:r},u=await UD(t,l),d=LD(ND(o)),f=ID(d);let p=c[f],h=c[d];if(a){const e="y"===f?"bottom":"right";p=AD(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=AD(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},A_=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=TD(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=ND(o),v=LD(s),b=ND(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[WD(s)]:function(e){const t=WD(e);return[zD(e),t,zD(t)]}(s)),O="none"!==h;!f&&O&&x.push(...function(e,t,n,r){const o=RD(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(ND(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(zD)))),a}(s,m,h,w));const S=[s,...x],j=await UD(t,y),P=[];let k=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&P.push(j[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=RD(e),o=FD(e),a=$D(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=WD(i)),[i,WD(i)]}(o,i,w);P.push(j[e[0]],j[e[1]])}if(k=[...k,{placement:o,overflows:P}],!P.every((e=>e<=0))){var E,C;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(C=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var M;const e=null==(M=k.filter((e=>{if(O){const t=LD(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},T_=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=TD(e,t),u=await UD(t,c),d=ND(o),f=RD(o),p="y"===LD(o),{width:h,height:m}=a.floating;let y,g;"top"===d||"bottom"===d?(y=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,y="end"===f?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,w=PD(m-u[y],v),x=PD(h-u[g],b),O=!t.middlewareData.shift;let S=w,j=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),O&&!f){const e=kD(u.left,0),t=kD(u.right,0),n=kD(u.top,0),r=kD(u.bottom,0);p?j=h-2*(0!==e||0!==t?e+t:kD(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:kD(u.top,u.bottom))}await l({...t,availableWidth:j,availableHeight:S});const P=await i.getDimensions(s.floating);return h!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}},N_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=TD(e,t)||{};if(null==c)return{};const d=BD(u),f={x:n,y:r},p=FD(o),h=$D(p),m=await i.getDimensions(c),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=O?O[b]:0;S&&await(null==i.isElement?void 0:i.isElement(O))||(S=s.floating[b]||a.floating[h]);const j=w/2-x/2,P=S/2-m[h]/2-1,k=PD(d[g],P),E=PD(d[v],P),C=k,M=S-m[h]-E,D=S/2-m[h]/2+j,_=AD(C,D,M),A=!l.arrow&&null!=RD(o)&&D!==_&&a.reference[h]/2-(D<C?k:E)-m[h]/2<0,T=A?D<C?D-C:D-M:0;return{[p]:f[p]+T,data:{[p]:_,centerOffset:D-_-T,...A&&{alignmentOffset:T}},reset:A}}}),R_=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:i}=t,{padding:s=2,x:l,y:c}=TD(e,t),u=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),d=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>HD(VD(e))))}(u),f=HD(VD(u)),p=BD(s),h=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find((e=>l>e.left-p.left&&l<e.right+p.right&&c>e.top-p.top&&c<e.bottom+p.bottom))||f;if(d.length>=2){if("y"===LD(n)){const e=d[0],t=d[d.length-1],r="top"===ND(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===ND(n),t=kD(...d.map((e=>e.right))),r=PD(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,i=o[o.length-1].bottom;return{top:a,bottom:i,left:r,right:t,width:t-r,height:i-a,x:r,y:a}}return f}},floating:r.floating,strategy:i});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},I_=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=TD(e,t),u={x:n,y:r},d=LD(o),f=ID(d);let p=u[f],h=u[d];const m=TD(s,t),y="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+y.mainAxis,n=a.reference[f]+a.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,v;const e="y"===f?"width":"height",t=["top","left"].includes(ND(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:y.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?y.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},$_=(e,t,n)=>{const r=new Map,o={platform:E_,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=YD(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:y,y:g,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=g?g:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=YD(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var L_="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function F_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!F_(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||F_(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function z_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function W_(e,t){const n=z_(e);return Math.round(t*n)/n}function B_(e){const t=a.useRef(e);return L_((()=>{t.current=e})),t}const H_=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?N_({element:n.current,padding:r}).fn(t):{}:n?N_({element:n,padding:r}).fn(t):{}}}),Y_=(e,t)=>({...M_(e),options:[e,t]}),U_=(e,t)=>({...D_(e),options:[e,t]}),V_=(e,t)=>({...I_(e),options:[e,t]}),q_=(e,t)=>({...A_(e),options:[e,t]}),G_=(e,t)=>({...R_(e),options:[e,t]}),X_=(e,t)=>({...H_(e),options:[e,t]});function K_(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Z_(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&e_(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Q_(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function J_(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function eA(){const e=/android/i;return e.test(Q_())||e.test(J_())}function tA(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function nA(e){return(null==e?void 0:e.ownerDocument)||document}function rA(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function oA(e){return"composedPath"in e?e.composedPath()[0]:e.target}const aA={...i},iA=aA.useInsertionEffect||(e=>e());function sA(e){const t=a.useRef((()=>{}));return iA((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var lA="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;let cA=!1,uA=0;const dA=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+uA++,fA=aA.useId||function(){const[e,t]=a.useState((()=>cA?dA():void 0));return lA((()=>{null==e&&t(dA())}),[]),a.useEffect((()=>{cA=!0}),[]),e};const pA=a.createContext(null),hA=a.createContext(null),mA=()=>{var e;return(null==(e=a.useContext(pA))?void 0:e.id)||null},yA=()=>a.useContext(hA);function gA(e){return"data-floating-ui-"+e}function vA(e){const t=(0,a.useRef)(e);return lA((()=>{t.current=e})),t}const bA=gA("safe-polygon");function wA(e,t,n){return n&&!tA(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function xA(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,h=yA(),m=mA(),y=vA(u),g=vA(c),v=vA(n),b=a.useRef(),w=a.useRef(-1),x=a.useRef(),O=a.useRef(-1),S=a.useRef(!0),j=a.useRef(!1),P=a.useRef((()=>{})),k=a.useRef(!1),E=a.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);a.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(O.current),S.current=!0,k.current=!1)}}),[l,i]),a.useEffect((()=>{if(!l)return;if(!y.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=nA(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s.floating,n,r,l,y,E]);const C=a.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=wA(g.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[g,r]),M=sA((()=>{P.current(),x.current=void 0})),D=sA((()=>{if(j.current){const e=nA(s.floating).body;e.style.pointerEvents="",e.removeAttribute(bA),j.current=!1}})),_=sA((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));a.useEffect((()=>{if(l&&QD(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",i),null==(e=s.floating)||e.addEventListener("mouseleave",i),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a),()=>{var e;n&&r.removeEventListener("mouseleave",i),null==(e=s.floating)||e.removeEventListener("mouseleave",i),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(w.current),S.current=!1,d&&!tA(b.current)||f>0&&!wA(g.current,"open"))return;const t=wA(g.current,"open",b.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function a(e){if(_())return;P.current();const t=nA(s.floating);if(clearTimeout(O.current),k.current=!1,y.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=y.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){D(),M(),_()||C(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(P.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!Z_(s.floating,e.relatedTarget))&&C(e)}function i(e){_()||o.current.floatingContext&&(null==y.current||y.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){D(),M(),_()||C(e)}})(e))}}),[s,l,e,d,f,p,C,M,D,r,n,v,h,g,y,o,_]),lA((()=>{var e;if(l&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&E()){j.current=!0;const e=s.floating;if(QD(s.domReference)&&e){var t;const n=nA(s.floating).body;n.setAttribute(bA,"");const r=s.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,m,s,h,y,E]),lA((()=>{n||(b.current=void 0,k.current=!1,M(),D())}),[n,M,D]),a.useEffect((()=>()=>{M(),clearTimeout(w.current),clearTimeout(O.current),D()}),[l,s.domReference,M,D]);const A=a.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||v.current||r(!0,t,"hover")}d&&!tA(b.current)||n||0===f||k.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(O.current),"touch"===b.current?o():(k.current=!0,O.current=window.setTimeout(o,f)))}}}),[d,r,n,v,f]),T=a.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){_()||C(e.nativeEvent,!1)}})),[C,_]);return a.useMemo((()=>l?{reference:A,floating:T}:{}),[l,A,T])}const OA=()=>{},SA=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:OA,setState:OA,isInstantPhase:!1});function jA(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=a.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=a.useRef(null),l=a.useCallback((e=>{i({currentId:e})}),[]);return lA((()=>{o.currentId?null===s.current?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)}),[o.currentId,o.isInstantPhase]),a.createElement(SA.Provider,{value:a.useMemo((()=>({...o,setState:i,setCurrentId:l})),[o,l])},t)}function PA(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const kA="data-floating-ui-focusable",EA={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},CA={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},MA=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function DA(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:m}=t,y=yA(),g=sA("function"==typeof c?c:()=>!1),v="function"==typeof c?g:c,b=a.useRef(!1),w=a.useRef(!1),{escapeKey:x,outsidePress:O}=MA(h),{escapeKey:S,outsidePress:j}=MA(m),P=a.useRef(!1),k=sA((e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;if(P.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=y?PA(y.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),E=sA((e=>{var t;const n=()=>{var t;k(e),null==(t=oA(e))||t.removeEventListener("keydown",n)};null==(t=oA(e))||t.addEventListener("keydown",n)})),C=sA((e=>{var t;const n=b.current;b.current=!1;const a=w.current;if(w.current=!1,"click"===u&&a)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=oA(e),l="["+gA("inert")+"]",c=nA(o.floating).querySelectorAll(l);let d=QD(s)?s:null;for(;d&&!i_(d);){const e=c_(d);if(i_(e)||!QD(e))break;d=e}if(c.length&&QD(s)&&!s.matches("html,body")&&!Z_(s,o.floating)&&Array.from(c).every((e=>!Z_(d,e))))return;if(JD(s)&&_){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===s_(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=y&&PA(y.nodesRef.current,f).some((t=>{var n;return rA(e,null==(n=t.context)?void 0:n.elements.floating)}));if(rA(e,o.floating)||rA(e,o.domReference)||p)return;const h=y?PA(y.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),M=sA((e=>{var t;const n=()=>{var t;C(e),null==(t=oA(e))||t.removeEventListener(u,n)};null==(t=oA(e))||t.addEventListener(u,n)}));a.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=O;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),P.current=!0}function c(){e=window.setTimeout((()=>{P.current=!1}),a_()?5:0)}const d=nA(o.floating);l&&(d.addEventListener("keydown",S?E:k,S),d.addEventListener("compositionstart",a),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,j?M:C,j);let f=[];return p&&(QD(o.domReference)&&(f=d_(o.domReference)),QD(o.floating)&&(f=f.concat(d_(o.floating))),!QD(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(d_(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",S?E:k,S),d.removeEventListener("compositionstart",a),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,j?M:C,j),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,l,v,u,n,r,p,s,x,O,k,S,E,C,j,M]),a.useEffect((()=>{b.current=!1}),[v,u]);const D=a.useMemo((()=>({onKeyDown:k,[EA[f]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,d,f]),_=a.useMemo((()=>({onKeyDown:k,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[CA[u]]:()=>{b.current=!0}})),[k,u]);return a.useMemo((()=>s?{reference:D,floating:_}:{}),[s,D,_])}function _A(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=fA(),i=a.useRef({}),[s]=a.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=mA(),[c,u]=a.useState(r.reference),d=sA(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=a.useMemo((()=>({setPositionReference:u})),[]),p=a.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return a.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f})),[t,d,p,s,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=a.useState(null),[l,c]=a.useState(null),u=(null==o?void 0:o.domReference)||i,d=a.useRef(null),f=yA();lA((()=>{u&&(d.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=a.useState(r);F_(p,r)||h(r);const[m,y]=a.useState(null),[g,v]=a.useState(null),b=a.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),w=a.useCallback((e=>{e!==j.current&&(j.current=e,v(e))}),[]),x=i||m,O=s||g,S=a.useRef(null),j=a.useRef(null),P=a.useRef(d),k=null!=c,E=B_(c),C=B_(o),M=B_(u),D=a.useCallback((()=>{if(!S.current||!j.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),$_(S.current,j.current,e).then((e=>{const t={...e,isPositioned:!1!==M.current};_.current&&!F_(P.current,t)&&(P.current=t,as.flushSync((()=>{f(t)})))}))}),[p,t,n,C,M]);L_((()=>{!1===u&&P.current.isPositioned&&(P.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const _=a.useRef(!1);L_((()=>(_.current=!0,()=>{_.current=!1})),[]),L_((()=>{if(x&&(S.current=x),O&&(j.current=O),x&&O){if(E.current)return E.current(x,O,D);D()}}),[x,O,D,E,k]);const A=a.useMemo((()=>({reference:S,floating:j,setReference:b,setFloating:w})),[b,w]),T=a.useMemo((()=>({reference:x,floating:O})),[x,O]),N=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=W_(T.floating,d.x),r=W_(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...z_(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,T.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:D,refs:A,elements:T,floatingStyles:N})),[d,D,A,T,N])}({...e,elements:{...o,...l&&{reference:l}}}),h=a.useCallback((e=>{const t=QD(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=a.useCallback((e=>{(QD(e)||null===e)&&(d.current=e,s(e)),(QD(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!QD(e))&&p.refs.setReference(e)}),[p.refs]),y=a.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d})),[p.refs,m,h]),g=a.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=a.useMemo((()=>({...p,...r,refs:y,elements:g,nodeId:t})),[p,y,g,t,r]);return lA((()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),a.useMemo((()=>({...p,context:v,refs:y,elements:g})),[p,y,g,v])}function AA(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=a.useRef(!1),d=a.useRef(),f=a.useRef(!0);a.useEffect((()=>{if(!l)return;const e=XD(s.domReference);function t(){!n&&JD(s.domReference)&&s.domReference===K_(nA(s.domReference))&&(u.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[s.domReference,n,l]),a.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,l]),a.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const p=a.useMemo((()=>({onPointerDown(e){(function(e){return!J_().includes("jsdom/")&&(!eA()&&0===e.width&&0===e.height||eA()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=oA(e.nativeEvent);if(c&&QD(t))try{if(/apple/i.test(navigator.vendor)&&Q_().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&(!JD(n=t)||!n.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")))return}var n;r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=QD(t)&&t.hasAttribute(gA("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const a=K_(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(Z_(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Z_(s.domReference,a)||o||r(!1,n,"focus"))}))}})),[i,s.domReference,r,c]);return a.useMemo((()=>l?{reference:p}:{}),[l,p])}const TA="active",NA="selected";function RA(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[TA]:t,[NA]:__,...n}=e;a=n}return{..."floating"===n&&{tabIndex:-1,[kA]:""},...a,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[TA,NA].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}const IA=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function $A(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(n=IA.get(s))?n:s,c=fA(),u=null!=mA(),d=a.useMemo((()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[l,o,u,r,c,s]),f=a.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,s]),p=a.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,s]);return a.useMemo((()=>i?{reference:d,floating:f,item:p}:{}),[i,d,f,p])}function LA({opened:e,floating:t,position:n,positionDependencies:r}){const[o,i]=(0,a.useState)(0);(0,a.useEffect)((()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=h_(e),u=o||a?[...c?d_(c):[],...d_(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=KD(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h={rootMargin:-CD(d)+"px "+-CD(o.clientWidth-(u+f))+"px "+-CD(o.clientHeight-(d+p))+"px "+-CD(u)+"px",threshold:kD(0,PD(1,l))||1};let m=!0;function y(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||C_(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?v_(e):null;return l&&function t(){const r=v_(e);m&&!C_(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(t.refs.reference.current,t.refs.floating.current,t.update)}),[t.refs.reference.current,t.refs.floating.current,e,o,n]),GM((()=>{t.update()}),r),GM((()=>{i((e=>e+1))}),[e])}function FA(e,t){const n=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),r=[Y_(e.offset)];return n.shift&&r.push(U_("boolean"==typeof n.shift?{limiter:V_(),padding:5}:{limiter:V_(),padding:5,...n.shift})),n.flip&&r.push("boolean"==typeof n.flip?q_():q_(n.flip)),n.inline&&r.push("boolean"==typeof n.inline?G_():G_(n.inline)),r.push(X_({element:e.arrowRef,padding:e.arrowOffset})),(n.size||"target"===e.width)&&r.push((e=>({...T_(e),options:[e,void 0]}))({..."boolean"==typeof n.size?{}:n.size,apply({rects:r,availableWidth:o,availableHeight:a,...i}){const s=t(),l=s.refs.floating.current?.style??{};n.size&&("object"==typeof n.size&&n.size.apply?n.size.apply({rects:r,availableWidth:o,availableHeight:a,...i}):Object.assign(l,{maxWidth:`${o}px`,maxHeight:`${a}px`})),"target"===e.width&&Object.assign(l,{width:`${r.reference.width}px`})}})),r}const zA={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:DM("popover"),__staticSelector:"Popover",width:"max-content"},WA=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":void 0===t?void 0:AC(t),"--popover-shadow":RC(n)}});function BA(e){const t=VE("Popover",zA,e),{children:n,position:r,offset:o,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:f,middlewares:p,withArrow:h,arrowSize:m,arrowOffset:y,arrowRadius:g,arrowPosition:v,unstyled:b,classNames:w,styles:x,closeOnClickOutside:O,withinPortal:S,portalProps:j,closeOnEscape:P,clickOutsideEvents:k,trapFocus:E,onClose:C,onDismiss:M,onOpen:D,onChange:_,zIndex:A,radius:T,shadow:N,id:R,defaultOpened:I,__staticSelector:$,withRoles:L,disabled:F,returnFocus:z,variant:W,keepMounted:B,vars:H,floatingStrategy:Y,withOverlay:U,overlayProps:V,...q}=t,G=lC({name:$,props:t,classes:bD,classNames:w,styles:x,unstyled:b,rootSelector:"dropdown",vars:H,varsResolver:WA}),{resolvedStyles:X}=KE({classNames:w,styles:x,props:t}),K=(0,a.useRef)(null),[Z,Q]=(0,a.useState)(null),[J,ee]=(0,a.useState)(null),{dir:te}=AM(),ne=bM(R),re=function(e){const[t,n]=jM({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,a.useRef)(t),o=_A({strategy:e.strategy,placement:e.position,middleware:FA(e,(()=>o))});return LA({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:o}),GM((()=>{e.onPositionChange?.(o.placement)}),[o.placement]),GM((()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t}),[t,e.onClose,e.onOpen]),{floating:o,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{t&&n(!1)},onToggle:()=>n(!t)}}({middlewares:p,width:f,position:TM(te,r),offset:"number"==typeof o?o+(h?m/2:0):o,arrowRef:K,arrowOffset:y,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:I,onChange:_,onOpen:D,onClose:C,onDismiss:M,strategy:Y});!function(e,t,n){const r=(0,a.useRef)(null);(0,a.useEffect)((()=>{const o=t=>{const{target:o}=t??{};if(Array.isArray(n)){const r=o?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(o)&&"HTML"!==o.tagName,a=n.every((e=>!!e&&!t.composedPath().includes(e)));a&&!r&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||CM).forEach((e=>document.addEventListener(e,o))),()=>{(t||CM).forEach((e=>document.removeEventListener(e,o)))}}),[r,e,n])}((()=>{O&&(re.onClose(),M?.())}),k,[Z,J]);const oe=(0,a.useCallback)((e=>{Q(e),re.floating.refs.setReference(e)}),[re.floating.refs.setReference]),ae=(0,a.useCallback)((e=>{ee(e),re.floating.refs.setFloating(e)}),[re.floating.refs.setFloating]),ie=(0,a.useCallback)((()=>{c?.onExited?.(),u?.()}),[c?.onExited,u]),se=(0,a.useCallback)((()=>{c?.onEntered?.(),d?.()}),[c?.onEntered,d]);return(0,Xr.jsxs)(QM,{value:{returnFocus:z,disabled:F,controlled:re.controlled,reference:oe,floating:ae,x:re.floating.x,y:re.floating.y,arrowX:re.floating?.middlewareData?.arrow?.x,arrowY:re.floating?.middlewareData?.arrow?.y,opened:re.opened,arrowRef:K,transitionProps:{...c,onExited:ie,onEntered:se},width:f,withArrow:h,arrowSize:m,arrowOffset:y,arrowRadius:g,arrowPosition:v,placement:re.floating.placement,trapFocus:E,withinPortal:S,portalProps:j,zIndex:A,radius:T,shadow:N,closeOnEscape:P,onDismiss:M,onClose:re.onClose,onToggle:re.onToggle,getTargetId:()=>`${ne}-target`,getDropdownId:()=>`${ne}-dropdown`,withRoles:L,targetProps:q,__staticSelector:$,classNames:w,styles:x,unstyled:b,variant:W,keepMounted:B,getStyles:G,resolvedStyles:X,floatingStrategy:Y},children:[n,U&&(0,Xr.jsx)(KM,{transition:"fade",mounted:re.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:e=>(0,Xr.jsx)(HM,{withinPortal:S,children:(0,Xr.jsx)($M,{...V,...G("overlay",{className:V?.className,style:[e,V?.style]})})})})]})}BA.Target=jD,BA.Dropdown=xD,BA.displayName="@mantine/core/Popover",BA.extend=e=>e;const[HA,YA]=ZM("Combobox component was not found in tree");var UA={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const VA={error:null},qA=(e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":DC(t,"combobox-chevron-size"),"--combobox-chevron-color":n?jE(n,e):void 0}}),GA=kE(((e,t)=>{const n=VE("ComboboxChevron",VA,e),{size:r,error:o,style:a,className:i,classNames:s,styles:l,unstyled:c,vars:u,mod:d,...f}=n,p=lC({name:"ComboboxChevron",classes:UA,props:n,style:a,className:i,classNames:s,styles:l,unstyled:c,vars:u,varsResolver:qA,rootSelector:"chevron"});return(0,Xr.jsx)(MC,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},d],ref:t,children:(0,Xr.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}));function XA(e=null){const t=(0,a.createContext)(e);return[({children:e,value:n})=>(0,Xr.jsx)(t.Provider,{value:n,children:e}),()=>(0,a.useContext)(t)]}GA.classes=UA,GA.displayName="@mantine/core/ComboboxChevron";const[KA,ZA]=XA({size:"sm"});var QA={root:"m_87cf2631"};const JA={__staticSelector:"UnstyledButton"},eT=IC(((e,t)=>{const n=VE("UnstyledButton",JA,e),{className:r,component:o="button",__staticSelector:a,unstyled:i,classNames:s,styles:l,style:c,...u}=n,d=lC({name:a,props:n,classes:QA,className:r,style:c,classNames:s,styles:l,unstyled:i});return(0,Xr.jsx)(MC,{...d("root",{focusable:!0}),component:o,ref:t,type:"button"===o?"button":void 0,...u})}));eT.classes=QA,eT.displayName="@mantine/core/UnstyledButton";const tT=(0,a.forwardRef)((({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>(0,Xr.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:(0,Xr.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})));tT.displayName="@mantine/core/CloseIcon";var nT={root:"m_86a44da5","root--subtle":"m_220c80f2"};const rT={variant:"subtle"},oT=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":DC(t,"cb-size"),"--cb-radius":void 0===n?void 0:AC(n),"--cb-icon-size":DE(r)}}),aT=IC(((e,t)=>{const n=VE("CloseButton",rT,e),{iconSize:r,children:o,vars:a,radius:i,className:s,classNames:l,style:c,styles:u,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:m,mod:y,__staticSelector:g,...v}=n,b=lC({name:g||"CloseButton",props:n,className:s,style:c,classes:nT,classNames:l,styles:u,unstyled:d,vars:a,varsResolver:oT});return(0,Xr.jsxs)(eT,{ref:t,...v,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},y],...b("root",{variant:h,active:!p&&!f}),children:[m||(0,Xr.jsx)(tT,{}),o]})}));aT.classes=nT,aT.displayName="@mantine/core/CloseButton";const iT={},sT=kE(((e,t)=>{const n=VE("InputClearButton",iT,e),{size:r,variant:o,vars:a,classNames:i,styles:s,...l}=n,c=ZA(),{resolvedClassNames:u,resolvedStyles:d}=KE({classNames:i,styles:s,props:n});return(0,Xr.jsx)(aT,{variant:o||"transparent",ref:t,size:r||c?.size||"sm",classNames:u,styles:d,__staticSelector:"InputClearButton",...l})}));sT.displayName="@mantine/core/InputClearButton";const[lT,cT]=XA({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var uT={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const dT={},fT=(e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`}}),pT=kE(((e,t)=>{const n=VE("InputDescription",dT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=VE("InputDescription",dT,n),h=cT(),m=lC({name:["InputWrapper",u],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"description",vars:l,varsResolver:fT}),y=d&&h?.getStyles||m;return(0,Xr.jsx)(MC,{component:"p",ref:t,variant:f,size:c,...y("description",h?.getStyles?{className:o,style:a}:void 0),...p})}));pT.classes=uT,pT.displayName="@mantine/core/InputDescription";const hT={},mT=(e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`}}),yT=kE(((e,t)=>{const n=VE("InputError",hT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:f,...p}=n,h=lC({name:["InputWrapper",u],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"error",vars:l,varsResolver:mT}),m=cT(),y=d&&m?.getStyles||h;return(0,Xr.jsx)(MC,{component:"p",ref:t,variant:f,size:c,...y("error",m?.getStyles?{className:o,style:a}:void 0),...p})}));yT.classes=uT,yT.displayName="@mantine/core/InputError";const gT={labelElement:"label"},vT=(e,{size:t})=>({label:{"--input-label-size":TC(t),"--input-asterisk-color":void 0}}),bT=kE(((e,t)=>{const n=VE("InputLabel",gT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,labelElement:c,size:u,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:m,variant:y,mod:g,...v}=VE("InputLabel",gT,n),b=lC({name:["InputWrapper",m],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"label",vars:l,varsResolver:vT}),w=cT(),x=w?.getStyles||b;return(0,Xr.jsxs)(MC,{...x("label",w?.getStyles?{className:o,style:a}:void 0),component:c,variant:y,size:u,ref:t,htmlFor:"label"===c?f:void 0,mod:[{required:d},g],onMouseDown:e=>{p?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...v,children:[h,d&&(0,Xr.jsx)("span",{...x("required"),"aria-hidden":!0,children:" *"})]})}));bT.classes=uT,bT.displayName="@mantine/core/InputLabel";const wT={},xT=kE(((e,t)=>{const n=VE("InputPlaceholder",wT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,__staticSelector:c,variant:u,error:d,mod:f,...p}=VE("InputPlaceholder",wT,n),h=lC({name:["InputPlaceholder",c],props:n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,rootSelector:"placeholder"});return(0,Xr.jsx)(MC,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:u,ref:t,...p})}));function OT(e,{hasDescription:t,hasError:n}){const r=e.findIndex((e=>"input"===e)),o=e.slice(0,r),a=e.slice(r+1),i=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&a.includes("description")||n&&a.includes("error"),offsetTop:i}}xT.classes=uT,xT.displayName="@mantine/core/InputPlaceholder";const ST={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},jT=(e,{size:t})=>({label:{"--input-label-size":TC(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${TC(t)} - ${DE(2)})`}}),PT=kE(((e,t)=>{const n=VE("InputWrapper",ST,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,size:u,variant:d,__staticSelector:f,inputContainer:p,inputWrapperOrder:h,label:m,error:y,description:g,labelProps:v,descriptionProps:b,errorProps:w,labelElement:x,children:O,withAsterisk:S,id:j,required:P,__stylesApiProps:k,mod:E,...C}=n,M=lC({name:["InputWrapper",f],props:k||n,classes:uT,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:jT}),D={size:u,variant:d,__staticSelector:f},_=bM(j),A="boolean"==typeof S?S:P,T=w?.id||`${_}-error`,N=b?.id||`${_}-description`,R=_,I=!!y&&"boolean"!=typeof y,$=!!g,L=`${I?T:""} ${$?N:""}`,F=L.trim().length>0?L.trim():void 0,z=v?.id||`${_}-label`,W=m&&(0,Xr.jsx)(bT,{labelElement:x,id:z,htmlFor:R,required:A,...D,...v,children:m},"label"),B=$&&(0,Xr.jsx)(pT,{...b,...D,size:b?.size||D.size,id:b?.id||N,children:g},"description"),H=(0,Xr.jsx)(a.Fragment,{children:p(O)},"input"),Y=I&&(0,a.createElement)(yT,{...w,...D,size:w?.size||D.size,key:"error",id:w?.id||T},y),U=h.map((e=>{switch(e){case"label":return W;case"input":return H;case"description":return B;case"error":return Y;default:return null}}));return(0,Xr.jsx)(lT,{value:{getStyles:M,describedBy:F,inputId:R,labelId:z,...OT(h,{hasDescription:$,hasError:I})},children:(0,Xr.jsx)(MC,{ref:t,variant:d,size:u,mod:[{error:!!y},E],...M("root"),...C,children:U})})}));PT.classes=uT,PT.displayName="@mantine/core/InputWrapper";const kT={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},ET=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":DC(t.size,"input-height"),"--input-fz":TC(t.size),"--input-radius":void 0===t.radius?void 0:AC(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?DE(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?DE(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?DC(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),CT=IC(((e,t)=>{const n=VE("Input",kT,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,required:l,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:f,error:p,disabled:h,leftSection:m,leftSectionProps:y,leftSectionWidth:g,rightSection:v,rightSectionProps:b,rightSectionWidth:w,rightSectionPointerEvents:x,leftSectionPointerEvents:O,variant:S,vars:j,pointer:P,multiline:k,radius:E,id:C,withAria:M,withErrorStyles:D,mod:_,inputSize:A,__clearSection:T,__clearable:N,__defaultRightSection:R,...I}=n,{styleProps:$,rest:L}=vC(I),F=cT(),z=lC({name:["Input",c],props:u||n,classes:uT,className:o,style:a,classNames:r,styles:i,unstyled:s,stylesCtx:{offsetBottom:F?.offsetBottom,offsetTop:F?.offsetTop},rootSelector:"wrapper",vars:j,varsResolver:ET}),W=M?{required:l,disabled:h,"aria-invalid":!!p,"aria-describedby":F?.describedBy,id:F?.inputId||C}:{},B=v||N&&T||R;return(0,Xr.jsx)(KA,{value:{size:d||"sm"},children:(0,Xr.jsxs)(MC,{...z("wrapper"),...$,...f,mod:[{error:!!p&&D,pointer:P,disabled:h,multiline:k,"data-with-right-section":!!B,"data-with-left-section":!!m},_],variant:S,size:d,children:[m&&(0,Xr.jsx)("div",{...y,"data-position":"left",...z("section",{className:y?.className,style:y?.style}),children:m}),(0,Xr.jsx)(MC,{component:"input",...L,...W,ref:t,required:l,mod:{disabled:h,error:!!p&&D},variant:S,__size:A,...z("input")}),B&&(0,Xr.jsx)("div",{...b,"data-position":"right",...z("section",{className:b?.className,style:b?.style}),children:B})]})})}));CT.classes=uT,CT.Wrapper=PT,CT.Label=bT,CT.Error=yT,CT.Description=pT,CT.Placeholder=xT,CT.ClearButton=sT,CT.displayName="@mantine/core/Input";const MT=(0,a.forwardRef)((({size:e,onMouseDown:t,onClick:n,onClear:r,...o},a)=>(0,Xr.jsx)(CT.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{r(),n?.(e)}})));MT.displayName="@mantine/core/ComboboxClearButton";const DT={},_T=kE(((e,t)=>{const{classNames:n,styles:r,className:o,style:a,hidden:i,...s}=VE("ComboboxDropdown",DT,e),l=YA();return(0,Xr.jsx)(BA.Dropdown,{...s,ref:t,role:"presentation","data-hidden":i||void 0,...l.getStyles("dropdown",{className:o,style:a,classNames:n,styles:r})})}));_T.classes=UA,_T.displayName="@mantine/core/ComboboxDropdown";const AT={refProp:"ref"},TT=kE(((e,t)=>{const{children:n,refProp:r}=VE("ComboboxDropdownTarget",AT,e);if(YA(),!pD(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,Xr.jsx)(BA.Target,{ref:t,refProp:r,children:n})}));TT.displayName="@mantine/core/ComboboxDropdownTarget";const NT={},RT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ComboboxEmpty",NT,e),l=YA();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:a,style:o}),...s})}));function IT({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:i}){const s=YA(),[l,c]=(0,a.useState)(null);return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!(!s.store.listId||!s.store.dropdownOpened)||void 0,"aria-controls":s.store.dropdownOpened?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:n=>{if(e?.(n),!s.readOnly&&t){if(n.nativeEvent.isComposing)return;if("ArrowDown"===n.nativeEvent.code&&(n.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===n.nativeEvent.code&&(n.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===n.nativeEvent.code||"NumpadEnter"===n.nativeEvent.code){if(229===n.nativeEvent.keyCode)return;const e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&-1!==e?(n.preventDefault(),s.store.clickSelectedOption()):"button"===o&&(n.preventDefault(),s.store.openDropdown("keyboard"))}"Escape"===n.key&&s.store.closeDropdown("keyboard"),"Space"===n.nativeEvent.code&&"button"===o&&(n.preventDefault(),s.store.toggleDropdown("keyboard"))}}}}RT.classes=UA,RT.displayName="@mantine/core/ComboboxEmpty";const $T={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},LT=kE(((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=VE("ComboboxEventsTarget",$T,e);if(!pD(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=YA(),f=IT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return(0,a.cloneElement)(n,{...f,...u,[r]:FM(t,d.store.targetRef,OD(n))})}));LT.displayName="@mantine/core/ComboboxEventsTarget";const FT={},zT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ComboboxFooter",FT,e),l=YA();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:o,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})}));zT.classes=UA,zT.displayName="@mantine/core/ComboboxFooter";const WT={},BT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,children:s,label:l,...c}=VE("ComboboxGroup",WT,e),u=YA();return(0,Xr.jsxs)(MC,{ref:t,...u.getStyles("group",{className:r,classNames:n,style:o,styles:a}),...c,children:[l&&(0,Xr.jsx)("div",{...u.getStyles("groupLabel",{classNames:n,styles:a}),children:l}),s]})}));BT.classes=UA,BT.displayName="@mantine/core/ComboboxGroup";const HT={},YT=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ComboboxHeader",HT,e),l=YA();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:o,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})}));function UT({value:e,valuesDivider:t=",",...n}){return(0,Xr.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}YT.classes=UA,YT.displayName="@mantine/core/ComboboxHeader",UT.displayName="@mantine/core/ComboboxHiddenInput";const VT={},qT=kE(((e,t)=>{const n=VE("ComboboxOption",VT,e),{classNames:r,className:o,style:i,styles:s,vars:l,onClick:c,id:u,active:d,onMouseDown:f,onMouseOver:p,disabled:h,selected:m,mod:y,...g}=n,v=YA(),b=(0,a.useId)(),w=u||b;return(0,Xr.jsx)(MC,{...v.getStyles("option",{className:o,classNames:r,styles:s,style:i}),...g,ref:t,id:w,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":h,"combobox-selected":m},y],role:"option",onClick:e=>{h?e.preventDefault():(v.onOptionSubmit?.(n.value,n),c?.(e))},onMouseDown:e=>{e.preventDefault(),f?.(e)},onMouseOver:e=>{v.resetSelectionOnOptionHover&&v.store.resetSelectedOption(),p?.(e)}})}));qT.classes=UA,qT.displayName="@mantine/core/ComboboxOption";const GT={},XT=kE(((e,t)=>{const n=VE("ComboboxOptions",GT,e),{classNames:r,className:o,style:i,styles:s,id:l,onMouseDown:c,labelledBy:u,...d}=n,f=YA(),p=bM(l);return(0,a.useEffect)((()=>{f.store.setListId(p)}),[p]),(0,Xr.jsx)(MC,{ref:t,...f.getStyles("options",{className:o,style:i,classNames:r,styles:s}),...d,id:p,role:"listbox","aria-labelledby":u,onMouseDown:e=>{e.preventDefault(),c?.(e)}})}));XT.classes=UA,XT.displayName="@mantine/core/ComboboxOptions";const KT={withAriaAttributes:!0,withKeyboardNavigation:!0},ZT=kE(((e,t)=>{const n=VE("ComboboxSearch",KT,e),{classNames:r,styles:o,unstyled:a,vars:i,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:c,size:u,...d}=n,f=YA(),p=f.getStyles("search"),h=IT({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return(0,Xr.jsx)(CT,{ref:FM(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},o],size:u||f.size,...h,...d,__staticSelector:"Combobox"})}));ZT.classes=UA,ZT.displayName="@mantine/core/ComboboxSearch";const QT={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},JT=kE(((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=VE("ComboboxTarget",QT,e);if(!pD(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=YA(),f=IT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),p=(0,a.cloneElement)(n,{...f,...u});return(0,Xr.jsx)(BA.Target,{ref:FM(t,d.store.targetRef),children:p})}));function eN({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:o,loop:i=!0,scrollBehavior:s="instant"}={}){const[l,c]=jM({value:t,defaultValue:e,finalValue:!1,onChange:n}),u=(0,a.useRef)(null),d=(0,a.useRef)(-1),f=(0,a.useRef)(null),p=(0,a.useRef)(null),h=(0,a.useRef)(-1),m=(0,a.useRef)(-1),y=(0,a.useRef)(-1),g=(0,a.useCallback)(((e="unknown")=>{l||(c(!0),o?.(e))}),[c,o,l]),v=(0,a.useCallback)(((e="unknown")=>{l&&(c(!1),r?.(e))}),[c,r,l]),b=(0,a.useCallback)(((e="unknown")=>{l?v(e):g(e)}),[v,g,l]),w=(0,a.useCallback)((()=>{const e=document.querySelector(`#${u.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")}),[]),x=(0,a.useCallback)((e=>{const t=document.getElementById(u.current),n=t?.querySelectorAll("[data-combobox-option]");if(!n)return null;const r=e>=n.length?0:e<0?n.length-1:e;return d.current=r,n?.[r]&&!n[r].hasAttribute("data-combobox-disabled")?(w(),n[r].setAttribute("data-combobox-selected","true"),n[r].setAttribute("aria-selected","true"),n[r].scrollIntoView({block:"nearest",behavior:s}),n[r].id):null}),[s,w]),O=(0,a.useCallback)((()=>{const e=document.querySelector(`#${u.current} [data-combobox-active]`);if(e){const t=document.querySelectorAll(`#${u.current} [data-combobox-option]`),n=Array.from(t).findIndex((t=>t===e));return x(n)}return x(0)}),[x]),S=(0,a.useCallback)((()=>x(function(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(n)for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i))),[x,i]),j=(0,a.useCallback)((()=>x(function(e,t,n){for(let n=e-1;n>=0;n-=1)if(!t[n].hasAttribute("data-combobox-disabled"))return n;if(n)for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i))),[x,i]),P=(0,a.useCallback)((()=>x(function(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}(document.querySelectorAll(`#${u.current} [data-combobox-option]`)))),[x]),k=(0,a.useCallback)(((e="selected",t)=>{y.current=window.setTimeout((()=>{const n=document.querySelectorAll(`#${u.current} [data-combobox-option]`),r=Array.from(n).findIndex((t=>t.hasAttribute(`data-combobox-${e}`)));d.current=r,t?.scrollIntoView&&n[r]?.scrollIntoView({block:"nearest",behavior:s})}),0)}),[]),E=(0,a.useCallback)((()=>{d.current=-1,w()}),[w]),C=(0,a.useCallback)((()=>{const e=document.querySelectorAll(`#${u.current} [data-combobox-option]`),t=e?.[d.current];t?.click()}),[]),M=(0,a.useCallback)((e=>{u.current=e}),[]),D=(0,a.useCallback)((()=>{h.current=window.setTimeout((()=>f.current.focus()),0)}),[]),_=(0,a.useCallback)((()=>{m.current=window.setTimeout((()=>p.current.focus()),0)}),[]),A=(0,a.useCallback)((()=>d.current),[]);return(0,a.useEffect)((()=>()=>{window.clearTimeout(h.current),window.clearTimeout(m.current),window.clearTimeout(y.current)}),[]),{dropdownOpened:l,openDropdown:g,closeDropdown:v,toggleDropdown:b,selectedOptionIndex:d.current,getSelectedOptionIndex:A,selectOption:x,selectFirstOption:P,selectActiveOption:O,selectNextOption:S,selectPreviousOption:j,resetSelectedOption:E,updateSelectedOptionIndex:k,listId:u.current,setListId:M,clickSelectedOption:C,searchRef:f,focusSearchInput:D,targetRef:p,focusTarget:_}}JT.displayName="@mantine/core/ComboboxTarget";const tN={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},nN=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":TC(t),"--combobox-option-padding":DC(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===n?void 0:DE(n),"--combobox-option-fz":TC(t),"--combobox-option-padding":DC(t,"combobox-option-padding")}});function rN(e){const t=VE("Combobox",tN,e),{classNames:n,styles:r,unstyled:o,children:a,store:i,vars:s,onOptionSubmit:l,onClose:c,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...m}=t,y=eN(),g=i||y,v=lC({name:p||"Combobox",classes:UA,props:t,classNames:n,styles:r,unstyled:o,vars:s,varsResolver:nN});return(0,Xr.jsx)(HA,{value:{getStyles:v,store:g,onOptionSubmit:l,size:u,resetSelectionOnOptionHover:f,readOnly:h},children:(0,Xr.jsx)(BA,{opened:g.dropdownOpened,...m,onChange:e=>!e&&(c?.(),void g.closeDropdown()),withRoles:!1,unstyled:o,children:a})})}function oN({size:e,style:t,...n}){const r=void 0!==e?{width:DE(e),height:DE(e),...t}:t;return(0,Xr.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:(0,Xr.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}rN.extend=e=>e,rN.classes=UA,rN.displayName="@mantine/core/Combobox",rN.Target=JT,rN.Dropdown=_T,rN.Options=XT,rN.Option=qT,rN.Search=ZT,rN.Empty=RT,rN.Chevron=GA,rN.Footer=zT,rN.Header=YT,rN.EventsTarget=LT,rN.DropdownTarget=TT,rN.Group=BT,rN.ClearButton=MT,rN.HiddenInput=UT;const[aN,iN]=ZM("ScrollArea.Root component was not found in tree");function sN(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{t.current=e})),(0,a.useMemo)((()=>(...e)=>t.current?.(...e)),[])}function lN(e,t){const n=sN(t);gM((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const cN=(0,a.forwardRef)(((e,t)=>{const{style:n,...r}=e,o=iN(),[i,s]=(0,a.useState)(0),[l,c]=(0,a.useState)(0),u=Boolean(i&&l);return lN(o.scrollbarX,(()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),c(e)})),lN(o.scrollbarY,(()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),s(e)})),u?(0,Xr.jsx)("div",{...r,ref:t,style:{...n,width:i,height:l}}):null})),uN=(0,a.forwardRef)(((e,t)=>{const n=iN(),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,Xr.jsx)(cN,{...e,ref:t}):null})),dN={scrollHideDelay:1e3,type:"hover"},fN=(0,a.forwardRef)(((e,t)=>{const n=VE("ScrollAreaRoot",dN,e),{type:r,scrollHideDelay:o,scrollbars:i,...s}=n,[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),[f,p]=(0,a.useState)(null),[h,m]=(0,a.useState)(null),[y,g]=(0,a.useState)(null),[v,b]=(0,a.useState)(0),[w,x]=(0,a.useState)(0),[O,S]=(0,a.useState)(!1),[j,P]=(0,a.useState)(!1),k=FM(t,(e=>c(e)));return(0,Xr.jsx)(aN,{value:{type:r,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:O,onScrollbarXEnabledChange:S,scrollbarY:y,onScrollbarYChange:g,scrollbarYEnabled:j,onScrollbarYEnabledChange:P,onCornerWidthChange:b,onCornerHeightChange:x},children:(0,Xr.jsx)(MC,{...s,ref:k,__vars:{"--sa-corner-width":"xy"!==i?"0px":`${v}px`,"--sa-corner-height":"xy"!==i?"0px":`${w}px`}})})}));fN.displayName="@mantine/core/ScrollAreaRoot";const pN=()=>{};function hN(e,t){const n="number"==typeof t?t:t.delay,r="number"!=typeof t&&t.flushOnUnmount,o=sN(e),i=(0,a.useRef)(0),s=Object.assign((0,a.useCallback)(((...e)=>{window.clearTimeout(i.current);const t=()=>{0!==i.current&&(i.current=0,o(...e))};s.flush=t,i.current=window.setTimeout(t,n)}),[o,n]),{flush:pN});return(0,a.useEffect)((()=>()=>{window.clearTimeout(i.current),r&&s.flush()}),[s,r]),s}function mN(e,t){const n=e/t;return Number.isNaN(n)?0:n}function yN(e){const t=mN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function gN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function vN(e,t,n="ltr"){const r=yN(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return gN([0,i],[0,s])(l)}function bN(e,t){return e>0&&e<t}function wN(e){return e?parseInt(e,10):0}function xN(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e?.(r),!1!==n&&r.defaultPrevented||t?.(r)}}const[ON,SN]=ZM("ScrollAreaScrollbar was not found in tree"),jN=(0,a.forwardRef)(((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,p=iN(),[h,m]=(0,a.useState)(null),y=FM(t,(e=>m(e))),g=(0,a.useRef)(null),v=(0,a.useRef)(""),{viewport:b}=p,w=n.content-n.viewport,x=sN(u),O=sN(l),S=hN(d,10),j=e=>{if(g.current){const t=e.clientX-g.current.left,n=e.clientY-g.current.top;c({x:t,y:n})}};return(0,a.useEffect)((()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&x(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[b,h,w,x]),(0,a.useEffect)(O,[n,O]),lN(h,S),lN(p.content,S),(0,Xr.jsx)(ON,{value:{scrollbar:h,hasThumb:r,onThumbChange:sN(o),onThumbPointerUp:sN(i),onThumbPositionChange:O,onThumbPointerDown:sN(s)},children:(0,Xr.jsx)("div",{...f,ref:y,"data-mantine-scrollbar":!0,style:{position:"absolute",...f.style},onPointerDown:xN(e.onPointerDown,(e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j(e))})),onPointerMove:xN(e.onPointerMove,j),onPointerUp:xN(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))})),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,g.current=null}})})})),PN=(0,a.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...i}=e,s=iN(),[l,c]=(0,a.useState)(),u=(0,a.useRef)(null),d=FM(t,u,s.onScrollbarXChange);return(0,a.useEffect)((()=>{u.current&&c(getComputedStyle(u.current))}),[u]),(0,Xr.jsx)(jN,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...o,"--sa-thumb-width":`${yN(n)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(s.viewport){const r=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),bN(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:wN(l.paddingLeft),paddingEnd:wN(l.paddingRight)}})}})}));PN.displayName="@mantine/core/ScrollAreaScrollbarX";const kN=(0,a.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...i}=e,s=iN(),[l,c]=(0,a.useState)(),u=(0,a.useRef)(null),d=FM(t,u,s.onScrollbarYChange);return(0,a.useEffect)((()=>{u.current&&c(window.getComputedStyle(u.current))}),[]),(0,Xr.jsx)(jN,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${yN(n)}px`,...o},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(s.viewport){const r=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),bN(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:wN(l.paddingTop),paddingEnd:wN(l.paddingBottom)}})}})}));kN.displayName="@mantine/core/ScrollAreaScrollbarY";const EN=(0,a.forwardRef)(((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=AM(),i=iN(),s=(0,a.useRef)(null),l=(0,a.useRef)(0),[c,u]=(0,a.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=mN(c.viewport,c.content),f={...r,sizes:c,onSizesChange:u,hasThumb:Boolean(d>0&&d<1),onThumbChange:e=>{s.current=e},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:e=>{l.current=e}},p=(e,t)=>function(e,t,n,r="ltr"){const o=yN(n),a=t||o/2,i=o-a,s=n.scrollbar.paddingStart+a,l=n.scrollbar.size-n.scrollbar.paddingEnd-i,c=n.content-n.viewport;return gN([s,l],"ltr"===r?[0,c]:[-1*c,0])(e)}(e,l.current,c,t);return"horizontal"===n?(0,Xr.jsx)(PN,{...f,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=vN(i.viewport.scrollLeft,c,o);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=p(e,o))}}):"vertical"===n?(0,Xr.jsx)(kN,{...f,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const e=vN(i.viewport.scrollTop,c);0===c.scrollbar.size?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=p(e))}}):null}));EN.displayName="@mantine/core/ScrollAreaScrollbarVisible";const CN=(0,a.forwardRef)(((e,t)=>{const n=iN(),{forceMount:r,...o}=e,[i,s]=(0,a.useState)(!1),l="horizontal"===e.orientation,c=hN((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?e:t)}}),10);return lN(n.viewport,c),lN(n.content,c),r||i?(0,Xr.jsx)(EN,{"data-state":i?"visible":"hidden",...o,ref:t}):null}));CN.displayName="@mantine/core/ScrollAreaScrollbarAuto";const MN=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=iN(),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const{scrollArea:e}=o;let t=0;if(e){const n=()=>{window.clearTimeout(t),s(!0)},r=()=>{t=window.setTimeout((()=>s(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),n||i?(0,Xr.jsx)(CN,{"data-state":i?"visible":"hidden",...r,ref:t}):null}));MN.displayName="@mantine/core/ScrollAreaScrollbarHover";const DN=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=iN(),i="horizontal"===e.orientation,[s,l]=(0,a.useState)("hidden"),c=hN((()=>l("idle")),100);return(0,a.useEffect)((()=>{if("idle"===s){const e=window.setTimeout((()=>l("hidden")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,o.scrollHideDelay]),(0,a.useEffect)((()=>{const{viewport:e}=o,t=i?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("scrolling"),c()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[o.viewport,i,c]),n||"hidden"!==s?(0,Xr.jsx)(EN,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:xN(e.onPointerEnter,(()=>l("interacting"))),onPointerLeave:xN(e.onPointerLeave,(()=>l("idle")))}):null})),_N=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=iN(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return(0,a.useEffect)((()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)})),[l,i,s]),"hover"===o.type?(0,Xr.jsx)(MN,{...r,ref:t,forceMount:n}):"scroll"===o.type?(0,Xr.jsx)(DN,{...r,ref:t,forceMount:n}):"auto"===o.type?(0,Xr.jsx)(CN,{...r,ref:t,forceMount:n}):"always"===o.type?(0,Xr.jsx)(EN,{...r,ref:t}):null}));_N.displayName="@mantine/core/ScrollAreaScrollbar";const AN=(0,a.forwardRef)(((e,t)=>{const{style:n,...r}=e,o=iN(),i=SN(),{onThumbPositionChange:s}=i,l=FM(t,(e=>i.onThumbChange(e))),c=(0,a.useRef)(void 0),u=hN((()=>{c.current&&(c.current(),c.current=void 0)}),100);return(0,a.useEffect)((()=>{const{viewport:e}=o;if(e){const t=()=>{if(u(),!c.current){const t=function(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),(0,Xr.jsx)("div",{"data-state":i.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:xN(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:xN(e.onPointerUp,i.onThumbPointerUp)})}));AN.displayName="@mantine/core/ScrollAreaThumb";const TN=(0,a.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=SN();return n||o.hasThumb?(0,Xr.jsx)(AN,{ref:t,...r}):null}));TN.displayName="@mantine/core/ScrollAreaThumb";const NN=(0,a.forwardRef)((({children:e,style:t,...n},r)=>{const o=iN(),a=FM(r,o.onViewportChange);return(0,Xr.jsx)(MC,{...n,ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,Xr.jsx)("div",{style:{minWidth:"100%",display:"table"},ref:o.onContentChange,children:e})})}));NN.displayName="@mantine/core/ScrollAreaViewport";var RN={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const IN={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},$N=(e,{scrollbarSize:t,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":DE(t),"--scrollarea-over-scroll-behavior":n}}),LN=kE(((e,t)=>{const n=VE("ScrollArea",IN,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:u,type:d,scrollHideDelay:f,viewportProps:p,viewportRef:h,onScrollPositionChange:m,children:y,offsetScrollbars:g,scrollbars:v,onBottomReached:b,onTopReached:w,overscrollBehavior:x,...O}=n,[S,j]=(0,a.useState)(!1),[P,k]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),M=lC({name:"ScrollArea",props:n,classes:RN,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:u,varsResolver:$N}),D=(0,a.useRef)(null),_=(A=[h,D],a.useMemo((()=>A.every((e=>null==e))?null:e=>{A.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}),A));var A;return(0,a.useEffect)((()=>{if(!D.current)return;if("present"!==g)return;const e=D.current,t=new ResizeObserver((()=>{const{scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:o}=e;k(t>n),C(r>o)}));return t.observe(e),()=>t.disconnect()}),[D,g]),(0,Xr.jsxs)(fN,{type:"never"===d?"always":d,scrollHideDelay:f,ref:t,scrollbars:v,...M("root"),...O,children:[(0,Xr.jsx)(NN,{...p,...M("viewport",{style:p?.style}),ref:_,"data-offset-scrollbars":!0===g?"xy":g||void 0,"data-scrollbars":v||void 0,"data-horizontal-hidden":"present"!==g||E?void 0:"true","data-vertical-hidden":"present"!==g||P?void 0:"true",onScroll:e=>{p?.onScroll?.(e),m?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});const{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t-(n-r)>=0&&b?.(),0===t&&w?.()},children:y}),("xy"===v||"x"===v)&&(0,Xr.jsx)(_N,{...M("scrollbar"),orientation:"horizontal","data-hidden":"never"===d||"present"===g&&!E||void 0,forceMount:!0,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:(0,Xr.jsx)(TN,{...M("thumb")})}),("xy"===v||"y"===v)&&(0,Xr.jsx)(_N,{...M("scrollbar"),orientation:"vertical","data-hidden":"never"===d||"present"===g&&!P||void 0,forceMount:!0,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:(0,Xr.jsx)(TN,{...M("thumb")})}),(0,Xr.jsx)(uN,{...M("corner"),"data-hovered":S||void 0,"data-hidden":"never"===d||void 0})]})}));LN.displayName="@mantine/core/ScrollArea";const FN=kE(((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:a,scrollHideDelay:i,type:s,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,scrollbars:m,style:y,vars:g,onBottomReached:v,onTopReached:b,...w}=VE("ScrollAreaAutosize",IN,e);return(0,Xr.jsx)(MC,{...w,ref:t,style:[{display:"flex",overflow:"auto"},y],children:(0,Xr.jsx)(MC,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,Xr.jsx)(LN,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:a,type:s,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,vars:g,scrollbars:m,onBottomReached:v,onTopReached:b,children:n})})})}));function zN(e){return"group"in e}function WN({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),o=[];for(let a=0;a<e.length;a+=1){const i=e[a];if(o.length===n)return o;zN(i)&&o.push({group:i.group,items:WN({options:i.items,search:t,limit:n-o.length})}),zN(i)||i.label.toLowerCase().includes(r)&&o.push(i)}return o}function BN(e,t=new Set){if(Array.isArray(e))for(const n of e)if(zN(n))BN(n.items,t);else{if(void 0===n.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!=typeof n.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got "+typeof n.value);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function HN({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:o,renderOption:a}){if(!zN(e)){const i=function(e,t){return Array.isArray(e)?e.includes(t):e===t}(n,e.value),s=t&&i&&(0,Xr.jsx)(oN,{className:UA.optionsDropdownCheckIcon}),l=(0,Xr.jsxs)(Xr.Fragment,{children:["left"===r&&s,(0,Xr.jsx)("span",{children:e.label}),"right"===r&&s]});return(0,Xr.jsx)(rN.Option,{value:e.value,disabled:e.disabled,className:c({[UA.optionsDropdownOption]:!o}),"data-reverse":"right"===r||void 0,"data-checked":i||void 0,"aria-selected":i,active:i,children:"function"==typeof a?a({option:e,checked:i}):l})}const i=e.items.map((e=>(0,Xr.jsx)(HN,{data:e,value:n,unstyled:o,withCheckIcon:t,checkIconPosition:r,renderOption:a},e.value)));return(0,Xr.jsx)(rN.Group,{label:e.group,children:i})}function YN({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:o,limit:a,maxDropdownHeight:i,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:c=!1,value:u,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:m,scrollAreaProps:y,"aria-label":g}){BN(e);const v="string"==typeof o?(r||WN)({options:e,search:l?o:"",limit:a??1/0}):e,b=function(e){if(0===e.length)return!0;for(const t of e){if(!("group"in t))return!1;if(t.items.length>0)return!1}return!0}(v),w=v.map((e=>(0,Xr.jsx)(HN,{data:e,withCheckIcon:c,value:u,checkIconPosition:d,unstyled:p,renderOption:m},zN(e)?e.group:e.value)));return(0,Xr.jsx)(rN.Dropdown,{hidden:t||n&&b,"data-composed":!0,children:(0,Xr.jsxs)(rN.Options,{labelledBy:h,"aria-label":g,children:[s?(0,Xr.jsx)(LN.Autosize,{mah:i??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:w}):w,b&&f&&(0,Xr.jsx)(rN.Empty,{children:f})]})})}LN.classes=RN,FN.displayName="@mantine/core/ScrollAreaAutosize",FN.classes=RN,LN.Autosize=FN;const UN={__staticSelector:"InputBase",withAria:!0},VN=IC(((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=function(e,t,n){const r=VE("InputBase",t,n),{label:o,description:a,error:i,required:s,classNames:l,styles:c,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:m,descriptionProps:y,wrapperProps:g,id:v,size:b,style:w,inputContainer:x,inputWrapperOrder:O,withAsterisk:S,variant:j,vars:P,mod:k,...E}=r,{styleProps:C,rest:M}=vC(E);return{...M,classNames:l,styles:c,unstyled:d,wrapperProps:{...{label:o,description:a,error:i,required:s,classNames:l,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:m,descriptionProps:y,unstyled:d,styles:c,size:b,style:w,inputContainer:x,inputWrapperOrder:O,withAsterisk:S,variant:j,id:v,mod:k,...g},...C},inputProps:{required:s,classNames:l,styles:c,unstyled:d,size:b,__staticSelector:f,__stylesApiProps:p||r,error:i,variant:j,id:v}}}(0,UN,e);return(0,Xr.jsx)(CT.Wrapper,{...r,children:(0,Xr.jsx)(CT,{...n,...o,ref:t})})}));VN.classes={...CT.classes,...CT.Wrapper.classes},VN.displayName="@mantine/core/InputBase";const qN={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},GN=kE(((e,t)=>{const n=VE("Select",qN,e),{classNames:r,styles:o,unstyled:i,vars:s,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:u,onDropdownOpen:d,onFocus:f,onBlur:p,onClick:h,onChange:m,data:y,value:g,defaultValue:v,selectFirstOptionOnChange:b,onOptionSubmit:w,comboboxProps:x,readOnly:O,disabled:S,filter:j,limit:P,withScrollArea:k,maxDropdownHeight:E,size:C,searchable:M,rightSection:D,checkIconPosition:_,withCheckIcon:A,nothingFoundMessage:T,name:N,form:R,searchValue:I,defaultSearchValue:$,onSearchChange:L,allowDeselect:F,error:z,rightSectionPointerEvents:W,id:B,clearable:H,clearButtonProps:Y,hiddenInputProps:U,renderOption:V,onClear:q,autoComplete:G,scrollAreaProps:X,__defaultRightSection:K,__clearSection:Z,__clearable:Q,chevronColor:J,...ee}=n,te=(0,a.useMemo)((()=>kM(y)),[y]),ne=(0,a.useMemo)((()=>EM(te)),[te]),re=bM(B),[oe,ae,ie]=jM({value:g,defaultValue:v,finalValue:null,onChange:m}),se="string"==typeof oe?ne[oe]:void 0,le=function(e){const t=(0,a.useRef)(void 0);return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}(se),[ce,ue]=jM({value:I,defaultValue:$,finalValue:se?se.label:"",onChange:L}),de=eN({opened:l,defaultOpened:c,onDropdownOpen:()=>{d?.(),de.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),de.resetSelectedOption()}}),fe=e=>{ue(e),de.resetSelectedOption()},{resolvedClassNames:pe,resolvedStyles:he}=KE({props:n,styles:o,classNames:r});(0,a.useEffect)((()=>{b&&de.selectFirstOption()}),[b,ce]),(0,a.useEffect)((()=>{null===g&&fe(""),"string"!=typeof g||!se||le?.value===se.value&&le?.label===se.label||fe(se.label)}),[g,se]);const me=(0,Xr.jsx)(rN.ClearButton,{...Y,onClear:()=>{ae(null,null),fe(""),q?.()}}),ye=H&&!!oe&&!S&&!O;return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(rN,{store:de,__staticSelector:"Select",classNames:pe,styles:he,unstyled:i,readOnly:O,onOptionSubmit:e=>{w?.(e);const t=F&&ne[e].value===oe?null:ne[e],n=t?t.value:null;n!==oe&&ae(n,t),!ie&&fe("string"==typeof n&&t?.label||""),de.closeDropdown()},size:C,...x,children:[(0,Xr.jsx)(rN.Target,{targetType:M?"input":"button",autoComplete:G,children:(0,Xr.jsx)(VN,{id:re,ref:t,__defaultRightSection:(0,Xr.jsx)(rN.Chevron,{size:C,error:z,unstyled:i,color:J}),__clearSection:me,__clearable:ye,rightSection:D,rightSectionPointerEvents:W||(ye?"all":"none"),...ee,size:C,__staticSelector:"Select",disabled:S,readOnly:O||!M,value:ce,onChange:e=>{fe(e.currentTarget.value),de.openDropdown(),b&&de.selectFirstOption()},onFocus:e=>{M&&de.openDropdown(),f?.(e)},onBlur:e=>{M&&de.closeDropdown(),fe(null!=oe&&ne[oe]?.label||""),p?.(e)},onClick:e=>{M?de.openDropdown():de.toggleDropdown(),h?.(e)},classNames:pe,styles:he,unstyled:i,pointer:!M,error:z})}),(0,Xr.jsx)(YN,{data:te,hidden:O||S,filter:j,search:ce,limit:P,hiddenWhenEmpty:!T,withScrollArea:k,maxDropdownHeight:E,filterOptions:M&&se?.label!==ce,value:oe,checkIconPosition:_,withCheckIcon:A,nothingFoundMessage:T,unstyled:i,labelId:ee.label?`${re}-label`:void 0,"aria-label":ee.label?void 0:ee["aria-label"],renderOption:V,scrollAreaProps:X})]}),(0,Xr.jsx)(rN.HiddenInput,{value:oe,name:N,form:R,disabled:S,...U})]})}));GN.classes={...VN.classes,...rN.classes},GN.displayName="@mantine/core/Select";const XN=()=>{const e=`${YooAnalytics.assetsURL}images/up-trend.png`,t=`${YooAnalytics.assetsURL}images/down-trend.png`,[n,o]=(0,r.useState)(!0),[a,i]=(0,r.useState)([]),[s,l]=(0,r.useState)([]),[c,u]=(0,r.useState)([]),[d,f]=(0,r.useState)([]),[p,h]=(0,r.useState)([]),[m,y]=(0,r.useState)([]),[g,v]=(0,r.useState)(3e4),[b,w]=(0,r.useState)(!1),[x,O]=(0,r.useState)((0,ua.__)("Select Date Range","yooanalytics")),[S,j]=(0,r.useState)("days"),[P,k]=(0,r.useState)({visitors:0,views:0,online:0,purchase:0}),[E,C]=(0,r.useState)({startDate:new Date,endDate:new Date,key:"selection"}),[M,D]=(0,r.useState)("bar"),_={post:"📬",page:"📄",product:"🛒"},A=[{name:"ID",selector:e=>_[e.type]?(0,Xr.jsx)(ic,{title:e.page_id,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",children:_[e.type]}):(0,Xr.jsx)(ic,{title:e.page_id,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",children:_.post}),grow:0},{name:"Title",selector:e=>(0,Xr.jsx)(ic,{title:e.page_url,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",onClick:()=>window.open(e.page_url,"_blank"),children:e.title}),sortable:!0},{name:"Visitors",selector:e=>e.visitors_count,sortable:!0,grow:0},{name:"Views",selector:e=>e.views_count,sortable:!0,grow:0}];(0,r.useEffect)((()=>{let e;return T("","",S),g>0&&(e=setInterval((()=>T("","",S)),g)),()=>clearInterval(e)}),[g,S]);const T=async(e="",t="",n=S)=>{o(!0);try{const r=await async function({startDate:e="",endDate:t="",period:n="days"}={}){const r=new URLSearchParams;e&&r.set("start",e),t&&r.set("end",t),n&&r.set("period",n);const o=`${YooAnalytics.restURL}/v1/get-analytics?${r.toString()}`,a=await fetch(o,{headers:Ki});if(!a.ok)throw new Error(`Analytics request failed with status ${a.status}`);return(await a.json()).data}({startDate:e,endDate:t,period:n});r?(r.settings&&r.settings.refresh_interval&&v(r.settings.refresh_interval),k(r.summary),i(r.search_engines),l(r.top_referers),u(r.utm_sources||[]),f(r.utm_mediums||[]),h(r.pages_stats),y(r.datewise_stats)):console.log("fetchAnalytics",r)}catch(e){o(!1)}o(!1)},N=m?.dates?.map(((e,t)=>({date:e,Visitors:parseInt(m?.visitors?.[t]||0),Views:parseInt(m?.views?.[t]||0)})))||[];return(0,Xr.jsx)("div",{className:"yoo-body",children:n?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)("div",{className:"yoo-dashboard-filter",children:(0,Xr.jsx)(Xi,{count:1,height:56,width:"100%"})}),(0,Xr.jsxs)(Ui.Flex,{children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:129,width:"100%"})})]}),(0,Xr.jsxs)(Ui.Flex,{className:"yoo-dashboard-charts",children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:350,width:"100%"})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"100%"},children:(0,Xr.jsx)(Xi,{count:1,height:350,width:"100%"})})]}),(0,Xr.jsxs)(Ui.Flex,{className:"yoo-dashboard-logs",align:"start",children:[(0,Xr.jsxs)(Ui.FlexItem,{style:{width:"310%"},children:[(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:50,width:"100%"})]}),(0,Xr.jsx)(Ui.Flex,{direction:"column",style:{width:"100%"},children:(0,Xr.jsxs)(Ui.FlexItem,{style:{width:"100%"},children:[(0,Xr.jsx)(Xi,{count:1,height:252,width:"100%"}),(0,Xr.jsx)(Xi,{count:1,height:252,width:"100%"})]})})]})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)("div",{className:"yoo-dashboard-filter",children:(0,Xr.jsxs)(Ui.Flex,{children:[(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("label",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Date Range","yooanalytics")})}),(0,Xr.jsx)(Ui.__experimentalInputControl,{placeholder:x,className:"yoo-date-range-picker",readOnly:!0,suffix:(0,Xr.jsx)(Ui.__experimentalInputControlSuffixWrapper,{children:"📆"}),onClick:()=>w(!b)}),b&&(0,Xr.jsxs)("div",{className:"yoo-date-range-picker-container",children:[(0,Xr.jsx)(yc,{dateRange:E,onChange:e=>{C(e.selection);let t={year:"numeric",month:"short",day:"numeric"};O(`${e.selection.startDate.toLocaleDateString("en-US",t)} - ${e.selection.endDate.toLocaleDateString("en-US",t)}`),j((0,ua.__)("Selected Range","yooanalytics"))}}),(0,Xr.jsx)("div",{className:"yoo-menu-items-container",children:(0,Xr.jsxs)(Ui.Flex,{children:[(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsx)("button",{className:"yoo-btn yoo-btn-secondary",onClick:()=>w(!1),children:(0,ua.__)("Close")})}),(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsx)("button",{className:"yoo-btn yoo-btn-primary",onClick:async()=>{w(!1);let e=new Date(E.startDate);e=e.getFullYear()+"-"+(e.getMonth()+1).toString().padStart(2,"0")+"-"+e.getDate().toString().padStart(2,"0");let t=new Date(E.endDate);t=t.getFullYear()+"-"+(t.getMonth()+1).toString().padStart(2,"0")+"-"+t.getDate().toString().padStart(2,"0"),await T(e,t,"days")},children:(0,ua.__)("Apply")})})]})})]})]})}),(0,Xr.jsx)(Ui.FlexItem,{children:(0,Xr.jsx)(hc,{sx:{m:1,minWidth:160},size:"small",children:(0,Xr.jsx)(GN,{id:"yoo-auto-refresh",value:g.toString(),label:(0,ua.__)("Refresh Interval (Seconds)"),onChange:e=>(async e=>{let t={refresh_interval:e.target.value};await async function(e){const t=await fetch(`${YooAnalytics.restURL}/v1/update-dashboard`,{headers:Ki,method:"POST",body:JSON.stringify({body:e})});return!!t.ok&&(await t.json()).data}(t)&&v(e.target.value)})({target:{value:parseInt(e)}}),data:[{value:"5000",label:(0,ua.__)("5 Seconds")},{value:"10000",label:(0,ua.__)("10 Seconds")},{value:"30000",label:(0,ua.__)("30 Seconds")},{value:"60000",label:(0,ua.__)("1 Minute")},{value:"300000",label:(0,ua.__)("5 Minutes")},{value:"600000",label:(0,ua.__)("10 Minutes")}]})})})]})}),(0,Xr.jsxs)(Ui.Flex,{className:"yoo-dashboard-stats",children:[(0,Xr.jsxs)(Ui.FlexItem,{className:P.visitors>0?"yoo-stats-box yoo-stats-visitors":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Visitors","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.visitors}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:S})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.visitors>0?e:t,alt:"Stats Trend"})})]})]}),(0,Xr.jsxs)(Ui.FlexItem,{className:P.views>0?"yoo-stats-box yoo-stats-views":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Views","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.views}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:S})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.views>0?e:t,alt:"Stats Trend"})})]})]}),(0,Xr.jsxs)(Ui.FlexItem,{className:P.online>0?"yoo-stats-box yoo-stats-online":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Online","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.online}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:(0,ua.__)("In last 30 minutes","yooanalytics")})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.online>0?e:t,alt:"Stats Trend"})})]})]}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsxs)(Ui.FlexItem,{className:P.purchase>0?"yoo-stats-box yoo-stats-purchase":"yoo-stats-box yoo-stats-down",children:[(0,Xr.jsx)("h4",{children:(0,ua.__)("Purchase","yooanalytics")}),(0,Xr.jsxs)("div",{className:"yoo-stats",children:[(0,Xr.jsxs)("div",{children:[(0,Xr.jsx)("h1",{children:P.purchase}),(0,Xr.jsx)("span",{className:"yoo-stats-text",children:S})]}),(0,Xr.jsx)("div",{children:(0,Xr.jsx)("img",{src:P.purchase>0?e:t,alt:"Stats Trend"})})]})]})]}),(0,Xr.jsxs)(Ui.Flex,{style:{margin:"24px 0",gap:"var(--wp--preset--spacing--lg, 24px)",alignItems:"flex-start"},children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"25%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-search-engines-card",style:0===a.length?{backgroundColor:"#ffebee"}:void 0,children:0===a.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🔍"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No Search Engine data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🔍 ",(0,ua.__)("Search Engines","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Search Engine","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Views","yooanalytics")})})]}),Object.keys(a).map(((e,t)=>{let n=a[t].referer_url,r=(o=n).includes("google")?"Google":o.includes("bing")?"Bing":o.includes("yahoo")?"Yahoo":o.includes("duckduckgo")?"DuckDuckGo":o.includes("yandex")?"Yandex":o.includes("baidu")?"Baidu":"Other";var o;let i=a[t].count;return(0,Xr.jsxs)("tr",{title:n,children:[(0,Xr.jsxs)("td",{children:[(0,Xr.jsx)("img",{src:`${YooAnalytics.assetsURL}images/search-engines/${r}.png`}),r]}),(0,Xr.jsx)("td",{children:i})]})}))]})})]},"0.1")})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"25%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-top-referers-card",style:0===s.length?{backgroundColor:"#ffebee"}:void 0,children:0===s.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🌏"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No Referrers data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["⬇️ ",(0,ua.__)("Top 10 Referrers","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Referrer URL","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Views","yooanalytics")})})]}),Object.keys(s).map(((e,t)=>{let n=s[t].count,r=s[t].referer_url.length>19?s[t].referer_url.substring(0,19)+"...":s[t].referer_url;return(0,Xr.jsxs)("tr",{onClick:()=>window.open(s[t].referer_url,"_blank"),children:[(0,Xr.jsx)("td",{children:(0,Xr.jsxs)(ic,{title:s[t].referer_url,placement:"top",arrow:!0,className:"yoo-dashboard-stats-tooltip",children:["🌏 ",r]})}),(0,Xr.jsx)("td",{children:n})]})}))]})})]},"0.1")})}),YooAnalytics.hasActiveValidLicense?(0,Xr.jsxs)("div",{style:{width:"50%",display:"flex",gap:"var(--wp--preset--spacing--lg, 24px)"},children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-source-card",style:0===c.length?{backgroundColor:"#ffebee"}:void 0,children:0===c.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🔗"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No UTM Source data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🔗 ",(0,ua.__)("UTM Sources","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Source","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Count","yooanalytics")})})]}),c.map(((e,t)=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:e.utm_source||(0,Xr.jsx)("span",{style:{color:"#aaa"},children:(0,ua.__)("(none)","yooanalytics")})}),(0,Xr.jsx)("td",{children:e.count})]},t)))]})})]},"0.2")})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-medium-card",style:0===d.length?{backgroundColor:"#ffebee"}:void 0,children:0===d.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"🛤️"}),(0,Xr.jsx)("h4",{children:(0,ua.__)("No UTM Medium data found!","yooanalytics")})]}):(0,Xr.jsxs)(React.Fragment,{children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🛤️ ",(0,ua.__)("UTM Mediums","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsxs)("table",{width:"100%",children:[(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Medium","yooanalytics")})}),(0,Xr.jsx)("td",{children:(0,Xr.jsx)("b",{children:(0,ua.__)("Count","yooanalytics")})})]}),d.map(((e,t)=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:e.utm_medium||(0,Xr.jsx)("span",{style:{color:"#aaa"},children:(0,ua.__)("(none)","yooanalytics")})}),(0,Xr.jsx)("td",{children:e.count})]},t)))]})})]},"0.3")})})]}):(0,Xr.jsxs)("div",{style:{width:"50%",display:"flex",gap:"var(--wp--preset--spacing--lg, 24px)",position:"relative"},children:[(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-source-card",style:{filter:"blur(4px)",pointerEvents:"none"},children:(0,Xr.jsxs)("div",{style:{padding:16},children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🔗 ",(0,ua.__)("UTM Sources","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsx)("table",{width:"100%",children:[0,1,2,3].map((e=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:"••••••••"}),(0,Xr.jsx)("td",{style:{textAlign:"right"},children:"••"})]},e)))})})]})})}),(0,Xr.jsx)(Ui.FlexItem,{style:{width:"50%"},children:(0,Xr.jsx)(Ui.Card,{className:"yoo-dashboard-cards yoo-utm-medium-card",style:{filter:"blur(4px)",pointerEvents:"none"},children:(0,Xr.jsxs)("div",{style:{padding:16},children:[(0,Xr.jsx)(Ui.CardHeader,{children:(0,Xr.jsxs)("h4",{children:["🛤️ ",(0,ua.__)("UTM Mediums","yooanalytics")]})}),(0,Xr.jsx)(Ui.CardBody,{children:(0,Xr.jsx)("table",{width:"100%",children:[0,1,2,3].map((e=>(0,Xr.jsxs)("tr",{children:[(0,Xr.jsx)("td",{children:"••••••••"}),(0,Xr.jsx)("td",{style:{textAlign:"right"},children:"••"})]},e)))})})]})})}),(0,Xr.jsx)("div",{className:"yoo-pro-overlay-wrapper",children:(0,Xr.jsxs)("div",{className:"yoo-pro-overlay",children:[(0,Xr.jsxs)("h4",{children:["🔒 ",(0,ua.__)("UTM Analytics is a Pro feature","yooanalytics")]}),(0,Xr.jsx)("p",{children:(0,ua.__)("Upgrade to YooAnalytics Pro to unlock UTM Source and Medium analytics.","yooanalytics")}),(0,Xr.jsx)("button",{className:"yoo-btn yoo-btn-primary yoo-pro-cta",onClick:()=>window.open("https://www.yooanalytics.com/?utm_source=plugin&utm_medium=dashboard&utm_campaign=Upgrade+To+Pro","_blank"),children:(0,ua.__)("Get YooAnalytics Pro","yooanalytics")})]})})]})]}),(0,Xr.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",margin:"16px 0",maxWidth:"100%"},children:(0,Xr.jsx)("div",{style:{minWidth:180},children:(0,Xr.jsx)(GN,{value:M,onChange:D,data:[{value:"bar",label:(0,ua.__)("Bar Chart","yooanalytics")},{value:"line",label:(0,ua.__)("Line Chart","yooanalytics")}],size:"sm"})})}),(0,Xr.jsx)("div",{className:"yoo-dashboard-charts",children:(0,Xr.jsx)("div",{className:"yoo-dashboard-chart yoo-dashboard-cards",children:(0,Xr.jsxs)("div",{children:["bar"===M&&(0===m.dates.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"📊"}),(0,Xr.jsx)("h2",{children:(0,ua.__)("No Stats Found!","yooanalytics")})]}):(0,Xr.jsx)(JC,{h:350,data:N,dataKey:"date",type:"stacked",legendProps:{verticalAlign:"bottom"},series:[{name:"Visitors",label:(0,ua.__)("Visitors","yooanalytics"),color:"#1a7efb"},{name:"Views",label:(0,ua.__)("Views","yooanalytics"),color:"#d7ebff"}],barChartProps:{barSize:20,radius:7},noDataText:(0,ua.__)("No analytics data available","yooanalytics")})),"line"===M&&(0===m.dates.length?(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"📈"}),(0,Xr.jsx)("h2",{children:(0,ua.__)("No Stats Found!","yooanalytics")})]}):(0,Xr.jsx)(SM,{h:350,data:N,dataKey:"date",series:[{name:"Visitors",color:"#1a7efb",label:(0,ua.__)("Visitors","yooanalytics")},{name:"Views",color:"#d7ebff",label:(0,ua.__)("Views","yooanalytics"),strokeDasharray:"5 5"}],curveType:"linear",legendProps:{verticalAlign:"bottom"},dotProps:{r:4,strokeWidth:1},activeDotProps:{r:6,fill:"#fff",strokeWidth:2}}))]})})}),(0,Xr.jsx)("div",{style:{marginTop:32},children:0!==p.length?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)("h1",{children:["🔢 ",(0,ua.__)("Pages","yooanalytics")]}),(0,Xr.jsx)(Qi,{columns:A,data:p})]}):(0,Xr.jsx)("div",{className:"yoo-dashboard-cards yoo-dashboard-stats",children:(0,Xr.jsxs)("div",{className:"yoo-dashboard-card-no-results",children:[(0,Xr.jsx)("h1",{children:"📊"}),(0,Xr.jsx)("h2",{children:(0,ua.__)("No Visits Found, Let's wait for amazing performance.","yooanalytics")})]})})})]})})};var KN={root:"m_4081bf90"};const ZN={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},QN=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:a,wrap:i},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":_C(r),"--group-align":o,"--group-justify":a,"--group-wrap":i}}),JN=kE(((e,t)=>{const n=VE("Group",ZN,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,children:c,gap:u,align:d,justify:f,wrap:p,grow:h,preventGrowOverflow:m,vars:y,variant:g,__size:v,mod:b,...w}=n,x=function(e){return a.Children.toArray(e).filter(Boolean)}(c),O=x.length,S=_C(u??"md"),j=lC({name:"Group",props:n,stylesCtx:{childWidth:`calc(${100/O}% - (${S} - ${S} / ${O}))`},className:o,style:i,classes:KN,classNames:r,styles:s,unstyled:l,vars:y,varsResolver:QN});return(0,Xr.jsx)(MC,{...j("root"),ref:t,variant:g,mod:[{grow:h},b],size:v,...w,children:x})}));JN.classes=KN,JN.displayName="@mantine/core/Group";const eR=["h1","h2","h3","h4","h5","h6"],tR=["xs","sm","md","lg","xl"];var nR={root:"m_8a5d1357"};const rR={order:1},oR=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const a=function(e,t){const n=void 0!==t?t:`h${e}`;return eR.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:tR.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:DE(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}(t,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":"number"==typeof r?r.toString():void 0,"--title-text-wrap":o}}},aR=kE(((e,t)=>{const n=VE("Title",rR,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,order:l,vars:c,size:u,variant:d,lineClamp:f,textWrap:p,mod:h,...m}=n,y=lC({name:"Title",props:n,classes:nR,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:c,varsResolver:oR});return[1,2,3,4,5,6].includes(l)?(0,Xr.jsx)(MC,{...y("root"),component:`h${l}`,variant:d,ref:t,mod:[{order:l,"data-line-clamp":"number"==typeof f},h],size:u,...m}):null}));aR.classes=nR,aR.displayName="@mantine/core/Title";var iR={root:"m_b6d8b162"};function sR(e){return"start"===e?"start":"end"===e||e?"end":void 0}const lR={inherit:!1},cR=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:a})=>({root:{"--text-fz":TC(o),"--text-lh":NC(o),"--text-gradient":"gradient"===t?TE(r,e):void 0,"--text-line-clamp":"number"==typeof n?n.toString():void 0,"--text-color":a?jE(a,e):void 0}}),uR=IC(((e,t)=>{const n=VE("Text",lR,e),{lineClamp:r,truncate:o,inline:a,inherit:i,gradient:s,span:l,__staticSelector:c,vars:u,className:d,style:f,classNames:p,styles:h,unstyled:m,variant:y,mod:g,size:v,...b}=n,w=lC({name:["Text",c],props:n,classes:iR,className:d,style:f,classNames:p,styles:h,unstyled:m,vars:u,varsResolver:cR});return(0,Xr.jsx)(MC,{...w("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":sR(o),"data-line-clamp":"number"==typeof r,"data-inline":a,"data-inherit":i},g],size:v,...b})}));uR.classes=iR,uR.displayName="@mantine/core/Text";var dR={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const fR=(0,a.forwardRef)((({className:e,...t},n)=>(0,Xr.jsxs)(MC,{component:"span",className:c(dR.barsLoader,e),...t,ref:n,children:[(0,Xr.jsx)("span",{className:dR.bar}),(0,Xr.jsx)("span",{className:dR.bar}),(0,Xr.jsx)("span",{className:dR.bar})]})));fR.displayName="@mantine/core/Bars";const pR=(0,a.forwardRef)((({className:e,...t},n)=>(0,Xr.jsxs)(MC,{component:"span",className:c(dR.dotsLoader,e),...t,ref:n,children:[(0,Xr.jsx)("span",{className:dR.dot}),(0,Xr.jsx)("span",{className:dR.dot}),(0,Xr.jsx)("span",{className:dR.dot})]})));pR.displayName="@mantine/core/Dots";const hR=(0,a.forwardRef)((({className:e,...t},n)=>(0,Xr.jsx)(MC,{component:"span",className:c(dR.ovalLoader,e),...t,ref:n})));hR.displayName="@mantine/core/Oval";const mR={bars:fR,oval:hR,dots:pR},yR={loaders:mR,type:"oval"},gR=(e,{size:t,color:n})=>({root:{"--loader-size":DC(t,"loader-size"),"--loader-color":n?jE(n,e):void 0}}),vR=kE(((e,t)=>{const n=VE("Loader",yR,e),{size:r,color:o,type:a,vars:i,className:s,style:l,classNames:c,styles:u,unstyled:d,loaders:f,variant:p,children:h,...m}=n,y=lC({name:"Loader",props:n,classes:dR,className:s,style:l,classNames:c,styles:u,unstyled:d,vars:i,varsResolver:gR});return h?(0,Xr.jsx)(MC,{...y("root"),ref:t,...m,children:h}):(0,Xr.jsx)(MC,{...y("root"),ref:t,component:f[a],variant:p,size:r,...m})}));vR.defaultLoaders=mR,vR.classes=dR,vR.displayName="@mantine/core/Loader";var bR={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const wR={orientation:"horizontal"},xR=(e,{borderWidth:t})=>({group:{"--button-border-width":DE(t)}}),OR=kE(((e,t)=>{const n=VE("ButtonGroup",wR,e),{className:r,style:o,classNames:a,styles:i,unstyled:s,orientation:l,vars:c,borderWidth:u,variant:d,mod:f,...p}=VE("ButtonGroup",wR,e),h=lC({name:"ButtonGroup",props:n,classes:bR,className:r,style:o,classNames:a,styles:i,unstyled:s,vars:c,varsResolver:xR,rootSelector:"group"});return(0,Xr.jsx)(MC,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})}));OR.classes=bR,OR.displayName="@mantine/core/ButtonGroup";const SR={},jR=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:a,size:i})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{groupSection:{"--section-height":DC(i,"section-height"),"--section-padding-x":DC(i,"section-padding-x"),"--section-fz":i?.includes("compact")?TC(i.replace("compact-","")):TC(i),"--section-radius":void 0===t?void 0:AC(t),"--section-bg":n||o?s.background:void 0,"--section-color":s.color,"--section-bd":n||o?s.border:void 0}}},PR=kE(((e,t)=>{const n=VE("ButtonGroupSection",SR,e),{className:r,style:o,classNames:a,styles:i,unstyled:s,vars:l,variant:c,gradient:u,radius:d,autoContrast:f,...p}=VE("ButtonGroupSection",SR,e),h=lC({name:"ButtonGroupSection",props:n,classes:bR,className:r,style:o,classNames:a,styles:i,unstyled:s,vars:l,varsResolver:jR,rootSelector:"groupSection"});return(0,Xr.jsx)(MC,{...h("groupSection"),ref:t,variant:c,...p})}));PR.classes=bR,PR.displayName="@mantine/core/ButtonGroupSection";const kR={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${DE(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},ER={},CR=(e,{radius:t,color:n,gradient:r,variant:o,size:a,justify:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{root:{"--button-justify":i,"--button-height":DC(a,"button-height"),"--button-padding-x":DC(a,"button-padding-x"),"--button-fz":a?.includes("compact")?TC(a.replace("compact-","")):TC(a),"--button-radius":void 0===t?void 0:AC(t),"--button-bg":n||o?l.background:void 0,"--button-hover":n||o?l.hover:void 0,"--button-color":l.color,"--button-bd":n||o?l.border:void 0,"--button-hover-color":n||o?l.hoverColor:void 0}}},MR=IC(((e,t)=>{const n=VE("Button",ER,e),{style:r,vars:o,className:a,color:i,disabled:s,children:l,leftSection:c,rightSection:u,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:m,gradient:y,classNames:g,styles:v,unstyled:b,"data-disabled":w,autoContrast:x,mod:O,...S}=n,j=lC({name:"Button",props:n,classes:bR,className:a,style:r,classNames:g,styles:v,unstyled:b,vars:o,varsResolver:CR}),P=!!c,k=!!u;return(0,Xr.jsxs)(eT,{ref:t,...j("root",{active:!s&&!h&&!w}),unstyled:b,variant:f,disabled:s||h,mod:[{disabled:s||w,loading:h,block:d,"with-left-section":P,"with-right-section":k},O],...S,children:[(0,Xr.jsx)(KM,{mounted:!!h,transition:kR,duration:150,children:e=>(0,Xr.jsx)(MC,{component:"span",...j("loader",{style:e}),"aria-hidden":!0,children:(0,Xr.jsx)(vR,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...m})})}),(0,Xr.jsxs)("span",{...j("inner"),children:[c&&(0,Xr.jsx)(MC,{component:"span",...j("section"),mod:{position:"left"},children:c}),(0,Xr.jsx)(MC,{component:"span",mod:{loading:h},...j("label"),children:l}),u&&(0,Xr.jsx)(MC,{component:"span",...j("section"),mod:{position:"right"},children:u})]})]})}));function DR(e){const t=function(e){return"string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e}(e);return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}function _R(e,t){return DR(e in t?t[e]:e)}function AR(e){return"object"==typeof e&&null!==e?"base"in e?e.base:void 0:e}function TR({spacing:e,verticalSpacing:t,cols:n,selector:r}){const o=YE(),a=void 0===t?e:t,i=EE({"--sg-spacing-x":_C(AR(e)),"--sg-spacing-y":_C(AR(a)),"--sg-cols":AR(n)?.toString()}),s=cC(o.breakpoints).reduce(((t,r)=>(t[r]||(t[r]={}),"object"==typeof e&&void 0!==e[r]&&(t[r]["--sg-spacing-x"]=_C(e[r])),"object"==typeof a&&void 0!==a[r]&&(t[r]["--sg-spacing-y"]=_C(a[r])),"object"==typeof n&&void 0!==n[r]&&(t[r]["--sg-cols"]=n[r]),t)),{}),l=function(e,t){const n=e.map((e=>({value:e,px:_R(e,t)})));return n.sort(((e,t)=>e.px-t.px)),n}(cC(s),o.breakpoints).filter((e=>cC(s[e.value]).length>0)),c=l.map((e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:s[e.value]})));return(0,Xr.jsx)(fC,{styles:i,media:c,selector:r})}function NR(e){return"object"==typeof e&&null!==e?cC(e):[]}function RR({spacing:e,verticalSpacing:t,cols:n,selector:r}){const o=void 0===t?e:t,a=EE({"--sg-spacing-x":_C(AR(e)),"--sg-spacing-y":_C(AR(o)),"--sg-cols":AR(n)?.toString()}),i=function({spacing:e,verticalSpacing:t,cols:n}){return Array.from(new Set([...NR(e),...NR(t),...NR(n)])).sort(((e,t)=>DR(e)-DR(t)))}({spacing:e,verticalSpacing:t,cols:n}),s=i.reduce(((t,r)=>(t[r]||(t[r]={}),"object"==typeof e&&void 0!==e[r]&&(t[r]["--sg-spacing-x"]=_C(e[r])),"object"==typeof o&&void 0!==o[r]&&(t[r]["--sg-spacing-y"]=_C(o[r])),"object"==typeof n&&void 0!==n[r]&&(t[r]["--sg-cols"]=n[r]),t)),{}),l=i.map((e=>({query:`simple-grid (min-width: ${e})`,styles:s[e]})));return(0,Xr.jsx)(fC,{styles:a,container:l,selector:r})}MR.classes=bR,MR.displayName="@mantine/core/Button",MR.Group=OR,MR.GroupSection=PR;var IR={container:"m_925c2d2c",root:"m_2415a157"};const $R={cols:1,spacing:"md",type:"media"},LR=kE(((e,t)=>{const n=VE("SimpleGrid",$R,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,cols:c,verticalSpacing:u,spacing:d,type:f,...p}=n,h=lC({name:"SimpleGrid",classes:IR,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l}),m=EC();return"container"===f?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(RR,{...n,selector:`.${m}`}),(0,Xr.jsx)("div",{...h("container"),children:(0,Xr.jsx)(MC,{ref:t,...h("root",{className:m}),...p})})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(TR,{...n,selector:`.${m}`}),(0,Xr.jsx)(MC,{ref:t,...h("root",{className:m}),...p})]})}));LR.classes=IR,LR.displayName="@mantine/core/SimpleGrid";var FR={root:"m_1b7284a3"};const zR={},WR=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":void 0===t?void 0:AC(t),"--paper-shadow":RC(n)}}),BR=IC(((e,t)=>{const n=VE("Paper",zR,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,withBorder:l,vars:c,radius:u,shadow:d,variant:f,mod:p,...h}=n,m=lC({name:"Paper",props:n,classes:FR,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:c,varsResolver:WR});return(0,Xr.jsx)(MC,{ref:t,mod:[{"data-with-border":l},p],...m("root"),variant:f,...h})}));BR.classes=FR,BR.displayName="@mantine/core/Paper";const[HR,YR]=ZM("Card component was not found in tree");var UR={root:"m_e615b15f",section:"m_599a2148"};const VR={},qR=IC(((e,t)=>{const n=VE("CardSection",VR,e),{classNames:r,className:o,style:a,styles:i,vars:s,withBorder:l,inheritPadding:c,mod:u,...d}=n,f=YR();return(0,Xr.jsx)(MC,{ref:t,mod:[{"with-border":l,"inherit-padding":c},u],...f.getStyles("section",{className:o,style:a,styles:i,classNames:r}),...d})}));qR.classes=UR,qR.displayName="@mantine/core/CardSection";const GR={},XR=(e,{padding:t})=>({root:{"--card-padding":_C(t)}}),KR=IC(((e,t)=>{const n=VE("Card",GR,e),{classNames:r,className:o,style:i,styles:s,unstyled:l,vars:c,children:u,padding:d,...f}=n,p=lC({name:"Card",props:n,classes:UR,className:o,style:i,classNames:r,styles:s,unstyled:l,vars:c,varsResolver:XR}),h=a.Children.toArray(u),m=h.map(((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===qR?(0,a.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===h.length-1||void 0}):e));return(0,Xr.jsx)(HR,{value:{getStyles:p},children:(0,Xr.jsx)(BR,{ref:t,unstyled:l,...p("root"),...f,children:m})})}));KR.classes=UR,KR.displayName="@mantine/core/Card",KR.Section=qR;var ZR={root:"m_6d731127"};const QR={gap:"md",align:"stretch",justify:"flex-start"},JR=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":_C(t),"--stack-align":n,"--stack-justify":r}}),eI=kE(((e,t)=>{const n=VE("Stack",QR,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,align:c,justify:u,gap:d,variant:f,...p}=n,h=lC({name:"Stack",props:n,classes:ZR,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:JR});return(0,Xr.jsx)(MC,{ref:t,...h("root"),variant:f,...p})}));eI.classes=ZR,eI.displayName="@mantine/core/Stack";const[tI,nI]=ZM("Progress.Root component was not found in tree");var rI={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const oI={},aI=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,...s}=VE("ProgressLabel",oI,e),l=nI();return(0,Xr.jsx)(MC,{ref:t,...l.getStyles("label",{className:r,style:o,classNames:n,styles:a}),...s})}));aI.classes=rI,aI.displayName="@mantine/core/ProgressLabel";const iI={},sI=(e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":DC(t,"progress-size"),"--progress-radius":void 0===n?void 0:AC(n),"--progress-transition-duration":"number"==typeof r?`${r}ms`:void 0}}),lI=kE(((e,t)=>{const n=VE("ProgressRoot",iI,e),{classNames:r,className:o,style:a,styles:i,unstyled:s,vars:l,autoContrast:c,transitionDuration:u,...d}=n,f=lC({name:"Progress",classes:rI,props:n,className:o,style:a,classNames:r,styles:i,unstyled:s,vars:l,varsResolver:sI});return(0,Xr.jsx)(tI,{value:{getStyles:f,autoContrast:c},children:(0,Xr.jsx)(MC,{ref:t,...f("root"),...d})})}));function cI({color:e,theme:t,autoContrast:n}){return("boolean"==typeof n?n:t.autoContrast)&&SE({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function uI(e,t){return cI({color:e.colors[e.primaryColor][bE(e,t)],theme:e,autoContrast:null})}function dI(e,t){return"boolean"==typeof e?e:t.autoContrast}lI.classes=rI,lI.displayName="@mantine/core/ProgressRoot";const fI={withAria:!0},pI=kE(((e,t)=>{const{classNames:n,className:r,style:o,styles:a,vars:i,value:s,withAria:l,color:c,striped:u,animated:d,mod:f,...p}=VE("ProgressSection",fI,e),h=nI(),m=YE(),y=l?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,"aria-valuetext":`${s}%`}:{};return(0,Xr.jsx)(MC,{ref:t,...h.getStyles("section",{className:r,classNames:n,styles:a,style:o}),...p,...y,mod:[{striped:u||d,animated:d},f],__vars:{"--progress-section-width":`${s}%`,"--progress-section-color":jE(c,m),"--progress-label-color":dI(h.autoContrast,m)?cI({color:c,theme:m,autoContrast:h.autoContrast}):void 0}})}));pI.classes=rI,pI.displayName="@mantine/core/ProgressSection";const hI={},mI=kE(((e,t)=>{const n=VE("Progress",hI,e),{value:r,classNames:o,styles:a,vars:i,color:s,striped:l,animated:c,"aria-label":u,...d}=n,{resolvedClassNames:f,resolvedStyles:p}=KE({classNames:o,styles:a,props:n});return(0,Xr.jsx)(lI,{ref:t,classNames:f,styles:p,vars:i,...d,children:(0,Xr.jsx)(pI,{value:r,color:s,striped:l,animated:c,"aria-label":u})})}));mI.classes=rI,mI.displayName="@mantine/core/Progress",mI.Section=pI,mI.Root=lI,mI.Label=aI;const yI={duration:100,transition:"fade"};function gI(e,t){return Array.isArray(e)?[...e].reduce(((e,n)=>({...e,...gI(n,t)})),{}):"function"==typeof e?e(t):null==e?{}:e}var vI={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const bI={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:DM("popover")},wI=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:AC(t),"--tooltip-bg":n?jE(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),xI=kE(((e,t)=>{const n=VE("TooltipFloating",bI,e),{children:r,refProp:o,withinPortal:i,style:s,className:l,classNames:c,styles:u,unstyled:d,radius:f,color:p,label:h,offset:m,position:y,multiline:g,zIndex:v,disabled:b,defaultOpened:w,variant:x,vars:O,portalProps:S,...j}=n,P=YE(),k=lC({name:"TooltipFloating",props:n,classes:vI,className:l,style:s,classNames:c,styles:u,unstyled:d,rootSelector:"tooltip",vars:O,varsResolver:wI}),{handleMouseMove:E,x:C,y:M,opened:D,boundaryRef:_,floating:A,setOpened:T}=function({offset:e,position:t,defaultOpened:n}){const[r,o]=(0,a.useState)(n),i=(0,a.useRef)(null),{x:s,y:l,elements:c,refs:u,update:d,placement:f}=_A({placement:t,middleware:[U_({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=f.includes("right")?e:t.includes("left")?-1*e:0,h=f.includes("bottom")?e:t.includes("top")?-1*e:0,m=(0,a.useCallback)((({clientX:e,clientY:t})=>{u.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+p,top:t+h,right:e,bottom:t})})}),[c.reference]);return(0,a.useEffect)((()=>{if(u.floating.current){const e=i.current;e.addEventListener("mousemove",m);const t=d_(u.floating.current);return t.forEach((e=>{e.addEventListener("scroll",d)})),()=>{e.removeEventListener("mousemove",m),t.forEach((e=>{e.removeEventListener("scroll",d)}))}}}),[c.reference,u.floating.current,d,m,r]),{handleMouseMove:m,x:s,y:l,opened:r,setOpened:o,boundaryRef:i,floating:u.setFloating}}({offset:m,position:y,defaultOpened:w});if(!pD(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const N=FM(_,OD(r),t),R=r.props;return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(HM,{...S,withinPortal:i,children:(0,Xr.jsx)(MC,{...j,...k("tooltip",{style:{...gI(s,P),zIndex:v,display:!b&&D?"block":"none",top:(M&&Math.round(M))??"",left:(C&&Math.round(C))??""}}),variant:x,ref:A,mod:{multiline:g},children:h})}),(0,a.cloneElement)(r,{...R,[o]:N,onMouseEnter:e=>{R.onMouseEnter?.(e),E(e),T(!0)},onMouseLeave:e=>{R.onMouseLeave?.(e),T(!1)}})]})}));xI.classes=vI,xI.displayName="@mantine/core/TooltipFloating";const OI=(0,a.createContext)(!1),SI=OI.Provider,jI={openDelay:0,closeDelay:0};function PI(e){const{openDelay:t,closeDelay:n,children:r}=VE("TooltipGroup",jI,e);return(0,Xr.jsx)(SI,{value:!0,children:(0,Xr.jsx)(jA,{delay:{open:t,close:n},children:r})})}function kI(e){const t=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),n=[Y_(e.offset)];return t.shift&&n.push(U_("boolean"==typeof t.shift?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push("boolean"==typeof t.flip?q_():q_(t.flip)),n.push(X_({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push("boolean"==typeof t.inline?G_():G_(t.inline)):e.inline&&n.push(G_()),n}function EI(e){const[t,n]=(0,a.useState)(e.defaultOpened),r="boolean"==typeof e.opened?e.opened:t,o=(0,a.useContext)(OI),i=bM(),s=(0,a.useCallback)((e=>{n(e),e&&v(i)}),[i]),{x:l,y:c,context:u,refs:d,update:f,placement:p,middlewareData:{arrow:{x:h,y:m}={}}}=_A({strategy:e.strategy,placement:e.position,open:r,onOpenChange:s,middleware:kI(e)}),{delay:y,currentId:g,setCurrentId:v}=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:s=!0}=t,l=null!=i?i:o,c=a.useContext(SA),{currentId:u,setCurrentId:d,initialDelay:f,setState:p,timeoutMs:h}=c;return lA((()=>{s&&u&&(p({delay:{open:1,close:wA(f,"close")}}),u!==l&&r(!1))}),[s,l,r,p,u,f]),lA((()=>{function e(){r(!1),p({delay:f,currentId:null})}if(s&&u&&!n&&u===l){if(h){const t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}}),[s,n,p,u,l,r,f,h]),lA((()=>{s&&d!==OA&&n&&d(l)}),[s,n,d,l]),c}(u,{id:i}),{getReferenceProps:b,getFloatingProps:w}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>RA(t,e,"reference")),t),i=a.useCallback((t=>RA(t,e,"floating")),n),s=a.useCallback((t=>RA(t,e,"item")),r);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([xA(u,{enabled:e.events?.hover,delay:o?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),AA(u,{enabled:e.events?.focus,visibleOnly:!0}),$A(u,{role:"tooltip"}),DA(u,{enabled:void 0===e.opened})]);LA({opened:r,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:d,update:f}}),GM((()=>{e.onPositionChange?.(p)}),[p]);const x=r&&g&&g!==i;return{x:l,y:c,arrowX:h,arrowY:m,reference:d.setReference,floating:d.setFloating,getFloatingProps:w,getReferenceProps:b,isGroupPhase:x,opened:r,placement:p}}PI.displayName="@mantine/core/TooltipGroup",PI.extend=e=>e;const CI={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:DM("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},MI=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:AC(t),"--tooltip-bg":n?jE(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),DI=kE(((e,t)=>{const n=VE("Tooltip",CI,e),{children:r,position:o,refProp:i,label:s,openDelay:l,closeDelay:u,onPositionChange:d,opened:f,defaultOpened:p,withinPortal:h,radius:m,color:y,classNames:g,styles:v,unstyled:b,style:w,className:x,withArrow:O,arrowSize:S,arrowOffset:j,arrowRadius:P,arrowPosition:k,offset:E,transitionProps:C,multiline:M,events:D,zIndex:_,disabled:A,positionDependencies:T,onClick:N,onMouseEnter:R,onMouseLeave:I,inline:$,variant:L,keepMounted:F,vars:z,portalProps:W,mod:B,floatingStrategy:H,middlewares:Y,...U}=VE("Tooltip",CI,n),{dir:V}=AM(),q=(0,a.useRef)(null),G=EI({position:TM(V,o),closeDelay:u,openDelay:l,onPositionChange:d,opened:f,defaultOpened:p,events:D,arrowRef:q,arrowOffset:j,offset:"number"==typeof E?E+(O?S/2:0):E,positionDependencies:[...T,r],inline:$,strategy:H,middlewares:Y}),X=lC({name:"Tooltip",props:n,classes:vI,className:x,style:w,classNames:g,styles:v,unstyled:b,rootSelector:"tooltip",vars:z,varsResolver:MI});if(!pD(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const K=FM(G.reference,OD(r),t),Z=function(e){return{...yI,duration:100,transition:"fade",...e}}(C),Q=r.props;return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(HM,{...W,withinPortal:h,children:(0,Xr.jsx)(KM,{...Z,keepMounted:F,mounted:!A&&!!G.opened,duration:G.isGroupPhase?10:Z.duration,children:e=>(0,Xr.jsxs)(MC,{...U,"data-fixed":"fixed"===H||void 0,variant:L,mod:[{multiline:M},B],...G.getFloatingProps({ref:G.floating,className:X("tooltip").className,style:{...X("tooltip").style,...e,zIndex:_,top:G.y??0,left:G.x??0}}),children:[s,(0,Xr.jsx)(iD,{ref:q,arrowX:G.arrowX,arrowY:G.arrowY,visible:O,position:G.placement,arrowSize:S,arrowOffset:j,arrowRadius:P,arrowPosition:k,...X("arrow")})]})})}),(0,a.cloneElement)(r,G.getReferenceProps({onClick:N,onMouseEnter:R,onMouseLeave:I,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:c(x,Q.className),...Q,[i]:K}))]})}));DI.classes=vI,DI.displayName="@mantine/core/Tooltip",DI.Floating=xI,DI.Group=PI;const _I=()=>{const[e,t]=(0,r.useState)(10),[n,o]=(0,r.useState)([]),[a,i]=(0,r.useState)(!1),s=(0,r.useRef)(null),l=async()=>{i(!0);try{const e=await fetch(`${YooAnalytics.restURL}/v1/realtime?window_seconds=1800`,{credentials:"same-origin",headers:{"X-WP-Nonce":YooAnalytics.nonce}}),t=await e.json();t.success?o(t.data||[]):o([])}catch(e){o([])}i(!1)};(0,r.useEffect)((()=>(l(),s.current&&clearInterval(s.current),s.current=setInterval(l,1e3*e),()=>{s.current&&clearInterval(s.current)})),[e]);const c=[{value:"5",label:`5 ${(0,ua.__)("Seconds","yooanalytics")}`},{value:"10",label:`10 ${(0,ua.__)("Seconds","yooanalytics")}`},{value:"30",label:`30 ${(0,ua.__)("Seconds","yooanalytics")}`},{value:"60",label:`1 ${(0,ua.__)("Minute","yooanalytics")}`},{value:"300",label:`5 ${(0,ua.__)("Minutes","yooanalytics")}`},{value:"600",label:`10 ${(0,ua.__)("Minutes","yooanalytics")}`}],u=e=>e?String(e).replace(/\/+$|\s+$/g,""):"",d=(e,t,n)=>{const r={};return e.forEach((e=>{let o=e[t]||"";o&&("function"==typeof n&&(o=n(o)),o&&(r[o]=(r[o]||0)+1))})),Object.entries(r).map((([e,t])=>({value:e,count:t})))};let f=d(Array.isArray(n)?n.filter((e=>e.utm_source)):[],"utm_source",u);f=Array.isArray(f)?f.map((e=>({utm_source:e.value,count:e.count}))):[];let p=d(Array.isArray(n)?n.filter((e=>e.utm_medium)):[],"utm_medium",u);p=Array.isArray(p)?p.map((e=>({utm_medium:e.value,count:e.count}))):[];let h=d(Array.isArray(n)?n.filter((e=>e.utm_campaign)):[],"utm_campaign",u);h=Array.isArray(h)?h.map((e=>({utm_campaign:e.value,count:e.count}))):[];const m=d(n,"referer_url").map(((e,t)=>({referer_url:e.value,count:e.count}))),y=d(n,"page_url").map(((e,t)=>({page_url:e.value,count:e.count}))),g=d(n,"user_agent").map(((e,t)=>({user_agent:e.value,count:e.count}))),v=(e,t,n=4)=>{if(!Array.isArray(e)||0===e.length)return{total:0,rows:[]};const r=e.reduce(((e,t)=>e+(t.count||0)),0),o=[...e].sort(((e,t)=>(t.count||0)-(e.count||0))),a=o.slice(0,n).map((e=>({label:e[t]||"None",count:e.count||0,percent:r>0?Math.round(e.count/r*100):0})));return{total:r,rows:a}},b=v(f,"utm_source",4),w=v(p,"utm_medium",4),x=v(h,"utm_campaign",4);return(0,Xr.jsxs)("div",{className:"yoo-body",children:[(0,Xr.jsx)("div",{className:"yoo-header",children:(0,Xr.jsxs)(JN,{style:{width:"100%",display:"flex",alignItems:"center"},children:[(0,Xr.jsx)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",alignItems:"flex-start"},children:a?(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsx)(Xi,{count:1,height:32,width:"45%",style:{marginBottom:8}}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"32%"})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(aR,{order:2,children:["📊 ",(0,ua.__)("Realtime Overview","yooanalytics")]}),(0,Xr.jsx)(uR,{children:(0,ua.__)("Active users in last 30 minutes.","yooanalytics")})]})}),(0,Xr.jsx)("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:(0,Xr.jsx)(JN,{spacing:"sm",align:"center",children:a?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(Xi,{count:1,height:36,width:"180px",style:{marginRight:12}}),(0,Xr.jsx)(Xi,{count:1,height:36,width:"120px"})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(GN,{data:c,value:String(e),onChange:e=>t(Number(e)),placeholder:(0,ua.__)("Refresh","yooanalytics"),sx:{minWidth:180}}),(0,Xr.jsx)(MR,{variant:"outline",onClick:l,children:(0,ua.__)("Refresh Now","yooanalytics")})]})})})]})}),(0,Xr.jsx)(LR,{cols:3,spacing:24,breakpoints:[{maxWidth:900,cols:1}],style:{marginBottom:24,position:"relative",width:"100%"},children:a?[0,1,2].map((e=>(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(Xi,{count:1,height:20,width:"55%",style:{marginBottom:10}}),(0,Xr.jsx)(Xi,{count:2,height:14,width:"80%",style:{marginBottom:6}}),(0,Xr.jsx)(Xi,{count:1,height:10,width:"60%"})]},e))):YooAnalytics.hasActiveValidLicense?(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Sources","yooanalytics")}),0===b.total?(0,Xr.jsx)(uR,{size:"sm",children:"No data"}):(0,Xr.jsxs)(eI,{spacing:8,children:[b.rows.map(((e,t)=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:e.label}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:e.count})]}),(0,Xr.jsx)(mI,{value:e.percent,size:"sm",mt:6,color:"blue"})]},t))),b.rows.length<4&&(0,Xr.jsxs)(uR,{size:"xs",color:"dimmed",children:["Showing top ",b.rows.length," of ",f.length]})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Mediums","yooanalytics")}),0===w.total?(0,Xr.jsx)(uR,{size:"sm",children:"No data"}):(0,Xr.jsxs)(eI,{spacing:8,children:[w.rows.map(((e,t)=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:e.label}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:e.count})]}),(0,Xr.jsx)(mI,{value:e.percent,size:"sm",mt:6,color:"green"})]},t))),w.rows.length<4&&(0,Xr.jsxs)(uR,{size:"xs",color:"dimmed",children:["Showing top ",w.rows.length," of ",p.length]})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Campaigns","yooanalytics")}),0===x.total?(0,Xr.jsx)(uR,{size:"sm",children:"No data"}):(0,Xr.jsxs)(eI,{spacing:8,children:[x.rows.map(((e,t)=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:e.label}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:e.count})]}),(0,Xr.jsx)(mI,{value:e.percent,size:"sm",mt:6,color:"red"})]},t))),x.rows.length<4&&(0,Xr.jsxs)(uR,{size:"xs",color:"dimmed",children:["Showing top ",x.rows.length," of ",h.length]})]})]})]}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc",filter:"blur(4px)",pointerEvents:"none",width:"100%"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Sources","yooanalytics")}),(0,Xr.jsxs)(eI,{spacing:8,children:[[0,1,2,3].map((e=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:"••••••••"}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:"••"})]}),(0,Xr.jsx)(mI,{value:25,size:"sm",mt:6,color:"blue"})]},e))),(0,Xr.jsx)(uR,{size:"xs",color:"dimmed",children:"Showing top 4 of 4"})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc",filter:"blur(4px)",pointerEvents:"none",width:"100%"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Mediums","yooanalytics")}),(0,Xr.jsxs)(eI,{spacing:8,children:[[0,1,2,3].map((e=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:"••••••••"}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:"••"})]}),(0,Xr.jsx)(mI,{value:25,size:"sm",mt:6,color:"green"})]},e))),(0,Xr.jsx)(uR,{size:"xs",color:"dimmed",children:"Showing top 4 of 4"})]})]}),(0,Xr.jsxs)(KR,{withBorder:!0,p:16,radius:"md",shadow:"sm",style:{background:"#f8fafc",filter:"blur(4px)",pointerEvents:"none",width:"100%"},children:[(0,Xr.jsx)(uR,{weight:700,size:"md",mb:8,children:(0,ua.__)("UTM Campaigns","yooanalytics")}),(0,Xr.jsxs)(eI,{spacing:8,children:[[0,1,2,3].map((e=>(0,Xr.jsxs)("div",{style:{width:"100%"},children:[(0,Xr.jsxs)(JN,{position:"apart",spacing:"xs",children:[(0,Xr.jsx)(uR,{size:"sm",weight:600,style:{maxWidth:"70%"},children:"••••••••"}),(0,Xr.jsx)(uR,{size:"sm",color:"dimmed",children:"••"})]}),(0,Xr.jsx)(mI,{value:25,size:"sm",mt:6,color:"red"})]},e))),(0,Xr.jsx)(uR,{size:"xs",color:"dimmed",children:"Showing top 4 of 4"})]})]}),(0,Xr.jsx)("div",{style:{position:"absolute",inset:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:(0,Xr.jsx)("div",{style:{pointerEvents:"auto"},children:(0,Xr.jsxs)(KR,{withBorder:!0,p:24,radius:"md",shadow:"sm",style:{background:"#fffbe6",color:"#111827",textAlign:"center",maxWidth:420},children:[(0,Xr.jsxs)(aR,{order:4,style:{color:"#d97706"},mb:8,children:["🔒 ",(0,ua.__)("UTM Analytics is a Pro feature","yooanalytics")]}),(0,Xr.jsx)(uR,{size:"md",style:{color:"rgba(17,24,39,0.85)"},mb:12,children:(0,ua.__)("Upgrade to YooAnalytics Pro to unlock UTM Source, Medium, and Campaign analytics.","yooanalytics")}),(0,Xr.jsx)(MR,{variant:"filled",style:{background:"#1a7efb",color:"#ffffff",borderColor:"#1a7efb",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8},radius:"md",size:"md",onClick:()=>window.open("https://www.yooanalytics.com/?utm_source=plugin&utm_medium=realtime&utm_campaign=Upgrade+To+Pro","_blank"),children:(0,Xr.jsx)("span",{style:{display:"inline-block",textAlign:"center"},children:(0,ua.__)("Get YooAnalytics Pro","yooanalytics")})})]})})})]})}),(0,Xr.jsx)("div",{className:"yoo-screen",children:a?(0,Xr.jsxs)(eI,{spacing:24,children:[[0,1,2].map((e=>(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(Xi,{count:1,height:22,width:"22%",style:{marginBottom:10}}),(0,Xr.jsx)(Xi,{count:1,height:32,width:"100%",style:{marginBottom:8}}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"60%"})]},e))),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,style:{overflowX:"auto"},children:[(0,Xr.jsx)(Xi,{count:1,height:22,width:"22%",style:{marginBottom:10}}),(0,Xr.jsx)(Xi,{count:1,height:32,width:"100%",style:{marginBottom:8}}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"80%"}),(0,Xr.jsx)(Xi,{count:1,height:18,width:"70%"})]})]}):(0,Xr.jsxs)(eI,{spacing:24,children:[(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Referrers","yooanalytics")}),(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Referrer","yooanalytics"),selector:e=>e.referer_url},{name:(0,ua.__)("Count","yooanalytics"),selector:e=>e.count}],data:m})]}),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Pages","yooanalytics")}),(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Page","yooanalytics"),selector:e=>e.page_url},{name:(0,ua.__)("Count","yooanalytics"),selector:e=>e.count}],data:y})]}),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Devices","yooanalytics")}),(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Device","yooanalytics"),selector:e=>e.user_agent},{name:(0,ua.__)("Count","yooanalytics"),selector:e=>e.count}],data:g})]}),(0,Xr.jsxs)(BR,{withBorder:!0,p:12,style:{overflowX:"auto"},children:[(0,Xr.jsx)(uR,{weight:600,mb:8,children:(0,ua.__)("Raw Events","yooanalytics")}),(0,Xr.jsx)("div",{style:{minWidth:900},children:(0,Xr.jsx)(Qi,{columns:[{name:(0,ua.__)("Time","yooanalytics"),selector:e=>{const t=e.created_at?e.created_at.split(" ")[1]:"";return(0,Xr.jsx)(DI,{label:e.created_at,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:80,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})},sortable:!0},{name:(0,ua.__)("Page","yooanalytics"),selector:e=>(0,Xr.jsx)(DI,{label:e.page_url,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:180,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:e.page_url})})},{name:(0,ua.__)("Referrer","yooanalytics"),selector:e=>(0,Xr.jsx)(DI,{label:e.referer_url,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:180,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:e.referer_url})})},{name:(0,ua.__)("Device","yooanalytics"),selector:e=>(0,Xr.jsx)(DI,{label:e.user_agent,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:e.user_agent})})},{name:(0,ua.__)("UTM Source","yooanalytics"),selector:e=>{const t=u(e.utm_source||"");return(0,Xr.jsx)(DI,{label:t,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})}},{name:(0,ua.__)("UTM Medium","yooanalytics"),selector:e=>{const t=u(e.utm_medium||"");return(0,Xr.jsx)(DI,{label:t,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})},hide:"sm"},{name:(0,ua.__)("Campaign","yooanalytics"),selector:e=>{const t=u(e.utm_campaign||"");return(0,Xr.jsx)(DI,{label:t,withArrow:!0,children:(0,Xr.jsx)("span",{style:{maxWidth:100,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})})},hide:"sm"}],data:n})})]})]})})]})},AI=()=>(0,Xr.jsx)("div",{className:"yoo-body",children:(0,Xr.jsxs)("div",{className:"yoo-header",children:[(0,Xr.jsxs)("h1",{children:["⚒️ ",(0,ua.__)("Coming Soon","yooanalytics")]}),(0,Xr.jsx)("p",{children:(0,ua.__)("Get more control over settings.","yooanalytics")})]})}),TI=()=>(0,Xr.jsxs)("div",{className:"yoo-body",children:[(0,Xr.jsxs)("div",{className:"yoo-header",children:[(0,Xr.jsx)("h1",{children:(0,ua.__)("About","yooanalytics")}),(0,Xr.jsx)("p",{children:(0,ua.__)("This is about your System Status, Share with YooAnalytics Support if you are facing any issues.","yooanalytics")})]}),(0,Xr.jsx)("div",{className:"yoo-section",children:(0,Xr.jsxs)("ol",{children:[(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("You are using YooAnalytics Version %s","yooanalytics"),YooAnalytics.version)}),(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("You are using YooAnalytics %s","yooanalytics"),YooAnalytics.hasActiveValidLicense&&" Pro")}),(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("Your Rest URL is %s","yooanalytics"),YooAnalytics.restURL)}),(0,Xr.jsx)("li",{children:(0,ua.sprintf)((0,ua.__)("Your Admin URL is %s","yooanalytics"),YooAnalytics.adminURL)}),YooAnalytics.isWooCommerceActive&&(0,Xr.jsx)("li",{children:(0,ua.__)("WooCommerce is active","yooanalytics")})]})})]}),NI=()=>(0,Xr.jsxs)(hi,{children:[(0,Xr.jsx)(fi,{path:"/",element:(0,Xr.jsx)(XN,{})}),(0,Xr.jsx)(fi,{path:"/realtime",element:(0,Xr.jsx)(_I,{})}),(0,Xr.jsx)(fi,{path:"/settings",element:(0,Xr.jsx)(AI,{})}),(0,Xr.jsx)(fi,{path:"/about",element:(0,Xr.jsx)(TI,{})})]});function RI(e){return"auto"===e||"dark"===e||"light"===e}function II({key:e="mantine-color-scheme-value"}={}){let t;return{get:t=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return RI(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&RI(t.newValue)&&n(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}function $I(){const e=YE(),t=JE(),n=cC(e.breakpoints).reduce(((t,n)=>{const r=e.breakpoints[n].includes("px"),o=DR(e.breakpoints[n]);return`${t}@media (max-width: ${r?o-.1+"px":_E(o-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${o}px`:_E(o)}) {.mantine-hidden-from-${n} {display: none !important;}}`}),"");return(0,Xr.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function LI(e){return Object.entries(e).map((([e,t])=>`${e}: ${t};`)).join("")}function FI(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,t)=>`${t}{${e}}`),t)}function zI({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if("light"===n){const n=bE(e,"light"),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${9===n?8:n+1})`,[`--mantine-color-${r}-light`]:RE(e.colors[t][n],.1),[`--mantine-color-${r}-light-hover`]:RE(e.colors[t][n],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:RE(e.colors[t][n],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}const a=bE(e,"dark"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${9===a?8:a+1})`,[`--mantine-color-${r}-light`]:RE(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:RE(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:RE(e.colors[t][Math.max(a-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}function WI(e,t,n){cC(t).forEach((r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]})))}const BI=e=>{const t=bE(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:DE(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":uI(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":uI(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};WI(r.variables,e.breakpoints,"breakpoint"),WI(r.variables,e.spacing,"spacing"),WI(r.variables,e.fontSizes,"font-size"),WI(r.variables,e.lineHeights,"line-height"),WI(r.variables,e.shadows,"shadow"),WI(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach(((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`})),cC(e.colors).forEach((t=>{const n=e.colors[t];if(function(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}(n))return Object.assign(r.light,zI({theme:e,name:n.name,color:n.light,colorScheme:"light",withColorValues:!0})),void Object.assign(r.dark,zI({theme:e,name:n.name,color:n.dark,colorScheme:"dark",withColorValues:!0}));n.forEach(((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e})),Object.assign(r.light,zI({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,zI({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))}));const o=e.headings.sizes;return cC(o).forEach((t=>{r.variables[`--mantine-${t}-font-size`]=o[t].fontSize,r.variables[`--mantine-${t}-line-height`]=o[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=o[t].fontWeight||e.headings.fontWeight})),r},HI=BI($E);function YI({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=YE(),r=JE(),o=function({theme:e,generator:t}){const n=BI(e),r=t?.(e);return r?FE(n,r):n}({theme:n,generator:QE().cssVariablesResolver}),a=":root"===e&&t,i=function(e,t){const n=LI(e.variables),r=n?FI(t,n):"",o=LI(e.dark),a=LI(e.light);return`${r}${o?FI(":host"===t?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):""}${a?FI(":host"===t?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,a):""}`}(a?function(e){const t={variables:{},light:{},dark:{}};return cC(e.variables).forEach((n=>{HI.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])})),cC(e.light).forEach((n=>{HI.light[n]!==e.light[n]&&(t.light[n]=e.light[n])})),cC(e.dark).forEach((n=>{HI.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])})),t}(o):o,e);return i?(0,Xr.jsx)("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${i}${a?"":(s=e,`\n  ${s}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n  ${s}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n`)}`}}):null;var s}function UI(e,t){const n="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r="auto"!==e?e:n?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",r)}function VI({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:s=!0,cssVariablesSelector:l=":root",classNamesPrefix:c="mantine",colorSchemeManager:u=II(),defaultColorScheme:d="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:h,stylesTransform:m,env:y}){const{colorScheme:g,setColorScheme:v,clearColorScheme:b}=function({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=(0,a.useRef)(null),[i,s]=(0,a.useState)((()=>e.get(t))),l=r||i,c=(0,a.useCallback)((t=>{r||(UI(t,n),s(t),e.set(t))}),[e.set,l,r]),u=(0,a.useCallback)((()=>{s(t),UI(t,n),e.clear()}),[e.clear,t]);return(0,a.useEffect)((()=>(e.subscribe(c),e.unsubscribe)),[e.subscribe,e.unsubscribe]),gM((()=>{UI(e.get(t),n)}),[]),(0,a.useEffect)((()=>{if(r)return UI(r,n),()=>{};void 0===r&&UI(i,n),"undefined"!=typeof window&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===i&&UI(e.matches?"dark":"light",n)};return o.current?.addEventListener("change",e),()=>o.current?.removeEventListener("change",e)}),[i,r]),{colorScheme:l,setColorScheme:c,clearColorScheme:u}}({defaultColorScheme:d,forceColorScheme:h,manager:u,getRootElement:f});return function({respectReducedMotion:e,getRootElement:t}){gM((()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")}),[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:f}),(0,Xr.jsx)(ZE.Provider,{value:{colorScheme:g,setColorScheme:v,clearColorScheme:b,getRootElement:f,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:l,withStaticClasses:r,stylesTransform:m,env:y},children:(0,Xr.jsxs)(UE,{theme:e,children:[s&&(0,Xr.jsx)(YI,{cssVariablesSelector:l,deduplicateCssVariables:i}),o&&(0,Xr.jsx)($I,{}),t]})})}YI.displayName="@mantine/CssVariables",function(){const e=console.error;console.error=(...t)=>{t.length>1&&"string"==typeof t[0]&&t[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof t[1]&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}(),VI.displayName="@mantine/core/MantineProvider";const qI=()=>(0,Xr.jsxs)("div",{className:"yoo-dashboard",children:[(0,Xr.jsx)(Yi,{}),(0,Xr.jsx)(NI,{}),(0,Xr.jsx)("div",{className:"clearfix"})]}),GI={};n()((()=>{(0,r.createRoot)(document.getElementById("root")).render((0,Xr.jsx)(r.StrictMode,{children:(0,Xr.jsx)(VI,{theme:GI,children:(0,Xr.jsx)(Ii,{children:(0,Xr.jsx)(qI,{})})})}))}))})()})();
  • yooanalytics/trunk/includes/rest-api/v1/rest-api.php

    r3373327 r3374738  
    7777        $start = $request->get_param( 'start' );
    7878        $end = $request->get_param( 'end' );
    79 
    80         // Support period-based aggregation (e.g., days, weeks, months, years)
    81         $period = $request->get_param( 'period' ) ?: 'days';
     79        $period = $request->get_param( 'period' );
    8280        $analytics = new Analytics_Query();
    83         $analytics = $analytics->get_analytics( $start, $end, $period );
    84 
    85         if ( $analytics ) {
    86             wp_send_json_success( $analytics );
     81        if ( ! empty( $period ) ) {
     82            // Use period-based grouping for widget and quick ranges
     83            $result = $analytics->get_analytics( $start, $end, $period );
     84        } else {
     85            // Use original logic for custom date ranges (no grouping)
     86            $result = $analytics->get_analytics( $start, $end );
    8787        }
    88 
     88        if ( $result ) {
     89            wp_send_json_success( $result );
     90        }
    8991        wp_send_json_error(
    9092            'No analytics found',
  • yooanalytics/trunk/readme.txt

    r3373327 r3374738  
    44Requires at least: 4.9
    55Tested up to: 6.8
    6 Stable tag: 0.8.0
     6Stable tag: 0.8.1
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    7777== Changelog ==
    7878
     79= 0.8.1 - Oct 08, 2025 =
     80* FIX 🐛 - Dashboard filter was not working.
     81
    7982= 0.8.0 - Oct 04, 2025 =
    8083* NEW 🚀 - Added filter on dashboard Days, Weeks, Months, and Years.
  • yooanalytics/trunk/src/screens/Dashboard.js

    r3353493 r3374738  
    2525    const [showDateRangePicker, setShowDateRangePicker] = useState( false );
    2626    const [rangePickerText, setRangePickerText] = useState( __( 'Select Date Range', 'yooanalytics' ) );
    27     const [selectedTimeSpan, setSelectedTimeSpan] = useState( __( 'Today', 'yooanalytics' ) );
     27    // Use 'days' as default period for consistency with widget
     28    const [selectedTimeSpan, setSelectedTimeSpan] = useState('days');
    2829    const [stats, setStats] = useState( {
    2930        visitors: 0,
     
    8283    ];
    8384
     85
     86    // Fetch analytics on mount and when refreshInterval or selectedTimeSpan changes
    8487    useEffect(() => {
    8588        let interval;
    86    
    87         if (refreshInterval > 0 || refreshInterval === undefined) {
    88             fetchAnalytics();
     89        fetchAnalytics('', '', selectedTimeSpan);
     90        if (refreshInterval > 0) {
     91            interval = setInterval(() => fetchAnalytics('', '', selectedTimeSpan), refreshInterval);
    8992        }
    90 
    91         if (refreshInterval > 0) {
    92             interval = setInterval(fetchAnalytics, refreshInterval);
     93        return () => clearInterval(interval);
     94    }, [refreshInterval, selectedTimeSpan]);
     95
     96    // Always pass period to getAnalytics
     97    const fetchAnalytics = async (startDate = '', endDate = '', period = selectedTimeSpan) => {
     98        setIsLoading(true);
     99        try {
     100            const response = await getAnalytics({ startDate, endDate, period });
     101            if (response) {
     102                if (response.settings && response.settings.refresh_interval) {
     103                    setRefreshInterval(response.settings.refresh_interval);
     104                }
     105                setStats(response.summary);
     106                setSearchEngines(response.search_engines);
     107                setTopReferers(response.top_referers);
     108                setUtmSources(response.utm_sources || []);
     109                setUtmMediums(response.utm_mediums || []);
     110                setPagesStats(response.pages_stats);
     111                setDatewiseStats(response.datewise_stats);
     112            } else {
     113                console.log('fetchAnalytics', response);
     114            }
     115        } catch (e) {
     116            setIsLoading(false);
    93117        }
    94 
    95         return () => clearInterval(interval);
    96    
    97     }, [refreshInterval]);
    98 
    99     const fetchAnalytics = async (startDate = '', endDate = '') => {
    100         setIsLoading(true);
    101 
    102         const response = await getAnalytics(startDate, endDate);
    103 
    104         if (response) {
    105             if (response.settings.refresh_interval) {
    106                 setRefreshInterval(response.settings.refresh_interval);
    107             }
    108             setStats(response.summary);
    109             setSearchEngines(response.search_engines);
    110             setTopReferers(response.top_referers);
    111             setUtmSources(response.utm_sources || []);
    112             setUtmMediums(response.utm_mediums || []);
    113             setPagesStats(response.pages_stats);
    114             setDatewiseStats(response.datewise_stats);
    115         } else {
    116             console.log('fetchAnalytics', response);
    117         }
    118 
    119118        setIsLoading(false);
    120     }
     119    };
    121120
    122121    const updateDasboardSettings = async (e) => {
     
    141140        + (endDate.getMonth() + 1).toString().padStart(2, '0') + '-'
    142141        + endDate.getDate().toString().padStart(2, '0');
    143        
    144         await fetchAnalytics(startDate, endDate);
    145     }
     142        // For custom range, pass 'days' as period for daily granularity
     143        await fetchAnalytics(startDate, endDate, 'days');
     144    };
     145    // Handler for range selection (days/weeks/months/years)
     146    const handleRangeChange = (range) => {
     147        setSelectedTimeSpan(range);
     148    };
    146149
    147150    const chartData = datewiseStats?.dates?.map((date, index) => ({
  • yooanalytics/trunk/yooanalytics.php

    r3373327 r3374738  
    55 * Plugin URI: https://www.yooanalytics.com/
    66 * Description: The Best Analytics Plugin for WordPress.
    7  * Version: 0.8.0
     7 * Version: 0.8.1
    88 * Author URI: https://coderpress.co
    99 * Text Domain: yooanalytics
     
    5353    do_action( 'yoo_fs_loaded' );
    5454}
    55 define( 'YOOANALYTICS_VERSION', '0.8.0' );
     55define( 'YOOANALYTICS_VERSION', '0.8.1' );
    5656define( 'YOOANALYTICS_DB_VERSION', '0.0.1' );
    5757define( 'YOOANALYTICS_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.