From 954d58aba8cc633b1cb21391a4b1a0c7f6c4e0c7 Mon Sep 17 00:00:00 2001 From: Lourdesjupo Date: Thu, 16 Nov 2023 21:05:07 +0100 Subject: [PATCH] publishGitHub --- docs/assets/{index-492540d9.js => index-372baa4c.js} | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/assets/{index-492540d9.js => index-372baa4c.js} (99%) diff --git a/docs/assets/index-492540d9.js b/docs/assets/index-372baa4c.js similarity index 99% rename from docs/assets/index-492540d9.js rename to docs/assets/index-372baa4c.js index 50d8aff..0c9653b 100644 --- a/docs/assets/index-492540d9.js +++ b/docs/assets/index-372baa4c.js @@ -159,4 +159,4 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function d$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function f$(e,t){return e.button===0&&(!t||t==="_self")&&!d$(e)}const p$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],h$="startTransition",gm=rs[h$];function m$(e){let{basename:t,children:n,future:r,window:o}=e,i=g.useRef();i.current==null&&(i.current=CE({window:o,v5Compat:!0}));let l=i.current,[s,a]=g.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=g.useCallback(d=>{u&&gm?gm(()=>a(d)):a(d)},[a,u]);return g.useLayoutEffect(()=>l.listen(c),[l,c]),g.createElement(a$,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l})}const g$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ha=g.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:c}=t,d=c$(t,p$),{basename:h}=g.useContext(Ho),S,b=!1;if(typeof u=="string"&&v$.test(u)&&(S=u,g$))try{let p=new URL(window.location.href),v=u.startsWith("//")?new URL(p.protocol+u):new URL(u),C=wf(v.pathname,h);v.origin===p.origin&&C!=null?u=C+v.search+v.hash:b=!0}catch{}let y=qE(u,{relative:o}),w=y$(u,{replace:l,state:s,target:a,preventScrollReset:c,relative:o});function f(p){r&&r(p),p.defaultPrevented||w(p)}return g.createElement("a",td({},d,{href:S||y,onClick:b||i?r:f,ref:n,target:a}))});var vm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(vm||(vm={}));var ym;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ym||(ym={}));function y$(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,s=h1(),a=Ua(),u=m1(e,{relative:l});return g.useCallback(c=>{if(f$(c,n)){c.preventDefault();let d=r!==void 0?r:Ns(a)===Ns(u);s(e,{replace:d,state:o,preventScrollReset:i,relative:l})}},[a,s,u,r,o,n,e,i,l])}const xm=["Inicio","Mis estadísticas","Configuración"];function x$(){const[e,t]=g.useState(null),n=h1(),r=l=>{t(l.currentTarget)},o=()=>{t(null)},i=l=>{switch(t(null),l){case"Inicio":n("/");break;case"Mis estadísticas":n("/stats");break;case"Configuración":n("/settings");break}};return console.log(e),m.jsx(Zk,{position:"static",children:m.jsx(tE,{maxWidth:"xl",children:m.jsxs(aw,{disableGutters:!0,children:[m.jsx(Ht,{sx:{display:{xs:"none",md:"flex"},mr:1},children:m.jsx("img",{src:cm,alt:"Logo",style:{width:"50px"}})}),m.jsx(dt,{variant:"h6",noWrap:!0,component:"a",href:"/",sx:{mr:2,display:{xs:"none",md:"flex"},fontFamily:"quicksand",fontWeight:700,color:"inherit",textDecoration:"none"},children:"ChronoLogica"}),m.jsxs(Ht,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[m.jsx(Ww,{size:"large",onClick:r,color:"inherit",children:m.jsx(i1,{})}),m.jsx(n1,{id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!e,onClose:o,sx:{display:{xs:"block",md:"none"},fontFamily:"raleway"},children:xm.map(l=>m.jsx(mi,{onClick:()=>{i(l)},children:m.jsx(dt,{textAlign:"center",children:l})},l))})]}),m.jsx(Ht,{sx:{display:{xs:"flex",md:"none"},mr:1},children:m.jsx("img",{src:cm,alt:"Logo",style:{width:"50px"}})}),m.jsx(dt,{variant:"h5",noWrap:!0,component:"a",href:"",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"quicksand",fontWeight:700,color:"inherit",textDecoration:"none"},children:"ChronoLogica"}),m.jsx(Ht,{sx:{flexGrow:1,justifyContent:"center",display:{xs:"none",md:"flex"}},children:xm.map(l=>m.jsx(Hr,{onClick:()=>{i(l)},sx:{my:2,color:"inherit",display:"block"},children:l},l))})]})})})}function b$(e){return ge("MuiCollapse",e)}me("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const S$=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],C$=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return xe(r,b$,n)},k$=D("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>x({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&x({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),w$=D("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>x({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),E$=D("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>x({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),v1=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:l,collapsedSize:s="0px",component:a,easing:u,in:c,onEnter:d,onEntered:h,onEntering:S,onExit:b,onExited:y,onExiting:w,orientation:f="vertical",style:p,timeout:v=qv.standard,TransitionComponent:C=yf}=r,k=te(r,S$),$=x({},r,{orientation:f,collapsedSize:s}),E=C$($),P=gr(),N=g.useRef(),R=g.useRef(null),O=g.useRef(),K=typeof s=="number"?`${s}px`:s,B=f==="horizontal",I=B?"width":"height";g.useEffect(()=>()=>{clearTimeout(N.current)},[]);const z=g.useRef(null),W=rt(n,z),U=M=>ce=>{if(M){const fe=z.current;ce===void 0?M(fe):M(fe,ce)}},T=()=>R.current?R.current[B?"clientWidth":"clientHeight"]:0,L=U((M,ce)=>{R.current&&B&&(R.current.style.position="absolute"),M.style[I]=K,d&&d(M,ce)}),F=U((M,ce)=>{const fe=T();R.current&&B&&(R.current.style.position="");const{duration:ve,easing:Te}=Ao({style:p,timeout:v,easing:u},{mode:"enter"});if(v==="auto"){const pe=P.transitions.getAutoHeightDuration(fe);M.style.transitionDuration=`${pe}ms`,O.current=pe}else M.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;M.style[I]=`${fe}px`,M.style.transitionTimingFunction=Te,S&&S(M,ce)}),Y=U((M,ce)=>{M.style[I]="auto",h&&h(M,ce)}),ne=U(M=>{M.style[I]=`${T()}px`,b&&b(M)}),se=U(y),ae=U(M=>{const ce=T(),{duration:fe,easing:ve}=Ao({style:p,timeout:v,easing:u},{mode:"exit"});if(v==="auto"){const Te=P.transitions.getAutoHeightDuration(ce);M.style.transitionDuration=`${Te}ms`,O.current=Te}else M.style.transitionDuration=typeof fe=="string"?fe:`${fe}ms`;M.style[I]=K,M.style.transitionTimingFunction=ve,w&&w(M)}),H=M=>{v==="auto"&&(N.current=setTimeout(M,O.current||0)),o&&o(z.current,M)};return m.jsx(C,x({in:c,onEnter:L,onEntered:Y,onEntering:F,onExit:ne,onExited:se,onExiting:ae,addEndListener:H,nodeRef:z,timeout:v==="auto"?null:v},k,{children:(M,ce)=>m.jsx(k$,x({as:a,className:X(E.root,l,{entered:E.entered,exited:!c&&K==="0px"&&E.hidden}[M]),style:x({[B?"minWidth":"minHeight"]:K},p),ownerState:x({},$,{state:M}),ref:W},ce,{children:m.jsx(w$,{ownerState:x({},$,{state:M}),className:E.wrapper,ref:R,children:m.jsx(E$,{ownerState:x({},$,{state:M}),className:E.wrapperInner,children:i})})}))}))});v1.muiSupportAuto=!0;const $$=v1,R$=g.createContext({}),y1=R$;function P$(e){return ge("MuiAccordion",e)}const T$=me("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),jl=T$,I$=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],M$=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},P$,t)},_$=D(Pa,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jl.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${jl.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${jl.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>x({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${jl.expanded}`]:{margin:"16px 0"}})),N$=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:l=!1,disabled:s=!1,disableGutters:a=!1,expanded:u,onChange:c,square:d=!1,TransitionComponent:h=$$,TransitionProps:S}=r,b=te(r,I$),[y,w]=Ki({controlled:u,default:l,name:"Accordion",state:"expanded"}),f=g.useCallback(E=>{w(!y),c&&c(E,!y)},[y,c,w]),[p,...v]=g.Children.toArray(o),C=g.useMemo(()=>({expanded:y,disabled:s,disableGutters:a,toggle:f}),[y,s,a,f]),k=x({},r,{square:d,disabled:s,disableGutters:a,expanded:y}),$=M$(k);return m.jsxs(_$,x({className:X($.root,i),ref:n,ownerState:k,square:d},b,{children:[m.jsx(y1.Provider,{value:C,children:p}),m.jsx(h,x({in:y,timeout:"auto"},S,{children:m.jsx("div",{"aria-labelledby":p.props.id,id:p.props["aria-controls"],role:"region",className:$.region,children:v})}))]}))}),z$=N$;function O$(e){return ge("MuiAccordionDetails",e)}me("MuiAccordionDetails",["root"]);const j$=["className"],L$=e=>{const{classes:t}=e;return xe({root:["root"]},O$,t)},A$=D("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),F$=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiAccordionDetails"}),{className:o}=r,i=te(r,j$),l=r,s=L$(l);return m.jsx(A$,x({className:X(s.root,o),ref:n,ownerState:l},i))}),B$=F$;function D$(e){return ge("MuiAccordionSummary",e)}const W$=me("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vo=W$,U$=["children","className","expandIcon","focusVisibleClassName","onClick"],H$=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},D$,t)},V$=D(Ur,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return x({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${vo.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${vo.expanded}`]:{minHeight:64}})}),K$=D("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>x({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${vo.expanded}`]:{margin:"20px 0"}})),G$=D("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${vo.expanded}`]:{transform:"rotate(180deg)"}})),q$=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:l,focusVisibleClassName:s,onClick:a}=r,u=te(r,U$),{disabled:c=!1,disableGutters:d,expanded:h,toggle:S}=g.useContext(y1),b=f=>{S&&S(f),a&&a(f)},y=x({},r,{expanded:h,disabled:c,disableGutters:d}),w=H$(y);return m.jsxs(V$,x({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":h,className:X(w.root,i),focusVisibleClassName:X(w.focusVisible,s),onClick:b,ref:n,ownerState:y},u,{children:[m.jsx(K$,{className:w.content,ownerState:y,children:o}),l&&m.jsx(G$,{className:w.expandIconWrapper,ownerState:y,children:l})]}))}),Y$=q$;function Vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Q$=g.createContext(void 0),Va=Q$;function Gr(){return g.useContext(Va)}function X$(e){return m.jsx(CC,x({},e,{defaultTheme:Ra,themeId:Br}))}function bm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Os(e,t=!1){return e&&(bm(e.value)&&e.value!==""||t&&bm(e.defaultValue)&&e.defaultValue!=="")}function Z$(e){return e.startAdornment}function J$(e){return ge("MuiInputBase",e)}const eR=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fo=eR,tR=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ka=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${G(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ga=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},nR=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:s,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:d,size:h,startAdornment:S,type:b}=e,y={root:["root",`color${G(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",l&&"focused",s&&"formControl",h==="small"&&"sizeSmall",c&&"multiline",S&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",S&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return xe(y,J$,t)},qa=D("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ka})(({theme:e,ownerState:t})=>x({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ya=D("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ga})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Fo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),rR=m.jsx(X$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),oR=g.forwardRef(function(t,n){var r;const o=be({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:s,className:a,components:u={},componentsProps:c={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:S,endAdornment:b,fullWidth:y=!1,id:w,inputComponent:f="input",inputProps:p={},inputRef:v,maxRows:C,minRows:k,multiline:$=!1,name:E,onBlur:P,onChange:N,onClick:R,onFocus:O,onKeyDown:K,onKeyUp:B,placeholder:I,readOnly:z,renderSuffix:W,rows:U,slotProps:T={},slots:L={},startAdornment:F,type:Y="text",value:ne}=o,se=te(o,tR),ae=p.value!=null?p.value:ne,{current:H}=g.useRef(ae!=null),M=g.useRef(),ce=g.useCallback(Z=>{},[]),fe=rt(M,v,p.ref,ce),[ve,Te]=g.useState(!1),pe=Gr(),oe=Vo({props:o,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=pe?pe.focused:ve,g.useEffect(()=>{!pe&&h&&ve&&(Te(!1),P&&P())},[pe,h,ve,P]);const ue=pe&&pe.onFilled,ie=pe&&pe.onEmpty,he=g.useCallback(Z=>{Os(Z)?ue&&ue():ie&&ie()},[ue,ie]);$n(()=>{H&&he({value:ae})},[ae,he,H]);const Oe=Z=>{if(oe.disabled){Z.stopPropagation();return}O&&O(Z),p.onFocus&&p.onFocus(Z),pe&&pe.onFocus?pe.onFocus(Z):Te(!0)},ye=Z=>{P&&P(Z),p.onBlur&&p.onBlur(Z),pe&&pe.onBlur?pe.onBlur(Z):Te(!1)},Ve=(Z,...Q)=>{if(!H){const q=Z.target||M.current;if(q==null)throw new Error(fr(1));he({value:q.value})}p.onChange&&p.onChange(Z,...Q),N&&N(Z,...Q)};g.useEffect(()=>{he(M.current)},[]);const kt=Z=>{M.current&&Z.currentTarget===Z.target&&M.current.focus(),R&&!oe.disabled&&R(Z)};let ke=f,_e=p;$&&ke==="input"&&(U?_e=x({type:void 0,minRows:U,maxRows:U},_e):_e=x({type:void 0,maxRows:C,minRows:k},_e),ke=CS);const vt=Z=>{he(Z.animationName==="mui-auto-fill-cancel"?M.current:{value:"x"})};g.useEffect(()=>{pe&&pe.setAdornedStart(!!F)},[pe,F]);const Ne=x({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:b,error:oe.error,focused:oe.focused,formControl:pe,fullWidth:y,hiddenLabel:oe.hiddenLabel,multiline:$,size:oe.size,startAdornment:F,type:Y}),wt=nR(Ne),A=L.root||u.Root||qa,ee=T.root||c.root||{},le=L.input||u.Input||Ya;return _e=x({},_e,(r=T.input)!=null?r:c.input),m.jsxs(g.Fragment,{children:[!S&&rR,m.jsxs(A,x({},ee,!On(A)&&{ownerState:x({},Ne,ee.ownerState)},{ref:n,onClick:kt},se,{className:X(wt.root,ee.className,a,z&&"MuiInputBase-readOnly"),children:[F,m.jsx(Va.Provider,{value:null,children:m.jsx(le,x({ownerState:Ne,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:l,autoFocus:s,defaultValue:d,disabled:oe.disabled,id:w,onAnimationStart:vt,name:E,placeholder:I,readOnly:z,required:oe.required,rows:U,value:ae,onKeyDown:K,onKeyUp:B,type:Y},_e,!On(le)&&{as:ke,ownerState:x({},Ne,_e.ownerState)},{ref:fe,className:X(wt.input,_e.className,z&&"MuiInputBase-readOnly"),onBlur:ye,onChange:Ve,onFocus:Oe}))}),b,W?W(x({},oe,{startAdornment:F})):null]}))]})}),$f=oR;function iR(e){return ge("MuiInput",e)}const lR=x({},Fo,me("MuiInput",["root","underline","input"])),li=lR;function sR(e){return ge("MuiOutlinedInput",e)}const aR=x({},Fo,me("MuiOutlinedInput",["root","notchedOutline","input"])),Hn=aR;function uR(e){return ge("MuiFilledInput",e)}const cR=x({},Fo,me("MuiFilledInput",["root","underline","input"])),yr=cR,dR=Ba(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function fR(e){return ge("MuiBadge",e)}const pR=me("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Vn=pR,hR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Wu=10,Uu=4,mR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:l={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${G(n.vertical)}${G(n.horizontal)}`,`anchorOrigin${G(n.vertical)}${G(n.horizontal)}${G(o)}`,`overlap${G(o)}`,t!=="default"&&`color${G(t)}`]};return xe(s,fR,l)},gR=D("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),vR=D("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${G(n.anchorOrigin.vertical)}${G(n.anchorOrigin.horizontal)}${G(n.overlap)}`],n.color!=="default"&&t[`color${G(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>x({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Wu*2,lineHeight:1,padding:"0 6px",height:Wu*2,borderRadius:Wu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:Uu,height:Uu*2,minWidth:Uu*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),yR=g.forwardRef(function(t,n){var r,o,i,l,s,a;const u=be({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:S={},componentsProps:b={},children:y,overlap:w="rectangular",color:f="default",invisible:p=!1,max:v=99,badgeContent:C,slots:k,slotProps:$,showZero:E=!1,variant:P="standard"}=u,N=te(u,hR),{badgeContent:R,invisible:O,max:K,displayValue:B}=Wb({max:v,invisible:p,badgeContent:C,showZero:E}),I=mv({anchorOrigin:c,color:f,overlap:w,variant:P,badgeContent:C}),z=O||R==null&&P!=="dot",{color:W=f,overlap:U=w,anchorOrigin:T=c,variant:L=P}=z?I:u,F=L!=="dot"?B:void 0,Y=x({},u,{badgeContent:R,invisible:z,max:K,displayValue:F,showZero:E,anchorOrigin:T,color:W,overlap:U,variant:L}),ne=mR(Y),se=(r=(o=k==null?void 0:k.root)!=null?o:S.Root)!=null?r:gR,ae=(i=(l=k==null?void 0:k.badge)!=null?l:S.Badge)!=null?i:vR,H=(s=$==null?void 0:$.root)!=null?s:b.root,M=(a=$==null?void 0:$.badge)!=null?a:b.badge,ce=it({elementType:se,externalSlotProps:H,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:Y,className:X(H==null?void 0:H.className,ne.root,d)}),fe=it({elementType:ae,externalSlotProps:M,ownerState:Y,className:X(ne.badge,M==null?void 0:M.className)});return m.jsxs(se,x({},ce,{children:[y,m.jsx(ae,x({},fe,{children:F}))]}))}),xR=yR;function bR(e){return ge("MuiFab",e)}const SR=me("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Sm=SR,CR=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],kR=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${G(o)}`,t==="inherit"?"colorInherit":t]},l=xe(i,bR,r);return x({},r,l)},wR=D(Ur,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>mn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${G(n.size)}`],n.color==="inherit"&&t.colorInherit,t[G(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return x({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Sm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>x({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${Sm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),ER=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFab"}),{children:o,className:i,color:l="default",component:s="button",disabled:a=!1,disableFocusRipple:u=!1,focusVisibleClassName:c,size:d="large",variant:h="circular"}=r,S=te(r,CR),b=x({},r,{color:l,component:s,disabled:a,disableFocusRipple:u,size:d,variant:h}),y=kR(b);return m.jsx(wR,x({className:X(y.root,i),component:s,disabled:a,focusRipple:!u,focusVisibleClassName:X(y.focusVisible,c),ownerState:b,ref:n},S,{classes:y,children:o}))}),x1=ER,$R=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],RR=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},uR,t);return x({},t,o)},PR=D(qa,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ka(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${yr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${yr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yr.disabled}, .${yr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),TR=D(Ya,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ga})(({theme:e,ownerState:t})=>x({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),b1=g.forwardRef(function(t,n){var r,o,i,l;const s=be({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:S,slots:b={},type:y="text"}=s,w=te(s,$R),f=x({},s,{fullWidth:c,inputComponent:d,multiline:h,type:y}),p=RR(s),v={root:{ownerState:f},input:{ownerState:f}},C=S??u?jt(S??u,v):v,k=(r=(o=b.root)!=null?o:a.Root)!=null?r:PR,$=(i=(l=b.input)!=null?l:a.Input)!=null?i:TR;return m.jsx($f,x({slots:{root:k,input:$},componentsProps:C,fullWidth:c,inputComponent:d,multiline:h,ref:n,type:y},w,{classes:p}))});b1.muiName="Input";const S1=b1;function IR(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const MR=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_R=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${G(n)}`,r&&"fullWidth"]};return xe(o,IR,t)},NR=D("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${G(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),zR=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:s="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:h=!1,margin:S="none",required:b=!1,size:y="medium",variant:w="outlined"}=r,f=te(r,MR),p=x({},r,{color:l,component:s,disabled:a,error:u,fullWidth:d,hiddenLabel:h,margin:S,required:b,size:y,variant:w}),v=_R(p),[C,k]=g.useState(()=>{let B=!1;return o&&g.Children.forEach(o,I=>{if(!Jl(I,["Input","Select"]))return;const z=Jl(I,["Select"])?I.props.input:I;z&&Z$(z.props)&&(B=!0)}),B}),[$,E]=g.useState(()=>{let B=!1;return o&&g.Children.forEach(o,I=>{Jl(I,["Input","Select"])&&(Os(I.props,!0)||Os(I.props.inputProps,!0))&&(B=!0)}),B}),[P,N]=g.useState(!1);a&&P&&N(!1);const R=c!==void 0&&!a?c:P;let O;const K=g.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:l,disabled:a,error:u,filled:$,focused:R,fullWidth:d,hiddenLabel:h,size:y,onBlur:()=>{N(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{N(!0)},registerEffect:O,required:b,variant:w}),[C,l,a,u,$,R,d,h,O,b,y,w]);return m.jsx(Va.Provider,{value:K,children:m.jsx(NR,x({as:s,ownerState:p,className:X(v.root,i),ref:n},f,{children:o}))})}),C1=zR;function OR(e){return ge("MuiFormHelperText",e)}const jR=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Cm=jR;var km;const LR=["children","className","component","disabled","error","filled","focused","margin","required","variant"],AR=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:s,required:a}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${G(r)}`,n&&"contained",s&&"focused",l&&"filled",a&&"required"]};return xe(u,OR,t)},FR=D("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${G(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Cm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cm.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),BR=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p"}=r,s=te(r,LR),a=Gr(),u=Vo({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=x({},r,{component:l,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=AR(c);return m.jsx(FR,x({as:l,ownerState:c,className:X(d.root,i),ref:n},s,{children:o===" "?km||(km=m.jsx("span",{className:"notranslate",children:"​"})):o}))}),DR=BR;function WR(e){return ge("MuiFormLabel",e)}const UR=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Pi=UR,HR=["children","className","color","component","disabled","error","filled","focused","required"],VR=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:s}=e,a={root:["root",`color${G(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return xe(a,WR,t)},KR=D("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Pi.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Pi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pi.error}`]:{color:(e.vars||e).palette.error.main}})),GR=D("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pi.error}`]:{color:(e.vars||e).palette.error.main}})),qR=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:l="label"}=r,s=te(r,HR),a=Gr(),u=Vo({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=x({},r,{color:u.color||"primary",component:l,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=VR(c);return m.jsxs(KR,x({as:l,ownerState:c,className:X(d.root,i),ref:n},s,{children:[o,u.required&&m.jsxs(GR,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),YR=qR,QR=g.createContext(),wm=QR;function XR(e){return ge("MuiGrid",e)}const ZR=[0,1,2,3,4,5,6,7,8,9,10],JR=["column-reverse","column","row-reverse","row"],eP=["nowrap","wrap-reverse","wrap"],si=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],tP=me("MuiGrid",["root","container","item","zeroMinWidth",...ZR.map(e=>`spacing-xs-${e}`),...JR.map(e=>`direction-xs-${e}`),...eP.map(e=>`wrap-xs-${e}`),...si.map(e=>`grid-xs-${e}`),...si.map(e=>`grid-sm-${e}`),...si.map(e=>`grid-md-${e}`),...si.map(e=>`grid-lg-${e}`),...si.map(e=>`grid-xl-${e}`)]),Ji=tP,nP=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function $o(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function rP({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=_r({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof l=="object"?l[o]:l;if(s==null)return r;const a=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${a} + ${$o(c)})`;u={flexBasis:d,maxWidth:d}}}i=x({flexBasis:a,flexGrow:0,maxWidth:a},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function oP({theme:e,ownerState:t}){const n=_r({values:t.direction,breakpoints:e.breakpoints.values});return At({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Ji.item}`]={maxWidth:"none"}),o})}function k1({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function iP({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=_r({values:r,breakpoints:e.breakpoints.values});let l;typeof i=="object"&&(l=k1({breakpoints:e.breakpoints.values,values:i})),o=At({theme:e},i,(s,a)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${$o(c)}`,[`& > .${Ji.item}`]:{paddingTop:$o(c)}}:(u=l)!=null&&u.includes(a)?{}:{marginTop:0,[`& > .${Ji.item}`]:{paddingTop:0}}})}return o}function lP({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=_r({values:r,breakpoints:e.breakpoints.values});let l;typeof i=="object"&&(l=k1({breakpoints:e.breakpoints.values,values:i})),o=At({theme:e},i,(s,a)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${$o(c)})`,marginLeft:`-${$o(c)}`,[`& > .${Ji.item}`]:{paddingLeft:$o(c)}}:(u=l)!=null&&u.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${Ji.item}`]:{paddingLeft:0}}})}return o}function sP(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const aP=D("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:l,wrap:s,zeroMinWidth:a,breakpoints:u}=n;let c=[];r&&(c=sP(l,u,t));const d=[];return u.forEach(h=>{const S=n[h];S&&d.push(t[`grid-${h}-${String(S)}`])}),[t.root,r&&t.container,i&&t.item,a&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>x({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),oP,iP,lP,rP);function uP(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const cP=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:a}=e;let u=[];n&&(u=uP(i,a));const c=[];a.forEach(h=>{const S=e[h];S&&c.push(`grid-${h}-${String(S)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...c]};return xe(d,XR,t)},dP=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiGrid"}),{breakpoints:o}=gr(),i=Ea(r),{className:l,columns:s,columnSpacing:a,component:u="div",container:c=!1,direction:d="row",item:h=!1,rowSpacing:S,spacing:b=0,wrap:y="wrap",zeroMinWidth:w=!1}=i,f=te(i,nP),p=S||b,v=a||b,C=g.useContext(wm),k=c?s||12:C,$={},E=x({},f);o.keys.forEach(R=>{f[R]!=null&&($[R]=f[R],delete E[R])});const P=x({},i,{columns:k,container:c,direction:d,item:h,rowSpacing:p,columnSpacing:v,wrap:y,zeroMinWidth:w,spacing:b},$,{breakpoints:o.keys}),N=cP(P);return m.jsx(wm.Provider,{value:k,children:m.jsx(aP,x({ownerState:P,className:X(N.root,l),as:u,ref:n},E))})}),Em=dP,fP=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pP=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},iR,t);return x({},t,o)},hP=D(qa,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ka(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),x({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${li.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${li.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${li.disabled}, .${li.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${li.disabled}:before`]:{borderBottomStyle:"dotted"}})}),mP=D(Ya,{name:"MuiInput",slot:"Input",overridesResolver:Ga})({}),w1=g.forwardRef(function(t,n){var r,o,i,l;const s=be({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:S=!1,slotProps:b,slots:y={},type:w="text"}=s,f=te(s,fP),p=pP(s),C={root:{ownerState:{disableUnderline:a}}},k=b??c?jt(b??c,C):C,$=(r=(o=y.root)!=null?o:u.Root)!=null?r:hP,E=(i=(l=y.input)!=null?l:u.Input)!=null?i:mP;return m.jsx($f,x({slots:{root:$,input:E},slotProps:k,fullWidth:d,inputComponent:h,multiline:S,ref:n,type:w},f,{classes:p}))});w1.muiName="Input";const E1=w1;function gP(e){return ge("MuiInputAdornment",e)}const vP=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),$m=vP;var Rm;const yP=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xP=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${G(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},bP=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:l}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${G(o)}`,l,r&&"hiddenLabel",i&&`size${G(i)}`]};return xe(s,gP,t)},SP=D("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xP})(({theme:e,ownerState:t})=>x({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${$m.positionStart}&:not(.${$m.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),CP=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:l="div",disablePointerEvents:s=!1,disableTypography:a=!1,position:u,variant:c}=r,d=te(r,yP),h=Gr()||{};let S=c;c&&h.variant,h&&!S&&(S=h.variant);const b=x({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:u,variant:S}),y=bP(b);return m.jsx(Va.Provider,{value:null,children:m.jsx(SP,x({as:l,ownerState:b,className:X(y.root,i),ref:n},d,{children:typeof o=="string"&&!a?m.jsx(dt,{color:"text.secondary",children:o}):m.jsxs(g.Fragment,{children:[u==="start"?Rm||(Rm=m.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),kP=CP;function wP(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const EP=["disableAnimation","margin","shrink","variant","className"],$P=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:s}=e,u=xe({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",l],asterisk:[s&&"asterisk"]},wP,t);return x({},t,u)},RP=D(YR,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>x({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&x({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&x({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&x({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),PP=g.forwardRef(function(t,n){const r=be({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:l}=r,s=te(r,EP),a=Gr();let u=i;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=Vo({props:r,muiFormControl:a,states:["size","variant","required"]}),d=x({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required}),h=$P(d);return m.jsx(RP,x({"data-shrink":u,ownerState:d,ref:n,className:X(h.root,l)},s,{classes:h}))}),$1=PP;function TP(e){return ge("MuiNativeSelect",e)}const IP=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rf=IP,MP=["className","disabled","error","IconComponent","inputRef","variant"],_P=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,s={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${G(n)}`,i&&"iconOpen",r&&"disabled"]};return xe(s,TP,t)},R1=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":x({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Rf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),NP=D("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Rf.multiple}`]:t.multiple}]}})(R1),P1=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Rf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),zP=D("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${G(n.variant)}`],n.open&&t.iconOpen]}})(P1),OP=g.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:s,variant:a="standard"}=t,u=te(t,MP),c=x({},t,{disabled:o,variant:a,error:i}),d=_P(c);return m.jsxs(g.Fragment,{children:[m.jsx(NP,x({ownerState:c,className:X(d.select,r),disabled:o,ref:s||n},u)),t.multiple?null:m.jsx(zP,{as:l,ownerState:c,className:d.icon})]})}),jP=OP;var Pm;const LP=["children","classes","className","label","notched"],AP=D("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),FP=D("legend")(({ownerState:e,theme:t})=>x({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&x({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function BP(e){const{className:t,label:n,notched:r}=e,o=te(e,LP),i=n!=null&&n!=="",l=x({},e,{notched:r,withLabel:i});return m.jsx(AP,x({"aria-hidden":!0,className:t,ownerState:l},o,{children:m.jsx(FP,{ownerState:l,children:i?m.jsx("span",{children:n}):Pm||(Pm=m.jsx("span",{className:"notranslate",children:"​"}))})}))}const DP=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WP=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sR,t);return x({},t,r)},UP=D(qa,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ka})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Hn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Hn.focused} .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Hn.error} .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Hn.disabled} .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),HP=D(BP,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),VP=D(Ya,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ga})(({theme:e,ownerState:t})=>x({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),T1=g.forwardRef(function(t,n){var r,o,i,l,s;const a=be({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:h,multiline:S=!1,notched:b,slots:y={},type:w="text"}=a,f=te(a,DP),p=WP(a),v=Gr(),C=Vo({props:a,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=x({},a,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:v,fullWidth:c,hiddenLabel:C.hiddenLabel,multiline:S,size:C.size,type:w}),$=(r=(o=y.root)!=null?o:u.Root)!=null?r:UP,E=(i=(l=y.input)!=null?l:u.Input)!=null?i:VP;return m.jsx($f,x({slots:{root:$,input:E},renderSuffix:P=>m.jsx(HP,{ownerState:k,className:p.notchedOutline,label:h!=null&&h!==""&&C.required?s||(s=m.jsxs(g.Fragment,{children:[h," ","*"]})):h,notched:typeof b<"u"?b:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:c,inputComponent:d,multiline:S,ref:n,type:w},f,{classes:x({},p,{notchedOutline:null})}))});T1.muiName="Input";const I1=T1;function KP(e){return ge("MuiSelect",e)}const GP=me("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ai=GP;var Tm;const qP=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YP=D("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ai.select}`]:t.select},{[`&.${ai.select}`]:t[n.variant]},{[`&.${ai.error}`]:t.error},{[`&.${ai.multiple}`]:t.multiple}]}})(R1,{[`&.${ai.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),QP=D("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${G(n.variant)}`],n.open&&t.iconOpen]}})(P1),XP=D("input",{shouldForwardProp:e=>vf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Im(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ZP(e){return e==null||typeof e=="string"&&!e.trim()}const JP=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,s={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${G(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(s,KP,t)},eT=g.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:l,children:s,className:a,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:h,error:S=!1,IconComponent:b,inputRef:y,labelId:w,MenuProps:f={},multiple:p,name:v,onBlur:C,onChange:k,onClose:$,onFocus:E,onOpen:P,open:N,readOnly:R,renderValue:O,SelectDisplayProps:K={},tabIndex:B,value:I,variant:z="standard"}=t,W=te(t,qP),[U,T]=Ki({controlled:I,default:c,name:"Select"}),[L,F]=Ki({controlled:N,default:u,name:"Select"}),Y=g.useRef(null),ne=g.useRef(null),[se,ae]=g.useState(null),{current:H}=g.useRef(N!=null),[M,ce]=g.useState(),fe=rt(n,y),ve=g.useCallback(q=>{ne.current=q,q&&ae(q)},[]),Te=se==null?void 0:se.parentNode;g.useImperativeHandle(fe,()=>({focus:()=>{ne.current.focus()},node:Y.current,value:U}),[U]),g.useEffect(()=>{u&&L&&se&&!H&&(ce(l?null:Te.clientWidth),ne.current.focus())},[se,l]),g.useEffect(()=>{i&&ne.current.focus()},[i]),g.useEffect(()=>{if(!w)return;const q=nt(ne.current).getElementById(w);if(q){const re=()=>{getSelection().isCollapsed&&ne.current.focus()};return q.addEventListener("click",re),()=>{q.removeEventListener("click",re)}}},[w]);const pe=(q,re)=>{q?P&&P(re):$&&$(re),H||(ce(l?null:Te.clientWidth),F(q))},oe=q=>{q.button===0&&(q.preventDefault(),ne.current.focus(),pe(!0,q))},ue=q=>{pe(!1,q)},ie=g.Children.toArray(s),he=q=>{const re=ie.find(_=>_.props.value===q.target.value);re!==void 0&&(T(re.props.value),k&&k(q,re))},Oe=q=>re=>{let _;if(re.currentTarget.hasAttribute("tabindex")){if(p){_=Array.isArray(U)?U.slice():[];const V=U.indexOf(q.props.value);V===-1?_.push(q.props.value):_.splice(V,1)}else _=q.props.value;if(q.props.onClick&&q.props.onClick(re),U!==_&&(T(_),k)){const V=re.nativeEvent||re,de=new V.constructor(V.type,V);Object.defineProperty(de,"target",{writable:!0,value:{value:_,name:v}}),k(de,q)}p||pe(!1,re)}},ye=q=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(q.key)!==-1&&(q.preventDefault(),pe(!0,q))},Ve=se!==null&&L,kt=q=>{!Ve&&C&&(Object.defineProperty(q,"target",{writable:!0,value:{value:U,name:v}}),C(q))};delete W["aria-invalid"];let ke,_e;const vt=[];let Ne=!1;(Os({value:U})||h)&&(O?ke=O(U):Ne=!0);const wt=ie.map(q=>{if(!g.isValidElement(q))return null;let re;if(p){if(!Array.isArray(U))throw new Error(fr(2));re=U.some(_=>Im(_,q.props.value)),re&&Ne&&vt.push(q.props.children)}else re=Im(U,q.props.value),re&&Ne&&(_e=q.props.children);return g.cloneElement(q,{"aria-selected":re?"true":"false",onClick:Oe(q),onKeyUp:_=>{_.key===" "&&_.preventDefault(),q.props.onKeyUp&&q.props.onKeyUp(_)},role:"option",selected:re,value:void 0,"data-value":q.props.value})});Ne&&(p?vt.length===0?ke=null:ke=vt.reduce((q,re,_)=>(q.push(re),_{const{classes:t}=e;return t},Pf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mn(e)&&e!=="variant",slot:"Root"},oT=D(E1,Pf)(""),iT=D(I1,Pf)(""),lT=D(S1,Pf)(""),M1=g.forwardRef(function(t,n){const r=be({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:s,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=dR,id:d,input:h,inputProps:S,label:b,labelId:y,MenuProps:w,multiple:f=!1,native:p=!1,onClose:v,onOpen:C,open:k,renderValue:$,SelectDisplayProps:E,variant:P="outlined"}=r,N=te(r,nT),R=p?jP:tT,O=Gr(),K=Vo({props:r,muiFormControl:O,states:["variant","error"]}),B=K.variant||P,I=x({},r,{variant:B,classes:l}),z=rT(I),W=h||{standard:m.jsx(oT,{ownerState:I}),outlined:m.jsx(iT,{label:b,ownerState:I}),filled:m.jsx(lT,{ownerState:I})}[B],U=rt(n,W.ref);return m.jsx(g.Fragment,{children:g.cloneElement(W,x({inputComponent:R,inputProps:x({children:i,error:K.error,IconComponent:c,variant:B,type:void 0,multiple:f},p?{id:d}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:y,MenuProps:w,onClose:v,onOpen:C,open:k,renderValue:$,SelectDisplayProps:x({id:d},E)},S,{classes:S?jt(z,S.classes):z},h?h.props.inputProps:{})},f&&p&&B==="outlined"?{notched:!0}:{},{ref:U,className:X(W.props.className,s)},!h&&{variant:B},N))})});M1.muiName="Select";const _1=M1,sT=e=>!e||!On(e),aT=sT;function uT(e){return ge("MuiSlider",e)}const cT=me("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),dn=cT,dT=e=>{const{open:t}=e;return{offset:X(t&&dn.valueLabelOpen),circle:dn.valueLabelCircle,label:dn.valueLabelLabel}};function fT(e){const{children:t,className:n,value:r}=e,o=dT(e);return t?g.cloneElement(t,{className:X(t.props.className)},m.jsxs(g.Fragment,{children:[t.props.children,m.jsx("span",{className:X(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}const pT=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Mm(e){return e}const hT=D("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${G(n.color)}`],n.size!=="medium"&&t[`size${G(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>x({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&x({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&x({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${dn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${dn.dragging}`]:{[`& .${dn.thumb}, & .${dn.track}`]:{transition:"none"}}})),mT=D("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>x({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),gT=D("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Vv(e.palette[t.color].main,.62):Hv(e.palette[t.color].main,.5);return x({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),vT=D("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${G(n.color)}`],n.size!=="medium"&&t[`thumbSize${G(n.size)}`]]}})(({theme:e,ownerState:t})=>x({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":x({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${dn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_t(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${dn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_t(e.palette[t.color].main,.16)}`},[`&.${dn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),yT=D(fT,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>x({[`&.${dn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),xT=D("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>vf(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>x({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),bT=D("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>vf(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>x({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),ST=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:l,color:s,size:a}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${G(s)}`,a&&`size${G(a)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",a&&`thumbSize${G(a)}`,s&&`thumbColor${G(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return xe(u,uT,l)},CT=({children:e})=>e,kT=g.forwardRef(function(t,n){var r,o,i,l,s,a,u,c,d,h,S,b,y,w,f,p,v,C,k,$,E,P,N,R;const O=be({props:t,name:"MuiSlider"}),B=gr().direction==="rtl",{"aria-label":I,"aria-valuetext":z,"aria-labelledby":W,component:U="span",components:T={},componentsProps:L={},color:F="primary",classes:Y,className:ne,disableSwap:se=!1,disabled:ae=!1,getAriaLabel:H,getAriaValueText:M,marks:ce=!1,max:fe=100,min:ve=0,orientation:Te="horizontal",size:pe="medium",step:oe=1,scale:ue=Mm,slotProps:ie,slots:he,track:Oe="normal",valueLabelDisplay:ye="off",valueLabelFormat:Ve=Mm}=O,kt=te(O,pT),ke=x({},O,{isRtl:B,max:fe,min:ve,classes:Y,disabled:ae,disableSwap:se,orientation:Te,marks:ce,color:F,size:pe,step:oe,scale:ue,track:Oe,valueLabelDisplay:ye,valueLabelFormat:Ve}),{axisProps:_e,getRootProps:vt,getHiddenInputProps:Ne,getThumbProps:wt,open:A,active:ee,axis:le,focusedThumbIndex:Z,range:Q,dragging:q,marks:re,values:_,trackOffset:V,trackLeap:de,getThumbStyle:Se}=yS(x({},ke,{rootRef:n}));ke.marked=re.length>0&&re.some(Qe=>Qe.label),ke.dragging=q,ke.focusedThumbIndex=Z;const Re=ST(ke),Et=(r=(o=he==null?void 0:he.root)!=null?o:T.Root)!=null?r:hT,Rn=(i=(l=he==null?void 0:he.rail)!=null?l:T.Rail)!=null?i:mT,vr=(s=(a=he==null?void 0:he.track)!=null?a:T.Track)!=null?s:gT,ip=(u=(c=he==null?void 0:he.thumb)!=null?c:T.Thumb)!=null?u:vT,lp=(d=(h=he==null?void 0:he.valueLabel)!=null?h:T.ValueLabel)!=null?d:yT,Qa=(S=(b=he==null?void 0:he.mark)!=null?b:T.Mark)!=null?S:xT,Xa=(y=(w=he==null?void 0:he.markLabel)!=null?w:T.MarkLabel)!=null?y:bT,sp=(f=(p=he==null?void 0:he.input)!=null?p:T.Input)!=null?f:"input",Za=(v=ie==null?void 0:ie.root)!=null?v:L.root,j1=(C=ie==null?void 0:ie.rail)!=null?C:L.rail,Ja=(k=ie==null?void 0:ie.track)!=null?k:L.track,eu=($=ie==null?void 0:ie.thumb)!=null?$:L.thumb,tu=(E=ie==null?void 0:ie.valueLabel)!=null?E:L.valueLabel,L1=(P=ie==null?void 0:ie.mark)!=null?P:L.mark,A1=(N=ie==null?void 0:ie.markLabel)!=null?N:L.markLabel,F1=(R=ie==null?void 0:ie.input)!=null?R:L.input,B1=it({elementType:Et,getSlotProps:vt,externalSlotProps:Za,externalForwardedProps:kt,additionalProps:x({},aT(Et)&&{as:U}),ownerState:x({},ke,Za==null?void 0:Za.ownerState),className:[Re.root,ne]}),D1=it({elementType:Rn,externalSlotProps:j1,ownerState:ke,className:Re.rail}),W1=it({elementType:vr,externalSlotProps:Ja,additionalProps:{style:x({},_e[le].offset(V),_e[le].leap(de))},ownerState:x({},ke,Ja==null?void 0:Ja.ownerState),className:Re.track}),nu=it({elementType:ip,getSlotProps:wt,externalSlotProps:eu,ownerState:x({},ke,eu==null?void 0:eu.ownerState),className:Re.thumb}),U1=it({elementType:lp,externalSlotProps:tu,ownerState:x({},ke,tu==null?void 0:tu.ownerState),className:Re.valueLabel}),ru=it({elementType:Qa,externalSlotProps:L1,ownerState:ke,className:Re.mark}),ou=it({elementType:Xa,externalSlotProps:A1,ownerState:ke,className:Re.markLabel}),H1=it({elementType:sp,getSlotProps:Ne,externalSlotProps:F1,ownerState:ke});return m.jsxs(Et,x({},B1,{children:[m.jsx(Rn,x({},D1)),m.jsx(vr,x({},W1)),re.filter(Qe=>Qe.value>=ve&&Qe.value<=fe).map((Qe,at)=>{const iu=Ts(Qe.value,ve,fe),ul=_e[le].offset(iu);let Pn;return Oe===!1?Pn=_.indexOf(Qe.value)!==-1:Pn=Oe==="normal"&&(Q?Qe.value>=_[0]&&Qe.value<=_[_.length-1]:Qe.value<=_[0])||Oe==="inverted"&&(Q?Qe.value<=_[0]||Qe.value>=_[_.length-1]:Qe.value>=_[0]),m.jsxs(g.Fragment,{children:[m.jsx(Qa,x({"data-index":at},ru,!On(Qa)&&{markActive:Pn},{style:x({},ul,ru.style),className:X(ru.className,Pn&&Re.markActive)})),Qe.label!=null?m.jsx(Xa,x({"aria-hidden":!0,"data-index":at},ou,!On(Xa)&&{markLabelActive:Pn},{style:x({},ul,ou.style),className:X(Re.markLabel,ou.className,Pn&&Re.markLabelActive),children:Qe.label})):null]},at)}),_.map((Qe,at)=>{const iu=Ts(Qe,ve,fe),ul=_e[le].offset(iu),Pn=ye==="off"?CT:lp;return m.jsx(Pn,x({},!On(Pn)&&{valueLabelFormat:Ve,valueLabelDisplay:ye,value:typeof Ve=="function"?Ve(ue(Qe),at):Ve,index:at,open:A===at||ee===at||ye==="on",disabled:ae},U1,{children:m.jsx(ip,x({"data-index":at},nu,{className:X(Re.thumb,nu.className,ee===at&&Re.active,Z===at&&Re.focusVisible),style:x({},ul,Se(at),nu.style),children:m.jsx(sp,x({"data-index":at,"aria-label":H?H(at):I,"aria-valuenow":ue(Qe),"aria-labelledby":W,"aria-valuetext":M?M(ue(Qe),at):z,value:_[at]},H1))}))}),at)})]}))}),N1=kT,wT=ik({createStyledComponent:D("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>be({props:e,name:"MuiStack"})}),Bn=wT;function ET(e){return ge("MuiTab",e)}const $T=me("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),xr=$T,RT=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],PT=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:l,selected:s,disabled:a}=e,u={root:["root",i&&l&&"labelIcon",`textColor${G(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return xe(u,ET,t)},TT=D(Ur,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${G(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${xr.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${xr.selected}`]:{opacity:1},[`&.${xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${xr.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${xr.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),IT=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:s,icon:a,iconPosition:u="top",indicator:c,label:d,onChange:h,onClick:S,onFocus:b,selected:y,selectionFollowsFocus:w,textColor:f="inherit",value:p,wrapped:v=!1}=r,C=te(r,RT),k=x({},r,{disabled:i,disableFocusRipple:l,selected:y,icon:!!a,iconPosition:u,label:!!d,fullWidth:s,textColor:f,wrapped:v}),$=PT(k),E=a&&d&&g.isValidElement(a)?g.cloneElement(a,{className:X($.iconWrapper,a.props.className)}):a,P=R=>{!y&&h&&h(R,p),S&&S(R)},N=R=>{w&&!y&&h&&h(R,p),b&&b(R)};return m.jsxs(TT,x({focusRipple:!l,className:X($.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:P,onFocus:N,ownerState:k,tabIndex:y?0:-1},C,{children:[u==="top"||u==="start"?m.jsxs(g.Fragment,{children:[E,d]}):m.jsxs(g.Fragment,{children:[d,E]}),c]}))}),_m=IT,MT=Ba(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),_T=Ba(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function NT(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function zT(e,t,n,r={},o=()=>{}){const{ease:i=NT,duration:l=300}=r;let s=null;const a=t[e];let u=!1;const c=()=>{u=!0},d=h=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=h);const S=Math.min(1,(h-s)/l);if(t[e]=i(S)*(n-a)+a,S>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return a===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const OT=["onChange"],jT={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LT(e){const{onChange:t}=e,n=te(e,OT),r=g.useRef(),o=g.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return $n(()=>{const l=jo(()=>{const a=r.current;i(),a!==r.current&&t(r.current)}),s=En(o.current);return s.addEventListener("resize",l),()=>{l.clear(),s.removeEventListener("resize",l)}},[t]),g.useEffect(()=>{i(),t(r.current)},[t]),m.jsx("div",x({style:jT,ref:o},n))}function AT(e){return ge("MuiTabScrollButton",e)}const FT=me("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),BT=FT,DT=["className","slots","slotProps","direction","orientation","disabled"],WT=e=>{const{classes:t,orientation:n,disabled:r}=e;return xe({root:["root",n,r&&"disabled"]},AT,t)},UT=D(Ur,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${BT.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),HT=g.forwardRef(function(t,n){var r,o;const i=be({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:a={},direction:u}=i,c=te(i,DT),h=gr().direction==="rtl",S=x({isRtl:h},i),b=WT(S),y=(r=s.StartScrollButtonIcon)!=null?r:MT,w=(o=s.EndScrollButtonIcon)!=null?o:_T,f=it({elementType:y,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),p=it({elementType:w,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return m.jsx(UT,x({component:"div",className:X(b.root,l),ref:n,role:null,ownerState:S,tabIndex:null},c,{children:u==="left"?m.jsx(y,x({},f)):m.jsx(w,x({},p))}))}),VT=HT;function KT(e){return ge("MuiTabs",e)}const GT=me("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hu=GT,qT=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nm=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,zm=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ll=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},YT=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:s,classes:a}=e;return xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},KT,a)},QT=D("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hu.scrollButtons}`]:t.scrollButtons},{[`& .${Hu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Hu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),XT=D("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),ZT=D("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),JT=D("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),e3=D(LT,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Om={},t3=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiTabs"}),o=gr(),i=o.direction==="rtl",{"aria-label":l,"aria-labelledby":s,action:a,centered:u=!1,children:c,className:d,component:h="div",allowScrollButtonsMobile:S=!1,indicatorColor:b="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:f=VT,scrollButtons:p="auto",selectionFollowsFocus:v,slots:C={},slotProps:k={},TabIndicatorProps:$={},TabScrollButtonProps:E={},textColor:P="primary",value:N,variant:R="standard",visibleScrollbar:O=!1}=r,K=te(r,qT),B=R==="scrollable",I=w==="vertical",z=I?"scrollTop":"scrollLeft",W=I?"top":"left",U=I?"bottom":"right",T=I?"clientHeight":"clientWidth",L=I?"height":"width",F=x({},r,{component:h,allowScrollButtonsMobile:S,indicatorColor:b,orientation:w,vertical:I,scrollButtons:p,textColor:P,variant:R,visibleScrollbar:O,fixed:!B,hideScrollbar:B&&!O,scrollableX:B&&!I,scrollableY:B&&I,centered:u&&!B,scrollButtonsHideMobile:!S}),Y=YT(F),ne=it({elementType:C.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),se=it({elementType:C.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[ae,H]=g.useState(!1),[M,ce]=g.useState(Om),[fe,ve]=g.useState({start:!1,end:!1}),[Te,pe]=g.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,ue=g.useRef(null),ie=g.useRef(null),he=()=>{const _=ue.current;let V;if(_){const Se=_.getBoundingClientRect();V={clientWidth:_.clientWidth,scrollLeft:_.scrollLeft,scrollTop:_.scrollTop,scrollLeftNormalized:bh(_,o.direction),scrollWidth:_.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let de;if(_&&N!==!1){const Se=ie.current.children;if(Se.length>0){const Re=Se[oe.get(N)];de=Re?Re.getBoundingClientRect():null}}return{tabsMeta:V,tabMeta:de}},Oe=Ut(()=>{const{tabsMeta:_,tabMeta:V}=he();let de=0,Se;if(I)Se="top",V&&_&&(de=V.top-_.top+_.scrollTop);else if(Se=i?"right":"left",V&&_){const Et=i?_.scrollLeftNormalized+_.clientWidth-_.scrollWidth:_.scrollLeft;de=(i?-1:1)*(V[Se]-_[Se]+Et)}const Re={[Se]:de,[L]:V?V[L]:0};if(isNaN(M[Se])||isNaN(M[L]))ce(Re);else{const Et=Math.abs(M[Se]-Re[Se]),Rn=Math.abs(M[L]-Re[L]);(Et>=1||Rn>=1)&&ce(Re)}}),ye=(_,{animation:V=!0}={})=>{V?zT(z,ue.current,_,{duration:o.transitions.duration.standard}):ue.current[z]=_},Ve=_=>{let V=ue.current[z];I?V+=_:(V+=_*(i?-1:1),V*=i&&hv()==="reverse"?-1:1),ye(V)},kt=()=>{const _=ue.current[T];let V=0;const de=Array.from(ie.current.children);for(let Se=0;Se_){Se===0&&(V=_);break}V+=Re[T]}return V},ke=()=>{Ve(-1*kt())},_e=()=>{Ve(kt())},vt=g.useCallback(_=>{pe({overflow:null,scrollbarWidth:_})},[]),Ne=()=>{const _={};_.scrollbarSizeListener=B?m.jsx(e3,{onChange:vt,className:X(Y.scrollableX,Y.hideScrollbar)}):null;const V=fe.start||fe.end,de=B&&(p==="auto"&&V||p===!0);return _.scrollButtonStart=de?m.jsx(f,x({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ne},orientation:w,direction:i?"right":"left",onClick:ke,disabled:!fe.start},E,{className:X(Y.scrollButtons,E.className)})):null,_.scrollButtonEnd=de?m.jsx(f,x({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:w,direction:i?"left":"right",onClick:_e,disabled:!fe.end},E,{className:X(Y.scrollButtons,E.className)})):null,_},wt=Ut(_=>{const{tabsMeta:V,tabMeta:de}=he();if(!(!de||!V)){if(de[W]V[U]){const Se=V[z]+(de[U]-V[U]);ye(Se,{animation:_})}}}),A=Ut(()=>{if(B&&p!==!1){const{scrollTop:_,scrollHeight:V,clientHeight:de,scrollWidth:Se,clientWidth:Re}=ue.current;let Et,Rn;if(I)Et=_>1,Rn=_1,Rn=i?vr>1:vr{const _=jo(()=>{ue.current&&(Oe(),A())}),V=En(ue.current);V.addEventListener("resize",_);let de;return typeof ResizeObserver<"u"&&(de=new ResizeObserver(_),Array.from(ie.current.children).forEach(Se=>{de.observe(Se)})),()=>{_.clear(),V.removeEventListener("resize",_),de&&de.disconnect()}},[Oe,A]);const ee=g.useMemo(()=>jo(()=>{A()}),[A]);g.useEffect(()=>()=>{ee.clear()},[ee]),g.useEffect(()=>{H(!0)},[]),g.useEffect(()=>{Oe(),A()}),g.useEffect(()=>{wt(Om!==M)},[wt,M]),g.useImperativeHandle(a,()=>({updateIndicator:Oe,updateScrollButtons:A}),[Oe,A]);const le=m.jsx(JT,x({},$,{className:X(Y.indicator,$.className),ownerState:F,style:x({},M,$.style)}));let Z=0;const Q=g.Children.map(c,_=>{if(!g.isValidElement(_))return null;const V=_.props.value===void 0?Z:_.props.value;oe.set(V,Z);const de=V===N;return Z+=1,g.cloneElement(_,x({fullWidth:R==="fullWidth",indicator:de&&!ae&&le,selected:de,selectionFollowsFocus:v,onChange:y,textColor:P,value:V},Z===1&&N===!1&&!_.props.tabIndex?{tabIndex:0}:{}))}),q=_=>{const V=ie.current,de=nt(V).activeElement;if(de.getAttribute("role")!=="tab")return;let Re=w==="horizontal"?"ArrowLeft":"ArrowUp",Et=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&i&&(Re="ArrowRight",Et="ArrowLeft"),_.key){case Re:_.preventDefault(),Ll(V,de,zm);break;case Et:_.preventDefault(),Ll(V,de,Nm);break;case"Home":_.preventDefault(),Ll(V,null,Nm);break;case"End":_.preventDefault(),Ll(V,null,zm);break}},re=Ne();return m.jsxs(QT,x({className:X(Y.root,d),ownerState:F,ref:n,as:h},K,{children:[re.scrollButtonStart,re.scrollbarSizeListener,m.jsxs(XT,{className:Y.scroller,ownerState:F,style:{overflow:Te.overflow,[I?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Te.scrollbarWidth},ref:ue,onScroll:ee,children:[m.jsx(ZT,{"aria-label":l,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:F,onKeyDown:q,ref:ie,role:"tablist",children:Q}),ae&&le]}),re.scrollButtonEnd]}))}),n3=t3;function r3(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const o3=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],i3={standard:E1,filled:S1,outlined:I1},l3=e=>{const{classes:t}=e;return xe({root:["root"]},r3,t)},s3=D(C1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),a3=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:s,color:a="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:S=!1,helperText:b,id:y,InputLabelProps:w,inputProps:f,InputProps:p,inputRef:v,label:C,maxRows:k,minRows:$,multiline:E=!1,name:P,onBlur:N,onChange:R,onClick:O,onFocus:K,placeholder:B,required:I=!1,rows:z,select:W=!1,SelectProps:U,type:T,value:L,variant:F="outlined"}=r,Y=te(r,o3),ne=x({},r,{autoFocus:i,color:a,disabled:c,error:d,fullWidth:S,multiline:E,required:I,select:W,variant:F}),se=l3(ne),ae={};F==="outlined"&&(w&&typeof w.shrink<"u"&&(ae.notched=w.shrink),ae.label=C),W&&((!U||!U.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const H=fv(y),M=b&&H?`${H}-helper-text`:void 0,ce=C&&H?`${H}-label`:void 0,fe=i3[F],ve=m.jsx(fe,x({"aria-describedby":M,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:S,multiline:E,name:P,rows:z,maxRows:k,minRows:$,type:T,value:L,id:H,inputRef:v,onBlur:N,onChange:R,onFocus:K,onClick:O,placeholder:B,inputProps:f},ae,p));return m.jsxs(s3,x({className:X(se.root,s),disabled:c,error:d,fullWidth:S,ref:n,required:I,color:a,variant:F,ownerState:ne},Y,{children:[C!=null&&C!==""&&m.jsx($1,x({htmlFor:H,id:ce},w,{children:C})),W?m.jsx(_1,x({"aria-describedby":M,id:H,labelId:ce,value:L,input:ve},U,{children:l})):ve,b&&m.jsx(DR,x({id:M},h,{children:b}))]}))}),Ro=a3;function u3(e){let t=e.lastComplete;const n=e.alertQty,r=e.alertUnits;let o;return n===null||r===null?null:(r==="month"?o=parseInt(n)*30:r==="week"?o=parseInt(n)*7:o=n,t=new Date(e.lastComplete),c3(t,o)>=new Date?(console.log("ahora",!0),!0):!1)}function c3(e,t){return e.setDate(e.getDate()+t),e}const jm=async()=>{const n=(await(await fetch("https://chronologica.onrender.com/api/getonetimetasks")).json()).map(r=>({id:r.id,name:r.name,icon:r.iconName,create:r.createdAt,alertQty:r.alertQty,alertUnits:r.alertUnits,lastComplete:r.completedDate,status:u3({lastComplete:r.completedDate,alertQty:r.alertQty,alertUnits:r.alertUnits})}));return console.log("esto es del APi",n),n};var Tf={},d3=mt;Object.defineProperty(Tf,"__esModule",{value:!0});var If=Tf.default=void 0,f3=d3(gt()),ui=m,p3=(0,f3.default)([(0,ui.jsx)("circle",{cx:"4.5",cy:"9.5",r:"2.5"},"0"),(0,ui.jsx)("circle",{cx:"9",cy:"5.5",r:"2.5"},"1"),(0,ui.jsx)("circle",{cx:"15",cy:"5.5",r:"2.5"},"2"),(0,ui.jsx)("circle",{cx:"19.5",cy:"9.5",r:"2.5"},"3"),(0,ui.jsx)("path",{d:"M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"},"4")],"Pets");If=Tf.default=p3;var Mf={},h3=mt;Object.defineProperty(Mf,"__esModule",{value:!0});var _f=Mf.default=void 0,m3=h3(gt()),Lm=m,g3=(0,m3.default)([(0,Lm.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 8.22c0-.86.7-1.56 1.56-1.56.33 0 .64.1.89.28l-.01-.12c0-.86.7-1.56 1.56-1.56s1.56.7 1.56 1.56l-.01.12c.26-.18.56-.28.89-.28.86 0 1.56.7 1.56 1.56 0 .62-.37 1.16-.89 1.4.52.25.89.79.89 1.41 0 .86-.7 1.56-1.56 1.56-.33 0-.64-.11-.89-.28l.01.12c0 .86-.7 1.56-1.56 1.56s-1.56-.7-1.56-1.56l.01-.12c-.26.18-.56.28-.89.28-.86 0-1.56-.7-1.56-1.56 0-.62.37-1.16.89-1.4C8.37 9.38 8 8.84 8 8.22zM12 19c-3.31 0-6-2.69-6-6 3.31 0 6 2.69 6 6 0-3.31 2.69-6 6-6 0 3.31-2.69 6-6 6z"},"0"),(0,Lm.jsx)("circle",{cx:"12",cy:"9.62",r:"1.56"},"1")],"Yard");_f=Mf.default=g3;var Nf={},v3=mt;Object.defineProperty(Nf,"__esModule",{value:!0});var zf=Nf.default=void 0,y3=v3(gt()),x3=m,b3=(0,y3.default)((0,x3.jsx)("path",{d:"M20.57 14.86 22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22l1.43-1.43L16.29 22l2.14-2.14 1.43 1.43 1.43-1.43-1.43-1.43L22 16.29z"}),"FitnessCenter");zf=Nf.default=b3;var Of={},S3=mt;Object.defineProperty(Of,"__esModule",{value:!0});var jf=Of.default=void 0,C3=S3(gt()),k3=m,w3=(0,C3.default)((0,k3.jsx)("path",{d:"m19 1-5 5v11l5-4.5V1zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6zm22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5v-1.1z"}),"AutoStories");jf=Of.default=w3;var Lf={},E3=mt;Object.defineProperty(Lf,"__esModule",{value:!0});var Af=Lf.default=void 0,$3=E3(gt()),R3=m,P3=(0,$3.default)((0,R3.jsx)("path",{d:"M6 3h12v2H6zm11 3H7c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-1 9h-2.5v2.5h-3V15H8v-3h2.5V9.5h3V12H16v3z"}),"Medication");Af=Lf.default=P3;var Ff={},T3=mt;Object.defineProperty(Ff,"__esModule",{value:!0});var js=Ff.default=void 0,I3=T3(gt()),M3=m,_3=(0,I3.default)((0,M3.jsx)("path",{d:"M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"}),"FreeBreakfast");js=Ff.default=_3;var Bf={},N3=mt;Object.defineProperty(Bf,"__esModule",{value:!0});var Df=Bf.default=void 0,z3=N3(gt()),Am=m,O3=(0,z3.default)([(0,Am.jsx)("circle",{cx:"12",cy:"6",r:"2"},"0"),(0,Am.jsx)("path",{d:"M21 16v-2c-2.24 0-4.16-.96-5.6-2.68l-1.34-1.6c-.38-.46-.94-.72-1.53-.72h-1.05c-.59 0-1.15.26-1.53.72l-1.34 1.6C7.16 13.04 5.24 14 3 14v2c2.77 0 5.19-1.17 7-3.25V15l-3.88 1.55c-.67.27-1.12.93-1.12 1.66C5 19.2 5.8 20 6.79 20H9v-.5c0-1.38 1.12-2.5 2.5-2.5h3c.28 0 .5.22.5.5s-.22.5-.5.5h-3c-.83 0-1.5.67-1.5 1.5v.5h7.21c.99 0 1.79-.8 1.79-1.79 0-.73-.45-1.39-1.12-1.66L14 15v-2.25c1.81 2.08 4.23 3.25 7 3.25z"},"1")],"SelfImprovement");Df=Bf.default=O3;var Wf={},j3=mt;Object.defineProperty(Wf,"__esModule",{value:!0});var Uf=Wf.default=void 0,L3=j3(gt()),A3=m,F3=(0,L3.default)((0,A3.jsx)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}),"LocalAtm");Uf=Wf.default=F3;var Hf={},B3=mt;Object.defineProperty(Hf,"__esModule",{value:!0});var Vf=Hf.default=void 0,D3=B3(gt()),W3=m,U3=(0,D3.default)((0,W3.jsx)("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3 1 9l11 6 9-4.91V17h2V9L12 3z"}),"School");Vf=Hf.default=U3;var Kf={},H3=mt;Object.defineProperty(Kf,"__esModule",{value:!0});var Gf=Kf.default=void 0,V3=H3(gt()),K3=m,G3=(0,V3.default)((0,K3.jsx)("path",{d:"M21 12V6c0-1.1-.9-2-2-2h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V10h14v2h2zm-5.36 8c.43 1.45 1.77 2.5 3.36 2.5 1.93 0 3.5-1.57 3.5-3.5s-1.57-3.5-3.5-3.5c-.95 0-1.82.38-2.45 1H18V18h-4v-4h1.5v1.43c.9-.88 2.14-1.43 3.5-1.43 2.76 0 5 2.24 5 5s-2.24 5-5 5c-2.42 0-4.44-1.72-4.9-4h1.54z"}),"EventRepeat");Gf=Kf.default=G3;var qf={},q3=mt;Object.defineProperty(qf,"__esModule",{value:!0});var Yf=qf.default=void 0,Y3=q3(gt()),Q3=m,X3=(0,Y3.default)((0,Q3.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"LocalPhone");Yf=qf.default=X3;var Qf={},Z3=mt;Object.defineProperty(Qf,"__esModule",{value:!0});var Xf=Qf.default=void 0,J3=Z3(gt()),e4=m,t4=(0,J3.default)((0,e4.jsx)("path",{d:"M21 7h-1V6h-2v1h-1c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h4c.55 0 1-.45 1-1V8c0-.55-.45-1-1-1zM8 6c-3.31 0-6 2.69-6 6v4c0 1.1.9 2 2 2h2v-5H3.5v-1c0-2.48 2.02-4.5 4.5-4.5s4.5 2.02 4.5 4.5v1H10v5h2c1.1 0 2-.9 2-2v-4c0-3.31-2.69-6-6-6z"}),"HeadphonesBattery");Xf=Qf.default=t4;var Zf={},n4=mt;Object.defineProperty(Zf,"__esModule",{value:!0});var Jf=Zf.default=void 0,r4=n4(gt()),o4=m,i4=(0,r4.default)((0,o4.jsx)("path",{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"}),"EditNote");Jf=Zf.default=i4;var ep={},l4=mt;Object.defineProperty(ep,"__esModule",{value:!0});var tp=ep.default=void 0,s4=l4(gt()),a4=m,u4=(0,s4.default)((0,a4.jsx)("path",{d:"M22 7h-9v2h9V7zm0 8h-9v2h9v-2zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 11zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 19z"}),"Checklist");tp=ep.default=u4;var np={},c4=mt;Object.defineProperty(np,"__esModule",{value:!0});var rp=np.default=void 0,d4=c4(gt()),f4=m,p4=(0,d4.default)((0,f4.jsx)("path",{d:"m3 2 2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33-11H5.67l-.44-4h13.53l-.43 4z"}),"LocalDrink");rp=np.default=p4;function h4({icon:e}){return m.jsxs(m.Fragment,{children:[e==="PetsIcon"&&m.jsx(If,{fontSize:"large"}),e==="YardIcon"&&m.jsx(_f,{fontSize:"large"}),e==="FitnessCenterIcon"&&m.jsx(zf,{fontSize:"large"}),e==="AutoStoriesIcon"&&m.jsx(jf,{fontSize:"large"}),e==="MedicationIcon"&&m.jsx(Af,{fontSize:"large"}),e==="FreeBreakfastIcon"&&m.jsx(js,{fontSize:"large"}),e==="SelfImprovementIcon"&&m.jsx(Df,{fontSize:"large"}),e==="LocalAtmIcon"&&m.jsx(Uf,{fontSize:"large"}),e==="SchoolIcon"&&m.jsx(Vf,{fontSize:"large"}),e==="EventRepeatIcon"&&m.jsx(Gf,{fontSize:"large"}),e==="LocalPhoneIcon"&&m.jsx(Yf,{fontSize:"large"}),e==="HeadphonesBatteryIcon"&&m.jsx(Xf,{fontSize:"large"}),e==="EditNoteIcon"&&m.jsx(Jf,{fontSize:"large"}),e==="ChecklistIcon"&&m.jsx(tp,{fontSize:"large"}),e==="LocalDrinkIcon"&&m.jsx(rp,{fontSize:"large"})]})}function m4({name:e,icon:t,id:n,taskStatus:r,onClickIcon:o}){return m.jsx(m.Fragment,{children:m.jsxs(Bn,{alignItems:"center",justifyContent:"center",component:"li",sx:{m:2},children:[m.jsx(xR,{color:r,sx:{},badgeContent:" ",variant:"dot",children:m.jsx(x1,{color:"secondary",onClick:o,children:m.jsx(h4,{icon:t})})}),m.jsx(dt,{color:"#00000099",sx:{mt:2},children:e})]})})}function g4(e){return fetch("https://chronologica.onrender.com/api/addonetaskchecked",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:e})}).then(t=>t.json()).then(t=>(console.log("API",t),t))}function v4(){const[e,t]=g.useState([]);g.useEffect(()=>{jm().then(i=>{t(i),console.log("oneTimeList",i)})},[]);const n=i=>{console.log(i.target)},r=i=>{if(i===!1)return"error";if(i===!0)return"success";if(i===null)return"outline"},o=i=>{g4(i).then(()=>{jm().then(l=>{t(l),console.log("oneTimeList",l)})})};return console.log(e),m.jsxs(m.Fragment,{children:[m.jsx(Bn,{component:"ul",direction:"row",justifyContent:"space-evenly",flexWrap:"wrap",sx:{mx:7},children:e.map(i=>m.jsx(m4,{id:i.id,name:i.name,icon:i.icon,onClickIcon:()=>{o(i.id)},taskStatus:r(i.status)},i.id))}),m.jsx(Bn,{alignItems:"center",sx:{mt:10},children:m.jsx(Hr,{variant:"contained",onClick:n,children:m.jsx(Ha,{style:{textDecorationLine:"none"},to:"/addonetimetask",children:m.jsx(dt,{sx:{color:"white"},children:" Añadir Tarea"})})})})]})}const y4=async()=>(await(await fetch("https://chronologica.onrender.com/api/tracktasklist")).json()).map(r=>({id:r.id,name:r.nameTask,color:r.color,estimatedTime:r.estimatedTime}));var op={},x4=mt;Object.defineProperty(op,"__esModule",{value:!0});var z1=op.default=void 0,b4=x4(gt()),S4=m,C4=(0,b4.default)((0,S4.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");z1=op.default=C4;function Fm(e){fetch(`${{}.CHRONOLOGICA_API}/api/addTimeTrack`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>(console.log("API",t),t))}const Bm=async e=>{const n=await(await fetch(`https://chronologica.onrender.com/api/allTracks/${e}`)).json(),r=n[0].startTime;return console.log("tiempo",r),{color:n[0].color,nameTask:n[0].nameTask,startTime:n[0].startTime,stopTime:n[0].stopTime}};function k4({id:e,nameTask:t,color:n,estimatedTime:r,totalTime:o}){const[i,l]=g.useState("play"),[s,a]=g.useState("▶ Iniciar trabajo"),[u,c]=g.useState({}),[d,h]=g.useState({}),[S,b]=g.useState(""),[y,w]=g.useState("");console.log("DIFFF",y);const f=p=>i==="play"?(l("stop"),Fm({clicked:"start",idTimeTrack:p}),Bm(p).then(v=>{h(v);const k=new Date(v.startTime).getTime();b(k),w(new Date(+new Date-S)),c({hours:"00",minutes:"00",seconds:"00"})}),a("▢ Detener trabajo")):(l("play"),Fm({clicked:"stop",idTimeTrack:p}),Bm().then(v=>{}),a("▶ Iniciar trabajo"));return m.jsx(m.Fragment,{children:m.jsxs(z$,{children:[m.jsxs(Y$,{expandIcon:m.jsx(z1,{}),id:e,children:[m.jsx(Pa,{variant:"outlined",sx:{width:10,backgroundColor:n}}),m.jsx(dt,{sx:{fontWeight:"bold",width:"33%",flexShrink:0,ml:1,mt:.5},children:t}),m.jsxs(Hr,{onClick:()=>{f(e)},children:[" ",s]})]}),m.jsxs(B$,{sx:{backgroundColor:"#F6F4F8"},children:[m.jsxs(dt,{children:["Tiempo estimado finalización tarea: ",r]}),m.jsxs(dt,{children:["Tiempo restante: ",r-o]}),m.jsxs(dt,{children:["Tiempo de trabajo: ",o]}),m.jsx(Bn,{alignItems:"flex-end",justifyContent:"center",spacing:5,children:m.jsxs(dt,{children:[u.hours,": ",u.minutes,":",u.seconds]})})]})]})})}function w4(){const[e,t]=g.useState([]);return console.log("listas de tareasm",e),g.useEffect(()=>{y4().then(n=>{t(n)})},[]),m.jsxs(m.Fragment,{children:[e.map(n=>m.jsx(k4,{id:n.id,nameTask:n.name,color:n.color,estimatedTime:n.estimatedTime,totalTime:n.totalTime},n.id)),m.jsx(Bn,{alignItems:"center",sx:{mt:10},children:m.jsx(Hr,{variant:"contained",children:m.jsx(Ha,{style:{textDecorationLine:"none"},to:"/addtrackedtask",children:m.jsx(dt,{sx:{color:"white"},children:"Añadir Tarea"})})})})]})}function E4(){const[e,t]=g.useState(0),n=(r,o)=>{t(o)};return m.jsx(m.Fragment,{children:m.jsxs(Ht,{sx:{width:"100%"},children:[m.jsx(Ht,{sx:{mb:5,borderBottom:1,borderColor:"divider"},children:m.jsxs(n3,{value:e,onChange:n,children:[m.jsx(_m,{label:"One Time Tasks"}),m.jsx(_m,{label:"Tracked Time Tasks"})]})}),e===0?m.jsx(v4,{}):m.jsx(w4,{})]})})}const $4="linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(135deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(135deg, transparent 75%, #ccc 75%) /*! @noflip */",R4="linear-gradient(to top, #000000, transparent), linear-gradient(to right, #ffffff, transparent) /*! @noflip */",P4={Button:D(Hr)(()=>({backgroundSize:"8px 8px",backgroundPosition:"0 0, 4px 0, 4px -4px, 0px 4px",transition:"none",boxShadow:"0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08)",border:0,borderRadius:4,width:"24px",aspectRatio:"1 / 1",height:"24px",minWidth:0}))},T4=e=>{const{bgColor:t,className:n,disablePopover:r,isBgColorValid:o,...i}=e;return m.jsx(P4.Button,{disableTouchRipple:!0,style:{backgroundColor:o?t:void 0,backgroundImage:o?void 0:$4,cursor:r?"default":void 0},className:`MuiColorInput-Button ${n||""}`,...i})},I4={Container:D("div")(()=>({width:300,padding:8}))},M4=({children:e,className:t,position:n="start",...r})=>m.jsx(t1,{className:`MuiColorInput-Popover ${t||""}`,anchorOrigin:{vertical:"bottom",horizontal:n==="start"?"left":"right"},transformOrigin:{vertical:"top",horizontal:n==="start"?"left":"right"},...r,children:m.jsx(I4.Container,{children:e})}),_4={Slider:D(N1,{shouldForwardProp:e=>e!=="$rgbaFrom"&&e!=="$rgbaTo"})(()=>({height:8,"& .MuiSlider-rail":{opacity:1,background:"linear-gradient(to right, rgba(var(--rgb-r), var(--rgb-g), var(--rgb-b), 0) 0%, rgba(var(--rgb-r), var(--rgb-g), var(--rgb-b), 1) 100%)"},"& .MuiSlider-track":{color:"transparent",border:0},"& .MuiSlider-thumb":{backgroundColor:"#ffffff",border:"3px solid currentColor"}}))},N4=e=>{const{rgbColor:t,style:n,className:r,...o}=e,i={"--rgb-r":t.r,"--rgb-g":t.g,"--rgb-b":t.b,...n};return m.jsx(_4.Slider,{className:`MuiColorInput-AlphaSlider ${r||""}`,style:i,...o})},Al={up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight"},z4={ArrowUp:{type:"hsvV",value:1},ArrowDown:{type:"hsvV",value:-1},ArrowLeft:{type:"hsvS",value:-1},ArrowRight:{type:"hsvS",value:1}};function O4(e){return e===Al.up||e===Al.down||e===Al.left||e===Al.right}function Ls(e,t,n){return Math.max(t,Math.min(e,n))}function Dm(e){return typeof e=="number"}function Wm(e,t,n){const r=e.toLocaleString("en",{useGrouping:!1,minimumFractionDigits:t,maximumFractionDigits:n});return Number(r)}function j4(e,t,n){const r=e.getBoundingClientRect(),o=t-r.left,i=n-r.top;return{x:Ls(o/r.width,0,1),y:Ls(1-i/r.height,0,1)}}function L4(e){const t=je.useRef();return t.current=e,je.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}const Um={Space:D("div")(()=>({width:"100%",height:"180px",boxSizing:"border-box",outline:0,position:"relative",backgroundImage:R4})),Thumb:D("div")(()=>({position:"absolute",border:"3px solid #ffffff",borderRadius:"50%",width:"20px",height:"20px",marginLeft:"-10px /*! @noflip */",marginBottom:"-10px /*! @noflip */",outline:0,boxSizing:"border-box",willChange:"left, bottom",transition:"box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{boxShadow:"0px 0px 0px 4px rgba(255 255 255 / 0.16)"},"&.MuiColorInput-Thumb-active":{boxShadow:"0px 0px 0px 8px rgba(255 255 255 / 0.16)"},"@media (hover: none)":{boxShadow:"none"}}))},A4=e=>{const{hsv:t,onChange:n,currentHue:r}=e,o=je.useRef(!1),i=je.useRef(null),[l,s]=je.useState(!1),a=L4((y,w)=>{if(!i.current)return;const{x:f,y:p}=j4(i.current,y,w);n({s:f,v:p}),i.current&&document.activeElement!==i.current&&i.current.focus()}),u=je.useCallback(()=>{o.current&&(o.current=!1,s(!1))},[]),c=je.useCallback(y=>{o.current&&a(y.clientX,y.clientY)},[]);je.useEffect(()=>(document.addEventListener("pointermove",c,!1),document.addEventListener("pointerup",u,!1),()=>{document.removeEventListener("pointermove",c,!1),document.removeEventListener("pointerup",u,!1)}),[u,c]);const d=y=>{y.preventDefault(),o.current=!0,a(y.clientX,y.clientY),s(!0)},h=y=>{if(O4(y.key)){y.preventDefault();const{type:w,value:f}=z4[y.key],p=y.shiftKey?10:1,v=w==="hsvS"?t.s:t.v,C=Ls(v+f*p*.01,0,1);s(!0),n({s:w==="hsvS"?C:t.s,v:w==="hsvV"?C:t.v})}},S=t.s*100,b=t.v*100;return m.jsx(Um.Space,{onPointerDown:d,ref:i,className:"MuiColorInput-ColorSpace",style:{backgroundColor:`hsl(${r} 100% 50%)`,touchAction:"none"},role:"slider","aria-valuetext":`Saturation ${Wm(S,0,0)}%, Brightness ${Wm(b,0,0)}%`,onKeyDown:h,tabIndex:0,children:m.jsx(Um.Thumb,{"aria-label":"Color space thumb",className:l?"MuiColorInput-Thumb-active":"",style:{left:`${S}%`,bottom:`${b}%`}})})},F4={Slider:D(N1)(()=>({height:8,"& .MuiSlider-rail":{opacity:1,background:"linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%) /*! @noflip */"},"& .MuiSlider-track":{color:"transparent",border:0},"& .MuiSlider-thumb":{backgroundColor:"#ffffff",border:"3px solid currentColor"}}))},B4=e=>{const{className:t,...n}=e;return m.jsx(F4.Slider,{className:`MuiColorInput-HueSlider ${t||""}`,...n})};function pt(e,t){D4(e)&&(e="100%");var n=W4(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Fl(e){return Math.min(1,Math.max(0,e))}function D4(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function W4(e){return typeof e=="string"&&e.indexOf("%")!==-1}function O1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Tr(e){return e.length===1?"0"+e:String(e)}function U4(e,t,n){return{r:pt(e,255)*255,g:pt(t,255)*255,b:pt(n,255)*255}}function Hm(e,t,n){e=pt(e,255),t=pt(t,255),n=pt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var a=r-o;switch(l=s>.5?a/(2-r-o):a/(r+o),r){case e:i=(t-n)/a+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function H4(e,t,n){var r,o,i;if(e=pt(e,360),t=pt(t,100),n=pt(n,100),t===0)o=n,i=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Vu(s,l,e+1/3),o=Vu(s,l,e),i=Vu(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Vm(e,t,n){e=pt(e,255),t=pt(t,255),n=pt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=r,s=r-o,a=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var nd={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Y4(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Z4(e)),typeof e=="object"&&(Tn(e.r)&&Tn(e.g)&&Tn(e.b)?(t=U4(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tn(e.h)&&Tn(e.s)&&Tn(e.v)?(r=Bl(e.s),o=Bl(e.v),t=V4(e.h,r,o),l=!0,s="hsv"):Tn(e.h)&&Tn(e.s)&&Tn(e.l)&&(r=Bl(e.s),i=Bl(e.l),t=H4(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=O1(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Q4="[-\\+]?\\d+%?",X4="[-\\+]?\\d*\\.\\d+%?",Jn="(?:".concat(X4,")|(?:").concat(Q4,")"),Ku="[\\s|\\(]+(".concat(Jn,")[,|\\s]+(").concat(Jn,")[,|\\s]+(").concat(Jn,")\\s*\\)?"),Gu="[\\s|\\(]+(".concat(Jn,")[,|\\s]+(").concat(Jn,")[,|\\s]+(").concat(Jn,")[,|\\s]+(").concat(Jn,")\\s*\\)?"),sn={CSS_UNIT:new RegExp(Jn),rgb:new RegExp("rgb"+Ku),rgba:new RegExp("rgba"+Gu),hsl:new RegExp("hsl"+Ku),hsla:new RegExp("hsla"+Gu),hsv:new RegExp("hsv"+Ku),hsva:new RegExp("hsva"+Gu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Z4(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(nd[e])e=nd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=sn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sn.hex8.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),a:Gm(n[4]),format:t?"name":"hex8"}:(n=sn.hex6.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),format:t?"name":"hex"}:(n=sn.hex4.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),a:Gm(n[4]+n[4]),format:t?"name":"hex8"}:(n=sn.hex3.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Tn(e){return!!sn.CSS_UNIT.exec(String(e))}var er=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=q4(t)),this.originalInput=t;var o=Y4(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=O1(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Vm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Vm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Hm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Hm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Km(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),K4(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(pt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(pt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Km(this.r,this.g,this.b,!1),n=0,r=Object.entries(nd);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Fl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Fl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Fl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Fl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,l=1;l{const{currentColor:t,format:n,onChange:r,isAlphaHidden:o}=e,[i,l]=je.useState(t.toHsv()),s=(c,d)=>{if(!Dm(d))return;const h=Ls(360*d/100,0,359);l(b=>({...b,h}));const S=new er({...i,a:t.toHsv().a,h});r==null||r(Po(S,n))},a=(c,d)=>{if(!Dm(d))return;const h=t.clone().setAlpha(d);r==null||r(Po(h,n))},u=({s:c,v:d})=>{const h=new er({h:i.h,a:t.toHsv().a,s:c,v:d});l(S=>({...S,s:c,v:d})),r==null||r(Po(h,n))};return m.jsxs(Ht,{className:"MuiColorInput-PopoverBody",children:[m.jsx(A4,{currentHue:i.h,hsv:i,onChange:u}),m.jsx(Ht,{mt:"10px",px:"3px",children:m.jsx(B4,{min:0,max:100,step:1,onChange:s,"aria-label":"hue",value:i.h*100/360})}),o?null:m.jsx(Ht,{mt:"10px",px:"3px",children:m.jsx(N4,{min:0,max:1,step:.01,"aria-label":"alpha",rgbColor:t.toRgb(),onChange:a,value:t.getAlpha()})})]})},nI=je.forwardRef((e,t)=>{const{className:n,...r}=e;return m.jsx(Ro,{className:`MuiColorInput-TextField ${n||""}`,ref:t,...r})}),rI="black",oI="rgb";function iI(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function Ym(e,t){typeof t=="function"?t(e):t&&iI(t)&&"current"in t&&(t.current=e)}const lI=je.forwardRef((e,t)=>{const{value:n,format:r,onChange:o,adornmentPosition:i="start",PopoverProps:l,Adornment:s=T4,fallbackValue:a,isAlphaHidden:u,disablePopover:c,...d}=e,{onBlur:h,InputProps:S,...b}=d,{onClose:y,...w}=l||{},f=a||rI,p=b.disabled||(S==null?void 0:S.disabled)||!1,v=je.useRef(null),C=je.useRef(null),[k,$]=je.useState(null),E=r||oI,P=qm(n,f,{format:E}),[N,R]=je.useState(n),[O,K]=je.useState(n),B=H=>{H.preventDefault(),H.stopPropagation(),!p&&!c&&$(v.current)},I=H=>{const M=new er(H);o==null||o(H,{hex:M.isValid?M.toHexString():"",hsv:M.isValid?M.toHsvString():"",hsl:M.isValid?M.toHslString():"",rgb:M.isValid?M.toRgbString():"",hex8:M.isValid?M.toHex8String():""})},z=H=>{const M=H.target.value;if(R(M),M==="")K(""),I("");else{const ce=new er(M),fe=Po(ce,E);K(fe),I(fe)}},W=(...H)=>{y==null||y(...H),$(null),queueMicrotask(()=>{var M;(M=C.current)==null||M.focus()})},U=H=>{h==null||h(H);const M=new er(N);if(M.isValid)M.format!==E&&R(Po(M,E));else{if(N==="")return;const ce=new er(f),fe=Po(ce,E);R(fe),K(fe),I(fe)}};je.useEffect(()=>{if(n!==O){const H=qm(n).originalInput;K(H),R(H)}},[n,O,f]);const T=H=>{R(H),K(H),I(H)},L=H=>{v.current=H,t&&Ym(H,t)},F=H=>{C.current=H,C&&Ym(H,C)},Y=!!k,ne=Y?"color-popover":void 0,se=m.jsx(kP,{position:i,children:m.jsx(s,{disabled:p,"aria-describedby":ne,disablePopover:c||!1,component:c?"span":void 0,bgColor:P.toString(),isBgColorValid:!!(N!==""&&P.isValid),onClick:c?void 0:B})}),ae=i==="start"?{startAdornment:se}:{endAdornment:se};return m.jsxs(m.Fragment,{children:[m.jsx(nI,{ref:L,spellCheck:"false",type:"text",autoComplete:"off",onChange:z,value:eI(N),onBlur:U,inputRef:F,disabled:p,InputProps:{...ae,...S},...b}),c?null:m.jsx(M4,{id:ne,open:Y,position:i,anchorEl:k,onClose:W,...w,children:m.jsx(tI,{onChange:T,currentColor:P,format:E,isAlphaHidden:u})})]})});function sI(e){fetch("https://chronologica.onrender.com/api/addtracktask",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>(console.log("API",t),t))}function aI(){const[e,t]=g.useState("#ffffff"),[n,r]=g.useState(0),[o,i]=g.useState(0),[l,s]=g.useState(""),a=parseInt(o)*60,u=parseInt(n),c=a+u;console.log("total",c);const d=f=>{s(f.target.value)},h=f=>{t(f)},S=f=>{let p=parseInt(f.target.value);p<0&&(p=0),i(p)},b=f=>{let p=parseInt(f.target.value);p>59?p=59:p<0&&(p=0),r(p)},y={nameTask:l,color:e,estimatedTime:c},w=()=>{sI(y).then(f=>f)};return m.jsxs(m.Fragment,{children:[m.jsx(Ht,{component:"form",sx:{m:4},children:m.jsx(Ro,{id:"outlined-basic",label:"Nombre de la Tarea",variant:"outlined",value:l,onChange:d})}),m.jsxs(Ht,{sx:{m:4},children:[m.jsx(dt,{sx:{mb:3},children:"Elige su color:"}),m.jsx(lI,{value:e,onChange:h})]}),m.jsxs(Ht,{sx:{m:4},children:[m.jsx(dt,{sx:{mb:3},children:"Tiempo estimado en acabarla:"}),m.jsxs(Bn,{direction:"row",spacing:2,alignItems:"center",children:[m.jsx(Ro,{id:"filled-basic",label:"Horas",variant:"filled",type:"number",value:o,onChange:S,sx:{width:100}}),m.jsx(dt,{children:":"}),m.jsx(Ro,{id:"filled-basic",label:"Minutos",variant:"filled",type:"number",value:n,onChange:b,sx:{width:100}})]})]}),m.jsx(Bn,{alignItems:"flex-end",children:m.jsx(Ha,{to:"/",children:m.jsx(Hr,{variant:"outlined",sx:{m:4},onClick:w,children:"Añadir tarea"})})})]})}function uI(e){return fetch(`${{}.CHRONOLOGICA_API}/api/addonetask`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>(console.log("API",t),t))}function cI(){const[e,t]=g.useState(""),[n,r]=g.useState(""),[o,i]=g.useState(""),[l,s]=g.useState(""),a=[{id:"PetsIcon",state:!0},{id:"YardIcon",state:!0},{id:"AutoStoriesIcon",state:!0},{id:"MedicationIcon",state:!0},{id:"FreeBreakfastIcon",state:!0},{id:"SelfImprovementIcon",state:!0},{id:"SchoolIcon",state:!0},{id:"EventRepeatIcon",state:!0},{id:"LocalPhoneIcon",state:!0},{id:"HeadphonesBatteryIcon",state:!0},{id:"EditNoteIcon",state:!0},{id:"ChecklistIcon",state:!0},{id:"LocalDrinkIcon",state:!0}],u={name:e,iconName:n,alertQty:l,alertUnits:o},c=f=>t(f.target.value),d=f=>i(f.target.value),h=()=>{console.log(u),uI(u).then(f=>(console.log(f),f))},S=f=>{s(f.target.value)},b=f=>{const p=f.currentTarget.id;r(p)},y=f=>n===f.id?"primary":"default",w=()=>a.map((f,p)=>m.jsx(Em,{id:f.id,item:!0,xs:0,children:m.jsx(x1,{id:f.id,onClick:b,color:y(f),children:f.id==="PetsIcon"?m.jsx(If,{fontSize:"large"}):f.id==="LocalDrinkIcon"?m.jsx(rp,{fontSize:"large"}):f.id==="ChecklistIcon"?m.jsx(tp,{fontSize:"large"}):f.id==="EditNoteIcon"?m.jsx(Jf,{fontSize:"large"}):f.id==="YardIcon"?m.jsx(_f,{fontSize:"large"}):f.id==="FitnessCenterIcon"?m.jsx(zf,{fontSize:"large"}):f.id==="AutoStoriesIcon"?m.jsx(jf,{fontSize:"large"}):f.id==="MedicationIcon"?m.jsx(Af,{fontSize:"large"}):f.id==="FreeBreakfastIcon"?m.jsx(js,{fontSize:"large"}):f.id==="SelfImprovementIcon"?m.jsx(Df,{fontSize:"large"}):f.id==="LocalAtmIcon"?m.jsx(Uf,{fontSize:"large"}):f.id==="SchoolIcon"?m.jsx(Vf,{fontSize:"large"}):f.id==="EventRepeatIcon"?m.jsx(Gf,{fontSize:"large"}):f.id==="LocalPhoneIcon"?m.jsx(Yf,{fontSize:"large"}):f.id==="HeadphonesBatteryIcon"?m.jsx(Xf,{fontSize:"large"}):f.id==="FreeBreakfastIcon"?m.jsx(js,{fontSize:"large"}):""},p)},p));return m.jsxs(m.Fragment,{children:[m.jsx(Ht,{component:"form",sx:{"& > :not(style)":{m:4,width:"50ch"}},autoComplete:"off",children:m.jsx(Ro,{id:"outlined-basic",label:"Nombre de la Tarea",variant:"outlined",value:e,onChange:c})}),m.jsx(dt,{variant:"body1",sx:{mt:4,ml:4},children:"Selecciona un icono:"}),m.jsx(Bn,{component:"ul",sx:{mr:15},children:m.jsx(Em,{container:!0,spacing:3,direction:"row",flexWrap:"wrap",sx:{mx:1,mt:4},component:"li",children:w()})}),m.jsx(dt,{variant:"body1",sx:{mt:8,ml:4},children:"Selecciona la frecuencia en la que deseas realizar la tarea:"}),m.jsx(Ro,{id:"standard-basic",label:"Cantidad de:",variant:"standard",value:l,onChange:S,sx:{m:4,minWidth:120}}),m.jsxs(C1,{variant:"standard",sx:{m:4,minWidth:120},children:[m.jsx($1,{id:"demo-simple-select-standard-label",children:"Frecuencia"}),m.jsxs(_1,{labelId:"demo-simple-select-standard-label",id:"demo-simple-select-standard",value:o,onChange:d,label:"Frecuencia",children:[m.jsx(mi,{value:"",children:m.jsx("em",{children:"None"})}),m.jsx(mi,{value:"day",children:"Días"}),m.jsx(mi,{value:"week",children:"Semanas"}),m.jsx(mi,{value:"month",children:"Meses"})]})]}),m.jsx(Bn,{alignItems:"flex-end",children:m.jsx(Ha,{to:"/",children:m.jsx(Hr,{variant:"outlined",sx:{m:4},onClick:h,children:"Añadir tarea"})})})]})}function dI(){const e=Date.now(),t=new Date(e);return console.log(t),m.jsxs(m.Fragment,{children:[m.jsx("h1",{children:"Tu reloj de confianza: "}),m.jsx("br",{}),m.jsxs("ol",{children:[m.jsxs("li",{children:["----ToLocaleTimeString:",m.jsx("p",{children:t.toLocaleTimeString()})]}),m.jsx("br",{}),m.jsxs("li",{children:[" ----To time string:",m.jsx("p",{children:t.toTimeString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toDateString: ",m.jsx("p",{children:t.toDateString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toLocaleDateString:",m.jsx("p",{children:t.toLocaleDateString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toLocaleString: ",m.jsx("p",{children:t.toLocaleString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toString: ",m.jsx("p",{children:t.toString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toUTCString: ",m.jsx("p",{children:t.toUTCString()})]})]})]})}function fI(){const[e,t]=g.useState(0);console.log("example2 arranca",e);function n(){t(e+1)}function r(){t(e-1)}return g.useEffect(()=>{const o=e;console.log("se ha ejecutado UseEffect"),setInterval(()=>{console.log("interval",o),t(i=>(console.log("increment + 1 ",i),i+1))},1e4)},[]),m.jsxs(m.Fragment,{children:[m.jsx("h1",{}),m.jsxs("p",{children:["numero: ",e]}),m.jsx("button",{onClick:n,children:"+"}),m.jsx("button",{onClick:r,children:"-"})]})}function pI(){return m.jsx(m.Fragment,{children:m.jsxs(m$,{children:[m.jsx(x$,{}),m.jsxs(u$,{children:[m.jsx(ro,{path:"/",element:m.jsx(E4,{})}),m.jsx(ro,{path:"/addtrackedtask",element:m.jsx(aI,{})}),m.jsx(ro,{path:"/addonetimetask",element:m.jsx(cI,{})}),m.jsx(ro,{path:"/Example",element:m.jsx(dI,{})}),m.jsx(ro,{path:"/Example2",element:m.jsx(fI,{})})]})]})})}const hI=gf({typography:{fontFamily:"Raleway variable"},palette:{type:"light",primary:{main:"#6750A4"},secondary:{main:"#625B71"},secondary_container:{main:"#E8DEF8"},tertiary:{main:"#7D5260"},success:{main:"#81c784"},error:{main:"#B3261E"},background:{main:"#FFFBFE"},onbackground:{main:"#1C1B1F"},outline:{main:"#79747E"},warning:{main:"#e8c85f"}}});qu.createRoot(document.getElementById("root")).render(m.jsx(ew,{theme:hI,children:m.jsx(pI,{})})); + */function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function d$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function f$(e,t){return e.button===0&&(!t||t==="_self")&&!d$(e)}const p$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],h$="startTransition",gm=rs[h$];function m$(e){let{basename:t,children:n,future:r,window:o}=e,i=g.useRef();i.current==null&&(i.current=CE({window:o,v5Compat:!0}));let l=i.current,[s,a]=g.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=g.useCallback(d=>{u&&gm?gm(()=>a(d)):a(d)},[a,u]);return g.useLayoutEffect(()=>l.listen(c),[l,c]),g.createElement(a$,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l})}const g$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ha=g.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:c}=t,d=c$(t,p$),{basename:h}=g.useContext(Ho),S,b=!1;if(typeof u=="string"&&v$.test(u)&&(S=u,g$))try{let p=new URL(window.location.href),v=u.startsWith("//")?new URL(p.protocol+u):new URL(u),C=wf(v.pathname,h);v.origin===p.origin&&C!=null?u=C+v.search+v.hash:b=!0}catch{}let y=qE(u,{relative:o}),w=y$(u,{replace:l,state:s,target:a,preventScrollReset:c,relative:o});function f(p){r&&r(p),p.defaultPrevented||w(p)}return g.createElement("a",td({},d,{href:S||y,onClick:b||i?r:f,ref:n,target:a}))});var vm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(vm||(vm={}));var ym;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ym||(ym={}));function y$(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,s=h1(),a=Ua(),u=m1(e,{relative:l});return g.useCallback(c=>{if(f$(c,n)){c.preventDefault();let d=r!==void 0?r:Ns(a)===Ns(u);s(e,{replace:d,state:o,preventScrollReset:i,relative:l})}},[a,s,u,r,o,n,e,i,l])}const xm=["Inicio","Mis estadísticas","Configuración"];function x$(){const[e,t]=g.useState(null),n=h1(),r=l=>{t(l.currentTarget)},o=()=>{t(null)},i=l=>{switch(t(null),l){case"Inicio":n("/");break;case"Mis estadísticas":n("/stats");break;case"Configuración":n("/settings");break}};return console.log(e),m.jsx(Zk,{position:"static",children:m.jsx(tE,{maxWidth:"xl",children:m.jsxs(aw,{disableGutters:!0,children:[m.jsx(Ht,{sx:{display:{xs:"none",md:"flex"},mr:1},children:m.jsx("img",{src:cm,alt:"Logo",style:{width:"50px"}})}),m.jsx(dt,{variant:"h6",noWrap:!0,component:"a",href:"/",sx:{mr:2,display:{xs:"none",md:"flex"},fontFamily:"quicksand",fontWeight:700,color:"inherit",textDecoration:"none"},children:"ChronoLogica"}),m.jsxs(Ht,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[m.jsx(Ww,{size:"large",onClick:r,color:"inherit",children:m.jsx(i1,{})}),m.jsx(n1,{id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!e,onClose:o,sx:{display:{xs:"block",md:"none"},fontFamily:"raleway"},children:xm.map(l=>m.jsx(mi,{onClick:()=>{i(l)},children:m.jsx(dt,{textAlign:"center",children:l})},l))})]}),m.jsx(Ht,{sx:{display:{xs:"flex",md:"none"},mr:1},children:m.jsx("img",{src:cm,alt:"Logo",style:{width:"50px"}})}),m.jsx(dt,{variant:"h5",noWrap:!0,component:"a",href:"",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"quicksand",fontWeight:700,color:"inherit",textDecoration:"none"},children:"ChronoLogica"}),m.jsx(Ht,{sx:{flexGrow:1,justifyContent:"center",display:{xs:"none",md:"flex"}},children:xm.map(l=>m.jsx(Hr,{onClick:()=>{i(l)},sx:{my:2,color:"inherit",display:"block"},children:l},l))})]})})})}function b$(e){return ge("MuiCollapse",e)}me("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const S$=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],C$=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return xe(r,b$,n)},k$=D("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>x({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&x({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),w$=D("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>x({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),E$=D("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>x({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),v1=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:l,collapsedSize:s="0px",component:a,easing:u,in:c,onEnter:d,onEntered:h,onEntering:S,onExit:b,onExited:y,onExiting:w,orientation:f="vertical",style:p,timeout:v=qv.standard,TransitionComponent:C=yf}=r,k=te(r,S$),$=x({},r,{orientation:f,collapsedSize:s}),E=C$($),P=gr(),N=g.useRef(),R=g.useRef(null),O=g.useRef(),K=typeof s=="number"?`${s}px`:s,B=f==="horizontal",I=B?"width":"height";g.useEffect(()=>()=>{clearTimeout(N.current)},[]);const z=g.useRef(null),W=rt(n,z),U=M=>ce=>{if(M){const fe=z.current;ce===void 0?M(fe):M(fe,ce)}},T=()=>R.current?R.current[B?"clientWidth":"clientHeight"]:0,L=U((M,ce)=>{R.current&&B&&(R.current.style.position="absolute"),M.style[I]=K,d&&d(M,ce)}),F=U((M,ce)=>{const fe=T();R.current&&B&&(R.current.style.position="");const{duration:ve,easing:Te}=Ao({style:p,timeout:v,easing:u},{mode:"enter"});if(v==="auto"){const pe=P.transitions.getAutoHeightDuration(fe);M.style.transitionDuration=`${pe}ms`,O.current=pe}else M.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;M.style[I]=`${fe}px`,M.style.transitionTimingFunction=Te,S&&S(M,ce)}),Y=U((M,ce)=>{M.style[I]="auto",h&&h(M,ce)}),ne=U(M=>{M.style[I]=`${T()}px`,b&&b(M)}),se=U(y),ae=U(M=>{const ce=T(),{duration:fe,easing:ve}=Ao({style:p,timeout:v,easing:u},{mode:"exit"});if(v==="auto"){const Te=P.transitions.getAutoHeightDuration(ce);M.style.transitionDuration=`${Te}ms`,O.current=Te}else M.style.transitionDuration=typeof fe=="string"?fe:`${fe}ms`;M.style[I]=K,M.style.transitionTimingFunction=ve,w&&w(M)}),H=M=>{v==="auto"&&(N.current=setTimeout(M,O.current||0)),o&&o(z.current,M)};return m.jsx(C,x({in:c,onEnter:L,onEntered:Y,onEntering:F,onExit:ne,onExited:se,onExiting:ae,addEndListener:H,nodeRef:z,timeout:v==="auto"?null:v},k,{children:(M,ce)=>m.jsx(k$,x({as:a,className:X(E.root,l,{entered:E.entered,exited:!c&&K==="0px"&&E.hidden}[M]),style:x({[B?"minWidth":"minHeight"]:K},p),ownerState:x({},$,{state:M}),ref:W},ce,{children:m.jsx(w$,{ownerState:x({},$,{state:M}),className:E.wrapper,ref:R,children:m.jsx(E$,{ownerState:x({},$,{state:M}),className:E.wrapperInner,children:i})})}))}))});v1.muiSupportAuto=!0;const $$=v1,R$=g.createContext({}),y1=R$;function P$(e){return ge("MuiAccordion",e)}const T$=me("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),jl=T$,I$=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],M$=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},P$,t)},_$=D(Pa,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jl.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${jl.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${jl.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>x({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${jl.expanded}`]:{margin:"16px 0"}})),N$=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:l=!1,disabled:s=!1,disableGutters:a=!1,expanded:u,onChange:c,square:d=!1,TransitionComponent:h=$$,TransitionProps:S}=r,b=te(r,I$),[y,w]=Ki({controlled:u,default:l,name:"Accordion",state:"expanded"}),f=g.useCallback(E=>{w(!y),c&&c(E,!y)},[y,c,w]),[p,...v]=g.Children.toArray(o),C=g.useMemo(()=>({expanded:y,disabled:s,disableGutters:a,toggle:f}),[y,s,a,f]),k=x({},r,{square:d,disabled:s,disableGutters:a,expanded:y}),$=M$(k);return m.jsxs(_$,x({className:X($.root,i),ref:n,ownerState:k,square:d},b,{children:[m.jsx(y1.Provider,{value:C,children:p}),m.jsx(h,x({in:y,timeout:"auto"},S,{children:m.jsx("div",{"aria-labelledby":p.props.id,id:p.props["aria-controls"],role:"region",className:$.region,children:v})}))]}))}),z$=N$;function O$(e){return ge("MuiAccordionDetails",e)}me("MuiAccordionDetails",["root"]);const j$=["className"],L$=e=>{const{classes:t}=e;return xe({root:["root"]},O$,t)},A$=D("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),F$=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiAccordionDetails"}),{className:o}=r,i=te(r,j$),l=r,s=L$(l);return m.jsx(A$,x({className:X(s.root,o),ref:n,ownerState:l},i))}),B$=F$;function D$(e){return ge("MuiAccordionSummary",e)}const W$=me("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vo=W$,U$=["children","className","expandIcon","focusVisibleClassName","onClick"],H$=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},D$,t)},V$=D(Ur,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return x({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${vo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${vo.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${vo.expanded}`]:{minHeight:64}})}),K$=D("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>x({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${vo.expanded}`]:{margin:"20px 0"}})),G$=D("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${vo.expanded}`]:{transform:"rotate(180deg)"}})),q$=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:l,focusVisibleClassName:s,onClick:a}=r,u=te(r,U$),{disabled:c=!1,disableGutters:d,expanded:h,toggle:S}=g.useContext(y1),b=f=>{S&&S(f),a&&a(f)},y=x({},r,{expanded:h,disabled:c,disableGutters:d}),w=H$(y);return m.jsxs(V$,x({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":h,className:X(w.root,i),focusVisibleClassName:X(w.focusVisible,s),onClick:b,ref:n,ownerState:y},u,{children:[m.jsx(K$,{className:w.content,ownerState:y,children:o}),l&&m.jsx(G$,{className:w.expandIconWrapper,ownerState:y,children:l})]}))}),Y$=q$;function Vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Q$=g.createContext(void 0),Va=Q$;function Gr(){return g.useContext(Va)}function X$(e){return m.jsx(CC,x({},e,{defaultTheme:Ra,themeId:Br}))}function bm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Os(e,t=!1){return e&&(bm(e.value)&&e.value!==""||t&&bm(e.defaultValue)&&e.defaultValue!=="")}function Z$(e){return e.startAdornment}function J$(e){return ge("MuiInputBase",e)}const eR=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fo=eR,tR=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ka=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${G(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ga=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},nR=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:s,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:d,size:h,startAdornment:S,type:b}=e,y={root:["root",`color${G(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",l&&"focused",s&&"formControl",h==="small"&&"sizeSmall",c&&"multiline",S&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",S&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return xe(y,J$,t)},qa=D("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ka})(({theme:e,ownerState:t})=>x({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ya=D("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ga})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Fo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),rR=m.jsx(X$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),oR=g.forwardRef(function(t,n){var r;const o=be({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:s,className:a,components:u={},componentsProps:c={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:S,endAdornment:b,fullWidth:y=!1,id:w,inputComponent:f="input",inputProps:p={},inputRef:v,maxRows:C,minRows:k,multiline:$=!1,name:E,onBlur:P,onChange:N,onClick:R,onFocus:O,onKeyDown:K,onKeyUp:B,placeholder:I,readOnly:z,renderSuffix:W,rows:U,slotProps:T={},slots:L={},startAdornment:F,type:Y="text",value:ne}=o,se=te(o,tR),ae=p.value!=null?p.value:ne,{current:H}=g.useRef(ae!=null),M=g.useRef(),ce=g.useCallback(Z=>{},[]),fe=rt(M,v,p.ref,ce),[ve,Te]=g.useState(!1),pe=Gr(),oe=Vo({props:o,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=pe?pe.focused:ve,g.useEffect(()=>{!pe&&h&&ve&&(Te(!1),P&&P())},[pe,h,ve,P]);const ue=pe&&pe.onFilled,ie=pe&&pe.onEmpty,he=g.useCallback(Z=>{Os(Z)?ue&&ue():ie&&ie()},[ue,ie]);$n(()=>{H&&he({value:ae})},[ae,he,H]);const Oe=Z=>{if(oe.disabled){Z.stopPropagation();return}O&&O(Z),p.onFocus&&p.onFocus(Z),pe&&pe.onFocus?pe.onFocus(Z):Te(!0)},ye=Z=>{P&&P(Z),p.onBlur&&p.onBlur(Z),pe&&pe.onBlur?pe.onBlur(Z):Te(!1)},Ve=(Z,...Q)=>{if(!H){const q=Z.target||M.current;if(q==null)throw new Error(fr(1));he({value:q.value})}p.onChange&&p.onChange(Z,...Q),N&&N(Z,...Q)};g.useEffect(()=>{he(M.current)},[]);const kt=Z=>{M.current&&Z.currentTarget===Z.target&&M.current.focus(),R&&!oe.disabled&&R(Z)};let ke=f,_e=p;$&&ke==="input"&&(U?_e=x({type:void 0,minRows:U,maxRows:U},_e):_e=x({type:void 0,maxRows:C,minRows:k},_e),ke=CS);const vt=Z=>{he(Z.animationName==="mui-auto-fill-cancel"?M.current:{value:"x"})};g.useEffect(()=>{pe&&pe.setAdornedStart(!!F)},[pe,F]);const Ne=x({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:b,error:oe.error,focused:oe.focused,formControl:pe,fullWidth:y,hiddenLabel:oe.hiddenLabel,multiline:$,size:oe.size,startAdornment:F,type:Y}),wt=nR(Ne),A=L.root||u.Root||qa,ee=T.root||c.root||{},le=L.input||u.Input||Ya;return _e=x({},_e,(r=T.input)!=null?r:c.input),m.jsxs(g.Fragment,{children:[!S&&rR,m.jsxs(A,x({},ee,!On(A)&&{ownerState:x({},Ne,ee.ownerState)},{ref:n,onClick:kt},se,{className:X(wt.root,ee.className,a,z&&"MuiInputBase-readOnly"),children:[F,m.jsx(Va.Provider,{value:null,children:m.jsx(le,x({ownerState:Ne,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:l,autoFocus:s,defaultValue:d,disabled:oe.disabled,id:w,onAnimationStart:vt,name:E,placeholder:I,readOnly:z,required:oe.required,rows:U,value:ae,onKeyDown:K,onKeyUp:B,type:Y},_e,!On(le)&&{as:ke,ownerState:x({},Ne,_e.ownerState)},{ref:fe,className:X(wt.input,_e.className,z&&"MuiInputBase-readOnly"),onBlur:ye,onChange:Ve,onFocus:Oe}))}),b,W?W(x({},oe,{startAdornment:F})):null]}))]})}),$f=oR;function iR(e){return ge("MuiInput",e)}const lR=x({},Fo,me("MuiInput",["root","underline","input"])),li=lR;function sR(e){return ge("MuiOutlinedInput",e)}const aR=x({},Fo,me("MuiOutlinedInput",["root","notchedOutline","input"])),Hn=aR;function uR(e){return ge("MuiFilledInput",e)}const cR=x({},Fo,me("MuiFilledInput",["root","underline","input"])),yr=cR,dR=Ba(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function fR(e){return ge("MuiBadge",e)}const pR=me("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Vn=pR,hR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Wu=10,Uu=4,mR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:l={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${G(n.vertical)}${G(n.horizontal)}`,`anchorOrigin${G(n.vertical)}${G(n.horizontal)}${G(o)}`,`overlap${G(o)}`,t!=="default"&&`color${G(t)}`]};return xe(s,fR,l)},gR=D("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),vR=D("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${G(n.anchorOrigin.vertical)}${G(n.anchorOrigin.horizontal)}${G(n.overlap)}`],n.color!=="default"&&t[`color${G(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>x({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Wu*2,lineHeight:1,padding:"0 6px",height:Wu*2,borderRadius:Wu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:Uu,height:Uu*2,minWidth:Uu*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Vn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),yR=g.forwardRef(function(t,n){var r,o,i,l,s,a;const u=be({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:S={},componentsProps:b={},children:y,overlap:w="rectangular",color:f="default",invisible:p=!1,max:v=99,badgeContent:C,slots:k,slotProps:$,showZero:E=!1,variant:P="standard"}=u,N=te(u,hR),{badgeContent:R,invisible:O,max:K,displayValue:B}=Wb({max:v,invisible:p,badgeContent:C,showZero:E}),I=mv({anchorOrigin:c,color:f,overlap:w,variant:P,badgeContent:C}),z=O||R==null&&P!=="dot",{color:W=f,overlap:U=w,anchorOrigin:T=c,variant:L=P}=z?I:u,F=L!=="dot"?B:void 0,Y=x({},u,{badgeContent:R,invisible:z,max:K,displayValue:F,showZero:E,anchorOrigin:T,color:W,overlap:U,variant:L}),ne=mR(Y),se=(r=(o=k==null?void 0:k.root)!=null?o:S.Root)!=null?r:gR,ae=(i=(l=k==null?void 0:k.badge)!=null?l:S.Badge)!=null?i:vR,H=(s=$==null?void 0:$.root)!=null?s:b.root,M=(a=$==null?void 0:$.badge)!=null?a:b.badge,ce=it({elementType:se,externalSlotProps:H,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:Y,className:X(H==null?void 0:H.className,ne.root,d)}),fe=it({elementType:ae,externalSlotProps:M,ownerState:Y,className:X(ne.badge,M==null?void 0:M.className)});return m.jsxs(se,x({},ce,{children:[y,m.jsx(ae,x({},fe,{children:F}))]}))}),xR=yR;function bR(e){return ge("MuiFab",e)}const SR=me("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Sm=SR,CR=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],kR=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${G(o)}`,t==="inherit"?"colorInherit":t]},l=xe(i,bR,r);return x({},r,l)},wR=D(Ur,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>mn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${G(n.size)}`],n.color==="inherit"&&t.colorInherit,t[G(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return x({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Sm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>x({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${Sm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),ER=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFab"}),{children:o,className:i,color:l="default",component:s="button",disabled:a=!1,disableFocusRipple:u=!1,focusVisibleClassName:c,size:d="large",variant:h="circular"}=r,S=te(r,CR),b=x({},r,{color:l,component:s,disabled:a,disableFocusRipple:u,size:d,variant:h}),y=kR(b);return m.jsx(wR,x({className:X(y.root,i),component:s,disabled:a,focusRipple:!u,focusVisibleClassName:X(y.focusVisible,c),ownerState:b,ref:n},S,{classes:y,children:o}))}),x1=ER,$R=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],RR=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},uR,t);return x({},t,o)},PR=D(qa,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ka(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${yr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${yr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yr.disabled}, .${yr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),TR=D(Ya,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ga})(({theme:e,ownerState:t})=>x({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),b1=g.forwardRef(function(t,n){var r,o,i,l;const s=be({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:S,slots:b={},type:y="text"}=s,w=te(s,$R),f=x({},s,{fullWidth:c,inputComponent:d,multiline:h,type:y}),p=RR(s),v={root:{ownerState:f},input:{ownerState:f}},C=S??u?jt(S??u,v):v,k=(r=(o=b.root)!=null?o:a.Root)!=null?r:PR,$=(i=(l=b.input)!=null?l:a.Input)!=null?i:TR;return m.jsx($f,x({slots:{root:k,input:$},componentsProps:C,fullWidth:c,inputComponent:d,multiline:h,ref:n,type:y},w,{classes:p}))});b1.muiName="Input";const S1=b1;function IR(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const MR=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_R=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${G(n)}`,r&&"fullWidth"]};return xe(o,IR,t)},NR=D("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${G(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),zR=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:s="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:h=!1,margin:S="none",required:b=!1,size:y="medium",variant:w="outlined"}=r,f=te(r,MR),p=x({},r,{color:l,component:s,disabled:a,error:u,fullWidth:d,hiddenLabel:h,margin:S,required:b,size:y,variant:w}),v=_R(p),[C,k]=g.useState(()=>{let B=!1;return o&&g.Children.forEach(o,I=>{if(!Jl(I,["Input","Select"]))return;const z=Jl(I,["Select"])?I.props.input:I;z&&Z$(z.props)&&(B=!0)}),B}),[$,E]=g.useState(()=>{let B=!1;return o&&g.Children.forEach(o,I=>{Jl(I,["Input","Select"])&&(Os(I.props,!0)||Os(I.props.inputProps,!0))&&(B=!0)}),B}),[P,N]=g.useState(!1);a&&P&&N(!1);const R=c!==void 0&&!a?c:P;let O;const K=g.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:l,disabled:a,error:u,filled:$,focused:R,fullWidth:d,hiddenLabel:h,size:y,onBlur:()=>{N(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{N(!0)},registerEffect:O,required:b,variant:w}),[C,l,a,u,$,R,d,h,O,b,y,w]);return m.jsx(Va.Provider,{value:K,children:m.jsx(NR,x({as:s,ownerState:p,className:X(v.root,i),ref:n},f,{children:o}))})}),C1=zR;function OR(e){return ge("MuiFormHelperText",e)}const jR=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Cm=jR;var km;const LR=["children","className","component","disabled","error","filled","focused","margin","required","variant"],AR=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:s,required:a}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${G(r)}`,n&&"contained",s&&"focused",l&&"filled",a&&"required"]};return xe(u,OR,t)},FR=D("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${G(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Cm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cm.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),BR=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p"}=r,s=te(r,LR),a=Gr(),u=Vo({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=x({},r,{component:l,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=AR(c);return m.jsx(FR,x({as:l,ownerState:c,className:X(d.root,i),ref:n},s,{children:o===" "?km||(km=m.jsx("span",{className:"notranslate",children:"​"})):o}))}),DR=BR;function WR(e){return ge("MuiFormLabel",e)}const UR=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Pi=UR,HR=["children","className","color","component","disabled","error","filled","focused","required"],VR=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:s}=e,a={root:["root",`color${G(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return xe(a,WR,t)},KR=D("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Pi.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Pi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pi.error}`]:{color:(e.vars||e).palette.error.main}})),GR=D("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pi.error}`]:{color:(e.vars||e).palette.error.main}})),qR=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:l="label"}=r,s=te(r,HR),a=Gr(),u=Vo({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=x({},r,{color:u.color||"primary",component:l,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=VR(c);return m.jsxs(KR,x({as:l,ownerState:c,className:X(d.root,i),ref:n},s,{children:[o,u.required&&m.jsxs(GR,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),YR=qR,QR=g.createContext(),wm=QR;function XR(e){return ge("MuiGrid",e)}const ZR=[0,1,2,3,4,5,6,7,8,9,10],JR=["column-reverse","column","row-reverse","row"],eP=["nowrap","wrap-reverse","wrap"],si=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],tP=me("MuiGrid",["root","container","item","zeroMinWidth",...ZR.map(e=>`spacing-xs-${e}`),...JR.map(e=>`direction-xs-${e}`),...eP.map(e=>`wrap-xs-${e}`),...si.map(e=>`grid-xs-${e}`),...si.map(e=>`grid-sm-${e}`),...si.map(e=>`grid-md-${e}`),...si.map(e=>`grid-lg-${e}`),...si.map(e=>`grid-xl-${e}`)]),Ji=tP,nP=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function $o(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function rP({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=_r({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof l=="object"?l[o]:l;if(s==null)return r;const a=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${a} + ${$o(c)})`;u={flexBasis:d,maxWidth:d}}}i=x({flexBasis:a,flexGrow:0,maxWidth:a},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function oP({theme:e,ownerState:t}){const n=_r({values:t.direction,breakpoints:e.breakpoints.values});return At({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Ji.item}`]={maxWidth:"none"}),o})}function k1({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function iP({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=_r({values:r,breakpoints:e.breakpoints.values});let l;typeof i=="object"&&(l=k1({breakpoints:e.breakpoints.values,values:i})),o=At({theme:e},i,(s,a)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${$o(c)}`,[`& > .${Ji.item}`]:{paddingTop:$o(c)}}:(u=l)!=null&&u.includes(a)?{}:{marginTop:0,[`& > .${Ji.item}`]:{paddingTop:0}}})}return o}function lP({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=_r({values:r,breakpoints:e.breakpoints.values});let l;typeof i=="object"&&(l=k1({breakpoints:e.breakpoints.values,values:i})),o=At({theme:e},i,(s,a)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${$o(c)})`,marginLeft:`-${$o(c)}`,[`& > .${Ji.item}`]:{paddingLeft:$o(c)}}:(u=l)!=null&&u.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${Ji.item}`]:{paddingLeft:0}}})}return o}function sP(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const aP=D("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:l,wrap:s,zeroMinWidth:a,breakpoints:u}=n;let c=[];r&&(c=sP(l,u,t));const d=[];return u.forEach(h=>{const S=n[h];S&&d.push(t[`grid-${h}-${String(S)}`])}),[t.root,r&&t.container,i&&t.item,a&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>x({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),oP,iP,lP,rP);function uP(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const cP=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:a}=e;let u=[];n&&(u=uP(i,a));const c=[];a.forEach(h=>{const S=e[h];S&&c.push(`grid-${h}-${String(S)}`)});const d={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...c]};return xe(d,XR,t)},dP=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiGrid"}),{breakpoints:o}=gr(),i=Ea(r),{className:l,columns:s,columnSpacing:a,component:u="div",container:c=!1,direction:d="row",item:h=!1,rowSpacing:S,spacing:b=0,wrap:y="wrap",zeroMinWidth:w=!1}=i,f=te(i,nP),p=S||b,v=a||b,C=g.useContext(wm),k=c?s||12:C,$={},E=x({},f);o.keys.forEach(R=>{f[R]!=null&&($[R]=f[R],delete E[R])});const P=x({},i,{columns:k,container:c,direction:d,item:h,rowSpacing:p,columnSpacing:v,wrap:y,zeroMinWidth:w,spacing:b},$,{breakpoints:o.keys}),N=cP(P);return m.jsx(wm.Provider,{value:k,children:m.jsx(aP,x({ownerState:P,className:X(N.root,l),as:u,ref:n},E))})}),Em=dP,fP=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pP=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},iR,t);return x({},t,o)},hP=D(qa,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ka(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),x({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${li.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${li.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${li.disabled}, .${li.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${li.disabled}:before`]:{borderBottomStyle:"dotted"}})}),mP=D(Ya,{name:"MuiInput",slot:"Input",overridesResolver:Ga})({}),w1=g.forwardRef(function(t,n){var r,o,i,l;const s=be({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:S=!1,slotProps:b,slots:y={},type:w="text"}=s,f=te(s,fP),p=pP(s),C={root:{ownerState:{disableUnderline:a}}},k=b??c?jt(b??c,C):C,$=(r=(o=y.root)!=null?o:u.Root)!=null?r:hP,E=(i=(l=y.input)!=null?l:u.Input)!=null?i:mP;return m.jsx($f,x({slots:{root:$,input:E},slotProps:k,fullWidth:d,inputComponent:h,multiline:S,ref:n,type:w},f,{classes:p}))});w1.muiName="Input";const E1=w1;function gP(e){return ge("MuiInputAdornment",e)}const vP=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),$m=vP;var Rm;const yP=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xP=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${G(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},bP=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:l}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${G(o)}`,l,r&&"hiddenLabel",i&&`size${G(i)}`]};return xe(s,gP,t)},SP=D("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xP})(({theme:e,ownerState:t})=>x({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${$m.positionStart}&:not(.${$m.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),CP=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:l="div",disablePointerEvents:s=!1,disableTypography:a=!1,position:u,variant:c}=r,d=te(r,yP),h=Gr()||{};let S=c;c&&h.variant,h&&!S&&(S=h.variant);const b=x({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:u,variant:S}),y=bP(b);return m.jsx(Va.Provider,{value:null,children:m.jsx(SP,x({as:l,ownerState:b,className:X(y.root,i),ref:n},d,{children:typeof o=="string"&&!a?m.jsx(dt,{color:"text.secondary",children:o}):m.jsxs(g.Fragment,{children:[u==="start"?Rm||(Rm=m.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),kP=CP;function wP(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const EP=["disableAnimation","margin","shrink","variant","className"],$P=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:s}=e,u=xe({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",l],asterisk:[s&&"asterisk"]},wP,t);return x({},t,u)},RP=D(YR,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>x({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&x({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&x({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&x({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),PP=g.forwardRef(function(t,n){const r=be({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:l}=r,s=te(r,EP),a=Gr();let u=i;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=Vo({props:r,muiFormControl:a,states:["size","variant","required"]}),d=x({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required}),h=$P(d);return m.jsx(RP,x({"data-shrink":u,ownerState:d,ref:n,className:X(h.root,l)},s,{classes:h}))}),$1=PP;function TP(e){return ge("MuiNativeSelect",e)}const IP=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rf=IP,MP=["className","disabled","error","IconComponent","inputRef","variant"],_P=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,s={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${G(n)}`,i&&"iconOpen",r&&"disabled"]};return xe(s,TP,t)},R1=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":x({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Rf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),NP=D("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Rf.multiple}`]:t.multiple}]}})(R1),P1=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Rf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),zP=D("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${G(n.variant)}`],n.open&&t.iconOpen]}})(P1),OP=g.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:s,variant:a="standard"}=t,u=te(t,MP),c=x({},t,{disabled:o,variant:a,error:i}),d=_P(c);return m.jsxs(g.Fragment,{children:[m.jsx(NP,x({ownerState:c,className:X(d.select,r),disabled:o,ref:s||n},u)),t.multiple?null:m.jsx(zP,{as:l,ownerState:c,className:d.icon})]})}),jP=OP;var Pm;const LP=["children","classes","className","label","notched"],AP=D("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),FP=D("legend")(({ownerState:e,theme:t})=>x({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&x({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function BP(e){const{className:t,label:n,notched:r}=e,o=te(e,LP),i=n!=null&&n!=="",l=x({},e,{notched:r,withLabel:i});return m.jsx(AP,x({"aria-hidden":!0,className:t,ownerState:l},o,{children:m.jsx(FP,{ownerState:l,children:i?m.jsx("span",{children:n}):Pm||(Pm=m.jsx("span",{className:"notranslate",children:"​"}))})}))}const DP=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WP=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sR,t);return x({},t,r)},UP=D(qa,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ka})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Hn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Hn.focused} .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Hn.error} .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Hn.disabled} .${Hn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),HP=D(BP,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),VP=D(Ya,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ga})(({theme:e,ownerState:t})=>x({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),T1=g.forwardRef(function(t,n){var r,o,i,l,s;const a=be({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:h,multiline:S=!1,notched:b,slots:y={},type:w="text"}=a,f=te(a,DP),p=WP(a),v=Gr(),C=Vo({props:a,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=x({},a,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:v,fullWidth:c,hiddenLabel:C.hiddenLabel,multiline:S,size:C.size,type:w}),$=(r=(o=y.root)!=null?o:u.Root)!=null?r:UP,E=(i=(l=y.input)!=null?l:u.Input)!=null?i:VP;return m.jsx($f,x({slots:{root:$,input:E},renderSuffix:P=>m.jsx(HP,{ownerState:k,className:p.notchedOutline,label:h!=null&&h!==""&&C.required?s||(s=m.jsxs(g.Fragment,{children:[h," ","*"]})):h,notched:typeof b<"u"?b:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:c,inputComponent:d,multiline:S,ref:n,type:w},f,{classes:x({},p,{notchedOutline:null})}))});T1.muiName="Input";const I1=T1;function KP(e){return ge("MuiSelect",e)}const GP=me("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ai=GP;var Tm;const qP=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YP=D("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ai.select}`]:t.select},{[`&.${ai.select}`]:t[n.variant]},{[`&.${ai.error}`]:t.error},{[`&.${ai.multiple}`]:t.multiple}]}})(R1,{[`&.${ai.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),QP=D("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${G(n.variant)}`],n.open&&t.iconOpen]}})(P1),XP=D("input",{shouldForwardProp:e=>vf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Im(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ZP(e){return e==null||typeof e=="string"&&!e.trim()}const JP=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,s={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${G(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(s,KP,t)},eT=g.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:l,children:s,className:a,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:h,error:S=!1,IconComponent:b,inputRef:y,labelId:w,MenuProps:f={},multiple:p,name:v,onBlur:C,onChange:k,onClose:$,onFocus:E,onOpen:P,open:N,readOnly:R,renderValue:O,SelectDisplayProps:K={},tabIndex:B,value:I,variant:z="standard"}=t,W=te(t,qP),[U,T]=Ki({controlled:I,default:c,name:"Select"}),[L,F]=Ki({controlled:N,default:u,name:"Select"}),Y=g.useRef(null),ne=g.useRef(null),[se,ae]=g.useState(null),{current:H}=g.useRef(N!=null),[M,ce]=g.useState(),fe=rt(n,y),ve=g.useCallback(q=>{ne.current=q,q&&ae(q)},[]),Te=se==null?void 0:se.parentNode;g.useImperativeHandle(fe,()=>({focus:()=>{ne.current.focus()},node:Y.current,value:U}),[U]),g.useEffect(()=>{u&&L&&se&&!H&&(ce(l?null:Te.clientWidth),ne.current.focus())},[se,l]),g.useEffect(()=>{i&&ne.current.focus()},[i]),g.useEffect(()=>{if(!w)return;const q=nt(ne.current).getElementById(w);if(q){const re=()=>{getSelection().isCollapsed&&ne.current.focus()};return q.addEventListener("click",re),()=>{q.removeEventListener("click",re)}}},[w]);const pe=(q,re)=>{q?P&&P(re):$&&$(re),H||(ce(l?null:Te.clientWidth),F(q))},oe=q=>{q.button===0&&(q.preventDefault(),ne.current.focus(),pe(!0,q))},ue=q=>{pe(!1,q)},ie=g.Children.toArray(s),he=q=>{const re=ie.find(_=>_.props.value===q.target.value);re!==void 0&&(T(re.props.value),k&&k(q,re))},Oe=q=>re=>{let _;if(re.currentTarget.hasAttribute("tabindex")){if(p){_=Array.isArray(U)?U.slice():[];const V=U.indexOf(q.props.value);V===-1?_.push(q.props.value):_.splice(V,1)}else _=q.props.value;if(q.props.onClick&&q.props.onClick(re),U!==_&&(T(_),k)){const V=re.nativeEvent||re,de=new V.constructor(V.type,V);Object.defineProperty(de,"target",{writable:!0,value:{value:_,name:v}}),k(de,q)}p||pe(!1,re)}},ye=q=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(q.key)!==-1&&(q.preventDefault(),pe(!0,q))},Ve=se!==null&&L,kt=q=>{!Ve&&C&&(Object.defineProperty(q,"target",{writable:!0,value:{value:U,name:v}}),C(q))};delete W["aria-invalid"];let ke,_e;const vt=[];let Ne=!1;(Os({value:U})||h)&&(O?ke=O(U):Ne=!0);const wt=ie.map(q=>{if(!g.isValidElement(q))return null;let re;if(p){if(!Array.isArray(U))throw new Error(fr(2));re=U.some(_=>Im(_,q.props.value)),re&&Ne&&vt.push(q.props.children)}else re=Im(U,q.props.value),re&&Ne&&(_e=q.props.children);return g.cloneElement(q,{"aria-selected":re?"true":"false",onClick:Oe(q),onKeyUp:_=>{_.key===" "&&_.preventDefault(),q.props.onKeyUp&&q.props.onKeyUp(_)},role:"option",selected:re,value:void 0,"data-value":q.props.value})});Ne&&(p?vt.length===0?ke=null:ke=vt.reduce((q,re,_)=>(q.push(re),_{const{classes:t}=e;return t},Pf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mn(e)&&e!=="variant",slot:"Root"},oT=D(E1,Pf)(""),iT=D(I1,Pf)(""),lT=D(S1,Pf)(""),M1=g.forwardRef(function(t,n){const r=be({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:s,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=dR,id:d,input:h,inputProps:S,label:b,labelId:y,MenuProps:w,multiple:f=!1,native:p=!1,onClose:v,onOpen:C,open:k,renderValue:$,SelectDisplayProps:E,variant:P="outlined"}=r,N=te(r,nT),R=p?jP:tT,O=Gr(),K=Vo({props:r,muiFormControl:O,states:["variant","error"]}),B=K.variant||P,I=x({},r,{variant:B,classes:l}),z=rT(I),W=h||{standard:m.jsx(oT,{ownerState:I}),outlined:m.jsx(iT,{label:b,ownerState:I}),filled:m.jsx(lT,{ownerState:I})}[B],U=rt(n,W.ref);return m.jsx(g.Fragment,{children:g.cloneElement(W,x({inputComponent:R,inputProps:x({children:i,error:K.error,IconComponent:c,variant:B,type:void 0,multiple:f},p?{id:d}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:y,MenuProps:w,onClose:v,onOpen:C,open:k,renderValue:$,SelectDisplayProps:x({id:d},E)},S,{classes:S?jt(z,S.classes):z},h?h.props.inputProps:{})},f&&p&&B==="outlined"?{notched:!0}:{},{ref:U,className:X(W.props.className,s)},!h&&{variant:B},N))})});M1.muiName="Select";const _1=M1,sT=e=>!e||!On(e),aT=sT;function uT(e){return ge("MuiSlider",e)}const cT=me("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),dn=cT,dT=e=>{const{open:t}=e;return{offset:X(t&&dn.valueLabelOpen),circle:dn.valueLabelCircle,label:dn.valueLabelLabel}};function fT(e){const{children:t,className:n,value:r}=e,o=dT(e);return t?g.cloneElement(t,{className:X(t.props.className)},m.jsxs(g.Fragment,{children:[t.props.children,m.jsx("span",{className:X(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}const pT=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Mm(e){return e}const hT=D("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${G(n.color)}`],n.size!=="medium"&&t[`size${G(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>x({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&x({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&x({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${dn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${dn.dragging}`]:{[`& .${dn.thumb}, & .${dn.track}`]:{transition:"none"}}})),mT=D("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>x({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),gT=D("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Vv(e.palette[t.color].main,.62):Hv(e.palette[t.color].main,.5);return x({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),vT=D("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${G(n.color)}`],n.size!=="medium"&&t[`thumbSize${G(n.size)}`]]}})(({theme:e,ownerState:t})=>x({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":x({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${dn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_t(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${dn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_t(e.palette[t.color].main,.16)}`},[`&.${dn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),yT=D(fT,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>x({[`&.${dn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),xT=D("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>vf(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>x({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),bT=D("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>vf(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>x({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),ST=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:l,color:s,size:a}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${G(s)}`,a&&`size${G(a)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",a&&`thumbSize${G(a)}`,s&&`thumbColor${G(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return xe(u,uT,l)},CT=({children:e})=>e,kT=g.forwardRef(function(t,n){var r,o,i,l,s,a,u,c,d,h,S,b,y,w,f,p,v,C,k,$,E,P,N,R;const O=be({props:t,name:"MuiSlider"}),B=gr().direction==="rtl",{"aria-label":I,"aria-valuetext":z,"aria-labelledby":W,component:U="span",components:T={},componentsProps:L={},color:F="primary",classes:Y,className:ne,disableSwap:se=!1,disabled:ae=!1,getAriaLabel:H,getAriaValueText:M,marks:ce=!1,max:fe=100,min:ve=0,orientation:Te="horizontal",size:pe="medium",step:oe=1,scale:ue=Mm,slotProps:ie,slots:he,track:Oe="normal",valueLabelDisplay:ye="off",valueLabelFormat:Ve=Mm}=O,kt=te(O,pT),ke=x({},O,{isRtl:B,max:fe,min:ve,classes:Y,disabled:ae,disableSwap:se,orientation:Te,marks:ce,color:F,size:pe,step:oe,scale:ue,track:Oe,valueLabelDisplay:ye,valueLabelFormat:Ve}),{axisProps:_e,getRootProps:vt,getHiddenInputProps:Ne,getThumbProps:wt,open:A,active:ee,axis:le,focusedThumbIndex:Z,range:Q,dragging:q,marks:re,values:_,trackOffset:V,trackLeap:de,getThumbStyle:Se}=yS(x({},ke,{rootRef:n}));ke.marked=re.length>0&&re.some(Qe=>Qe.label),ke.dragging=q,ke.focusedThumbIndex=Z;const Re=ST(ke),Et=(r=(o=he==null?void 0:he.root)!=null?o:T.Root)!=null?r:hT,Rn=(i=(l=he==null?void 0:he.rail)!=null?l:T.Rail)!=null?i:mT,vr=(s=(a=he==null?void 0:he.track)!=null?a:T.Track)!=null?s:gT,ip=(u=(c=he==null?void 0:he.thumb)!=null?c:T.Thumb)!=null?u:vT,lp=(d=(h=he==null?void 0:he.valueLabel)!=null?h:T.ValueLabel)!=null?d:yT,Qa=(S=(b=he==null?void 0:he.mark)!=null?b:T.Mark)!=null?S:xT,Xa=(y=(w=he==null?void 0:he.markLabel)!=null?w:T.MarkLabel)!=null?y:bT,sp=(f=(p=he==null?void 0:he.input)!=null?p:T.Input)!=null?f:"input",Za=(v=ie==null?void 0:ie.root)!=null?v:L.root,j1=(C=ie==null?void 0:ie.rail)!=null?C:L.rail,Ja=(k=ie==null?void 0:ie.track)!=null?k:L.track,eu=($=ie==null?void 0:ie.thumb)!=null?$:L.thumb,tu=(E=ie==null?void 0:ie.valueLabel)!=null?E:L.valueLabel,L1=(P=ie==null?void 0:ie.mark)!=null?P:L.mark,A1=(N=ie==null?void 0:ie.markLabel)!=null?N:L.markLabel,F1=(R=ie==null?void 0:ie.input)!=null?R:L.input,B1=it({elementType:Et,getSlotProps:vt,externalSlotProps:Za,externalForwardedProps:kt,additionalProps:x({},aT(Et)&&{as:U}),ownerState:x({},ke,Za==null?void 0:Za.ownerState),className:[Re.root,ne]}),D1=it({elementType:Rn,externalSlotProps:j1,ownerState:ke,className:Re.rail}),W1=it({elementType:vr,externalSlotProps:Ja,additionalProps:{style:x({},_e[le].offset(V),_e[le].leap(de))},ownerState:x({},ke,Ja==null?void 0:Ja.ownerState),className:Re.track}),nu=it({elementType:ip,getSlotProps:wt,externalSlotProps:eu,ownerState:x({},ke,eu==null?void 0:eu.ownerState),className:Re.thumb}),U1=it({elementType:lp,externalSlotProps:tu,ownerState:x({},ke,tu==null?void 0:tu.ownerState),className:Re.valueLabel}),ru=it({elementType:Qa,externalSlotProps:L1,ownerState:ke,className:Re.mark}),ou=it({elementType:Xa,externalSlotProps:A1,ownerState:ke,className:Re.markLabel}),H1=it({elementType:sp,getSlotProps:Ne,externalSlotProps:F1,ownerState:ke});return m.jsxs(Et,x({},B1,{children:[m.jsx(Rn,x({},D1)),m.jsx(vr,x({},W1)),re.filter(Qe=>Qe.value>=ve&&Qe.value<=fe).map((Qe,at)=>{const iu=Ts(Qe.value,ve,fe),ul=_e[le].offset(iu);let Pn;return Oe===!1?Pn=_.indexOf(Qe.value)!==-1:Pn=Oe==="normal"&&(Q?Qe.value>=_[0]&&Qe.value<=_[_.length-1]:Qe.value<=_[0])||Oe==="inverted"&&(Q?Qe.value<=_[0]||Qe.value>=_[_.length-1]:Qe.value>=_[0]),m.jsxs(g.Fragment,{children:[m.jsx(Qa,x({"data-index":at},ru,!On(Qa)&&{markActive:Pn},{style:x({},ul,ru.style),className:X(ru.className,Pn&&Re.markActive)})),Qe.label!=null?m.jsx(Xa,x({"aria-hidden":!0,"data-index":at},ou,!On(Xa)&&{markLabelActive:Pn},{style:x({},ul,ou.style),className:X(Re.markLabel,ou.className,Pn&&Re.markLabelActive),children:Qe.label})):null]},at)}),_.map((Qe,at)=>{const iu=Ts(Qe,ve,fe),ul=_e[le].offset(iu),Pn=ye==="off"?CT:lp;return m.jsx(Pn,x({},!On(Pn)&&{valueLabelFormat:Ve,valueLabelDisplay:ye,value:typeof Ve=="function"?Ve(ue(Qe),at):Ve,index:at,open:A===at||ee===at||ye==="on",disabled:ae},U1,{children:m.jsx(ip,x({"data-index":at},nu,{className:X(Re.thumb,nu.className,ee===at&&Re.active,Z===at&&Re.focusVisible),style:x({},ul,Se(at),nu.style),children:m.jsx(sp,x({"data-index":at,"aria-label":H?H(at):I,"aria-valuenow":ue(Qe),"aria-labelledby":W,"aria-valuetext":M?M(ue(Qe),at):z,value:_[at]},H1))}))}),at)})]}))}),N1=kT,wT=ik({createStyledComponent:D("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>be({props:e,name:"MuiStack"})}),Bn=wT;function ET(e){return ge("MuiTab",e)}const $T=me("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),xr=$T,RT=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],PT=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:l,selected:s,disabled:a}=e,u={root:["root",i&&l&&"labelIcon",`textColor${G(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return xe(u,ET,t)},TT=D(Ur,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${G(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${xr.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${xr.selected}`]:{opacity:1},[`&.${xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${xr.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${xr.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),IT=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:l=!1,fullWidth:s,icon:a,iconPosition:u="top",indicator:c,label:d,onChange:h,onClick:S,onFocus:b,selected:y,selectionFollowsFocus:w,textColor:f="inherit",value:p,wrapped:v=!1}=r,C=te(r,RT),k=x({},r,{disabled:i,disableFocusRipple:l,selected:y,icon:!!a,iconPosition:u,label:!!d,fullWidth:s,textColor:f,wrapped:v}),$=PT(k),E=a&&d&&g.isValidElement(a)?g.cloneElement(a,{className:X($.iconWrapper,a.props.className)}):a,P=R=>{!y&&h&&h(R,p),S&&S(R)},N=R=>{w&&!y&&h&&h(R,p),b&&b(R)};return m.jsxs(TT,x({focusRipple:!l,className:X($.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:P,onFocus:N,ownerState:k,tabIndex:y?0:-1},C,{children:[u==="top"||u==="start"?m.jsxs(g.Fragment,{children:[E,d]}):m.jsxs(g.Fragment,{children:[d,E]}),c]}))}),_m=IT,MT=Ba(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),_T=Ba(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function NT(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function zT(e,t,n,r={},o=()=>{}){const{ease:i=NT,duration:l=300}=r;let s=null;const a=t[e];let u=!1;const c=()=>{u=!0},d=h=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=h);const S=Math.min(1,(h-s)/l);if(t[e]=i(S)*(n-a)+a,S>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return a===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const OT=["onChange"],jT={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LT(e){const{onChange:t}=e,n=te(e,OT),r=g.useRef(),o=g.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return $n(()=>{const l=jo(()=>{const a=r.current;i(),a!==r.current&&t(r.current)}),s=En(o.current);return s.addEventListener("resize",l),()=>{l.clear(),s.removeEventListener("resize",l)}},[t]),g.useEffect(()=>{i(),t(r.current)},[t]),m.jsx("div",x({style:jT,ref:o},n))}function AT(e){return ge("MuiTabScrollButton",e)}const FT=me("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),BT=FT,DT=["className","slots","slotProps","direction","orientation","disabled"],WT=e=>{const{classes:t,orientation:n,disabled:r}=e;return xe({root:["root",n,r&&"disabled"]},AT,t)},UT=D(Ur,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${BT.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),HT=g.forwardRef(function(t,n){var r,o;const i=be({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:a={},direction:u}=i,c=te(i,DT),h=gr().direction==="rtl",S=x({isRtl:h},i),b=WT(S),y=(r=s.StartScrollButtonIcon)!=null?r:MT,w=(o=s.EndScrollButtonIcon)!=null?o:_T,f=it({elementType:y,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),p=it({elementType:w,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return m.jsx(UT,x({component:"div",className:X(b.root,l),ref:n,role:null,ownerState:S,tabIndex:null},c,{children:u==="left"?m.jsx(y,x({},f)):m.jsx(w,x({},p))}))}),VT=HT;function KT(e){return ge("MuiTabs",e)}const GT=me("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hu=GT,qT=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nm=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,zm=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ll=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},YT=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:l,scrollButtonsHideMobile:s,classes:a}=e;return xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},KT,a)},QT=D("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hu.scrollButtons}`]:t.scrollButtons},{[`& .${Hu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Hu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),XT=D("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),ZT=D("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),JT=D("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),e3=D(LT,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Om={},t3=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiTabs"}),o=gr(),i=o.direction==="rtl",{"aria-label":l,"aria-labelledby":s,action:a,centered:u=!1,children:c,className:d,component:h="div",allowScrollButtonsMobile:S=!1,indicatorColor:b="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:f=VT,scrollButtons:p="auto",selectionFollowsFocus:v,slots:C={},slotProps:k={},TabIndicatorProps:$={},TabScrollButtonProps:E={},textColor:P="primary",value:N,variant:R="standard",visibleScrollbar:O=!1}=r,K=te(r,qT),B=R==="scrollable",I=w==="vertical",z=I?"scrollTop":"scrollLeft",W=I?"top":"left",U=I?"bottom":"right",T=I?"clientHeight":"clientWidth",L=I?"height":"width",F=x({},r,{component:h,allowScrollButtonsMobile:S,indicatorColor:b,orientation:w,vertical:I,scrollButtons:p,textColor:P,variant:R,visibleScrollbar:O,fixed:!B,hideScrollbar:B&&!O,scrollableX:B&&!I,scrollableY:B&&I,centered:u&&!B,scrollButtonsHideMobile:!S}),Y=YT(F),ne=it({elementType:C.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),se=it({elementType:C.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[ae,H]=g.useState(!1),[M,ce]=g.useState(Om),[fe,ve]=g.useState({start:!1,end:!1}),[Te,pe]=g.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,ue=g.useRef(null),ie=g.useRef(null),he=()=>{const _=ue.current;let V;if(_){const Se=_.getBoundingClientRect();V={clientWidth:_.clientWidth,scrollLeft:_.scrollLeft,scrollTop:_.scrollTop,scrollLeftNormalized:bh(_,o.direction),scrollWidth:_.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let de;if(_&&N!==!1){const Se=ie.current.children;if(Se.length>0){const Re=Se[oe.get(N)];de=Re?Re.getBoundingClientRect():null}}return{tabsMeta:V,tabMeta:de}},Oe=Ut(()=>{const{tabsMeta:_,tabMeta:V}=he();let de=0,Se;if(I)Se="top",V&&_&&(de=V.top-_.top+_.scrollTop);else if(Se=i?"right":"left",V&&_){const Et=i?_.scrollLeftNormalized+_.clientWidth-_.scrollWidth:_.scrollLeft;de=(i?-1:1)*(V[Se]-_[Se]+Et)}const Re={[Se]:de,[L]:V?V[L]:0};if(isNaN(M[Se])||isNaN(M[L]))ce(Re);else{const Et=Math.abs(M[Se]-Re[Se]),Rn=Math.abs(M[L]-Re[L]);(Et>=1||Rn>=1)&&ce(Re)}}),ye=(_,{animation:V=!0}={})=>{V?zT(z,ue.current,_,{duration:o.transitions.duration.standard}):ue.current[z]=_},Ve=_=>{let V=ue.current[z];I?V+=_:(V+=_*(i?-1:1),V*=i&&hv()==="reverse"?-1:1),ye(V)},kt=()=>{const _=ue.current[T];let V=0;const de=Array.from(ie.current.children);for(let Se=0;Se_){Se===0&&(V=_);break}V+=Re[T]}return V},ke=()=>{Ve(-1*kt())},_e=()=>{Ve(kt())},vt=g.useCallback(_=>{pe({overflow:null,scrollbarWidth:_})},[]),Ne=()=>{const _={};_.scrollbarSizeListener=B?m.jsx(e3,{onChange:vt,className:X(Y.scrollableX,Y.hideScrollbar)}):null;const V=fe.start||fe.end,de=B&&(p==="auto"&&V||p===!0);return _.scrollButtonStart=de?m.jsx(f,x({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ne},orientation:w,direction:i?"right":"left",onClick:ke,disabled:!fe.start},E,{className:X(Y.scrollButtons,E.className)})):null,_.scrollButtonEnd=de?m.jsx(f,x({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:w,direction:i?"left":"right",onClick:_e,disabled:!fe.end},E,{className:X(Y.scrollButtons,E.className)})):null,_},wt=Ut(_=>{const{tabsMeta:V,tabMeta:de}=he();if(!(!de||!V)){if(de[W]V[U]){const Se=V[z]+(de[U]-V[U]);ye(Se,{animation:_})}}}),A=Ut(()=>{if(B&&p!==!1){const{scrollTop:_,scrollHeight:V,clientHeight:de,scrollWidth:Se,clientWidth:Re}=ue.current;let Et,Rn;if(I)Et=_>1,Rn=_1,Rn=i?vr>1:vr{const _=jo(()=>{ue.current&&(Oe(),A())}),V=En(ue.current);V.addEventListener("resize",_);let de;return typeof ResizeObserver<"u"&&(de=new ResizeObserver(_),Array.from(ie.current.children).forEach(Se=>{de.observe(Se)})),()=>{_.clear(),V.removeEventListener("resize",_),de&&de.disconnect()}},[Oe,A]);const ee=g.useMemo(()=>jo(()=>{A()}),[A]);g.useEffect(()=>()=>{ee.clear()},[ee]),g.useEffect(()=>{H(!0)},[]),g.useEffect(()=>{Oe(),A()}),g.useEffect(()=>{wt(Om!==M)},[wt,M]),g.useImperativeHandle(a,()=>({updateIndicator:Oe,updateScrollButtons:A}),[Oe,A]);const le=m.jsx(JT,x({},$,{className:X(Y.indicator,$.className),ownerState:F,style:x({},M,$.style)}));let Z=0;const Q=g.Children.map(c,_=>{if(!g.isValidElement(_))return null;const V=_.props.value===void 0?Z:_.props.value;oe.set(V,Z);const de=V===N;return Z+=1,g.cloneElement(_,x({fullWidth:R==="fullWidth",indicator:de&&!ae&&le,selected:de,selectionFollowsFocus:v,onChange:y,textColor:P,value:V},Z===1&&N===!1&&!_.props.tabIndex?{tabIndex:0}:{}))}),q=_=>{const V=ie.current,de=nt(V).activeElement;if(de.getAttribute("role")!=="tab")return;let Re=w==="horizontal"?"ArrowLeft":"ArrowUp",Et=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&i&&(Re="ArrowRight",Et="ArrowLeft"),_.key){case Re:_.preventDefault(),Ll(V,de,zm);break;case Et:_.preventDefault(),Ll(V,de,Nm);break;case"Home":_.preventDefault(),Ll(V,null,Nm);break;case"End":_.preventDefault(),Ll(V,null,zm);break}},re=Ne();return m.jsxs(QT,x({className:X(Y.root,d),ownerState:F,ref:n,as:h},K,{children:[re.scrollButtonStart,re.scrollbarSizeListener,m.jsxs(XT,{className:Y.scroller,ownerState:F,style:{overflow:Te.overflow,[I?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Te.scrollbarWidth},ref:ue,onScroll:ee,children:[m.jsx(ZT,{"aria-label":l,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:F,onKeyDown:q,ref:ie,role:"tablist",children:Q}),ae&&le]}),re.scrollButtonEnd]}))}),n3=t3;function r3(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const o3=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],i3={standard:E1,filled:S1,outlined:I1},l3=e=>{const{classes:t}=e;return xe({root:["root"]},r3,t)},s3=D(C1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),a3=g.forwardRef(function(t,n){const r=be({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:s,color:a="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:S=!1,helperText:b,id:y,InputLabelProps:w,inputProps:f,InputProps:p,inputRef:v,label:C,maxRows:k,minRows:$,multiline:E=!1,name:P,onBlur:N,onChange:R,onClick:O,onFocus:K,placeholder:B,required:I=!1,rows:z,select:W=!1,SelectProps:U,type:T,value:L,variant:F="outlined"}=r,Y=te(r,o3),ne=x({},r,{autoFocus:i,color:a,disabled:c,error:d,fullWidth:S,multiline:E,required:I,select:W,variant:F}),se=l3(ne),ae={};F==="outlined"&&(w&&typeof w.shrink<"u"&&(ae.notched=w.shrink),ae.label=C),W&&((!U||!U.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const H=fv(y),M=b&&H?`${H}-helper-text`:void 0,ce=C&&H?`${H}-label`:void 0,fe=i3[F],ve=m.jsx(fe,x({"aria-describedby":M,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:S,multiline:E,name:P,rows:z,maxRows:k,minRows:$,type:T,value:L,id:H,inputRef:v,onBlur:N,onChange:R,onFocus:K,onClick:O,placeholder:B,inputProps:f},ae,p));return m.jsxs(s3,x({className:X(se.root,s),disabled:c,error:d,fullWidth:S,ref:n,required:I,color:a,variant:F,ownerState:ne},Y,{children:[C!=null&&C!==""&&m.jsx($1,x({htmlFor:H,id:ce},w,{children:C})),W?m.jsx(_1,x({"aria-describedby":M,id:H,labelId:ce,value:L,input:ve},U,{children:l})):ve,b&&m.jsx(DR,x({id:M},h,{children:b}))]}))}),Ro=a3;function u3(e){let t=e.lastComplete;const n=e.alertQty,r=e.alertUnits;let o;return n===null||r===null?null:(r==="month"?o=parseInt(n)*30:r==="week"?o=parseInt(n)*7:o=n,t=new Date(e.lastComplete),c3(t,o)>=new Date?(console.log("ahora",!0),!0):!1)}function c3(e,t){return e.setDate(e.getDate()+t),e}const jm=async()=>{const n=(await(await fetch("https://chronologica.onrender.com/api/getonetimetasks")).json()).map(r=>({id:r.id,name:r.name,icon:r.iconName,create:r.createdAt,alertQty:r.alertQty,alertUnits:r.alertUnits,lastComplete:r.completedDate,status:u3({lastComplete:r.completedDate,alertQty:r.alertQty,alertUnits:r.alertUnits})}));return console.log("esto es del APi",n),n};var Tf={},d3=mt;Object.defineProperty(Tf,"__esModule",{value:!0});var If=Tf.default=void 0,f3=d3(gt()),ui=m,p3=(0,f3.default)([(0,ui.jsx)("circle",{cx:"4.5",cy:"9.5",r:"2.5"},"0"),(0,ui.jsx)("circle",{cx:"9",cy:"5.5",r:"2.5"},"1"),(0,ui.jsx)("circle",{cx:"15",cy:"5.5",r:"2.5"},"2"),(0,ui.jsx)("circle",{cx:"19.5",cy:"9.5",r:"2.5"},"3"),(0,ui.jsx)("path",{d:"M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"},"4")],"Pets");If=Tf.default=p3;var Mf={},h3=mt;Object.defineProperty(Mf,"__esModule",{value:!0});var _f=Mf.default=void 0,m3=h3(gt()),Lm=m,g3=(0,m3.default)([(0,Lm.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 8.22c0-.86.7-1.56 1.56-1.56.33 0 .64.1.89.28l-.01-.12c0-.86.7-1.56 1.56-1.56s1.56.7 1.56 1.56l-.01.12c.26-.18.56-.28.89-.28.86 0 1.56.7 1.56 1.56 0 .62-.37 1.16-.89 1.4.52.25.89.79.89 1.41 0 .86-.7 1.56-1.56 1.56-.33 0-.64-.11-.89-.28l.01.12c0 .86-.7 1.56-1.56 1.56s-1.56-.7-1.56-1.56l.01-.12c-.26.18-.56.28-.89.28-.86 0-1.56-.7-1.56-1.56 0-.62.37-1.16.89-1.4C8.37 9.38 8 8.84 8 8.22zM12 19c-3.31 0-6-2.69-6-6 3.31 0 6 2.69 6 6 0-3.31 2.69-6 6-6 0 3.31-2.69 6-6 6z"},"0"),(0,Lm.jsx)("circle",{cx:"12",cy:"9.62",r:"1.56"},"1")],"Yard");_f=Mf.default=g3;var Nf={},v3=mt;Object.defineProperty(Nf,"__esModule",{value:!0});var zf=Nf.default=void 0,y3=v3(gt()),x3=m,b3=(0,y3.default)((0,x3.jsx)("path",{d:"M20.57 14.86 22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22l1.43-1.43L16.29 22l2.14-2.14 1.43 1.43 1.43-1.43-1.43-1.43L22 16.29z"}),"FitnessCenter");zf=Nf.default=b3;var Of={},S3=mt;Object.defineProperty(Of,"__esModule",{value:!0});var jf=Of.default=void 0,C3=S3(gt()),k3=m,w3=(0,C3.default)((0,k3.jsx)("path",{d:"m19 1-5 5v11l5-4.5V1zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6zm22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5v-1.1z"}),"AutoStories");jf=Of.default=w3;var Lf={},E3=mt;Object.defineProperty(Lf,"__esModule",{value:!0});var Af=Lf.default=void 0,$3=E3(gt()),R3=m,P3=(0,$3.default)((0,R3.jsx)("path",{d:"M6 3h12v2H6zm11 3H7c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-1 9h-2.5v2.5h-3V15H8v-3h2.5V9.5h3V12H16v3z"}),"Medication");Af=Lf.default=P3;var Ff={},T3=mt;Object.defineProperty(Ff,"__esModule",{value:!0});var js=Ff.default=void 0,I3=T3(gt()),M3=m,_3=(0,I3.default)((0,M3.jsx)("path",{d:"M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"}),"FreeBreakfast");js=Ff.default=_3;var Bf={},N3=mt;Object.defineProperty(Bf,"__esModule",{value:!0});var Df=Bf.default=void 0,z3=N3(gt()),Am=m,O3=(0,z3.default)([(0,Am.jsx)("circle",{cx:"12",cy:"6",r:"2"},"0"),(0,Am.jsx)("path",{d:"M21 16v-2c-2.24 0-4.16-.96-5.6-2.68l-1.34-1.6c-.38-.46-.94-.72-1.53-.72h-1.05c-.59 0-1.15.26-1.53.72l-1.34 1.6C7.16 13.04 5.24 14 3 14v2c2.77 0 5.19-1.17 7-3.25V15l-3.88 1.55c-.67.27-1.12.93-1.12 1.66C5 19.2 5.8 20 6.79 20H9v-.5c0-1.38 1.12-2.5 2.5-2.5h3c.28 0 .5.22.5.5s-.22.5-.5.5h-3c-.83 0-1.5.67-1.5 1.5v.5h7.21c.99 0 1.79-.8 1.79-1.79 0-.73-.45-1.39-1.12-1.66L14 15v-2.25c1.81 2.08 4.23 3.25 7 3.25z"},"1")],"SelfImprovement");Df=Bf.default=O3;var Wf={},j3=mt;Object.defineProperty(Wf,"__esModule",{value:!0});var Uf=Wf.default=void 0,L3=j3(gt()),A3=m,F3=(0,L3.default)((0,A3.jsx)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}),"LocalAtm");Uf=Wf.default=F3;var Hf={},B3=mt;Object.defineProperty(Hf,"__esModule",{value:!0});var Vf=Hf.default=void 0,D3=B3(gt()),W3=m,U3=(0,D3.default)((0,W3.jsx)("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3 1 9l11 6 9-4.91V17h2V9L12 3z"}),"School");Vf=Hf.default=U3;var Kf={},H3=mt;Object.defineProperty(Kf,"__esModule",{value:!0});var Gf=Kf.default=void 0,V3=H3(gt()),K3=m,G3=(0,V3.default)((0,K3.jsx)("path",{d:"M21 12V6c0-1.1-.9-2-2-2h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V10h14v2h2zm-5.36 8c.43 1.45 1.77 2.5 3.36 2.5 1.93 0 3.5-1.57 3.5-3.5s-1.57-3.5-3.5-3.5c-.95 0-1.82.38-2.45 1H18V18h-4v-4h1.5v1.43c.9-.88 2.14-1.43 3.5-1.43 2.76 0 5 2.24 5 5s-2.24 5-5 5c-2.42 0-4.44-1.72-4.9-4h1.54z"}),"EventRepeat");Gf=Kf.default=G3;var qf={},q3=mt;Object.defineProperty(qf,"__esModule",{value:!0});var Yf=qf.default=void 0,Y3=q3(gt()),Q3=m,X3=(0,Y3.default)((0,Q3.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"LocalPhone");Yf=qf.default=X3;var Qf={},Z3=mt;Object.defineProperty(Qf,"__esModule",{value:!0});var Xf=Qf.default=void 0,J3=Z3(gt()),e4=m,t4=(0,J3.default)((0,e4.jsx)("path",{d:"M21 7h-1V6h-2v1h-1c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h4c.55 0 1-.45 1-1V8c0-.55-.45-1-1-1zM8 6c-3.31 0-6 2.69-6 6v4c0 1.1.9 2 2 2h2v-5H3.5v-1c0-2.48 2.02-4.5 4.5-4.5s4.5 2.02 4.5 4.5v1H10v5h2c1.1 0 2-.9 2-2v-4c0-3.31-2.69-6-6-6z"}),"HeadphonesBattery");Xf=Qf.default=t4;var Zf={},n4=mt;Object.defineProperty(Zf,"__esModule",{value:!0});var Jf=Zf.default=void 0,r4=n4(gt()),o4=m,i4=(0,r4.default)((0,o4.jsx)("path",{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"}),"EditNote");Jf=Zf.default=i4;var ep={},l4=mt;Object.defineProperty(ep,"__esModule",{value:!0});var tp=ep.default=void 0,s4=l4(gt()),a4=m,u4=(0,s4.default)((0,a4.jsx)("path",{d:"M22 7h-9v2h9V7zm0 8h-9v2h9v-2zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 11zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 19z"}),"Checklist");tp=ep.default=u4;var np={},c4=mt;Object.defineProperty(np,"__esModule",{value:!0});var rp=np.default=void 0,d4=c4(gt()),f4=m,p4=(0,d4.default)((0,f4.jsx)("path",{d:"m3 2 2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33-11H5.67l-.44-4h13.53l-.43 4z"}),"LocalDrink");rp=np.default=p4;function h4({icon:e}){return m.jsxs(m.Fragment,{children:[e==="PetsIcon"&&m.jsx(If,{fontSize:"large"}),e==="YardIcon"&&m.jsx(_f,{fontSize:"large"}),e==="FitnessCenterIcon"&&m.jsx(zf,{fontSize:"large"}),e==="AutoStoriesIcon"&&m.jsx(jf,{fontSize:"large"}),e==="MedicationIcon"&&m.jsx(Af,{fontSize:"large"}),e==="FreeBreakfastIcon"&&m.jsx(js,{fontSize:"large"}),e==="SelfImprovementIcon"&&m.jsx(Df,{fontSize:"large"}),e==="LocalAtmIcon"&&m.jsx(Uf,{fontSize:"large"}),e==="SchoolIcon"&&m.jsx(Vf,{fontSize:"large"}),e==="EventRepeatIcon"&&m.jsx(Gf,{fontSize:"large"}),e==="LocalPhoneIcon"&&m.jsx(Yf,{fontSize:"large"}),e==="HeadphonesBatteryIcon"&&m.jsx(Xf,{fontSize:"large"}),e==="EditNoteIcon"&&m.jsx(Jf,{fontSize:"large"}),e==="ChecklistIcon"&&m.jsx(tp,{fontSize:"large"}),e==="LocalDrinkIcon"&&m.jsx(rp,{fontSize:"large"})]})}function m4({name:e,icon:t,id:n,taskStatus:r,onClickIcon:o}){return m.jsx(m.Fragment,{children:m.jsxs(Bn,{alignItems:"center",justifyContent:"center",component:"li",sx:{m:2},children:[m.jsx(xR,{color:r,sx:{},badgeContent:" ",variant:"dot",children:m.jsx(x1,{color:"secondary",onClick:o,children:m.jsx(h4,{icon:t})})}),m.jsx(dt,{color:"#00000099",sx:{mt:2},children:e})]})})}function g4(e){return fetch("https://chronologica.onrender.com/api/addonetaskchecked",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:e})}).then(t=>t.json()).then(t=>(console.log("API",t),t))}function v4(){const[e,t]=g.useState([]);g.useEffect(()=>{jm().then(i=>{t(i),console.log("oneTimeList",i)})},[]);const n=i=>{console.log(i.target)},r=i=>{if(i===!1)return"error";if(i===!0)return"success";if(i===null)return"outline"},o=i=>{g4(i).then(()=>{jm().then(l=>{t(l),console.log("oneTimeList",l)})})};return console.log(e),m.jsxs(m.Fragment,{children:[m.jsx(Bn,{component:"ul",direction:"row",justifyContent:"space-evenly",flexWrap:"wrap",sx:{mx:7},children:e.map(i=>m.jsx(m4,{id:i.id,name:i.name,icon:i.icon,onClickIcon:()=>{o(i.id)},taskStatus:r(i.status)},i.id))}),m.jsx(Bn,{alignItems:"center",sx:{mt:10},children:m.jsx(Hr,{variant:"contained",onClick:n,children:m.jsx(Ha,{style:{textDecorationLine:"none"},to:"/addonetimetask",children:m.jsx(dt,{sx:{color:"white"},children:" Añadir Tarea"})})})})]})}const y4=async()=>(await(await fetch("https://chronologica.onrender.com/api/tracktasklist")).json()).map(r=>({id:r.id,name:r.nameTask,color:r.color,estimatedTime:r.estimatedTime}));var op={},x4=mt;Object.defineProperty(op,"__esModule",{value:!0});var z1=op.default=void 0,b4=x4(gt()),S4=m,C4=(0,b4.default)((0,S4.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");z1=op.default=C4;function Fm(e){fetch(`${{}.CHRONOLOGICA_API}/api/addTimeTrack`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>(console.log("API",t),t))}const Bm=async e=>{const n=await(await fetch(`https://chronologica.onrender.com/api/allTracks/${e}`)).json(),r=n[0].startTime;return console.log("tiempo",r),{color:n[0].color,nameTask:n[0].nameTask,startTime:n[0].startTime,stopTime:n[0].stopTime}};function k4({id:e,nameTask:t,color:n,estimatedTime:r,totalTime:o}){const[i,l]=g.useState("play"),[s,a]=g.useState("▶ Iniciar trabajo"),[u,c]=g.useState({}),[d,h]=g.useState({}),[S,b]=g.useState(""),[y,w]=g.useState("");console.log("DIFFF",y);const f=p=>i==="play"?(l("stop"),Fm({clicked:"start",idTimeTrack:p}),Bm(p).then(v=>{h(v);const k=new Date(v.startTime).getTime();b(k),w(new Date(+new Date-S)),c({hours:"00",minutes:"00",seconds:"00"})}),a("▢ Detener trabajo")):(l("play"),Fm({clicked:"stop",idTimeTrack:p}),Bm().then(v=>{}),a("▶ Iniciar trabajo"));return m.jsx(m.Fragment,{children:m.jsxs(z$,{children:[m.jsxs(Y$,{expandIcon:m.jsx(z1,{}),id:e,children:[m.jsx(Pa,{variant:"outlined",sx:{width:10,backgroundColor:n}}),m.jsx(dt,{sx:{fontWeight:"bold",width:"33%",flexShrink:0,ml:1,mt:.5},children:t}),m.jsxs(Hr,{onClick:()=>{f(e)},children:[" ",s]})]}),m.jsxs(B$,{sx:{backgroundColor:"#F6F4F8"},children:[m.jsxs(dt,{children:["Tiempo estimado finalización tarea: ",r]}),m.jsxs(dt,{children:["Tiempo restante: ",r-o]}),m.jsxs(dt,{children:["Tiempo de trabajo: ",o]}),m.jsx(Bn,{alignItems:"flex-end",justifyContent:"center",spacing:5,children:m.jsxs(dt,{children:[u.hours,": ",u.minutes,":",u.seconds]})})]})]})})}function w4(){const[e,t]=g.useState([]);return console.log("listas de tareasm",e),g.useEffect(()=>{y4().then(n=>{t(n)})},[]),m.jsxs(m.Fragment,{children:[e.map(n=>m.jsx(k4,{id:n.id,nameTask:n.name,color:n.color,estimatedTime:n.estimatedTime,totalTime:n.totalTime},n.id)),m.jsx(Bn,{alignItems:"center",sx:{mt:10},children:m.jsx(Hr,{variant:"contained",children:m.jsx(Ha,{style:{textDecorationLine:"none"},to:"/addtrackedtask",children:m.jsx(dt,{sx:{color:"white"},children:"Añadir Tarea"})})})})]})}function E4(){const[e,t]=g.useState(0),n=(r,o)=>{t(o)};return m.jsx(m.Fragment,{children:m.jsxs(Ht,{sx:{width:"100%"},children:[m.jsx(Ht,{sx:{mb:5,borderBottom:1,borderColor:"divider"},children:m.jsxs(n3,{value:e,onChange:n,children:[m.jsx(_m,{label:"One Time Tasks"}),m.jsx(_m,{label:"Tracked Time Tasks"})]})}),e===0?m.jsx(v4,{}):m.jsx(w4,{})]})})}const $4="linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(135deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(135deg, transparent 75%, #ccc 75%) /*! @noflip */",R4="linear-gradient(to top, #000000, transparent), linear-gradient(to right, #ffffff, transparent) /*! @noflip */",P4={Button:D(Hr)(()=>({backgroundSize:"8px 8px",backgroundPosition:"0 0, 4px 0, 4px -4px, 0px 4px",transition:"none",boxShadow:"0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08)",border:0,borderRadius:4,width:"24px",aspectRatio:"1 / 1",height:"24px",minWidth:0}))},T4=e=>{const{bgColor:t,className:n,disablePopover:r,isBgColorValid:o,...i}=e;return m.jsx(P4.Button,{disableTouchRipple:!0,style:{backgroundColor:o?t:void 0,backgroundImage:o?void 0:$4,cursor:r?"default":void 0},className:`MuiColorInput-Button ${n||""}`,...i})},I4={Container:D("div")(()=>({width:300,padding:8}))},M4=({children:e,className:t,position:n="start",...r})=>m.jsx(t1,{className:`MuiColorInput-Popover ${t||""}`,anchorOrigin:{vertical:"bottom",horizontal:n==="start"?"left":"right"},transformOrigin:{vertical:"top",horizontal:n==="start"?"left":"right"},...r,children:m.jsx(I4.Container,{children:e})}),_4={Slider:D(N1,{shouldForwardProp:e=>e!=="$rgbaFrom"&&e!=="$rgbaTo"})(()=>({height:8,"& .MuiSlider-rail":{opacity:1,background:"linear-gradient(to right, rgba(var(--rgb-r), var(--rgb-g), var(--rgb-b), 0) 0%, rgba(var(--rgb-r), var(--rgb-g), var(--rgb-b), 1) 100%)"},"& .MuiSlider-track":{color:"transparent",border:0},"& .MuiSlider-thumb":{backgroundColor:"#ffffff",border:"3px solid currentColor"}}))},N4=e=>{const{rgbColor:t,style:n,className:r,...o}=e,i={"--rgb-r":t.r,"--rgb-g":t.g,"--rgb-b":t.b,...n};return m.jsx(_4.Slider,{className:`MuiColorInput-AlphaSlider ${r||""}`,style:i,...o})},Al={up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight"},z4={ArrowUp:{type:"hsvV",value:1},ArrowDown:{type:"hsvV",value:-1},ArrowLeft:{type:"hsvS",value:-1},ArrowRight:{type:"hsvS",value:1}};function O4(e){return e===Al.up||e===Al.down||e===Al.left||e===Al.right}function Ls(e,t,n){return Math.max(t,Math.min(e,n))}function Dm(e){return typeof e=="number"}function Wm(e,t,n){const r=e.toLocaleString("en",{useGrouping:!1,minimumFractionDigits:t,maximumFractionDigits:n});return Number(r)}function j4(e,t,n){const r=e.getBoundingClientRect(),o=t-r.left,i=n-r.top;return{x:Ls(o/r.width,0,1),y:Ls(1-i/r.height,0,1)}}function L4(e){const t=je.useRef();return t.current=e,je.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}const Um={Space:D("div")(()=>({width:"100%",height:"180px",boxSizing:"border-box",outline:0,position:"relative",backgroundImage:R4})),Thumb:D("div")(()=>({position:"absolute",border:"3px solid #ffffff",borderRadius:"50%",width:"20px",height:"20px",marginLeft:"-10px /*! @noflip */",marginBottom:"-10px /*! @noflip */",outline:0,boxSizing:"border-box",willChange:"left, bottom",transition:"box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{boxShadow:"0px 0px 0px 4px rgba(255 255 255 / 0.16)"},"&.MuiColorInput-Thumb-active":{boxShadow:"0px 0px 0px 8px rgba(255 255 255 / 0.16)"},"@media (hover: none)":{boxShadow:"none"}}))},A4=e=>{const{hsv:t,onChange:n,currentHue:r}=e,o=je.useRef(!1),i=je.useRef(null),[l,s]=je.useState(!1),a=L4((y,w)=>{if(!i.current)return;const{x:f,y:p}=j4(i.current,y,w);n({s:f,v:p}),i.current&&document.activeElement!==i.current&&i.current.focus()}),u=je.useCallback(()=>{o.current&&(o.current=!1,s(!1))},[]),c=je.useCallback(y=>{o.current&&a(y.clientX,y.clientY)},[]);je.useEffect(()=>(document.addEventListener("pointermove",c,!1),document.addEventListener("pointerup",u,!1),()=>{document.removeEventListener("pointermove",c,!1),document.removeEventListener("pointerup",u,!1)}),[u,c]);const d=y=>{y.preventDefault(),o.current=!0,a(y.clientX,y.clientY),s(!0)},h=y=>{if(O4(y.key)){y.preventDefault();const{type:w,value:f}=z4[y.key],p=y.shiftKey?10:1,v=w==="hsvS"?t.s:t.v,C=Ls(v+f*p*.01,0,1);s(!0),n({s:w==="hsvS"?C:t.s,v:w==="hsvV"?C:t.v})}},S=t.s*100,b=t.v*100;return m.jsx(Um.Space,{onPointerDown:d,ref:i,className:"MuiColorInput-ColorSpace",style:{backgroundColor:`hsl(${r} 100% 50%)`,touchAction:"none"},role:"slider","aria-valuetext":`Saturation ${Wm(S,0,0)}%, Brightness ${Wm(b,0,0)}%`,onKeyDown:h,tabIndex:0,children:m.jsx(Um.Thumb,{"aria-label":"Color space thumb",className:l?"MuiColorInput-Thumb-active":"",style:{left:`${S}%`,bottom:`${b}%`}})})},F4={Slider:D(N1)(()=>({height:8,"& .MuiSlider-rail":{opacity:1,background:"linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%) /*! @noflip */"},"& .MuiSlider-track":{color:"transparent",border:0},"& .MuiSlider-thumb":{backgroundColor:"#ffffff",border:"3px solid currentColor"}}))},B4=e=>{const{className:t,...n}=e;return m.jsx(F4.Slider,{className:`MuiColorInput-HueSlider ${t||""}`,...n})};function pt(e,t){D4(e)&&(e="100%");var n=W4(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Fl(e){return Math.min(1,Math.max(0,e))}function D4(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function W4(e){return typeof e=="string"&&e.indexOf("%")!==-1}function O1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Tr(e){return e.length===1?"0"+e:String(e)}function U4(e,t,n){return{r:pt(e,255)*255,g:pt(t,255)*255,b:pt(n,255)*255}}function Hm(e,t,n){e=pt(e,255),t=pt(t,255),n=pt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var a=r-o;switch(l=s>.5?a/(2-r-o):a/(r+o),r){case e:i=(t-n)/a+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function H4(e,t,n){var r,o,i;if(e=pt(e,360),t=pt(t,100),n=pt(n,100),t===0)o=n,i=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Vu(s,l,e+1/3),o=Vu(s,l,e),i=Vu(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Vm(e,t,n){e=pt(e,255),t=pt(t,255),n=pt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=r,s=r-o,a=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var nd={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Y4(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Z4(e)),typeof e=="object"&&(Tn(e.r)&&Tn(e.g)&&Tn(e.b)?(t=U4(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tn(e.h)&&Tn(e.s)&&Tn(e.v)?(r=Bl(e.s),o=Bl(e.v),t=V4(e.h,r,o),l=!0,s="hsv"):Tn(e.h)&&Tn(e.s)&&Tn(e.l)&&(r=Bl(e.s),i=Bl(e.l),t=H4(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=O1(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Q4="[-\\+]?\\d+%?",X4="[-\\+]?\\d*\\.\\d+%?",Jn="(?:".concat(X4,")|(?:").concat(Q4,")"),Ku="[\\s|\\(]+(".concat(Jn,")[,|\\s]+(").concat(Jn,")[,|\\s]+(").concat(Jn,")\\s*\\)?"),Gu="[\\s|\\(]+(".concat(Jn,")[,|\\s]+(").concat(Jn,")[,|\\s]+(").concat(Jn,")[,|\\s]+(").concat(Jn,")\\s*\\)?"),sn={CSS_UNIT:new RegExp(Jn),rgb:new RegExp("rgb"+Ku),rgba:new RegExp("rgba"+Gu),hsl:new RegExp("hsl"+Ku),hsla:new RegExp("hsla"+Gu),hsv:new RegExp("hsv"+Ku),hsva:new RegExp("hsva"+Gu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Z4(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(nd[e])e=nd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=sn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sn.hex8.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),a:Gm(n[4]),format:t?"name":"hex8"}:(n=sn.hex6.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),format:t?"name":"hex"}:(n=sn.hex4.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),a:Gm(n[4]+n[4]),format:t?"name":"hex8"}:(n=sn.hex3.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Tn(e){return!!sn.CSS_UNIT.exec(String(e))}var er=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=q4(t)),this.originalInput=t;var o=Y4(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=O1(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Vm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Vm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Hm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Hm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Km(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),K4(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(pt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(pt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Km(this.r,this.g,this.b,!1),n=0,r=Object.entries(nd);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Fl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Fl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Fl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Fl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,l=1;l{const{currentColor:t,format:n,onChange:r,isAlphaHidden:o}=e,[i,l]=je.useState(t.toHsv()),s=(c,d)=>{if(!Dm(d))return;const h=Ls(360*d/100,0,359);l(b=>({...b,h}));const S=new er({...i,a:t.toHsv().a,h});r==null||r(Po(S,n))},a=(c,d)=>{if(!Dm(d))return;const h=t.clone().setAlpha(d);r==null||r(Po(h,n))},u=({s:c,v:d})=>{const h=new er({h:i.h,a:t.toHsv().a,s:c,v:d});l(S=>({...S,s:c,v:d})),r==null||r(Po(h,n))};return m.jsxs(Ht,{className:"MuiColorInput-PopoverBody",children:[m.jsx(A4,{currentHue:i.h,hsv:i,onChange:u}),m.jsx(Ht,{mt:"10px",px:"3px",children:m.jsx(B4,{min:0,max:100,step:1,onChange:s,"aria-label":"hue",value:i.h*100/360})}),o?null:m.jsx(Ht,{mt:"10px",px:"3px",children:m.jsx(N4,{min:0,max:1,step:.01,"aria-label":"alpha",rgbColor:t.toRgb(),onChange:a,value:t.getAlpha()})})]})},nI=je.forwardRef((e,t)=>{const{className:n,...r}=e;return m.jsx(Ro,{className:`MuiColorInput-TextField ${n||""}`,ref:t,...r})}),rI="black",oI="rgb";function iI(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function Ym(e,t){typeof t=="function"?t(e):t&&iI(t)&&"current"in t&&(t.current=e)}const lI=je.forwardRef((e,t)=>{const{value:n,format:r,onChange:o,adornmentPosition:i="start",PopoverProps:l,Adornment:s=T4,fallbackValue:a,isAlphaHidden:u,disablePopover:c,...d}=e,{onBlur:h,InputProps:S,...b}=d,{onClose:y,...w}=l||{},f=a||rI,p=b.disabled||(S==null?void 0:S.disabled)||!1,v=je.useRef(null),C=je.useRef(null),[k,$]=je.useState(null),E=r||oI,P=qm(n,f,{format:E}),[N,R]=je.useState(n),[O,K]=je.useState(n),B=H=>{H.preventDefault(),H.stopPropagation(),!p&&!c&&$(v.current)},I=H=>{const M=new er(H);o==null||o(H,{hex:M.isValid?M.toHexString():"",hsv:M.isValid?M.toHsvString():"",hsl:M.isValid?M.toHslString():"",rgb:M.isValid?M.toRgbString():"",hex8:M.isValid?M.toHex8String():""})},z=H=>{const M=H.target.value;if(R(M),M==="")K(""),I("");else{const ce=new er(M),fe=Po(ce,E);K(fe),I(fe)}},W=(...H)=>{y==null||y(...H),$(null),queueMicrotask(()=>{var M;(M=C.current)==null||M.focus()})},U=H=>{h==null||h(H);const M=new er(N);if(M.isValid)M.format!==E&&R(Po(M,E));else{if(N==="")return;const ce=new er(f),fe=Po(ce,E);R(fe),K(fe),I(fe)}};je.useEffect(()=>{if(n!==O){const H=qm(n).originalInput;K(H),R(H)}},[n,O,f]);const T=H=>{R(H),K(H),I(H)},L=H=>{v.current=H,t&&Ym(H,t)},F=H=>{C.current=H,C&&Ym(H,C)},Y=!!k,ne=Y?"color-popover":void 0,se=m.jsx(kP,{position:i,children:m.jsx(s,{disabled:p,"aria-describedby":ne,disablePopover:c||!1,component:c?"span":void 0,bgColor:P.toString(),isBgColorValid:!!(N!==""&&P.isValid),onClick:c?void 0:B})}),ae=i==="start"?{startAdornment:se}:{endAdornment:se};return m.jsxs(m.Fragment,{children:[m.jsx(nI,{ref:L,spellCheck:"false",type:"text",autoComplete:"off",onChange:z,value:eI(N),onBlur:U,inputRef:F,disabled:p,InputProps:{...ae,...S},...b}),c?null:m.jsx(M4,{id:ne,open:Y,position:i,anchorEl:k,onClose:W,...w,children:m.jsx(tI,{onChange:T,currentColor:P,format:E,isAlphaHidden:u})})]})});function sI(e){fetch("https://chronologica.onrender.com/api/addtracktask",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>(console.log("API",t),t))}function aI(){const[e,t]=g.useState("#ffffff"),[n,r]=g.useState(0),[o,i]=g.useState(0),[l,s]=g.useState(""),a=parseInt(o)*60,u=parseInt(n),c=a+u;console.log("total",c);const d=f=>{s(f.target.value)},h=f=>{t(f)},S=f=>{let p=parseInt(f.target.value);p<0&&(p=0),i(p)},b=f=>{let p=parseInt(f.target.value);p>59?p=59:p<0&&(p=0),r(p)},y={nameTask:l,color:e,estimatedTime:c},w=()=>{sI(y).then(f=>f)};return m.jsxs(m.Fragment,{children:[m.jsx(Ht,{component:"form",sx:{m:4},children:m.jsx(Ro,{id:"outlined-basic",label:"Nombre de la Tarea",variant:"outlined",value:l,onChange:d})}),m.jsxs(Ht,{sx:{m:4},children:[m.jsx(dt,{sx:{mb:3},children:"Elige su color:"}),m.jsx(lI,{value:e,onChange:h})]}),m.jsxs(Ht,{sx:{m:4},children:[m.jsx(dt,{sx:{mb:3},children:"Tiempo estimado en acabarla:"}),m.jsxs(Bn,{direction:"row",spacing:2,alignItems:"center",children:[m.jsx(Ro,{id:"filled-basic",label:"Horas",variant:"filled",type:"number",value:o,onChange:S,sx:{width:100}}),m.jsx(dt,{children:":"}),m.jsx(Ro,{id:"filled-basic",label:"Minutos",variant:"filled",type:"number",value:n,onChange:b,sx:{width:100}})]})]}),m.jsx(Bn,{alignItems:"flex-end",children:m.jsx(Ha,{to:"/",children:m.jsx(Hr,{variant:"outlined",sx:{m:4},onClick:w,children:"Añadir tarea"})})})]})}function uI(e){return fetch(`${{}.CHRONOLOGICA_API}/api/addonetask`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json()).then(t=>(console.log("API",t),t))}function cI(){const[e,t]=g.useState(""),[n,r]=g.useState(""),[o,i]=g.useState(""),[l,s]=g.useState(""),a=[{id:"PetsIcon",state:!0},{id:"YardIcon",state:!0},{id:"AutoStoriesIcon",state:!0},{id:"MedicationIcon",state:!0},{id:"FreeBreakfastIcon",state:!0},{id:"SelfImprovementIcon",state:!0},{id:"SchoolIcon",state:!0},{id:"EventRepeatIcon",state:!0},{id:"LocalPhoneIcon",state:!0},{id:"HeadphonesBatteryIcon",state:!0},{id:"EditNoteIcon",state:!0},{id:"ChecklistIcon",state:!0},{id:"LocalDrinkIcon",state:!0}],u={name:e,iconName:n,alertQty:l,alertUnits:o},c=f=>t(f.target.value),d=f=>i(f.target.value),h=()=>{console.log(u),uI(u).then(f=>(console.log(f),f))},S=f=>{s(f.target.value)},b=f=>{const p=f.currentTarget.id;r(p)},y=f=>n===f.id?"primary":"default",w=()=>a.map((f,p)=>m.jsx(Em,{id:f.id,item:!0,xs:0,children:m.jsx(x1,{id:f.id,onClick:b,color:y(f),children:f.id==="PetsIcon"?m.jsx(If,{fontSize:"large"}):f.id==="LocalDrinkIcon"?m.jsx(rp,{fontSize:"large"}):f.id==="ChecklistIcon"?m.jsx(tp,{fontSize:"large"}):f.id==="EditNoteIcon"?m.jsx(Jf,{fontSize:"large"}):f.id==="YardIcon"?m.jsx(_f,{fontSize:"large"}):f.id==="FitnessCenterIcon"?m.jsx(zf,{fontSize:"large"}):f.id==="AutoStoriesIcon"?m.jsx(jf,{fontSize:"large"}):f.id==="MedicationIcon"?m.jsx(Af,{fontSize:"large"}):f.id==="FreeBreakfastIcon"?m.jsx(js,{fontSize:"large"}):f.id==="SelfImprovementIcon"?m.jsx(Df,{fontSize:"large"}):f.id==="LocalAtmIcon"?m.jsx(Uf,{fontSize:"large"}):f.id==="SchoolIcon"?m.jsx(Vf,{fontSize:"large"}):f.id==="EventRepeatIcon"?m.jsx(Gf,{fontSize:"large"}):f.id==="LocalPhoneIcon"?m.jsx(Yf,{fontSize:"large"}):f.id==="HeadphonesBatteryIcon"?m.jsx(Xf,{fontSize:"large"}):f.id==="FreeBreakfastIcon"?m.jsx(js,{fontSize:"large"}):""},p)},p));return m.jsxs(m.Fragment,{children:[m.jsx(Ht,{component:"form",sx:{m:4},autoComplete:"off",children:m.jsx(Ro,{id:"outlined-basic",label:"Nombre de la Tarea",variant:"outlined",value:e,onChange:c,fullWidth:!0,sx:{maxWidth:"50ch"}})}),m.jsx(dt,{variant:"body1",sx:{mt:4,ml:4},children:"Selecciona un icono:"}),m.jsx(Bn,{component:"ul",sx:{mr:15},children:m.jsx(Em,{container:!0,spacing:3,direction:"row",flexWrap:"wrap",sx:{mx:1,mt:4},component:"li",children:w()})}),m.jsx(dt,{variant:"body1",sx:{mt:8,ml:4},children:"Selecciona la frecuencia en la que deseas realizar la tarea:"}),m.jsx(Ro,{id:"standard-basic",label:"Cantidad de:",variant:"standard",value:l,onChange:S,sx:{m:4,minWidth:120}}),m.jsxs(C1,{variant:"standard",sx:{m:4,minWidth:120},children:[m.jsx($1,{id:"demo-simple-select-standard-label",children:"Frecuencia"}),m.jsxs(_1,{labelId:"demo-simple-select-standard-label",id:"demo-simple-select-standard",value:o,onChange:d,label:"Frecuencia",children:[m.jsx(mi,{value:"",children:m.jsx("em",{children:"None"})}),m.jsx(mi,{value:"day",children:"Días"}),m.jsx(mi,{value:"week",children:"Semanas"}),m.jsx(mi,{value:"month",children:"Meses"})]})]}),m.jsx(Bn,{alignItems:"flex-end",children:m.jsx(Ha,{to:"/",children:m.jsx(Hr,{variant:"outlined",sx:{m:4},onClick:h,children:"Añadir tarea"})})})]})}function dI(){const e=Date.now(),t=new Date(e);return console.log(t),m.jsxs(m.Fragment,{children:[m.jsx("h1",{children:"Tu reloj de confianza: "}),m.jsx("br",{}),m.jsxs("ol",{children:[m.jsxs("li",{children:["----ToLocaleTimeString:",m.jsx("p",{children:t.toLocaleTimeString()})]}),m.jsx("br",{}),m.jsxs("li",{children:[" ----To time string:",m.jsx("p",{children:t.toTimeString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toDateString: ",m.jsx("p",{children:t.toDateString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toLocaleDateString:",m.jsx("p",{children:t.toLocaleDateString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toLocaleString: ",m.jsx("p",{children:t.toLocaleString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toString: ",m.jsx("p",{children:t.toString()})]}),m.jsx("br",{}),m.jsxs("li",{children:["----toUTCString: ",m.jsx("p",{children:t.toUTCString()})]})]})]})}function fI(){const[e,t]=g.useState(0);console.log("example2 arranca",e);function n(){t(e+1)}function r(){t(e-1)}return g.useEffect(()=>{const o=e;console.log("se ha ejecutado UseEffect"),setInterval(()=>{console.log("interval",o),t(i=>(console.log("increment + 1 ",i),i+1))},1e4)},[]),m.jsxs(m.Fragment,{children:[m.jsx("h1",{}),m.jsxs("p",{children:["numero: ",e]}),m.jsx("button",{onClick:n,children:"+"}),m.jsx("button",{onClick:r,children:"-"})]})}function pI(){return m.jsx(m.Fragment,{children:m.jsxs(m$,{children:[m.jsx(x$,{}),m.jsxs(u$,{children:[m.jsx(ro,{path:"/",element:m.jsx(E4,{})}),m.jsx(ro,{path:"/addtrackedtask",element:m.jsx(aI,{})}),m.jsx(ro,{path:"/addonetimetask",element:m.jsx(cI,{})}),m.jsx(ro,{path:"/Example",element:m.jsx(dI,{})}),m.jsx(ro,{path:"/Example2",element:m.jsx(fI,{})})]})]})})}const hI=gf({typography:{fontFamily:"Raleway variable"},palette:{type:"light",primary:{main:"#6750A4"},secondary:{main:"#625B71"},secondary_container:{main:"#E8DEF8"},tertiary:{main:"#7D5260"},success:{main:"#81c784"},error:{main:"#B3261E"},background:{main:"#FFFBFE"},onbackground:{main:"#1C1B1F"},outline:{main:"#79747E"},warning:{main:"#e8c85f"}}});qu.createRoot(document.getElementById("root")).render(m.jsx(ew,{theme:hI,children:m.jsx(pI,{})})); diff --git a/docs/index.html b/docs/index.html index 5460564..7a76059 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ Vite + React - +