diff --git a/src/frontend/dist/assets/chat-DU5MDPi1.js b/src/frontend/dist/assets/chat-DU5MDPi1.js new file mode 100644 index 00000000..655f9d80 --- /dev/null +++ b/src/frontend/dist/assets/chat-DU5MDPi1.js @@ -0,0 +1,16 @@ +import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-Bht8DC43.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-goXDayPH.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!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)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,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:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.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:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...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 C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,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:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.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(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({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},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.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:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.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:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!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:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,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:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const pt=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],ut=ee("outline","arrow-back-up","ArrowBackUp",pt);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const mt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],ft=ee("outline","arrow-up","ArrowUp",mt);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const xt=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],ht=ee("filled","square-filled","SquareFilled",xt),bt=()=>{const[{modelName:e,clusterInfo:{status:t}}]=Me(),[{input:r,status:o},{setInput:s,generate:l,stop:i,clear:p}]=Re(),n=je(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),l())});return a.jsx(ne,{"data-status":o,children:a.jsx(ct,{value:r,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything...",fullWidth:!0,onKeyDown:n,slotProps:{input:{sx:{flexDirection:"column"},endAdornment:a.jsxs(ne,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[a.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:a.jsx(ut,{}),disabled:o==="opened"||o==="generating",onClick:p,children:"Clear"}),a.jsx(le,{size:"small",color:"primary",disabled:t!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&l()},children:o==="opened"?a.jsx(We,{size:"medium"}):o==="generating"?a.jsx(ht,{size:"1.25rem"}):a.jsx(ft,{size:"1.25rem"})})]})}}})})};function Ct(){return a.jsxs(Ee,{children:[a.jsx(De,{}),a.jsx(bt,{})]})}export{Ct as default}; diff --git a/src/frontend/dist/assets/chat-kMFwYHL7.js b/src/frontend/dist/assets/chat-kMFwYHL7.js deleted file mode 100644 index e76f82b8..00000000 --- a/src/frontend/dist/assets/chat-kMFwYHL7.js +++ /dev/null @@ -1,16 +0,0 @@ -import{h as N,f as A,r as x,u as H,j as s,s as T,c as U,b as L,d as W,m as V,e as Te,p as Le,q as ze,v as P,o as re,i as Me,w as Re,l as je,n as le}from"./index-BRUVWoWS.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as oe,O as Ne,d as Ae,I as He,e as Ue,S as ee,g as We,D as Ee,C as Be}from"./main-layout-a0s3xhLQ.js";function De(e){return N("MuiFormControl",e)}A("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:r,margin:t,fullWidth:o}=e,a={root:["root",t!=="none"&&`margin${L(t)}`,o&&"fullWidth"]};return W(a,De,r)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`margin${L(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:a,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,w={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(w),[y,J]=x.useState(()=>{let F=!1;return a&&x.Children.forEach(a,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,z]=x.useState(()=>{let F=!1;return a&&x.Children.forEach(a,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[B,M]=x.useState(!1);n&&B&&M(!1);const D=m!==void 0&&!n?m:B;let O;x.useRef(!1);const _=x.useCallback(()=>{z(!0)},[]),R=x.useCallback(()=>{z(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:D,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,D,h,b,O,R,_,f,u,c]);return s.jsx($e.Provider,{value:Q,children:s.jsx(_e,{as:p,ownerState:w,className:U(G.root,l),ref:t,...C,children:a})})});function Ve(e){return N("MuiFormHelperText",e)}const de=A("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:r,contained:t,size:o,disabled:a,error:l,filled:i,focused:p,required:n}=e,d={root:["root",a&&"disabled",l&&"error",o&&`size${L(o)}`,t&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,r)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size&&r[`size${L(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:a,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=oe({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...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 C.ownerState;const w=Ge(C);return s.jsx(Je,{as:i,className:U(w.root,l),ref:t,...f,ownerState:C,children:a===" "?ce||(ce=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function Xe(e){return N("MuiFormLabel",e)}const $=A("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:r,color:t,focused:o,disabled:a,error:l,filled:i,required:p}=e,n={root:["root",`color${L(t)}`,a&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(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:a,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=oe({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},C=Ye(c);return s.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:t,...g,children:[a,u.required&&s.jsxs(er,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function tr(e){return N("MuiInputLabel",e)}A("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:a,disableAnimation:l,variant:i,required:p}=e,n={root:["root",t&&"formControl",!l&&"animated",a&&"shrink",o&&o!=="medium"&&`size${L(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,tr,r);return{...r,...d}},sr=T(rr,{shouldForwardProp:e=>Le(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:a=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=oe({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:a,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=or(g);return s.jsx(sr,{"data-shrink":h,ref:t,className:U(f.root,n),...d,ownerState:g,classes:f})});function nr(e){return N("MuiTextField",e)}A("MuiTextField",["root"]);const lr={standard:He,filled:Ae,outlined:Ne},ir=e=>{const{classes:r}=e;return W({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:a,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:w,inputRef:G,label:y,maxRows:J,minRows:E,multiline:z=!1,name:B,onBlur:M,onChange:D,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:se,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:z,required:R,select:F,variant:K},fe=ir(S),k=ze(u),X=f&&k?`${k}-helper-text`:void 0,ae=y&&k?`${k}-label`:void 0,xe=lr[K],I={slots:j,slotProps:{input:w,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=I.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=P("root",{elementType:dr,shouldForwardComponentProp:!0,externalForwardedProps:{...I,...me},ownerState:S,className:U(fe.root,p),ref:t,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=P("input",{elementType:xe,externalForwardedProps:I,additionalProps:q,ownerState:S}),[Ce,Fe]=P("inputLabel",{elementType:ar,externalForwardedProps:I,ownerState:S}),[ye,Se]=P("htmlInput",{elementType:"input",externalForwardedProps:I,ownerState:S}),[ke,Ie]=P("formHelperText",{elementType:Qe,externalForwardedProps:I,ownerState:S}),[we,Pe]=P("select",{elementType:Ue,externalForwardedProps:I,ownerState:S}),ne=s.jsx(ve,{"aria-describedby":X,autoComplete:a,autoFocus:l,defaultValue:d,fullWidth:g,multiline:z,name:B,rows:Q,maxRows:J,minRows:E,type:ue,value:se,id:k,inputRef:G,onBlur:M,onChange:D,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return s.jsxs(he,{...be,children:[y!=null&&y!==""&&s.jsx(Ce,{htmlFor:k,id:ae,...Fe,children:y}),F?s.jsx(we,{"aria-describedby":X,id:k,labelId:ae,value:se,input:ne,...Pe,children:i}):ne,f&&s.jsx(ke,{id:X,...Ie,children:f})]})});/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const pr=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],ur=re("outline","arrow-back-up","ArrowBackUp",pr);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const mr=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],fr=re("outline","arrow-up","ArrowUp",mr);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const xr=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],hr=re("filled","square-filled","SquareFilled",xr),br=()=>{const[{modelName:e,clusterInfo:{status:r}}]=Me(),[{input:t,status:o},{setInput:a,generate:l,stop:i,clear:p}]=Re(),n=je(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),l())});return s.jsxs(ee,{children:[s.jsx(ee,{direction:"row",sx:{gap:1,p:1},children:e}),s.jsx(cr,{value:t,onChange:d=>a(d.target.value),multiline:!0,maxRows:4,placeholder:"Enter your system prompt here...",fullWidth:!0,onKeyDown:n,slotProps:{input:{sx:{flexDirection:"column"},endAdornment:s.jsxs(ee,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:1},children:[s.jsx(le,{variant:"text",startIcon:s.jsx(ur,{}),onClick:p,children:"Clear"}),s.jsx(le,{size:"small",color:"primary",disabled:r!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&l()},children:o==="opened"?s.jsx(We,{size:"1.25rem"}):o==="generating"?s.jsx(hr,{size:"1.25rem"}):s.jsx(fr,{size:"1.25rem"})})]})}}})]})};function Cr(){return s.jsxs(Ee,{children:[s.jsx(Be,{}),s.jsx(br,{})]})}export{Cr as default}; diff --git a/src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg b/src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg new file mode 100644 index 00000000..66c63514 --- /dev/null +++ b/src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/frontend/dist/assets/index-BRUVWoWS.js b/src/frontend/dist/assets/index-BRUVWoWS.js deleted file mode 100644 index c2c2ba48..00000000 --- a/src/frontend/dist/assets/index-BRUVWoWS.js +++ /dev/null @@ -1,318 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-CGBINlku.js","assets/main-layout-a0s3xhLQ.js","assets/main-layout-DVneG3Rq.css","assets/join-DpjwkDM4.js","assets/chat-kMFwYHL7.js"])))=>i.map(i=>d[i]); -function bS(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 Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xf={exports:{}},gl={};/** - * @license React - * react-jsx-runtime.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ig;function SS(){if(Ig)return gl;Ig=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(o,s,c){var d=null;if(c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:n,type:o,key:d,ref:s!==void 0?s:null,props:c}}return gl.Fragment=r,gl.jsx=l,gl.jsxs=l,gl}var Wg;function xS(){return Wg||(Wg=1,xf.exports=SS()),xf.exports}var F=xS(),Cf={exports:{}},ye={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jg;function CS(){if(Jg)return ye;Jg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=v&&A[v]||A["@@iterator"],typeof A=="function"?A:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function M(A,Y,ae){this.props=A,this.context=Y,this.refs=T,this.updater=ae||O}M.prototype.isReactComponent={},M.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},M.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function D(){}D.prototype=M.prototype;function _(A,Y,ae){this.props=A,this.context=Y,this.refs=T,this.updater=ae||O}var $=_.prototype=new D;$.constructor=_,E($,M.prototype),$.isPureReactComponent=!0;var B=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},L=Object.prototype.hasOwnProperty;function q(A,Y,ae,re,oe,fe){return ae=fe.ref,{$$typeof:n,type:A,key:Y,ref:ae!==void 0?ae:null,props:fe}}function ee(A,Y){return q(A.type,Y,void 0,void 0,void 0,A.props)}function K(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function Q(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ae){return Y[ae]})}var W=/\/+/g;function C(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?Q(""+A.key):Y.toString(36)}function ie(){}function P(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ie,ie):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function X(A,Y,ae,re,oe){var fe=typeof A;(fe==="undefined"||fe==="boolean")&&(A=null);var se=!1;if(A===null)se=!0;else switch(fe){case"bigint":case"string":case"number":se=!0;break;case"object":switch(A.$$typeof){case n:case r:se=!0;break;case y:return se=A._init,X(se(A._payload),Y,ae,re,oe)}}if(se)return oe=oe(A),se=re===""?"."+C(A,0):re,B(oe)?(ae="",se!=null&&(ae=se.replace(W,"$&/")+"/"),X(oe,Y,ae,"",function(Ze){return Ze})):oe!=null&&(K(oe)&&(oe=ee(oe,ae+(oe.key==null||A&&A.key===oe.key?"":(""+oe.key).replace(W,"$&/")+"/")+se)),Y.push(oe)),1;se=0;var we=re===""?".":re+":";if(B(A))for(var Se=0;Se>>1,A=w[le];if(0>>1;les(re,Z))oes(fe,re)?(w[le]=fe,w[oe]=Z,le=oe):(w[le]=re,w[ae]=Z,le=ae);else if(oes(fe,Z))w[le]=fe,w[oe]=Z,le=oe;else break e}}return H}function s(w,H){var Z=w.sortIndex-H.sortIndex;return Z!==0?Z:w.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,S=3,O=!1,E=!1,T=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function B(w){for(var H=l(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=w)o(m),H.sortIndex=H.expirationTime,r(p,H);else break;H=l(m)}}function z(w){if(T=!1,B(w),!E)if(l(p)!==null)E=!0,L||(L=!0,C());else{var H=l(m);H!==null&&X(z,H.startTime-w)}}var L=!1,q=-1,ee=5,K=-1;function Q(){return M?!0:!(n.unstable_now()-Kw&&Q());){var le=v.callback;if(typeof le=="function"){v.callback=null,S=v.priorityLevel;var A=le(v.expirationTime<=w);if(w=n.unstable_now(),typeof A=="function"){v.callback=A,B(w),H=!0;break t}v===l(p)&&o(p),B(w)}else o(p);v=l(p)}if(v!==null)H=!0;else{var Y=l(m);Y!==null&&X(z,Y.startTime-w),H=!1}}break e}finally{v=null,S=Z,O=!1}H=void 0}}finally{H?C():L=!1}}}var C;if(typeof $=="function")C=function(){$(W)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,P=ie.port2;ie.port1.onmessage=W,C=function(){P.postMessage(null)}}else C=function(){D(W,0)};function X(w,H){q=D(function(){w(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(w){w.callback=null},n.unstable_forceFrameRate=function(w){0>w||125le?(w.sortIndex=Z,r(m,w),l(p)===null&&w===l(m)&&(T?(_(q),q=-1):T=!0,X(z,Z-le))):(w.sortIndex=A,r(p,w),E||O||(E=!0,L||(L=!0,C()))),w},n.unstable_shouldYield=Q,n.unstable_wrapCallback=function(w){var H=S;return function(){var Z=S;S=H;try{return w.apply(this,arguments)}finally{S=Z}}}})(Mf)),Mf}var t0;function ES(){return t0||(t0=1,Ef.exports=TS()),Ef.exports}var Af={exports:{}},zt={};/** - * @license React - * react-dom.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n0;function MS(){if(n0)return zt;n0=1;var n=Sd();function r(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Af.exports=MS(),Af.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r0;function AS(){if(r0)return yl;r0=1;var n=ES(),r=Sd(),l=zy();function o(e){var t="https://react.dev/errors/"+e;if(1A||(e.current=le[A],le[A]=null,A--)}function re(e,t){A++,le[A]=e.current,e.current=t}var oe=Y(null),fe=Y(null),se=Y(null),we=Y(null);function Se(e,t){switch(re(se,t),re(fe,e),re(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eg(t),e=Mg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ae(oe),re(oe,e)}function Ze(){ae(oe),ae(fe),ae(se)}function Xe(e){e.memoizedState!==null&&re(we,e);var t=oe.current,a=Mg(t,e.type);t!==a&&(re(fe,e),re(oe,a))}function it(e){fe.current===e&&(ae(oe),ae(fe)),we.current===e&&(ae(we),fl._currentValue=Z)}var vt=Object.prototype.hasOwnProperty,Mt=n.unstable_scheduleCallback,$t=n.unstable_cancelCallback,gn=n.unstable_shouldYield,jn=n.unstable_requestPaint,Fe=n.unstable_now,Nt=n.unstable_getCurrentPriorityLevel,ct=n.unstable_ImmediatePriority,yn=n.unstable_UserBlockingPriority,En=n.unstable_NormalPriority,pe=n.unstable_LowPriority,Ql=n.unstable_IdlePriority,Kl=n.log,Il=n.unstable_setDisableYieldValue,bt=null,Te=null;function lt(e){if(typeof Kl=="function"&&Il(e),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(bt,e)}catch{}}var Qe=Math.clz32?Math.clz32:i1,bi=Math.log,us=Math.LN2;function i1(e){return e>>>=0,e===0?32:31-(bi(e)/us|0)|0}var Wl=256,Jl=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fl(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~f,i!==0?u=ja(i):(g&=b,g!==0?u=ja(g):a||(a=b&~e,a!==0&&(u=ja(a))))):(b=i&~f,b!==0?u=ja(b):g!==0?u=ja(g):a||(a=i&~e,a!==0&&(u=ja(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function Si(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function l1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oh(){var e=Wl;return Wl<<=1,(Wl&4194048)===0&&(Wl=256),e}function uh(){var e=Jl;return Jl<<=1,(Jl&62914560)===0&&(Jl=4194304),e}function ss(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function xi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function o1(e,t,a,i,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=g&~a;0)":-1u||R[i]!==U[u]){var J=` -`+R[i].replace(" at new "," at ");return e.displayName&&J.includes("")&&(J=J.replace("",e.displayName)),J}while(1<=i&&0<=u);break}}}finally{ps=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?br(a):""}function h1(e){switch(e.tag){case 26:case 27:case 5:return br(e.type);case 16:return br("Lazy");case 13:return br("Suspense");case 19:return br("SuspenseList");case 0:case 15:return gs(e.type,!1);case 11:return gs(e.type.render,!1);case 1:return gs(e.type,!0);case 31:return br("Activity");default:return""}}function vh(e){try{var t="";do t+=h1(e),e=e.return;while(e);return t}catch(a){return` -Error generating stack: `+a.message+` -`+a.stack}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m1(e){var t=bh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){i=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){e._valueTracker||(e._valueTracker=m1(e))}function Sh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=bh(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var p1=/[\n"\\]/g;function nn(e){return e.replace(p1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ys(e,t,a,i,u,f,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?vs(e,g,tn(t)):a!=null?vs(e,g,tn(a)):i!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+tn(b):e.removeAttribute("name")}function xh(e,t,a,i,u,f,g,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+tn(a):"",t=t!=null?""+tn(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function vs(e,t,a){t==="number"&&ao(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Sr(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ts=!1;if(Hn)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){Ts=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{Ts=!1}var sa=null,Es=null,io=null;function wh(){if(io)return io;var e,t=Es,a=t.length,i,u="value"in sa?sa.value:sa.textContent,f=u.length;for(e=0;e=wi),$h=" ",Nh=!1;function Bh(e,t){switch(e){case"keyup":return G1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function P1(e,t){switch(e){case"compositionend":return Lh(t);case"keypress":return t.which!==32?null:(Nh=!0,$h);case"textInput":return e=t.data,e===$h&&Nh?null:e;default:return null}}function X1(e,t){if(Er)return e==="compositionend"||!Rs&&Bh(e,t)?(e=wh(),io=Es=sa=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ph(a)}}function Zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ao(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ao(e.document)}return t}function zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eb=Hn&&"documentMode"in document&&11>=document.documentMode,Mr=null,ks=null,zi=null,$s=!1;function Kh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$s||Mr==null||Mr!==ao(i)||(i=Mr,"selectionStart"in i&&zs(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),zi&&_i(zi,i)||(zi=i,i=Io(ks,"onSelect"),0>=g,u-=g,qn=1<<32-Qe(t)+u|a<f?f:8;var g=w.T,b={};w.T=b,bc(e,!1,t,a);try{var R=u(),U=w.S;if(U!==null&&U(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var J=sb(R,i);Zi(e,t,J,It(e))}else Zi(e,t,i,It(e))}catch(ne){Zi(e,t,{then:function(){},status:"rejected",reason:ne},It())}finally{H.p=f,w.T=g}}function mb(){}function yc(e,t,a,i){if(e.tag!==5)throw Error(o(476));var u=Im(e).queue;Km(e,u,t,Z,a===null?mb:function(){return Wm(e),a(i)})}function Im(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wm(e){var t=Im(e).next.queue;Zi(e,t,{},It())}function vc(){return _t(fl)}function Jm(){return dt().memoizedState}function Fm(){return dt().memoizedState}function pb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=da(a);var i=ha(t,e,a);i!==null&&(Wt(i,t,a),Yi(i,t,a)),t={cache:Qs()},e.payload=t;return}t=t.return}}function gb(e,t,a){var i=It();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Do(e)?tp(t,a):(a=js(e,t,a,i),a!==null&&(Wt(a,e,i),np(a,t,i)))}function ep(e,t,a){var i=It();Zi(e,t,a,i)}function Zi(e,t,a,i){var u={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Do(e))tp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,b=f(g,a);if(u.hasEagerState=!0,u.eagerState=b,Pt(b,g))return ho(e,t,u,0),Pe===null&&fo(),!1}catch{}finally{}if(a=js(e,t,u,i),a!==null)return Wt(a,e,i),np(a,t,i),!0}return!1}function bc(e,t,a,i){if(i={lane:2,revertLane:Wc(),action:i,hasEagerState:!1,eagerState:null,next:null},Do(e)){if(t)throw Error(o(479))}else t=js(e,a,i,2),t!==null&&Wt(t,e,2)}function Do(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function tp(e,t){Nr=Eo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function np(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ch(e,a)}}var _o={readContext:_t,use:Ao,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot},ap={readContext:_t,use:Ao,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Hm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ro(4194308,4,Vm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){Ro(4,2,e,t)},useMemo:function(e,t){var a=Ut();t=t===void 0?null:t;var i=e();if(Wa){lt(!0);try{e()}finally{lt(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ut();if(a!==void 0){var u=a(t);if(Wa){lt(!0);try{a(t)}finally{lt(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=gb.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,a=ep.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:pc,useDeferredValue:function(e,t){var a=Ut();return gc(a,e,t)},useTransition:function(){var e=hc(!1);return e=Km.bind(null,ve,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=ve,u=Ut();if(De){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Pe===null)throw Error(o(349));(Ee&124)!==0||Em(i,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,Hm(Am.bind(null,i,f,e),[e]),i.flags|=2048,Lr(9,wo(),Mm.bind(null,i,f,a,t),null),a},useId:function(){var e=Ut(),t=Pe.identifierPrefix;if(De){var a=Gn,i=qn;a=(i&~(1<<32-Qe(i)-1)).toString(32)+a,t="«"+t+"R"+a,a=Mo++,0he?(Tt=ce,ce=null):Tt=ce.sibling;var Re=G(N,ce,j[he],te);if(Re===null){ce===null&&(ce=Tt);break}e&&ce&&Re.alternate===null&&t(N,ce),k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re,ce=Tt}if(he===j.length)return a(N,ce),De&&Pa(N,he),ue;if(ce===null){for(;hehe?(Tt=ce,ce=null):Tt=ce.sibling;var Da=G(N,ce,Re.value,te);if(Da===null){ce===null&&(ce=Tt);break}e&&ce&&Da.alternate===null&&t(N,ce),k=f(Da,k,he),be===null?ue=Da:be.sibling=Da,be=Da,ce=Tt}if(Re.done)return a(N,ce),De&&Pa(N,he),ue;if(ce===null){for(;!Re.done;he++,Re=j.next())Re=ne(N,Re.value,te),Re!==null&&(k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re);return De&&Pa(N,he),ue}for(ce=i(ce);!Re.done;he++,Re=j.next())Re=V(ce,N,he,Re.value,te),Re!==null&&(e&&Re.alternate!==null&&ce.delete(Re.key===null?he:Re.key),k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re);return e&&ce.forEach(function(vS){return t(N,vS)}),De&&Pa(N,he),ue}function Ye(N,k,j,te){if(typeof j=="object"&&j!==null&&j.type===E&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var ue=j.key;k!==null;){if(k.key===ue){if(ue=j.type,ue===E){if(k.tag===7){a(N,k.sibling),te=u(k,j.props.children),te.return=N,N=te;break e}}else if(k.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ee&&ip(ue)===k.type){a(N,k.sibling),te=u(k,j.props),Ki(te,j),te.return=N,N=te;break e}a(N,k);break}else t(N,k);k=k.sibling}j.type===E?(te=Ga(j.props.children,N.mode,te,j.key),te.return=N,N=te):(te=po(j.type,j.key,j.props,null,N.mode,te),Ki(te,j),te.return=N,N=te)}return g(N);case O:e:{for(ue=j.key;k!==null;){if(k.key===ue)if(k.tag===4&&k.stateNode.containerInfo===j.containerInfo&&k.stateNode.implementation===j.implementation){a(N,k.sibling),te=u(k,j.children||[]),te.return=N,N=te;break e}else{a(N,k);break}else t(N,k);k=k.sibling}te=Ys(j,N.mode,te),te.return=N,N=te}return g(N);case ee:return ue=j._init,j=ue(j._payload),Ye(N,k,j,te)}if(X(j))return me(N,k,j,te);if(C(j)){if(ue=C(j),typeof ue!="function")throw Error(o(150));return j=ue.call(j),de(N,k,j,te)}if(typeof j.then=="function")return Ye(N,k,zo(j),te);if(j.$$typeof===$)return Ye(N,k,bo(N,j),te);ko(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,k!==null&&k.tag===6?(a(N,k.sibling),te=u(k,j),te.return=N,N=te):(a(N,k),te=Hs(j,N.mode,te),te.return=N,N=te),g(N)):a(N,k)}return function(N,k,j,te){try{Qi=0;var ue=Ye(N,k,j,te);return jr=null,ue}catch(ce){if(ce===Ui||ce===xo)throw ce;var be=Xt(29,ce,null,N.mode);return be.lanes=te,be.return=N,be}finally{}}}var Ur=lp(!0),op=lp(!1),un=Y(null),An=null;function pa(e){var t=e.alternate;re(yt,yt.current&1),re(un,e),An===null&&(t===null||$r.current!==null||t.memoizedState!==null)&&(An=e)}function up(e){if(e.tag===22){if(re(yt,yt.current),re(un,e),An===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(An=e)}}else ga()}function ga(){re(yt,yt.current),re(un,un.current)}function Zn(e){ae(un),An===e&&(An=null),ae(yt)}var yt=Y(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||cf(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Sc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var xc={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=It(),u=da(i);u.payload=t,a!=null&&(u.callback=a),t=ha(e,u,i),t!==null&&(Wt(t,e,i),Yi(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=It(),u=da(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=ha(e,u,i),t!==null&&(Wt(t,e,i),Yi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),i=da(a);i.tag=2,t!=null&&(i.callback=t),t=ha(e,i,a),t!==null&&(Wt(t,e,a),Yi(t,e,a))}};function sp(e,t,a,i,u,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,g):t.prototype&&t.prototype.isPureReactComponent?!_i(a,i)||!_i(u,f):!0}function cp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&xc.enqueueReplaceState(t,t.state,null)}function Ja(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var No=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function fp(e){No(e)}function dp(e){console.error(e)}function hp(e){No(e)}function Bo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function mp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Cc(e,t,a){return a=da(a),a.tag=3,a.payload={element:null},a.callback=function(){Bo(e,t)},a}function pp(e){return e=da(e),e.tag=3,e}function gp(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=i.value;e.payload=function(){return u(f)},e.callback=function(){mp(t,a,i)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){mp(t,a,i),typeof u!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function vb(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&Bi(t,a,u,!0),a=un.current,a!==null){switch(a.tag){case 13:return An===null?Xc():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===Ws?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Qc(e,i,u)),!1;case 22:return a.flags|=65536,i===Ws?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Qc(e,i,u)),!1}throw Error(o(435,a.tag))}return Qc(e,i,u),Xc(),!1}if(De)return t=un.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Vs&&(e=Error(o(422),{cause:i}),Ni(an(e,a)))):(i!==Vs&&(t=Error(o(423),{cause:i}),Ni(an(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=an(i,a),u=Cc(e.stateNode,i,u),ec(e,u),tt!==4&&(tt=2)),!1;var f=Error(o(520),{cause:i});if(f=an(f,a),nl===null?nl=[f]:nl.push(f),tt!==4&&(tt=2),t===null)return!0;i=an(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Cc(a.stateNode,i,e),ec(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ca===null||!Ca.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=pp(u),gp(u,e,a,i),ec(a,u),!1}a=a.return}while(a!==null);return!1}var yp=Error(o(461)),xt=!1;function At(e,t,a,i){t.child=e===null?op(t,null,a,i):Ur(t,e.child,a,i)}function vp(e,t,a,i,u){a=a.render;var f=t.ref;if("ref"in i){var g={};for(var b in i)b!=="ref"&&(g[b]=i[b])}else g=i;return Ka(t),i=ic(e,t,a,g,f,u),b=lc(),e!==null&&!xt?(oc(e,t,u),Qn(e,t,u)):(De&&b&&qs(t),t.flags|=1,At(e,t,i,u),t.child)}function bp(e,t,a,i,u){if(e===null){var f=a.type;return typeof f=="function"&&!Us(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Sp(e,t,f,i,u)):(e=po(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Dc(e,u)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:_i,a(g,i)&&e.ref===t.ref)return Qn(e,t,u)}return t.flags|=1,e=Yn(f,i),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,a,i,u){if(e!==null){var f=e.memoizedProps;if(_i(f,i)&&e.ref===t.ref)if(xt=!1,t.pendingProps=i=f,Dc(e,u))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Qn(e,t,u)}return Tc(e,t,a,i,u)}function xp(e,t,a){var i=t.pendingProps,u=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=f!==null?f.baseLanes|a:a,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~i}else t.childLanes=0,t.child=null;return Cp(e,t,i,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&So(t,f!==null?f.cachePool:null),f!==null?Sm(t,f):nc(),up(t);else return t.lanes=t.childLanes=536870912,Cp(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(So(t,f.cachePool),Sm(t,f),ga(),t.memoizedState=null):(e!==null&&So(t,null),nc(),ga());return At(e,t,u,a),t.child}function Cp(e,t,a,i){var u=Is();return u=u===null?null:{parent:gt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&So(t,null),nc(),up(t),e!==null&&Bi(e,t,i,!0),null}function Lo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Tc(e,t,a,i,u){return Ka(t),a=ic(e,t,a,i,void 0,u),i=lc(),e!==null&&!xt?(oc(e,t,u),Qn(e,t,u)):(De&&i&&qs(t),t.flags|=1,At(e,t,a,u),t.child)}function Tp(e,t,a,i,u,f){return Ka(t),t.updateQueue=null,a=Cm(t,i,a,u),xm(e),i=lc(),e!==null&&!xt?(oc(e,t,f),Qn(e,t,f)):(De&&i&&qs(t),t.flags|=1,At(e,t,a,f),t.child)}function Ep(e,t,a,i,u){if(Ka(t),t.stateNode===null){var f=Rr,g=a.contextType;typeof g=="object"&&g!==null&&(f=_t(g)),f=new a(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=xc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Js(t),g=a.contextType,f.context=typeof g=="object"&&g!==null?_t(g):Rr,f.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Sc(t,a,g,i),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&xc.enqueueReplaceState(f,f.state,null),Gi(t,i,f,u),qi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,R=Ja(a,b);f.props=R;var U=f.context,J=a.contextType;g=Rr,typeof J=="object"&&J!==null&&(g=_t(J));var ne=a.getDerivedStateFromProps;J=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,J||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||U!==g)&&cp(t,f,i,g),fa=!1;var G=t.memoizedState;f.state=G,Gi(t,i,f,u),qi(),U=t.memoizedState,b||G!==U||fa?(typeof ne=="function"&&(Sc(t,a,ne,i),U=t.memoizedState),(R=fa||sp(t,a,R,i,G,U,g))?(J||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),f.props=i,f.state=U,f.context=g,i=R):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,Fs(e,t),g=t.memoizedProps,J=Ja(a,g),f.props=J,ne=t.pendingProps,G=f.context,U=a.contextType,R=Rr,typeof U=="object"&&U!==null&&(R=_t(U)),b=a.getDerivedStateFromProps,(U=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==ne||G!==R)&&cp(t,f,i,R),fa=!1,G=t.memoizedState,f.state=G,Gi(t,i,f,u),qi();var V=t.memoizedState;g!==ne||G!==V||fa||e!==null&&e.dependencies!==null&&vo(e.dependencies)?(typeof b=="function"&&(Sc(t,a,b,i),V=t.memoizedState),(J=fa||sp(t,a,J,i,G,V,R)||e!==null&&e.dependencies!==null&&vo(e.dependencies))?(U||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,V,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,V,R)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),f.props=i,f.state=V,f.context=R,i=J):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Lo(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Ur(t,e.child,null,u),t.child=Ur(t,null,a,u)):At(e,t,a,u),t.memoizedState=f.state,e=t.child):e=Qn(e,t,u),e}function Mp(e,t,a,i){return $i(),t.flags|=256,At(e,t,a,i),t.child}var Ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mc(e){return{baseLanes:e,cachePool:dm()}}function Ac(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=sn),e}function Ap(e,t,a){var i=t.pendingProps,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(u?pa(t):ga(),De){var b=et,R;if(R=b){e:{for(R=b,b=Mn;R.nodeType!==8;){if(!b){b=null;break e}if(R=Sn(R.nextSibling),R===null){b=null;break e}}b=R}b!==null?(t.memoizedState={dehydrated:b,treeContext:Va!==null?{id:qn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},R=Xt(18,null,null,0),R.stateNode=b,R.return=t,t.child=R,Bt=t,et=null,R=!0):R=!1}R||Za(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return cf(b)?t.lanes=32:t.lanes=536870912,null;Zn(t)}return b=i.children,i=i.fallback,u?(ga(),u=t.mode,b=jo({mode:"hidden",children:b},u),i=Ga(i,u,a,null),b.return=t,i.return=t,b.sibling=i,t.child=b,u=t.child,u.memoizedState=Mc(a),u.childLanes=Ac(e,g,a),t.memoizedState=Ec,i):(pa(t),Oc(t,b))}if(R=e.memoizedState,R!==null&&(b=R.dehydrated,b!==null)){if(f)t.flags&256?(pa(t),t.flags&=-257,t=wc(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),u=i.fallback,b=t.mode,i=jo({mode:"visible",children:i.children},b),u=Ga(u,b,a,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,Ur(t,e.child,null,a),i=t.child,i.memoizedState=Mc(a),i.childLanes=Ac(e,g,a),t.memoizedState=Ec,t=u);else if(pa(t),cf(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var U=g.dgst;g=U,i=Error(o(419)),i.stack="",i.digest=g,Ni({value:i,source:null,stack:null}),t=wc(e,t,a)}else if(xt||Bi(e,t,a,!1),g=(a&e.childLanes)!==0,xt||g){if(g=Pe,g!==null&&(i=a&-a,i=(i&42)!==0?1:cs(i),i=(i&(g.suspendedLanes|a))!==0?0:i,i!==0&&i!==R.retryLane))throw R.retryLane=i,wr(e,i),Wt(g,e,i),yp;b.data==="$?"||Xc(),t=wc(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,et=Sn(b.nextSibling),Bt=t,De=!0,Xa=null,Mn=!1,e!==null&&(ln[on++]=qn,ln[on++]=Gn,ln[on++]=Va,qn=e.id,Gn=e.overflow,Va=t),t=Oc(t,i.children),t.flags|=4096);return t}return u?(ga(),u=i.fallback,b=t.mode,R=e.child,U=R.sibling,i=Yn(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,U!==null?u=Yn(U,u):(u=Ga(u,b,a,null),u.flags|=2),u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,b=e.child.memoizedState,b===null?b=Mc(a):(R=b.cachePool,R!==null?(U=gt._currentValue,R=R.parent!==U?{parent:U,pool:U}:R):R=dm(),b={baseLanes:b.baseLanes|a,cachePool:R}),u.memoizedState=b,u.childLanes=Ac(e,g,a),t.memoizedState=Ec,i):(pa(t),a=e.child,e=a.sibling,a=Yn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function Oc(e,t){return t=jo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jo(e,t){return e=Xt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function wc(e,t,a){return Ur(t,e.child,null,a),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Op(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Xs(e.return,t,a)}function Rc(e,t,a,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=a,f.tailMode=u)}function wp(e,t,a){var i=t.pendingProps,u=i.revealOrder,f=i.tail;if(At(e,t,i.children,a),i=yt.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Op(e,a,t);else if(e.tag===19)Op(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(re(yt,i),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&$o(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Rc(t,!1,u,a,f);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$o(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Rc(t,!0,a,null,f);break;case"together":Rc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),xa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Bi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Yn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Yn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Dc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vo(e)))}function bb(e,t,a){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),ca(t,gt,e.memoizedState.cache),$i();break;case 27:case 5:Xe(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:ca(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(pa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Ap(e,t,a):(pa(t),e=Qn(e,t,a),e!==null?e.sibling:null);pa(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(Bi(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return wp(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),re(yt,yt.current),i)break;return null;case 22:case 23:return t.lanes=0,xp(e,t,a);case 24:ca(t,gt,e.memoizedState.cache)}return Qn(e,t,a)}function Rp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!Dc(e,a)&&(t.flags&128)===0)return xt=!1,bb(e,t,a);xt=(e.flags&131072)!==0}else xt=!1,De&&(t.flags&1048576)!==0&&im(t,yo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,u=i._init;if(i=u(i._payload),t.type=i,typeof i=="function")Us(i)?(e=Ja(i,e),t.tag=1,t=Ep(null,t,i,e,a)):(t.tag=0,t=Tc(null,t,i,e,a));else{if(i!=null){if(u=i.$$typeof,u===B){t.tag=11,t=vp(null,t,i,e,a);break e}else if(u===q){t.tag=14,t=bp(null,t,i,e,a);break e}}throw t=P(i)||i,Error(o(306,t,""))}}return t;case 0:return Tc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Ja(i,t.pendingProps),Ep(e,t,i,u,a);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var f=t.memoizedState;u=f.element,Fs(e,t),Gi(t,i,null,a);var g=t.memoizedState;if(i=g.cache,ca(t,gt,i),i!==f.cache&&Zs(t,[gt],a,!0),qi(),i=g.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Mp(e,t,i,a);break e}else if(i!==u){u=an(Error(o(424)),t),Ni(u),t=Mp(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=Sn(e.firstChild),Bt=t,De=!0,Xa=null,Mn=!0,a=op(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),i===u){t=Qn(e,t,a);break e}At(e,t,i,a)}t=t.child}return t;case 26:return Lo(e,t),e===null?(a=kg(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,i=Jo(se.current).createElement(a),i[Dt]=t,i[Lt]=e,wt(i,a,e),St(i),t.stateNode=i):t.memoizedState=kg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xe(t),e===null&&De&&(i=t.stateNode=Dg(t.type,t.pendingProps,se.current),Bt=t,Mn=!0,u=et,Ma(t.type)?(ff=u,et=Sn(i.firstChild)):et=u),At(e,t,t.pendingProps.children,a),Lo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((u=i=et)&&(i=Zb(i,t.type,t.pendingProps,Mn),i!==null?(t.stateNode=i,Bt=t,et=Sn(i.firstChild),Mn=!1,u=!0):u=!1),u||Za(t)),Xe(t),u=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,i=f.children,of(u,f)?i=null:g!==null&&of(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=ic(e,t,fb,null,null,a),fl._currentValue=u),Lo(e,t),At(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=et)&&(a=Qb(a,t.pendingProps,Mn),a!==null?(t.stateNode=a,Bt=t,et=null,e=!0):e=!1),e||Za(t)),null;case 13:return Ap(e,t,a);case 4:return Se(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ur(t,null,i,a):At(e,t,i,a),t.child;case 11:return vp(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,ca(t,t.type,i.value),At(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ka(t),u=_t(u),i=i(u),t.flags|=1,At(e,t,i,a),t.child;case 14:return bp(e,t,t.type,t.pendingProps,a);case 15:return Sp(e,t,t.type,t.pendingProps,a);case 19:return wp(e,t,a);case 31:return i=t.pendingProps,a=t.mode,i={mode:i.mode,children:i.children},e===null?(a=jo(i,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Yn(e.child,i),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return xp(e,t,a);case 24:return Ka(t),i=_t(gt),e===null?(u=Is(),u===null&&(u=Pe,f=Qs(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:i,cache:u},Js(t),ca(t,gt,u)):((e.lanes&a)!==0&&(Fs(e,t),Gi(t,null,null,a),qi()),u=e.memoizedState,f=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ca(t,gt,i)):(i=f.cache,ca(t,gt,i),i!==u.cache&&Zs(t,[gt],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Kn(e){e.flags|=4}function Dp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jg(t)){if(t=un.current,t!==null&&((Ee&4194048)===Ee?An!==null:(Ee&62914560)!==Ee&&(Ee&536870912)===0||t!==An))throw Hi=Ws,hm;e.flags|=8192}}function Uo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uh():536870912,e.lanes|=t,Gr|=t)}function Ii(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Sb(e,t,a){var i=t.pendingProps;switch(Gs(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Pn(gt),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ki(t)?Kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,um())),Je(t),null;case 26:return a=t.memoizedState,e===null?(Kn(t),a!==null?(Je(t),Dp(t,a)):(Je(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Kn(t),Je(t),Dp(t,a)):(Je(t),t.flags&=-16777217):(e.memoizedProps!==i&&Kn(t),Je(t),t.flags&=-16777217),null;case 27:it(t),a=se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Kn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Je(t),null}e=oe.current,ki(t)?lm(t):(e=Dg(u,i,a),t.stateNode=e,Kn(t))}return Je(t),null;case 5:if(it(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Kn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Je(t),null}if(e=oe.current,ki(t))lm(t);else{switch(u=Jo(se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML=" + diff --git a/src/frontend/dist/vite.svg b/src/frontend/dist/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/src/frontend/dist/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/index.html b/src/frontend/index.html index 55bc3731..6b1bb91a 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -2,7 +2,7 @@ - + Parallax Open Source diff --git a/src/frontend/public/vite.svg b/src/frontend/public/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/src/frontend/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/src/assets/gradient-icon.svg b/src/frontend/src/assets/gradient-icon.svg new file mode 100644 index 00000000..66c63514 --- /dev/null +++ b/src/frontend/src/assets/gradient-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/frontend/src/assets/gradient-logo.svg b/src/frontend/src/assets/gradient-logo.svg deleted file mode 100644 index 8b137891..00000000 --- a/src/frontend/src/assets/gradient-logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/src/assets/react.svg b/src/frontend/src/assets/react.svg deleted file mode 100644 index 6c87de9b..00000000 --- a/src/frontend/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/src/components/brand/icon.tsx b/src/frontend/src/components/brand/icon.tsx index d4f48726..59a1f5cb 100644 --- a/src/frontend/src/components/brand/icon.tsx +++ b/src/frontend/src/components/brand/icon.tsx @@ -1,7 +1,6 @@ export const IconBrandGradient = () => ( - - {/* */} - - + + + ); diff --git a/src/frontend/src/components/brand/logo.tsx b/src/frontend/src/components/brand/logo.tsx index 6d668816..bf466c9c 100644 --- a/src/frontend/src/components/brand/logo.tsx +++ b/src/frontend/src/components/brand/logo.tsx @@ -1,16 +1,38 @@ export const LogoGradient = () => ( - + + + + + + + + ); diff --git a/src/frontend/src/components/common/drawer-layout.tsx b/src/frontend/src/components/common/drawer-layout.tsx index b0649ea4..f2443bb9 100644 --- a/src/frontend/src/components/common/drawer-layout.tsx +++ b/src/frontend/src/components/common/drawer-layout.tsx @@ -4,6 +4,8 @@ import { useCluster } from '../../services'; import { useAlertDialog } from '../mui'; import { IconBrandGradient } from '../brand'; import { + IconCirclePlus, + IconInfoCircle, IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLayoutSidebarRightCollapse, @@ -78,16 +80,46 @@ export const DrawerLayout: FC = ({ children }) => { }, ] = useCluster(); + const [dialogWaiting, { open: openWaiting }] = useAlertDialog({ + color: 'primary', + titleIcon: , + title: 'Reconnect your nodes', + content: ( + + + Run join command on your new Node + + + + Check your live node status + + After you successfully start the server on the nodes, you should see them show up on the + below dashboard. + + + + + ), + confirmLabel: 'Finish', + }); + useEffect(() => { + if (clusterStatus === 'waiting') { + openWaiting(); + } + }, [clusterStatus, openWaiting]); + const [dialogRebalancing, { open: openRebalancing }] = useAlertDialog({ - color: 'error', - titleIcon: true, + color: 'primary', title: '', content: ( <> - Cluster rebalancing - - The cluster is rebalancing. Please wait for a moment. + Cluster rebalancing + + We have noticed one of your nodes has been disconnected. We are now rebalancing your + inference requests onto working nodes. Please wait a few seconds for the cluster to + rebalance itself. + ), confirmLabel: 'Finish', @@ -101,13 +133,24 @@ export const DrawerLayout: FC = ({ children }) => { const [sidebarExpanded, setMenuOpen] = useState(true); const [dialogJoinCommand, { open: openJoinCommand }] = useAlertDialog({ - color: 'success', + color: 'primary', + titleIcon: , title: 'Add Nodes', content: ( - <> - To add nodes, use the join command below. - - + + + Run join command on your new Node + + + + Check your live node status + + After you successfully start the server on the nodes, you should see them show up on the + below dashboard. + + + + ), }); @@ -133,7 +176,6 @@ export const DrawerLayout: FC = ({ children }) => { } onClick={openJoinCommand}> Add Nodes - {dialogJoinCommand} )} @@ -145,6 +187,8 @@ export const DrawerLayout: FC = ({ children }) => { {children} + {dialogJoinCommand} + {dialogWaiting} {dialogRebalancing} ); diff --git a/src/frontend/src/components/common/main-layout.tsx b/src/frontend/src/components/common/main-layout.tsx index ef7f9fc5..89ddd03f 100644 --- a/src/frontend/src/components/common/main-layout.tsx +++ b/src/frontend/src/components/common/main-layout.tsx @@ -10,7 +10,7 @@ export interface MainLayoutProps { } const MainLayoutRoot = styled(Stack)(({ theme }) => { - const { spacing } = theme; + const { palette, spacing } = theme; return { width: '100%', height: '100%', @@ -19,6 +19,7 @@ const MainLayoutRoot = styled(Stack)(({ theme }) => { gap: spacing(3), padding: spacing(3), overflow: 'hidden', + backgroundColor: palette.grey[100], }; }); diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index f24c7bf3..086982b3 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -9,6 +9,7 @@ import { IconSquare, IconSquareFilled, } from '@tabler/icons-react'; +import { DotPulse } from './dot-pulse'; export const ChatInput: FC = () => { const [ @@ -27,24 +28,30 @@ export const ChatInput: FC = () => { }); return ( - - + + {/* {modelName} - + */} setInput(event.target.value)} multiline maxRows={4} - placeholder='Enter your system prompt here...' + placeholder='Ask anything...' fullWidth onKeyDown={onKeyDown} slotProps={{ input: { sx: { flexDirection: 'column' }, endAdornment: ( - - } onClick={clear}> + + } + disabled={status === 'opened' || status === 'generating'} + onClick={clear} + > Clear