diff --git a/src/frontend/dist/assets/chat-B2WH5BM1.js b/src/frontend/dist/assets/chat-ClPaG14_.js similarity index 99% rename from src/frontend/dist/assets/chat-B2WH5BM1.js rename to src/frontend/dist/assets/chat-ClPaG14_.js index 075a3d7e..b3956a07 100644 --- a/src/frontend/dist/assets/chat-B2WH5BM1.js +++ b/src/frontend/dist/assets/chat-ClPaG14_.js @@ -1,4 +1,4 @@ -import{a as A,g as N,r as x,u as H,j as a,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ne,p as le}from"./index-LpWXPQo4.js";import{i as Z,b as qe,c as ie,F as $e,u as re,f as te,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-HR9QJcmZ.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:r,margin:t,fullWidth:o}=e,s={root:["root",t!=="none"&&`margin${z(t)}`,o&&"fullWidth"]};return U(s,Oe,r)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`margin${z(t.margin)}`],t.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...y}=o,P={...o,color:i,component:p,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:u,variant:c},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=m!==void 0&&!n?m:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:c}),[F,i,n,d,E,O,b,h,B,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:P,className:W(G.root,l),ref:t,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:r,contained:t,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,t&&"contained",p&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,r)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size&&r[`size${z(t.size)}`],t.contained&&r.contained,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:b,required:h,variant:g,...f}=o,u=re(),c=te({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:t,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:r,color:t,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(t)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,r)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color==="secondary"&&r.colorSecondary,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([r])=>({props:{color:r},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),er=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:b,required:h,...g}=o,f=re(),u=te({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},y=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:W(y.root,l),ref:t,...g,children:[s,u.required&&a.jsxs(er,{ownerState:c,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function tr(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const or=e=>{const{classes:r,formControl:t,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",t&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=U(n,tr,r);return{...r,...d}},sr=T(rr,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[{[`& .${$.asterisk}`]:r.asterisk},r.root,t.formControl&&r.formControl,t.size==="small"&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,t.focused&&r.focused,r[t.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="filled"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:t,size:o})=>r==="filled"&&t.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="outlined"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ar=x.forwardRef(function(r,t){const o=H({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=re();let b=i;typeof b>"u"&&m&&(b=m.filled||m.focused||m.adornedStart);const h=te({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=or(g);return a.jsx(sr,{"data-shrink":b,ref:t,className:W(f.root,n),...d,ownerState:g,classes:f})});function nr(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lr={standard:He,filled:Ne,outlined:Ae},ir=e=>{const{classes:r}=e;return U({root:["root"]},nr,r)},dr=T(Ke,{name:"MuiTextField",slot:"Root"})({}),cr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=ir(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lr[K],w={slots:j,slotProps:{input:P,inputLabel:c,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dr,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,p),ref:t,additionalProps:{disabled:m,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:ar,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** +import{a as A,g as N,r as x,u as H,j as a,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ne,p as le}from"./index-CnnXn_hp.js";import{i as Z,b as qe,c as ie,F as $e,u as re,f as te,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-DYiPakMZ.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:r,margin:t,fullWidth:o}=e,s={root:["root",t!=="none"&&`margin${z(t)}`,o&&"fullWidth"]};return U(s,Oe,r)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`margin${z(t.margin)}`],t.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...y}=o,P={...o,color:i,component:p,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:u,variant:c},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=m!==void 0&&!n?m:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:c}),[F,i,n,d,E,O,b,h,B,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:P,className:W(G.root,l),ref:t,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:r,contained:t,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,t&&"contained",p&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,r)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size&&r[`size${z(t.size)}`],t.contained&&r.contained,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:b,required:h,variant:g,...f}=o,u=re(),c=te({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:t,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:r,color:t,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(t)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,r)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color==="secondary"&&r.colorSecondary,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([r])=>({props:{color:r},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),er=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:b,required:h,...g}=o,f=re(),u=te({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},y=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:W(y.root,l),ref:t,...g,children:[s,u.required&&a.jsxs(er,{ownerState:c,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function tr(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const or=e=>{const{classes:r,formControl:t,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",t&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=U(n,tr,r);return{...r,...d}},sr=T(rr,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[{[`& .${$.asterisk}`]:r.asterisk},r.root,t.formControl&&r.formControl,t.size==="small"&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,t.focused&&r.focused,r[t.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="filled"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:t,size:o})=>r==="filled"&&t.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="outlined"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ar=x.forwardRef(function(r,t){const o=H({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=re();let b=i;typeof b>"u"&&m&&(b=m.filled||m.focused||m.adornedStart);const h=te({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=or(g);return a.jsx(sr,{"data-shrink":b,ref:t,className:W(f.root,n),...d,ownerState:g,classes:f})});function nr(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lr={standard:He,filled:Ne,outlined:Ae},ir=e=>{const{classes:r}=e;return U({root:["root"]},nr,r)},dr=T(Ke,{name:"MuiTextField",slot:"Root"})({}),cr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=ir(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lr[K],w={slots:j,slotProps:{input:P,inputLabel:c,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dr,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,p),ref:t,additionalProps:{disabled:m,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:ar,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/index-LpWXPQo4.js b/src/frontend/dist/assets/index-CnnXn_hp.js similarity index 99% rename from src/frontend/dist/assets/index-LpWXPQo4.js rename to src/frontend/dist/assets/index-CnnXn_hp.js index 9a3a4bc7..0bea60de 100644 --- a/src/frontend/dist/assets/index-LpWXPQo4.js +++ b/src/frontend/dist/assets/index-CnnXn_hp.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-CrOHSNZf.js","assets/main-layout-HR9QJcmZ.js","assets/main-layout-DVneG3Rq.css","assets/join-BfPac9eY.js","assets/chat-B2WH5BM1.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-BjneFMVt.js","assets/main-layout-DYiPakMZ.js","assets/main-layout-DVneG3Rq.css","assets/join-BibCN958.js","assets/chat-ClPaG14_.js"])))=>i.map(i=>d[i]); function _2(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function La(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Af={exports:{}},vl={};/** * @license React * react-jsx-runtime.production.js @@ -316,5 +316,5 @@ export default theme;`}function Zg(n){return typeof n=="number"?`${(n*100).toFix 0 22,12A10,10 0 0,0 12,2Z`}))},UM={default:void 0,success:Ae.createElement(NM,null),warning:Ae.createElement(LM,null),error:Ae.createElement(BM,null),info:Ae.createElement(jM,null)},fr={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:UM,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:u1,transitionDuration:{enter:225,exit:195}},HM=function(r,l){var o=function(c){return typeof c=="number"||c===null};return o(r)?r:o(l)?l:fr.autoHideDuration},YM=function(r,l){var o=function(c,d){return d.some(function(h){return typeof c===h})};return o(r,["string","number"])?r:o(r,["object"])?Ge({},fr.transitionDuration,{},o(l,["object"])&&l,{},r):o(l,["string","number"])?l:o(l,["object"])?Ge({},fr.transitionDuration,{},l):fr.transitionDuration},qM=function(r,l){return function(o,s){return s===void 0&&(s=!1),s?Ge({},fr[o],{},l[o],{},r[o]):o==="autoHideDuration"?HM(r.autoHideDuration,l.autoHideDuration):o==="transitionDuration"?YM(r.transitionDuration,l.transitionDuration):r[o]||l[o]||fr[o]}};function Ql(n){return Object.entries(n).reduce(function(r,l){var o,s=l[0],c=l[1];return Ge({},r,(o={},o[s]=oh(c),o))},{})}var gi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(r){return"notistack-MuiContent-"+r}},Oy=Ql({root:{height:0},entered:{height:"auto"}}),If="0px",Qf=175,s1=x.forwardRef(function(n,r){var l=n.children,o=n.in,s=n.onExited,c=x.useRef(null),d=x.useRef(null),h=Ad(r,d),p=function(){return c.current?c.current.clientHeight:0},m=function(C){C.style.height=If},y=function(C){var M=p(),D=Xu({timeout:Qf,mode:"enter"}),k=D.duration,$=D.easing;C.style.transitionDuration=typeof k=="string"?k:k+"ms",C.style.height=M+"px",C.style.transitionTimingFunction=$||""},b=function(C){C.style.height="auto"},E=function(C){C.style.height=p()+"px"},A=function(C){l1(C);var M=Xu({timeout:Qf,mode:"exit"}),D=M.duration,k=M.easing;C.style.transitionDuration=typeof D=="string"?D:D+"ms",C.style.height=If,C.style.transitionTimingFunction=k||""};return x.createElement(sh,{in:o,unmountOnExit:!0,onEnter:m,onEntered:b,onEntering:y,onExit:E,onExited:s,onExiting:A,nodeRef:d,timeout:Qf},function(T,C){return x.createElement("div",Object.assign({ref:h,className:pr(Oy.root,T==="entered"&&Oy.entered),style:Ge({pointerEvents:"all",overflow:"hidden",minHeight:If,transition:ci("height")},T==="entered"&&{overflow:"visible"},{},T==="exited"&&!o&&{visibility:"hidden"})},C),x.createElement("div",{ref:c,className:gi.CollapseWrapper,style:{display:"flex",width:"100%"}},l))})});s1.displayName="Collapse";var Ry={right:"left",left:"right",bottom:"up",top:"down"},GM=function(r){return r.horizontal!=="center"?Ry[r.horizontal]:Ry[r.vertical]},VM=function(r){return"anchorOrigin"+uh(r)},PM=function(r){r===void 0&&(r={});var l={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(r).filter(function(o){return!l[o]}).reduce(function(o,s){var c;return Ge({},o,(c={},c[s]=r[s],c))},{})},XM=function(){};function _l(n,r){return n.reduce(function(l,o){return o==null?l:function(){for(var c=arguments.length,d=new Array(c),h=0;h-1,$=M.snacks.findIndex(D)>-1;if(k||$)return M}return s.handleDisplaySnack(Ge({},M,{queue:[].concat(M.queue,[C])}))}),A},s.handleDisplaySnack=function(c){var d=c.snacks;return d.length>=s.maxSnack?s.handleDismissOldest(c):s.processQueue(c)},s.processQueue=function(c){var d=c.queue,h=c.snacks;return d.length>0?Ge({},c,{snacks:[].concat(h,[d[0]]),queue:d.slice(1,d.length)}):c},s.handleDismissOldest=function(c){if(c.snacks.some(function(y){return!y.open||y.requestClose}))return c;var d=!1,h=!1,p=c.snacks.reduce(function(y,b){return y+(b.open&&b.persist?1:0)},0);p===s.maxSnack&&(h=!0);var m=c.snacks.map(function(y){return!d&&(!y.persist||h)?(d=!0,y.entered?(y.onClose&&y.onClose(null,"maxsnack",y.id),s.props.onClose&&s.props.onClose(null,"maxsnack",y.id),Ge({},y,{open:!1})):Ge({},y,{requestClose:!0})):Ge({},y)});return Ge({},c,{snacks:m})},s.handleEnteredSnack=function(c,d,h){if(!vu(h))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(p){var m=p.snacks;return{snacks:m.map(function(y){return y.id===h?Ge({},y,{entered:!0}):Ge({},y)})}})},s.handleCloseSnack=function(c,d,h){s.props.onClose&&s.props.onClose(c,d,h);var p=h===void 0;s.setState(function(m){var y=m.snacks,b=m.queue;return{snacks:y.map(function(E){return!p&&E.id!==h?Ge({},E):E.entered?Ge({},E,{open:!1}):Ge({},E,{requestClose:!0})}),queue:b.filter(function(E){return E.id!==h})}})},s.closeSnackbar=function(c){var d=s.state.snacks.find(function(h){return h.id===c});vu(c)&&d&&d.onClose&&d.onClose(null,"instructed",c),s.handleCloseSnack(null,"instructed",c)},s.handleExitedSnack=function(c,d){if(!vu(d))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(h){var p=s.processQueue(Ge({},h,{snacks:h.snacks.filter(function(m){return m.id!==d})}));return p.queue.length===0?p:s.handleDismissOldest(p)})},s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(Cy(s)),closeSnackbar:s.closeSnackbar.bind(Cy(s))}},s}var l=r.prototype;return l.render=function(){var s=this,c=this.state.contextValue,d=this.props,h=d.domRoot,p=d.children,m=d.dense,y=m===void 0?!1:m,b=d.Components,E=b===void 0?{}:b,A=d.classes,T=this.state.snacks.reduce(function(M,D){var k,$=uh(D.anchorOrigin),B=M[$]||[];return Ge({},M,(k={},k[$]=[].concat(B,[D]),k))},{}),C=Object.keys(T).map(function(M){var D=T[M],k=D[0];return Ae.createElement(JM,{key:M,dense:y,anchorOrigin:k.anchorOrigin,classes:A},D.map(function($){return Ae.createElement(WM,{key:$.id,snack:$,classes:A,Component:E[$.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:_l([s.handleExitedSnack,s.props.onExited],$.id),onEntered:_l([s.handleEnteredSnack,s.props.onEntered],$.id)})}))});return Ae.createElement(i1.Provider,{value:c},p,h?av.createPortal(C,h):C)},a1(r,[{key:"maxSnack",get:function(){return this.props.maxSnack||fr.maxSnack}}]),r})(x.Component),tw=(function(){return x.useContext(i1)});function nw(n){return rt("MuiTitleIcon",n)}it("MuiTitleIcon",["root","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning"]);const aw=n=>{const{classes:r,variant:l,color:o}=n,s={root:["root",l&&`variant${ge(l)}`,o&&`color${ge(o)}`],outlineOuter:["outlineOuter"],outlineInner:["outlineInner"]};return gn(s,nw,r)},rw=["inherit","primary","secondary","error","info","success","warning"],iw=Me("div",{name:"MuiTitleIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:{color:l,variant:o}}=n;return[r.root,l&&r[`color${ge(l)}`],o&&r[`variant${ge(o)}`]]}})(({theme:n})=>{const{palette:r}=n;return{position:"relative",width:"2.25rem",height:"2.25rem",display:"inline-flex",justifyContent:"center",alignItems:"center",color:"inherit",backgroundColor:"transparent",border:"none",outline:"none",fontSize:"1.25rem",[`& .${S3.root}, & .tabler-icon, & svg`]:{width:"1em",height:"1em"},variants:[...rw.map(l=>({props:{color:l},style:{color:l==="inherit"?"inherit":l==="default"?r.text.primary:r[l].main}}))]}}),lw=Me("div",{name:"MuiTitleIcon",slot:"OutlineOuter"})(()=>({boxSizing:"border-box",width:"2.25rem",height:"2.25rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.1,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.38rem"}}]})),ow=Me("div",{name:"MuiTitleIcon",slot:"OutlineInner"})(()=>({boxSizing:"border-box",width:"1.75rem",height:"1.75rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.3,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.25em"}}]})),nA=x.forwardRef(function(r,l){const o=Gv({props:r,name:"MuiTitleIcon"}),{children:s,classes:c,variant:d="circle",color:h="default",className:p,...m}=o,y={...o,variant:d,color:h},b=aw(y);return ee.jsxs(iw,{ref:l,className:Ze(b.root,p),ownerState:y,role:"img",...m,children:[ee.jsx(lw,{className:b.outlineOuter,ownerState:y}),ee.jsx(ow,{className:b.outlineInner,ownerState:y}),s]})}),uw=Me("div",{name:"MuiTitleIconForm",slot:"Root"})(({theme:n})=>{const{palette:r}=n;return{flex:"none",width:"3rem",height:"3rem",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:r.grey[250],overflow:"hidden"}}),sw=Me("div",{name:"MuiTitleIconForm",slot:"Image"})(({theme:n})=>{const{palette:r}=n;return{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"url(/assets/common/form-half-one.png) center / cover no-repeat",mixBlendMode:"multiply"}}),aA=()=>ee.jsx(uw,{children:ee.jsx(sw,{})}),cw=Me("div")(({theme:n})=>{const{palette:r}=n;return{display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"flex-start",gap:"0.75rem",paddingBlockStart:"0.75rem",color:r.grey[700]}}),fw=Me("div")(({theme:n})=>{const{palette:r}=n;return{position:"absolute",bottom:0,left:"-1rem",right:"-1rem"}}),dw=150,hw=n=>{const{severity:r,autoHideDuration:l=0}=n,[o,s]=x.useState(0);return x.useEffect(()=>{if(l<=0)return;const c=l/100;let d,h;const p=()=>d=requestAnimationFrame(m=>{h||(h=m);const y=Math.min(100,Math.ceil((m+dw-h)/c));s(y),y<100&&p()});return p(),()=>{d&&cancelAnimationFrame(d)}},[l]),ee.jsx(fw,{children:ee.jsx(D3,{variant:"determinate",color:r,value:o})})},mw=x.forwardRef((n,r)=>{const{autoHideDuration:l,variant:o,title:s,children:c,onClose:d,action:h,dismissLabel:p="Dismiss",onDismiss:m,...y}=n;let b=s,E=c;!b&&E&&(b=E,E=void 0);const A=m&&ee.jsx(h3,{variant:"text",color:"inherit",onClick:m,children:p}),T=(!!h||!!A)&&ee.jsxs(ee.Fragment,{children:[A,h]})||void 0;return o==="notification"?ee.jsxs(ty,{...y,variant:o,onClose:d,ref:r,children:[!!b&&ee.jsx(ay,{children:b}),E,T&&ee.jsx(cw,{children:T}),l&&l>0&&ee.jsx(hw,{...n})]}):ee.jsxs(ty,{...y,variant:o,onClose:d,action:T,ref:r,children:[!!b&&ee.jsx(ay,{children:b}),E]})}),Al=x.forwardRef((n,r)=>{const{id:l,variant:o,title:s,message:c,action:d,notification:h=!0,closable:p=h,dismissAble:m,persist:y,autoHideDuration:b,hideIconVariant:E,className:A,style:T}=n,{closeSnackbar:C}=tw(),M=o==="default"?"info":o,D=typeof d=="function"?d(l):d,k=p&&(()=>C(l))||void 0,$=m&&(()=>C(l))||void 0,B=b||void 0;return ee.jsx(mw,{variant:h&&"notification"||"outlined",severity:M,icon:E?!1:void 0,onClose:k,onDismiss:$,action:D,title:s,autoHideDuration:B,ref:r,className:A,style:T,children:c})}),pw={default:Al,info:Al,success:Al,warning:Al,error:Al},h1=({children:n})=>ee.jsx(ew,{anchorOrigin:{vertical:"bottom",horizontal:"right"},maxSnack:5,autoHideDuration:5e3,Components:pw,style:{width:"21.25rem"},children:n}),gw=n=>{const{palette:r,overlays:l}=n;return{defaultProps:{variant:"outlined"},styleOverrides:{root:{variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:"0.75rem"}},{props:{variant:"outlined"},style:{border:`1px solid ${r.divider}`}},{props:{variant:"overlay"},style:{border:`1px solid ${r.divider}`,boxShadow:l.shadowMiddle}}]}}}},yw=n=>{const{spacing:r}=n;return{defaultProps:{slotProps:{paper:{variant:"overlay"},backdrop:{invisible:!0}}},styleOverrides:{root:{[`& .${xd.root}`]:{marginBlock:r(1.5)}},paper:{padding:r(1)}}}},vw=n=>{const{spacing:r}=n;return{defaultProps:{},styleOverrides:{}}},bw=n=>{const{palette:r,spacing:l}=n;return{defaultProps:{},styleOverrides:{root:{padding:l(1),gap:l(.75),"&:hover":{backgroundColor:r.grey[200]},[`& + .${xd.root}`]:{margin:0,marginBlock:l(1.5)},[`& .${xd.inset}`]:{margin:0,marginInline:`${la.small}rem`},[`& .${_3.root}`]:{minWidth:`${la.small}rem`}}}}},Sw=Object.freeze(Object.defineProperty({__proto__:null,MuiAlert:pM,MuiAlertTitle:mM,MuiBackdrop:gM,MuiButton:v4,MuiButtonBase:b4,MuiButtonGroup:S4,MuiChip:Q4,MuiCssBaseline:g4,MuiDialog:xM,MuiDialogActions:yM,MuiDialogContent:bM,MuiDialogContentText:SM,MuiDialogTitle:vM,MuiDivider:K4,MuiFormControl:C4,MuiFormHelperText:T4,MuiFormLabel:E4,MuiIconButton:x4,MuiInputAdornment:w4,MuiInputBase:O4,MuiInputLabel:M4,MuiLinearProgress:CM,MuiList:W4,MuiListItem:F4,MuiListItemAvatar:nM,MuiListItemButton:J4,MuiListItemIcon:eM,MuiListItemText:tM,MuiMenu:yw,MuiMenuItem:bw,MuiMenuList:vw,MuiOutlinedInput:R4,MuiPaper:gw,MuiSelect:q4,MuiSlider:P4,MuiSnackbar:TM,MuiSnackbarContent:EM,MuiTable:rM,MuiTableBody:lM,MuiTableCell:uM,MuiTableContainer:aM,MuiTableFooter:sM,MuiTableHead:iM,MuiTablePagination:cM,MuiTablePaginationActions:fM,MuiTableRow:oM,MuiTableSortLabel:dM,MuiTextField:D4,MuiToggleButton:X4,MuiToggleButtonGroup:Z4,MuiTypography:hM,SnackbarProvider:h1},Symbol.toStringTag,{value:"Module"})),jl=eh({palette:c4,typography:f4,spacing:n=>`${n*8/e1}rem`,overlays:d4});jl.components=jl.components||{};Object.entries(Sw).forEach(([n,r])=>{n.startsWith("Mui")&&typeof r=="function"&&(jl.components[n]=r(jl))});const xw=({children:n})=>ee.jsx(YE,{theme:{[En]:jl},children:ee.jsx(h1,{children:ee.jsx(L3,{dateAdapter:u4,localeText:{okButtonLabel:"Apply"},children:n})})}),Cw="modulepreload",Ew=function(n){return"/"+n},$y={},ch=function(r,l,o){let s=Promise.resolve();if(l&&l.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=p(l.map(m=>{if(m=Ew(m),m in $y)return;$y[m]=!0;const y=m.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":Cw,y||(E.as="script"),E.crossOrigin="",E.href=m,h&&E.setAttribute("nonce",h),document.head.appendChild(E),y)return new Promise((A,T)=>{E.addEventListener("load",A),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})},Tw=n=>r=>{const{url:l,method:o="GET",afterFetch:s=N=>N}=n,{debugName:c,autoReconnect:d=!1,autoReconnectInterval:h=2e3,onStatusChange:p,onMessage:m,onError:y}=r,b=new TextDecoder;let E,A;const T=(...N)=>{console.log(`%c http-stream.ts ${o} ${l} ${c??""}`,"color: white; background: darkcyan; padding: 2px 4px; border-radius: 2px;",...N)},C=N=>{T("onStatusChange",N),d&&(N==="disconnected"||N==="error")&&setTimeout(()=>{T("auto-reconnect"),$(k)},h);try{p?.(N)}catch(H){T("onStatusChange Error",H)}},M=N=>{try{m?.(N)}catch(H){T("onMessage Error",H)}},D=async()=>{try{A&&(await A.cancel(),A=void 0)}catch(N){T("reader cancel error",N)}};let k;const $=N=>{k=N;const{headers:H,body:F,data:K}=N||{};C("connecting"),T("send",K),E=new AbortController;let I;const S=K?.type==="queue_info"?0:5e3;S>0&&(I=setTimeout(()=>{T(`fetch timeout: triggering abort after ${S}ms`);try{E?.abort()}catch(ne){T("abort error during timeout",ne)}C("error"),y?.(new Error("The request timed out. Please try again later."))},S)),fetch(l,{headers:{"Content-Type":"application/json",...H},method:o,body:K&&JSON.stringify(K)||F,signal:E.signal}).then(async ne=>{if(I&&(clearTimeout(I),I=void 0),ne.status!==200||ne.headers.get("content-type")!=="application/x-ndjson"){T("fetch status error or content-type error",ne),C("error");return}if(A=ne.body?.getReader(),!A){T("getReader error",ne),C("error");return}C("connected");let V="";for(;;){const{done:P,value:O}=await A.read();if(P){await D(),C("disconnected");break}const Y=b.decode(O);V+=Y;const Z=V.split(` `);V=Z.pop()||"",Z.forEach(le=>{try{const w=s(JSON.parse(le));M(w)}catch(w){T("Parse Message Error",w)}})}}).catch(async ne=>{I&&(clearTimeout(I),I=void 0),await D(),T("fetch error",ne),C("error"),y?.(ne)}).finally(async()=>{I&&(clearTimeout(I),I=void 0),await D(),E=void 0})};return Object.freeze({send:$,abort:()=>{try{E?.abort(),E=void 0}catch(N){T("abort error",N)}A?.cancel(),A=void 0,C("disconnected")}})},hs="",Mw=async()=>{const r=await(await fetch(`${hs}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},ww=async n=>{const l=await(await fetch(`${hs}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Aw=Tw({url:`${hs}/cluster/status`,method:"GET"}),Ny=n=>{const r=x.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Ow=n=>{const r=x.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},hi=n=>{const r=x.useRef(void 0);return r.current=n,Ow(((...o)=>r.current?.(...o)))},Rw="/assets/Qwen3-CHUafU1E.png",Dw="data:image/svg+xml,%3csvg%20width='721'%20height='721'%20viewBox='0%200%20721%20721'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1637_2934)'%3e%3cg%20clip-path='url(%23clip1_1637_2934)'%3e%3cpath%20d='M304.246%20294.611V249.028C304.246%20245.189%20305.687%20242.309%20309.044%20240.392L400.692%20187.612C413.167%20180.415%20428.042%20177.058%20443.394%20177.058C500.971%20177.058%20537.44%20221.682%20537.44%20269.182C537.44%20272.54%20537.44%20276.379%20536.959%20280.218L441.954%20224.558C436.197%20221.201%20430.437%20221.201%20424.68%20224.558L304.246%20294.611ZM518.245%20472.145V363.224C518.245%20356.505%20515.364%20351.707%20509.608%20348.349L389.174%20278.296L428.519%20255.743C431.877%20253.826%20434.757%20253.826%20438.115%20255.743L529.762%20308.523C556.154%20323.879%20573.905%20356.505%20573.905%20388.171C573.905%20424.636%20552.315%20458.225%20518.245%20472.141V472.145ZM275.937%20376.182L236.592%20353.152C233.235%20351.235%20231.794%20348.354%20231.794%20344.515V238.956C231.794%20187.617%20271.139%20148.749%20324.4%20148.749C344.555%20148.749%20363.264%20155.468%20379.102%20167.463L284.578%20222.164C278.822%20225.521%20275.942%20230.319%20275.942%20237.039V376.186L275.937%20376.182ZM360.626%20425.122L304.246%20393.455V326.283L360.626%20294.616L417.002%20326.283V393.455L360.626%20425.122ZM396.852%20570.989C376.698%20570.989%20357.989%20564.27%20342.151%20552.276L436.674%20497.574C442.431%20494.217%20445.311%20489.419%20445.311%20482.699V343.552L485.138%20366.582C488.495%20368.499%20489.936%20371.379%20489.936%20375.219V480.778C489.936%20532.117%20450.109%20570.985%20396.852%20570.985V570.989ZM283.134%20463.99L191.486%20411.211C165.094%20395.854%20147.343%20363.229%20147.343%20331.562C147.343%20294.616%20169.415%20261.509%20203.48%20247.593V356.991C203.48%20363.71%20206.361%20368.508%20212.117%20371.866L332.074%20441.437L292.729%20463.99C289.372%20465.907%20286.491%20465.907%20283.134%20463.99ZM277.859%20542.68C223.639%20542.68%20183.813%20501.895%20183.813%20451.514C183.813%20447.675%20184.294%20443.836%20184.771%20439.997L279.295%20494.698C285.051%20498.056%20290.812%20498.056%20296.568%20494.698L417.002%20425.127V470.71C417.002%20474.549%20415.562%20477.429%20412.204%20479.346L320.557%20532.126C308.081%20539.323%20293.206%20542.68%20277.854%20542.68H277.859ZM396.852%20599.776C454.911%20599.776%20503.37%20558.513%20514.41%20503.812C568.149%20489.896%20602.696%20439.515%20602.696%20388.176C602.696%20354.587%20588.303%20321.962%20562.392%20298.45C564.791%20288.373%20566.231%20278.296%20566.231%20268.224C566.231%20199.611%20510.571%20148.267%20446.274%20148.267C433.322%20148.267%20420.846%20150.184%20408.37%20154.505C386.775%20133.392%20357.026%20119.958%20324.4%20119.958C266.342%20119.958%20217.883%20161.22%20206.843%20215.921C153.104%20229.837%20118.557%20280.218%20118.557%20331.557C118.557%20365.146%20132.95%20397.771%20158.861%20421.283C156.462%20431.36%20155.022%20441.437%20155.022%20451.51C155.022%20520.123%20210.682%20571.466%20274.978%20571.466C287.931%20571.466%20300.407%20569.549%20312.883%20565.228C334.473%20586.341%20364.222%20599.776%20396.852%20599.776Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1637_2934'%3e%3crect%20width='720'%20height='720'%20fill='white'%20transform='translate(0.606934%200.0999756)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1637_2934'%3e%3crect%20width='484.139'%20height='479.818'%20fill='white'%20transform='translate(118.557%20119.958)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",_w=n=>{n=n.toLowerCase();const r=n.split(/[-/]/);return r[0]==="qwen"?Rw:r[0]==="openai"?Dw:""},Tu=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},Ly={id:"",status:"idle",modelName:"",nodeJoinCommand:{},initNodesNumber:4},m1=x.createContext(void 0),{Provider:kw}=m1,zw=({children:n})=>{const[r,l]=x.useState("local"),[o,s]=x.useState(1),[c,d]=x.useState(""),[h,p]=x.useState([]),m=hi(async()=>{let $=!1;for(;!$;)try{const B=await Mw();p(_=>{const N=B.map(H=>({name:H,displayName:H,logoUrl:_w(H)}));return JSON.stringify(N)!==JSON.stringify(_)?(Tu("setModelInfoList",N),N):_}),$=!0}catch(B){console.error("getModelList error",B),await new Promise(_=>setTimeout(_,2e3))}});x.useEffect(()=>{m()},[]),x.useEffect(()=>{h.length&&d(h[0].name)},[h]);const[y,b]=x.useState(Ly),[E,A]=x.useState([]),T=hi(()=>{Tu("reset"),b(Ly),A([])}),C=x.useMemo(()=>Aw({debugName:"ClusterStatus",autoReconnect:!0,onMessage:_=>{if(_.type==="cluster_status"){const{data:{status:N,init_nodes_num:H,model_name:F,node_join_command:K,node_list:I}}=_;d(Q=>F||Q),b(Q=>{const S={...Q,status:F&&N||"idle",initNodesNumber:H||0,modelName:F||"",nodeJoinCommand:K||{}};return JSON.stringify(S)!==JSON.stringify(Q)?(Tu("setClusterInfo",S),S):Q}),A(Q=>{let S=I.map(({node_id:P,status:O,gpu_name:Y,gpu_memory:Z})=>({id:P,status:O,gpuName:Y,gpuMemory:Z}));const ne=Q.filter(P=>S.some(O=>O.id===P.id)),V=Q.filter(P=>!S.some(O=>O.id===P.id)).map(P=>({...P,status:"failed"}));return JSON.stringify(S)===JSON.stringify(ne)&&(S=[...S,...V]),JSON.stringify(S)!==JSON.stringify(Q)?(Tu("setNodeInfoList",S),S):Q})}},onError:T}),[]);x.useEffect(()=>{C.send()},[]);const M=hi(async()=>{if(o<1)throw new Error("initNodesNumber must be greater than 0");if(!c)throw new Error("modelName is required");await ww({model_name:c,init_nodes_num:o,is_local_network:r==="local"})}),D=x.useMemo(()=>({setNetworkType:l,setInitNodesNumber:s,setModelName:d,init:M}),[]),k=x.useMemo(()=>[{networkType:r,initNodesNumber:o,modelName:c,modelInfoList:h,clusterInfo:y,nodeInfoList:E},D],[r,o,c,h,y,E,D]);return ee.jsx(kw,{value:k,children:n})},p1=()=>{const n=x.useContext(m1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n};function $w(n){n=n.trim();const r={analysis:"",final:""},l=/<\|channel\|>([^<]+)<\|message\|>(.*?)(<\|end\|>|$)/gs;let o;for(;(o=l.exec(n))!==null;)r[o[1]]=o[2]?.trim()||"";return r}const Mu="",By="";function Nw(n){n=n.trim();const r={think:"",content:""};for(;n.includes(Mu);){const l=n.indexOf(Mu),o=n.indexOf(By),s=n.substring(l+Mu.length,o>l?o:n.length);n=n.replace(Mu+s+(o>l?By:""),""),r.think+=` -`+s}return r.think=r.think.trim(),r.content=n.trim(),r}const Bt=async(...n)=>{},Lw=({children:n})=>{const[{clusterInfo:{status:r,modelName:l}}]=p1(),[o,s]=x.useState(""),[c,d]=x.useState("closed"),[h,p]=x.useState([]),m=Ny(()=>Bw({onOpen:()=>{d("opened")},onClose:()=>{p(C=>{const M=C[C.length-1],{id:D,raw:k,thinking:$,content:B}=M;return Bt("GENERATING DONE","lastMessage:",M),Bt("GENERATING DONE","id:",D),Bt("GENERATING DONE","raw:",k),Bt("GENERATING DONE","thinking:",$),Bt("GENERATING DONE","content:",B),[...C.slice(0,-1),{...M,status:"done"}]}),d("closed")},onError:C=>{p(M=>{const D=M[M.length-1],{id:k,raw:$,thinking:B,content:_}=D;return Bt("GENERATING ERROR","lastMessage:",D),Bt("GENERATING ERROR","id:",k),Bt("GENERATING ERROR","raw:",$),Bt("GENERATING ERROR","thinking:",B),Bt("GENERATING ERROR","content:",_),[...M.slice(0,-1),{...D,status:"done"}]}),Bt("SSE ERROR",C),d("error")},onMessage:C=>{const{data:{id:M,object:D,model:k,created:$,choices:B,usage:_}}=C;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(N=>{let H=N;if(B.forEach(({delta:{role:F,content:K}={}})=>{if(typeof K!="string"||!K)return;F=F||"assistant";let I=H[H.length-1];if(I&&I.role===F){const Q=I.raw+K;I={...I,raw:Q,content:Q},H=[...H.slice(0,-1),I]}else I={id:M,role:F,status:"thinking",raw:K,content:K,createdAt:$},H=[...H,I]}),H!==N&&typeof k=="string"){let F=H[H.length-1],K="",I="";const Q=k.toLowerCase();Q.includes("gpt")?{analysis:K,final:I}=$w(F.raw||""):Q.includes("qwen")?{think:K,content:I}=Nw(F.raw||""):I=F.raw||"",F={...F,status:I&&"generating"||"thinking",thinking:K,content:I},H=[...H.slice(0,-1),F]}return H}))}})),y=hi(C=>{if(r!=="available"||c==="opened"||c==="generating"||!l)return;let M=h;if(C){const D=h.findIndex($=>$.id===C.id),k=h[D];if(!k)return;M=M.slice(0,D+(k.role==="user"?1:0)),Bt("generate","regenerate",M)}else{const D=o.trim();if(!D)return;s("");const k=performance.now();M=[...M,{id:k.toString(),role:"user",status:"done",content:D,createdAt:k}],Bt("generate","new",M)}p(M),m.connect(l,M.map(({id:D,role:k,content:$})=>({id:D,role:k,content:$})))}),b=hi(()=>{c==="opened"&&(Bt("stop"),m.disconnect())}),E=hi(()=>{b(),c!=="opened"&&(Bt("clear"),p([]))}),A=Ny({setInput:s,generate:y,stop:b,clear:E}),T=x.useMemo(()=>[{input:o,status:c,messages:h},A],[o,c,h,A]);return ee.jsx(g1.Provider,{value:T,children:n})},g1=x.createContext(void 0),rA=()=>{const n=x.useContext(g1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Bw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,b)=>{h=new AbortController;const E=`${hs}/v1/chat/completions`;fetch(E,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:b,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async A=>{const T=A.status,C=A.headers.get("Content-Type");if(T!==200){o?.(new Error(`[SSE] Failed to connect: ${T}`));return}if(!C?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${C}`));return}if(d=A.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let M="";const D=k=>{const $={event:"message",data:void 0};k.forEach(B=>{const _=B.indexOf(":");if(_<=0)return;const N=B.slice(0,_).trim(),H=B.slice(_+1).trim();if(!H.startsWith(":")){switch(N){case"event":$.event=H;break;case"id":$.id=H;break;case"data":try{const F=JSON.parse(H),K=I=>{I&&(Array.isArray(I)?I.forEach((Q,S)=>{Q===null?I[S]=void 0:K(Q)}):typeof I=="object"&&Object.keys(I).forEach(Q=>{I[Q]===null?delete I[Q]:K(I[Q])}))};K(F),$.data=F}catch{$.data=H}break}$.data!==void 0&&s?.($)}})};for(;;){const{done:k,value:$}=await d.read();if(k){l?.();return}const B=c.decode($);M+=B;const _=M.split(` -`);M=_.pop()||"",D(_)}}).catch(A=>{if(A instanceof Error&&A.name==="AbortError"){l?.();return}o?.(A)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},ed="/setup",jw="/join",wu="/chat",Uw=x.lazy(()=>ch(()=>import("./setup-CrOHSNZf.js"),__vite__mapDeps([0,1,2]))),Hw=x.lazy(()=>ch(()=>import("./join-BfPac9eY.js"),__vite__mapDeps([3,1,2]))),Yw=x.lazy(()=>ch(()=>import("./chat-B2WH5BM1.js"),__vite__mapDeps([4,1,2]))),td=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},qw=()=>{const n=Iy(),{pathname:r}=Ba(),[{clusterInfo:{status:l}}]=p1();return x.useEffect(()=>{if(r==="/"){n(ed);return}if(td("pathname",r,"cluster status",l),l==="idle"&&r.startsWith(wu)){td("navigate to /setup"),n(ed);return}if(l==="available"&&!r.startsWith(wu)){td("navigate to /chat"),n(wu);return}},[n,r,l]),gS([{path:ed,element:ee.jsx(x.Suspense,{fallback:ee.jsx("div",{children:"Loading..."}),children:ee.jsx(Uw,{})})},{path:jw,element:ee.jsx(x.Suspense,{fallback:ee.jsx("div",{children:"Loading..."}),children:ee.jsx(Hw,{})})},{path:wu,element:ee.jsx(x.Suspense,{fallback:ee.jsx("div",{children:"Loading..."}),children:ee.jsx(Yw,{})})},{path:"*",element:ee.jsx("div",{children:"404 - Page Not Found"})}])},Gw=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Vw=()=>ee.jsx(Gw,{children:ee.jsx(zw,{children:ee.jsx(Lw,{children:ee.jsx(qw,{})})})});H2.createRoot(document.getElementById("root")).render(ee.jsx(x.StrictMode,{children:ee.jsx(FS,{children:ee.jsxs(xw,{children:[ee.jsx(v3,{}),ee.jsx(Vw,{})]})})}));export{c5 as $,ty as A,Qv as B,Xd as C,Tv as D,Xv as E,Ae as F,Qg as G,uT as H,Wv as I,cT as J,oT as K,tv as L,Zd as M,av as N,_5 as O,zu as P,Pv as Q,Pw as R,k3 as S,e3 as T,lT as U,Zw as V,r3 as W,dr as X,Xl as Y,LE as Z,ZE as _,rt as a,En as a0,eh as a1,sT as a2,Iv as a3,Qw as a4,b3 as a5,Kw as a6,Ww as a7,jt as a8,nT as a9,Fw as aa,Xw as ab,_3 as ac,xd as ad,Iw as ae,rr as af,BE as ag,Si as ah,ja as ai,ah as aj,Fg as ak,Jw as al,z3 as am,eA as an,ly as ao,aA as ap,nA as aq,L4 as ar,gy as as,j4 as at,H4 as au,La as av,ge as b,Ze as c,gn as d,Bl as e,tA as f,it as g,tn as h,Zl as i,ee as j,md as k,hi as l,Pt as m,p1 as n,Iy as o,h3 as p,Vv as q,x as r,Me as s,$3 as t,nn as u,Kd as v,li as w,rA as x,oC as y,mr as z}; +`+s}return r.think=r.think.trim(),r.content=n.trim(),r}const Bt=async(...n)=>{},Lw=({children:n})=>{const[{clusterInfo:{status:r,modelName:l}}]=p1(),[o,s]=x.useState(""),[c,d]=x.useState("closed"),[h,p]=x.useState([]),m=Ny(()=>Bw({onOpen:()=>{d("opened")},onClose:()=>{p(C=>{const M=C[C.length-1],{id:D,raw:k,thinking:$,content:B}=M;return Bt("GENERATING DONE","lastMessage:",M),Bt("GENERATING DONE","id:",D),Bt("GENERATING DONE","raw:",k),Bt("GENERATING DONE","thinking:",$),Bt("GENERATING DONE","content:",B),[...C.slice(0,-1),{...M,status:"done"}]}),d("closed")},onError:C=>{p(M=>{const D=M[M.length-1],{id:k,raw:$,thinking:B,content:_}=D;return Bt("GENERATING ERROR","lastMessage:",D),Bt("GENERATING ERROR","id:",k),Bt("GENERATING ERROR","raw:",$),Bt("GENERATING ERROR","thinking:",B),Bt("GENERATING ERROR","content:",_),[...M.slice(0,-1),{...D,status:"done"}]}),Bt("SSE ERROR",C),d("error")},onMessage:C=>{const{data:{id:M,object:D,model:k,created:$,choices:B,usage:_}}=C;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(N=>{let H=N;if(B.forEach(({delta:{role:F,content:K}={}})=>{if(typeof K!="string"||!K)return;F=F||"assistant";let I=H[H.length-1];if(I&&I.role===F){const Q=I.raw+K;I={...I,raw:Q,content:Q},H=[...H.slice(0,-1),I]}else I={id:M,role:F,status:"thinking",raw:K,content:K,createdAt:$},H=[...H,I]}),H!==N&&typeof k=="string"){let F=H[H.length-1],K="",I="";const Q=k.toLowerCase();Q.includes("gpt-oss")?{analysis:K,final:I}=$w(F.raw||""):Q.includes("qwen")?{think:K,content:I}=Nw(F.raw||""):I=F.raw||"",F={...F,status:I&&"generating"||"thinking",thinking:K,content:I},H=[...H.slice(0,-1),F]}return H}))}})),y=hi(C=>{if(r!=="available"||c==="opened"||c==="generating"||!l)return;let M=h;if(C){const D=h.findIndex($=>$.id===C.id),k=h[D];if(!k)return;M=M.slice(0,D+(k.role==="user"?1:0)),Bt("generate","regenerate",M)}else{const D=o.trim();if(!D)return;s("");const k=performance.now();M=[...M,{id:k.toString(),role:"user",status:"done",content:D,createdAt:k}],Bt("generate","new",M)}p(M),m.connect(l,M.map(({id:D,role:k,content:$})=>({id:D,role:k,content:$})))}),b=hi(()=>{c==="opened"&&(Bt("stop"),m.disconnect())}),E=hi(()=>{b(),c!=="opened"&&(Bt("clear"),p([]))}),A=Ny({setInput:s,generate:y,stop:b,clear:E}),T=x.useMemo(()=>[{input:o,status:c,messages:h},A],[o,c,h,A]);return ee.jsx(g1.Provider,{value:T,children:n})},g1=x.createContext(void 0),rA=()=>{const n=x.useContext(g1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Bw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,b)=>{h=new AbortController;const E=`${hs}/v1/chat/completions`;fetch(E,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:b,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async A=>{const T=A.status,C=A.headers.get("Content-Type");if(T!==200){o?.(new Error(`[SSE] Failed to connect: ${T}`));return}if(!C?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${C}`));return}if(d=A.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let M="";const D=k=>{const $={event:"message",data:void 0};k.forEach(B=>{const _=B.indexOf(":");if(_<=0)return;const N=B.slice(0,_).trim(),H=B.slice(_+1).trim();if(!H.startsWith(":")){switch(N){case"event":$.event=H;break;case"id":$.id=H;break;case"data":try{const F=JSON.parse(H),K=I=>{I&&(Array.isArray(I)?I.forEach((Q,S)=>{Q===null?I[S]=void 0:K(Q)}):typeof I=="object"&&Object.keys(I).forEach(Q=>{I[Q]===null?delete I[Q]:K(I[Q])}))};K(F),$.data=F}catch{$.data=H}break}$.data!==void 0&&s?.($)}})};for(;;){const{done:k,value:$}=await d.read();if(k){l?.();return}const B=c.decode($);M+=B;const _=M.split(` +`);M=_.pop()||"",D(_)}}).catch(A=>{if(A instanceof Error&&A.name==="AbortError"){l?.();return}o?.(A)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},ed="/setup",jw="/join",wu="/chat",Uw=x.lazy(()=>ch(()=>import("./setup-BjneFMVt.js"),__vite__mapDeps([0,1,2]))),Hw=x.lazy(()=>ch(()=>import("./join-BibCN958.js"),__vite__mapDeps([3,1,2]))),Yw=x.lazy(()=>ch(()=>import("./chat-ClPaG14_.js"),__vite__mapDeps([4,1,2]))),td=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},qw=()=>{const n=Iy(),{pathname:r}=Ba(),[{clusterInfo:{status:l}}]=p1();return x.useEffect(()=>{if(r==="/"){n(ed);return}if(td("pathname",r,"cluster status",l),l==="idle"&&r.startsWith(wu)){td("navigate to /setup"),n(ed);return}if(l==="available"&&!r.startsWith(wu)){td("navigate to /chat"),n(wu);return}},[n,r,l]),gS([{path:ed,element:ee.jsx(x.Suspense,{fallback:ee.jsx("div",{children:"Loading..."}),children:ee.jsx(Uw,{})})},{path:jw,element:ee.jsx(x.Suspense,{fallback:ee.jsx("div",{children:"Loading..."}),children:ee.jsx(Hw,{})})},{path:wu,element:ee.jsx(x.Suspense,{fallback:ee.jsx("div",{children:"Loading..."}),children:ee.jsx(Yw,{})})},{path:"*",element:ee.jsx("div",{children:"404 - Page Not Found"})}])},Gw=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Vw=()=>ee.jsx(Gw,{children:ee.jsx(zw,{children:ee.jsx(Lw,{children:ee.jsx(qw,{})})})});H2.createRoot(document.getElementById("root")).render(ee.jsx(x.StrictMode,{children:ee.jsx(FS,{children:ee.jsxs(xw,{children:[ee.jsx(v3,{}),ee.jsx(Vw,{})]})})}));export{c5 as $,ty as A,Qv as B,Xd as C,Tv as D,Xv as E,Ae as F,Qg as G,uT as H,Wv as I,cT as J,oT as K,tv as L,Zd as M,av as N,_5 as O,zu as P,Pv as Q,Pw as R,k3 as S,e3 as T,lT as U,Zw as V,r3 as W,dr as X,Xl as Y,LE as Z,ZE as _,rt as a,En as a0,eh as a1,sT as a2,Iv as a3,Qw as a4,b3 as a5,Kw as a6,Ww as a7,jt as a8,nT as a9,Fw as aa,Xw as ab,_3 as ac,xd as ad,Iw as ae,rr as af,BE as ag,Si as ah,ja as ai,ah as aj,Fg as ak,Jw as al,z3 as am,eA as an,ly as ao,aA as ap,nA as aq,L4 as ar,gy as as,j4 as at,H4 as au,La as av,ge as b,Ze as c,gn as d,Bl as e,tA as f,it as g,tn as h,Zl as i,ee as j,md as k,hi as l,Pt as m,p1 as n,Iy as o,h3 as p,Vv as q,x as r,Me as s,$3 as t,nn as u,Kd as v,li as w,rA as x,oC as y,mr as z}; diff --git a/src/frontend/dist/assets/join-BfPac9eY.js b/src/frontend/dist/assets/join-BibCN958.js similarity index 95% rename from src/frontend/dist/assets/join-BfPac9eY.js rename to src/frontend/dist/assets/join-BibCN958.js index 7bef1c99..5420579a 100644 --- a/src/frontend/dist/assets/join-BfPac9eY.js +++ b/src/frontend/dist/assets/join-BibCN958.js @@ -1,4 +1,4 @@ -import{i as c,n as l,r as u,j as e,T as r,s as h,A as a,p,L as m,S as y}from"./index-LpWXPQo4.js";import{M as x,J as f,N as j}from"./main-layout-HR9QJcmZ.js";/** +import{i as c,n as l,r as u,j as e,T as r,s as h,A as a,p,L as m,S as y}from"./index-CnnXn_hp.js";import{M as x,J as f,N as j}from"./main-layout-DYiPakMZ.js";/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/main-layout-HR9QJcmZ.js b/src/frontend/dist/assets/main-layout-DYiPakMZ.js similarity index 99% rename from src/frontend/dist/assets/main-layout-HR9QJcmZ.js rename to src/frontend/dist/assets/main-layout-DYiPakMZ.js index 1e74e0ef..4281aba1 100644 --- a/src/frontend/dist/assets/main-layout-HR9QJcmZ.js +++ b/src/frontend/dist/assets/main-layout-DYiPakMZ.js @@ -1,4 +1,4 @@ -import{y as yg,z as vg,r as L,C as Tg,D as xg,j as N,c as Ve,_ as Eg,R as ls,E as Sg,F as cs,G as F1,H as wg,J as Ag,k as Vt,K as Cg,M as ar,N as kg,a as gt,g as at,d as Ye,O as Gl,u as Ge,s as le,P as Aa,Q as Ig,U as Ca,b as St,V as Ng,m as ct,W as ka,X as H1,Y as Rg,Z as ja,w as Et,$ as Mg,a0 as Dg,a1 as Pg,a2 as Lg,a3 as mo,v as Xl,a4 as Og,a5 as _g,T as Xe,q as Wn,a6 as Bg,a7 as Fg,a8 as Kl,h as Ql,a9 as ra,aa as Hg,ab as Lc,B as zg,ac as Oc,ad as _c,ae as Ug,af as Ln,ag as Vg,ah as z1,ai as U1,aj as jg,ak as Bc,al as qg,am as $g,an as Wg,ao as Fc,i as mn,ap as Yg,aq as Hc,ar as Gg,as as zc,at as Os,I as Qr,au as V1,p as j1,n as qa,l as Ia,S as Ke,av as q1,x as $1}from"./index-LpWXPQo4.js";function Xg(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=yg("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(vg);return L.forwardRef(function(u,l){const c=Tg(n),{className:d,component:p="div",...f}=xg(u);return N.jsx(a,{as:p,ref:l,className:Ve(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function Kg(e,t){return L.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Qg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Zg(e){return parseFloat(e)}function Uc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function W1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function Vc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function qu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=L.useRef(t!==void 0),[s,o]=L.useState(n),u=a?t:s,l=L.useCallback(c=>{a||o(c)},[]);return[u,l]}function Jg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function e6(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{Jg(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Ve(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Ve(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const jc={disabled:!1};var t6=function(t){return t.scrollTop},ia="unmounted",zr="exited",Ur="entering",ci="entered",$u="exiting",Yn=(function(e){Eg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=zr,a.appearStatus=Ur):u=ci:r.unmountOnExit||r.mountOnEnter?u=ia:u=zr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ia?{status:zr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ur&&s!==ci&&(a=Ur):(s===Ur||s===ci)&&(a=$u)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ur){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ls.findDOMNode(this);s&&t6(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:ia})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[ls.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||jc.disabled){this.safeSetState({status:ci},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Ur},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:ci},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:ls.findDOMNode(this);if(!a||jc.disabled){this.safeSetState({status:zr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:$u},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:zr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:ls.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ia)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Sg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return cs.createElement(F1.Provider,{value:null},typeof s=="function"?s(i,o):cs.cloneElement(cs.Children.only(s),o))},t})(cs.Component);Yn.contextType=F1;Yn.propTypes={};function si(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:si,onEntering:si,onEntered:si,onExit:si,onExiting:si,onExited:si};Yn.UNMOUNTED=ia;Yn.EXITED=zr;Yn.ENTERING=Ur;Yn.ENTERED=ci;Yn.EXITING=$u;const Y1=e=>e.scrollTop;function Ys(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",An="bottom",Cn="right",rn="left",Zl="auto",$a=[nn,An,Cn,rn],Si="start",Na="end",n6="clippingParents",G1="viewport",$i="popper",r6="reference",qc=$a.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Na])},[]),X1=[].concat($a,[Zl]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Na])},[]),i6="beforeRead",a6="read",s6="afterRead",o6="beforeMain",u6="main",l6="afterMain",c6="beforeWrite",d6="write",h6="afterWrite",f6=[i6,a6,s6,o6,u6,l6,c6,d6,h6];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jl(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!En(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function m6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!En(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const g6={name:"applyStyles",enabled:!0,phase:"write",fn:p6,effect:m6,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Wr=Math.max,Gs=Math.min,wi=Math.round;function Wu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function K1(){return!/^((?!chrome|android).)*safari/i.test(Wu())}function Ai(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&En(e)&&(i=e.offsetWidth>0&&wi(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&wi(r.height)/e.offsetHeight||1);var s=Zr(e)?pn(e):window,o=s.visualViewport,u=!K1()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function e0(e){var t=Ai(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Q1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function b6(e){return["table","td","th"].indexOf($n(e))>=0}function Rr(e){return((Zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function go(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(Jl(e)?e.host:null)||Rr(e)}function $c(e){return!En(e)||or(e).position==="fixed"?null:e.offsetParent}function y6(e){var t=/firefox/i.test(Wu()),n=/Trident/i.test(Wu());if(n&&En(e)){var r=or(e);if(r.position==="fixed")return null}var i=go(e);for(Jl(i)&&(i=i.host);En(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Wa(e){for(var t=pn(e),n=$c(e);n&&b6(n)&&or(n).position==="static";)n=$c(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||y6(e)||t}function t0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Wr(e,Gs(t,n))}function v6(e,t,n){var r=ua(e,t,n);return r>n?n:r}function Z1(){return{top:0,right:0,bottom:0,left:0}}function J1(e){return Object.assign({},Z1(),e)}function ep(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,J1(typeof t!="number"?t:ep(t,$a))};function x6(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=t0(o),l=[rn,Cn].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=T6(i.padding,n),p=e0(a),f=u==="y"?nn:rn,b=u==="y"?An:Cn,y=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],S=s[u]-n.rects.reference[u],v=Wa(a),w=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,x=y/2-S/2,k=d[f],M=w-p[c]-d[b],C=w/2-p[c]/2+x,H=ua(k,C,M),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function E6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Q1(t.elements.popper,i)&&(t.elements.arrow=i))}const S6={name:"arrow",enabled:!0,phase:"main",fn:x6,effect:E6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ci(e){return e.split("-")[1]}var w6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function A6(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wi(n*i)/i||0,y:wi(r*i)/i||0}}function Wc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,y=b===void 0?0:b,S=typeof c=="function"?c({x:f,y}):{x:f,y};f=S.x,y=S.y;var v=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,k=nn,M=window;if(l){var C=Wa(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Rr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===Cn)&&a===Na){k=An;var V=d&&C===M&&M.visualViewport?M.visualViewport.height:C[H];y-=V-r.height,y*=u?1:-1}if(i===rn||(i===nn||i===An)&&a===Na){x=Cn;var P=d&&C===M&&M.visualViewport?M.visualViewport.width:C[z];f-=P-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&w6),W=c===!0?A6({x:f,y},pn(n)):{x:f,y};if(f=W.x,y=W.y,u){var G;return Object.assign({},$,(G={},G[k]=w?"0":"",G[x]=v?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",G))}return Object.assign({},$,(t={},t[k]=w?y+"px":"",t[x]=v?f+"px":"",t.transform="",t))}function C6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:Ci(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const k6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C6,data:{}};var ds={passive:!0};function I6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,ds)}),o&&u.addEventListener("resize",n.update,ds),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,ds)}),o&&u.removeEventListener("resize",n.update,ds)}}const N6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I6,data:{}};var R6={left:"right",right:"left",bottom:"top",top:"bottom"};function _s(e){return e.replace(/left|right|bottom|top/g,function(t){return R6[t]})}var M6={start:"end",end:"start"};function Yc(e){return e.replace(/start|end/g,function(t){return M6[t]})}function n0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function r0(e){return Ai(Rr(e)).left+n0(e).scrollLeft}function D6(e,t){var n=pn(e),r=Rr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=K1();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+r0(e),y:u}}function P6(e){var t,n=Rr(e),r=n0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+r0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Wr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function i0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function tp(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:En(e)&&i0(e)?e:tp(go(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=tp(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],i0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(la(go(s)))}function Yu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L6(e,t){var n=Ai(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Gc(e,t,n){return t===G1?Yu(D6(e,n)):Zr(t)?L6(t,n):Yu(P6(Rr(e)))}function O6(e){var t=la(go(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&En(e)?Wa(e):e;return Zr(r)?t.filter(function(i){return Zr(i)&&Q1(i,r)&&$n(i)!=="body"}):[]}function _6(e,t,n,r){var i=t==="clippingParents"?O6(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Gc(e,l,r);return u.top=Wr(c.top,u.top),u.right=Gs(c.right,u.right),u.bottom=Gs(c.bottom,u.bottom),u.left=Wr(c.left,u.left),u},Gc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function np(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?Ci(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case An:u={x:s,y:t.y+t.height};break;case Cn:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?t0(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Si:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Na:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Ra(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?n6:o,l=n.rootBoundary,c=l===void 0?G1:l,d=n.elementContext,p=d===void 0?$i:d,f=n.altBoundary,b=f===void 0?!1:f,y=n.padding,S=y===void 0?0:y,v=J1(typeof S!="number"?S:ep(S,$a)),w=p===$i?r6:$i,x=e.rects.popper,k=e.elements[b?w:p],M=_6(Zr(k)?k:k.contextElement||Rr(e.elements.popper),u,c,s),C=Ai(e.elements.reference),H=np({reference:C,element:x,placement:i}),z=Yu(Object.assign({},x,H)),V=p===$i?z:C,P={top:M.top-V.top+v.top,bottom:V.bottom-M.bottom+v.bottom,left:M.left-V.left+v.left,right:V.right-M.right+v.right},$=e.modifiersData.offset;if(p===$i&&$){var W=$[i];Object.keys(P).forEach(function(G){var q=[Cn,An].indexOf(G)>=0?1:-1,Y=[nn,An].indexOf(G)>=0?"y":"x";P[G]+=W[Y]*q})}return P}function B6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?X1:u,c=Ci(r),d=c?o?qc:qc.filter(function(b){return Ci(b)===c}):$a,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,y){return b[y]=Ra(e,{placement:y,boundary:i,rootBoundary:a,padding:s})[Un(y)],b},{});return Object.keys(f).sort(function(b,y){return f[b]-f[y]})}function F6(e){if(Un(e)===Zl)return[];var t=_s(e);return[Yc(e),t,Yc(t)]}function H6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,y=n.allowedAutoPlacements,S=t.options.placement,v=Un(S),w=v===S,x=u||(w||!b?[_s(S)]:F6(S)),k=[S].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Zl?B6(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:y}):Ie)},[]),M=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=k[0],P=0;P=0,Y=q?"width":"height",Q=Ra(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?Cn:rn:G?An:nn;M[Y]>C[Y]&&(ee=_s(ee));var de=_s(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var R=b?3:1,Ce=function(Ie){var Be=k.find(function(je){var _e=H.get(je);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=R;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const z6={name:"flip",enabled:!0,phase:"main",fn:H6,requiresIfExists:["offset"],data:{_skip:!1}};function Xc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kc(e){return[nn,Cn,An,rn].some(function(t){return e[t]>=0})}function U6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ra(t,{elementContext:"reference"}),o=Ra(t,{altBoundary:!0}),u=Xc(s,r),l=Xc(o,i,a),c=Kc(u),d=Kc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const V6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:U6};function j6(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,Cn].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function q6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=X1.reduce(function(c,d){return c[d]=j6(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const $6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q6};function W6(e){var t=e.state,n=e.name;t.modifiersData[n]=np({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Y6={name:"popperOffsets",enabled:!0,phase:"read",fn:W6,data:{}};function G6(e){return e==="x"?"y":"x"}function X6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,y=b===void 0?0:b,S=Ra(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),v=Un(t.placement),w=Ci(t.placement),x=!w,k=t0(v),M=G6(k),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=k==="y"?nn:rn,Y=k==="y"?An:Cn,Q=k==="y"?"height":"width",ee=C[k],de=ee+S[q],oe=ee-S[Y],R=f?-z[Q]/2:0,Ce=w===Si?H[Q]:z[Q],ve=w===Si?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?e0(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z1(),Be=Ie[q],je=Ie[Y],_e=ua(0,H[Q],xe[Q]),qe=x?H[Q]/2-R-_e-Be-P.mainAxis:Ce-_e-Be-P.mainAxis,Te=x?-H[Q]/2+R+_e+je+P.mainAxis:ve+_e+je+P.mainAxis,De=t.elements.arrow&&Wa(t.elements.arrow),Ne=De?k==="y"?De.clientTop||0:De.clientLeft||0:0,Qe=(G=$?.[k])!=null?G:0,Re=ee+qe-Qe-Ne,$e=ee+Te-Qe,wt=ua(f?Gs(de,Re):de,ee,f?Wr(oe,$e):oe);C[k]=wt,W[k]=wt-ee}if(o){var ht,st=k==="x"?nn:rn,Nt=k==="x"?An:Cn,ot=C[M],it=M==="y"?"height":"width",Ht=ot+S[st],Kt=ot-S[Nt],bt=[nn,rn].indexOf(v)!==-1,on=(ht=$?.[M])!=null?ht:0,K=bt?Ht:ot-H[it]-z[it]-on+P.altAxis,ie=bt?ot+H[it]+z[it]-on-P.altAxis:Kt,me=f&&bt?v6(K,ot,ie):ua(f?K:Ht,ot,f?ie:Kt);C[M]=me,W[M]=me-ot}t.modifiersData[r]=W}}const K6={name:"preventOverflow",enabled:!0,phase:"main",fn:X6,requiresIfExists:["offset"]};function Q6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z6(e){return e===pn(e)||!En(e)?n0(e):Q6(e)}function J6(e){var t=e.getBoundingClientRect(),n=wi(t.width)/e.offsetWidth||1,r=wi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function e5(e,t,n){n===void 0&&(n=!1);var r=En(t),i=En(t)&&J6(t),a=Rr(t),s=Ai(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||i0(a))&&(o=Z6(t)),En(t)?(u=Ai(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=r0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function t5(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function n5(e){var t=t5(e);return f6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function r5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function i5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Qc={placement:"bottom",modifiers:[],strategy:"absolute"};function Zc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function u5(e){return typeof e=="function"?e():e}const ip=L.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=L.useState(null),u=Vt(L.isValidElement(r)?Di(r):null,n);if(ar(()=>{a||o(u5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return Vc(n,s),()=>{Vc(n,null)}},[n,s,a]),a){if(L.isValidElement(r)){const l={ref:u};return L.cloneElement(r,l)}return r}return s&&kg.createPortal(r,s)});function l5(e){return gt("MuiPopper",e)}at("MuiPopper",["root"]);function c5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Gu(e){return typeof e=="function"?e():e}function d5(e){return e.nodeType!==void 0}const h5=e=>{const{classes:t}=e;return Ye({root:["root"]},l5,t)},f5={},p5=L.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:y,...S}=t,v=L.useRef(null),w=Vt(v,n),x=L.useRef(null),k=Vt(x,d),M=L.useRef(k);ar(()=>{M.current=k},[k]),L.useImperativeHandle(d,()=>x.current,[]);const C=c5(l,a),[H,z]=L.useState(C),[V,P]=L.useState(Gu(r));L.useEffect(()=>{x.current&&x.current.forceUpdate()}),L.useEffect(()=>{r&&P(Gu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=o5(V,v.current,{placement:C,...c,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=h5(t),G=f.root??"div",q=rp({elementType:G,externalSlotProps:p.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return N.jsx(G,{...q,children:typeof i=="function"?i($):i})}),m5=L.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=f5,popperRef:f,style:b,transition:y=!1,slotProps:S={},slots:v={},...w}=t,[x,k]=L.useState(!0),M=()=>{k(!1)},C=()=>{k(!0)};if(!u&&!c&&(!y||x))return null;let H;if(a)H=a;else if(r){const P=Gu(r);H=P&&d5(P)?fn(P).body:fn(null).body}const z=!c&&u&&(!y||x)?"none":void 0,V=y?{in:c,onEnter:M,onExited:C}:void 0;return N.jsx(ip,{disablePortal:o,container:H,children:N.jsx(p5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:y?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:S,slots:v,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),g5=le(m5,{name:"MuiPopper",slot:"Root"})({}),ap=L.forwardRef(function(t,n){const r=Gl(),i=Ge({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,slots:w,slotProps:x,...k}=i,M=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,...k};return N.jsx(g5,{as:s,direction:r?"rtl":"ltr",slots:{root:M},slotProps:x??u,...C,ref:n})});function hs(e){return parseInt(e,10)||0}const b5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function y5(e){for(const t in e)return!1;return!0}function Jc(e){return y5(e)||e.outerHeightStyle===0&&!e.overflowing}const v5=L.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=L.useRef(o!=null),c=L.useRef(null),d=Vt(n,c),p=L.useRef(null),f=L.useRef(null),b=L.useCallback(()=>{const x=c.current,k=f.current;if(!x||!k)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=C.width,k.value=x.value||t.placeholder||"x",k.value.slice(-1)===` +import{y as yg,z as vg,r as L,C as Tg,D as xg,j as N,c as Ve,_ as Eg,R as ls,E as Sg,F as cs,G as F1,H as wg,J as Ag,k as Vt,K as Cg,M as ar,N as kg,a as gt,g as at,d as Ye,O as Gl,u as Ge,s as le,P as Aa,Q as Ig,U as Ca,b as St,V as Ng,m as ct,W as ka,X as H1,Y as Rg,Z as ja,w as Et,$ as Mg,a0 as Dg,a1 as Pg,a2 as Lg,a3 as mo,v as Xl,a4 as Og,a5 as _g,T as Xe,q as Wn,a6 as Bg,a7 as Fg,a8 as Kl,h as Ql,a9 as ra,aa as Hg,ab as Lc,B as zg,ac as Oc,ad as _c,ae as Ug,af as Ln,ag as Vg,ah as z1,ai as U1,aj as jg,ak as Bc,al as qg,am as $g,an as Wg,ao as Fc,i as mn,ap as Yg,aq as Hc,ar as Gg,as as zc,at as Os,I as Qr,au as V1,p as j1,n as qa,l as Ia,S as Ke,av as q1,x as $1}from"./index-CnnXn_hp.js";function Xg(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=yg("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(vg);return L.forwardRef(function(u,l){const c=Tg(n),{className:d,component:p="div",...f}=xg(u);return N.jsx(a,{as:p,ref:l,className:Ve(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function Kg(e,t){return L.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Qg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Zg(e){return parseFloat(e)}function Uc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function W1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function Vc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function qu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=L.useRef(t!==void 0),[s,o]=L.useState(n),u=a?t:s,l=L.useCallback(c=>{a||o(c)},[]);return[u,l]}function Jg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function e6(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{Jg(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Ve(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Ve(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const jc={disabled:!1};var t6=function(t){return t.scrollTop},ia="unmounted",zr="exited",Ur="entering",ci="entered",$u="exiting",Yn=(function(e){Eg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=zr,a.appearStatus=Ur):u=ci:r.unmountOnExit||r.mountOnEnter?u=ia:u=zr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ia?{status:zr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ur&&s!==ci&&(a=Ur):(s===Ur||s===ci)&&(a=$u)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ur){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ls.findDOMNode(this);s&&t6(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:ia})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[ls.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||jc.disabled){this.safeSetState({status:ci},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Ur},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:ci},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:ls.findDOMNode(this);if(!a||jc.disabled){this.safeSetState({status:zr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:$u},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:zr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:ls.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ia)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Sg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return cs.createElement(F1.Provider,{value:null},typeof s=="function"?s(i,o):cs.cloneElement(cs.Children.only(s),o))},t})(cs.Component);Yn.contextType=F1;Yn.propTypes={};function si(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:si,onEntering:si,onEntered:si,onExit:si,onExiting:si,onExited:si};Yn.UNMOUNTED=ia;Yn.EXITED=zr;Yn.ENTERING=Ur;Yn.ENTERED=ci;Yn.EXITING=$u;const Y1=e=>e.scrollTop;function Ys(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",An="bottom",Cn="right",rn="left",Zl="auto",$a=[nn,An,Cn,rn],Si="start",Na="end",n6="clippingParents",G1="viewport",$i="popper",r6="reference",qc=$a.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Na])},[]),X1=[].concat($a,[Zl]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Na])},[]),i6="beforeRead",a6="read",s6="afterRead",o6="beforeMain",u6="main",l6="afterMain",c6="beforeWrite",d6="write",h6="afterWrite",f6=[i6,a6,s6,o6,u6,l6,c6,d6,h6];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jl(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!En(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function m6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!En(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const g6={name:"applyStyles",enabled:!0,phase:"write",fn:p6,effect:m6,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Wr=Math.max,Gs=Math.min,wi=Math.round;function Wu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function K1(){return!/^((?!chrome|android).)*safari/i.test(Wu())}function Ai(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&En(e)&&(i=e.offsetWidth>0&&wi(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&wi(r.height)/e.offsetHeight||1);var s=Zr(e)?pn(e):window,o=s.visualViewport,u=!K1()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function e0(e){var t=Ai(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Q1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function b6(e){return["table","td","th"].indexOf($n(e))>=0}function Rr(e){return((Zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function go(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(Jl(e)?e.host:null)||Rr(e)}function $c(e){return!En(e)||or(e).position==="fixed"?null:e.offsetParent}function y6(e){var t=/firefox/i.test(Wu()),n=/Trident/i.test(Wu());if(n&&En(e)){var r=or(e);if(r.position==="fixed")return null}var i=go(e);for(Jl(i)&&(i=i.host);En(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Wa(e){for(var t=pn(e),n=$c(e);n&&b6(n)&&or(n).position==="static";)n=$c(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||y6(e)||t}function t0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Wr(e,Gs(t,n))}function v6(e,t,n){var r=ua(e,t,n);return r>n?n:r}function Z1(){return{top:0,right:0,bottom:0,left:0}}function J1(e){return Object.assign({},Z1(),e)}function ep(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,J1(typeof t!="number"?t:ep(t,$a))};function x6(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=t0(o),l=[rn,Cn].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=T6(i.padding,n),p=e0(a),f=u==="y"?nn:rn,b=u==="y"?An:Cn,y=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],S=s[u]-n.rects.reference[u],v=Wa(a),w=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,x=y/2-S/2,k=d[f],M=w-p[c]-d[b],C=w/2-p[c]/2+x,H=ua(k,C,M),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function E6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Q1(t.elements.popper,i)&&(t.elements.arrow=i))}const S6={name:"arrow",enabled:!0,phase:"main",fn:x6,effect:E6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ci(e){return e.split("-")[1]}var w6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function A6(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wi(n*i)/i||0,y:wi(r*i)/i||0}}function Wc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,y=b===void 0?0:b,S=typeof c=="function"?c({x:f,y}):{x:f,y};f=S.x,y=S.y;var v=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,k=nn,M=window;if(l){var C=Wa(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Rr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===Cn)&&a===Na){k=An;var V=d&&C===M&&M.visualViewport?M.visualViewport.height:C[H];y-=V-r.height,y*=u?1:-1}if(i===rn||(i===nn||i===An)&&a===Na){x=Cn;var P=d&&C===M&&M.visualViewport?M.visualViewport.width:C[z];f-=P-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&w6),W=c===!0?A6({x:f,y},pn(n)):{x:f,y};if(f=W.x,y=W.y,u){var G;return Object.assign({},$,(G={},G[k]=w?"0":"",G[x]=v?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",G))}return Object.assign({},$,(t={},t[k]=w?y+"px":"",t[x]=v?f+"px":"",t.transform="",t))}function C6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:Ci(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const k6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C6,data:{}};var ds={passive:!0};function I6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,ds)}),o&&u.addEventListener("resize",n.update,ds),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,ds)}),o&&u.removeEventListener("resize",n.update,ds)}}const N6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I6,data:{}};var R6={left:"right",right:"left",bottom:"top",top:"bottom"};function _s(e){return e.replace(/left|right|bottom|top/g,function(t){return R6[t]})}var M6={start:"end",end:"start"};function Yc(e){return e.replace(/start|end/g,function(t){return M6[t]})}function n0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function r0(e){return Ai(Rr(e)).left+n0(e).scrollLeft}function D6(e,t){var n=pn(e),r=Rr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=K1();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+r0(e),y:u}}function P6(e){var t,n=Rr(e),r=n0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+r0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Wr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function i0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function tp(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:En(e)&&i0(e)?e:tp(go(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=tp(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],i0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(la(go(s)))}function Yu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L6(e,t){var n=Ai(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Gc(e,t,n){return t===G1?Yu(D6(e,n)):Zr(t)?L6(t,n):Yu(P6(Rr(e)))}function O6(e){var t=la(go(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&En(e)?Wa(e):e;return Zr(r)?t.filter(function(i){return Zr(i)&&Q1(i,r)&&$n(i)!=="body"}):[]}function _6(e,t,n,r){var i=t==="clippingParents"?O6(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Gc(e,l,r);return u.top=Wr(c.top,u.top),u.right=Gs(c.right,u.right),u.bottom=Gs(c.bottom,u.bottom),u.left=Wr(c.left,u.left),u},Gc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function np(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?Ci(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case An:u={x:s,y:t.y+t.height};break;case Cn:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?t0(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Si:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Na:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Ra(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?n6:o,l=n.rootBoundary,c=l===void 0?G1:l,d=n.elementContext,p=d===void 0?$i:d,f=n.altBoundary,b=f===void 0?!1:f,y=n.padding,S=y===void 0?0:y,v=J1(typeof S!="number"?S:ep(S,$a)),w=p===$i?r6:$i,x=e.rects.popper,k=e.elements[b?w:p],M=_6(Zr(k)?k:k.contextElement||Rr(e.elements.popper),u,c,s),C=Ai(e.elements.reference),H=np({reference:C,element:x,placement:i}),z=Yu(Object.assign({},x,H)),V=p===$i?z:C,P={top:M.top-V.top+v.top,bottom:V.bottom-M.bottom+v.bottom,left:M.left-V.left+v.left,right:V.right-M.right+v.right},$=e.modifiersData.offset;if(p===$i&&$){var W=$[i];Object.keys(P).forEach(function(G){var q=[Cn,An].indexOf(G)>=0?1:-1,Y=[nn,An].indexOf(G)>=0?"y":"x";P[G]+=W[Y]*q})}return P}function B6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?X1:u,c=Ci(r),d=c?o?qc:qc.filter(function(b){return Ci(b)===c}):$a,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,y){return b[y]=Ra(e,{placement:y,boundary:i,rootBoundary:a,padding:s})[Un(y)],b},{});return Object.keys(f).sort(function(b,y){return f[b]-f[y]})}function F6(e){if(Un(e)===Zl)return[];var t=_s(e);return[Yc(e),t,Yc(t)]}function H6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,y=n.allowedAutoPlacements,S=t.options.placement,v=Un(S),w=v===S,x=u||(w||!b?[_s(S)]:F6(S)),k=[S].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Zl?B6(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:y}):Ie)},[]),M=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=k[0],P=0;P=0,Y=q?"width":"height",Q=Ra(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?Cn:rn:G?An:nn;M[Y]>C[Y]&&(ee=_s(ee));var de=_s(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var R=b?3:1,Ce=function(Ie){var Be=k.find(function(je){var _e=H.get(je);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=R;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const z6={name:"flip",enabled:!0,phase:"main",fn:H6,requiresIfExists:["offset"],data:{_skip:!1}};function Xc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kc(e){return[nn,Cn,An,rn].some(function(t){return e[t]>=0})}function U6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ra(t,{elementContext:"reference"}),o=Ra(t,{altBoundary:!0}),u=Xc(s,r),l=Xc(o,i,a),c=Kc(u),d=Kc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const V6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:U6};function j6(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,Cn].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function q6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=X1.reduce(function(c,d){return c[d]=j6(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const $6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q6};function W6(e){var t=e.state,n=e.name;t.modifiersData[n]=np({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Y6={name:"popperOffsets",enabled:!0,phase:"read",fn:W6,data:{}};function G6(e){return e==="x"?"y":"x"}function X6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,y=b===void 0?0:b,S=Ra(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),v=Un(t.placement),w=Ci(t.placement),x=!w,k=t0(v),M=G6(k),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=k==="y"?nn:rn,Y=k==="y"?An:Cn,Q=k==="y"?"height":"width",ee=C[k],de=ee+S[q],oe=ee-S[Y],R=f?-z[Q]/2:0,Ce=w===Si?H[Q]:z[Q],ve=w===Si?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?e0(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z1(),Be=Ie[q],je=Ie[Y],_e=ua(0,H[Q],xe[Q]),qe=x?H[Q]/2-R-_e-Be-P.mainAxis:Ce-_e-Be-P.mainAxis,Te=x?-H[Q]/2+R+_e+je+P.mainAxis:ve+_e+je+P.mainAxis,De=t.elements.arrow&&Wa(t.elements.arrow),Ne=De?k==="y"?De.clientTop||0:De.clientLeft||0:0,Qe=(G=$?.[k])!=null?G:0,Re=ee+qe-Qe-Ne,$e=ee+Te-Qe,wt=ua(f?Gs(de,Re):de,ee,f?Wr(oe,$e):oe);C[k]=wt,W[k]=wt-ee}if(o){var ht,st=k==="x"?nn:rn,Nt=k==="x"?An:Cn,ot=C[M],it=M==="y"?"height":"width",Ht=ot+S[st],Kt=ot-S[Nt],bt=[nn,rn].indexOf(v)!==-1,on=(ht=$?.[M])!=null?ht:0,K=bt?Ht:ot-H[it]-z[it]-on+P.altAxis,ie=bt?ot+H[it]+z[it]-on-P.altAxis:Kt,me=f&&bt?v6(K,ot,ie):ua(f?K:Ht,ot,f?ie:Kt);C[M]=me,W[M]=me-ot}t.modifiersData[r]=W}}const K6={name:"preventOverflow",enabled:!0,phase:"main",fn:X6,requiresIfExists:["offset"]};function Q6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z6(e){return e===pn(e)||!En(e)?n0(e):Q6(e)}function J6(e){var t=e.getBoundingClientRect(),n=wi(t.width)/e.offsetWidth||1,r=wi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function e5(e,t,n){n===void 0&&(n=!1);var r=En(t),i=En(t)&&J6(t),a=Rr(t),s=Ai(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||i0(a))&&(o=Z6(t)),En(t)?(u=Ai(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=r0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function t5(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function n5(e){var t=t5(e);return f6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function r5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function i5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Qc={placement:"bottom",modifiers:[],strategy:"absolute"};function Zc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function u5(e){return typeof e=="function"?e():e}const ip=L.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=L.useState(null),u=Vt(L.isValidElement(r)?Di(r):null,n);if(ar(()=>{a||o(u5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return Vc(n,s),()=>{Vc(n,null)}},[n,s,a]),a){if(L.isValidElement(r)){const l={ref:u};return L.cloneElement(r,l)}return r}return s&&kg.createPortal(r,s)});function l5(e){return gt("MuiPopper",e)}at("MuiPopper",["root"]);function c5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Gu(e){return typeof e=="function"?e():e}function d5(e){return e.nodeType!==void 0}const h5=e=>{const{classes:t}=e;return Ye({root:["root"]},l5,t)},f5={},p5=L.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:y,...S}=t,v=L.useRef(null),w=Vt(v,n),x=L.useRef(null),k=Vt(x,d),M=L.useRef(k);ar(()=>{M.current=k},[k]),L.useImperativeHandle(d,()=>x.current,[]);const C=c5(l,a),[H,z]=L.useState(C),[V,P]=L.useState(Gu(r));L.useEffect(()=>{x.current&&x.current.forceUpdate()}),L.useEffect(()=>{r&&P(Gu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=o5(V,v.current,{placement:C,...c,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=h5(t),G=f.root??"div",q=rp({elementType:G,externalSlotProps:p.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return N.jsx(G,{...q,children:typeof i=="function"?i($):i})}),m5=L.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=f5,popperRef:f,style:b,transition:y=!1,slotProps:S={},slots:v={},...w}=t,[x,k]=L.useState(!0),M=()=>{k(!1)},C=()=>{k(!0)};if(!u&&!c&&(!y||x))return null;let H;if(a)H=a;else if(r){const P=Gu(r);H=P&&d5(P)?fn(P).body:fn(null).body}const z=!c&&u&&(!y||x)?"none":void 0,V=y?{in:c,onEnter:M,onExited:C}:void 0;return N.jsx(ip,{disablePortal:o,container:H,children:N.jsx(p5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:y?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:S,slots:v,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),g5=le(m5,{name:"MuiPopper",slot:"Root"})({}),ap=L.forwardRef(function(t,n){const r=Gl(),i=Ge({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,slots:w,slotProps:x,...k}=i,M=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,...k};return N.jsx(g5,{as:s,direction:r?"rtl":"ltr",slots:{root:M},slotProps:x??u,...C,ref:n})});function hs(e){return parseInt(e,10)||0}const b5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function y5(e){for(const t in e)return!1;return!0}function Jc(e){return y5(e)||e.outerHeightStyle===0&&!e.overflowing}const v5=L.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=L.useRef(o!=null),c=L.useRef(null),d=Vt(n,c),p=L.useRef(null),f=L.useRef(null),b=L.useCallback(()=>{const x=c.current,k=f.current;if(!x||!k)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=C.width,k.value=x.value||t.placeholder||"x",k.value.slice(-1)===` `&&(k.value+=" ");const H=C.boxSizing,z=hs(C.paddingBottom)+hs(C.paddingTop),V=hs(C.borderBottomWidth)+hs(C.borderTopWidth),P=k.scrollHeight;k.value="x";const $=k.scrollHeight;let W=P;a&&(W=Math.max(Number(a)*$,W)),i&&(W=Math.min(Number(i)*$,W)),W=Math.max(W,$);const G=W+(H==="border-box"?z+V:0),q=Math.abs(W-P)<=1;return{outerHeightStyle:G,overflowing:q}},[i,a,t.placeholder]),y=Aa(()=>{const x=c.current,k=b();if(!x||!k||Jc(k))return!1;const M=k.outerHeightStyle;return p.current!=null&&p.current!==M}),S=L.useCallback(()=>{const x=c.current,k=b();if(!x||!k||Jc(k))return;const M=k.outerHeightStyle;p.current!==M&&(p.current=M,x.style.height=`${M}px`),x.style.overflow=k.overflowing?"hidden":""},[b]),v=L.useRef(-1);ar(()=>{const x=W1(S),k=c?.current;if(!k)return;const M=sr(k);M.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{y()&&(C.unobserve(k),cancelAnimationFrame(v.current),S(),v.current=requestAnimationFrame(()=>{C.observe(k)}))}),C.observe(k)),()=>{x.clear(),cancelAnimationFrame(v.current),M.removeEventListener("resize",x),C&&C.disconnect()}},[b,S,y]),ar(()=>{S()});const w=x=>{l||S();const k=x.target,M=k.value.length,C=k.value.endsWith(` `),H=k.selectionStart===M;C&&H&&k.setSelectionRange(M,M),r&&r(x)};return N.jsxs(L.Fragment,{children:[N.jsx("textarea",{value:o,onChange:w,ref:d,rows:a,style:s,...u}),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...b5.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function a0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const sp=L.createContext(void 0);function s0(){return L.useContext(sp)}function ed(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function op(e,t=!1){return e&&(ed(e.value)&&e.value!==""||t&&ed(e.defaultValue)&&e.defaultValue!=="")}function IL(e){return e.startAdornment}var td;const bo=(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${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yo=(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]},T5=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:f,type:b}=e,y={root:["root",`color${St(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${St(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ye(y,Ng,t)},vo=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bo})(ct(({theme:e})=>({...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",[`&.${ka.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),To=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ka.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ka.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),nd=Ig({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xo=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:b,error:y,fullWidth:S=!1,id:v,inputComponent:w="input",inputProps:x={},inputRef:k,margin:M,maxRows:C,minRows:H,multiline:z=!1,name:V,onBlur:P,onChange:$,onClick:W,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:Q,readOnly:ee,renderSuffix:de,rows:oe,size:R,slotProps:Ce={},slots:ve={},startAdornment:B,type:xe="text",value:Ie,...Be}=r,je=x.value!=null?x.value:Ie,{current:_e}=L.useRef(je!=null),qe=L.useRef(),Te=L.useCallback(Se=>{},[]),De=Vt(qe,k,x.ref,Te),[Ne,Qe]=L.useState(!1),Re=s0(),$e=a0({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Re?Re.focused:Ne,L.useEffect(()=>{!Re&&p&&Ne&&(Qe(!1),P&&P())},[Re,p,Ne,P]);const wt=Re&&Re.onFilled,ht=Re&&Re.onEmpty,st=L.useCallback(Se=>{op(Se)?wt&&wt():ht&&ht()},[wt,ht]);ar(()=>{_e&&st({value:je})},[je,st,_e]);const Nt=Se=>{G&&G(Se),x.onFocus&&x.onFocus(Se),Re&&Re.onFocus?Re.onFocus(Se):Qe(!0)},ot=Se=>{P&&P(Se),x.onBlur&&x.onBlur(Se),Re&&Re.onBlur?Re.onBlur(Se):Qe(!1)},it=(Se,...Rt)=>{if(!_e){const yt=Se.target||qe.current;if(yt==null)throw new Error(H1(1));st({value:yt.value})}x.onChange&&x.onChange(Se,...Rt),$&&$(Se,...Rt)};L.useEffect(()=>{st(qe.current)},[]);const Ht=Se=>{qe.current&&Se.currentTarget===Se.target&&qe.current.focus(),W&&W(Se)};let Kt=w,bt=x;z&&Kt==="input"&&(oe?bt={type:void 0,minRows:oe,maxRows:oe,...bt}:bt={type:void 0,maxRows:C,minRows:H,...bt},Kt=v5);const on=Se=>{st(Se.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};L.useEffect(()=>{Re&&Re.setAdornedStart(!!B)},[Re,B]);const K={...r,color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:Re,fullWidth:S,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:B,type:xe},ie=T5(K),me=ve.root||l.Root||vo,Ee=Ce.root||c.root||{},Pe=ve.input||l.Input||To;return bt={...bt,...Ce.input??c.input},N.jsxs(L.Fragment,{children:[!f&&typeof nd=="function"&&(td||(td=N.jsx(nd,{}))),N.jsxs(me,{...Ee,ref:n,onClick:Ht,...Be,...!Ca(me)&&{ownerState:{...K,...Ee.ownerState}},className:Ve(ie.root,Ee.className,o,ee&&"MuiInputBase-readOnly"),children:[B,N.jsx(sp.Provider,{value:null,children:N.jsx(Pe,{"aria-invalid":$e.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:$e.disabled,id:v,onAnimationStart:on,name:V,placeholder:Q,readOnly:ee,required:$e.required,rows:oe,value:je,onKeyDown:q,onKeyUp:Y,type:xe,...bt,...!Ca(Pe)&&{as:Kt,ownerState:{...K,...bt.ownerState}},ref:De,className:Ve(ie.input,bt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:it,onFocus:Nt})}),b,de?de({...$e,startAdornment:B}):null]})]})});function x5(e){return gt("MuiInput",e)}const Wi={...ka,...at("MuiInput",["root","underline","input"])};function E5(e){return gt("MuiFilledInput",e)}const Lr={...ka,...at("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},S5=Rg(N.jsx("path",{d:"M7 10l5 5 5-5z"})),w5={entering:{opacity:1},entered:{opacity:1}},Xu=L.forwardRef(function(t,n){const r=ja(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:b,onExiting:y,style:S,timeout:v=i,TransitionComponent:w=Yn,...x}=t,k=L.useRef(null),M=Vt(k,Di(o),n),C=q=>Y=>{if(q){const Q=k.current;Y===void 0?q(Q):q(Q,Y)}},H=C(p),z=C((q,Y)=>{Y1(q);const Q=Ys({style:S,timeout:v,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",Q),q.style.transition=r.transitions.create("opacity",Q),c&&c(q,Y)}),V=C(d),P=C(y),$=C(q=>{const Y=Ys({style:S,timeout:v,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),f&&f(q)}),W=C(b),G=q=>{a&&a(k.current,q)};return N.jsx(w,{appear:s,in:l,nodeRef:k,onEnter:z,onEntered:V,onEntering:H,onExit:$,onExited:W,onExiting:P,addEndListener:G,timeout:v,...x,children:(q,{ownerState:Y,...Q})=>L.cloneElement(o,{style:{opacity:0,visibility:q==="exited"&&!l?"hidden":void 0,...w5[q],...S,...o.props.style},ref:M,...Q})})});function A5(e){return gt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const C5=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},A5,t)},k5=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),up=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:b,...y}=r,S={...r,component:s,invisible:o},v=C5(S),w={transition:f,root:l.Root,...p},x={...c,...d},k={component:s,slots:w,slotProps:x},[M,C]=Et("root",{elementType:k5,externalForwardedProps:k,className:Ve(v.root,a),ownerState:S}),[H,z]=Et("transition",{elementType:Xu,externalForwardedProps:k,ownerState:S});return N.jsx(H,{in:u,timeout:b,...y,...z,children:N.jsx(M,{"aria-hidden":!0,...C,classes:v,ref:n,children:i})})}),I5=at("MuiBox",["root"]),N5=Pg(),Yr=Xg({themeId:Dg,defaultTheme:N5,defaultClassName:I5.root,generateClassName:Mg.generate});function lp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function R5(e){const t=fn(e);return t.body===e?sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ca(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rd(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function M5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function id(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!M5(s);o&&u&&ca(s,i)})}function jo(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function D5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(R5(r)){const s=lp(sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rd(r)+s}px`;const o=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${rd(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=fn(r).body;else{const s=r.parentElement,o=sr(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function P5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class L5{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ca(t.modalRef,!1);const i=P5(n);id(n,t.mount,t.modalRef,i,!0);const a=jo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=jo(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=D5(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=jo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ca(t.modalRef,n),id(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&ca(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const O5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function B5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function F5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||B5(e))}function H5(e){const t=[],n=[];return Array.from(e.querySelectorAll(O5)).forEach((r,i)=>{const a=_5(r);a===-1||!F5(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function z5(){return!0}function U5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=H5,isEnabled:s=z5,open:o}=e,u=L.useRef(!1),l=L.useRef(null),c=L.useRef(null),d=L.useRef(null),p=L.useRef(null),f=L.useRef(!1),b=L.useRef(null),y=Vt(Di(t),b),S=L.useRef(null);L.useEffect(()=>{!o||!b.current||(f.current=!n)},[n,o]),L.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),f.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),L.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current),k=H=>{S.current=H,!(r||!s()||H.key!=="Tab")&&x.activeElement===b.current&&H.shiftKey&&(u.current=!0,c.current&&c.current.focus())},M=()=>{const H=b.current;if(H===null)return;if(!x.hasFocus()||!s()||u.current){u.current=!1;return}if(H.contains(x.activeElement)||r&&x.activeElement!==l.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let z=[];if((x.activeElement===l.current||x.activeElement===c.current)&&(z=a(b.current)),z.length>0){const V=!!(S.current?.shiftKey&&S.current?.key==="Tab"),P=z[0],$=z[z.length-1];typeof P!="string"&&typeof $!="string"&&(V?$.focus():P.focus())}else H.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",k,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",M),x.removeEventListener("keydown",k,!0)}},[n,r,i,s,o,a]);const v=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0,p.current=x.target;const k=t.props.onFocus;k&&k(x)},w=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0};return N.jsxs(L.Fragment,{children:[N.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:y,onFocus:v}),N.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function V5(e){return typeof e=="function"?e():e}function j5(e){return e?e.props.hasOwnProperty("in"):!1}const ad=()=>{},fs=new L5;function q5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=L.useRef({}),p=L.useRef(null),f=L.useRef(null),b=Vt(f,c),[y,S]=L.useState(!l),v=j5(o);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>fn(p.current),k=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),M=()=>{fs.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Aa(()=>{const Y=V5(t)||x().body;fs.add(k(),Y),f.current&&M()}),H=()=>fs.isTopModal(k()),z=Aa(Y=>{p.current=Y,Y&&(l&&H()?M():f.current&&ca(f.current,w))}),V=L.useCallback(()=>{fs.remove(k(),w)},[w]);L.useEffect(()=>()=>{V()},[V]),L.useEffect(()=>{l?C():(!v||!i)&&V()},[l,V,v,i,C]);const P=Y=>Q=>{Y.onKeyDown?.(Q),!(Q.key!=="Escape"||Q.which===229||!H())&&(n||(Q.stopPropagation(),u&&u(Q,"escapeKeyDown")))},$=Y=>Q=>{Y.onClick?.(Q),Q.target===Q.currentTarget&&u&&u(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Lg(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...Y};return{role:"presentation",...ee,onKeyDown:P(ee),ref:b}},getBackdropProps:(Y={})=>{const Q=Y;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const Y=()=>{S(!1),a&&a()},Q=()=>{S(!0),s&&s(),i&&V()};return{onEnter:Uc(Y,o?.props.onEnter??ad),onExited:Uc(Q,o?.props.onExited??ad)}},rootRef:b,portalRef:z,isTopModal:H,exited:y,hasTransition:v}}function $5(e){return gt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const W5=e=>{const{open:t,exited:n,classes:r}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$5,r)},Y5=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),G5=le(up,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),cp=L.forwardRef(function(t,n){const r=Ge({name:"MuiModal",props:t}),{BackdropComponent:i=G5,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:k=!1,keepMounted:M=!1,onClose:C,onTransitionEnter:H,onTransitionExited:z,open:V,slotProps:P={},slots:$={},theme:W,...G}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:v,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:k,keepMounted:M},{getRootProps:Y,getBackdropProps:Q,getTransitionProps:ee,portalRef:de,isTopModal:oe,exited:R,hasTransition:Ce}=q5({...q,rootRef:n}),ve={...q,exited:R},B=W5(ve),xe={};if(l.props.tabIndex===void 0&&(xe.tabIndex="-1"),Ce){const{onEnter:Te,onExited:De}=ee();xe.onEnter=Te,xe.onExited=De}const Ie={slots:{root:p.Root,backdrop:p.Backdrop,...$},slotProps:{...f,...P}},[Be,je]=Et("root",{ref:n,elementType:Y5,externalForwardedProps:{...Ie,...G,component:d},getSlotProps:Y,ownerState:ve,className:Ve(o,B?.root,!ve.open&&ve.exited&&B?.hidden)}),[_e,qe]=Et("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>Q({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:Ve(a?.className,B?.backdrop),ownerState:ve});return!M&&!V&&(!Ce||R)?null:N.jsx(ip,{ref:de,container:c,disablePortal:v,children:N.jsxs(Be,{...je,children:[!k&&i?N.jsx(_e,{...qe}):null,N.jsx(U5,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:oe,open:V,children:L.cloneElement(l,xe)})]})})});function X5(e){return gt("MuiDialog",e)}const qo=at("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),dp=L.createContext({}),K5=le(up,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Q5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ye(s,X5,t)},Z5=le(cp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),J5=le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),eb=le(mo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ct(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${qo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${qo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),tb=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialog"}),i=ja(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:S="sm",onClick:v,onClose:w,open:x,PaperComponent:k=mo,PaperProps:M={},scroll:C="paper",slots:H={},slotProps:z={},TransitionComponent:V=Xu,transitionDuration:P=a,TransitionProps:$,...W}=r,G={...r,disableEscapeKeyDown:f,fullScreen:b,fullWidth:y,maxWidth:S,scroll:C},q=Q5(G),Y=L.useRef(),Q=Qe=>{Y.current=Qe.target===Qe.currentTarget},ee=Qe=>{v&&v(Qe),Y.current&&(Y.current=null,w&&w(Qe,"backdropClick"))},de=Xl(o),oe=L.useMemo(()=>({titleId:de}),[de]),R={transition:V,...H},Ce={transition:$,paper:M,backdrop:c,...z},ve={slots:R,slotProps:Ce},[B,xe]=Et("root",{elementType:Z5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.root,p),ref:n}),[Ie,Be]=Et("backdrop",{elementType:K5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G}),[je,_e]=Et("paper",{elementType:eb,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.paper,M.className)}),[qe,Te]=Et("container",{elementType:J5,externalForwardedProps:ve,ownerState:G,className:q.container}),[De,Ne]=Et("transition",{elementType:Xu,externalForwardedProps:ve,ownerState:G,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return N.jsx(B,{closeAfterTransition:!0,slots:{backdrop:Ie},slotProps:{backdrop:{transitionDuration:P,as:l,...Be}},disableEscapeKeyDown:f,onClose:w,open:x,onClick:ee,...xe,...W,children:N.jsx(De,{...Ne,children:N.jsx(qe,{onMouseDown:Q,...Te,children:N.jsx(je,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":de,"aria-modal":u,..._e,children:N.jsx(dp.Provider,{value:oe,children:d})})})})})});function nb(e){return gt("MuiDialogActions",e)}at("MuiDialogActions",["root","spacing"]);const rb=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},nb,t)},ib=le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ab=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=rb(o);return N.jsx(ib,{className:Ve(u.root,i),ownerState:o,ref:n,...s})}),sb=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},Og,t)},ob=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ct(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${_g.root} + &`]:{paddingTop:0}}}]}))),ub=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=sb(o);return N.jsx(ob,{className:Ve(u.root,i),ownerState:o,ref:n,...s})});function lb(e){return gt("MuiDialogContentText",e)}at("MuiDialogContentText",["root"]);const cb=e=>{const{classes:t}=e,r=Ye({root:["root"]},lb,t);return{...t,...r}},db=le(Xe,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),hb=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=cb(s);return N.jsx(db,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Ve(o.root,a),...r,classes:o})}),fb=e=>{const{classes:t}=e;return Ye({root:["root"]},Bg,t)},pb=le(Xe,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),mb=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=fb(o),{titleId:l=a}=L.useContext(dp);return N.jsx(pb,{component:"h2",className:Ve(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),gb=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:u}=e;return Ye({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Fg,r)},bb=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ct(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),yb=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ct(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ku=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:o="horizontal",component:u=a||o==="vertical"?"div":"hr",flexItem:l=!1,light:c=!1,role:d=u!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...b}=r,y={...r,absolute:i,component:u,flexItem:l,light:c,orientation:o,role:d,textAlign:p,variant:f},S=gb(y);return N.jsx(bb,{as:u,className:Ve(S.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(u!=="hr"||o==="vertical")?o:void 0,...b,children:a?N.jsx(yb,{className:S.wrapper,ownerState:y,children:a}):null})});Ku&&(Ku.muiSkipListHighlight=!0);const vb=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ye(u,E5,t);return{...t,...l}},Tb=le(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bo(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Lr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Lr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{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"},[`&.${Lr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Lr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,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(.${Lr.disabled}, .${Lr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Lr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ql()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),xb=le(To,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),hp=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...b}=r,y={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:f},S=vb(r),v={root:{ownerState:y},input:{ownerState:y}},w=d??s?Kl(v,d??s):v,x=p.root??a.Root??Tb,k=p.input??a.Input??xb;return N.jsx(xo,{slots:{root:x,input:k},slotProps:w,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:S})});hp.muiName="Input";function Qu(e){return`scale(${e}, ${e**2})`}const Eb={entering:{opacity:1,transform:Qu(1)},entered:{opacity:1,transform:"none"}},$o=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xs=L.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:f,style:b,timeout:y="auto",TransitionComponent:S=Yn,...v}=t,w=ra(),x=L.useRef(),k=ja(),M=L.useRef(null),C=Vt(M,Di(a),n),H=Y=>Q=>{if(Y){const ee=M.current;Q===void 0?Y(ee):Y(ee,Q)}},z=H(c),V=H((Y,Q)=>{Y1(Y);const{duration:ee,delay:de,easing:oe}=Ys({style:b,timeout:y,easing:s},{mode:"enter"});let R;y==="auto"?(R=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=R):R=ee,Y.style.transition=[k.transitions.create("opacity",{duration:R,delay:de}),k.transitions.create("transform",{duration:$o?R:R*.666,delay:de,easing:oe})].join(","),u&&u(Y,Q)}),P=H(l),$=H(f),W=H(Y=>{const{duration:Q,delay:ee,easing:de}=Ys({style:b,timeout:y,easing:s},{mode:"exit"});let oe;y==="auto"?(oe=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=oe):oe=Q,Y.style.transition=[k.transitions.create("opacity",{duration:oe,delay:ee}),k.transitions.create("transform",{duration:$o?oe:oe*.666,delay:$o?ee:ee||oe*.333,easing:de})].join(","),Y.style.opacity=0,Y.style.transform=Qu(.75),d&&d(Y)}),G=H(p),q=Y=>{y==="auto"&&w.start(x.current||0,Y),r&&r(M.current,Y)};return N.jsx(S,{appear:i,in:o,nodeRef:M,onEnter:V,onEntered:P,onEntering:z,onExit:W,onExited:G,onExiting:$,addEndListener:q,timeout:y==="auto"?null:y,...v,children:(Y,{ownerState:Q,...ee})=>L.cloneElement(a,{style:{opacity:0,transform:Qu(.75),visibility:Y==="exited"&&!o?"hidden":void 0,...Eb[Y],...b,...a.props.style},ref:C,...ee})})});Xs&&(Xs.muiSupportAuto=!0);const Sb=e=>{const{classes:t,disableUnderline:n}=e,i=Ye({root:["root",!n&&"underline"],input:["input"]},x5,t);return{...t,...i}},wb=le(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bo(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${Wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Wi.disabled}, .${Wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ql()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Ab=le(To,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),fp=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:p="text",...f}=r,b=Sb(r),S={root:{ownerState:{disableUnderline:i}}},v=c??s?Kl(c??s,S):S,w=d.root??a.Root??wb,x=d.input??a.Input??Ab;return N.jsx(xo,{slots:{root:w,input:x},slotProps:v,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:p,...f,classes:b})});fp.muiName="Input";const nr=L.createContext({});function Cb(e){return gt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const kb=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ye({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Cb,t)},Ib=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),pp=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=L.useMemo(()=>({dense:o}),[o]),p={...r,component:s,dense:o,disablePadding:u},f=kb(p);return N.jsx(nr.Provider,{value:d,children:N.jsxs(Ib,{as:s,className:Ve(f.root,a),ref:n,ownerState:p,...c,children:[l,i]})})});function Nb(e){return gt("MuiListItem",e)}at("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Rb=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Mb(e){return gt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const Db=e=>{const{disableGutters:t,classes:n}=e;return Ye({root:["root",t&&"disableGutters"]},Mb,n)},Pb=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),mp=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=L.useContext(nr),o={...r,disableGutters:s.disableGutters},u=Db(o);return N.jsx(Pb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});mp.muiName="ListItemSecondaryAction";const Lb=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Ob=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return Ye({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},Nb,n)},_b=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:Lb})(ct(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Rb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Bb=le("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Fb=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:b=!1,disablePadding:y=!1,divider:S=!1,secondaryAction:v,slotProps:w={},slots:x={},...k}=r,M=L.useContext(nr),C=L.useMemo(()=>({dense:f||M.dense||!1,alignItems:i,disableGutters:b}),[i,M.dense,f,b]),H=L.useRef(null),z=L.Children.toArray(a),V=z.length&&Kg(z[z.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:C.dense,disableGutters:b,disablePadding:y,divider:S,hasSecondaryAction:V},$=Ob(P),W=Vt(H,n),G=x.root||u.Root||_b,q=w.root||l.root||{},Y={className:Ve($.root,q.className,s),...k};let Q=o||"li";return V?(Q=!Y.component&&!o?"div":Q,c==="li"&&(Q==="li"?Q="div":Y.component==="li"&&(Y.component="div")),N.jsx(nr.Provider,{value:C,children:N.jsxs(Bb,{as:c,className:Ve($.container,d),ref:W,ownerState:P,...p,children:[N.jsx(G,{...q,...!Ca(G)&&{as:Q,ownerState:{...P,...q.ownerState}},...Y,children:z}),z.pop()]})})):N.jsx(nr.Provider,{value:C,children:N.jsxs(G,{...q,as:Q,ref:W,...!Ca(G)&&{ownerState:{...P,...q.ownerState}},...Y,children:[z,v&&N.jsx(mp,{children:v})]})})}),Hb=e=>{const{alignItems:t,classes:n}=e;return Ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Hg,n)},zb=le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ub=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=L.useContext(nr),o={...r,alignItems:s.alignItems},u=Hb(o);return N.jsx(zb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});function Vb(e){return gt("MuiListItemText",e)}const hi=at("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jb=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ye({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Vb,t)},qb=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hi.primary}`]:t.primary},{[`& .${hi.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Lc.root}:where(& .${hi.primary})`]:{display:"block"},[`.${Lc.root}:where(& .${hi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),$b=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:f={},...b}=r,{dense:y}=L.useContext(nr);let S=u??i,v=c;const w={...r,disableTypography:s,inset:o,primary:!!S,secondary:!!v,dense:y},x=jb(w),k={slots:p,slotProps:{primary:l,secondary:d,...f}},[M,C]=Et("root",{className:Ve(x.root,a),elementType:qb,externalForwardedProps:{...k,...b},ownerState:w,ref:n}),[H,z]=Et("primary",{className:x.primary,elementType:Xe,externalForwardedProps:k,ownerState:w}),[V,P]=Et("secondary",{className:x.secondary,elementType:Xe,externalForwardedProps:k,ownerState:w});return S!=null&&S.type!==Xe&&!s&&(S=N.jsx(H,{variant:y?"body2":"body1",component:z?.variant?void 0:"span",...z,children:S})),v!=null&&v.type!==Xe&&!s&&(v=N.jsx(V,{variant:"body2",color:"textSecondary",...P,children:v})),N.jsxs(M,{...C,children:[S,v]})});function Wo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Yi(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!gp(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const Wb=L.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=L.useRef(null),b=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ar(()=>{i&&f.current.focus()},[i]),L.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:k})=>{const M=!f.current.style.width;if(x.clientHeight{const k=f.current,M=x.key;if(x.ctrlKey||x.metaKey||x.altKey){c&&c(x);return}const H=fn(k).activeElement;if(M==="ArrowDown")x.preventDefault(),Yi(k,H,l,u,Wo);else if(M==="ArrowUp")x.preventDefault(),Yi(k,H,l,u,sd);else if(M==="Home")x.preventDefault(),Yi(k,null,l,u,Wo);else if(M==="End")x.preventDefault(),Yi(k,null,l,u,sd);else if(M.length===1){const z=b.current,V=M.toLowerCase(),P=performance.now();z.keys.length>0&&(P-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=P,z.keys.push(V);const $=H&&!z.repeating&&gp(H,z);z.previousKeyMatched&&($||Yi(k,H,!1,u,Wo,z))?x.preventDefault():z.previousKeyMatched=!1}c&&c(x)},S=Vt(f,n);let v=-1;L.Children.forEach(s,(x,k)=>{if(!L.isValidElement(x)){v===k&&(v+=1,v>=s.length&&(v=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||v===-1)&&(v=k),v===k&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const w=L.Children.map(s,(x,k)=>{if(k===v){const M={};return a&&(M.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),L.cloneElement(x,M)}return x});return N.jsx(pp,{role:"menu",ref:S,className:o,onKeyDown:y,tabIndex:i?0:-1,...p,children:w})});function Yb(e){return gt("MuiPopover",e)}at("MuiPopover",["root","paper"]);function od(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ud(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ld(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ps(e){return typeof e=="function"?e():e}const Gb=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},Yb,t)},Xb=le(cp,{name:"MuiPopover",slot:"Root"})({}),bp=le(mo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Kb=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:b,PaperProps:y={},slots:S={},slotProps:v={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:k="auto",TransitionProps:M={},disableScrollLock:C=!1,...H}=r,z=L.useRef(),V={...r,anchorOrigin:s,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:x,transitionDuration:k,TransitionProps:M},P=Gb(V),$=L.useCallback(()=>{if(u==="anchorPosition")return o;const Te=ps(a),Ne=(Te&&Te.nodeType===1?Te:fn(z.current).body).getBoundingClientRect();return{top:Ne.top+od(Ne,s.vertical),left:Ne.left+ud(Ne,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),W=L.useCallback(Te=>({vertical:od(Te,w.vertical),horizontal:ud(Te,w.horizontal)}),[w.horizontal,w.vertical]),G=L.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ne=W(De);if(u==="none")return{top:null,left:null,transformOrigin:ld(Ne)};const Qe=$();let Re=Qe.top-Ne.vertical,$e=Qe.left-Ne.horizontal;const wt=Re+De.height,ht=$e+De.width,st=sr(ps(a)),Nt=st.innerHeight-f,ot=st.innerWidth-f;if(f!==null&&ReNt){const it=wt-Nt;Re-=it,Ne.vertical+=it}if(f!==null&&$eot){const it=ht-ot;$e-=it,Ne.horizontal+=it}return{top:`${Math.round(Re)}px`,left:`${Math.round($e)}px`,transformOrigin:ld(Ne)}},[a,u,$,W,f]),[q,Y]=L.useState(b),Q=L.useCallback(()=>{const Te=z.current;if(!Te)return;const De=G(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[G]);L.useEffect(()=>(C&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,C,Q]);const ee=()=>{Q()},de=()=>{Y(!1)};L.useEffect(()=>{b&&Q()}),L.useImperativeHandle(i,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),L.useEffect(()=>{if(!b)return;const Te=W1(()=>{Q()}),De=sr(ps(a));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[a,b,Q]);let oe=k;const R={slots:{transition:x,...S},slotProps:{transition:M,paper:y,...v}},[Ce,ve]=Et("transition",{elementType:Xs,externalForwardedProps:R,ownerState:V,getSlotProps:Te=>({...Te,onEntering:(De,Ne)=>{Te.onEntering?.(De,Ne),ee()},onExited:De=>{Te.onExited?.(De),de()}}),additionalProps:{appear:!0,in:b}});k==="auto"&&!Ce.muiSupportAuto&&(oe=void 0);const B=d||(a?fn(ps(a)).body:void 0),[xe,{slots:Ie,slotProps:Be,...je}]=Et("root",{ref:n,elementType:Xb,externalForwardedProps:{...R,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:e6(typeof v.backdrop=="function"?v.backdrop(V):v.backdrop,{invisible:!0})},container:B,open:b},ownerState:V,className:Ve(P.root,c)}),[_e,qe]=Et("paper",{ref:z,className:P.paper,elementType:bp,externalForwardedProps:R,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:V});return N.jsx(xe,{...je,...!Ca(xe)&&{slots:Ie,slotProps:Be,disableScrollLock:C},children:N.jsx(Ce,{...ve,timeout:oe,children:N.jsx(_e,{...qe,children:l})})})});function Qb(e){return gt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const Zb={vertical:"top",horizontal:"right"},Jb={vertical:"top",horizontal:"left"},e7=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},Qb,t)},t7=le(Kb,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),n7=le(bp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),r7=le(Wb,{name:"MuiMenu",slot:"List"})({outline:0}),i7=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:b,...y}={},variant:S="selectedMenu",slots:v={},slotProps:w={},...x}=r,k=Gl(),M={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:f,TransitionProps:y,variant:S},C=e7(M),H=i&&!o&&c,z=L.useRef(null),V=(oe,R)=>{z.current&&z.current.adjustStyleForScrollbar(oe,{direction:k?"rtl":"ltr"}),b&&b(oe,R)},P=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let $=-1;L.Children.map(a,(oe,R)=>{L.isValidElement(oe)&&(oe.props.disabled||(S==="selectedMenu"&&oe.props.selected||$===-1)&&($=R))});const W={slots:v,slotProps:{list:u,transition:y,paper:d,...w}},G=rp({elementType:v.root,externalSlotProps:w.root,ownerState:M,className:[C.root,s]}),[q,Y]=Et("paper",{className:C.paper,elementType:n7,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:M}),[Q,ee]=Et("list",{className:Ve(C.list,u.className),elementType:r7,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:oe=>({...oe,onKeyDown:R=>{P(R),oe.onKeyDown?.(R)}}),ownerState:M}),de=typeof W.slotProps.transition=="function"?W.slotProps.transition(M):W.slotProps.transition;return N.jsx(t7,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Zb:Jb,slots:{root:v.root,paper:q,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:G,paper:Y,backdrop:typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,transition:{...de,onEntering:(...oe)=>{V(...oe),de?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:f,ownerState:M,...x,classes:p,children:N.jsx(Q,{actions:z,autoFocus:i&&($===-1||o),autoFocusItem:H,variant:S,...ee,children:a})})});function a7(e){return gt("MuiMenuItem",e)}const Gi=at("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),s7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},o7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=Ye({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},a7,s);return{...s,...u}},u7=le(zg,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:s7})(ct(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Gi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Gi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Gi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_c.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_c.inset}`]:{marginLeft:52},[`& .${hi.root}`]:{marginTop:0,marginBottom:0},[`& .${hi.inset}`]:{paddingLeft:36},[`& .${Oc.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Oc.root} svg`]:{fontSize:"1.25rem"}}}]}))),l7=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p,...f}=r,b=L.useContext(nr),y=L.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=L.useRef(null);ar(()=>{i&&S.current&&S.current.focus()},[i]);const v={...r,dense:y.dense,divider:o,disableGutters:u},w=o7(r),x=Vt(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),N.jsx(nr.Provider,{value:y,children:N.jsx(u7,{ref:x,role:c,tabIndex:k,component:a,focusVisibleClassName:Ve(w.focusVisible,l),className:Ve(w.root,p),...f,ownerState:v,classes:w})})});function c7(e){return gt("MuiNativeSelect",e)}const o0=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),d7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"]};return Ye(o,c7,t)},yp=le("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${o0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),h7=le(yp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${o0.multiple}`]:t.multiple}]}})({}),vp=le("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${o0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),f7=le(vp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),p7=L.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=d7(c);return N.jsxs(L.Fragment,{children:[N.jsx(h7,{ownerState:c,className:Ve(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:N.jsx(f7,{as:s,ownerState:c,className:d.icon})]})});var cd;const m7=le("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({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%"}),g7=le("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(ct(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function b7(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return N.jsx(m7,{"aria-hidden":!0,className:r,ownerState:u,...s,children:N.jsx(g7,{ownerState:u,children:o?N.jsx("span",{children:i}):cd||(cd=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const y7=e=>{const{classes:t}=e,r=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ug,t);return{...t,...r}},v7=le(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:bo})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ql()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),T7=le(b7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),x7=le(To,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),u0=L.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:p="text",...f}=r,b=y7(r),y=s0(),S=a0({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:y,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:p},w=c.root??i.Root??v7,x=c.input??i.Input??x7,[k,M]=Et("notchedOutline",{elementType:T7,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&S.required?N.jsxs(L.Fragment,{children:[o," ","*"]}):o}});return N.jsx(xo,{slots:{root:w,input:x},slotProps:d,renderSuffix:C=>N.jsx(k,{...M,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:p,...f,classes:{...b,notchedOutline:null}})});u0.muiName="Input";function Tp(e){return gt("MuiSelect",e)}const jr=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dd;const E7=le(yp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${jr.select}`]:t.select},{[`&.${jr.select}`]:t[n.variant]},{[`&.${jr.error}`]:t.error},{[`&.${jr.multiple}`]:t.multiple}]}})({[`&.${jr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),S7=le(vp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),w7=le("input",{shouldForwardProp:e=>Vg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function hd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function A7(e){return e==null||typeof e=="string"&&!e.trim()}const C7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ye(o,Tp,t)},k7=L.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:b,inputRef:y,labelId:S,MenuProps:v={},multiple:w,name:x,onBlur:k,onChange:M,onClose:C,onFocus:H,onOpen:z,open:V,readOnly:P,renderValue:$,required:W,SelectDisplayProps:G={},tabIndex:q,type:Y,value:Q,variant:ee="standard",...de}=t,[oe,R]=qu({controlled:Q,default:c,name:"Select"}),[Ce,ve]=qu({controlled:V,default:l,name:"Select"}),B=L.useRef(null),xe=L.useRef(null),[Ie,Be]=L.useState(null),{current:je}=L.useRef(V!=null),[_e,qe]=L.useState(),Te=Vt(n,y),De=L.useCallback(pe=>{xe.current=pe,pe&&Be(pe)},[]),Ne=Ie?.parentNode;L.useImperativeHandle(Te,()=>({focus:()=>{xe.current.focus()},node:B.current,value:oe}),[oe]),L.useEffect(()=>{l&&Ce&&Ie&&!je&&(qe(s?null:Ne.clientWidth),xe.current.focus())},[Ie,s]),L.useEffect(()=>{a&&xe.current.focus()},[a]),L.useEffect(()=>{if(!S)return;const pe=fn(xe.current).getElementById(S);if(pe){const ke=()=>{getSelection().isCollapsed&&xe.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[S]);const Qe=(pe,ke)=>{pe?z&&z(ke):C&&C(ke),je||(qe(s?null:Ne.clientWidth),ve(pe))},Re=pe=>{pe.button===0&&(pe.preventDefault(),xe.current.focus(),Qe(!0,pe))},$e=pe=>{Qe(!1,pe)},wt=L.Children.toArray(o),ht=pe=>{const ke=wt.find(et=>et.props.value===pe.target.value);ke!==void 0&&(R(ke.props.value),M&&M(pe,ke))},st=pe=>ke=>{let et;if(ke.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(oe)?oe.slice():[];const At=oe.indexOf(pe.props.value);At===-1?et.push(pe.props.value):et.splice(At,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),oe!==et&&(R(et),M)){const At=ke.nativeEvent||ke,us=new At.constructor(At.type,At);Object.defineProperty(us,"target",{writable:!0,value:{value:et,name:x}}),M(us,pe)}w||Qe(!1,ke)}},Nt=pe=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Qe(!0,pe))},ot=Ie!==null&&Ce,it=pe=>{!ot&&k&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:oe,name:x}}),k(pe))};delete de["aria-invalid"];let Ht,Kt;const bt=[];let on=!1;(op({value:oe})||p)&&($?Ht=$(oe):on=!0);const K=wt.map(pe=>{if(!L.isValidElement(pe))return null;let ke;if(w){if(!Array.isArray(oe))throw new Error(H1(2));ke=oe.some(et=>hd(et,pe.props.value)),ke&&on&&bt.push(pe.props.children)}else ke=hd(oe,pe.props.value),ke&&on&&(Kt=pe.props.children);return L.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:st(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});on&&(w?bt.length===0?Ht=null:Ht=bt.reduce((pe,ke,et)=>(pe.push(ke),et{const{classes:t}=e,r=Ye({root:["root"]},Tp,t);return{...t,...r}},l0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},N7=le(fp,l0)(""),R7=le(u0,l0)(""),M7=le(hp,l0)(""),xp=L.forwardRef(function(t,n){const r=Ge({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=S5,id:d,input:p,inputProps:f,label:b,labelId:y,MenuProps:S,multiple:v=!1,native:w=!1,onClose:x,onOpen:k,open:M,renderValue:C,SelectDisplayProps:H,variant:z="outlined",...V}=r,P=w?p7:k7,$=s0(),W=a0({props:r,muiFormControl:$,states:["variant","error"]}),G=W.variant||z,q={...r,variant:G,classes:s},Y=I7(q),{root:Q,...ee}=Y,de=p||{standard:N.jsx(N7,{ownerState:q}),outlined:N.jsx(R7,{label:b,ownerState:q}),filled:N.jsx(M7,{ownerState:q})}[G],oe=Vt(n,Di(de));return N.jsx(L.Fragment,{children:L.cloneElement(de,{inputComponent:P,inputProps:{children:a,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:v,...w?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:x,onOpen:k,open:M,renderValue:C,SelectDisplayProps:{id:d,...H}},...f,classes:f?Kl(ee,f.classes):ee,...p?p.props.inputProps:{}},...(v&&w||l)&&G==="outlined"?{notched:!0}:{},ref:oe,className:Ve(de.props.className,o,Y.root),...!p&&{variant:G},...V})})});xp.muiName="Select";function D7(e){return gt("MuiSkeleton",e)}at("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const P7=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return Ye({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},D7,t)},Zu=U1` 0% { diff --git a/src/frontend/dist/assets/setup-CrOHSNZf.js b/src/frontend/dist/assets/setup-BjneFMVt.js similarity index 98% rename from src/frontend/dist/assets/setup-CrOHSNZf.js rename to src/frontend/dist/assets/setup-BjneFMVt.js index 794ccfd0..21fcc48a 100644 --- a/src/frontend/dist/assets/setup-CrOHSNZf.js +++ b/src/frontend/dist/assets/setup-BjneFMVt.js @@ -1,4 +1,4 @@ -import{r as g,g as V,a as H,u as z,j as o,s as A,c as E,T as B,b as R,d as O,m as W,e as J,f as K,B as Q,t as j,h as X,i as Z,k as tt,l as k,I as G,n as et,o as ot,S as $,p as nt}from"./index-LpWXPQo4.js";import{u as rt,F as st,O as at,I as it,M as lt,a as dt}from"./main-layout-HR9QJcmZ.js";function ut(t){return g.Children.toArray(t).filter(e=>g.isValidElement(e))}function ct(t){return H("MuiInputAdornment",t)}const F=V("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const pt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},gt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:i,size:c,variant:v}=t,d={root:["root",r&&"disablePointerEvents",i&&`position${R(i)}`,v,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(d,ct,e)},ft=A("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),D=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiInputAdornment"}),{children:i,className:c,component:v="div",disablePointerEvents:d=!1,disableTypography:b=!1,position:x,variant:n,...f}=u,a=rt()||{};let l=n;n&&a.variant,a&&!l&&(l=a.variant);const m={...u,hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:x,variant:l},C=gt(m);return o.jsx(st.Provider,{value:null,children:o.jsx(ft,{as:v,ownerState:m,className:E(C.root,c),ref:r,...f,children:typeof i=="string"&&!b?o.jsx(B,{color:"textSecondary",children:i}):o.jsxs(g.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})}),q=g.createContext({}),Y=g.createContext(void 0);function vt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const xt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:i,size:c,color:v}=t,d={root:["root",u&&"selected",i&&"disabled",r&&"fullWidth",`size${R(c)}`,v]};return O(d,K,e)},bt=A(Q,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(X()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),_=g.forwardRef(function(e,r){const{value:u,...i}=g.useContext(q),c=g.useContext(Y),v=J({...i,selected:vt(e.value,u)},e),d=z({props:v,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:f=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:m,onClick:C,selected:y,size:N="medium",value:T,...P}=d,w={...d,color:n,disabled:f,disableFocusRipple:a,fullWidth:l,size:N},M=xt(w),L=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(bt,{className:E(i.className,M.root,x,h),disabled:f,focusRipple:!a,ref:r,onClick:L,onChange:m,value:T,ownerState:w,"aria-pressed":y,...P,children:b})});function ht(t){return H("MuiToggleButtonGroup",t)}const s=V("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),mt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:i}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,ht,e)},yt=A("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Bt=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:c,color:v="standard",disabled:d=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:f="horizontal",size:a="medium",value:l,...m}=u,C={...u,disabled:d,fullWidth:x,orientation:f,size:a},y=mt(C),N=g.useCallback((h,p)=>{if(!n)return;const S=l&&l.indexOf(p);let I;l&&S>=0?(I=l.slice(),I.splice(S,1)):I=l?l.concat(p):[p],n(h,I)},[n,l]),T=g.useCallback((h,p)=>{n&&n(h,l===p?null:p)},[n,l]),P=g.useMemo(()=>({className:y.grouped,onChange:b?T:N,value:l,size:a,fullWidth:x,color:v,disabled:d}),[y.grouped,b,T,N,l,a,x,v,d]),w=ut(i),M=w.length,L=h=>{const p=h===0,S=h===M-1;return p&&S?"":p?y.firstButton:S?y.lastButton:y.middleButton};return o.jsx(yt,{role:"group",className:E(y.root,c),ref:r,ownerState:C,...m,children:o.jsx(q.Provider,{value:P,children:w.map((h,p)=>o.jsx(Y.Provider,{value:L(p),children:h},p))})})});/** +import{r as g,g as V,a as H,u as z,j as o,s as A,c as E,T as B,b as R,d as O,m as W,e as J,f as K,B as Q,t as j,h as X,i as Z,k as tt,l as k,I as G,n as et,o as ot,S as $,p as nt}from"./index-CnnXn_hp.js";import{u as rt,F as st,O as at,I as it,M as lt,a as dt}from"./main-layout-DYiPakMZ.js";function ut(t){return g.Children.toArray(t).filter(e=>g.isValidElement(e))}function ct(t){return H("MuiInputAdornment",t)}const F=V("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const pt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},gt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:i,size:c,variant:v}=t,d={root:["root",r&&"disablePointerEvents",i&&`position${R(i)}`,v,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(d,ct,e)},ft=A("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),D=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiInputAdornment"}),{children:i,className:c,component:v="div",disablePointerEvents:d=!1,disableTypography:b=!1,position:x,variant:n,...f}=u,a=rt()||{};let l=n;n&&a.variant,a&&!l&&(l=a.variant);const m={...u,hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:x,variant:l},C=gt(m);return o.jsx(st.Provider,{value:null,children:o.jsx(ft,{as:v,ownerState:m,className:E(C.root,c),ref:r,...f,children:typeof i=="string"&&!b?o.jsx(B,{color:"textSecondary",children:i}):o.jsxs(g.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})}),q=g.createContext({}),Y=g.createContext(void 0);function vt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const xt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:i,size:c,color:v}=t,d={root:["root",u&&"selected",i&&"disabled",r&&"fullWidth",`size${R(c)}`,v]};return O(d,K,e)},bt=A(Q,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(X()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),_=g.forwardRef(function(e,r){const{value:u,...i}=g.useContext(q),c=g.useContext(Y),v=J({...i,selected:vt(e.value,u)},e),d=z({props:v,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:f=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:m,onClick:C,selected:y,size:N="medium",value:T,...P}=d,w={...d,color:n,disabled:f,disableFocusRipple:a,fullWidth:l,size:N},M=xt(w),L=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(bt,{className:E(i.className,M.root,x,h),disabled:f,focusRipple:!a,ref:r,onClick:L,onChange:m,value:T,ownerState:w,"aria-pressed":y,...P,children:b})});function ht(t){return H("MuiToggleButtonGroup",t)}const s=V("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),mt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:i}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,ht,e)},yt=A("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Bt=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:c,color:v="standard",disabled:d=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:f="horizontal",size:a="medium",value:l,...m}=u,C={...u,disabled:d,fullWidth:x,orientation:f,size:a},y=mt(C),N=g.useCallback((h,p)=>{if(!n)return;const S=l&&l.indexOf(p);let I;l&&S>=0?(I=l.slice(),I.splice(S,1)):I=l?l.concat(p):[p],n(h,I)},[n,l]),T=g.useCallback((h,p)=>{n&&n(h,l===p?null:p)},[n,l]),P=g.useMemo(()=>({className:y.grouped,onChange:b?T:N,value:l,size:a,fullWidth:x,color:v,disabled:d}),[y.grouped,b,T,N,l,a,x,v,d]),w=ut(i),M=w.length,L=h=>{const p=h===0,S=h===M-1;return p&&S?"":p?y.firstButton:S?y.lastButton:y.middleButton};return o.jsx(yt,{role:"group",className:E(y.root,c),ref:r,ownerState:C,...m,children:o.jsx(q.Provider,{value:P,children:w.map((h,p)=>o.jsx(Y.Provider,{value:L(p),children:h},p))})})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index 4a5baa4d..5cbd4a7d 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -5,7 +5,7 @@ Parallax Open Source - + diff --git a/src/frontend/src/services/chat.tsx b/src/frontend/src/services/chat.tsx index 3daffa52..e407062b 100644 --- a/src/frontend/src/services/chat.tsx +++ b/src/frontend/src/services/chat.tsx @@ -180,7 +180,7 @@ export const ChatProvider: FC = ({ children }) => { let thinking = ''; let content = ''; const modelLowerCase = model.toLowerCase(); - if (modelLowerCase.includes('gpt')) { + if (modelLowerCase.includes('gpt-oss')) { ({ analysis: thinking, final: content } = parseGenerationGpt( lastMessage.raw || '', )); diff --git a/src/frontend/src/services/temp.chat.101301.json b/src/frontend/src/services/temp.chat.101301.json new file mode 100644 index 00000000..ad17bb0d --- /dev/null +++ b/src/frontend/src/services/temp.chat.101301.json @@ -0,0 +1,530 @@ +[ + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": "assistant", "content": "" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "Sure" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "!" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " Here" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "'s" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " a" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " light" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "-hearted" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " one" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " for" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " you" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": ":\n\n" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "Why" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " don" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "'t" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " skeletons" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " fight" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " each" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " other" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "?\n\n" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "Because" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " they" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " don" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "\u2019t" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " have" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " the" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " *" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "g" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "uts" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "*" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": "!" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": null, + "matched_stop": null, + "delta": { "role": null, "content": " \ud83d\ude04" } + } + ], + "usage": null + }, + { + "id": "f03cc5bf-cd69-4f93-9da5-46daec27f5a9", + "object": "chat.completion.chunk", + "model": "default", + "created": 1760346524.2859468, + "choices": [ + { + "index": 0, + "logprobs": null, + "finish_reason": "stop", + "matched_stop": 0, + "delta": { "role": null, "content": null } + } + ], + "usage": null + } +]